html, body {
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Shared add/edit dialogs: the content scrolls while actions remain reachable. */
.kf-form-dialog-content {
    max-height: min(70vh, 46rem);
    overflow-y: auto;
}

.kf-form-dialog-actions {
    background: var(--surface-card, var(--mud-palette-surface));
    border-top: 1px solid var(--border-subtle, var(--mud-palette-divider));
}

@media (max-width: 600px) {
    .kf-form-dialog-content {
        max-height: none;
        padding-bottom: var(--space-4, 1rem);
    }

    .kf-form-dialog-actions {
        padding-bottom: max(var(--space-3, 0.75rem), env(safe-area-inset-bottom));
    }

    .kf-dialog-primary-action {
        min-height: 44px;
        flex: 1 1 auto;
    }
}

@media (max-width: 959.98px) {
    .mud-dialog-fullscreen:has(.kf-form-dialog-content) {
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
}

/* Numeric / tabular figures (session counts, %, dates) — koshiFlo design language. */
.kf-numeric {
    font-family: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
    font-variant-numeric: tabular-nums;
}

/* Small brand mark used in the app drawer header. Sits on the indigo drawer,
   so it uses a light-on-brand tile rather than the old landing red. */
.dojo-brand-mark {
    align-items: center;
    background: var(--brand-600, #386074);
    border-radius: 0.5rem;
    color: #fff;
    display: inline-flex;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   Brand-indigo navigation drawer (koshiFlo design language: --brand-900 panel).
   The drawer background is dark, so force legible light text/icons/dividers for
   the existing NavMenu content. Active item = rgba(255,255,255,0.12) per spec.
   ════════════════════════════════════════════════════════════════════════════ */
[data-kf-theme="indigo"] .mud-drawer .mud-typography { color: rgba(255, 255, 255, 0.92); }
[data-kf-theme="indigo"] .mud-drawer .mud-typography-overline,
[data-kf-theme="indigo"] .mud-drawer .mud-typography-caption,
[data-kf-theme="indigo"] .mud-drawer .mud-secondary-text { color: rgba(255, 255, 255, 0.58) !important; }
[data-kf-theme="indigo"] .mud-drawer .mud-nav-link { color: rgba(255, 255, 255, 0.82); }
[data-kf-theme="indigo"] .mud-drawer .mud-nav-link .mud-icon-root { color: var(--brand-300, #8FB0BE); }
[data-kf-theme="indigo"] .mud-drawer .mud-nav-link:hover { background: rgba(255, 255, 255, 0.06); }
[data-kf-theme="indigo"] .mud-drawer .mud-nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
[data-kf-theme="indigo"] .mud-drawer .mud-nav-link.active .mud-icon-root { color: #fff; }
[data-kf-theme="indigo"] .mud-drawer .mud-divider { border-color: rgba(255, 255, 255, 0.12); }
[data-kf-theme="indigo"] .mud-drawer .mud-button-outlined {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}
[data-kf-theme="indigo"] .mud-drawer .mud-button-outlined:hover { background: rgba(255, 255, 255, 0.08); }

/* ════════════════════════════════════════════════════════════════════════════
   koshiFlo design-language components (Club Overview / Student Journey /
   Needs Attention). Presentational classes driven by the token custom
   properties in tokens/colors.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* Card surface — hairline border does the separating; shadow is quiet. */
.kf-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--card-padding);
}

/* Redundant status shapes — never rely on colour alone. Filled with currentColor. */
.kf-shape {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: currentColor;
    flex: none;
}
.kf-shape-circle { border-radius: var(--radius-full); }
.kf-shape-square { border-radius: var(--radius-xs); }
.kf-shape-diamond { border-radius: 1px; transform: rotate(45deg); }

/* Status badge — reads as a label (4px radius), not a game token. */
.kf-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 3px var(--space-2);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: var(--text-label-md);
    white-space: nowrap;
}

/* Avatar — the only fully-round shape; ringed in the current-grade colour. */
.kf-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--brand-100);
    color: var(--brand-800);
    font-family: var(--font-display);
    font-weight: 700;
    flex: none;
    box-shadow: 0 0 0 2px var(--kf-ring, var(--brand-300));
}

/* Explainable "next action" callout — brand-tinted, never a bare score. */
.kf-guidance {
    display: flex;
    gap: var(--space-3);
    background: var(--surface-brand-tint);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font: var(--text-body-sm);
    color: var(--text-secondary);
}
.kf-guidance::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: var(--radius-full);
    background: var(--brand-600);
    flex: none;
}

/* Stat card — mono figure over a small label. */
.kf-stat {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
}
.kf-stat-value {
    font: var(--text-numeric-lg);
    color: var(--text-primary);
}
.kf-stat-label {
    font: var(--text-label-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-caps);
    margin-top: 2px;
}

/* Progress timeline — circle nodes (routine) vs diamond nodes (milestones). */
.kf-timeline { position: relative; }
.kf-timeline-item {
    position: relative;
    padding: 0 0 var(--space-6) var(--space-8);
}
.kf-timeline-item::before { /* connecting rule */
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 0;
    width: 2px;
    background: var(--ink-200);
}
.kf-timeline-item:last-child::before { display: none; }
.kf-timeline-node {
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 14px;
    background: var(--surface-card);
    border: 2px solid var(--ink-300);
    border-radius: var(--radius-full);
}
.kf-timeline-node.kf-milestone {
    border-color: var(--sand-700);
    background: var(--sand-300);
    border-radius: 2px;
    transform: rotate(45deg);
}
.kf-timeline-date { font: var(--text-numeric-sm); color: var(--text-tertiary); }
.kf-timeline-title { font: var(--text-label-md); color: var(--text-primary); }
.kf-timeline-desc { font: var(--text-body-sm); color: var(--text-secondary); }

/* Grading-readiness checklist — every requirement listed; never one score. */
.kf-check-row {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-subtle);
}
.kf-check-row:first-child { border-top: none; }
.kf-check-box {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--ink-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: none;
    margin-top: 1px;
}
.kf-check-box.kf-met {
    background: var(--state-progress-fg);
    border-color: var(--state-progress-fg);
}
.kf-check-label { font: var(--text-label-md); color: var(--text-primary); }
.kf-check-detail { font: var(--text-numeric-sm); color: var(--text-tertiary); }
.kf-check-banner {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--state-ready-bg);
    border: 1px solid var(--state-ready-border);
    color: var(--state-ready-fg);
    font: var(--text-label-md);
    text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   Shared landing / public-page components (used by Home + Plans pages)
   ════════════════════════════════════════════════════════════════════════════ */

