:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #aab6d3;
  --line: rgb(170 182 211 / 15%);
  --panel: rgb(20 28 49 / 82%);
  --accent: #93adff;
  --page-gutter: clamp(1rem, 3vw, 2rem);
  --public-content-width: 1120px;
  --chrome-content-width: 1160px;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #0b1020; }
a { color: inherit; }
.site-shell { min-height: 100vh; background: radial-gradient(ellipse at 50% 0, rgb(43 63 112 / 25%), transparent 55%), #0b1020; }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--chrome-content-width)); margin: auto; }
.topbar { min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .65rem; background: linear-gradient(145deg, #90aaff, #617ce0); color: #10182b; }
.brand-muted { color: var(--muted); font-weight: 500; }
.live-label, .development-indicator { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .8rem; }
.live-dot, .status-icon { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: #70d7a0; box-shadow: 0 0 15px rgb(112 215 160 / 45%); }
#live-state[data-connection="connecting"] .live-dot { background: #93adff; box-shadow: none; }
#live-state[data-connection="disconnected"] .live-dot { background: #ff9b9b; box-shadow: none; }
.page-content { width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--public-content-width)); margin: auto; padding: clamp(3rem, 7vw, 5rem) 0 4rem; }
.hero { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.eyebrow { margin: 0 0 .7rem; color: #8295c5; font-size: .7rem; font-weight: 750; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: .9rem; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 650; letter-spacing: -.065em; line-height: 1.05; }
h2 { margin-bottom: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.hero-copy { max-width: 570px; margin-bottom: 2rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.overall-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .7rem; width: fit-content; max-width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgb(20 28 49 / 72%); font-size: .88rem; font-weight: 600; }
.overall-status[data-status="major_outage"] .status-icon, .service-status[data-status="major_outage"] .status-icon { background: #ff7676; box-shadow: 0 0 12px rgb(255 118 118 / 35%); }
.overall-status[data-status="partial_outage"] .status-icon, .service-status[data-status="partial_outage"] .status-icon { background: #ff9a55; box-shadow: 0 0 12px rgb(255 154 85 / 35%); }
.overall-status[data-status="degraded"] .status-icon, .service-status[data-status="degraded"] .status-icon { background: #ffd166; box-shadow: 0 0 12px rgb(255 209 102 / 30%); }
.overall-status[data-status="maintenance"] .status-icon, .service-status[data-status="maintenance"] .status-icon { background: #93adff; box-shadow: 0 0 12px rgb(147 173 255 / 30%); }
.overall-status[data-status="unknown"] .status-icon, .service-status[data-status="unknown"] .status-icon { background: #98a5bf; box-shadow: none; }
.updated-at { margin-left: .3rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
.timezone-note { margin: .65rem 0 0; color: var(--muted); font-size: .72rem; }
.page-content section + section { margin-top: clamp(2.5rem, 4.5vw, 3.5rem); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.service-list, .record-list { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.service-card { padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); }
.service-card:last-child, .record-card:last-child { border-bottom: 0; }
.external-card-link-only { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.2rem; }
.external-card-link-only .service-head { flex: 1 1 250px; }
.external-card-link-only .external-note { flex: 1 1 100%; margin: 0; }
.external-links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.external-status-link { display: inline-flex; align-items: center; gap: .35rem; color: #b4c5ff; font-size: .78rem; text-decoration: none; }
.external-status-link::after { content: "↗"; font-size: .9em; }
.external-status-link:hover, .external-homepage:hover { text-decoration: underline; }
.external-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem .9rem; }
.external-details { margin-top: .7rem; }
.external-details > summary { width: fit-content; color: #b4c5ff; font-size: .76rem; cursor: pointer; }
.external-details > summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.external-details .service-metrics { margin-top: .7rem; }
.external-details .record-message { flex: 1 1 100%; }
.maintenance-countdown { margin: .7rem 0 .3rem; color: #c5d1f2; font-size: .8rem; font-weight: 600; }
.service-head { display: flex; justify-content: space-between; gap: 1rem; min-width: 0; }
.service-head > div { min-width: 0; }
.service-name { margin: 0 0 .3rem; font-weight: 650; }
.service-description, .record-message { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.stale-notice { margin: .8rem 0 0; color: #ffd38a; font-size: .78rem; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.service-status { display: inline-flex; align-items: center; align-self: flex-start; gap: .5rem; white-space: nowrap; color: #a9e7c2; font-size: .78rem; }
.service-status[data-status="major_outage"] { color: #ff9b9b; }
.service-status[data-status="partial_outage"] { color: #ffb57d; }
.service-status[data-status="degraded"] { color: #ffe08a; }
.service-status[data-status="maintenance"] { color: #b8c8ff; }
.service-status[data-status="unknown"] { color: var(--muted); }
.service-metrics { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; margin-top: .75rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.service-primary-metrics { gap: .55rem; margin-top: 1rem; }
.service-primary-metrics span { min-width: 0; overflow-wrap: anywhere; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: rgb(11 16 32 / 40%); color: #d7def0; }
.service-secondary-details { margin-top: .7rem; }
.service-secondary-details > summary { width: fit-content; color: #b4c5ff; font-size: .76rem; cursor: pointer; }
.service-secondary-details > summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.service-secondary-metrics { margin-top: .7rem; }
.history { display: flex; height: 28px; gap: 3px; width: 100%; margin-top: .8rem; }
.history-bar { position: relative; z-index: 0; flex: 1; min-width: 2px; padding: 0; border: 0; border-radius: 3px; background: #55617b; cursor: pointer; transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease; }
.history-bar[data-success="true"] { background: #62c990; color: #62c990; }
.history-bar[data-success="false"] { background: #f07474; color: #f07474; }
.history-bar[data-success="mixed"] { background: #ffc45d; color: #ffc45d; }
.history-bar:hover, .history-bar:focus-visible { z-index: 1; transform: translateY(-2px) scale(1.04); filter: brightness(1.15); box-shadow: 0 0 9px currentColor; }
.history-bar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.interactive-tooltip { position: fixed; z-index: 10; max-width: min(24rem, calc(100vw - 1rem)); max-height: calc(100vh - 1rem); overflow: auto; padding: .55rem .7rem; border: 1px solid rgb(170 182 211 / 25%); border-radius: .5rem; background: #111a2e; color: #f4f6fb; box-shadow: 0 8px 24px rgb(0 0 0 / 35%); font-size: .72rem; line-height: 1.45; pointer-events: none; }
.interactive-tooltip[hidden] { display: none; }
.response-chart { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .65rem; row-gap: .25rem; margin: 1.1rem 0 0; }
.response-chart-plot { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .65rem; grid-column: 1 / -1; align-items: stretch; }
.response-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 .15rem; color: var(--muted); font-size: .68rem; line-height: 1; white-space: nowrap; }
.response-chart svg { display: block; width: 100%; height: 6rem; overflow: visible; }
.response-grid { fill: none; stroke: #52607e; stroke-width: 1; stroke-dasharray: 3 4; }
.response-point { fill: #b4c5ff; stroke: #17213a; stroke-width: 1.5; cursor: crosshair; }
.response-point:focus { outline: none; fill: #fff; stroke: #93adff; stroke-width: 2.5; }
.response-time-axis { display: flex; grid-column: 2; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.response-chart figcaption { grid-column: 1 / -1; margin-top: .2rem; overflow-wrap: anywhere; color: var(--muted); font-size: .72rem; }
.dependency-list, .dependency-warning { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.dependency-warning { color: #ffd38a; }
.history-details { margin-top: .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: rgb(11 16 32 / 85%); color: var(--muted); font-size: .82rem; line-height: 1.6; }
.history-details p { margin: .35rem 0 0; }
.history-incident-link, .incident-link, .section-link { color: #b4c5ff; text-decoration: none; }
.history-incident-link { display: inline-block; margin-top: .45rem; }
.incident-link:hover, .section-link:hover, .history-incident-link:hover { text-decoration: underline; }
.section-link { font-size: .78rem; }
.incident-link { font-weight: inherit; }
.live-label[data-connection="disconnected"] { color: #ffaaaa; }
.record-card { padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.record-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.record-title { margin: 0; font-size: .95rem; font-weight: 650; }
.record-meta { color: var(--muted); font-size: .75rem; }
.record-tag { padding: .25rem .5rem; border-radius: 99px; background: rgb(147 173 255 / 12%); color: #b4c5ff; font-size: .68rem; }
.incident-card-active { border-left: 3px solid #ff9a55; background: linear-gradient(90deg, rgb(255 154 85 / 7%), transparent 55%); }
.incident-summary, .maintenance-summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; list-style: none; cursor: pointer; }
.incident-summary::-webkit-details-marker, .maintenance-summary::-webkit-details-marker { display: none; }
.incident-summary::after, .maintenance-summary::after { flex: none; color: #b4c5ff; content: "+"; font-size: 1rem; }
.incident-disclosure[open] > .incident-summary::after, .maintenance-disclosure[open] > .maintenance-summary::after { content: "−"; }
.incident-summary:focus-visible, .maintenance-summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 2px; }
.incident-summary .record-tag, .maintenance-summary .record-tag { margin-left: auto; white-space: nowrap; }
.incident-collapsed-message { flex: 1 1 100%; overflow: hidden; color: var(--muted); font-size: .78rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.incident-expanded { padding-top: .8rem; }
.incident-expanded > .record-message { margin-bottom: .7rem; }
.incident-preview-timeline { margin-top: .8rem; }
.incident-preview-updates { display: grid; gap: .8rem; margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .8rem; }
.incident-preview-update strong { color: #dce4fb; font-size: .78rem; text-transform: capitalize; }
.incident-preview-update .record-message { margin-top: .3rem; }
.incident-full-link { display: inline-block; margin-top: .8rem; }
.maintenance-disclosure { margin-top: .6rem; }
.maintenance-summary { justify-content: flex-start; }
.maintenance-summary .record-tag { margin-left: auto; }
.maintenance-disclosure > .record-meta, .maintenance-disclosure > .record-message { margin-top: .65rem; }
.record-meta { line-height: 1.5; }
.empty-state { margin: 0; padding: 1.3rem 1.4rem; color: var(--muted); font-size: .88rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: #b4c5ff; font-size: .85rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.detail-title { margin-bottom: 1.5rem; font-size: clamp(2rem, 6vw, 3.4rem); }
.detail-card { margin-top: 1.5rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.detail-card h2, .detail-section h2 { margin-bottom: .8rem; }
.detail-card .record-message + .record-message { margin-top: .7rem; }
.detail-section { margin-top: 2rem; }
.timeline { display: grid; gap: 0; margin: 1rem 0 0; padding: 0 0 0 1.25rem; list-style: none; border-left: 1px solid rgb(147 173 255 / 35%); }
.timeline-item { position: relative; padding: 0 0 1.5rem 1rem; }
.timeline-item::before { position: absolute; top: .25rem; left: -1.56rem; width: .55rem; height: .55rem; border-radius: 50%; background: #93adff; content: ""; }
.timeline-item strong { margin-right: .7rem; font-size: .88rem; text-transform: capitalize; }
.timeline-item time { font-size: .74rem; }
.timeline-item .record-message { margin-top: .5rem; }
.pagination { display: flex; justify-content: center; gap: .65rem; margin-top: 1.5rem; }
.pagination button { min-height: 2.5rem; padding: .55rem .9rem; }
footer { min-height: 76px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.maintenance-on { overflow: hidden; }
.maintenance-on .site-shell { filter: blur(7px); opacity: .56; user-select: none; pointer-events: none; }
.maintenance-overlay { display: none; }
.maintenance-on .maintenance-overlay { position: fixed; z-index: 2; inset: 0; display: grid; place-items: center; padding: 1.25rem; background: rgb(5 9 19 / 54%); backdrop-filter: blur(3px); }
.maintenance-card { width: min(100%, 500px); padding: clamp(1.6rem, 6vw, 3rem); border: 1px solid rgb(255 255 255 / 13%); border-radius: 1.35rem; background: linear-gradient(145deg, rgb(31 42 68 / 92%), rgb(14 20 36 / 94%)); box-shadow: 0 28px 90px rgb(0 0 0 / 48%), inset 0 1px rgb(255 255 255 / 8%); text-align: center; }
.maintenance-icon { display: grid; width: 3.7rem; height: 3.7rem; place-items: center; margin: 0 auto 1.5rem; border: 1px solid rgb(147 173 255 / 25%); border-radius: 1.15rem; background: rgb(147 173 255 / 10%); color: var(--accent); }
.maintenance-icon svg { width: 2rem; height: 2rem; }
.maintenance-card h2 { margin-bottom: .8rem; font-size: clamp(1.7rem, 6vw, 2.25rem); letter-spacing: -.05em; }
.maintenance-card > p:not(.eyebrow) { margin-bottom: 1.5rem; color: #c0c9dd; font-size: .94rem; line-height: 1.75; }
.maintenance-card .eyebrow { margin-bottom: .6rem; }
.development-indicator { justify-content: center; font-size: .76rem; }
.development-indicator .live-dot { width: .45rem; height: .45rem; background: #93adff; box-shadow: 0 0 12px rgb(147 173 255 / 55%); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; box-shadow: 0 0 3px rgb(147 173 255 / 30%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
.admin-main { width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 1100px); margin: auto; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.admin-main h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.admin-panel { padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.admin-panel h2 { margin: -.2rem 0 1.3rem; }
.form-stack { display: grid; gap: 1rem; }
.form-stack label { display: grid; gap: .45rem; color: #c3cce0; font-size: .8rem; }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .55rem; background: #0d1425; color: #f4f6fb; font: inherit; font-size: .88rem; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { outline: 2px solid rgb(147 173 255 / 60%); outline-offset: 1px; }
.form-stack button, .button-secondary, .admin-records button { min-height: 2.7rem; padding: .65rem 1rem; border: 0; border-radius: .55rem; background: #91aaff; color: #11182a; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.form-stack button:hover { background: #b0c1ff; }
.form-stack button:disabled, .admin-records button:disabled { opacity: .45; cursor: not-allowed; }
.button-secondary { border: 1px solid var(--line); background: transparent; color: #d7def0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.admin-navigation { position: sticky; z-index: 2; top: 0; display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.5rem; padding: .65rem; border: 1px solid var(--line); border-radius: .85rem; background: rgb(11 16 32 / 94%); backdrop-filter: blur(12px); }
.admin-navigation a { padding: .55rem .75rem; border-radius: .5rem; color: var(--muted); font-size: .78rem; text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.admin-navigation a:hover, .admin-navigation a:focus-visible { color: #f4f6fb; background: rgb(147 173 255 / 10%); }
.admin-navigation a[aria-current="page"] { background: rgb(147 173 255 / 18%); color: #d6e0ff; }
.admin-navigation a:focus-visible { outline: 2px solid #93adff; outline-offset: 2px; }
.admin-view-title { margin: 0 0 1rem; font-size: 1.4rem; }
.overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.overview-stat { display: grid; gap: .55rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
.overview-stat span { color: var(--muted); font-size: .75rem; }
.overview-stat strong { font-size: 1.55rem; font-weight: 650; }
.admin-view > .admin-panel + .form-hint { margin-top: 1rem; }
.admin-view .admin-panel > h3, .admin-view form > h3 { margin: -.2rem 0 1.1rem; font-size: 1.05rem; }
.admin-list-filters { display: grid; grid-template-columns: minmax(12rem, 2fr) repeat(4, minmax(7rem, 1fr)) auto; align-items: end; gap: .75rem; margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: rgb(11 16 32 / 45%); }
.admin-list-filters label { display: grid; gap: .4rem; color: #c3cce0; font-size: .75rem; }
.admin-list-filters input, .admin-list-filters select { width: 100%; min-width: 0; min-height: 2.65rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: #0d1425; color: #f4f6fb; font: inherit; font-size: .8rem; }
.admin-list-filters input:focus, .admin-list-filters select:focus { outline: 2px solid rgb(147 173 255 / 60%); outline-offset: 1px; }
.admin-list-filters button { min-height: 2.65rem; padding: .55rem .8rem; border: 0; border-radius: .5rem; background: #91aaff; color: #11182a; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.audit-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-record details { margin-top: .75rem; color: var(--muted); font-size: .78rem; }
.admin-record details summary { cursor: pointer; }
.admin-record details pre { overflow-wrap: anywhere; white-space: pre-wrap; }
.pagination-label { align-self: center; margin-right: auto; color: var(--muted); font-size: .75rem; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.worker-health-panel { margin-bottom: 1rem; }
.worker-health { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.worker-health[data-status="healthy"] { color: #a9e7c2; }
.worker-health[data-status="degraded"], .worker-health[data-status="stale"],
.worker-health[data-status="not_seen"] { color: #ffd38a; }
.settings-grid { margin-bottom: 1rem; }
.settings-grid .admin-panel h3 { margin: -.2rem 0 .75rem; font-size: 1.05rem; }
.settings-copy { color: var(--muted); font-size: .84rem; line-height: 1.6; }
.settings-list { display: grid; gap: .8rem; margin: 1rem 0; }
.settings-list > div { min-width: 0; }
.settings-list dt { margin-bottom: .25rem; color: #d7def0; font-size: .8rem; font-weight: 650; }
.settings-list dd { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; overflow-wrap: anywhere; }
.settings-list code { color: #c5d1f2; font-size: .95em; }
.password-form { margin-top: 1rem; }
.password-form .form-hint { margin-bottom: 0; }
.form-hint { margin: -.5rem 0 1rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.admin-account-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-heading .hero-copy { margin-bottom: 0; font-size: .9rem; }
.admin-records { display: grid; gap: .65rem; margin-top: 1.5rem; }
.admin-record { min-width: 0; overflow-wrap: anywhere; padding: .8rem; border: 1px solid var(--line); border-radius: .6rem; }
.admin-record strong { display: block; margin-bottom: .25rem; font-size: .85rem; }
.admin-record p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.admin-record-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.external-note { margin: .8rem 0 0; color: #b8c8ff; font-size: .78rem; line-height: 1.5; }
.external-homepage { display: inline-block; margin-top: .65rem; color: #b4c5ff; font-size: .78rem; text-decoration: none; }
.external-homepage:hover { text-decoration: underline; }
.admin-records button { min-height: 2rem; padding: .35rem .6rem; font-size: .72rem; }
.admin-records button.danger { background: rgb(255 118 118 / 15%); color: #ffaaaa; }
.form-message { min-height: 1.2em; margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.form-message[data-error="true"] { color: #ffaaaa; }
.subscription-copy { max-width: 650px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.subscription-form { display: grid; gap: .8rem; max-width: 560px; }
.subscription-form > label:not(.consent-option) { color: #c3cce0; font-size: .8rem; }
.subscription-form > input { width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .55rem; background: #0d1425; color: #f4f6fb; font: inherit; font-size: .88rem; }
.consent-option { display: flex; align-items: flex-start; gap: .6rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.consent-option input { flex: none; margin: .2rem 0 0; accent-color: #93adff; }
.subscription-form button { justify-self: start; min-height: 2.7rem; padding: .65rem 1rem; border: 0; border-radius: .55rem; background: #91aaff; color: #11182a; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.subscription-form button:disabled { opacity: .45; cursor: not-allowed; }
.subscription-page { width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 650px); min-height: calc(100vh - 150px); margin: auto; padding: 4rem 0; }
.subscription-panel { padding: clamp(1.3rem, 5vw, 2.2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.subscription-panel h1 { margin-bottom: .7rem; font-size: clamp(2rem, 6vw, 3rem); }
.subscription-panel .form-stack { margin-top: 1.5rem; }
.subscription-panel .form-stack .consent-option { display: flex; }
.subscription-panel .form-stack .consent-option input { width: auto; padding: 0; border: 0; background: none; }
.subscription-panel .consent-option { margin-bottom: .25rem; }
.subscription-panel .form-stack button { justify-self: start; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .admin-list-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-list-filters label:first-child { grid-column: span 2; }
  .admin-list-filters button { justify-self: start; }
  .audit-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .live-label { font-size: .7rem; }
  .service-card, .record-card { padding: 1.05rem; }
  .service-head, .record-heading { align-items: flex-start; }
  .service-status { max-width: 45%; white-space: normal; font-size: .7rem; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-list-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-list-filters label:first-child { grid-column: 1 / -1; }
  .admin-list-filters button { grid-column: 1 / -1; justify-self: stretch; }
  .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-navigation { position: static; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .subscription-page { padding-top: 3rem; }
}
@media (max-width: 600px) {
  .service-primary-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .topbar { align-items: flex-start; flex-direction: column; justify-content: center; gap: .7rem; padding: .9rem 0; }
  .overview-stats { grid-template-columns: 1fr 1fr; }
  .admin-navigation { gap: .25rem; padding: .45rem; }
  .admin-navigation a { flex: 1 1 auto; padding: .5rem .55rem; text-align: center; }
  .pagination { flex-wrap: wrap; }
  .pagination-label { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-navigation a { transition: none; }
}
