:root {
    --brand-green: #214f4c;
    --brand-sage: #7d9991;
    --brand-cream: #dcd5cd;
    --color-background: #f6f4f1;
    --color-surface: #ffffff;
    --color-surface-muted: #f3f0ec;
    --color-border: #ded8d1;
    --color-text: #172725;
    --color-muted: #66736f;
    --color-primary: var(--brand-green);
    --color-primary-dark: #173835;
    --color-accent: var(--brand-sage);
    --color-warning: #8a6432;
    --color-danger: #b42318;
    --shadow-soft: 0 10px 30px rgba(33, 79, 76, 0.09);
    --font-ui: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font-choice="manrope"] {
    --font-ui: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font-choice="satoshi"] {
    --font-ui: Satoshi, "Satoshi Variable", Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font-choice="geist"] {
    --font-ui: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font-choice="ibm-plex-sans"] {
    --font-ui: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font-choice="aptos"] {
    --font-ui: Aptos, "Aptos Display", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body {
    min-height: 100%;
    font-family: var(--font-ui);
    color: var(--color-text);
    background: var(--color-background);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.btn {
    border-radius: 6px;
    font-weight: 650;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline-secondary {
    color: var(--color-text);
    border-color: var(--brand-sage);
    background: #ffffff;
}

.btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
    color: var(--brand-green);
    background: #ffffff;
    border-color: #ffffff;
}

.content {
    padding: 1.5rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.page-header p {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
    max-width: 48rem;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.document-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(33, 79, 76, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(220, 213, 205, 0.36)),
        radial-gradient(circle at 94% 12%, rgba(125, 153, 145, 0.22), transparent 34%);
    box-shadow: var(--shadow-soft);
}

.document-hero-main {
    min-width: 0;
}

.document-hero h1 {
    margin: 0;
    max-width: 54rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.document-hero p:not(.eyebrow) {
    margin: 0.45rem 0 0;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.document-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.document-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.document-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(33, 79, 76, 0.1);
    border-radius: 999px;
    color: var(--color-text);
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.72);
}

.document-hero-meta strong {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.documents-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid rgba(33, 79, 76, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.94) 35%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0) 100%),
        url("/images/Wave-Flow%20Documents%20Hero.svg") center / cover no-repeat;
    box-shadow: var(--shadow-soft);
}

.documents-hero > * {
    position: relative;
    z-index: 1;
}

.documents-hero h1 {
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--brand-green);
}

.obligations-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid rgba(33, 79, 76, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.94) 35%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0) 100%),
        url("/images/Elegant%20Emerald%20Wave%20Hero.svg") center / cover no-repeat;
    box-shadow: var(--shadow-soft);
}

.obligations-hero > * {
    position: relative;
    z-index: 1;
}

.obligations-hero h1 {
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--brand-green);
}

.benefits-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid rgba(33, 79, 76, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.94) 35%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0) 100%),
        url("/images/benefits-hero.svg") center / cover no-repeat;
    box-shadow: var(--shadow-soft);
}

.benefits-hero > * {
    position: relative;
    z-index: 1;
}

.benefits-hero h1 {
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--brand-green);
}

.calendar-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid rgba(33, 79, 76, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.94) 35%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0) 100%),
        url("/images/calendar-hero.svg") center / cover no-repeat;
    box-shadow: var(--shadow-soft);
}

.calendar-hero > * {
    position: relative;
    z-index: 1;
}

.calendar-hero h1 {
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--brand-green);
}

.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(33, 79, 76, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.94) 35%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0) 100%),
        url("/images/dashboard-hero-bg.svg") center / cover no-repeat;
    box-shadow: var(--shadow-soft);
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--brand-green);
}

.dashboard-hero p {
    margin: 0.65rem 0 0;
    max-width: 46rem;
    color: var(--color-muted);
}

.dashboard-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.dashboard-insight {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.95rem;
    align-items: stretch;
    padding: 1.1rem;
    border: 1px solid rgba(33, 79, 76, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(246, 244, 241, 0.8)),
        var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.dashboard-insight.warning {
    border-color: rgba(183, 121, 31, 0.22);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 235, 0.84));
}

.dashboard-insight.danger {
    border-color: rgba(180, 35, 24, 0.2);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 239, 0.84));
}

.dashboard-insight h2 {
    margin: 0;
    color: var(--brand-green);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-insight p:not(.eyebrow) {
    margin: 0.45rem 0 0;
    color: var(--color-muted);
    max-width: 52rem;
}

.dashboard-insight-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    justify-items: stretch;
    min-width: 9.5rem;
}

