/* Basaltic's charcoal surfaces and cyan accent match the site and console. */
:root {
    color-scheme: dark;
    --bg: #09090b;
    --surface: #111113;
    --raised: #18181b;
    --border: #27272a;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --accent: #67e8f9;
    --green: #4ade80;
    --red: #f87171;
    --yellow: #facc15;
    --blue: #60a5fa;
    font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.6;
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
.shell { max-width: 1040px; margin: auto; padding: 0 32px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
header, footer, .section-title, .event-top, .history-labels, .pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
header { height: 100px; }
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand-logo { display: block; width: 164px; height: auto; }
.brand:hover { text-decoration: none; }
.page-nav { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.page-nav a { padding: 12px 0 16px; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.page-nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.page-nav a:hover { color: var(--text); text-decoration: none; }
h1 { font-size: 34px; letter-spacing: -1px; line-height: 1.2; font-weight: 600; margin: 16px 0; overflow-wrap: anywhere; }
h2 { font-size: 18px; letter-spacing: -.3px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 550; }
p { margin: 10px 0; }
.hero, .page-heading { padding: 48px 0 22px; }
.hero h1 { display: flex; align-items: center; gap: 16px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 650; color: var(--accent); }
.muted, time { color: var(--muted); }
.small, time { font-size: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.hero h1 .dot { width: 12px; height: 12px; box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 5%, transparent); }
.success { --state: var(--green); }
.error, .incident { --state: var(--red); }
.degraded { --state: var(--yellow); }
.maintenance { --state: var(--blue); }
.unknown, .neutral { --state: #71717a; }
.dot, .bar { background: var(--state); }
.freshness { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 28px; }
section { margin-bottom: 32px; }
.section-title { margin-bottom: 12px; }
.section-title h2 { margin: 0; }
.region { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: clip; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.region-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; }
.region-summary:hover { background: #ffffff03; }
.region-identity { display: flex; gap: 16px; align-items: center; }
.region-icon { display: grid; place-items: center; background: var(--raised); border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; font-size: 24px; color: var(--accent); flex-shrink: 0; }
.region-name { display: block; font-size: 16px; font-weight: 600; }
.region-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.region-state { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.chevron { margin-left: 14px; color: var(--muted); font-size: 18px; transition: transform .15s; }
.region[open] > summary .chevron { transform: rotate(180deg); }
.region-content { padding: 0 24px 10px; border-top: 1px solid var(--border); }
.region-description { margin: 16px 0 8px; }
.component { border-bottom: 1px solid var(--border); }
.component:last-child { border: 0; }
.component summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; }
.component summary:hover .component-name { color: var(--accent); }
.component-name { font-size: 13px; font-weight: 500; }
.component-chevron { margin-left: 5px; display: inline-block; color: var(--muted); }
.component[open] .component-chevron { transform: rotate(45deg); }
.component-state { font-size: 11px; display: flex; align-items: center; gap: 6px; color: var(--muted); flex-wrap: wrap; }
.stale { color: #e4c77d; font-size: 10px; }
.description { max-width: 650px; color: var(--muted); font-size: 13px; margin-top: 0; }
.component-content { padding-bottom: 20px; }
.history { display: flex; gap: 3px; height: 26px; margin-top: 20px; }
.bar { flex: 1; border-radius: 2px; min-width: 0; opacity: .9; }
.bar.unknown { --state: #3f3f46; }
.bar:hover, .bar:focus { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.history-labels { font-size: 10px; color: var(--muted); padding-top: 8px; gap: 6px; }
.service-note { max-width: 740px; margin-top: 16px; font-size: 11px; }
.event { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin: 14px 0; }
.event h3 { margin: 14px 0 6px; font-size: 17px; }
.event h3 a { color: var(--text); }
.event p { white-space: pre-line; }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 99px; color: var(--state); background: color-mix(in srgb, var(--state) 12%, transparent); border: 1px solid color-mix(in srgb, var(--state) 22%, transparent); font-size: 11px; font-weight: 550; }
.update { border-left: 2px solid var(--border); padding: 4px 0 12px 24px; margin: 24px 0; }
.update p, .event-description { white-space: pre-line; overflow-wrap: anywhere; }
.update p { margin: 12px 0 0; color: #d4d4d8; }
.empty { padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.empty-state { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.empty-state h2, .empty-state h3 { margin-bottom: 6px; }
.empty-icon { color: var(--green); font-size: 24px; }
.history-link { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding: 24px 0 36px; margin-top: 8px; }
.history-link strong { color: var(--text); font-size: 14px; }
.history-link .small { display: block; margin-top: 4px; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 12px; }
.affected h3 { font-size: 12px; color: var(--muted); margin: 20px 0 10px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span { padding: 5px 12px; font-size: 12px; background: var(--raised); border: 1px solid var(--border); border-radius: 6px; }
.maintenance-window { padding: 20px 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.maintenance-window h2 { margin-top: 0; }
dl { display: flex; flex-wrap: wrap; gap: 28px 64px; margin-bottom: 4px; }
dt { color: var(--muted); font-size: 11px; }
dd { margin: 4px 0 0; font-size: 13px; }
.pagination { margin-top: 28px; font-size: 12px; }
button { padding: 10px 15px; border-radius: 6px; background: var(--accent); color: #083344; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
button:hover { background: #a5f3fc; }
button:disabled { opacity: .5; cursor: not-allowed; }
#subscription-captcha { min-height: 65px; }
.subscribe-trigger { background: transparent; color: var(--text); border-color: #3f3f46; font-weight: 500; }
.subscribe-trigger:hover { background: var(--raised); border-color: #71717a; }
.subscribe-trigger span { color: var(--accent); margin-left: 10px; }
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 12px; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 24px; }
.notice { padding: 16px; background: #4ade8010; border: 1px solid #4ade8030; color: #bbf7d0; border-radius: 8px; margin-top: 24px; }
dialog { color: var(--text); background: var(--raised); border: 1px solid #3f3f46; border-radius: 14px; padding: 36px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 100px #0008; }
dialog::backdrop { background: #000a; backdrop-filter: blur(4px); }
dialog h2 { font-size: 24px; line-height: 1.25; margin: 16px 0; }
dialog form { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 16px; }
dialog label { font-size: 12px; font-weight: 500; }
input { padding: 12px 14px; border-radius: 6px; border: 1px solid #52525b; background: var(--bg); color: var(--text); width: 100%; }
input::placeholder { color: #71717a; }
.dialog-close { position: absolute; right: 14px; top: 10px; background: transparent; color: var(--muted); padding: 0 10px; font-size: 24px; font-weight: 400; }
.dialog-close:hover { background: #ffffff0a; color: var(--text); }
.form-error { color: var(--red); font-size: 12px; margin: 0; }
@media (max-width: 640px) {
    .shell { padding: 0 20px; }
    header { height: 82px; gap: 12px; }
    .brand-logo { width: 136px; }
    .subscribe-trigger { font-size: 11px; padding: 8px 10px; max-width: 122px; }
    .subscribe-trigger span { display: none; }
    .page-nav { gap: 22px; }
    .page-nav a { font-size: 12px; }
    .hero, .page-heading { padding-top: 32px; }
    h1 { font-size: 27px; }
    .hero h1 { gap: 14px; }
    .section-title { align-items: baseline; flex-wrap: wrap; gap: 4px; }
    .region-summary { padding: 20px; align-items: flex-start; flex-direction: column; gap: 14px; position: relative; }
    .region-state { padding-left: 56px; font-size: 11px; }
    .chevron { position: absolute; top: 28px; right: 20px; }
    .region-content { padding: 0 18px 6px; }
    .component summary { align-items: flex-start; flex-direction: column; gap: 6px; }
    .history { gap: 2px; height: 22px; }
    .history-labels { font-size: 9px; }
    .history-labels span:nth-child(2) { text-align: center; max-width: 56%; }
    .event { padding: 20px; }
    .event-top { flex-wrap: wrap; gap: 8px; }
    .event-top time { font-size: 11px; }
    footer nav { gap: 18px; }
    dialog { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.freshness[hidden] { display: none; }
