/* Broken Today, design B "the stage": a dark stage opens every page; on it a wall of every service's logo where
   the broken ones light up in their brand colour with a status badge and the healthy ones fade into the dark.
   Broken service names still carry the spell-checker squiggle. Below the stage: incident cards and an app grid.
   No web fonts, no framework; logos are Simple Icons glyphs (CC0) served from /logos; dark + light via tokens. */

:root {
    --f-display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
    --f-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --bg: #f2f3f6;
    --panel: #ffffff;
    --rule: #e1e4ea;
    --rule-2: #c4c9d3;
    --ink: #161920;
    --ink-2: #444b58;
    --muted: #6a7180;
    --focus: #2458d3;
    --lift: 0 1px 2px rgba(22, 25, 32, .06), 0 12px 30px -20px rgba(22, 25, 32, .4);

    /* the stage is dark in both themes */
    --stage: #12141a;
    --stage-2: #1b1e26;
    --stage-ink: #f1f3f6;
    --stage-ink-2: #aab1be;
    --stage-rule: rgba(255, 255, 255, .1);

    --ok: #1f8f53;
    --maint: #2f63d0;
    --deg: #b47a00;
    --part: #d4560f;
    --major: #d01f37;
    --unknown: #8a909c;
    --on-ok: #ffffff;
    --on-maint: #ffffff;
    --on-deg: #231a00;
    --on-part: #ffffff;
    --on-major: #ffffff;
    --on-unknown: #ffffff;
    color-scheme: light;
}

/* bright status set - used by the dark theme and always on the stage */
.stage, :root[data-theme="dark"] {
    --ok: #3ccf7f;
    --maint: #6b9bff;
    --deg: #f0b43a;
    --part: #ff8040;
    --major: #ff4d63;
    --unknown: #6b7280;
    --on-ok: #0f1410;
    --on-maint: #0e1220;
    --on-deg: #1d1500;
    --on-part: #1c0c03;
    --on-major: #1c0408;
    --on-unknown: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #15171c;
        --panel: #1d2028;
        --rule: #2a2e37;
        --rule-2: #3a3f4a;
        --ink: #eceef2;
        --ink-2: #bcc2cc;
        --muted: #8a91a0;
        --focus: #7aa7ff;
        --lift: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 30px -20px rgba(0, 0, 0, .9);
        --stage: #0e1014;
        --ok: #3ccf7f;
        --maint: #6b9bff;
        --deg: #f0b43a;
        --part: #ff8040;
        --major: #ff4d63;
        --unknown: #6b7280;
        --on-ok: #0f1410;
        --on-maint: #0e1220;
        --on-deg: #1d1500;
        --on-part: #1c0c03;
        --on-major: #1c0408;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #15171c;
    --panel: #1d2028;
    --rule: #2a2e37;
    --rule-2: #3a3f4a;
    --ink: #eceef2;
    --ink-2: #bcc2cc;
    --muted: #8a91a0;
    --focus: #7aa7ff;
    --lift: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 30px -20px rgba(0, 0, 0, .9);
    --stage: #0e1014;
    color-scheme: dark;
}

/* status colour per modifier - everything below uses var(--c) and var(--on) */
.h-ok { --c: var(--ok); --on: var(--on-ok); }
.h-maint { --c: var(--maint); --on: var(--on-maint); }
.h-deg { --c: var(--deg); --on: var(--on-deg); }
.h-part { --c: var(--part); --on: var(--on-part); }
.h-major { --c: var(--major); --on: var(--on-major); }
.h-unknown { --c: var(--unknown); --on: var(--on-unknown); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 var(--f-ui);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
main { flex: 1; width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; font-stretch: semi-condensed; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
time { font-variant-numeric: tabular-nums; }
.sicon { width: 1em; height: 1em; flex: none; display: inline-block; }

/* ---------- brand tile (service logo) ---------- */
.slogo {
    --s: 40px;
    display: inline-grid; place-items: center; flex: none;
    width: var(--s); height: var(--s); border-radius: 24%;
    background: var(--brand); color: var(--on-brand);
    font: 700 calc(var(--s) * .46)/1 var(--f-display); font-stretch: semi-condensed;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.slogo.has-glyph::before {
    content: ""; width: 58%; height: 58%;
    background: var(--on-brand);
    -webkit-mask: var(--glyph) center / contain no-repeat;
    mask: var(--glyph) center / contain no-repeat;
}

/* ---------- status dot ---------- */
.led { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--unknown)); }
.h-major .led, .led.h-major { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); }
    50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 0%, transparent); }
}

