:root {
  color-scheme: light dark;
  --ink: #18231f;
  --muted: #66706b;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #dce2dc;
  --green: #138a5b;
  --green-soft: #dff4e8;
  --yellow: #d79a17;
  --yellow-soft: #fff0bd;
  --red: #cf463f;
  --red-soft: #fde4e0;
  --blue: #255a73;
  --header-border: rgba(220, 226, 220, .8);
  --header-bg: rgba(247, 248, 244, .88);
  --overview-bg: rgba(255, 255, 255, .72);
  --hover-bg: #fafbf8;
  --hover-border: #bcc8c0;
  --focus-ring: rgba(37, 90, 115, .35);
  --detail-bg: #fbfcf9;
  --child-line: #e7ebe6;
  --demo-bg: #e6eff4;
  --demo-border: #cadde7;
  --warning-border: #efd58c;
  --state-green-text: #087247;
  --state-yellow-text: #966707;
  --state-red-text: #b42f29;
  --card-shadow: 0 8px 24px rgba(24, 35, 31, .035);
  --overview-shadow: 0 10px 30px rgba(24, 35, 31, .04);
  --hover-shadow: 0 7px 20px rgba(24, 35, 31, .08);
  --loading-edge: #edf0ec;
  --loading-middle: #f7f8f4;
  --timeline-label: #66706b;
  --timeline-highlight: #18231f;
  --timeline-green-soft: #dff4e8;
  --timeline-green-strong: #138a5b;
  --timeline-yellow-soft: #fff0bd;
  --timeline-yellow-strong: #d79a17;
  --timeline-red-soft: #fde4e0;
  --timeline-red-strong: #cf463f;
  --chart-grid: #e2e7e2;
  --chart-label: #75807a;
  --chart-series-1: #255a73;
  --chart-series-2: #cf463f;
  --chart-series-3: #138a5b;
  --chart-series-4: #d79a17;
  --chart-series-5: #795b9b;
  --chart-series-6: #3f7f8c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf3ef;
    --muted: #aab7b0;
    --paper: #101513;
    --surface: #18201d;
    --line: #34413b;
    --green: #49d49d;
    --green-soft: #173b2f;
    --yellow: #f1c34f;
    --yellow-soft: #493b1c;
    --red: #ff8279;
    --red-soft: #4a2524;
    --blue: #77bddb;
    --header-border: rgba(52, 65, 59, .88);
    --header-bg: rgba(16, 21, 19, .88);
    --overview-bg: rgba(24, 32, 29, .82);
    --hover-bg: #202a26;
    --hover-border: #56665e;
    --focus-ring: rgba(119, 189, 219, .58);
    --detail-bg: #141b18;
    --child-line: #2b3732;
    --demo-bg: #182c35;
    --demo-border: #31505e;
    --warning-border: #75602a;
    --state-green-text: #70dfb1;
    --state-yellow-text: #f2ca65;
    --state-red-text: #ff968e;
    --card-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    --overview-shadow: 0 12px 32px rgba(0, 0, 0, .24);
    --hover-shadow: 0 8px 22px rgba(0, 0, 0, .3);
    --loading-edge: #202a26;
    --loading-middle: #2a3631;
    --timeline-label: #aab7b0;
    --timeline-highlight: #f3f7f4;
    --timeline-green-soft: #173b2f;
    --timeline-green-strong: #49d49d;
    --timeline-yellow-soft: #493b1c;
    --timeline-yellow-strong: #f1c34f;
    --timeline-red-soft: #4a2524;
    --timeline-red-strong: #ff8279;
    --chart-grid: #34413b;
    --chart-label: #aab7b0;
    --chart-series-1: #70c7e8;
    --chart-series-2: #ff8279;
    --chart-series-3: #49d49d;
    --chart-series-4: #f1c34f;
    --chart-series-5: #c69bea;
    --chart-series-6: #67c5ca;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
html.category-jump-active { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); min-width: 300px; }
button, canvas { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: var(--paper); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--header-border); background: var(--header-bg); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.header-inner, main, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 75px; }
.updated { color: var(--muted); font-size: .82rem; margin: 0; text-align: right; }

