/* pwned.coffee: fresh breaches, brewed hourly. Light only, never dark. */

@font-face { font-family: 'Shrikhand'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/shrikhand-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ground: #F2F5FF;        /* steamed milk */
  --surface: #FFFFFF;       /* mug white */
  --ink: #1A1410;
  --ink-2: #4A433E;
  --ink-3: #6A625C;
  --accent: #2140D4;        /* cobalt */
  --accent-soft: #DCE4FF;
  --line: #D3DCF7;
  --flame-tip: #FFC93C;
  --flame: #FF6A13;
  --ember: #E2273F;
  --decaf: #1F8A55;
  --sev-critical: #C8102E;
  --sev-high: #D14E00;
  --sev-medium: #8A5A00;
  --sev-low: #5A524C;
  --sev-unknown: #6A625C;
  --patched: #1A6A44;
  --patched-line: #1F8A55;
  --partial: #8A5A00;
  --partial-line: #C88A00;
  --nofix: #A80F27;
  --nofix-line: #C8102E;
  --open-ink: #A85A00;
  --heat-0: #E6EBF7;
  --heat-1: #FFE08A;
  --heat-2: #FFB347;
  --heat-3: #FF6A13;
  --heat-4: #C8102E;
  --shadow: 0 1px 2px rgba(26, 20, 16, 0.04), 0 14px 36px -24px rgba(33, 64, 212, 0.28);
  --shadow-lift: 0 2px 4px rgba(26, 20, 16, 0.05), 0 22px 48px -24px rgba(33, 64, 212, 0.35);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --gutter: 18px;
  --col: 1160px;
  --read: 860px;
  --header-h: 72px;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sign: 'Shrikhand', 'Bricolage Grotesque', serif;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--sans); overflow-x: clip; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.86em; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.sign { font-family: var(--sign); font-weight: 400; font-size: 24px; letter-spacing: 0; }
p { margin: 0; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 8px; }
.nowrap { white-space: nowrap; }
@media (min-width: 900px) { .sign { font-size: 28px; } }

/* ---------- containers ---------- */
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
main.page { max-width: var(--read); }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main.wrap { flex: 1 0 auto; display: flex; flex-direction: column; gap: 28px; padding-top: 24px; padding-bottom: 64px; }
main.wrap.page { padding-top: 32px; }
main.full { gap: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 900px) { main.wrap { gap: 32px; padding-top: 28px; padding-bottom: 88px; } main.wrap.page { padding-top: 48px; } main.full { gap: 44px; } .card { padding: 24px; } }

