/* ── Variables ───────────────────────────────────── */
:root {
    color-scheme: light;

    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;         /* subtle raised bg: table heads, hovers, insets */
    --border: #e2e8f0;
    --border-subtle: #f1f5f9;     /* hairline dividers, lighter than --border */
    --text: #1e293b;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --primary: #3b82f6;           /* saturated brand solid — same in both themes so
                                     white-on-primary button contrast never regresses */
    --primary-hover: #2563eb;
    --primary-soft: rgba(59, 130, 246, 0.1);
    --focus-ring: rgba(59, 130, 246, 0.18);
    /* Semantic solids (dots, bars, button fills) stay saturated in both themes;
       the -strong / -deep variants are for text-on-surface and flip light<->dark. */
    --success: #16a34a;
    --success-strong: #15803d;
    --success-soft: #f0fdf4;
    --success-border: #bbf7d0;
    --danger: #dc2626;
    --danger-strong: #b91c1c;
    --danger-deep: #7f1d1d;
    --danger-soft: #fef2f2;
    --danger-border: #fecaca;
    --warning: #d97706;
    --warning-strong: #b45309;
    --warning-deep: #92400e;
    --warning-soft: #fffbeb;
    --warning-border: #fde68a;
    --violet: #7c3aed;
    --violet-soft: #7c3aed1a;
    --violet-border: #c4b5fd;
    --track: #cbd5e1;             /* uptime-bar base track */
    --ink: #0f172a;              /* recessed dark surfaces: footer, code, tooltips */
    --ink-text: #e2e8f0;
    --sidebar-bg: #0f172a;       /* dark navy in light mode; an elevated surface in dark */
    --header-bg: rgba(255, 255, 255, 0.85);  /* sticky glass header */
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* ── Dark theme ──────────────────────────────────────
   Applied when the OS prefers dark (unless the user forced light via the
   toggle) or when data-theme="dark" is set. Only token *values* change —
   every component already reads them, so no component needs a dark rule. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #0b1220;
        --surface: #131c2e;
        --surface-2: #1b2740;
        --border: #2b3a54;
        --border-subtle: #22304a;
        --text: #e8eef7;
        --text-muted: #9fb0c6;
        --text-faint: #718099;
        --primary: #3b82f6;
        --primary-hover: #60a5fa;
        --primary-soft: rgba(59, 130, 246, 0.22);
        --focus-ring: rgba(96, 165, 250, 0.4);
        --success: #16a34a;
        --success-strong: #4ade80;
        --success-soft: rgba(34, 197, 94, 0.15);
        --success-border: rgba(34, 197, 94, 0.32);
        --danger: #dc2626;
        --danger-strong: #f87171;
        --danger-deep: #fca5a5;
        --danger-soft: rgba(248, 113, 113, 0.14);
        --danger-border: rgba(248, 113, 113, 0.34);
        --warning: #d97706;
        --warning-strong: #fbbf24;
        --warning-deep: #fcd34d;
        --warning-soft: rgba(251, 191, 36, 0.13);
        --warning-border: rgba(251, 191, 36, 0.34);
        --violet: #a78bfa;
        --violet-soft: rgba(167, 139, 250, 0.18);
        --violet-border: rgba(167, 139, 250, 0.4);
        --track: #2b3a54;
        --ink: #0a1120;
        --ink-text: #e2e8f0;
        --sidebar-bg: #16203a;
        --header-bg: rgba(19, 28, 46, 0.85);
        --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
        --shadow: 0 6px 16px -4px rgb(0 0 0 / 0.55), 0 2px 6px -2px rgb(0 0 0 / 0.45);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #131c2e;
    --surface-2: #1b2740;
    --border: #2b3a54;
    --border-subtle: #22304a;
    --text: #e8eef7;
    --text-muted: #9fb0c6;
    --text-faint: #718099;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.22);
    --focus-ring: rgba(96, 165, 250, 0.4);
    --success: #16a34a;
    --success-strong: #4ade80;
    --success-soft: rgba(34, 197, 94, 0.15);
    --success-border: rgba(34, 197, 94, 0.32);
    --danger: #dc2626;
    --danger-strong: #f87171;
    --danger-deep: #fca5a5;
    --danger-soft: rgba(248, 113, 113, 0.14);
    --danger-border: rgba(248, 113, 113, 0.34);
    --warning: #d97706;
    --warning-strong: #fbbf24;
    --warning-deep: #fcd34d;
    --warning-soft: rgba(251, 191, 36, 0.13);
    --warning-border: rgba(251, 191, 36, 0.34);
    --violet: #a78bfa;
    --violet-soft: rgba(167, 139, 250, 0.18);
    --violet-border: rgba(167, 139, 250, 0.4);
    --track: #2b3a54;
    --ink: #0a1120;
    --ink-text: #e2e8f0;
    --sidebar-bg: #16203a;
    --header-bg: rgba(19, 28, 46, 0.85);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow: 0 6px 16px -4px rgb(0 0 0 / 0.55), 0 2px 6px -2px rgb(0 0 0 / 0.45);
}

