/* Public service status: one summary banner, a compact component list with
   expandable source details, and the incident-feed boundary. */
.status-page {max-width:none;width:min(1040px,100% - 48px);margin-inline:auto;padding:48px 0 80px;min-width:0}
.status-page .page-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin:0 0 28px}
.status-page .page-heading h1 {font:600 var(--text-title)/1.08 var(--font);letter-spacing:-.045em;color:var(--ink);margin:0;text-wrap:balance}
.status-page .page-heading p {font-size:16px;line-height:1.6;max-width:64ch;margin:10px 0 0;text-wrap:pretty}
.status-page button {min-height:44px}
.status-page time,.status-page p,.status-page dd {overflow-wrap:anywhere}
[data-status-feedback] {font-size:13px;color:var(--muted);margin:0 0 12px}
[data-status-feedback]:empty {display:none}
[data-status-feedback] .loading {display:flex;align-items:center;gap:10px;padding:0;text-align:left}
[data-status-feedback] .spinner {width:16px;height:16px;margin:0}
[data-status-feedback] .notice-box {margin:0}

/* Summary: a status-page banner with real counts and a one-snapshot strip. Unknown is
   neutral zinc with a "?" mark; degraded is amber; nothing here is ever green as a whole. */
.status-eyebrow {display:inline-flex;align-items:center;gap:8px;min-height:28px;margin:0 0 14px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-pill);font-size:12.5px;font-weight:550;color:var(--ink)}
.status-eyebrow span {width:8px;height:8px;border-radius:50%;background:var(--spark)}
.status-summary {position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 32px;align-items:center;padding:28px 32px;border:1px solid var(--line);border-radius:var(--radius-xl);background:linear-gradient(180deg,var(--surface-base),var(--surface-l1));box-shadow:var(--shadow-sm)}
.status-summary-main {display:flex;gap:18px;align-items:flex-start;min-width:0}
.status-summary-mark {flex:none;position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--surface-l3);color:var(--fg-2);box-shadow:0 0 0 8px var(--surface-l2)}
.status-summary-mark::before {content:'?';font:700 22px/1 var(--font)}
.status-summary[data-state="degraded"] {border-color:color-mix(in srgb,var(--warn) 35%,transparent);background:linear-gradient(180deg,var(--warn-bg),var(--surface-l1))}
.status-summary[data-state="degraded"] .status-summary-mark {background:color-mix(in srgb,var(--warn) 30%,var(--surface-l1));color:var(--warn);box-shadow:0 0 0 8px var(--warn-bg)}
.status-summary[data-state="degraded"] .status-summary-mark::before {content:'!'}
.status-summary[data-previous="true"] {background:var(--surface);border-style:dashed;box-shadow:none}
.status-summary[data-previous="true"] .status-summary-mark {background:var(--surface-raised);color:var(--subtle);box-shadow:0 0 0 8px var(--surface-base)}
.status-summary-kicker {font-size:12px!important;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--subtle);margin:2px 0 4px!important}
.status-summary h2 {font:600 28px/1.15 var(--font);letter-spacing:-.035em;color:var(--ink);margin:0}
.status-summary p {font-size:14px;line-height:1.6;margin:4px 0 0}
.status-summary .status-summary-facts {font-size:15px;color:var(--muted);margin-top:8px}
.status-summary-facts time {color:var(--ink);font-weight:500}
.status-counts {display:flex;gap:8px;list-style:none;margin:0;padding:0}
.status-counts li {display:grid;justify-items:start;gap:2px;min-width:104px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.status-counts strong {font:600 26px/1.1 var(--font);letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.status-counts span {display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);text-transform:capitalize}
.status-counts span::before {content:'';width:7px;height:7px;border-radius:50%;background:var(--fg-4)}
.status-counts li[data-state=operational]:not([data-previous]) span::before {background:var(--success)}
.status-counts li[data-state=degraded]:not([data-previous]) span::before {background:var(--warn)}
.status-strip {grid-column:1/-1;min-width:0}
.status-strip-cells {display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;height:36px}
.status-strip-cell {border-radius:6px;background:var(--hatch),var(--track)}
.status-strip-cell[data-tone=green] {background:var(--ok)}
.status-strip-cell[data-tone=yellow] {background:var(--warn)}
.status-strip p {display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--subtle);margin:8px 0 0}
.status-summary .status-summary-note {grid-column:1/-1;font-size:13px;color:var(--muted);margin:0;padding-top:16px;border-top:1px solid var(--line)}