/* Header */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(1.5rem, calc((100% - 72rem) / 2));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.landing-brand:hover { color: #0f172a; text-decoration: none; }

.landing-brand-mark {
    width: 34px;
    height: 34px;
    background: #2C4B5C;
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.landing-brand-mark--sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Links & buttons */
.landing-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.landing-link:hover { color: #0f172a; text-decoration: none; }

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2C4B5C;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.landing-button:hover {
    background: #17262E;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.landing-secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.landing-button.large,
.landing-secondary.large {
    padding: 0.8125rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* Footer */
.landing-footer {
    padding: 1.75rem max(1.5rem, calc((100% - 72rem) / 2));
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-footer-brand strong {
    display: block;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.landing-footer-brand p {
    margin: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.landing-footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.kf-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
}

.kf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.kf-social a:hover {
    color: #f59e0b;
    opacity: 1;
}

/* On the dark marketing footer the muted secondary tone can read too faint,
   so lift the resting colour and let hover pop to the brand accent. */
.kf-marketing-footer .kf-social {
    color: rgba(255, 255, 255, 0.7);
}

.help-page {
    max-width: 72rem;
}

.help-hero {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.help-hero p {
    color: #344767;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 56rem;
}

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

.help-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
}

.help-section h5 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.help-section p,
.help-section li {
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 1.65;
}

.help-section ul,
.help-section ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.help-section li + li {
    margin-top: 0.35rem;
}

.help-note {
    background: #f8fafc;
    border-left: 3px solid #1a73e8;
    border-radius: 6px;
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
}

.cookie-consent {
    align-items: flex-end;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    bottom: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    left: 1rem;
    max-width: min(58rem, calc(100vw - 2rem));
    padding: 1rem;
    position: fixed;
    z-index: 1900;
}

.cookie-consent__title {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cookie-consent__copy {
    color: #475569;
    line-height: 1.55;
    max-width: 44rem;
}

.cookie-consent__choices {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.cookie-consent__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.cookie-consent__meta a,
.cookie-consent__link {
    background: transparent;
    border: 0;
    color: #2C4B5C;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-settings-button {
    background: #fff;
    border: 1px solid #e2e8f0;
    bottom: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.16);
    left: 1rem;
    position: fixed;
    z-index: 1850;
}

.legal-page {
    background: #f8fafc;
    min-height: 100vh;
}

.legal-main {
    padding: 3rem max(1.5rem, calc((100% - 72rem) / 2));
}

.legal-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-width: 60rem;
    padding: 2rem;
}

.legal-kicker {
    color: #2C4B5C;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.legal-panel h1 {
    color: #0f172a;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.legal-panel h2 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 2rem 0 0.75rem;
}

.legal-panel p,
.legal-table {
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
}

.legal-table-wrap {
    overflow-x: auto;
}

.legal-table {
    border-collapse: collapse;
    min-width: 44rem;
    width: 100%;
}

.legal-table th,
.legal-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 800;
}

.legal-table code {
    background: #f1f5f9;
    border-radius: 4px;
    color: #0f172a;
    padding: 0.1rem 0.25rem;
}

/* Shared koshiFlo marketing copy pages: About, Privacy, Terms. */
.kf-marketing {
    background: #0A0A0A;
    color: #EDEDED;
    min-height: 100vh;
}

.kf-simple-page {
    color-scheme: dark;
}

.kf-simple-hero {
    background: #141414;
    border-bottom: 1px solid #2E2E2E;
}

.kf-hero-inner {
    position: relative;
    z-index: 2;
}

.kf-simple-head {
    margin: 0 auto;
    max-width: 680px;
    padding: 56px 0 72px;
    text-align: center;
}

.kf-simple-title {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0;
}

.kf-simple-head .kf-hero-badge {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kf-simple-section {
    padding: 72px 0 96px;
}

.kf-copy-panel,
.kf-copy-card {
    background: #141414 !important;
    border-color: #2E2E2E !important;
}

.kf-copy-panel h2 {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 2rem 0 0.65rem;
}

.kf-copy-panel p {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.kf-copy-panel p + p {
    margin-top: 1rem;
}

.kf-copy-panel a {
    color: #F5C518;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 640px) {
    .landing-header { padding: 0 1rem; }

    .landing-footer {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .cookie-consent {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .cookie-consent__choices {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions .mud-button-root {
        flex: 1 1 auto;
    }

    .legal-main {
        padding: 2rem 1rem;
    }

    .legal-panel {
        padding: 1.25rem;
    }

    .legal-panel h1 {
        font-size: 2rem;
    }
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    color-scheme: light only;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

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

.http-status-page {
    max-width: 72rem;
}

/* koshiFlo in-app surface (matches WebTheme / MainLayout): light page, white
   cards, #E0E3E5 lines, Koshi Indigo accent #2C4B5C — never red (destructive only). */
.http-status-shell {
    background: transparent;
    min-height: calc(100vh - 64px);
    padding: 2rem max(1.5rem, calc((100% - 72rem) / 2)) 3rem;
}

.http-status-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.http-status-code-link {
    align-items: flex-start;
    background: #FFFFFF;
    border: 1px solid #E0E3E5;
    border-radius: 8px;
    color: #1B2024;
    display: flex;
    flex-direction: column;
    min-height: 7rem;
    padding: 1rem;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.http-status-code-link:hover {
    border-color: #2C4B5C;
    box-shadow: 0 0.75rem 1.5rem rgba(27, 32, 36, 0.08);
    color: #1B2024;
    text-decoration: none;
    transform: translateY(-2px);
}

.http-status-code {
    color: #2C4B5C;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.http-status-description {
    color: #545D66;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.75rem;
}

.http-status-detail {
    background: #FFFFFF;
    border: 1px solid #E0E3E5;
    border-radius: 8px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.http-status-detail-header {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.http-status-detail-code {
    align-items: center;
    background: #2C4B5C;
    border-radius: 8px;
    color: #FFFFFF;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 800;
    height: clamp(5rem, 13vw, 7rem);
    justify-content: center;
    line-height: 1;
    min-width: clamp(6.5rem, 17vw, 9rem);
    padding: 0 1rem;
}

.http-status-detail h1 {
    color: #1B2024;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.http-status-quote {
    background: #F4F5F5;
    border: 1px solid #E0E3E5;
    border-left: 6px solid #2C4B5C;
    border-radius: 8px;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.http-status-quote blockquote {
    color: #1B2024;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.http-status-quote figcaption {
    border-top: 1px solid rgba(44, 75, 92, 0.2);
    color: #545D66;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.2rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.http-status-quote cite {
    color: #386074;
    font-style: normal;
    font-weight: 600;
}