/* ---------- top bar ---------- */
.topbar { border-bottom: 1px solid var(--rule); background: var(--bg); position: relative; z-index: 2; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); padding: 4px 0; }
.logo { display: block; height: 34px; width: auto; }
@media (max-width: 480px) { .logo { height: 30px; } }
.logo-squiggle { stroke: #ff4d63; }
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav a { text-decoration: none; color: var(--ink-2); font-size: .92rem; padding: 6px 10px; border-radius: 6px; }
.topnav a:hover { color: var(--ink); background: var(--panel); }
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); border-radius: 8px; cursor: pointer; margin-left: 6px; }
.theme-btn:hover { color: var(--ink); border-color: var(--rule-2); }
@media (max-width: 480px) { .topnav a[href="/api/status"] { display: none; } }

/* ---------- section chrome ---------- */
.sec-head { margin-bottom: 22px; }
.sec-title { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.sec-note { color: var(--muted); margin-top: 4px; }
.sub-title { font-size: 1.2rem; margin: 30px 0 12px; }
.sec-title .count {
    font-family: var(--f-ui); font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2);
    background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; padding: 1px 10px; vertical-align: middle;
}

/* ---------- the stage ---------- */
.stage {
    position: relative;
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
    color: var(--stage-ink);
    background:
        radial-gradient(60% 80% at 85% 35%, color-mix(in srgb, var(--part) 16%, transparent), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 420' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.045' stroke-width='2'%3E%3Cpath d='M0 120C100 60 200 60 300 120S500 180 600 120 800 60 900 120 1100 180 1200 120'/%3E%3Cpath d='M0 220C100 160 200 160 300 220S500 280 600 220 800 160 900 220 1100 280 1200 220'/%3E%3Cpath d='M0 320C100 260 200 260 300 320S500 380 600 320 800 260 900 320 1100 380 1200 320'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat,
        var(--stage);
    margin-bottom: 64px;
}
.stage a:focus-visible, .stage input:focus-visible { outline-color: #9cc0ff; }
.stage-in { display: grid; gap: 40px; padding: 48px 0 56px; }
@media (min-width: 1000px) { .stage-in { gap: 48px; padding: 64px 0 72px; } }
/* copy + search on one row, the wall full width below it (200+ services) */
@media (min-width: 1000px) { .stage-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; } .stage-copy .dateline, .stage-copy .headline, .stage-copy .lede { grid-column: 1; } .stage-copy .ask { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; } }
.dateline { color: var(--stage-ink-2); font-size: .95rem; margin-bottom: 16px; }
.headline { font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.16; letter-spacing: -.02em; max-width: 26em; }
.headline-lead { color: var(--stage-ink-2); font-weight: 500; }
.hname, .hmore { color: inherit; text-decoration: none; }
.hname {
    text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--c);
    text-decoration-thickness: max(2px, .06em); text-underline-offset: .2em; text-decoration-skip-ink: none;
    animation: squiggle .5s ease-out both;
}
.hitem { white-space: nowrap; }
/* sized from the headline font: a .34em monogram in a 2.1 x .34em (~.7em) tile */
.hname .slogo { font-size: .34em; width: 2.1em; height: 2.1em; vertical-align: .1em; margin-right: .55em; border-radius: 22%; }
.hname:hover { color: var(--c); }
.hmore { color: var(--stage-ink-2); font-weight: 500; }
.hmore:hover { color: var(--stage-ink); }
/* the one orchestrated moment: squiggles appear one after another, like a spell-check pass */
@keyframes squiggle { from { text-decoration-color: transparent; } }
.hname:nth-of-type(2) { animation-delay: .12s; }
.hname:nth-of-type(3) { animation-delay: .24s; }
.hname:nth-of-type(4) { animation-delay: .36s; }
.hname:nth-of-type(5) { animation-delay: .48s; }
.hname:nth-of-type(6) { animation-delay: .6s; }
.lede { color: var(--stage-ink-2); font-size: 1.1rem; max-width: 36em; margin-top: 20px; }