/* Component list. */
.status-components {margin-top:44px}
.status-section-heading {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 24px;margin-bottom:12px}
.status-page .status-section-heading h2 {font:700 22px/1.25 var(--font);letter-spacing:-.02em;margin:0}
.status-section-heading p {font-size:13px;color:var(--muted);margin:0}
.status-stack {list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden;box-shadow:var(--shadow-sm)}
.status-component+.status-component {border-top:1px solid var(--line)}
.status-component summary {display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr) auto;align-items:center;gap:6px 20px;min-height:64px;padding:14px 20px 14px 44px;position:relative;cursor:pointer;list-style:none;transition:background-color var(--motion-fast) var(--motion-ease)}
.status-component summary::-webkit-details-marker {display:none}
.status-component summary::before {content:"";position:absolute;left:20px;top:50%;width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:translateY(-70%) rotate(-45deg);transition:transform var(--motion-fast) var(--motion-ease)}
.status-component details[open] summary::before {transform:translateY(-50%) rotate(45deg)}
.status-component summary:hover {background:var(--surface-hover)}
.status-component summary:focus-visible {outline:3px solid var(--blue);outline-offset:-3px}
.status-component-name {display:flex;align-items:center;gap:10px;min-width:0}
.status-component-name strong {font-size:15px;font-weight:650;color:var(--ink)}
.status-dot {flex:none;width:10px;height:10px;border-radius:50%;background:var(--fg-4);box-shadow:0 0 0 3px var(--surface-l2)}
.status-dot[data-tone=green] {background:var(--ok);box-shadow:0 0 0 3px var(--ok-bg)}
.status-dot[data-tone=yellow] {background:var(--warn);box-shadow:0 0 0 3px var(--warn-bg)}
.status-reason {font-size:14px;line-height:1.5;color:var(--muted);min-width:0}
.status-page .status-badge {justify-self:end;font-size:12.5px;font-weight:600;line-height:1.5;padding:2px 10px;border-radius:var(--radius-pill);white-space:nowrap}
.status-page .status-badge {min-height:26px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid transparent}
.status-page .status-badge.muted {background:var(--surface-raised);border-color:var(--line);color:var(--muted)}
.status-page .status-badge.green {background:var(--ok-bg);border-color:color-mix(in srgb,var(--ok) 30%,transparent);color:var(--ok)}
.status-page .status-badge.yellow {background:var(--warn-bg);border-color:color-mix(in srgb,var(--warn) 30%,transparent);color:var(--warn)}
.status-component dl {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 24px;margin:0 20px 18px 44px;padding:14px 16px;font-size:13px;border-radius:var(--radius);background:var(--surface-raised)}
.status-component dt {color:var(--muted);font-weight:500}
.status-component dd {margin:2px 0 0;color:var(--ink)}

/* Incident boundary and page footnote. */
.status-incidents {display:flex;align-items:flex-start;gap:14px;margin-top:20px;padding:18px 20px;border:1px dashed var(--line-hover);border-radius:var(--radius-lg);background:var(--surface)}
.status-incidents-mark {flex:none;width:36px;height:36px;border-radius:10px;background:var(--surface-raised);border:1px solid var(--line);display:grid;place-items:center}
.status-incidents-mark::before {content:'';width:12px;height:2px;border-radius:2px;background:var(--subtle)}
.status-page .status-incidents h2 {font:650 15px/1.5 var(--font);color:var(--ink);margin:0}
.status-incidents p {font-size:14px;line-height:1.5;color:var(--muted);margin:2px 0 0}
.status-boundary {font-size:13px;line-height:1.6;color:var(--muted);margin:16px 0 0}

