/*
 * status.secureprocessing.app: one stylesheet, design system v2, ported from the approved artboards
 * (scratchpad/ds-scripts/status_artboards.py). Served as a file so the page's CSP can say
 * `style-src 'self'` with no 'unsafe-inline'. Light by default, dark from the OS. Desktop by default,
 * the phone layout (30 bars, stacked rows) at 760px and below.
 */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Variable-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg-canvas: #ffffff; --bg-subtle: #f6f9fa; --bg-surface: #ffffff; --bg-muted: #edf2f4; --bg-inset: #edf2f4;
  --fg-default: #131d25; --fg-heading: #0b2a3a; --fg-muted: #475864; --fg-subtle: #607280;
  --bg-accent: #0f766e; --fg-accent: #005b55; --fg-on-accent: #ffffff;
  --border-default: #dbe3e7; --border-muted: #e4ebee; --border-strong: #c1ccd3; --border-focus: #0f766e;
  --bg-success-subtle: #dcf9e1; --bg-success: #15803d; --fg-success: #196c35;
  --bg-warning-subtle: #ffedd6; --bg-warning: #fbac16; --fg-warning: #7b5100;
  --bg-danger-subtle: #ffebe8; --bg-danger: #b91c1c; --fg-danger: #a22523;
  --bg-info-subtle: #e8f1ff; --bg-info: #1a59d4; --fg-info: #1f53b8;
  --bar-ok: #62bf79; --bar-none: #dbe3e7;
  --logo-tile: #052e2c; --logo-bars: #43bfb0;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px;
  --gutter: 80px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: #081218; --bg-subtle: #0b161c; --bg-surface: #0f1a21; --bg-muted: #182934; --bg-inset: #050d12;
    --fg-default: #eef3f5; --fg-heading: #eef3f5; --fg-muted: #a9b7c0; --fg-subtle: #8b9ba6;
    --bg-accent: #2dd4bf; --fg-accent: #6ce6d1; --fg-on-accent: #052e2c;
    --border-default: rgba(255, 255, 255, 0.10); --border-muted: rgba(255, 255, 255, 0.06); --border-strong: rgba(255, 255, 255, 0.16); --border-focus: #2dd4bf;
    --bg-success-subtle: #0b2a14; --bg-success: #4fce74; --fg-success: #78d68e;
    --bg-warning-subtle: #311f00; --bg-warning: #f7ae0c; --fg-warning: #ecb250;
    --bg-danger-subtle: #391715; --bg-danger: #f66c69; --fg-danger: #ffa09a;
    --bg-info-subtle: #11233d; --bg-info: #609efa; --fg-info: #95c0ff;
    --bar-ok: #287c42; --bar-none: #22333e;
    --logo-tile: #2dd4bf; --logo-bars: #052e2c;
    color-scheme: dark;
  }
}
@media (max-width: 1200px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-canvas); color: var(--fg-default); font-family: var(--font-sans); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
a { color: var(--fg-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: 4px; }
.i { width: 16px; height: 16px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* header */
.top { border-bottom: 1px solid var(--border-default); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-default); }
.brand:hover { text-decoration: none; }
.mark { width: 28px; height: 28px; display: block; }
.wm { font-weight: 650; font-size: 17px; letter-spacing: -0.015em; }
.sub { font-size: 15px; font-weight: 500; color: var(--fg-muted); padding-left: 12px; border-left: 1px solid var(--border-default); }
.top-nav { display: flex; gap: 28px; align-items: center; }
.top-nav a { color: var(--fg-muted); font-weight: 500; font-size: 15px; }
.crumb { padding-top: 24px; }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }

/* overall. The headline is Inter (DS v2 heading-l / heading-m), the owner's call on 2026-11-01. */
.overall { padding-top: 64px; padding-bottom: 48px; }
/* The approved boards' sizes (48 home, 44 incident, 32 phone). The owner changed the font to Inter
   and nothing else, so the weight is the boards' too. */