/* ── Base ────────────────────────────────────────── */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    text-decoration: underline;
}

/* ── Bootstrap: Buttons ──────────────────────────── */
.btn {
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--border);
    background: var(--surface);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border);
    background: var(--surface);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--surface-2);
    border-color: var(--text-faint);
    color: var(--text);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: var(--border);
    background: var(--surface);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-outline-warning {
    color: var(--warning);
    border-color: var(--border);
    background: var(--surface);
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    background: var(--warning-soft);
    border-color: var(--warning);
    color: var(--warning);
}

.btn-outline-success {
    color: var(--success);
    border-color: var(--border);
    background: var(--surface);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: var(--success-soft);
    border-color: var(--success);
    color: var(--success);
}

.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--focus-ring);
    outline: none;
}

/* ── Bootstrap: Forms ────────────────────────────── */
.form-control,
.form-select {
    font-family: inherit;
    font-size: 0.875rem;
    border-color: var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    background-color: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

/* Native <select> option lists ignore inherited theme colours in some browsers — set them explicitly. */
.form-control option,
.form-select option,
select option {
    color: var(--text);
    background-color: var(--surface);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    background-color: var(--surface);
    color: var(--text);
}

.form-control::placeholder {
    color: var(--text-faint);
}

/* ── Bootstrap: Tables ───────────────────────────── */
.table {
    font-size: 0.875rem;
    color: var(--text);
    --bs-table-hover-bg: var(--surface-2);
    --bs-table-striped-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.7375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: var(--surface-2);
    white-space: nowrap;
}

.table tbody tr {
    border-color: var(--border-subtle);
}

.table > :not(caption) > * > * {
    padding: 0.625rem 0.875rem;
}

/* ── Bootstrap: Alerts ───────────────────────────── */
.alert {
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.alert-success {
    background: var(--success-soft);
    border-color: var(--success-border);
    color: var(--success-strong);
}

.alert-danger {
    background: var(--danger-soft);
    border-color: var(--danger-border);
    color: var(--danger-strong);
}

.alert-warning {
    background: var(--warning-soft);
    border-color: var(--warning-border);
    color: var(--warning-strong);
}

/* ── Bootstrap surfaces → themed ─────────────────────
   These components default to a white background in Bootstrap; route them
   through tokens so they follow the theme instead of staying white in dark. */
.card {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.card-header,
.card-footer {
    background-color: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

.form-check-input {
    background-color: var(--surface);
    border-color: var(--border);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ── Page header ─────────────────────────────────── */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    margin: 0;
    /* Fluid: scales with the viewport instead of snapping at one breakpoint. */
    font-size: clamp(1.25rem, 1.05rem + 1vw, 1.4375rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.02em;
}

.eyebrow {
    margin: 0 0 0.25rem;
    color: var(--text-faint);
    font-size: 0.7375rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow a {
    color: inherit;
}

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

/* ── Metrics grid ────────────────────────────────── */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.metric-panel,
.dashboard-panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.metric-panel {
    padding: 1.125rem 1.25rem;
    min-height: 5.5rem;
}

.metric-panel > span {
    display: block;
    color: var(--text-faint);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.metric-panel > strong {
    display: block;
    margin-top: 0.5rem;
    color: var(--text);
    /* Fluid so the big numbers don't crowd their tiles on small phones. */
    font-size: clamp(1.4rem, 1.15rem + 1.3vw, 1.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
}

.metric-good { color: var(--success-strong) !important; }
.metric-bad  { color: var(--danger-strong) !important; }
.metric-warn { color: var(--warning-strong) !important; }

/* ── Dashboard grid ──────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(28rem, 1.5fr);
    gap: 1rem;
    align-items: start;
}

.lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.dashboard-panel {
    padding: 1.25rem;
}

.table-panel {
    overflow: hidden;
    padding: 0;
}

.table-panel > .panel-heading {
    padding: 1.125rem 1.25rem 0;
    margin-bottom: 0.875rem;
}

/* ── Panel heading ───────────────────────────────── */
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-heading h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.panel-heading > span {
    color: var(--text-faint);
    font-size: 0.8125rem;
}

/* ── Form grid ───────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.form-grid label {
    display: grid;
    gap: 0.3125rem;
    min-width: 0;
}

.form-grid label > span {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.wide-field {
    grid-column: 1 / -1;
}

.check-field,
.checkbox-field {
    display: flex !important;
    grid-column: 1 / -1;
    align-items: center;
    gap: 0.5rem !important;
}

.check-field > span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

/* ── Time-range selector ─────────────────────────── */
.range-selector {
    display: inline-flex;
    gap: 0.25rem;
    background: var(--border-subtle);
    padding: 0.2rem;
    border-radius: 8px;
}

.range-btn {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}

.range-btn-active {
    background: var(--surface, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.status-banner-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── Uptime history bars ─────────────────────────── */
.uptime-series {
    margin-top: 0.4rem;
}

.uptime-bar-track {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 34px;
}

.uptime-bar {
    flex: 1 1 auto;
    min-width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--track);
}

.uptime-bar.ub-ok { background: var(--success); }
.uptime-bar.ub-warn { background: var(--warning); }
.uptime-bar.ub-bad { background: var(--danger); }
.uptime-bar.ub-empty { background: var(--border); }

.uptime-percentiles {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.monitor-uptime-history {
    margin-top: 0.6rem;
}

.series-overall {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
}

.region-series {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.region-series-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.2rem;
}

.public-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.public-uptime-bars {
    margin-top: 0.4rem;
}

/* ── Region selection ────────────────────────────── */
.region-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.region-checkboxes .check-field {
    grid-column: auto;
}

.region-summary {
    font-size: 0.8125rem;
    color: var(--text);
    white-space: nowrap;
}

/* ── Status badges ───────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.2rem 0.5625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    display: block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-good {
    background: var(--success-soft);
    color: var(--success-strong);
    border: 1px solid var(--success-border);
}

.status-good::before { background: var(--success); }

.status-bad {
    background: var(--danger-soft);
    color: var(--danger-strong);
    border: 1px solid var(--danger-border);
}

.status-bad::before { background: var(--danger); }

.status-neutral {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status-neutral::before { background: var(--text-faint); }

/* ── Monitor table ───────────────────────────────── */
.monitor-name {
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
}

.monitor-name:hover {
    color: var(--primary);
    text-decoration: none;
}

.monitor-url {
    display: block;
    max-width: 22rem;
    overflow: hidden;
    color: var(--text-faint);
    font-size: 0.775rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.125rem;
}

.monitor-url:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ── Incident & check lists ──────────────────────── */
.incident-list,
.check-list {
    display: grid;
    gap: 0;
}

.incident-row,
.check-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border-subtle);
    padding: 0.6875rem 0;
}

.incident-row:first-child,
.check-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.incident-row strong,
.check-row strong {
    display: block;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
}

.incident-row > div > span,
.check-row > div > span {
    color: var(--text-muted);
    font-size: 0.8125rem;
    display: block;
    margin-top: 0.0625rem;
}

.incident-meta,
.check-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.375rem;
    min-width: 8rem;
    flex-shrink: 0;
    text-align: right;
}

.check-meta > span,
.incident-meta > span {
    font-size: 0.775rem;
    color: var(--text-faint);
}

/* ── Empty / loading ─────────────────────────────── */
.empty-state,
.loading-state {
    border-radius: var(--radius-sm);
    padding: 1.375rem 1rem;
    color: var(--text-faint);
    background: var(--surface-2);
    font-size: 0.875rem;
    text-align: center;
}

/* ── Toast notification ──────────────────────────── */
.toast-notification {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 1050;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 420px;
    animation: toast-in 0.2s ease;
}

.toast-success {
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    color: var(--success-strong);
}

.toast-danger {
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger-strong);
}

.toast-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    opacity: 0.55;
    font-size: 1.0625rem;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
}

.toast-close:hover { opacity: 1; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-0.375rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Uptime & detail metrics ─────────────────────── */
.detail-metrics {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 1rem;
}

.uptime-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.uptime-checks {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-faint);
    font-size: 0.75rem;
}

/* ── Auth pages ──────────────────────────────────── */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.auth-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.auth-field input {
    padding: 0.5625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9375rem;
    transition: border-color 0.15s;
    width: 100%;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.auth-error {
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger-strong);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-success {
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    color: var(--success-strong);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 500;
}

.w-100 { width: 100%; }

.check-error-text {
    color: var(--danger-strong);
    font-size: 0.775rem;
    margin-top: 0.125rem;
}

/* ── Validation ──────────────────────────────────── */
.validation-errors,
.validation-summary-errors,
.validation-summary {
    color: var(--danger-strong);
    font-size: 0.84rem;
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.75rem;
}

h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger-strong); font-size: 0.8125rem; }

.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."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Status page ─────────────────────────────────── */
.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    color: #fff;
    box-shadow: var(--shadow);
}

.status-banner-ok   { background: linear-gradient(135deg, #16a34a, #15803d); }
.status-banner-warn { background: linear-gradient(135deg, #d97706, #b45309); }
.status-banner-bad  { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.status-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.status-banner strong {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
}

.status-banner > div > span {
    font-size: 0.8125rem;
    opacity: 0.85;
}

.status-section {
    margin-bottom: 1.75rem;
}

.status-section-title {
    font-size: 0.7375rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.75rem;
}

.monitor-status-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.125rem 1.375rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s;
}

.monitor-status-card:hover {
    box-shadow: var(--shadow);
}

.monitor-status-disabled { opacity: 0.55; }

.monitor-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.monitor-status-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9375rem;
}

.monitor-status-name a {
    color: inherit;
    text-decoration: none;
}

.monitor-status-name a:hover { color: var(--primary); }

.monitor-status-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.uptime-label { text-align: right; }

.uptime-label strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.uptime-label span {
    color: var(--text-faint);
    font-size: 0.75rem;
}

.uptime-great { color: var(--success-strong); }
.uptime-warn  { color: var(--warning-strong); }
.uptime-bad   { color: var(--danger-strong); }

.monitor-status-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.chart-block { min-width: 0; }

.chart-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-faint);
    margin-bottom: 0.3rem;
}

.chart-empty {
    color: var(--text-faint);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}

.sparkline-svg {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 5px;
    background: var(--surface-2);
}

.sparkline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.2rem;
    color: var(--text-faint);
    font-size: 0.7rem;
}

.check-history-bar {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 36px;
    background: var(--surface-2);
    border-radius: 5px;
    padding: 5px 4px;
    overflow: hidden;
}

.chk-ok, .chk-fail {
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    cursor: default;
    transition: opacity 0.15s;
}

.chk-ok   { background: #22c55e; height: 100%; }
.chk-fail { background: #ef4444; height: 100%; }
.chk-ok:hover, .chk-fail:hover { opacity: 0.7; }

.incident-alert {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.125rem;
    margin-bottom: 0.5rem;
}

.incident-alert strong {
    display: block;
    color: var(--danger-strong);
    font-size: 0.9rem;
    font-weight: 600;
}

.incident-alert span {
    color: var(--danger-deep);
    font-size: 0.8125rem;
}

.incident-alert-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--danger-deep);
}

.incident-history-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.625rem 0;
    border-top: 1px solid var(--border-subtle);
}

.incident-history-row:first-of-type { border-top: none; }

.incident-history-row strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.incident-history-row span {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.incident-history-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-faint);
}

/* ── Modals ──────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100;
}

.modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: min(640px, calc(100vw - 2rem));
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.125rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-panel .form-grid {
    padding: 1.25rem 1.5rem;
}

.modal-panel .alert {
    margin: 0 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: var(--surface);
}

/* ── Billing ─────────────────────────────────────── */
.badge-complimentary {
    background: var(--violet-soft);
    color: var(--violet);
    border-color: var(--violet-border);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.plan-card--current {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.plan-current-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-name { font-size: 1rem; font-weight: 700; color: var(--text); }

.plan-price { display: flex; align-items: baseline; gap: 0.25rem; }
.plan-amount { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.plan-period { font-size: 0.85rem; color: var(--text-muted); }

.plan-description { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.plan-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1.1rem;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.billing-plan-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.billing-status-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.billing-trial-note, .billing-renews { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0; }
.billing-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.usage-meters { display: flex; flex-direction: column; gap: 1rem; }
.usage-meter { display: flex; flex-direction: column; gap: 0.375rem; }
.usage-label { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-muted); }
.usage-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.usage-bar-fill { height: 100%; border-radius: 99px; transition: width 0.3s; }
.usage-bar-fill--ok { background: var(--success); }
.usage-bar-fill--warning { background: var(--warning); }
.usage-bar-fill--danger { background: var(--danger); }
.usage-stat { display: flex; justify-content: space-between; font-size: 0.875rem; padding-top: 0.25rem; }
.usage-stat span { color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640.98px) {
    .dashboard-header { align-items: flex-start; flex-direction: column; }
    .metrics-grid, .dashboard-grid, .lower-grid, .form-grid { grid-template-columns: 1fr; }
    .detail-metrics, .uptime-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .incident-row, .check-row { flex-direction: column; }
    .incident-meta, .check-meta { justify-content: flex-start; text-align: left; }
    .monitor-url { max-width: 16rem; }
    .monitor-status-header { flex-direction: column; }
    .monitor-status-right { align-items: flex-start; }
    .monitor-status-charts { grid-template-columns: 1fr; }
    .incident-alert, .incident-history-row { flex-direction: column; }
    .incident-alert-meta, .incident-history-meta { align-items: flex-start; }
    .toast-notification { left: 1rem; right: 1rem; max-width: none; }
}

@media (min-width: 641px) and (max-width: 1100px) {
    .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
}

/* ── Admin System Settings ───────────────────────── */
.settings-section {
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.settings-section-desc {
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

.settings-field {
    margin-bottom: 1.1rem;
}

.settings-field:last-child {
    margin-bottom: 0;
}

.settings-section-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.settings-save-msg {
    font-size: 0.875rem;
}

/* ════════════════════════════════════════════════════
   Marketing site (landing / features / pricing)
   ════════════════════════════════════════════════════ */
.marketing-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    color: var(--text);
}

.marketing-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.marketing-narrow {
    max-width: 760px;
}

/* Header */
.marketing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}

.marketing-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 64px;
}

.marketing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.0625rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.marketing-brand:hover { text-decoration: none; }

.marketing-links {
    display: flex;
    gap: 1.25rem;
    margin-left: 0.5rem;
}

.marketing-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.marketing-links a:hover { color: var(--text); text-decoration: none; }

.marketing-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marketing-signin {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobile disclosure menu — surfaces the nav links that leave the bar < 640px.
   Uses <details>/<summary> so it needs no JS or interactive render mode. */
.marketing-menu {
    display: none;
    position: relative;
    margin-left: 0.25rem;
}
.marketing-menu-btn {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
}
.marketing-menu-btn::-webkit-details-marker { display: none; }
.marketing-menu-btn::marker { content: ""; }
.marketing-menu[open] .marketing-menu-btn { background: var(--bg); color: var(--text); }
.marketing-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 168px;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 60;
}
.marketing-menu-panel a {
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}
.marketing-menu-panel a:hover { background: var(--bg); text-decoration: none; }

.marketing-main { flex: 1; }

/* Footer */
.marketing-footer {
    margin-top: auto;
    background: var(--ink);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}

.marketing-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marketing-footer-brand { max-width: 320px; }
.marketing-footer-brand .marketing-brand { color: #fff; }
.marketing-footer-brand p { margin: 0.75rem 0 0; font-size: 0.875rem; color: #94a3b8; }

.marketing-footer-cols { display: flex; gap: 3rem; }
.marketing-footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.marketing-footer-col h4 {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.marketing-footer-col a { color: #cbd5e1; font-size: 0.875rem; }
.marketing-footer-col a:hover { color: #fff; text-decoration: none; }

.marketing-footer-base {
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Legal pages (Terms, Privacy) */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    line-height: 1.7;
}

.legal-page h1 { font-size: 2rem; margin-bottom: 0.25rem; color: var(--text); }
.legal-page h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.5rem; color: var(--text); }
.legal-page p, .legal-page li { color: var(--text); }
.legal-page ul { padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.35rem; }

.legal-updated { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

.legal-draft-note {
    background: var(--warning-soft);
    border: 1px solid var(--warning-border);
    color: var(--warning-deep);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

.legal-footer-links {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* Hero */
.hero {
    background: radial-gradient(1200px 500px at 70% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
                linear-gradient(180deg, #0b1220 0%, #111c34 55%, #0f172a 100%);
    color: #e2e8f0;
    padding: 5rem 0 5.5rem;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
}

.hero-title {
    margin: 0;
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-accent { color: #60a5fa; }

.hero-sub {
    margin: 1.25rem 0 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 36rem;
}

.hero-cta {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-note { margin: 1rem 0 0; font-size: 0.85rem; color: #64748b; }

.btn-lg { padding: 0.6rem 1.4rem; font-size: 0.975rem; font-weight: 600; }

.btn-outline-light-marketing {
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
}

.btn-outline-light-marketing:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Hero mock card */
.hero-visual { display: flex; justify-content: center; }

.hero-card {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
    padding: 1.25rem;
    color: var(--text);
}

.hero-card-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-card-row-sub {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.hero-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.hero-dot-up { background: var(--success); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.hero-dot-down { background: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

.hero-card-name { font-weight: 600; font-size: 0.9rem; }

.hero-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hero-badge-up { background: var(--success-soft); color: var(--success); }
.hero-badge-down { background: var(--danger-soft); color: var(--danger); }

.hero-card-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 38px;
    margin: 0.9rem 0 0.6rem;
}
.hero-bar { flex: 1; height: 100%; border-radius: 2px; background: #16a34a; opacity: 0.85; }
.hero-bar-bad { background: var(--danger); }

.hero-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-title { margin: 0; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
.section-sub { margin: 0.75rem 0 0; font-size: 1.05rem; color: var(--text-muted); }

/* Feature grid (landing) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title { margin: 0.85rem 0 0.4rem; font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.feature-benefit { margin: 0; font-size: 0.925rem; color: var(--text); line-height: 1.55; }
.feature-tech { margin: 0.7rem 0 0; font-size: 0.825rem; color: var(--text-muted); line-height: 1.5; }
.feature-tech span { font-weight: 600; color: var(--text-faint); }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.step-num {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.9rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.0625rem; font-weight: 700; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.925rem; line-height: 1.55; }

/* Pricing on marketing pages */
.plans-grid-marketing { justify-content: center; margin: 0 auto 1.5rem; }
.section-pricing .plans-grid { max-width: 1000px; margin-left: auto; margin-right: auto; }

.pricing-faq { max-width: 760px; margin: 3.5rem auto 0; }
.pricing-faq .section-title { text-align: center; font-size: 1.4rem; margin-bottom: 1.25rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--text-faint); font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0.7rem 0 0; color: var(--text-muted); font-size: 0.925rem; line-height: 1.6; }

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--primary) 0%, #6366f1 100%);
    color: #fff;
    padding: 3.5rem 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 { margin: 0; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; }
.cta-inner p { margin: 0.6rem 0 1.5rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-light { font-weight: 700; color: var(--primary); }

/* Secondary page hero (features / pricing) */
.page-hero {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0;
    text-align: center;
}
.page-hero-title { margin: 0.75rem 0 0; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
.page-hero-sub { margin: 1rem auto 1.5rem; max-width: 640px; font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; }
.page-hero .hero-cta { justify-content: center; }
.page-hero .hero-eyebrow { color: var(--primary); }

/* Feature groups (features page) */
.feature-group-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}
.feature-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.feature-row-main h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-title { font-size: 2.25rem; }
    .feature-grid, .steps, .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .marketing-links { display: none; }
    .marketing-menu { display: block; }
    .marketing-signin { display: none; } /* now lives inside the disclosure menu */
    .section { padding: 3rem 0; }
    .hero { padding: 3.5rem 0 4rem; }
    .marketing-footer-inner { flex-direction: column; gap: 1.5rem; }
    .marketing-footer-cols { gap: 2rem; }
}

/* API key secret reveal */
.api-key-secret {
    display: block;
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--ink-text);
    border-radius: var(--radius, 8px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    word-break: break-all;
    white-space: pre-wrap;
}

/* Admin application log viewer */
.log-row-error td { background: rgba(239, 68, 68, 0.06); }
.log-row-warning td { background: rgba(245, 158, 11, 0.06); }
.badge-warn { background: #f59e0b; color: #fff; }
.badge-neutral { background: #64748b; color: #fff; }
.log-exception {
    margin: 0.4rem 0 0;
    padding: 0.5rem 0.65rem;
    background: var(--ink);
    color: var(--ink-text);
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 220px;
    overflow: auto;
}

/* Log viewer pager */
.logs-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.logs-pager-buttons { display: flex; align-items: center; gap: 0.35rem; }

/* ── Compact data table (.checks-table) ──────────────── */
.checks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.checks-table thead th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.checks-table tbody td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--bg);
    color: var(--text);
    vertical-align: middle;
}
.checks-table tbody tr:last-child td { border-bottom: none; }
.checks-table tbody tr:hover td { background: var(--surface-2); }
.checks-table th.num, .checks-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Recent-scans history under the Core Web Vitals panel */
.cwv-history-title {
    margin: 1.4rem 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}
.device-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
}

/* Header action clusters wrap on small screens instead of overflowing. */
.header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* Belt-and-suspenders: no element should scroll the whole page sideways on mobile
   (wide tables scroll inside their own .table-responsive wrapper instead). */
@media (max-width: 640.98px) {
    html, body { overflow-x: hidden; }

    /* iOS zooms the whole page when it focuses an input under 16px — pin form
       fields to 16px on phones so focusing them doesn't trigger that jump. */
    .form-control,
    .form-select,
    .auth-field input,
    textarea {
        font-size: 16px;
    }

    /* Roomier tap targets for small inline controls on touch screens. */
    .range-btn { padding: 0.4rem 0.7rem; }
    .storefront-remove-btn { padding: 0.3rem 0.55rem; }
    .storefront-caret { padding: 0.2rem 0.35rem; }
    .btn-sm { padding-top: 0.35rem; padding-bottom: 0.35rem; }

    /* Bump the smallest chips/labels a notch for legibility on phones. */
    .role-chip,
    .storefront-page-role { font-size: 0.72rem; }
    .group-platform,
    .storefront-page-keyword,
    .storefront-count { font-size: 0.75rem; }
}

/* ── Mobile: stacked "card" tables ───────────────────────
   Opt-in via .table-stack on a <table>. Below 640px each row becomes a
   self-contained labelled card; every cell shows its column name from its
   data-label attribute. Cells with no data-label (a row's primary name,
   or an action-button cluster) span the full card width instead. */
@media (max-width: 640.98px) {
    table.table-stack > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    table.table-stack,
    table.table-stack > tbody { display: block; width: 100%; }

    table.table-stack > tbody > tr {
        display: block;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.55rem 0.9rem;
        margin-bottom: 0.65rem;
        box-shadow: var(--shadow-sm);
    }

    table.table-stack > tbody > tr > td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        text-align: right;
        padding: 0.35rem 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--bg) !important;
        white-space: normal;
    }
    table.table-stack > tbody > tr > td:last-child { border-bottom: 0 !important; }

    table.table-stack > tbody > tr > td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        text-align: left;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-faint);
    }

    /* Unlabelled cells (primary name / action clusters) go full-width. */
    table.table-stack > tbody > tr > td:not([data-label]),
    table.table-stack > tbody > tr > td[data-label=""] {
        display: block;
        text-align: left;
        white-space: normal !important;
    }
    table.table-stack > tbody > tr > td:not([data-label])::before,
    table.table-stack > tbody > tr > td[data-label=""]::before { content: none; }

    /* Bootstrap right-aligns action cells; undo that inside a card. */
    table.table-stack > tbody > tr > td.text-end { text-align: left !important; }

    /* The dashboard monitors table nests grouped rows: a group header is a
       single full-width cell — render it as a section band, not a card. */
    table.table-stack > tbody > tr.group-header-row {
        background: var(--bg);
        box-shadow: none;
    }
    table.table-stack > tbody > tr.group-header-row > td { border-bottom: 0 !important; }
}

/* ── Theme toggle ────────────────────────────────────── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
/* The half-filled disc reads as "contrast / switch theme" in either mode. */
.theme-toggle .tt-fill { fill: currentColor; }
.top-row .theme-toggle { margin-right: 0.6rem; }

/* ── Info tooltips (InfoTip component) ───────────────── */
.info-tip {
    position: relative;
    display: inline-flex;
    margin-left: 0.3rem;
    vertical-align: middle;
    cursor: help;
    outline: none;
}
.info-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    transition: background 0.12s ease, color 0.12s ease;
}
.info-tip:hover .info-tip-icon,
.info-tip:focus .info-tip-icon { background: var(--primary); color: #fff; }
.info-tip-bubble {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 260px;
    background: var(--ink);
    color: var(--ink-text);
    font-size: 0.75rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 60;
    pointer-events: none;
}
.info-tip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ink);
}
.info-tip:hover .info-tip-bubble,
.info-tip:focus .info-tip-bubble { opacity: 1; visibility: visible; }

/* ── Dashboard: grouped storefront rows ──────────────── */
.group-header-row { cursor: pointer; background: var(--surface-2); }
.group-header-row:hover { background: var(--border-subtle); }
.group-header-row > td {
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    border-top: 1px solid var(--border);
}
.group-caret {
    display: inline-block;
    width: 1rem;
    color: var(--text-faint);
    font-size: 0.8rem;
}
.group-name { margin: 0 0.5rem; color: var(--text); }
.group-platform {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    margin-right: 0.4rem;
    text-transform: capitalize;
}
.group-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.group-member-row > td:first-child { padding-left: 2.25rem; }
.group-divider-row { cursor: default; background: transparent; }
.group-divider-row:hover { background: transparent; }
.group-divider-row > td {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
    font-weight: 600;
}
.role-chip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* ── Storefronts page ────────────────────────────────── */
.usage-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}
.storefront-grid {
    display: grid;
    /* min(340px, 100%) so a single card never exceeds a ~335px phone viewport. */
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1rem;
}
.storefront-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--text-faint);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}
.storefront-card:hover { box-shadow: var(--shadow); }
.storefront-card.is-up { border-left-color: var(--success); }
.storefront-card.is-down { border-left-color: var(--danger); }
.storefront-card.is-degraded { border-left-color: var(--warning); }
.storefront-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
}
.storefront-card-head:hover { background: var(--surface-2); }
.storefront-title { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.storefront-title h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.storefront-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.storefront-count { font-size: 0.75rem; color: var(--text-muted); }
.storefront-caret { color: var(--text-faint); font-size: 0.8rem; align-self: center; }
.storefront-pages { border-top: 1px solid var(--border); }
.storefront-page-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--bg);
    font-size: 0.825rem;
}
.storefront-page-row:first-child { border-top: none; }
.storefront-page-role {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
}
.storefront-page-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-weight: 600;
}
.storefront-page-name:hover { color: var(--primary); }
.storefront-page-keyword {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.02rem 0.35rem;
    vertical-align: middle;
}
.storefront-page-actions { display: inline-flex; gap: 0.35rem; align-items: center; }
.storefront-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}
.storefront-empty-icon { font-size: 2.5rem; opacity: 0.5; margin-bottom: 0.5rem; }

/* ── Storefront card head actions + edit panel ───────── */
.storefront-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.storefront-head-actions .storefront-caret { cursor: pointer; }
.storefront-edit { padding: 0.5rem 1rem 1rem; border-top: 1px solid var(--border); }
.storefront-edit-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin: 0.25rem 0 0.35rem; }
.storefront-edit hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0 0.75rem; }
.storefront-remove-btn { line-height: 1; padding: 0.1rem 0.4rem; }
.storefront-remove-confirm { display: inline-flex; gap: 0.35rem; }
.storefront-add-page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--border);
}
.storefront-add-page .form-control { flex: 1 1 8rem; min-width: 7rem; }
.storefront-add-page select.form-control { flex: 0 0 auto; }