.ask {
    margin-top: 32px; display: inline-flex; align-items: center; gap: .4em; flex-wrap: wrap;
    font-family: var(--f-display); font-weight: 600; font-stretch: semi-condensed; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.2;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 18px 12px;
}
.ask label, .ask span { color: var(--stage-ink-2); }
.ask input {
    font: inherit; color: var(--stage-ink); background: transparent;
    width: 7.5em; max-width: 50vw; padding: 0 2px 2px;
    border: 0; border-bottom: 2px solid rgba(255, 255, 255, .25); border-radius: 0; outline: 0;
}
.ask input::placeholder { color: var(--stage-ink-2); opacity: .5; }
.ask input:focus { border-bottom-color: #ff4d63; }
.ask input:focus-visible { outline: 0; }
.ask:focus-within { border-color: rgba(255, 255, 255, .3); }
.ask input::-webkit-search-cancel-button { display: none; }

/* logo wall: one tile per service, broken ones lit */
.wall-wrap { margin: 0; }
.logowall { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; }
@media (min-width: 1000px) { .logowall { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 9px; } }
.wtile { position: relative; display: block; text-decoration: none; border-radius: 24%; transition: transform .12s ease-out; }
.wtile .slogo { --s: 100%; width: 100%; height: auto; aspect-ratio: 1; font-size: 1rem; }
.wtile.h-ok .slogo { filter: grayscale(1); opacity: .28; transition: opacity .15s, filter .15s; }
.wtile.h-ok:hover .slogo, .wtile.h-ok:focus-visible .slogo { filter: none; opacity: 1; }
.wtile:not(.h-ok) .slogo { box-shadow: 0 0 0 2px var(--stage), 0 0 0 4px var(--c), 0 0 22px color-mix(in srgb, var(--c) 55%, transparent); }
.wtile:hover, .wtile:focus-visible { transform: scale(1.14); z-index: 1; }
.wbadge {
    position: absolute; top: -7px; right: -7px; display: grid; place-items: center;
    width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: var(--on);
    font-size: 12px; box-shadow: 0 0 0 2px var(--stage);
}
.wtile.h-major .wbadge { animation: badgepulse 1.6s ease-in-out infinite; }
@keyframes badgepulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--stage), 0 0 0 2px color-mix(in srgb, var(--c) 50%, transparent); }
    50% { box-shadow: 0 0 0 2px var(--stage), 0 0 0 8px color-mix(in srgb, var(--c) 0%, transparent); }
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .92rem; color: var(--stage-ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.lg-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: var(--on); font-size: 12px; }

/* ---------- what's broken: incident cards with logos ---------- */
.broken { margin-bottom: 64px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.fcard {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; height: 100%;
    padding: 18px 20px 18px 18px; text-decoration: none; color: var(--ink);
    background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--lift);
    transition: border-color .15s, transform .15s ease-out;
}
.fcard:hover { border-color: var(--c); transform: translateY(-2px); }
.fcard-logo .slogo { --s: 56px; border-radius: 16px; }
.fcard-main { display: grid; gap: 6px; min-width: 0; }
.fcard-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.fname { font-family: var(--f-display); font-weight: 600; font-stretch: semi-condensed; font-size: 1.4rem; line-height: 1.15; }
.spill {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    font-size: .82rem; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px;
    color: var(--on); background: var(--c);
}
.finc { overflow-wrap: anywhere; }
.fmeta, .fcomps { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.aside-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.aside-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c); margin-right: 4px; }
.mchip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--rule); font-size: .92rem; }
.mchip .slogo { --s: 24px; border-radius: 50%; }
.mchip:hover { border-color: var(--rule-2); }
.nodata { color: var(--muted); }