main { padding: 70px 0 88px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); padding: 0 2px 60px; }
.eyebrow { margin: 0 0 .85rem; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 6vw, 3.7rem); line-height: .98; letter-spacing: -.055em; max-width: 760px; margin: 0; }
.hero-copy > p:last-child { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 1.25rem 0 0; max-width: 650px; }
.hero-guide { padding: 1.15rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--card-shadow); }
.hero-guide h2 { margin: 0 0 .7rem; font-size: 1rem; letter-spacing: -.02em; }
.hero-guide p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.hero-guide p + p { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.hero-guide strong { color: var(--ink); }
.hero-contact { margin-top: .65rem; padding: .3rem .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: .78rem; font-style: normal; }
.hero-contact dl { margin: 0; }
.hero-contact dl > div { display: grid; grid-template-columns: minmax(4.8rem, .45fr) minmax(0, 1fr); gap: .5rem; padding: .48rem 0; }
.hero-contact dl > div + div { border-top: 1px solid var(--line); }
.hero-contact dt { color: var(--muted); }
.hero-contact dd { margin: 0; min-width: 0; font-weight: 700; }
.hero-contact a { color: var(--blue); overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.hero-contact a:hover { text-decoration-thickness: 2px; }

.service-notices { margin: -24px 0 48px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--card-shadow); }
.service-notices-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.service-notices-heading .eyebrow { margin: 0; }
.service-notices-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.notice-stream-warning { margin: .8rem 0 0; padding: .7rem .8rem; color: var(--state-yellow-text); background: var(--yellow-soft); border: 1px solid var(--warning-border); border-radius: 9px; font-size: .78rem; line-height: 1.45; }
.notice-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding-top: 1rem; }
.notice-group h3 { margin: 0 0 .65rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.notice-items { display: grid; gap: .6rem; }
.service-notice-card { min-width: 0; padding: .8rem .85rem; background: var(--detail-bg); border: 1px solid var(--line); border-radius: 10px; }
.service-notice-card.active-incident { border-left: 5px solid var(--red); }
.service-notice-card.active-maintenance { border-left: 5px solid var(--yellow); }
.service-notice-card h4 { margin: .35rem 0 .25rem; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.service-notice-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.service-notice-card a { color: var(--blue); text-underline-offset: .15em; }
.service-notice-label { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.service-notice-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.service-notice-label.incident { color: var(--state-red-text); }
.service-notice-label.maintenance { color: var(--state-yellow-text); }
.notice-empty { margin: 0; padding: .75rem 0; color: var(--muted); font-size: .8rem; }
.notice-more, .recent-activity { margin-top: .75rem; }
.notice-more > summary, .recent-activity > summary { cursor: pointer; color: var(--blue); font-size: .78rem; font-weight: 750; }
.notice-more[open] > summary, .recent-activity[open] > summary { margin-bottom: .65rem; }
.recent-activity { padding-top: 1rem; border-top: 1px solid var(--line); }
.recent-activity > summary { color: var(--ink); font-size: .86rem; }
.recent-activity .notice-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.category-overview { margin: -24px 0 34px; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--overview-bg); box-shadow: var(--overview-shadow); }
.category-overview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .8rem; }
.category-overview-heading p { margin: 0; color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.category-overview-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.category-jump-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .65rem; }
.category-jump { position: relative; min-width: 0; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem .8rem .75rem 1rem; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.category-jump::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--category-state); }
.category-jump[data-state="green"] { --category-state: var(--green); }.category-jump[data-state="yellow"] { --category-state: var(--yellow); }.category-jump[data-state="red"] { --category-state: var(--red); }
.category-jump:hover { border-color: var(--hover-border); box-shadow: var(--hover-shadow); transform: translateY(-1px); }
.category-jump:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.category-jump-label { min-width: 0; }
.category-jump-label small, .category-jump-label strong { display: block; }
.category-jump-label small { margin-bottom: .18rem; color: var(--muted); font-size: .65rem; line-height: 1.2; }
.category-jump-label strong { overflow-wrap: break-word; font-size: .85rem; line-height: 1.25; }
.category-jump .state-label { flex: none; font-size: .7rem; }

