:root {
    --agenda-font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    --agenda-primary: #41c596;
    --agenda-primary-dark: #218b68;
    --agenda-ink: #24443b;
    --agenda-muted: #637a72;
    --agenda-border: #b8ddcc;
    --agenda-surface: #ffffff;
    --agenda-surface-soft: #edf8f2;
    --agenda-shadow: none;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    color: var(--agenda-ink);
    font-family: var(--agenda-font-family);
    font-weight: 500;
}

body {
    background: #b8ddcc;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: var(--agenda-font-family);
}

body *:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round) {
    letter-spacing: .005em;
}

h1,
h2,
h3 {
    color: var(--agenda-ink);
    font-weight: 700;
    letter-spacing: -.02em;
}

h1 {
    margin: 0 0 .55rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h2 {
    margin: 0;
    font-size: 1.12rem;
}

a {
    color: var(--agenda-primary-dark);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .7rem 1.15rem;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--agenda-primary);
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

button:hover,
.button:hover {
    color: #fff;
    background: var(--agenda-primary-dark);
    box-shadow: none;
    transform: translateY(-1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}

input,
select,
textarea {
    min-height: 42px;
    width: 100%;
    padding: .7rem .8rem;
    border: 1px solid var(--agenda-border);
    border-radius: 9px;
    color: var(--agenda-ink);
    background: #ffffff;
    font-size: .92rem;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    button,
    .button,
    input,
    select {
        min-height: 48px;
    }

    textarea {
        min-height: 112px;
    }
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--agenda-primary);
    background: #fff;
    box-shadow: none;
}

.notice {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(226, 178, 51, .45);
    border-left: 4px solid #d9a927;
    border-radius: 10px;
    color: #725b1b;
    background: #fff8e1;
}

.muted {
    color: var(--agenda-muted);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    z-index: 20;
    right: 1rem;
    bottom: 1rem;
    max-width: min(520px, calc(100% - 2rem));
    padding: .85rem 1rem;
    border-radius: 10px;
    color: #fff;
    background: #b4233c;
    box-shadow: none;
    text-align: center;
}

.mobile-back-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 42px;
    padding: .55rem .8rem;
    border: 1px solid var(--agenda-border);
    border-radius: 999px;
    color: var(--agenda-primary-dark);
    background: #ffffff;
    box-shadow: none;
    font-size: .78rem;
    font-weight: 800;
}

.mobile-back-button:hover {
    color: #fff;
    background: var(--agenda-primary-dark);
}

.back-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

.pwa-install-button {
    position: fixed;
    z-index: 11;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .6rem .85rem;
    border: 1px solid var(--agenda-primary-dark);
    border-radius: 999px;
    color: #fff;
    background: var(--agenda-primary-dark);
    box-shadow: none;
    font-size: .78rem;
    font-weight: 800;
}

.pwa-install-button:hover {
    color: var(--agenda-primary-dark);
    background: #ffffff;
}

@media (max-width: 640px) {
    .pwa-install-button {
        right: .8rem;
        bottom: calc(5.4rem + env(safe-area-inset-bottom));
    }
}
