/* ==========================================================================
   claudestatus.live design system
   Mobile first. Light and dark themes (system setting, or the header toggle).
   All motion respects "reduce motion". Status is always shown with text, never color alone.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e9eef6;
  --fg: #0b1220;
  --fg-2: #2b3445;
  --muted: #5b6478;
  --border: #e2e7ef;
  --border-strong: #cfd7e3;
  --brand: #0b1b3a;
  --brand-tile: #0b1b3a;
  --accent: #4338ca;
  --accent-soft: #eef0ff;
  --accent-fg: #ffffff;
  --live: #15803d;
  --link: #3730a3;
  --code-bg: #0d1424;
  --code-fg: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 16px -8px rgba(15, 23, 42, .14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 24px -12px rgba(15, 23, 42, .2);
  --glow: rgba(67, 56, 202, .10);

  --ok-bg: #dcfce7; --ok-fg: #14532d; --ok-dot: #16a34a;
  --good-dot: #4ade80;
  --minor-bg: #fef6c7; --minor-fg: #713f12; --minor-dot: #ca8a04;
  --major-bg: #ffedd5; --major-fg: #7c2d12; --major-dot: #ea580c;
  --critical-bg: #fee2e2; --critical-fg: #7f1d1d; --critical-dot: #dc2626;
  --maint-bg: #dbeafe; --maint-fg: #1e3a8a; --maint-dot: #2563eb;
  --unknown-bg: #eef1f6; --unknown-fg: #334155; --unknown-dot: #64748b;
  --none-dot: #dde3ec;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Dark theme: used when the system is dark (unless the visitor chose light), or when chosen. */
:root[data-theme="dark"] {
  --bg: #070b14; --surface: #0d1424; --surface-2: #121b2e; --surface-3: #18233a;
  --fg: #e8ecf4; --fg-2: #c8d0de; --muted: #95a0b6; --border: #1c2740; --border-strong: #2a3754;
  --brand: #e8ecf4; --brand-tile: #1e3a8a; --accent: #8b93ff; --accent-soft: #1a1f45; --accent-fg: #0b1020;
  --live: #4ade80; --link: #a5b4fc; --code-bg: #060a13; --code-fg: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 12px 24px -12px rgba(0, 0, 0, .7); --glow: rgba(129, 140, 248, .12);
  --ok-bg: #062b17; --ok-fg: #bbf7d0; --ok-dot: #22c55e; --good-dot: #15803d;
  --minor-bg: #33270a; --minor-fg: #fde68a; --minor-dot: #eab308;
  --major-bg: #3b1607; --major-fg: #fed7aa; --major-dot: #f97316;
  --critical-bg: #3f0b0b; --critical-fg: #fecaca; --critical-dot: #ef4444;
  --maint-bg: #13224d; --maint-fg: #bfdbfe; --maint-dot: #3b82f6;
  --unknown-bg: #1a2335; --unknown-fg: #cbd5e1; --unknown-dot: #94a3b8; --none-dot: #1f2a40;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b14; --surface: #0d1424; --surface-2: #121b2e; --surface-3: #18233a;
    --fg: #e8ecf4; --fg-2: #c8d0de; --muted: #95a0b6; --border: #1c2740; --border-strong: #2a3754;
    --brand: #e8ecf4; --brand-tile: #1e3a8a; --accent: #8b93ff; --accent-soft: #1a1f45; --accent-fg: #0b1020;
    --live: #4ade80; --link: #a5b4fc; --code-bg: #060a13; --code-fg: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 12px 24px -12px rgba(0, 0, 0, .7); --glow: rgba(129, 140, 248, .12);
    --ok-bg: #062b17; --ok-fg: #bbf7d0; --ok-dot: #22c55e; --good-dot: #15803d;
    --minor-bg: #33270a; --minor-fg: #fde68a; --minor-dot: #eab308;
    --major-bg: #3b1607; --major-fg: #fed7aa; --major-dot: #f97316;
    --critical-bg: #3f0b0b; --critical-fg: #fecaca; --critical-dot: #ef4444;
    --maint-bg: #13224d; --maint-fg: #bfdbfe; --maint-dot: #3b82f6;
    --unknown-bg: #1a2335; --unknown-fg: #cbd5e1; --unknown-dot: #94a3b8; --none-dot: #1f2a40;
  }
}