/* ---------- all services: an app grid ---------- */
.all { margin-bottom: 72px; }
.all-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.chip { font: 500 .86rem var(--f-ui); color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--rule-2); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat { margin-top: 30px; }
.cat-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin-bottom: 14px; }
.cat-sum { font-family: var(--f-ui); font-size: .78rem; font-weight: 600; letter-spacing: 0; padding: 2px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.app {
    display: flex; align-items: center; gap: 12px; height: 100%;
    padding: 10px 12px; text-decoration: none; color: var(--ink);
    background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
    transition: border-color .12s, transform .12s ease-out;
}
.app:hover { border-color: var(--rule-2); transform: translateY(-1px); }
.app .slogo { --s: 40px; border-radius: 11px; }
.app-text { display: grid; min-width: 0; }
.app-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-stat { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.app-stat .sicon { color: var(--c); }
.app:not(.h-ok):not(.h-unknown) { background: color-mix(in srgb, var(--c) 9%, var(--panel)); border-color: color-mix(in srgb, var(--c) 45%, var(--rule)); }
.app:not(.h-ok):not(.h-unknown) .app-stat { color: var(--c); font-weight: 600; }
.noresults { color: var(--muted); padding: 24px 0; }

/* ---------- service page ---------- */
.svc-in { display: block; padding: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--stage-ink-2); padding-top: 24px; }
.crumbs a { color: var(--stage-ink); text-decoration: none; opacity: .85; }
.crumbs a:hover { text-decoration: underline; }
.svc-head { padding: 28px 0 56px; }
.svc-stage {
    background:
        radial-gradient(55% 90% at 90% 20%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%),
        var(--stage);
}
.svc-title { display: flex; align-items: center; gap: 18px; }
.svc-title .slogo { --s: 64px; border-radius: 18px; }
.svc-q { font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--stage-ink); font-weight: 500; overflow-wrap: anywhere; }
.verdict-word {
    font-family: var(--f-display); font-weight: 700; font-stretch: semi-condensed;
    font-size: clamp(4.5rem, 17vw, 9.5rem); line-height: .92; letter-spacing: -.03em;
    color: var(--c); margin-top: 14px;
}
.verdict-text { color: var(--stage-ink); font-size: 1.15rem; margin-top: 14px; max-width: 40em; }
.verdict-text .led { margin-right: 10px; vertical-align: .1em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 32px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--stage-rule); }
.facts dt { font-size: .82rem; color: var(--stage-ink-2); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.facts .muted { color: var(--stage-ink-2); }
.warn { margin-top: 16px; font-size: .92rem; color: var(--deg); }
.week { margin-top: 30px; }
.week-title { font-size: .82rem; color: var(--stage-ink-2); margin-bottom: 8px; }
.week-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.week-days li { display: grid; gap: 6px; text-align: center; }
.day-bar { display: block; height: 40px; border-radius: 8px; background: var(--c); }
.week-days li.h-ok .day-bar { background: color-mix(in srgb, var(--ok) 40%, var(--stage)); }
.week-days li.h-unknown .day-bar { background: var(--stage-2); }
.day-name { font-size: .8rem; color: var(--stage-ink-2); }

.block { margin-bottom: 52px; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 22px 16px; }
.block > .sec-title { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.incidents { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ticket { display: flex; flex-direction: column; background: var(--panel); border-radius: 16px; box-shadow: var(--lift); overflow: hidden; }
.t-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; background: var(--c); color: var(--on); padding: 12px 18px 11px; }
.t-name { font-family: var(--f-display); font-weight: 600; font-stretch: semi-condensed; font-size: 1.25rem; line-height: 1.15; overflow-wrap: anywhere; min-width: 0; }
.t-stat { font-size: .86rem; font-weight: 600; white-space: nowrap; }
.t-body { display: grid; gap: 8px; padding: 16px 18px 18px; min-width: 0; }
.inc-meta { font-size: .88rem; color: var(--muted); }
.inc-update { margin: 0; padding: 12px 16px; background: var(--bg); border-radius: 10px; color: var(--ink-2); font-size: .95rem; white-space: pre-line; overflow-wrap: anywhere; max-width: 56em; }
.inc-update footer { font-size: .8rem; color: var(--muted); margin-top: 8px; white-space: normal; }
.inc-comps { font-size: .88rem; color: var(--muted); }
.inc-link { justify-self: start; font-size: .92rem; font-weight: 600; }

.maint { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.maint li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--panel); border-radius: 12px; box-shadow: inset 4px 0 0 var(--maint); }
.maint .muted { display: block; font-size: .85rem; margin-top: 2px; }

.comps { list-style: none; margin: 0; padding: 0; columns: 18rem; column-gap: 32px; }
.comps li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--rule); min-width: 0; break-inside: avoid; }
.cname { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .95rem; }
.cstat { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.comps li:not(.h-ok) .cstat { color: var(--c); font-weight: 600; }
.comps.compact li { padding: 6px 2px; }
.comps.compact .cname { font-size: .88rem; }
.comp-group { font-size: 1rem; color: var(--ink-2); margin: 22px 0 4px; }
.allcomps { margin-top: 18px; }
.allcomps summary { cursor: pointer; font-size: .95rem; font-weight: 600; padding: 6px 0; }
.okline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink-2); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid var(--rule-2); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.tl-dot { position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c); }
.timeline li.is-active .tl-dot { background: var(--c); }
.tl-when { font-size: .86rem; color: var(--muted); }
.tl-when .live { color: var(--c); font-weight: 600; }
.tl-name { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.tl-impact { font-size: .86rem; color: var(--muted); }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.changes time { font-size: .86rem; color: var(--muted); display: inline-block; min-width: 8.5em; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 0 8px; border-radius: 999px; color: var(--on); background: var(--c); }
.about p { color: var(--ink-2); max-width: 44em; }

/* ---------- 404 / error ---------- */
.notfound { padding: 72px 0; max-width: 720px; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 16px; }
.notfound p { color: var(--ink-2); }
.chips-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list a { display: inline-block; text-decoration: none; font-size: .9rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 13px; }
.chips-list a:hover { border-color: var(--rule-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); margin-top: 24px; background: var(--panel); }
.footer-in { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 12px; font-size: .88rem; color: var(--muted); }
.footer-in p:first-child { max-width: 62em; }
.footer strong { color: var(--ink-2); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
    .led, .hname, .wbadge { animation: none !important; }
    .wtile, .fcard, .app { transition: none; }
}