@media(max-width:900px) {.status-page {width:calc(100% - 32px);padding-top:28px}}
@media(max-width:700px) {
 .status-component summary {grid-template-columns:minmax(0,1fr) auto;padding:12px 16px 12px 40px}
 .status-component summary::before {left:18px;top:24px;transform:translateY(-70%) rotate(-45deg)}
 .status-component details[open] summary::before {transform:translateY(-50%) rotate(45deg)}
 .status-reason {grid-column:1/-1;grid-row:2}
 .status-page .status-badge {grid-column:2;grid-row:1}
 .status-component dl {margin:0 16px 16px 40px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:820px) {
 .status-summary {grid-template-columns:minmax(0,1fr)}
 .status-counts li {flex:1;min-width:0}
}
@media(max-width:600px) {
 .status-page .page-heading {flex-direction:column;align-items:flex-start;gap:16px}
 .status-page .page-heading .actions,.status-page .page-heading button {width:100%}
 .status-page .page-heading h1 {font-size:38px}
 .status-summary {padding:20px 18px;border-radius:var(--radius-lg)}
 .status-summary-main {gap:14px}
 .status-summary-mark {width:40px;height:40px;box-shadow:0 0 0 6px var(--surface-l2)}
 .status-summary-mark::before {font-size:18px}
 .status-summary h2 {font-size:22px}
 .status-counts {gap:6px}
 .status-counts li {padding:10px}
 .status-counts strong {font-size:22px}
 .status-counts span {font-size:11.5px}
 .status-component dl {margin:0 16px 16px 40px}
 .status-page .page-heading p {font-size:15px}
 .status-summary {padding:16px}
 .status-incidents {padding:14px 16px}
}
/* The plain "updated" announcement is for screen readers; loading and errors stay visible. */
[data-status-feedback]:not(:has(*)) {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* WAV-3296: plain component name with the technical name beneath; closing line. */
.status-component-name .status-technical {display:block;font-size:12px;font-weight:400;color:var(--muted)}
.status-closing {margin:24px 0 0;font-size:14px;color:var(--muted)}
/* ── WAV-3296 Phase B (MkStatus): narrower column, snapshot card with Checked on the right,
   full-width count tiles, a thin strip, 64px disclosure rows with icon tiles. WAV-3299
   incident cards with a timeline. Unknown stays hatched/neutral; never green as a whole. ── */
.status-page {width:min(780px,100% - 48px)}
.status-summary {grid-template-columns:minmax(0,1fr);gap:18px;padding:24px 26px;border-radius:24px;border-color:var(--border-1);background:var(--surface-l1);box-shadow:var(--shadow-md)}
.status-summary-main {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:4px 16px}
.status-summary-mark {width:44px;height:44px;border-radius:12px;box-shadow:none;background:var(--track)}
.status-summary-mark::before {font-size:18px}
.status-summary[data-state="degraded"] .status-summary-mark {box-shadow:none}
.status-summary[data-previous="true"] .status-summary-mark {box-shadow:none}
.status-summary h2 {font-size:22px;letter-spacing:-.025em}
.status-summary .status-summary-facts {font-size:14.5px;margin-top:4px}
.status-summary-checked {margin:4px 0 0!important;font-size:13px!important;color:var(--fg-3);white-space:nowrap}
.status-summary-checked time {color:var(--fg-3);font-weight:400}
.status-counts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.status-counts li {min-width:0;padding:12px 14px;border:0;border-radius:14px;background:var(--surface-l2)}
.status-counts strong {font-size:15px;font-weight:600}
.status-counts li[data-state=unknown] span::before {background:var(--hatch),var(--fg-4)}
.status-strip-cells {height:8px;gap:6px}
.status-strip-cell {border-radius:99px}
.status-strip p {display:none}
.status-summary .status-summary-note {padding-top:0;border-top:0;font-size:12.5px;color:var(--fg-3)}
.status-components {margin-top:40px}
.status-stack {border-color:var(--border-1);border-radius:18px;background:var(--surface-l1);box-shadow:none}
.status-component summary {grid-template-columns:auto minmax(0,1fr) auto auto;gap:14px;min-height:64px;padding:12px 18px}
.status-component summary::before {content:none}
.status-component-icon {display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--track);color:var(--fg-2)}
.status-component-icon[data-tone=green] {background:color-mix(in srgb,var(--ok) 14%,transparent);color:var(--ok)}
.status-component-icon[data-tone=yellow] {background:color-mix(in srgb,var(--warn) 16%,transparent);color:var(--warn)}
.status-component-icon .icon {width:17px;height:17px}
.status-component-name {display:grid;gap:2px}
.status-component-name strong {font-size:15px;font-weight:550}
.status-component-name .status-technical {font-size:12.5px;color:var(--fg-3)}
.status-chevron {display:grid;color:var(--fg-3);transition:transform var(--dur-2) var(--ease-standard)}
.status-chevron .icon {width:16px;height:16px}
.status-component details[open] .status-chevron {transform:rotate(90deg)}
.status-component summary:focus-visible {outline:2px solid var(--fg-1);outline-offset:-2px}
.status-component-body {padding:0 18px 16px 70px}
.status-component-body .status-reason {margin:0;font-size:14.5px;color:var(--fg-1)}
.status-checked {margin:4px 0 12px;font-size:12.5px;color:var(--fg-3)}
.status-component dl {margin:0}
.status-page .status-component .status-badge.muted {background:var(--hatch),var(--surface-l2)}
.status-incidents {border-style:dashed;border-color:var(--border-2);border-radius:18px;background:var(--surface-l2)}
.status-incident-list {margin-top:32px}
.status-incident {padding:18px 20px;border:1px solid var(--border-1);border-radius:18px;background:var(--surface-l1)}
.status-incident+.status-incident {margin-top:10px}
.status-incident[data-resolved=true] {background:var(--surface-l2)}
.status-incident header {display:grid;justify-items:start;gap:6px;margin-bottom:12px}
.status-incident h3 {margin:0;font:600 17px/1.35 var(--font);letter-spacing:-.015em}
.status-incident[data-resolved=true] h3 {color:var(--fg-2)}
.status-incident-components {margin:0;font-size:13px;color:var(--fg-3)}
.status-timeline {list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--border-1)}
.status-timeline li {position:relative;padding:0 0 12px 12px}
.status-timeline li::before {content:'';position:absolute;left:-19px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--fg-4)}
.status-timeline li:first-child::before {background:var(--fg-1)}
.status-timeline time {font-size:12.5px;color:var(--fg-3)}
.status-timeline p {margin:2px 0 0;font-size:14px;color:var(--fg-2)}
.status-timeline strong {color:var(--fg-1)}
@media(max-width:700px) {
 .status-summary-main {grid-template-columns:auto minmax(0,1fr)}
 .status-summary-checked {grid-column:2;white-space:normal}
 .status-component summary {grid-template-columns:auto minmax(0,1fr) auto;padding:12px 14px}
 .status-chevron {display:none}
 .status-component-body {padding:0 14px 14px}
 .status-component dl {margin:0;grid-template-columns:minmax(0,1fr)}
}
.status-page .page-heading button {white-space:nowrap}
