:root {
    color-scheme: light;
    --app-bg: #f5f6ef;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-muted: #eef5ed;
    --surface-accent: #e4efe4;
    --border-soft: #d8e4d7;
    --border-strong: #bfd1bf;
    --text-strong: #20352a;
    --text-muted: #607061;
    --brand: #67957a;
    --brand-strong: #4f7660;
    --brand-soft: #e6f1e7;
    --brand-ink: #f9fcf7;
    --accent: #9bbda4;
    --danger: #cb6b62;
    --danger-strong: #ab544d;
    --shadow-soft: 0 20px 60px rgba(54, 75, 60, 0.12);
    --shadow-card: 0 18px 42px rgba(54, 75, 60, 0.09);
}

html,
body {
    height: 100%;
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(215, 233, 213, 0.72), transparent 32%),
        radial-gradient(circle at top right, rgba(234, 240, 224, 0.84), transparent 28%),
        linear-gradient(180deg, #f7f8f2 0%, #eff4ec 100%);
    color: var(--text-strong);
}

body {
    min-height: 100vh;
    overflow: hidden;
}

a,
button {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.app-shell {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.48), transparent 38%),
        linear-gradient(180deg, rgba(249, 251, 246, 0.8) 0%, rgba(239, 245, 236, 0.94) 100%);
}

.app-header {
    backdrop-filter: blur(18px);
    background: rgba(251, 252, 248, 0.82);
    border-bottom: 1px solid rgba(191, 209, 191, 0.72);
}

.app-card {
    background: var(--surface);
    border: 1px solid rgba(216, 228, 215, 0.88);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.brand-link {
    color: var(--text-strong);
}

.brand-link:hover {
    color: var(--brand-strong);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(228, 239, 228, 0.96) 100%);
    border: 1px solid rgba(191, 209, 191, 0.82);
    box-shadow: 0 10px 28px rgba(88, 117, 98, 0.16);
}

.brand-wordmark {
    letter-spacing: -0.03em;
}

.brand-whisper {
    color: var(--text-muted);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(191, 209, 191, 0.92);
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-strong);
    box-shadow: 0 10px 24px rgba(88, 117, 98, 0.12);
}

.menu-toggle:hover {
    background: rgba(230, 241, 231, 0.98);
}

.sidebar-overlay {
    background: rgba(24, 34, 28, 0.34);
    backdrop-filter: blur(3px);
}

.sidebar-shell {
    background:
        radial-gradient(circle at top left, rgba(139, 179, 154, 0.18), transparent 32%),
        linear-gradient(180deg, #284033 0%, #22352a 100%);
    box-shadow: 0 22px 50px rgba(22, 34, 27, 0.28);
}

.auth-meta {
    color: var(--text-muted);
}

.header-chip {
    background: rgba(230, 241, 231, 0.92);
    color: var(--brand-strong);
    border: 1px solid rgba(191, 209, 191, 0.86);
}

.header-action {
    border-radius: 9999px;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(88, 117, 98, 0.12);
}

.header-action--primary {
    background: var(--brand);
    color: var(--brand-ink);
}

.header-action--primary:hover {
    background: var(--brand-strong);
}

.header-action--ghost {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-strong);
    border-color: rgba(191, 209, 191, 0.92);
}

.header-action--ghost:hover {
    background: rgba(230, 241, 231, 0.98);
}

.header-action--danger {
    background: var(--danger);
    color: #fff9f8;
}

.header-action--danger:hover {
    background: var(--danger-strong);
}

.page-bleed {
    margin: -1rem;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent 26%),
        linear-gradient(135deg, rgba(230, 241, 231, 0.96) 0%, rgba(250, 251, 246, 0.92) 55%, rgba(226, 237, 226, 0.88) 100%);
    border: 1px solid rgba(191, 209, 191, 0.72);
    box-shadow: var(--shadow-soft);
}