.overall h1, .inc h1, .nf h1 { font-family: var(--font-sans); font-weight: 400; letter-spacing: -0.02em; color: var(--fg-heading); margin: 12px 0 0; text-wrap: balance; max-width: 30ch; }
.overall h1 { font-size: 48px; line-height: 52px; }
.inc h1 { font-size: 44px; line-height: 50px; }
.nf h1 { font-size: 32px; line-height: 38px; }
.overall .lede { margin: 12px 0 0; font-size: 16px; line-height: 25px; color: var(--fg-muted); max-width: 60ch; }
.fresh { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--fg-subtle); font-size: 13px; }
.fresh span { display: inline-flex; gap: 6px; align-items: center; }
.stale { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--bg-warning-subtle); color: var(--fg-warning); font-size: 14px; max-width: 760px; }
.stale .i { margin-top: 2px; }

/* status words: icon + word, never colour alone */
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.st .i { width: 15px; height: 15px; }
.st-ok { color: var(--fg-success); } .st-warn { color: var(--fg-warning); } .st-bad { color: var(--fg-danger); } .st-info { color: var(--fg-info); } .st-none { color: var(--fg-subtle); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--bg-muted); color: var(--fg-muted); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-bad { background: var(--bg-danger-subtle); color: var(--fg-danger); } .chip-bad .dot { background: var(--bg-danger); }
.chip-warn { background: var(--bg-warning-subtle); color: var(--fg-warning); } .chip-warn .dot { background: var(--bg-warning); }
.chip-info { background: var(--bg-info-subtle); color: var(--fg-info); } .chip-info .dot { background: var(--bg-info); }
.chip-ok { background: var(--bg-success-subtle); color: var(--fg-success); } .chip-ok .dot { background: var(--bg-success); }

/* open incident summary on the home page */
.open { display: grid; gap: 8px; margin-top: 28px; padding: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-surface); max-width: 760px; }
.open + .open { margin-top: 12px; }
.open-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.open h2 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.open p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 21px; }
.open .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.open .when { color: var(--fg-subtle); font-size: 13px; }

/* sections */
.sec { padding-block: 40px; border-top: 1px solid var(--border-default); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.sec h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-default); }
.sec-note { color: var(--fg-subtle); font-size: 13px; }

/* the ledger of services */
.rows { list-style: none; margin: 0; padding: 0; }
.ledger { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-surface); }
.ledger-head { display: grid; grid-template-columns: 264px minmax(0, 1fr) 84px 184px; gap: 24px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border-default); color: var(--fg-subtle); font-size: 12px; font-weight: 500; }
.ledger-head .r { text-align: right; }
.comp { display: grid; grid-template-columns: 264px minmax(0, 1fr) 84px 184px; grid-template-areas: "name strip up st"; gap: 24px; align-items: center; padding: 16px 20px; }
.comp + .comp { border-top: 1px solid var(--border-muted); }
.comp-name { grid-area: name; display: grid; gap: 2px; min-width: 0; }
.cn { font-weight: 600; font-size: 14px; }
.ch { color: var(--fg-subtle); font-size: 12px; font-family: var(--font-mono); overflow-wrap: break-word; }
.comp-strip { grid-area: strip; min-width: 0; }
.comp-up { grid-area: up; display: flex; flex-direction: column; align-items: flex-end; }
.comp-up .num { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 13px; }
.comp-up .cap { color: var(--fg-subtle); font-size: 12px; }
.comp-st { grid-area: st; justify-self: end; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 32px; }
.bars.b30 { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 28px; display: none; }
.d { border-radius: 2px; background: var(--bar-ok); position: relative; }
.d-ok { background: var(--bar-ok); } .d-degraded { background: var(--bg-warning); } .d-outage { background: var(--bg-danger); } .d-maintenance { background: var(--bg-info); } .d-none { background: var(--bar-none); }
.axis-in { display: flex; justify-content: space-between; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--fg-muted); font-size: 12px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.phone-axis { display: none; justify-content: space-between; color: var(--fg-subtle); font-size: 11px; margin-top: 6px; }

/* maintenance and history */
.cards { display: grid; gap: 12px; }
.card { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-surface); padding: 20px; display: grid; gap: 6px; }
.card h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.card p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 21px; max-width: 70ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--fg-subtle); font-size: 13px; align-items: center; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.hist { list-style: none; margin: 0; padding: 0; }
.month { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding-block: 18px; border-top: 1px solid var(--border-muted); }
.month:first-child { border-top: 0; padding-top: 0; }
.month-name { font-weight: 600; font-size: 14px; color: var(--fg-default); }
.month-body { display: grid; gap: 12px; min-width: 0; }
.quiet { color: var(--fg-subtle); font-size: 14px; }
.hist-item { display: grid; gap: 4px; }
.hist-item .t { font-weight: 600; font-size: 15px; color: var(--fg-default); }
.hist-item p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 21px; max-width: 70ch; }