.dashboard-shortcuts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--brand-green);
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.48);
}

.dashboard-shortcuts a:hover {
    color: #ffffff;
    text-decoration: none;
    border-color: var(--brand-green);
    background: var(--brand-green);
}

.dashboard-preview-list {
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.dashboard-preview-row,
.dashboard-preview-empty {
    display: grid;
    gap: 0.15rem;
    min-height: 3.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(33, 79, 76, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.66);
}

.dashboard-preview-row:hover {
    color: var(--color-text);
    text-decoration: none;
    border-color: rgba(33, 79, 76, 0.24);
    background: #ffffff;
}

.dashboard-preview-row strong,
.dashboard-preview-row span {
    display: block;
}

.dashboard-preview-row strong {
    overflow: hidden;
    color: var(--color-text);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-preview-row span,
.dashboard-preview-empty {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.dashboard-preview-skeleton {
    display: grid;
    gap: 0.45rem;
    min-height: 3.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(33, 79, 76, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.66);
}

.dashboard-preview-skeleton span {
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(220, 213, 205, 0.58), rgba(255, 255, 255, 0.92), rgba(220, 213, 205, 0.58));
    background-size: 220% 100%;
    animation: dashboard-preview-skeleton-shimmer 1.12s ease-in-out infinite;
}

.dashboard-preview-skeleton span:first-child {
    width: 68%;
    height: 0.95rem;
}

.dashboard-preview-skeleton span:last-child {
    width: 46%;
    height: 0.72rem;
}

@keyframes dashboard-preview-skeleton-shimmer {
    from {
        background-position: 120% 0;
    }

    to {
        background-position: -120% 0;
    }
}

.eyebrow {
    margin: 0 0 0.35rem !important;
    color: var(--color-primary) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero {
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: stretch;
    margin-left: calc((100vw - min(1180px, calc(100vw - 2rem))) / -2);
    margin-right: calc((100vw - min(1180px, calc(100vw - 2rem))) / -2);
    background:
        linear-gradient(90deg, rgba(23, 56, 53, 0.9) 0%, rgba(33, 79, 76, 0.75) 38%, rgba(33, 79, 76, 0.24) 72%, rgba(33, 79, 76, 0.08) 100%),
        url("/images/landing-hero.png") center right / cover no-repeat;
}

.landing-hero-overlay {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 4rem 0 6rem;
}

.landing-section {
    scroll-margin-top: 5.5rem;
}

.landing-copy h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: 0;
    color: #ffffff;
}

.landing-copy {
    max-width: 58rem;
}

.landing-hero .eyebrow {
    color: var(--brand-cream) !important;
}

.landing-lead {
    margin: 1.25rem 0 1.5rem;
    max-width: 48rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    line-height: 1.65;
}

.landing-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

.landing-section h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0;
}

.landing-section p {
    margin: 1rem 0 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.landing-points {
    display: grid;
    gap: 0.75rem;
}

.landing-points article {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.landing-points strong,
.landing-points span {
    display: block;
}

.landing-points span {
    margin-top: 0.35rem;
    color: var(--color-muted);
}

.landing-workflow {
    align-items: start;
}

.landing-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.landing-flow article {
    min-height: 15rem;
    padding: 1rem;
    border: 1px solid rgba(33, 79, 76, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, rgba(220, 213, 205, 0.26));
    box-shadow: 0 14px 34px rgba(33, 79, 76, 0.07);
}

.landing-flow span {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 850;
    background: var(--brand-green);
}

.landing-flow strong {
    display: block;
    margin-top: 1rem;
    color: var(--color-text);
    font-size: 1.1rem;
}

.landing-flow p {
    margin-top: 0.55rem;
    font-size: 0.95rem;
}

.landing-parallax {
    margin: 2rem calc((100vw - min(1180px, calc(100vw - 2rem))) / -2);
    padding: 5rem max(1rem, calc((100vw - 1180px) / 2));
    background:
        linear-gradient(90deg, rgba(23, 56, 53, 0.9), rgba(33, 79, 76, 0.62)),
        url("/images/dashboard-hero-bg.svg") center / cover fixed no-repeat;
}

.landing-parallax-card {
    max-width: 46rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 70px rgba(13, 29, 28, 0.24);
}

.landing-parallax-card .eyebrow {
    color: var(--brand-cream) !important;
}

.landing-parallax-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.landing-parallax-card p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
}

.landing-parallax-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.landing-parallax-grid span {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

.auth-shell {
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    width: min(100%, 30rem);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.auth-card h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0;
}

.auth-card p {
    color: var(--color-muted);
}

.auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.auth-form label {
    display: grid;
    gap: 0.4rem;
    color: var(--color-text);
    font-weight: 650;
}

.auth-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 0.5rem !important;
    color: var(--color-muted) !important;
    font-weight: 500 !important;
}

.auth-alert {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(180, 35, 24, 0.24);
    border-radius: 6px;
    color: var(--color-danger);
    background: #fff1ef;
}

.auth-switch {
    margin: 1rem 0 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.metric-card,
.panel,
.entity-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.15rem 1.05rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.5rem;
    min-height: 8.75rem;
    border-color: rgba(33, 79, 76, 0.12);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 244, 241, 0.82)),
        var(--color-surface);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 18px 38px rgba(33, 79, 76, 0.08);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.22rem;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-sage), rgba(220, 213, 205, 0.3));
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(125, 153, 145, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(220, 213, 205, 0.18), transparent 42%);
    opacity: 0.55;
    transition: opacity 180ms ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(33, 79, 76, 0.24);
    background:
        linear-gradient(180deg, #ffffff, rgba(246, 244, 241, 0.94)),
        var(--color-surface);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 22px 48px rgba(33, 79, 76, 0.13);
}