.hero-shell::after {
    content: "";
    position: absolute;
    inset: auto -5rem -7rem auto;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(139, 179, 154, 0.28) 0%, rgba(139, 179, 154, 0) 68%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(191, 209, 191, 0.72);
    color: var(--brand-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.8rem;
    text-transform: uppercase;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-weight: 700;
    padding: 0.9rem 1.35rem;
    box-shadow: 0 14px 30px rgba(88, 117, 98, 0.12);
}

.action-btn--compact {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.action-btn--mini {
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: none;
}

.action-btn--primary {
    background: var(--brand);
    color: var(--brand-ink);
}

.action-btn--primary:hover {
    background: var(--brand-strong);
}

.action-btn--secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(191, 209, 191, 0.92);
    color: var(--text-strong);
}

.action-btn--secondary:hover {
    background: rgba(230, 241, 231, 0.98);
}

.action-btn--soft {
    background: rgba(238, 245, 237, 0.96);
    border-color: rgba(200, 215, 200, 0.96);
    box-shadow: none;
    color: var(--brand-strong);
}

.action-btn--soft:hover {
    background: rgba(226, 238, 227, 0.98);
}

.action-btn--accent {
    background: #8eb3a1;
    color: #f7fbf7;
}

.action-btn--accent:hover {
    background: #769c8a;
}

.action-btn--danger {
    background: #c97d66;
    color: #fffaf8;
}

.action-btn--danger:hover {
    background: #b16550;
}

.action-btn:disabled,
.action-btn[disabled] {
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.72;
    transform: none;
}

.action-btn--primary:disabled {
    background: #9ab9a4;
    color: #f7fbf7;
}

.action-btn--accent:disabled {
    background: #b7cdbd;
    color: #f7fbf7;
}

.action-btn--danger:disabled {
    background: #d7a090;
    color: #fffaf8;
}

.action-btn--secondary:disabled,
.action-btn--soft:disabled {
    background: rgba(249, 251, 246, 0.92);
    border-color: rgba(191, 209, 191, 0.72);
    color: var(--text-muted);
}

.section-card {
    border-radius: 28px;
    border: 1px solid rgba(216, 228, 215, 0.9);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
}

.soft-pill {
    border-radius: 9999px;
    background: rgba(230, 241, 231, 0.92);
    border: 1px solid rgba(191, 209, 191, 0.88);
    color: var(--brand-strong);
}

.auth-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 22%),
        linear-gradient(135deg, rgba(231, 241, 232, 0.94) 0%, rgba(249, 251, 246, 0.96) 52%, rgba(224, 236, 225, 0.94) 100%);
}

.auth-panel {
    border-radius: 28px;
    border: 1px solid rgba(216, 228, 215, 0.92);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.field-label {
    color: var(--text-strong);
    font-size: 0.95rem;
    font-weight: 600;
}

.field-input,
.field-select {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(191, 209, 191, 0.96);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-strong);
    outline: none;
    padding: 0.85rem 1rem;
}

.field-input:focus,
.field-select:focus {
    border-color: rgba(103, 149, 122, 0.98);
    box-shadow: 0 0 0 4px rgba(103, 149, 122, 0.18);
}

.status-panel {
    border-radius: 22px;
    border: 1px solid transparent;
    padding: 1rem 1.1rem;
}

.status-panel--success {
    background: rgba(230, 241, 231, 0.92);
    border-color: rgba(191, 209, 191, 0.92);
    color: var(--brand-strong);
}

.status-panel--error {
    background: rgba(252, 239, 237, 0.94);
    border-color: rgba(231, 192, 188, 0.92);
    color: var(--danger-strong);
}

.subtle-link {
    color: var(--brand-strong);
    font-weight: 600;
}

.subtle-link:hover {
    color: var(--text-strong);
}

.section-shell {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .page-bleed {
        margin: -1.5rem;
    }

    .hero-shell,
    .auth-shell {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .page-bleed {
        margin: -2rem;
    }
}

@media (max-width: 430px) {
    .brand-wordmark {
        display: none !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid rgba(103, 149, 122, 0.72);
    outline-offset: 3px;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background-color: rgba(255, 0, 0, 0.1);
    color: red;
    text-shadow: 0 0 2px white;
    padding: 1rem 1rem 1rem 3.7rem;
    margin: 1rem 0;
    border: 1px solid red;
    border-radius: 5px;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}