/* Status levels: any element with .lvl-* gets --l-bg, --l-fg and --l-dot. */
.lvl-ok { --l-bg: var(--ok-bg); --l-fg: var(--ok-fg); --l-dot: var(--ok-dot); }
.lvl-minor { --l-bg: var(--minor-bg); --l-fg: var(--minor-fg); --l-dot: var(--minor-dot); }
.lvl-major { --l-bg: var(--major-bg); --l-fg: var(--major-fg); --l-dot: var(--major-dot); }
.lvl-critical { --l-bg: var(--critical-bg); --l-fg: var(--critical-fg); --l-dot: var(--critical-dot); }
.lvl-maint { --l-bg: var(--maint-bg); --l-fg: var(--maint-fg); --l-dot: var(--maint-dot); }
.lvl-unknown { --l-bg: var(--unknown-bg); --l-fg: var(--unknown-fg); --l-dot: var(--unknown-dot); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* soft glow behind the top of every page */
  content: ""; position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 380px at 15% -60px, var(--glow), transparent 70%), radial-gradient(700px 320px at 95% -40px, color-mix(in srgb, var(--live) 9%, transparent), transparent 70%);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
[hidden] { display: none !important; }
.no-js .js-only { visibility: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.skip-link:focus { left: 10px; }

/* ---------- Buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .9375rem/1 var(--font); padding: 10px 14px; min-height: 40px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-ghost[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn.is-spinning .icon { animation: spin .8s linear infinite; }

.chip { display: inline-flex; align-items: center; gap: 7px; font: 500 .875rem/1.2 var(--font); padding: 7px 13px; min-height: 36px; border-radius: 999px; cursor: pointer; background: var(--surface); color: var(--fg-2); border: 1px solid var(--border); text-decoration: none; transition: all .15s var(--ease); }
.chip:hover { border-color: var(--border-strong); color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-lg { padding: 10px 16px; min-height: 44px; font-size: .9375rem; }
.chip-skip { color: var(--muted); background: transparent; border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; transition: all .15s; }
.icon-btn:hover { border-color: var(--border-strong); transform: rotate(-12deg); }
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn > span { display: grid; place-items: center; }
.icon-btn > .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn > .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn > .i-moon { display: grid; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn > .i-sun { display: none; } :root:not([data-theme="light"]) .icon-btn > .i-moon { display: grid; } }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--l-bg, var(--surface-2)); color: var(--l-fg, var(--fg)); font: 600 .8125rem/1.4 var(--font); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--l-bg); color: var(--l-fg); font: 700 .75rem/1.6 var(--font); letter-spacing: .01em; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--surface-2); color: var(--fg-2); font-size: .78rem; font-weight: 500; }
.tag-muted { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--l-dot, var(--unknown-dot)); }
.dot.lvl-minor, .dot.lvl-major, .dot.lvl-critical { box-shadow: 0 0 0 3px color-mix(in srgb, var(--l-dot) 25%, transparent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .35); }
.header-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; padding-top: 10px; padding-bottom: 6px; }
.logo { display: inline-flex; padding: 4px 0; border-radius: 10px; }
.logo-svg { display: block; height: 32px; width: auto; }
.logo-tile { fill: var(--brand-tile); }
.logo-word { fill: var(--brand); }
.logo-live { fill: var(--live); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 .8125rem/1.2 var(--font); text-decoration: none; color: var(--l-fg); background: var(--l-bg); border: 1px solid color-mix(in srgb, var(--l-dot) 30%, transparent); white-space: nowrap; transition: transform .15s var(--ease); }
.status-chip:hover { transform: translateY(-1px); }
.status-chip .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.anim .status-chip .dot::after { animation: ping 2s var(--ease) infinite; will-change: transform, opacity; }
.main-nav { grid-column: 1 / -1; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); }
.main-nav::-webkit-scrollbar { display: none; }
.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 2px 0 4px; white-space: nowrap; }
.nav a { position: relative; display: block; padding: 8px 12px; border-radius: 999px; color: var(--fg-2); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: background-color .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); font-weight: 650; }
@media (min-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; padding-bottom: 10px; }
  .main-nav { grid-column: 2; grid-row: 1; margin: 0; padding: 0; mask-image: none; -webkit-mask-image: none; justify-self: center; }
  .header-tools { grid-column: 3; }
  .nav { padding: 0; }
}

.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--live)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Layout ---------- */
main { padding-top: 18px; padding-bottom: 64px; }
.content { max-width: 760px; margin: 0 auto; }
.wrap-wide .content { max-width: 920px; }
.page-grid { display: block; }
.toc-side { display: none; }
@media (min-width: 1120px) {
  .page-grid { display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: 64px; justify-content: center; }
  .page-grid .content { margin: 0; }
  .toc-side { display: block; }
  .toc-mobile { display: none; }
}

.breadcrumbs { max-width: 760px; margin: 0 auto; }
@media (min-width: 1120px) { .breadcrumbs.in-grid { max-width: 1074px; } }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin: 0 8px; opacity: .7; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--fg); letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 5.2vw, 2.75rem); line-height: 1.12; margin: 14px 0 20px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.375rem, 3.2vw, 1.75rem); line-height: 1.25; margin: 56px 0 14px; font-weight: 750; }
h3 { font-size: 1.15rem; line-height: 1.35; margin: 30px 0 10px; font-weight: 700; }
h2, h3 { position: relative; scroll-margin-top: 88px; }
.h-anchor { margin-left: 8px; text-decoration: none; color: var(--muted); opacity: 0; transition: opacity .15s; }
.h-anchor::before { content: "#"; font-weight: 500; }
h2:hover .h-anchor, h3:hover .h-anchor, .h-anchor:focus { opacity: 1; }
.content p, .content li { color: var(--fg-2); }
.content > p, .content > ul, .content > ol { font-size: 1.0625rem; }
p, ul, ol { margin: 0 0 18px; }
li { margin-bottom: 8px; }
strong { color: var(--fg); font-weight: 650; }
.content > ul { padding-left: 4px; list-style: none; }
.content > ul > li { position: relative; padding-left: 24px; }
.content > ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); opacity: .8; }
.content > ol { counter-reset: step; list-style: none; padding-left: 0; }
.content > ol > li { counter-increment: step; position: relative; padding-left: 44px; min-height: 30px; }
.content > ol > li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font: 700 .875rem/1 var(--font); }
hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0 24px; }
.content > p:last-child em { color: var(--muted); font-size: .9375rem; }