/* ── Storefront sections on the status pages ─────────── */
.storefront-status-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.5rem 0.25rem;
    margin-bottom: 1rem;
    background: var(--surface-2);
}
.storefront-status-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem 0.6rem;
    flex-wrap: wrap;
}
.storefront-status-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.storefront-status-count { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
/* Indent member cards slightly so the tree reads as nested. */
.storefront-status-section .monitor-status-card { margin-left: 0.5rem; }

/* Public status page storefront grouping */
.public-storefront-section {
    border: 1px solid var(--border);
    border-radius: var(--radius, 10px);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}
.public-storefront-section .storefront-status-head { padding: 0.25rem 0 0.6rem; }
.public-storefront-section .public-monitor-row { padding-left: 0.5rem; }

/* ════════════════════════════════════════════════════
   Accessibility & touch polish
   ════════════════════════════════════════════════════ */

/* Visible keyboard focus for interactive elements that don't already carry
   their own focus ring (.btn / form controls / .theme-toggle handle their own).
   :focus-visible keeps the ring off mouse clicks, on for keyboard/AT users. */
a:focus-visible,
summary:focus-visible,
.sidebar-link:focus-visible,
.navlink:focus-visible,
.top-row-logout:focus-visible,
.modal-close:focus-visible,
.toast-close:focus-visible,
.storefront-caret:focus-visible,
.storefront-page-name:focus-visible,
.marketing-menu-btn:focus-visible,
.marketing-signin:focus-visible,
.range-btn:focus-visible,
.info-tip:focus-visible,
.faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* On touch devices, guarantee a comfortable ~44px hit area for the small
   icon-only controls without inflating them on precise (mouse) pointers. */
@media (pointer: coarse) {
    .theme-toggle,
    .marketing-menu-btn,
    .modal-close,
    .toast-close,
    .storefront-caret,
    .storefront-remove-btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Inline links inside table/list rows get a taller tap area via padding. */
    .top-row-logout { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}

/* Respect users who ask for less motion: neutralise transitions/animations. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