/* ---------- header + nav ---------- */
.site-header { position: relative; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; background: rgba(242, 245, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mug { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-family: var(--sign); font-size: 26px; color: var(--accent); line-height: 1.05; }
.updated { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.site-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.site-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 11px; color: var(--ink-3); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.site-nav .nav-long { display: none; }
.site-nav .count { position: absolute; top: 2px; left: calc(50% + 6px); font-family: var(--mono); font-size: 10px; font-weight: 500; background: var(--flame); color: #fff; padding: 0 5px; min-width: 18px; text-align: center; line-height: 16px; border-radius: 99px; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.bar { padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bar { flex-wrap: nowrap; height: var(--header-h); padding-top: 0; padding-bottom: 0; }
  .brand-mug { width: 44px; height: 44px; }
  .wordmark { font-size: 28px; }
  .site-nav { position: static; display: flex; gap: 6px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; padding: 0; }
  .site-nav svg, .site-nav .nav-short { display: none; }
  .site-nav .nav-long { display: inline; }
  .site-nav a { flex-direction: row; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 99px; font-size: 15px; color: var(--ink-2); }
  .site-nav a:hover { background: var(--surface); color: var(--ink); }
  .site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
  .site-nav .count { position: static; font-size: 11px; line-height: 18px; padding: 0 7px; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; }
.hero-stage { position: relative; aspect-ratio: 390 / 400; width: 100%; max-width: 440px; margin: -40px auto 0; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 62%, rgba(255, 106, 19, var(--glow, 0)), transparent 70%); pointer-events: none; }
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-readout { position: absolute; left: 0; right: 0; top: 81.5%; text-align: center; display: flex; flex-direction: column; gap: 0; pointer-events: none; }
.hero-temp { font-size: clamp(46px, 14vw, 60px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--temp-color, var(--ink)); letter-spacing: -0.02em; }
.hero-temp .hell { display: inline-block; color: var(--sev-critical); }
.hero-readout small { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.hero-line { padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line); font-size: 18px; font-weight: 600; line-height: 1.35; box-shadow: var(--shadow); }
.hero-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.hero-tools > span { flex: 1; min-width: 0; }
.decaf-toggle { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.decaf-toggle .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--flame); border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); transition: background 0.4s; }
.decaf .decaf-toggle { border-color: var(--decaf); color: var(--decaf); }
.decaf .decaf-toggle .dot { background: var(--decaf); }
.decaf-toggle .when-on, .decaf .decaf-toggle .when-off { display: none; }
.decaf .decaf-toggle .when-on { display: inline; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(420px, 540px) minmax(0, 1fr); gap: 40px; }
  .hero-stage { margin: -44px 0 -12px; max-width: 540px; }
  .hero-side { margin-top: 0; gap: 18px; }
  .hero-line { font-size: 24px; padding: 20px 24px; }
  .hero-tools { font-size: 14px; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 0; }
.stat span { font-size: 13px; color: var(--ink-3); line-height: 1.25; min-height: 2.5em; }
.stat b { font-size: 32px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat.critical b { color: var(--sev-critical); }
.stat.open b { color: var(--open-ink); }
.stat small { font-size: 12px; color: var(--ink-3); }
@media (min-width: 900px) { .stats { gap: 12px; } .stat { padding: 18px 20px; } .stat b { font-size: 42px; } .stat span { font-size: 14px; min-height: 0; } }

/* arc + fire + mug */
.arc-track { stroke: var(--accent-soft); }
.arc-fill { stroke: var(--arc-color, var(--decaf)); stroke-dasharray: var(--arc, 2 660); transition: stroke-dasharray 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), stroke 0.8s; }
.arc-labels { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.arc-labels .hell-label { fill: var(--sev-critical); font-weight: 500; }
.fire { transform: translate(191px, 334px) scale(var(--fire, 0)); transform-origin: 0 0; transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tongue { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 1.3s ease-in-out infinite alternate; }
.head-flame { transform: translate(191px, 182px) scale(var(--head, 0)); transform-origin: 0 0; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mug-g { transform-origin: 195px 260px; }
.steam { animation: rise 2.6s ease-out infinite; }
.bubble { transform-box: fill-box; animation: bub 1.1s ease-in infinite; }
.face > * { transition: opacity 0.35s ease; }
.mug-steam, .mug-bubbles, .eyes-happy, .eyes-open, .eye-ring, .smile, .wobble, .grin, .sweat1, .sweat2 { opacity: 0; }
.mood-0 .mug-steam, .mood-1 .mug-steam, .mood-2 .mug-steam, .mood-3 .mug-steam { opacity: 1; }
.mood-2 .mug-bubbles, .mood-3 .mug-bubbles, .mood-4 .mug-bubbles { opacity: 1; }
.mood-0 .eyes-happy { opacity: 1; }
.mood-1 .eyes-open, .mood-2 .eyes-open, .mood-3 .eyes-open, .mood-4 .eyes-open { opacity: 1; }
.mood-3 .eye-ring, .mood-4 .eye-ring { opacity: 1; }
.mood-0 .smile, .mood-1 .smile { opacity: 1; }
.mood-2 .wobble { opacity: 1; }
.mood-3 .grin, .mood-4 .grin { opacity: 1; }
.mood-2 .sweat1, .mood-3 .sweat1, .mood-4 .sweat1 { opacity: 1; }
.mood-3 .sweat2, .mood-4 .sweat2 { opacity: 1; }
.mood-3.mug-g { animation: jit 2.4s steps(2) infinite; }
.mood-4.mug-g { animation: jit 0.8s steps(2) infinite; }
.mug-g.notice { animation: notice 0.7s ease-out 1; }
.decaf .hero-stage, .intro .hero-stage { --fire: 0 !important; --head: 0 !important; --arc: 2 660 !important; --arc-color: var(--decaf) !important; --glow: 0 !important; --temp-color: var(--patched) !important; }
.decaf .mug-g, .intro .mug-g { animation: none; }
.decaf .mug-g .mug-steam, .intro .mug-g .mug-steam, .decaf .mug-g .eyes-happy, .intro .mug-g .eyes-happy, .decaf .mug-g .smile, .intro .mug-g .smile { opacity: 1; }
.decaf .mug-g .mug-bubbles, .intro .mug-g .mug-bubbles, .decaf .mug-g .eyes-open, .intro .mug-g .eyes-open, .decaf .mug-g .eye-ring, .intro .mug-g .eye-ring, .decaf .mug-g .wobble, .intro .mug-g .wobble, .decaf .mug-g .grin, .intro .mug-g .grin, .decaf .mug-g .sweat1, .intro .mug-g .sweat1, .decaf .mug-g .sweat2, .intro .mug-g .sweat2 { opacity: 0; }
.when-decaf, .when-intro { display: none; }
.decaf .when-real, .intro .when-real { display: none; }
.decaf .when-decaf { display: inline; }
.intro:not(.decaf) .when-intro { display: inline; }
.hero-temp .hell { animation: hell 0.9s ease-in-out infinite; }
.intro .hero-temp .hell { animation: none; }
@keyframes flick { 0% { transform: scale(1, 1) skewX(0); } 40% { transform: scale(0.94, 1.1) skewX(-4deg); } 70% { transform: scale(1.04, 0.9) skewX(3deg); } 100% { transform: scale(0.98, 1.05) skewX(-1deg); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 0.8; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes jit { 0%, 88% { transform: translate(0, 0); } 92% { transform: translate(-1.5px, 0) rotate(-1.5deg); } 96% { transform: translate(1.5px, 0) rotate(1.5deg); } }
@keyframes bub { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-8px) scale(1.1); opacity: 0; } }
@keyframes hell { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes notice { 0% { transform: translateY(0); } 25% { transform: translateY(-10px) rotate(-2deg); } 55% { transform: translateY(2px) rotate(1.5deg); } 100% { transform: translateY(0); } }

/* ---------- section heads, chips, buttons ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.switch { display: flex; padding: 3px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.switch a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 99px; font-size: 13px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; border: 0; line-height: 1.2; }
.chip:hover { color: #fff; background: var(--accent); }
.chip.ghost { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink-3); }
.chip.ghost:hover { border-style: solid; color: var(--accent); border-color: var(--accent); background: transparent; }
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.btn:hover { color: #fff; background: #1a33ad; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn.secondary:hover { color: var(--accent); border-color: var(--accent); }
.code-block { display: block; font-family: var(--mono); font-size: 12.5px; background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 10px; overflow-x: auto; white-space: pre; margin: 0; }
.code-block.soft { background: var(--ground); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); }

/* ---------- board: specials + sidebar ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.board-side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) {
  .board { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .board-side { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ---------- don't get pwned ---------- */
.protect { display: flex; flex-direction: column; gap: 16px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.steps .body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding-top: 3px; }
.steps b { font-size: 16px; line-height: 1.3; }
.steps .sub { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.inline-form { display: flex; gap: 6px; }
.inline-form input { flex: 1; min-width: 0; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.agents { font-size: 13px; color: var(--ink-2); }
.agent { display: flex; flex-direction: column; gap: 10px; }

/* ---------- specials ---------- */
.specials { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; font-size: 15px; padding: 12px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search button { border-radius: 99px; }
.filter-bar { display: flex; flex-direction: column; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; font-size: 13px; font-weight: 600; scrollbar-width: none; margin: 0; list-style: none; padding-left: 0; }
.filters::-webkit-scrollbar { display: none; }
.filters a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface); text-decoration: none; border: 1px solid var(--line); color: var(--ink-2); line-height: 1.2; }
.filters a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters a.f-patched { border-color: var(--patched-line); color: var(--patched); }
.filters a.f-partial { border-color: var(--partial-line); color: var(--partial); }
.filters a.f-unpatched { border-color: var(--nofix-line); color: var(--nofix); }
.filters a.f-patched[aria-current="true"] { background: var(--patched); color: #fff; }
.filters a.f-partial[aria-current="true"] { background: var(--partial); color: #fff; }
.filters a.f-unpatched[aria-current="true"] { background: var(--nofix); color: #fff; }
.filters a .n { font-family: var(--mono); font-weight: 500; opacity: 0.8; margin-left: 4px; font-size: 11.5px; }
.search-note { font-size: 14px; color: var(--ink-3); }
@media (min-width: 900px) {
  .filter-bar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 0; }
  .filters { flex-wrap: wrap; overflow: visible; }
  .filters + .filters { padding-left: 14px; margin-left: 14px; border-left: 1px solid var(--line); }
  .filters a { padding: 0 13px; }
}

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.row-link { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); overflow: hidden; }
.row-link::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--edge, var(--line)); }
.sev-edge-critical { --edge: var(--sev-critical); }
.sev-edge-high { --edge: var(--sev-high); }
.sev-edge-medium { --edge: var(--sev-medium); }
.sev-edge-low { --edge: var(--sev-low); }
.row-link:hover { color: var(--ink); border-color: var(--accent); }
.row-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.row-top time { margin-left: auto; font-weight: 500; color: var(--ink-3); }
.sev { padding: 3px 9px; border-radius: 99px; color: #fff; background: var(--sev-unknown); text-transform: lowercase; line-height: 1.2; }
.sev-critical { background: var(--sev-critical); }
.sev-high { background: var(--sev-high); }
.sev-medium { background: var(--sev-medium); }
.sev-low { background: var(--sev-low); }
.patch { padding: 2px 9px; border-radius: 99px; border: 1.5px solid var(--ink-3); color: var(--ink-3); line-height: 1.2; }
.patch-patched { border-color: var(--patched-line); color: var(--patched); }
.patch-partial { border-color: var(--partial-line); color: var(--partial); }
.patch-unpatched { border-color: var(--nofix-line); color: var(--nofix); }
.tag-exploited { padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); line-height: 1.2; }
.row-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.row-affected { font-size: 13px; color: var(--ink-3); }
.row-summary { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.row-meta .fixed { color: var(--patched); }
.row-meta code { font-size: inherit; }
.empty { padding: 24px 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .row-link { padding: 18px 22px 18px 24px; } .row-title { font-size: 18px; } .row-summary { font-size: 15px; max-width: 70ch; } }

/* ---------- history ---------- */
.heat { display: flex; flex-direction: column; gap: 12px; }
.heat .heat-scope { font-family: var(--sans); font-size: 15px; color: var(--ink-3); font-weight: 400; }
.heat-controls { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.seg { display: contents; }
.seg a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); line-height: 1.2; }
.seg a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.heat-card { padding: 16px 14px 14px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.heat-scroll { overflow-x: auto; scrollbar-width: none; }
.heat-scroll::-webkit-scrollbar { display: none; }
@media (max-width: 699px) {
  .heat-inner { width: max-content; }
  .heat-inner .heat-grid, .heat-inner .heat-months { grid-template-columns: repeat(var(--weeks), 11px) !important; }
  .heat-grid { gap: 2px; }
  .cell { border-radius: 2.5px; }
}
.heat-inner { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.heat-months { display: grid; grid-auto-rows: 14px; font-size: 10px; color: var(--ink-3); }
.heat-months span { white-space: nowrap; }
.heat-grid { display: grid; grid-auto-rows: 1fr; gap: 1.5px; }
.cell { display: block; width: 100%; aspect-ratio: 1; border-radius: 1.5px; background: var(--heat-0); min-width: 0; }
.cell.out { background: transparent; }
.cell.future { background: transparent; box-shadow: inset 0 0 0 1px var(--heat-0); }
.cell.l1 { background: var(--heat-1); }
.cell.l2 { background: var(--heat-2); }
.cell.l3 { background: var(--heat-3); }
.cell.l4 { background: var(--heat-4); }
a.cell:hover, a.cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.heat-legend .cell { width: 10px; height: 10px; aspect-ratio: auto; }
.heat-note { font-size: 13px; color: var(--ink-3); }
.trend { margin: 0; }
.trend-svg { display: block; width: 100%; height: auto; }
.trend-base { stroke: var(--line); }
.trend-line { fill: none; stroke: var(--flame); stroke-width: 2; }
.trend-dot { fill: var(--flame); }
.trend-peak { fill: var(--sev-critical); }
.trend figcaption { font-size: 13px; color: var(--ink-3); }
@media (min-width: 900px) {
  .heat-card { padding: 22px 24px 18px; }
  .heat-grid { gap: 3px; }
  .cell { border-radius: 3px; }
  .heat-months { font-size: 12px; grid-auto-rows: 18px; }
  .heat-legend { font-size: 12px; } .heat-legend .cell { width: 12px; height: 12px; }
  .heat-note { font-size: 14px; }
}

/* ---------- footer ---------- */
.site-footer { flex: none; border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 13px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--ink); }
.site-footer .menu-links { display: flex; flex-wrap: wrap; gap: 4px 10px; }
@media (min-width: 900px) { .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 24px; } .site-footer .menu-links { max-width: 560px; } }

/* ---------- generic pages ---------- */
.page-head { display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-family: var(--sign); font-weight: 400; font-size: 32px; color: var(--ink); }
.page-head p { color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.back { font-size: 14px; }
.back a { color: var(--ink-3); text-decoration: none; }
.back a::before { content: '← '; }
.back a:hover { color: var(--accent); }
.notice { padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; }
.notice.ok { border-left: 4px solid var(--decaf); }
.notice.err { border-left: 4px solid var(--sev-critical); }
.muted { color: var(--ink-3); }
.hint { font-size: 14px; color: var(--ink-3); }
.pager { display: flex; justify-content: space-between; gap: 10px; }
.pager a { padding: 10px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.month h2 { font-family: var(--sign); font-weight: 400; font-size: 22px; margin-bottom: 12px; }
.month + .month { margin-top: 8px; }
section > h2:not(.sign) { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
section > h2.sign { margin-bottom: 12px; }
.prose { display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.55; }
.prose h2 { font-family: var(--sign); font-weight: 400; font-size: 24px; margin-top: 8px; }
.prose code { background: var(--surface); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.message { align-items: center; text-align: center; padding-top: 40px; }
.message .mini-mug { width: 110px; height: 110px; }
@media (min-width: 900px) { .page-head h1 { font-size: 40px; } }

/* ---------- order ticket ---------- */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lift); padding: 26px 22px 30px; position: relative; display: flex; flex-direction: column; gap: 18px; }
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, var(--surface) 6.5px) 0 0 / 12px 8px repeat-x; }
.ticket-head { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.ticket-head .shop { font-family: var(--sign); font-size: 22px; color: var(--accent); text-transform: none; letter-spacing: 0; }
.ticket h1 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.ticket .lede { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.ticket .affected { font-size: 14px; color: var(--ink-3); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-family: var(--mono); font-size: 13px; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); padding: 16px 0; }
.facts div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .inline { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.facts .fixed-list li { color: var(--patched); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 15px; }
.timeline time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.ticket-total { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; border-top: 1.5px dashed var(--line); padding-top: 12px; color: var(--ink-3); }
.copy-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-status { font-size: 13px; color: var(--ink-3); }
@media (min-width: 900px) { .ticket { padding: 34px 36px 38px; } .ticket h1 { font-size: 32px; } .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts .wide { grid-column: span 2; } }

/* ---------- the menu ---------- */
.menu-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.menu-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 13px 16px; text-decoration: none; }
.menu-list a:hover { background: var(--ground); color: var(--ink); }
.menu-name { font-weight: 600; flex: 1; }
.menu-detail { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.level { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.level-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.level-operational { color: var(--patched); }
.level-degraded { color: var(--partial); }
.level-partial { color: var(--sev-high); }
.level-major { color: var(--sev-critical); }
.menu-head .level { font-size: 14px; }
@media (min-width: 720px) { .menu-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1040px) { .menu-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- forms ---------- */
.stack-form, .alerts-form, .admin-form { display: flex; flex-direction: column; gap: 14px; }
fieldset { border: 1px solid var(--line); margin: 0; padding: 16px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow); }
legend { font-weight: 700; padding: 0 4px; float: left; width: 100%; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; clear: both; }
.check { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px 7px 9px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; background: var(--ground); }
.check:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.check input { accent-color: var(--accent); margin: 0; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-actions button, .alerts-form button, .admin-form button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.primary, .form-actions .primary, .alerts-form .primary, .admin-form .primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.danger { background: var(--sev-critical) !important; color: #fff !important; border-color: var(--sev-critical) !important; }
label { font-weight: 600; font-size: 14px; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input:not([type]), textarea, select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
textarea { resize: vertical; }
.narrow { max-width: 440px; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.stack-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.stack-bar .chip span { opacity: 0.7; }
.personal-feeds code { font-size: 13px; }

/* ---------- admin ---------- */
.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.admin-row > div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 220px; }
.admin-row .src { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.admin-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.admin-actions button { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; }
.log { background: var(--ink); color: #fff; padding: 12px; border-radius: 12px; overflow-x: auto; font-size: 12px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tongue, .steam, .bubble, .mug-g, .hero-temp .hell, .mug-g.notice { animation: none !important; }
  .fire, .head-flame, .arc-fill, .hero-glow, .face > *, .decaf-toggle .dot { transition: none !important; }
}
.tool-list { display: flex; flex-direction: column; gap: 10px; }
.tool-list code { background: var(--accent-soft); color: var(--accent); border: 0; }