code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; color: var(--fg); }
pre { position: relative; background: var(--code-bg); color: var(--code-fg); border-radius: var(--r); padding: 18px 20px; overflow-x: auto; margin: 0 0 20px; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--code-fg) 10%, transparent); }
pre code { background: none; border: 0; padding: 0; font-size: .875rem; line-height: 1.65; color: inherit; overflow-wrap: normal; }
.copy-btn { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #cbd5e1; font: 600 .78rem/1 var(--font); cursor: pointer; opacity: 0; transition: opacity .15s, background-color .15s; }
pre:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.is-copied { opacity: 1; }
.copy-btn:hover { background: rgba(255, 255, 255, .14); }
.copy-btn.is-copied { color: #86efac; border-color: rgba(134, 239, 172, .4); }
@media (hover: none) { .copy-btn { opacity: 1; } }

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface-2); font-weight: 650; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
td:first-child { color: var(--fg); font-weight: 500; }
td code { white-space: nowrap; }

/* ---------- On this page ---------- */
.toc { position: sticky; top: 96px; padding: 4px 0 4px 18px; border-left: 1px solid var(--border); max-height: calc(100vh - 120px); overflow: auto; }
.toc-title { display: flex; align-items: center; gap: 8px; font: 700 .75rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 14px; }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { position: relative; display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .875rem; line-height: 1.4; transition: color .15s; }
.toc a:hover { color: var(--fg); }
.toc a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.toc a[aria-current="true"]::before { content: ""; position: absolute; left: -19px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); }
.toc-mobile { margin: 8px 0 28px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.toc-mobile summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 650; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon:last-child { margin-left: auto; transition: transform .2s; }
.toc-mobile[open] summary .icon:last-child { transform: rotate(180deg); }
.toc-mobile ol { padding: 0 16px 12px; }
.toc-mobile a { display: block; padding: 8px 0; border-top: 1px solid var(--border); color: var(--fg-2); text-decoration: none; font-size: .9375rem; }
.jump { margin: 4px 0 8px; }
.jump ul { display: flex; gap: 8px; list-style: none; padding: 2px 0 8px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.jump li { margin: 0; flex: none; }

/* ---------- Homepage hero ---------- */
.page-hero { padding-top: 6px; }
.page-hero > p { font-size: 1.125rem; color: var(--muted); max-width: 680px; }
.tool-block { margin: 0 0 22px; }

/* ---------- Status hero (Block 1, product pages) ---------- */
.hero-status { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px; margin: 0 0 6px; background: radial-gradient(130% 160% at 0% 0%, color-mix(in srgb, var(--l-dot) 20%, transparent), transparent 55%), var(--surface); border: 1px solid color-mix(in srgb, var(--l-dot) 32%, var(--border)); box-shadow: var(--shadow-lg); transition: border-color .4s, background .4s; }
.hero-status::after { content: ""; position: absolute; right: -110px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 34px, color-mix(in srgb, var(--l-dot) 16%, transparent) 34px 35px); -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%); mask-image: radial-gradient(circle, #000 40%, transparent 72%); pointer-events: none; }
.hero-status > * { position: relative; z-index: 1; }
.hs-top { display: flex; align-items: center; gap: 18px; }
.orb { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--l-dot) 16%, transparent); contain: layout; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--l-dot); opacity: 0; }
.anim .orb::before, .anim .orb::after { animation: ripple 2.6s var(--ease) infinite; will-change: transform, opacity; }
.orb::after { animation-delay: 1.3s; }
.orb-core { width: 26px; height: 26px; border-radius: 50%; background: var(--l-dot); box-shadow: 0 0 0 6px color-mix(in srgb, var(--l-dot) 22%, transparent), 0 0 24px color-mix(in srgb, var(--l-dot) 60%, transparent); }
.lvl-critical .orb::before, .lvl-critical .orb::after { animation-duration: 1.4s; }
.orb.small { width: 42px; height: 42px; }
.orb.small .orb-core { width: 18px; height: 18px; }
.hs-text { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 700 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }
.anim .live-dot { animation: blink 2s ease-in-out infinite; will-change: opacity; }
.hs-title { margin: 0; font: 800 clamp(1.4rem, 4.4vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.025em; color: var(--fg); }
.compact .hs-title { font-size: clamp(1.3rem, 3.8vw, 1.65rem); }
.hs-sub { margin: 6px 0 0; color: var(--fg-2); font-size: .9375rem; }
.active-incidents { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.active-incidents li { margin: 0; }
.ai-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); color: var(--fg); text-decoration: none; font-size: .9375rem; transition: transform .15s var(--ease), border-color .15s; }
a.ai-item:hover { transform: translateX(3px); border-color: var(--l-dot); }
.ai-icon { color: var(--l-dot); }
.ai-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ai-name { flex: 1; font-weight: 600; min-width: 0; }
.ai-icon, .ai-arrow { margin-top: .15em; }
.ai-status { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.ai-arrow { color: var(--muted); }
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 11px 14px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 600; }
.notice .icon { margin-top: .2em; }
.notice-spike, .notice-alert { background: var(--critical-bg); color: var(--critical-fg); }
.notice-alert { font-weight: 500; margin: 0 0 14px; }
.notice-spike a { color: inherit; }
.notice-stale { background: var(--surface-2); color: var(--fg-2); }
.hs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0; }
.hs-stats div { padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); }
.hs-stats dt { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.hs-stats dd { margin: 4px 0 0; font: 800 1.5rem/1 var(--font-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.hs-stats .of { font-size: 1rem; font-weight: 600; color: var(--muted); }
.hs-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.hs-pills .pill { margin: 0; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--fg); border: 1px solid var(--border); padding: 6px 12px; font-weight: 500; }
.hs-pills .pill .dot { background: var(--l-dot); }
.hs-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--l-dot) 30%, var(--border)); }
.last-checked { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .875rem; }
.last-checked strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.live-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.live-actions .btn { padding: 8px 12px; min-height: 36px; font-size: .8125rem; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font: 600 .8125rem/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 58px; }
.countdown svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.cd-track { fill: none; stroke: var(--border-strong); stroke-width: 3.5; }
.cd-bar { fill: none; stroke: var(--live); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.box-extra { margin-top: 18px; }
.box-subtitle { font-weight: 700; margin: 0 0 10px; }
.box-extra .timeline { margin: 0; }
.box-extra .tl-item { padding-left: 0; }
.box-extra .tl-item::before, .box-extra .tl-node { display: none; }
@media (min-width: 640px) { .hero-status { padding: 28px 30px; } .orb { width: 68px; height: 68px; } .orb-core { width: 30px; height: 30px; } }
@media (max-width: 560px) {
  .hero-status { padding: 18px 16px; }
  .hs-top { align-items: flex-start; gap: 14px; }
  .orb { width: 44px; height: 44px; margin-top: 4px; }
  .orb-core { width: 20px; height: 20px; }
  .hs-stats { gap: 8px; }
  .hs-stats div { padding: 10px; }
  .hs-stats dt { font-size: .7rem; }
  .hs-stats dd { font-size: 1.25rem; }
  .ai-item { align-items: flex-start; }
  .ai-body { flex-direction: column; align-items: flex-start; gap: 2px; }
  .live-actions { width: 100%; }
  .live-actions .btn { flex: 1; justify-content: center; }
  .logo-svg { height: 26px; }
  .status-chip { padding: 5px 10px; font-size: .75rem; }
  .icon-btn { width: 36px; height: 36px; }
}

/* ---------- Mini box (guide pages) ---------- */
.mini { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 16px 18px; margin: 4px 0 24px; border-radius: var(--r-lg); background: radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--l-dot) 16%, transparent), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--l-dot) 30%, var(--border)); box-shadow: var(--shadow); }
.mini-body { flex: 1; min-width: 200px; }
.mini-title { margin: 0; font-size: 1.0625rem; color: var(--fg); }
.mini-meta { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
.mini-link { font-size: .875rem; }

/* ---------- Product cards (Block 2) ---------- */
.product-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.product-card { position: relative; margin: 0; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--l-dot) 40%, var(--border)); }
.product-card::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: var(--l-dot); opacity: .9; }
.pc-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--fg-2); flex: none; }
.pc-icon .icon { width: 20px; height: 20px; }
.pc-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pc-name { font-weight: 700; color: var(--fg); line-height: 1.25; }
.strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 30px; }
.day { position: relative; border-radius: 3px; background: var(--none-dot); transition: transform .12s var(--ease), filter .12s; }
.d-ok { background: var(--ok-dot); }
.d-good { background: var(--good-dot); }
.d-minor { background: var(--minor-dot); }
.d-major { background: var(--major-dot); }
.d-critical { background: var(--critical-dot); }
.day:hover { transform: scaleY(1.15); filter: brightness(1.1); }
.day:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5; padding: 6px 9px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 600 .75rem/1.2 var(--font); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
.day:nth-child(-n+5):hover::after { left: 0; transform: none; }
.day:nth-last-child(-n+5):hover::after { left: auto; right: 0; transform: none; }
.strip-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.strip-sum { margin: 6px 0 0; font-size: .8125rem; color: var(--fg-2); font-weight: 600; }
.pc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8125rem; font-weight: 600; text-decoration: none; }
.pc-link .icon { transition: transform .15s var(--ease); }
.pc-link:hover .icon { transform: translateX(3px); }
.fine-print { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.fine-print .icon { margin-top: .15em; }

/* ---------- Reports (Block 3) ---------- */
.reports { display: grid; gap: 14px; margin: 0 0 6px; }
@media (min-width: 820px) { .reports { grid-template-columns: 1.05fr 1fr; align-items: stretch; } }
.vote-card, .stats-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 20px; }
.vote-card { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--surface); }
.vote-q { font: 800 1.25rem/1.25 var(--font-display); margin: 0 0 4px; color: var(--fg); letter-spacing: -0.015em; }
.vote-hint { display: flex; align-items: center; gap: 7px; margin: 0 0 18px; font-size: .8125rem; color: var(--muted); }
.vote-buttons { display: grid; gap: 10px; }
@media (min-width: 420px) { .vote-buttons { grid-template-columns: 1fr 1fr; } }
.vote-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; min-height: 92px; border-radius: var(--r); cursor: pointer; text-align: left; font: 700 1rem/1.2 var(--font); border: 1.5px solid; transition: transform .15s var(--ease), box-shadow .15s, background-color .15s; }
.vote-btn .icon { width: 26px; height: 26px; }
.vote-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vote-btn:active { transform: scale(.98); }
.vote-yes { background: var(--ok-bg); color: var(--ok-fg); border-color: color-mix(in srgb, var(--ok-dot) 55%, transparent); }
.vote-no { background: var(--critical-bg); color: var(--critical-fg); border-color: color-mix(in srgb, var(--critical-dot) 55%, transparent); }
.vote-btn:disabled, .chip:disabled { opacity: .55; cursor: progress; transform: none; }
.vote-step { animation: rise .35s var(--ease); }
.vote-step[data-step="vote"] { animation: none; }
.step-label { margin: 0 0 12px; font-weight: 650; color: var(--fg); }
.step-count { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }
.vote-done { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.done-check { width: 52px; height: 52px; flex: none; }
.done-check circle { fill: var(--ok-bg); stroke: var(--ok-dot); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s var(--ease) forwards; }
.done-check path { fill: none; stroke: var(--ok-dot); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease) forwards; }
.done-text { margin: 0; font-weight: 650; color: var(--fg); }
.report-msg { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.report-msg:empty { display: none; }

.stats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.stats-title { margin: 0; font-weight: 750; color: var(--fg); }
.legend { display: flex; gap: 12px; margin: 0; font-size: .8125rem; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.lg::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.lg-no::before { background: var(--major-dot); }
.lg-yes::before { background: var(--ok-dot); }
.chart-empty { display: grid; justify-items: center; text-align: center; padding: 18px 10px 6px; }
.chart-empty svg { width: 120px; height: 64px; margin-bottom: 10px; }
.chart-empty rect { fill: var(--surface-3); }
.reports-empty { margin: 0 0 4px; font-weight: 700; color: var(--fg); }
.chart { margin: 0 0 14px; }
.bars { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; padding-top: 22px; border-bottom: 1px solid var(--border-strong); background: repeating-linear-gradient(to top, transparent 0 41px, var(--border) 41px 42px); }
.bar-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; border-radius: 6px 6px 0 0; }
.bar-col:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.bar { display: block; width: 100%; max-width: 30px; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--major-dot), color-mix(in srgb, var(--major-dot) 70%, var(--critical-dot))); transform-origin: bottom; transition: transform .7s var(--ease); }
.js .chart:not(.is-in) .bar { transform: scaleY(0); }
.bar-value { position: absolute; left: 50%; bottom: calc(var(--h, 0%) + 4px); transform: translateX(-50%); font: 700 .75rem/1 var(--font); color: var(--fg); transition: opacity .4s .4s; }
.js .chart:not(.is-in) .bar-value { opacity: 0; }
.bar-col:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 5; padding: 6px 9px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 600 .75rem/1.2 var(--font); white-space: nowrap; pointer-events: none; }
.bar-col:nth-child(-n+3):hover::after { left: 0; transform: none; }
.bar-col:nth-last-child(-n+3):hover::after { left: auto; right: 0; transform: none; }
.chart-ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.insight { margin: 4px 0 10px; }
.insight p { margin: 0 0 6px; }
.insight-line { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9375rem; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--live)); }
.meter.small { height: 6px; margin-bottom: 4px; }