/* incident view */
.inc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.inc-lede { margin: 12px 0 0; color: var(--fg-muted); font-size: 16px; line-height: 25px; max-width: 60ch; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.step { display: grid; gap: 4px; padding: 12px 16px; background: var(--bg-surface); }
.step + .step { border-left: 1px solid var(--border-default); }
.step .sn { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13px; }
.step .stime { color: var(--fg-subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.step.done .sn { color: var(--fg-default); } .step.done .i { color: var(--fg-success); }
.step.now { background: var(--bg-info-subtle); } .step.now .sn, .step.now .i { color: var(--fg-info); }
.step.todo .sn { color: var(--fg-subtle); }
.tl { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding-block: 20px; border-top: 1px solid var(--border-muted); }
.tl-item:first-child { border-top: 0; padding-top: 0; }
.tl-when { display: grid; gap: 2px; align-content: start; }
.tl-when .tm { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14px; }
.tl-when .dy { color: var(--fg-subtle); font-size: 12px; }
.tl-body { display: grid; gap: 6px; min-width: 0; }
.tl-stage { font-weight: 600; font-size: 14px; }
.tl-body p { margin: 0; color: var(--fg-default); font-size: 15px; line-height: 23px; max-width: 64ch; white-space: pre-line; }
.aside { display: grid; gap: 16px; }
.box { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-surface); padding: 20px; display: grid; gap: 12px; }
.box h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.facts dt { color: var(--fg-subtle); } .facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.affected { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.affected li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.box p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 21px; }
.box.todo-box { background: var(--bg-subtle); }
.box.todo-box p strong { color: var(--fg-default); font-weight: 600; }

/* not found */
.nf { padding-top: 64px; padding-bottom: 96px; }
.nf p { margin: 12px 0 0; color: var(--fg-muted); font-size: 16px; line-height: 25px; }

/* footer */
.foot { border-top: 1px solid var(--border-default); background: var(--bg-subtle); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 32px; }
.foot-note { margin: 0; color: var(--fg-subtle); font-size: 13px; line-height: 19px; max-width: 62ch; }
.feeds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.feeds a { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }

/* phone: the artboards' 390 layout */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .wrap { max-width: none; }
  /* Thirty days on a phone, ninety on a desktop: both strips are in the page, one is shown. */
  .bars.b90 { display: none; }
  .bars.b30 { display: grid; }
  .phone-axis { display: flex; }
  .top-in { height: 56px; }
  .wm { display: none; }
  .sub { padding-left: 0; border-left: 0; }
  .top-nav { gap: 16px; }
  .top-nav a { font-size: 14px; }
  .top-nav a:not(.sign) { display: none; }
  .crumb { padding-top: 16px; }
  .overall { padding-top: 32px; padding-bottom: 28px; }
  .overall h1, .inc h1, .nf h1 { font-size: 32px; line-height: 36px; letter-spacing: -0.015em; }
  .overall .lede, .inc-lede { font-size: 15px; line-height: 22px; }
  .stale { margin-top: 20px; }
  .open { margin-top: 20px; padding: 16px; }
  .open h2 { font-size: 16px; }
  .sec { padding-block: 28px; }
  .sec-head { margin-bottom: 12px; }
  .sec h2 { font-size: 18px; }
  .ledger-head { display: none; }
  .comp { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name st" "strip strip" "up up"; gap: 10px 12px; padding: 16px; }
  .ch { font-size: 11px; }
  .comp-up { flex-direction: row; gap: 6px; align-items: baseline; }
  .legend { margin-top: 12px; }
  .card { padding: 16px; }
  .month { grid-template-columns: 1fr; gap: 8px; padding-block: 14px; }
  .inc { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; padding-bottom: 32px; }
  .steps { margin-top: 24px; }
  .step { padding: 10px 8px; }
  .step .sn { font-size: 12px; }
  .step .sn .i { display: none; }
  .tl { margin-top: 24px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-block: 16px; }
  .tl-when { grid-auto-flow: column; justify-content: start; gap: 10px; }
  .box { padding: 16px; }
  .foot-in { padding-block: 24px; }
  .nf { padding-top: 32px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 1ms !important; animation-duration: 1ms !important; } }
