/* status.openwaf.dev — palette and type of the panel (apps/dash/src/styles/app.css) and openwaf.dev (site.css):
   cobalt #2456e8, cold paper #f5f6f8, ink #1a2030; dark #09090b / #121214 / #18181b. Inter for text, Instrument Sans
   at 420–460 for headings. No inline styles (CSP style-src 'self'); build.mjs fingerprints the font URLs.
   Status colours: text versions reach WCAG AA (≥ 4.5:1) on the page and cards in both themes; bar fills reach 3:1
   except yellow in the light theme (3.15:1 for degraded), and every status also carries an icon and its text. */

@font-face { font-family: "Inter"; src: url(/fonts/inter-variable.ea94f85fc1.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-variable.7bc27ab382.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --brand: #2456e8;
  --ink: #1a2030;
  --text: #333a4a;
  --muted: rgb(16 22 36 / .64);
  --page: #f5f6f8;
  --surface: #fff;
  --surface-2: #eceef2;
  --chrome: #fff;
  --hover: rgb(96 106 128 / .1);
  --line: rgb(96 106 128 / .2);
  --line-strong: rgb(96 106 128 / .34);
  --tint: color-mix(in srgb, var(--brand) 12%, #fff);
  --link: var(--brand);
  --ok: #1f7a4a; --ok-bg: #e3f4ea;
  --err: #b42318; --err-bg: #fde8e6;
  --sombra-s: 0 1px 3px rgb(10 20 40 / .08), 0 0 0 1px rgb(96 106 128 / .12);
  --sombra-m: 0 8px 24px -8px rgb(10 20 40 / .14), 0 0 0 1px rgb(96 106 128 / .14);
  --sombra-l: 0 24px 48px -16px rgb(10 20 40 / .28), 0 0 0 1px rgb(96 106 128 / .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titulos: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Status text (on page and cards) and soft backgrounds. */
  --st-ok: #1f7a4a; --st-deg: #7d6200; --st-par: #b04a00; --st-maj: #b42318; --st-mnt: #2456e8; --st-none: #5f6675;
  --bg-ok: #e3f4ea; --bg-deg: #fbf1cc; --bg-par: #fde9da; --bg-maj: #fde8e6; --bg-mnt: var(--tint); --bg-none: var(--surface-2);
  /* Daily bar fills (contract day colours). */
  --b-ok: #2b9a5c; --b-degraded: #b58b00; --b-minor: #c27400; --b-partial: #e0620f; --b-major: #d32f2f; --b-maint: #2456e8; --b-none: #c5cad3;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #fafafa; --text: #d4d4d8; --muted: #a1a1aa;
  --page: #09090b; --surface: #121214; --surface-2: #18181b; --chrome: #09090b; --hover: rgb(255 255 255 / .05);
  --line: rgb(255 255 255 / .08); --line-strong: rgb(255 255 255 / .14);
  --tint: color-mix(in srgb, var(--brand) 20%, #121214);
  --link: color-mix(in srgb, var(--brand) 50%, #fff);
  --ok: #5fd39a; --ok-bg: rgb(46 160 100 / .16);
  --err: #ff8a80; --err-bg: rgb(230 70 60 / .16);
  --sombra-s: 0 0 0 1px var(--line); --sombra-m: 0 12px 32px -8px rgb(0 0 0 / .7), 0 0 0 1px var(--line-strong); --sombra-l: 0 24px 64px -12px rgb(0 0 0 / .8), 0 0 0 1px var(--line-strong);
  --st-ok: #5fd39a; --st-deg: #ecc94b; --st-par: #ff9d57; --st-maj: #ff8a80; --st-mnt: #8aa8ff; --st-none: #a1a1aa;
  --bg-ok: rgb(46 160 100 / .16); --bg-deg: rgb(220 180 40 / .16); --bg-par: rgb(240 120 40 / .16); --bg-maj: rgb(230 70 60 / .16); --bg-mnt: var(--tint); --bg-none: var(--surface-2);
  --b-ok: #3fbf7f; --b-degraded: #e2bd3a; --b-minor: #f0a030; --b-partial: #ff8540; --b-major: #f2564b; --b-maint: #5b82ff; --b-none: #3f3f46;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --ink: #fafafa; --text: #d4d4d8; --muted: #a1a1aa;
    --page: #09090b; --surface: #121214; --surface-2: #18181b; --chrome: #09090b; --hover: rgb(255 255 255 / .05);
    --line: rgb(255 255 255 / .08); --line-strong: rgb(255 255 255 / .14);
    --tint: color-mix(in srgb, var(--brand) 20%, #121214);
    --link: color-mix(in srgb, var(--brand) 50%, #fff);
    --ok: #5fd39a; --ok-bg: rgb(46 160 100 / .16);
    --err: #ff8a80; --err-bg: rgb(230 70 60 / .16);
    --sombra-s: 0 0 0 1px var(--line); --sombra-m: 0 12px 32px -8px rgb(0 0 0 / .7), 0 0 0 1px var(--line-strong); --sombra-l: 0 24px 64px -12px rgb(0 0 0 / .8), 0 0 0 1px var(--line-strong);
    --st-ok: #5fd39a; --st-deg: #ecc94b; --st-par: #ff9d57; --st-maj: #ff8a80; --st-mnt: #8aa8ff; --st-none: #a1a1aa;
    --bg-ok: rgb(46 160 100 / .16); --bg-deg: rgb(220 180 40 / .16); --bg-par: rgb(240 120 40 / .16); --bg-maj: rgb(230 70 60 / .16); --bg-mnt: var(--tint); --bg-none: var(--surface-2);
    --b-ok: #3fbf7f; --b-degraded: #e2bd3a; --b-minor: #f0a030; --b-partial: #ff8540; --b-major: #f2564b; --b-maint: #5b82ff; --b-none: #3f3f46;
    color-scheme: dark;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 420 15px/1.55 var(--fuente); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--titulos); font-weight: 440; line-height: 1.25; }
h1 { margin: 0 0 12px; font-size: 32px; letter-spacing: -.02em; }
h2 { margin: 0 0 14px; font-size: 21px; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 16px; font-weight: 460; }
h4 { margin: 0; font-size: 14px; font-weight: 460; }
p { margin: 0 0 10px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
code, pre { font-family: var(--mono); font-size: 13px; }
code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--ink); }
.muted { color: var(--muted); }
.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: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 500; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-l { width: 26px; height: 26px; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding-inline: 24px; }

/* ── Header ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.hdr { background: var(--chrome); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo .marca { width: 26px; height: 26px; color: var(--brand); }
.mk-l, .mk-r { fill: currentColor; }
.mk-r { fill-opacity: .72; }
.logo-w { font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: .14em; }
.logo-s { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-strong); font: 460 17px/24px var(--titulos); color: var(--muted); }
.hdr-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hdr-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
.hdr-nav a:hover { background: var(--hover); color: var(--ink); }
.hdr-nav a[aria-current="page"] { color: var(--ink); background: var(--hover); }
.hdr-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease); }
.tool:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.tool .ic { width: 16px; height: 16px; }
.tool-icon { padding: 0; }
.tool[aria-pressed="true"] { border-color: var(--brand); background: var(--tint); color: var(--ink); }
.th { display: none; }
:root[data-theme="auto"] .th-auto, :root[data-theme="light"] .th-light, :root[data-theme="dark"] .th-dark { display: block; }
@media (max-width: 760px) {
  .hdr-in { flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .hdr-nav { order: 3; width: calc(100% + 16px); margin: 6px -8px 0; overflow-x: auto; scrollbar-width: none; }
  .hdr-nav a { padding: 10px 8px; font-size: 13.5px; }
  .hdr-tools { gap: 4px; }
  .tool { padding: 0 10px; }
  #lang .ic { display: none; }
  .wrap { padding-inline: 16px; }
  .logo-s { display: none; }
}

/* ── Layout ───────────────────────────────────────────────────────────────────────────────────────────────────── */
main { padding-block: 32px 64px; }
main > * + *, #incident > * + * { margin-top: 28px; }
.card { padding: 20px 24px; border-radius: 12px; background: var(--surface); box-shadow: var(--sombra-s); }
@media (max-width: 600px) { .card { padding: 16px; } main { padding-top: 20px; } h1 { font-size: 26px; } }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.head-row h2 { margin: 0; }
.stack > * + * { margin-top: 12px; }
.lead { max-width: 680px; font-size: 16px; color: var(--text); }
.callout { padding: 12px 16px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.callout-ok { background: var(--ok-bg); color: var(--ok); }
.callout-err { background: var(--err-bg); color: var(--err); }
#active:empty { display: none; }
#active > * + * { margin-top: 28px; }
.secret { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-strong); }
.secret pre { white-space: pre-wrap; word-break: break-all; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more .ic { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 84%, #000); }
.btn:disabled { opacity: .55; cursor: default; }

/* Status colours: s-* for statuses, i-* for incident impact; both set --c (text) and --bg (soft background). */
.s-ok, .i-ok { --c: var(--st-ok); --bg: var(--bg-ok); }
.s-deg, .i-deg { --c: var(--st-deg); --bg: var(--bg-deg); }
.s-par, .i-par { --c: var(--st-par); --bg: var(--bg-par); }
.s-maj, .i-maj { --c: var(--st-maj); --bg: var(--bg-maj); }
.s-mnt, .i-mnt { --c: var(--st-mnt); --bg: var(--bg-mnt); }
.s-none, .i-none { --c: var(--st-none); --bg: var(--bg-none); }
.st { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-size: 14px; font-weight: 500; white-space: nowrap; }
.st .ic { width: 17px; height: 17px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }
/* Chips: the panel's .badge (22 px, radius 6, 12/600). */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--bg); color: var(--c); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip-plain { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.chip-done { color: var(--muted); }

/* ── Banner ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 20px 24px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.banner-row { display: flex; align-items: center; gap: 12px; color: var(--c); font: 460 22px/1.25 var(--titulos); }
.banner .upd { margin: 0 0 0 auto; color: var(--text); font-size: 13px; }
@media (max-width: 600px) { .banner { padding: 16px; } .banner-row { font-size: 19px; } .banner .upd { margin-left: 38px; } }
noscript .callout { display: block; }

/* ── Incident cards ───────────────────────────────────────────────────────────────────────────────────────────── */
.inc-card { padding: 18px 22px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, var(--line)), var(--sombra-s); }
.inc-card > * + * { margin-top: 10px; }
.inc-h { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px 10px; }
.inc-h h3 { font-size: 17px; }
.inc-h h3 a { color: var(--ink); text-decoration: none; }
.inc-h h3 a:hover { text-decoration: underline; }
@media (max-width: 600px) { .inc-h { grid-template-columns: 1fr; } }
.when { margin: 0; font-size: 13.5px; color: var(--text); }
.meta { display: grid; gap: 4px; margin: 0; font-size: 14px; }
.meta > div { display: flex; gap: 10px; }
.meta dt { flex: none; min-width: 96px; color: var(--muted); }
.meta dd { margin: 0; color: var(--text); }
@media (max-width: 600px) { .meta > div { flex-direction: column; gap: 2px; } }
.latest { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.latest p:last-child { margin-bottom: 0; }
.upd-meta { font-size: 13.5px; }
.upd-meta strong { color: var(--ink); font-weight: 600; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.note { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.note h4 { margin-bottom: 4px; font-family: var(--fuente); font-size: 13px; font-weight: 600; }
.note p:last-child { margin-bottom: 0; }
.next { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--muted); }
.next .ic { width: 16px; height: 16px; }

/* ── Components and bars ──────────────────────────────────────────────────────────────────────────────────────── */
.comps > * + * { border-top: 1px solid var(--line); }
.comp { position: relative; padding: 16px 0; }
.comps > .comp:first-child, .comps > .grp:first-child > .comp { padding-top: 4px; }
.comp-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.comp-h > .st { margin-left: auto; }
.comp-name { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.info { display: inline-flex; padding: 2px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.info:hover { color: var(--ink); }
.info .ic { width: 16px; height: 16px; }
.tip-desc { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; display: none; width: max-content; max-width: min(320px, 80vw); padding: 8px 12px; border-radius: 8px; background: var(--surface); box-shadow: var(--sombra-l); color: var(--text); font-size: 13px; font-weight: 420; line-height: 1.45; }
.info:hover + .tip-desc, .info:focus-visible:not(.tip-off) + .tip-desc, .tip-desc.open { display: block; }
.grp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px 2px 0; border: 0; background: none; color: var(--ink); text-align: left; }
.grp-btn .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease); }
.grp-btn[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.grp-count { color: var(--muted); font-size: 13px; font-weight: 420; white-space: nowrap; }
.grp-kids { margin-left: 26px; border-top: 1px solid var(--line); }
.grp-kids > .comp + .comp { border-top: 1px solid var(--line); }
.bars-wrap { position: relative; }
.bars { display: flex; gap: 2px; height: 34px; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--bc); cursor: pointer; transition: opacity .15s; }
.bar:hover, .bar.on { opacity: .7; }
.bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; opacity: 1; }
.c-ok { --bc: var(--b-ok); }
.c-degraded { --bc: var(--b-degraded); }
.c-minor { --bc: var(--b-minor); }
.c-partial { --bc: var(--b-partial); }
.c-major { --bc: var(--b-major); }
.c-maint { --bc: var(--b-maint); }
.c-none { --bc: var(--b-none); }
.bars-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.bars-foot .rule { flex: 1; height: 1px; background: var(--line); }
/* «… uptime since <date>» may not fit beside «30 days ago» and «Today» on a phone: it wraps, centred. */
.bars-foot .up { min-width: 0; white-space: normal; text-align: center; }
.w60, .w30 { display: none; }
@media (max-width: 900px) { .bar:nth-child(-n+30) { display: none; } .w90 { display: none; } .w60 { display: inline; } }
@media (max-width: 600px) { .bar:nth-child(-n+60) { display: none; } .w60 { display: none; } .w30 { display: inline; } }
.bar-tip { position: absolute; top: 44px; z-index: 30; width: 270px; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--sombra-l); font-size: 13px; line-height: 1.45; }
.bar-tip::before { content: ""; position: absolute; top: -6px; left: calc(var(--arrow, 50%) - 6px); width: 12px; height: 12px; background: var(--surface); transform: rotate(45deg); box-shadow: -1px -1px 0 0 var(--line); }
.bar-tip p { margin: 0; }
.tip-day { color: var(--ink); font-weight: 600; }
.tip-day .muted { font-weight: 420; }
.tip-up { margin-bottom: 4px !important; }
.tip-min, .tip-inc { margin: 6px 0 0; padding: 0; list-style: none; }
.tip-min li { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 2px; background: var(--bc); }
.tip-h { margin-top: 8px !important; color: var(--ink); font-weight: 600; }
.tip-inc li + li { margin-top: 4px; }

/* ── Response time ────────────────────────────────────────────────────────────────────────────────────────────── */
.lat-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select { height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { height: 34px; padding: 0 12px; border: 0; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }
.chart-box { min-height: 160px; }
.chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--line); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--fuente); }
.chart .line-max { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.chart .line-avg { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.chart .cursor { stroke: var(--line-strong); }
.chart .dot-avg, .chart .pt-avg { fill: var(--ink); }
.collecting { margin: 0 0 6px; font-size: 13px; }
.lat-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.lat-foot p { margin: 0; }
.legend { display: inline-flex; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 0; border-top: 2px solid var(--ink); }
.legend .lg-max { border-top: 1px dashed var(--muted); }
#lat-read { min-height: 20px; margin-top: 4px; font-size: 13px; color: var(--text); }
.empty { padding: 40px 0; text-align: center; }

/* ── Upstream and past incidents ──────────────────────────────────────────────────────────────────────────────── */
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.up-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--surface); box-shadow: var(--sombra-s); }
.up-item a { color: var(--ink); font-weight: 500; }
.up-item .st { font-size: 13px; white-space: normal; text-align: right; }
.day { padding: 14px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; padding-top: 0; }
.day h3 { margin-bottom: 6px; font-size: 15px; }
.day > p { margin: 0; }
.past { margin: 8px 0 0; padding: 4px 0; }
.past-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.past-h h3, .past-h h4 { font-family: var(--fuente); font-size: 15px; font-weight: 500; }
.past-h a { color: var(--ink); }
.past-upd { margin: 4px 0; font-size: 14px; }
.past-upd strong { color: var(--ink); font-weight: 600; }
.past .when { font-size: 13px; color: var(--muted); }

/* ── Incident page ────────────────────────────────────────────────────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; }
.back .ic { width: 16px; height: 16px; }
.inc-title { display: block; }
.inc-title h1 { margin-bottom: 10px; }
.inc-facts > * + * { margin-top: 12px; }
.affected { margin: 0; padding: 0; list-style: none; }
.affected li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 2px 0; }
.affected .st { font-size: 13px; }
/* Updates: a plain list, newest first, separated by hairlines (no rail, no dots). */
.timeline { margin: 0; padding: 0; list-style: none; }
.tl { padding: 16px 0; border-top: 1px solid var(--line); }
.tl:first-child { border-top: 0; padding-top: 0; }
.tl-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.tl-h strong { color: var(--ink); font-weight: 600; }
.tl-h time { color: var(--muted); font-size: 13px; }
.tl > * + .note, .tl > .changes, .tl > .next { margin-top: 8px; }
.changes { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.changes .st { font-size: 13px; }
.postmortem p { max-width: 720px; }
.feed a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.feed .ic { width: 16px; height: 16px; }

/* ── History ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field { display: grid; gap: 4px; }
.field > span, .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.month h2 { margin: 0 0 10px; font-size: 19px; }
.month + .month { margin-top: 28px; }
.pager { display: flex; gap: 10px; }

/* ── Forms (subscribe, confirm) ───────────────────────────────────────────────────────────────────────────────── */
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-weight: 600; }
.form > * + * { margin-top: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { border-color: var(--brand); background: var(--tint); color: var(--ink); }
.pill:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
input[type="url"] { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.hint { margin-top: 8px; color: var(--muted); font-size: 14px; }
.cbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.cb { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; cursor: pointer; }
.cb input { width: 16px; height: 16px; accent-color: var(--brand); }
.cb-set { margin-top: 12px; }
.cb-group { margin: 0 0 4px; color: var(--ink); font-weight: 600; font-size: 14px; }

/* ── About ────────────────────────────────────────────────────────────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin: 22px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.formula { padding: 12px 16px; border-radius: 10px; background: var(--surface); box-shadow: var(--sombra-s); font-family: var(--mono); font-size: 14px; color: var(--ink); }
.legend-days { display: grid; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.legend-days li { display: flex; align-items: center; gap: 10px; }
.legend-days .dot { width: 14px; height: 14px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.badges img { display: block; height: 20px; }
.snippet { position: relative; margin: 8px 0 14px; }
.snippet pre { margin: 0; padding: 12px 90px 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--ink); overflow-x: auto; white-space: pre; }
.snippet .copy { position: absolute; top: 7px; right: 7px; height: 30px; padding: 0 10px; font-size: 12.5px; }
.api { width: 100%; border-collapse: collapse; font-size: 14px; }
.api th, .api td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.api th { color: var(--muted); font-weight: 500; }
.api td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .api td:first-child { white-space: normal; word-break: break-all; } }

/* ── Reachability ─────────────────────────────────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.reach { width: 100%; border-collapse: collapse; font-size: 14px; }
.reach th, .reach td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.reach thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.reach tbody th { color: var(--ink); font-weight: 500; }
.reach .num { text-align: right; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-wrap + .actions, #reach-status + .table-wrap { margin-top: 16px; }

/* ── Footer ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.ftr { border-top: 1px solid var(--line); background: var(--chrome); padding: 36px 0 44px; font-size: 14px; }
.ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.ftr h2 { margin: 0 0 10px; color: var(--muted); font: 600 12px/1.4 var(--fuente); letter-spacing: .06em; text-transform: uppercase; }
.ftr ul { margin: 0; padding: 0; list-style: none; }
.ftr li + li { margin-top: 6px; }
.ftr a { color: var(--text); text-decoration: none; }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; color: var(--muted); }
.ftr-base .logo .marca { width: 20px; height: 20px; }
.ftr-base .logo-w { font-size: 13px; }

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