/* ---------- Incident timeline (Block 4) ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.timeline { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.tl-item { position: relative; margin: 0; padding: 0 0 14px 30px; }
.tl-item::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: -4px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-node { position: absolute; left: 0; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--l-dot); }
.tl-card { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.tl-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.tl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8125rem; color: var(--muted); }
.tl-time { display: inline-flex; align-items: center; gap: 5px; }
.tl-dur { margin-left: auto; font-weight: 600; color: var(--fg-2); }
.tl-name { margin: 8px 0 8px; font-weight: 700; color: var(--fg); line-height: 1.4; }
.tl-details { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.tl-details summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--link); list-style: none; }
.tl-details summary::-webkit-details-marker { display: none; }
.tl-details summary .icon { transition: transform .2s var(--ease); }
.tl-details[open] summary .icon { transform: rotate(180deg); }
.tl-details p { margin: 8px 0; font-size: .875rem; color: var(--fg-2); }
.tl-link { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; }
.empty-note { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--border-strong); color: var(--muted); }
.collecting { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.collecting-head { display: flex; gap: 12px; align-items: flex-start; }
.collecting-head .icon { width: 26px; height: 26px; color: var(--accent); }
.collecting-head p { margin: 0 0 14px; color: var(--fg-2); }
.uptime-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin: 0 0 10px; }
.uptime-card { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.uc-name { margin: 0; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.uc-big { margin: 4px 0; font: 800 1.6rem/1.1 var(--font-display); color: var(--fg); }
.uc-big span { display: block; font: 500 .75rem/1.4 var(--font); color: var(--muted); }
.uc-small { margin: 0; font-size: .8125rem; color: var(--fg-2); }

/* ---------- FAQ accordions ---------- */
.faq { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; transition: background-color .15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary h3 { margin: 0; flex: 1; font-size: 1.0625rem; }
.faq-item summary .h-anchor { display: none; }
.faq-chevron { color: var(--muted); transition: transform .25s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 0 20px 6px; animation: rise .3s var(--ease); }
.faq-answer p { color: var(--fg-2); }

/* ---------- Ad slots: fixed height so ads never push content around ---------- */
.ad-slot { min-height: 300px; margin: 36px 0; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; background: #0b1b3a; color: #c7d0e0; padding: 48px 0 28px; font-size: .9375rem; }
:root[data-theme="dark"] .site-footer { background: #050912; border-top: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #050912; border-top: 1px solid var(--border); } }
.site-footer a { color: #e6ebf5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.f-brand { grid-column: 1 / -1; }
.f-brand p { margin: 10px 0 0; color: #a9b5cb; max-width: 320px; }
.site-footer .logo-tile { fill: #1e3a8a; }
.site-footer .logo-word { fill: #ffffff; }
.site-footer .logo-live { fill: #4ade80; }
.f-h { margin: 0 0 10px; font: 700 .75rem/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: #8d9ab3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8d9ab3; font-size: .8125rem; }
.f-bottom p { margin: 0; }
.disclaimer { max-width: 720px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .f-brand { grid-column: auto; } }

/* ---------- Floating UI ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--fg); color: var(--bg); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.toasts { position: fixed; left: 50%; bottom: 18px; z-index: 70; display: grid; gap: 8px; transform: translateX(-50%); width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--fg); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; animation: toast-in .35s var(--ease); pointer-events: auto; }
.toast .dot { margin-top: .4em; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }

/* Reveal sections as they scroll in (only when JavaScript runs). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Motion ---------- */
@keyframes ripple { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--l-dot) 50%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.is-updated { animation: flash .9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .chart:not(.is-in) .bar { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