.metric-card:hover::after {
    opacity: 0.85;
}

.metric-card span,
.metric-card small {
    position: relative;
    z-index: 1;
    color: var(--color-muted);
}

.metric-card span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.metric-card strong {
    position: relative;
    z-index: 1;
    align-self: center;
    color: var(--color-primary-dark);
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-card small {
    max-width: 18rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.metric-card.warning {
    border-color: rgba(183, 121, 31, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 235, 0.84)),
        var(--color-surface);
}

.metric-card.warning::before {
    background: linear-gradient(90deg, #b7791f, #d7a64d, rgba(220, 213, 205, 0.3));
}

.metric-card.warning::after {
    background:
        linear-gradient(135deg, rgba(183, 121, 31, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(220, 213, 205, 0.18), transparent 42%);
}

.metric-card.danger {
    border-color: rgba(180, 35, 24, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 239, 0.84)),
        var(--color-surface);
}

.metric-card.danger::before {
    background: linear-gradient(90deg, #b42318, #df6b5f, rgba(220, 213, 205, 0.3));
}

.metric-card.danger::after {
    background:
        linear-gradient(135deg, rgba(180, 35, 24, 0.1), transparent 34%),
        linear-gradient(315deg, rgba(220, 213, 205, 0.16), transparent 42%);
}

.benefits-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 0.8fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.benefits-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
}

.benefits-lifearea-chart {
    display: flex;
    flex-direction: column;
}

.benefits-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.benefits-chart-header h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.benefits-chart-select {
    width: auto;
    min-width: 11rem;
}

.benefits-donut-wrap {
    display: grid;
    gap: 1.1rem;
    justify-items: center;
    align-items: start;
    min-height: 18rem;
}

.benefits-donut {
    position: relative;
    width: min(100%, 15rem);
    aspect-ratio: 1;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    box-shadow: inset 0 0 0 1px rgba(33, 79, 76, 0.08);
}

.benefits-donut::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: inherit;
    background: var(--color-surface);
    box-shadow: 0 0 0 1px rgba(33, 79, 76, 0.08);
}

.benefits-donut span,
.benefits-donut small {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

.benefits-donut span {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
}

.benefits-donut small {
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.benefits-legend {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.9rem;
    justify-content: center;
}

.benefits-legend-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    min-width: min(100%, 13rem);
    color: var(--color-muted);
    font-size: 0.85rem;
}

.benefits-legend-row strong {
    min-width: 0;
    color: var(--color-text);
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.benefits-legend-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-toolbar h2,
.calendar-toolbar p {
    margin: 0;
}

.calendar-toolbar p {
    color: var(--color-muted);
}

.calendar-month-control {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.calendar-nav-button {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: var(--color-surface-muted);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.calendar-nav-button:hover {
    border-color: rgba(33, 79, 76, 0.35);
    background: rgba(125, 153, 145, 0.16);
}

.calendar-toolbar-actions {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.calendar-panel {
    overflow: hidden;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
}

.calendar-weekdays span {
    padding: 0.5rem;
}

.calendar-day {
    min-height: 7.4rem;
    padding: 0.55rem;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
    border-bottom: 0;
}

.calendar-day.muted {
    background: var(--color-surface-muted);
    color: var(--color-muted);
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px rgba(33, 79, 76, 0.35);
}

.calendar-day time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.calendar-day.today time {
    color: white;
    background: var(--color-primary-dark);
}

.calendar-day-events {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.calendar-event {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.25rem 0.45rem;
    border-radius: 5px;
    color: var(--color-text);
    background: rgba(125, 153, 145, 0.18);
    font-size: 0.72rem;
    font-weight: 750;
}

.calendar-event.obligation {
    background: rgba(183, 121, 31, 0.22);
}

.calendar-event.cancellation {
    background: rgba(180, 35, 24, 0.14);
}

.calendar-event.document {
    background: rgba(47, 95, 159, 0.16);
}

.calendar-event.review {
    background: rgba(125, 153, 145, 0.22);
}

.calendar-day-events small {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-grid,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(20rem, 0.9fr);
    gap: 1rem;
}

.detail-grid {
    margin-bottom: 1.5rem;
}

.panel {
    padding: 1rem;
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.panel-header h2,
.entity-card h2,
.timeline-item h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.panel-header p,
.timeline-item p {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 16rem) minmax(12rem, 16rem);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.document-browser {
    display: block;
}

.inline-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(33, 79, 76, 0.16);
    border-radius: 10px;
    color: var(--brand-green);
    background: rgba(125, 153, 145, 0.12);
    font-weight: 750;
}

.document-file-name {
    display: block;
    margin-top: 0.15rem;
    color: var(--color-muted);
    font-size: 0.76rem;
}

.empty-state {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px dashed var(--color-border);
    border-radius: 14px;
    color: var(--color-muted);
    background: rgba(125, 153, 145, 0.08);
}

.empty-state strong {
    color: var(--color-text);
}

.suggestion-panel {
    margin-bottom: 1.5rem;
}

.suggestion-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.suggestion-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(33, 79, 76, 0.12);
    border-radius: 16px;
    background: rgba(125, 153, 145, 0.08);
}

.suggestion-card h3 {
    margin: 0.55rem 0 0.25rem;
    font-size: 1rem;
}

.suggestion-card p {
    margin: 0;
    color: var(--color-muted);
}

.suggestion-card small {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-muted);
}

.suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
}

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(13, 29, 28, 0.34);
    backdrop-filter: blur(3px);
}

.app-modal {
    width: min(100%, 32rem);
    padding: 1.15rem;
    border: 1px solid rgba(33, 79, 76, 0.14);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: 0 24px 70px rgba(13, 29, 28, 0.22);
}

.app-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.app-modal-header h2 {
    margin: 0.1rem 0 0;
    font-size: 1.2rem;
}

.app-modal p {
    margin: 0;
    color: var(--color-muted);
}

.app-modal-close {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    background: var(--color-surface-muted);
}

.status-change-preview {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(125, 153, 145, 0.1);
}

.status-change-preview span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: var(--brand-green);
    font-size: 0.82rem;
    font-weight: 800;
    background: #e8efec;
}

.status-change-preview strong {
    color: var(--color-muted);
}

.app-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.upload-wizard {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.upload-wizard-steps,
.upload-wizard-form {
    display: grid;
    gap: 0.85rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
}

.wizard-step span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #fff;
    background: var(--brand-green);
    font-weight: 850;
}

.wizard-step strong,
.wizard-step small {
    display: block;
}

.wizard-step small {
    color: var(--color-muted);
}

.wizard-step.muted {
    opacity: 0.62;
}

.upload-file-drop {
    display: grid;
    gap: 0.25rem;
    padding: 1.2rem;
    border: 1px dashed rgba(33, 79, 76, 0.35);
    border-radius: 18px;
    background: rgba(125, 153, 145, 0.1);
    cursor: pointer;
}

.upload-file-drop span,
.upload-file-drop small,
.upload-analysis-preview span,
.form-section-title span,
.form-grid label {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.upload-file-drop input {
    margin-top: 0.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 16rem) minmax(10rem, 14rem);
    gap: 0.75rem;
}

.form-grid label {
    display: grid;
    gap: 0.35rem;
}

.upload-analysis-preview {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(33, 79, 76, 0.08), rgba(220, 213, 205, 0.24));
}

.upload-analysis-preview strong,
.upload-analysis-preview span {
    display: block;
}

.upload-analysis-preview p {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
}

.upload-analysis-preview .btn {
    margin-top: 0.75rem;
    justify-self: start;
}

.analysis-result {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.analysis-result span {
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    color: var(--brand-green);
    background: rgba(125, 153, 145, 0.16);
    font-size: 0.78rem;
    font-weight: 750;
}

.form-section-title {
    display: grid;
    gap: 0.15rem;
}

.form-section-title strong,
.form-section-title span {
    display: block;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.document-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.document-category {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    background: var(--color-surface-muted);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.document-category:hover {
    border-color: rgba(33, 79, 76, 0.35);
    background: rgba(33, 79, 76, 0.06);
}

.document-category-icon {
    width: 1.55rem;
    min-width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--brand-green);
    background: rgba(33, 79, 76, 0.08);
    font-weight: 850;
}

.document-category-label {
    font-weight: 750;
}

.document-category strong {
    min-width: 1.55rem;
    min-height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--brand-green);
    background: #e8efec;
    font-size: 0.78rem;
}

.document-category.active {
    color: #ffffff;
    border-color: var(--brand-green);
    background: var(--brand-green);
}

.document-category.active:hover {
    background: var(--brand-green);
}

.document-category.active .document-category-icon,
.document-category.active strong {
    color: var(--brand-green);
    background: var(--brand-cream);
}

.obligation-chart-panel {
    margin-bottom: 1rem;
    padding: 1.15rem 1.2rem 1rem;
}

.obligation-chart-panel .panel-header {
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 0;
    margin-bottom: 0.85rem;
}

.chart-scope-select {
    display: inline-grid;
    gap: 0.3rem;
    min-width: 12rem;
}

.chart-scope-select span {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chart-scope-select select {
    width: 100%;
    min-height: 2.35rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0 2rem 0 0.75rem;
    color: var(--color-text);
    background: var(--color-surface);
    font: inherit;
    font-size: 0.88rem;
}

.obligation-chart-shell {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.6rem;
}

.obligation-chart-axis {
    height: 14.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0.15rem 0 0;
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 650;
}

.obligation-chart {
    display: grid;
    grid-template-rows: 14.5rem 2.3rem;
    gap: 0;
}

.obligation-chart-plot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
    align-items: end;
    gap: 0.7rem;
    height: 14.5rem;
    padding: 0.2rem 0.6rem 0;
    border-left: 1px solid rgba(33, 79, 76, 0.26);
    border-bottom: 1px solid rgba(33, 79, 76, 0.16);
    background:
        repeating-linear-gradient(
            to top,
            rgba(33, 79, 76, 0.1) 0 1px,
            transparent 1px 33.333%
        );
}

.obligation-bar-column {
    display: flex;
    align-items: end;
    justify-items: center;
    justify-content: center;
    height: 100%;
    min-width: 0;
}

.obligation-bar-value {
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1;
    opacity: 0;
    transform: translateY(0.25rem);
    transition: opacity 160ms ease, transform 160ms ease;
}

.obligation-bar-plot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
}

.obligation-bar-group {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.45rem;
}

.obligation-bar-pair {
    height: 100%;
    display: grid;
    grid-template-rows: 1rem minmax(0, 1fr) 0.8rem;
    align-items: end;
    justify-items: center;
    gap: 0.25rem;
}

.obligation-bar-pair span {
    color: var(--color-muted);
    font-size: 0.62rem;
    line-height: 1;
    opacity: 0.78;
}

.obligation-bar-total {
    width: 2rem;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #2d61a5, #234f8e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.obligation-bar-open {
    width: 1.65rem;
    border-radius: 5px 5px 2px 2px;
    background: rgba(33, 79, 76, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.obligation-bar-column:hover .obligation-bar-value {
    opacity: 1;
    transform: translateY(0);
}

.obligation-chart-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
    gap: 0.7rem;
    padding: 0.55rem 0.6rem 0 0.6rem;
    text-align: center;
}

.obligation-chart-labels strong {
    display: block;
    max-width: 7rem;
    justify-self: center;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.obligation-chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 1.3rem;
    padding-top: 0.55rem;
    color: var(--color-muted);
    font-size: 0.86rem;
}

.obligation-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.obligation-chart-legend i {
    width: 0.75rem;
    height: 0.75rem;
    display: inline-block;
    border-radius: 2px;
}

.legend-total {
    background: #2d61a5;
}

.legend-open {
    background: linear-gradient(90deg, #2e7d32, #f57c00, #c62828);
}

.obligation-detail-main {
    min-height: 100%;
}

.obligation-definition {
    display: grid;
    gap: 1rem;
}

.obligation-definition article {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-muted);
}

.obligation-definition span {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.obligation-definition p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
}

.fulfillment-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.fulfillment-flow article {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-muted);
}

.fulfillment-flow strong {
    color: var(--brand-green);
}

.fulfillment-flow span {
    color: var(--color-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.entity-card {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.entity-card-header,
.entity-card-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.type-label,
.criticality,
.status-badge,
.date-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

.type-label {
    color: var(--color-muted);
    background: var(--color-surface-muted);
}

.criticality {
    color: var(--brand-green);
    background: #ece7df;
}

.status-badge,
.date-pill {
    color: var(--brand-green);
    background: #e8efec;
}

.fact-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.fact-list div {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.75rem;
}

.fact-list.stacked div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
}

.fact-list dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.fact-list dd {
    margin: 0;
    min-width: 0;
}

.document-context-panel {
    margin-bottom: 1.5rem;
}

.document-context-panel .fact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list-stack {
    display: grid;
    gap: 0.7rem;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-muted);
}

.list-row strong,
.list-row span {
    display: block;
}

.list-row span {
    color: var(--color-muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.8rem 0.7rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.table-sort {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    text-transform: inherit;
    cursor: pointer;
}

.table-sort span {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.table-sort:hover,
.table-sort.active {
    color: var(--brand-green);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table.compact th,
.data-table.compact td {
    padding: 0.7rem 0.5rem;
}

.timeline {
    display: grid;
    gap: 0.75rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-muted);
}

.timeline-item time {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.history-list {
    display: grid;
    gap: 0.75rem;
}

.history-item {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface-muted);
}

.history-item time {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.history-item strong,
.history-item span {
    display: block;
}

.history-item strong {
    color: var(--color-text);
}

.history-item div > span {
    margin-top: 0.2rem;
    color: var(--color-muted);
    font-size: 0.86rem;
}

.font-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.font-choice-card {
    display: grid;
    gap: 0.25rem;
    min-height: 8rem;
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-text);
    background: var(--color-surface-muted);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.font-choice-card:hover,
.font-choice-card.active {
    border-color: rgba(33, 79, 76, 0.38);
    box-shadow: 0 14px 36px rgba(33, 79, 76, 0.1);
    transform: translateY(-1px);
}

.font-choice-card.active {
    background: linear-gradient(135deg, rgba(33, 79, 76, 0.1), rgba(220, 213, 205, 0.42));
}

.font-choice-card strong,
.font-choice-card span,
.font-choice-card small {
    display: block;
}

.font-choice-card strong {
    font-size: 1.05rem;
}

.font-choice-card span {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.font-choice-card small {
    align-self: end;
    margin-top: 0.5rem;
    color: var(--brand-green);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h1:focus {
    outline: none;
}

.form-control,
.form-select {
    border-radius: 6px;
    border-color: var(--color-border);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(125, 153, 145, 0.28);
    border-color: var(--color-primary);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 1100px) {
    .metric-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .detail-grid,
    .calendar-layout,
    .benefits-overview,
    .suggestion-list,
    .dashboard-hero,
    .dashboard-insight,
    .document-hero,
    .upload-wizard,
    .landing-hero,
    .landing-section,
    .landing-flow {
        grid-template-columns: 1fr;
    }

    .document-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .content {
        padding: 1rem;
    }

    .page-header,
    .dashboard-hero-actions,
    .calendar-toolbar,
    .calendar-toolbar-actions,
    .entity-card-header,
    .entity-card-footer,
    .list-row {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-month-control {
        justify-content: space-between;
    }

    .metric-grid,
    .benefits-metrics,
    .benefits-donut-wrap,
    .card-grid,
    .document-context-panel .fact-list,
    .form-grid,
    .toolbar {
        grid-template-columns: 1fr;
    }

    .document-hero-actions {
        flex-direction: column;
    }

    .dashboard-preview-list {
        min-width: 0;
    }

    .dashboard-insight-head {
        grid-template-columns: 1fr;
    }

    .dashboard-shortcuts {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .document-browser {
        grid-template-columns: 1fr;
    }

    .document-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .font-choice-grid {
        grid-template-columns: 1fr;
    }

    .landing-parallax {
        background-attachment: scroll;
    }

    .landing-parallax-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .history-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .calendar-grid,
    .calendar-weekdays {
        min-width: 44rem;
    }

    .calendar-panel {
        overflow-x: auto;
    }
}