.notice { padding: 1rem 1.15rem; border-radius: 12px; margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; }
.notice-warning { background: var(--yellow-soft); border: 1px solid var(--warning-border); }
.notice-demo { background: var(--demo-bg); border: 1px solid var(--demo-border); }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; padding: 1rem 0 1.35rem; color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line); }
.legend > span { display: inline-flex; align-items: center; gap: .45rem; }
.legend-note { margin-left: auto; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.state-green { background-color: var(--green) !important; }.state-yellow { background-color: var(--yellow) !important; }.state-red { background-color: var(--red) !important; }

.sources { display: grid; gap: 3.25rem; padding-top: 2.5rem; }
.source-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.source-heading h2 { font-size: 1.6rem; margin: 0; letter-spacing: -.035em; }
.source-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.category { margin-top: 1.8rem; scroll-margin-top: 90px; }
.category-unlabelled { margin-top: 0; }
.category h3 { margin: 0 0 .75rem; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.entity-list { display: grid; gap: .7rem; }
.entity { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--card-shadow); overflow: clip; }
@supports (content-visibility: auto) {
  .entity { content-visibility: auto; contain-intrinsic-size: auto 94px; }
  .entity.category-jump-measure { content-visibility: visible; }
}
.entity-summary { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 1.15rem; align-items: center; padding: 1rem 1.05rem; min-width: 0; }
.entity-toggle { appearance: none; border: 0; width: 100%; min-width: 0; background: transparent; display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: center; text-align: left; padding: .35rem 0; cursor: pointer; border-radius: 8px; }
.entity-toggle:hover { background: var(--hover-bg); }
.entity-toggle:focus-visible, .timeline-canvas:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.entity-name { min-width: 0; }
.entity-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entity-name small { display: block; color: var(--muted); margin-top: .3rem; }
.state-label { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.state-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-label.state-green { color: var(--state-green-text); background: none !important; }.state-label.state-yellow { color: var(--state-yellow-text); background: none !important; }.state-label.state-red { color: var(--state-red-text); background: none !important; }
.chevron { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.chevron::after { content: ""; position: absolute; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); left: 9px; top: 7px; transition: transform .2s; }
[aria-expanded="true"] .chevron::after { transform: translateY(3px) rotate(225deg); }

.timeline-shell { min-width: 0; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.timeline-canvas { display: block; width: 100%; min-width: 780px; height: 51px; cursor: crosshair; }
.timeline-block { min-width: 0; }
.timeline-tooltip { position: fixed; z-index: 15; width: max-content; max-width: min(420px, calc(100vw - 8px)); padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--hover-shadow); color: var(--ink); font-size: .72rem; line-height: 1.3; pointer-events: none; }
.timeline-tooltip[hidden] { display: none; }
.timeline-selection { display: block; margin-top: .35rem; color: var(--muted); font-size: .74rem; line-height: 1.35; }
.timeline-selection[hidden] { display: none; }
.entity-detail { border-top: 1px solid var(--line); padding: 1rem; background: var(--detail-bg); }
.entity-detail[hidden] { display: none; }
.children { display: grid; gap: .6rem; }
.child-row { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; align-items: center; gap: 1rem; padding: .7rem .2rem; border-bottom: 1px solid var(--child-line); }
.child-row:last-child { border-bottom: 0; }
.child-label strong { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.child-label span { margin-top: .25rem; }
.detail-loading { color: var(--muted); font-size: .85rem; }

.graphs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin-top: 1.1rem; }
.category-graphs-slot { min-height: 1px; }
.category-graphs-slot[data-metric-position="top"]:not(:empty) { margin-bottom: 1.1rem; }
.graph { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.graph h4 { margin: 0 0 .7rem; font-size: .95rem; }
.graph-meta { margin: 0 0 .8rem; color: var(--muted); font-size: .75rem; }
.graph-error { min-height: 8rem; }
.graph-error .empty { margin: 1rem 0 0; }
.graph-plot { position: relative; }
.graph canvas { display: block; width: 100%; height: 220px; touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.graph-points { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.graph-points[hidden] { display: none; }
.graph-point { position: absolute; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--series-color); box-shadow: 0 0 0 1px var(--series-color); transform: translate(-50%, -50%); }
.graph-tooltip { position: absolute; z-index: 2; width: max-content; max-width: min(270px, calc(100% - 8px)); padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--hover-shadow); color: var(--ink); font-size: .72rem; pointer-events: none; }
.graph-tooltip[hidden] { display: none; }
.graph-tooltip time { display: block; margin-bottom: .45rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.graph-tooltip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.graph-tooltip-row + .graph-tooltip-row { margin-top: .3rem; }
.graph-tooltip-row span { min-width: 0; overflow-wrap: anywhere; }
.graph-tooltip-row span::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: .4rem; border-radius: 2px; background: var(--series-color); vertical-align: middle; }
.graph-tooltip-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.graph-legend { width: 100%; margin-top: .7rem; border-collapse: collapse; table-layout: fixed; color: var(--muted); font-size: .7rem; }
.graph-legend th, .graph-legend td { padding: .42rem .3rem; border-top: 1px solid var(--line); }
.graph-legend thead th { border-top: 0; color: var(--muted); font-weight: 700; text-align: right; }
.graph-legend thead th:first-child { width: 46%; text-align: left; }
.graph-legend tbody th { color: var(--ink); font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; text-align: left; }
.graph-legend tbody th::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: .4rem; background: var(--series-color); vertical-align: middle; }
.graph-legend td { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.empty { color: var(--muted); padding: 1rem 0; }
.loading-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 1.25rem; display: grid; gap: .8rem; }
.loading-card span { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--loading-edge), var(--loading-middle), var(--loading-edge)); background-size: 200%; animation: shimmer 1.2s infinite; }
.loading-card span:nth-child(2) { width: 72%; }.loading-card span:nth-child(3) { width: 88%; }
@keyframes shimmer { to { background-position: -200% 0; } }

footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.5rem; color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
  .header-inner, main, footer { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 64px; }.updated { font-size: .7rem; max-width: 135px; }
  main { padding-top: 42px; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 38px; }
  .service-notices { margin-top: -10px; }
  .service-notices-heading { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .notice-groups, .recent-activity .notice-items { grid-template-columns: 1fr; }
  .category-overview { margin-top: -10px; }
  .entity-summary { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .entity-summary > .timeline-block { grid-column: 1; grid-row: 2; }
  .entity-name { padding-right: .5rem; }
  .state-label { align-self: center; }.chevron { display: none; }
  .child-row { grid-template-columns: 1fr; gap: .55rem; }
  .legend-note { width: 100%; margin-left: 0; }
}

@media (max-width: 480px) {
  .brand { font-size: .86rem; }
  .brand-mark { width: 70px; }
  h1 { font-size: 2.3rem; }
  .category-overview { padding: .85rem; }
  .category-overview-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .category-jump-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
  .category-jump { min-height: 82px; align-items: flex-start; flex-direction: column; gap: .45rem; }
  .source-heading { align-items: start; flex-direction: column; }
  .entity-summary { padding: .9rem; }
  .entity-detail { padding: .85rem; }
  .graph-legend { font-size: .64rem; }
  .graph-legend th, .graph-legend td { padding-inline: .14rem; }
  .graph-legend thead th:first-child { width: 40%; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
