/* Keyzra — black, neon red, hexagon mesh, binary rain.
   Brand red is for chrome (buttons, glow, logo). Data keeps the fixed status steps
   (good / warning / critical) and always pairs them with an icon + label. */
@font-face { font-family: "Space Grotesk"; src: url("/static/font-space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/font-jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #050506;
  --surface: rgba(18, 18, 21, .82);
  --surface-2: #19191d;
  --line: #24242a;
  --line-2: #33333b;
  --ink: #f5f4f1;
  --ink-2: #bdbbb5;
  --mute: #84827c;
  --red: #ff2a3d;
  --red-ink: #ff6b78;
  --glow: 0 0 0 1px rgba(255, 42, 61, .55), 0 0 28px rgba(255, 42, 61, .35);
  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
  --meter-track: #26262c;
  --meter-fill: #ecebe7;
  --r: 16px;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 50% -120px, rgba(255, 42, 61, .16), transparent 70%), url("/static/hex.svg") repeat, var(--bg);
  background-attachment: fixed, fixed, fixed;
}
::selection { background: var(--red); color: #fff; }
a { color: var(--red-ink); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
main:focus, main:focus-visible { outline: none; }
code, .mono, pre { font-family: var(--mono); }
code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.hide { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(140%); background: rgba(5, 5, 6, .72); border-bottom: 1px solid rgba(255, 42, 61, .14); }
.top .in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 19px/1 var(--sans); letter-spacing: .22em; }
.brand:hover { color: var(--ink); }
.brand img { display: block; filter: drop-shadow(0 0 10px rgba(255, 42, 61, .6)); }
#nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
#nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
#nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
#nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 42, 61, .12); box-shadow: inset 0 0 0 1px rgba(255, 42, 61, .35); }
.top .cta { display: flex; gap: 8px; }
.menu { display: none; margin-left: auto; background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 12px; font: 500 15px var(--sans); }
@media (max-width: 980px) {
  .menu { display: block; }
  .top .cta .btn.ghost { display: none; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; background: rgba(5, 5, 6, .97); border-bottom: 1px solid var(--line); }
  #nav.open { display: flex; }
  #nav a { padding: 12px; font-size: 17px; }
  .navacct { display: flex; flex-direction: column; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .navacct button { text-align: left; background: none; border: 0; border-radius: 10px; color: var(--ink-2); font: 500 17px var(--sans); padding: 12px; cursor: pointer; }
  .navacct button:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
}
@media (min-width: 981px) { .navacct { display: none; } }
@media (max-width: 560px) { .top .cta { display: none; } }

/* ---------- layout & type ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 20px 80px; }
section { margin: 0 0 88px; }
.page-head { padding: 56px 0 8px; }
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.035em; line-height: 1.04; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 720px; line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--red); box-shadow: 0 0 8px var(--red); }
.grad { background: linear-gradient(92deg, #ff2a3d 0%, #ff6b78 45%, #ff2a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(255, 42, 61, .35)); }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mt { margin-top: 18px; } .mt2 { margin-top: 32px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--red);
  background: linear-gradient(180deg, #ff3b4d, #e01d31); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 15.5px; line-height: 1.2;
  cursor: pointer; text-decoration: none; box-shadow: 0 6px 24px rgba(255, 42, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .12s, box-shadow .2s; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 34px rgba(255, 42, 61, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--red); box-shadow: var(--glow); }
.btn.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.btn.lg { padding: 16px 26px; font-size: 17px; border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
input[type=text], input[type=password], input[type=search], input[type=email], input[type=url], textarea, select {
  background: rgba(10, 10, 12, .9); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font: 500 16px var(--sans); min-width: 0; }
textarea { font: 14px/1.6 var(--mono); width: 100%; min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--red); outline: none; box-shadow: var(--glow); }
form.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.tablewrap + form.inline, .tablewrap + form { margin-top: 12px; }
form.inline input { flex: 1 1 260px; }
label.field { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); align-content: start; }
input[type=file] { color: var(--ink-2); font: 14px var(--sans); max-width: 100%; }
input[type=file]::file-selector-button { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; margin-right: 10px; cursor: pointer; font: 500 14px var(--sans); }

/* the big scanner */
.scanner { position: relative; display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(8, 8, 10, .85); border: 1px solid rgba(255, 42, 61, .45);
  box-shadow: 0 0 0 4px rgba(255, 42, 61, .06), 0 0 60px rgba(255, 42, 61, .18); max-width: 640px; }
.scanner::before { content: "›"; align-self: center; padding-left: 12px; color: var(--red); font: 700 22px var(--mono); }
.scanner input { flex: 1; border: 0; background: transparent; font: 500 19px var(--mono); padding: 12px 6px; box-shadow: none !important; }
.scanner .btn { border-radius: 12px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.examples span { color: var(--mute); font-size: 14px; }
.examples button { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: 500 13.5px var(--mono); cursor: pointer; }
.examples button:hover { border-color: var(--red); color: var(--ink); }
@media (max-width: 520px) { .scanner { flex-wrap: wrap; } .scanner input { flex-basis: 70%; } .scanner .btn { flex: 1 1 100%; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding: 40px 0 20px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); }
.hero .lead { margin-bottom: 30px; }
.hero-art { position: relative; aspect-ratio: 400 / 420; width: 100%; max-width: 520px; justify-self: center; }
.hero-art img { width: 100%; height: 100%; display: block; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255, 42, 61, .35)); }
#rain { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  mask-image: radial-gradient(75% 75% at 62% 45%, #000 25%, transparent 80%); -webkit-mask-image: radial-gradient(75% 75% at 62% 45%, #000 25%, transparent 80%); }
.live { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 10, 12, .7); font: 500 13px var(--mono); color: var(--ink-2); margin-bottom: 22px; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.8s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; } .hero-art { max-width: 300px; order: -1; margin-top: 8px; }
  #rain { mask-image: radial-gradient(60% 22% at 50% 14%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(60% 22% at 50% 14%, #000 30%, transparent 85%); } }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font: 700 clamp(34px, 4.6vw, 54px)/1 var(--sans); letter-spacing: -.04em; }
.stat .l { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.stat .s { color: var(--mute); font: 12.5px var(--mono); margin-top: 4px; }
.stat.hot .v { color: var(--red); text-shadow: 0 0 30px rgba(255, 42, 61, .45); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- cards / bento ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
a.card { display: block; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
a.card:hover { transform: translateY(-3px); color: var(--ink); border-color: rgba(255, 42, 61, .55); box-shadow: 0 0 40px rgba(255, 42, 61, .14); }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 4; }
@media (max-width: 980px) { .bento > *, .bento > .wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento > *, .bento > .wide { grid-column: span 6; } }
.bento .card { min-height: 230px; display: flex; flex-direction: column; }
.bento .card p { color: var(--ink-2); }
.bento .card .viz { margin-top: auto; padding-top: 16px; }
.tag { display: inline-flex; font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); border: 1px solid rgba(255, 42, 61, .4); border-radius: 6px; padding: 5px 7px; margin-bottom: 14px; align-self: flex-start; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--red); background: linear-gradient(90deg, rgba(255, 42, 61, .1), rgba(18, 18, 21, .85) 40%); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.callout.good { border-left-color: var(--good); background: linear-gradient(90deg, rgba(12, 163, 12, .12), rgba(18, 18, 21, .85) 40%); }
.callout strong { color: var(--ink); }
/* A row that never spills out of its card: when the card is too narrow, the status chip moves to its own line. */
.minirow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 13px var(--mono); padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.minirow:last-child { border-bottom: 0; }
.minirow > span:first-child { flex: 1 1 auto; min-width: 72px; white-space: nowrap; }
.minirow > span:nth-child(2) { white-space: nowrap; }
.minirow > .chip { margin-left: auto; max-width: 100%; }
.bento .card { min-width: 0; }
.chain { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font: 12px var(--mono); color: var(--ink-2); }
.chain span { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; }
.chain i { color: var(--red); font-style: normal; }

/* paradox lanes with moving packets */
.lanes { display: grid; gap: 12px; }
.lane { display: grid; grid-template-columns: 190px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.lane .who { font-weight: 700; }
.lane .who small { display: block; font: 12px var(--mono); color: var(--mute); font-weight: 400; margin-top: 2px; }
.lane .mid { min-width: 0; }
.lane .wire { position: relative; height: 2px; background: var(--line-2); border-radius: 2px; }
.lane .wire::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; animation: packet 2.6s linear infinite; }
.lane.pq .wire::after { background: var(--good); box-shadow: 0 0 12px var(--good); }
.lane.cl .wire::after { background: var(--warning); box-shadow: 0 0 12px var(--warning); }
.lane.no .wire::after { background: var(--critical); box-shadow: 0 0 12px var(--critical); animation-name: packet-stop; }
.lane .path { font: 12.5px var(--mono); color: var(--mute); margin-top: 10px; overflow-wrap: anywhere; }
@keyframes packet { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes packet-stop { 0% { left: 0; opacity: 1; } 60% { left: 62%; opacity: 1; } 75%, 100% { left: 62%; opacity: 0; } }
@media (max-width: 680px) { .lane { grid-template-columns: 1fr; gap: 10px; } }
.lane > .chip { justify-self: start; }

/* ---------- scan result scorecard ---------- */
.result { margin-top: 28px; scroll-margin-top: 90px; }
.verdict { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.verdict .badge { font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; border-radius: 8px; }
.verdict .badge.bad { background: rgba(255, 42, 61, .14); color: var(--red-ink); border: 1px solid rgba(255, 42, 61, .5); box-shadow: 0 0 24px rgba(255, 42, 61, .2); }
.verdict .badge.ok { background: rgba(12, 163, 12, .12); color: #5bd65b; border: 1px solid rgba(12, 163, 12, .5); }
.verdict .badge.warn { background: rgba(250, 178, 25, .1); color: var(--warning); border: 1px solid rgba(250, 178, 25, .45); }
.verdict .host { font: 700 clamp(26px, 3.6vw, 40px)/1.1 var(--sans); letter-spacing: -.03em; overflow-wrap: anywhere; }
.verdict .say { font-size: 19px; color: var(--ink); flex-basis: 100%; }
.verdict .meta { font: 12.5px var(--mono); color: var(--mute); }
.clients { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 16px; }
.client { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.client.pq { border-color: rgba(12, 163, 12, .45); }
.client.classical { border-color: rgba(250, 178, 25, .45); }
.client.failed { border-color: rgba(208, 59, 59, .55); }
.client.no-answer { border-color: var(--line, rgba(127, 127, 127, .35)); border-style: dashed; }
.client .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.client .ic svg { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.client .name { font-weight: 700; font-size: 17px; }
.client .who { font-size: 13.5px; color: var(--mute); }
.client .g { font: 12.5px var(--mono); color: var(--ink-2); }
.client .big { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-top: auto; padding-top: 6px; }
.client .big .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--sans); color: #0a0a0b; }
.client.pq .big .dot { background: var(--good); box-shadow: 0 0 16px rgba(12, 163, 12, .6); }
.client.classical .big .dot { background: var(--warning); box-shadow: 0 0 16px rgba(250, 178, 25, .5); }
.client.failed .big .dot { background: var(--critical); color: #fff; box-shadow: 0 0 16px rgba(208, 59, 59, .6); }
.terminal { font: 13.5px/1.8 var(--mono); color: var(--ink-2); background: #060607; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-height: 160px; }
.terminal .ok { color: #5bd65b; } .terminal .r { color: var(--red-ink); }
.terminal .cursor { display: inline-block; width: 8px; height: 15px; background: var(--red); vertical-align: -2px; animation: pulse 1s steps(2) infinite; }
pre.cmd { background: #060607; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 10px 0; font: 13.5px/1.6 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- data ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 20px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tile .label { font-size: 14px; color: var(--ink-2); }
.tile .value { font-size: 32px; font-weight: 700; margin-top: 6px; letter-spacing: -.03em; }
.tile .sub { font: 12.5px var(--mono); color: var(--mute); margin-top: 2px; }
.herofig { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; margin: 4px 0 8px; }
.herofig .value { font-size: clamp(64px, 10vw, 120px); font-weight: 700; letter-spacing: -.05em; line-height: .95; color: var(--red); text-shadow: 0 0 40px rgba(255, 42, 61, .4); }
.herofig .label { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.meter { display: inline-block; vertical-align: middle; width: 90px; height: 6px; border-radius: 999px; background: var(--meter-track); overflow: hidden; }
.meter .fill { display: block; height: 100%; border-radius: 999px; background: var(--meter-fill); }
.pctcell { display: inline-flex; align-items: center; white-space: nowrap; }
.pct { display: inline-block; min-width: 50px; text-align: right; font: 500 13.5px var(--mono); font-variant-numeric: tabular-nums; margin-left: 8px; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap; }
.chip .ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #0a0a0b; }
.chip.ok { border-color: rgba(12, 163, 12, .55); } .chip.ok .ic { background: var(--good); }
.chip.warn { border-color: rgba(250, 178, 25, .55); } .chip.warn .ic { background: var(--warning); }
.chip.bad { border-color: rgba(208, 59, 59, .65); } .chip.bad .ic { background: var(--critical); color: #fff; }
.chip.muted .ic { background: var(--mute); }
.chip .g { font: 500 12px var(--mono); color: var(--ink-2); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: rgba(255, 255, 255, .02); position: sticky; top: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(255, 42, 61, .04); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.org { min-width: 220px; overflow-wrap: anywhere; }
table.cmp td:nth-child(2), table.cmp td:nth-child(3), table.cmp th:nth-child(2), table.cmp th:nth-child(3) { text-align: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 12px; }
.toolbar input[type=search] { flex: 1 1 260px; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile:last-child { border-bottom: 0; }
.profile .who { font-size: 13.5px; color: var(--mute); }
ul.clean { margin: 8px 0 0; padding-left: 18px; } ul.clean li { margin: 7px 0; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; overflow-wrap: anywhere; font: 13px var(--mono); }
.kv.roles { margin: 14px 0; } .kv.roles dt { font: 600 13px var(--mono); color: var(--ink); } .kv.roles dd { font: 14px/1.5 var(--sans); color: var(--ink-2); }
details.card summary { cursor: pointer; font-weight: 600; }
.error { color: #ffb0b6; border: 1px solid rgba(255, 42, 61, .55); background: rgba(255, 42, 61, .08); border-radius: 12px; padding: 13px 15px; margin-top: 14px; }
.loading { color: var(--mute); padding: 18px 0; font: 14px var(--mono); }
.loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(s); font: 700 13px/32px var(--mono); text-align: center; border-radius: 9px; background: rgba(255, 42, 61, .1); border: 1px solid rgba(255, 42, 61, .45); color: var(--red-ink); }

/* reveal on scroll (only when JS marked the page ready) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* CTA band */
.band { text-align: center; padding: 64px 24px; border-radius: 24px; border: 1px solid rgba(255, 42, 61, .35);
  background: radial-gradient(600px 240px at 50% 0%, rgba(255, 42, 61, .22), transparent 70%), var(--surface); }
.band .scanner { margin: 26px auto 0; text-align: left; }
.band .row { justify-content: center; margin-top: 22px; }
.band .lead { margin: 0 auto; }

/* footer */
footer { border-top: 1px solid var(--line); background: rgba(5, 5, 6, .85); }
footer .in { max-width: 1240px; margin: 0 auto; padding: 44px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; color: var(--mute); font-size: 14.5px; }
footer h4 { color: var(--ink); font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
footer nav a { display: block; color: var(--ink-2); padding: 3px 0; }
footer nav a:hover { color: var(--red-ink); }
footer .brand { margin-bottom: 14px; }
@media (max-width: 720px) { footer .in { grid-template-columns: 1fr 1fr; } footer .in > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- report / plans / forms / legal ---------- */
ol.findings { list-style: none; counter-reset: f; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
ol.findings li { counter-increment: f; position: relative; padding: 18px 20px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }
ol.findings li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font: 700 15px var(--mono); color: var(--red); }
ol.findings li strong { color: var(--ink); }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan ul { margin-bottom: 18px; }
.plan.hot { border-color: rgba(255, 42, 61, .6); box-shadow: 0 0 50px rgba(255, 42, 61, .14); }
form .wide { grid-column: 1 / -1; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
label.check input { width: 18px; height: 18px; accent-color: var(--red); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin-top: 8px; }
.legal p, .legal li { color: var(--ink-2); }

.plans4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* ---------- test your client ---------- */
.youline:not([hidden]) { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; font-size: 14.5px; }
.chip.plain { padding: 4px 11px; }
.cmds { display: grid; gap: 10px; margin-top: 14px; }
.cmdrow { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cmdrow .who { color: var(--ink-2); font-size: 14px; }
.cmdrow pre.cmd { margin: 0; }
@media (max-width: 680px) { .cmdrow { grid-template-columns: minmax(0, 1fr) auto; } .cmdrow .who { grid-column: 1 / -1; } }

/* ---------- history chart ---------- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 4px; }
.chartcard { padding: 18px 18px 12px; margin-top: 14px; }
.chartwrap { position: relative; }
.chartwrap svg { display: block; width: 100%; height: auto; outline: none; }
.chartwrap svg:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 8px; }
.chartwrap .grid { stroke: var(--line); stroke-width: 1; }
.chartwrap .axis { fill: var(--mute); font: 12px var(--mono); }
.chartwrap .endlabel { fill: var(--ink-2); font: 600 12px var(--sans); }
.chartwrap .hair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.charttip { position: absolute; top: 6px; width: 216px; background: #0b0b0d; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; pointer-events: none; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.charttip .tt-h { color: var(--ink-2); font: 12px var(--mono); margin-bottom: 6px; }
.charttip .tt-r { display: grid; grid-template-columns: 14px 54px 1fr; align-items: center; gap: 6px; }
.charttip .tt-r i { display: block; width: 12px; height: 2px; border-radius: 1px; }
.charttip .tt-r strong { color: var(--ink); }
.charttip .tt-r span, .charttip .tt-w { color: var(--ink-2); }
.charttip .tt-w { font-size: 11.5px; margin-top: 6px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 16px; height: 2px; border-radius: 1px; }
.tableview { margin-top: 10px; } .tableview summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; }

.keyrow { display: grid; grid-template-columns: minmax(180px, max-content) minmax(0, 1fr); gap: 12px; align-items: center; margin: 6px 0; }
.keyrow code { overflow-wrap: anywhere; }
@media (max-width: 640px) { .keyrow { grid-template-columns: 1fr; gap: 2px; } }

/* PQ Index indicators (no grades) */
.yes:not(.ind) { color: var(--good); font-weight: 800; font-size: 18px; } .no:not(.ind) { color: var(--mute); }
.ind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); white-space: nowrap; color: var(--ink-2); background: rgba(255, 255, 255, .03); }
.ind.yes { color: #5bd65b; border-color: rgba(12, 163, 12, .55); background: rgba(12, 163, 12, .1); }
.ind.some { color: var(--warning); border-color: rgba(250, 178, 25, .5); background: rgba(250, 178, 25, .08); }
.indrow { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 12px 0; }
.indrow > div { display: grid; gap: 4px; justify-items: start; }
.parties { display: grid; gap: 10px; margin-top: 10px; }
.party { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; }
.party .k { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding-top: 3px; }
.cmdrow .who strong { display: block; }
.cmdrow .who small { display: block; font: 12px var(--mono); color: var(--mute); margin-top: 2px; }
.cmdcell { min-width: 0; display: grid; gap: 4px; }
@media (max-width: 640px) { .party { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.reachlist { display: grid; gap: 4px; min-width: 210px; }
.reachrow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: center; }
pre.cmd, code, .mono { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

/* ---------- admin panel ---------- */
.adm [hidden], .dlg [hidden] { display: none !important; }
.adm section { margin-bottom: 40px; }
.adm .page-head { padding: 40px 0 20px; }
.adm h1 { font-size: clamp(34px, 4.6vw, 52px); }
.adm h2 { font-size: 22px; letter-spacing: -.02em; margin: 0; }
.adm h3 { margin: 0 0 4px; }
.adm .tiles { margin: 0 0 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 560px) { .adm .tile { padding: 14px; } .adm .tile .value { font-size: 26px; } .adm .tile .sub { font-size: 11.5px; } }
.adm .toolbar { margin: 0 0 14px; }
.adm .spacer { flex: 1; }
.adm .callout { margin: 0 0 22px; }
.admhead { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.admhead p { max-width: 640px; margin: 0; }
.whostrip { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.whostrip b { font-weight: 600; overflow-wrap: anywhere; }
.whostrip .small { font-size: 12px; line-height: 1.2; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; font: 700 13.5px/1 var(--sans); letter-spacing: .03em; color: #ffd9dd;
  background: linear-gradient(135deg, rgba(255, 42, 61, .3), rgba(255, 42, 61, .06)); border: 1px solid rgba(255, 42, 61, .4); }
.avatar.person { border-radius: 50%; width: 32px; height: 32px; font-size: 12px; color: var(--ink); background: var(--surface-2); border-color: var(--line-2); }
.avatar.big { width: 68px; height: 68px; border-radius: 18px; font-size: 24px; box-shadow: 0 0 34px rgba(255, 42, 61, .22); }
.tag.sm { margin: 0; padding: 3px 6px; font-size: 10.5px; vertical-align: middle; }
.role { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 var(--mono); border: 1px solid var(--line-2); color: var(--ink-2); }
.role.analyst { color: var(--ink); border-color: #5a5a64; }
.role.admin { color: var(--red-ink); border-color: rgba(255, 42, 61, .55); background: rgba(255, 42, 61, .08); }

/* organizations list */
.orglist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.orglist li + li { border-top: 1px solid var(--line); }
.orgrow { display: grid; grid-template-columns: 38px minmax(0, 1fr) repeat(3, 76px) 104px 16px; gap: 16px; align-items: center; padding: 14px 18px; color: var(--ink); transition: background .15s; }
.orgrow:hover { color: var(--ink); background: rgba(255, 42, 61, .05); }
.orgrow:hover .go { color: var(--red); transform: translateX(3px); }
.orgrow .who { display: grid; gap: 2px; min-width: 0; }
.orgrow .nm { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 16.5px; min-width: 0; }
.orgrow .nm > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgrow .dm { font: 12.5px var(--mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgrow .meta { display: none; font-size: 13px; color: var(--ink-2); }
.orgrow .num { display: grid; justify-items: end; line-height: 1.15; }
.orgrow .num b { font: 600 17px var(--sans); font-variant-numeric: tabular-nums; }
.orgrow .num small { font: 11px var(--mono); color: var(--mute); }
.orgrow .sso { justify-self: end; }
.orgrow .go { color: var(--mute); font-size: 22px; line-height: 1; transition: transform .15s, color .15s; }
@media (max-width: 760px) {
  .orgrow { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .orgrow .num, .orgrow .go { display: none; }
  .orgrow .meta { display: block; }
  .orgrow .nm { flex-wrap: wrap; row-gap: 4px; }
  .orgrow .nm > span:first-child { white-space: normal; }
}
.empty { text-align: center; padding: 38px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(10, 10, 12, .5); color: var(--ink-2); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--mute); max-width: 480px; margin: 0 auto 18px; }
.empty p:last-child { margin-bottom: 0; }

/* one organization */
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 30px 0 16px; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--red-ink); }
.crumbs [aria-current] { color: var(--ink); }
.orghead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; }
.orghead h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 8px; overflow-wrap: anywhere; }
.orghead .facts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-2); font-size: 14px; }
.ministats { display: flex; gap: 10px; }
.ministats > div { display: grid; gap: 4px; justify-items: center; align-content: center; min-width: 96px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 10, 12, .6); }
.ministats b { font: 700 22px/1 var(--sans); font-variant-numeric: tabular-nums; }
.ministats small { font: 11px var(--mono); color: var(--mute); white-space: nowrap; }
@media (max-width: 860px) { .orghead { grid-template-columns: auto minmax(0, 1fr); } .ministats { grid-column: 1 / -1; flex-wrap: wrap; } .ministats > div { flex: 1 1 96px; } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 26px 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 14px; color: var(--ink-2);
  font: 500 15px var(--sans); cursor: pointer; white-space: nowrap; border-radius: 8px 8px 0 0; }
.tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tabs .n { font: 600 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.tabs .n.on { color: #5bd65b; border-color: rgba(12, 163, 12, .5); }
.tabpanel { min-width: 0; }      /* a plain block: a wide table scrolls inside its own frame instead of widening the page */
.tabpanel > div:not(.empty) > * + * { margin-top: 16px; }
.tabpanel > div:not(.empty) > :empty { margin-top: 0; }
.tabpanel .toolbar { margin: 0; }
.person { display: inline-flex; gap: 10px; align-items: center; min-width: 0; }
.person .em { overflow-wrap: anywhere; }
.you { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px; border-radius: 6px; color: var(--ink-2); border: 1px solid var(--line-2); }
table.data td.act { text-align: right; white-space: nowrap; }
table.data tr.off td { color: var(--mute); }
select.sm { padding: 6px 30px 6px 10px; font-size: 14px; border-radius: 9px; background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; }
.linkbtn { background: none; border: 1px solid transparent; color: var(--ink-2); font: 500 14px var(--sans); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.linkbtn:hover { color: #ffb0b6; border-color: rgba(255, 42, 61, .45); background: rgba(255, 42, 61, .08); }
.rolehelp summary { cursor: pointer; color: var(--ink-2); font-size: 14px; width: max-content; }
.rolehelp summary:hover { color: var(--ink); }
.roles3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 12px; }
.rolebox { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rolebox p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* single sign-on */
.ssostatus { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; padding: 16px 20px; }
.ssostatus .what { flex: 1 1 320px; min-width: 0; display: grid; gap: 2px; }
.ssostatus .what .mono { overflow-wrap: anywhere; }
.ssogrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 920px) { .ssogrid { grid-template-columns: minmax(0, 1fr); } }
.ssosteps, .ssoform, .settings { display: grid; gap: 18px; align-content: start; }
.settings .rolepick { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ssosteps .steps { font-size: 14.5px; color: var(--ink-2); }
.ssosteps .steps b { color: var(--ink); font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(10, 10, 12, .9); border: 1px solid var(--line-2); }
.seg button { flex: 1 1 auto; border: 0; background: none; color: var(--ink-2); font: 500 14px var(--sans); padding: 9px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: rgba(255, 42, 61, .14); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 42, 61, .5); }
.copyrow { display: flex; gap: 8px; align-items: center; background: #060607; border: 1px solid var(--line); border-radius: 12px; padding: 7px 7px 7px 14px; }
.copyrow code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.preview { padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-2); background: rgba(10, 10, 12, .5); }
.preview .eyebrow { margin-bottom: 12px; }
.preview .kv { font-size: 13.5px; }
.preview .kv dd { font: 14px/1.5 var(--sans); color: var(--ink-2); }
.preview .kv dd.mono { font: 13px/1.5 var(--mono); color: var(--ink); }

/* dialogs and notifications */
dialog.dlg { padding: 0; width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; color: var(--ink); background: #0e0e11;
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 42, 61, .1), 0 0 60px rgba(255, 42, 61, .08); }
dialog.dlg[open] { animation: dlg-in .16s ease-out; }
dialog.dlg::backdrop { background: rgba(3, 3, 4, .74); backdrop-filter: blur(3px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
/* margins, not grid gaps: an empty message area (a live region that must stay rendered) then adds no space */
.dlg-in { padding: 24px; }
.dlg-in > * + * { margin-top: 18px; }
.dlg-in > :empty { margin-top: 0; }
.dlg-head { display: flex; gap: 12px; align-items: flex-start; }
.dlg-head h3 { font-size: 22px; margin: 0 0 4px; overflow-wrap: anywhere; }
.dlg-head p { margin: 0; }
.dlg-head .x { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.dlg-head .x:hover { color: var(--ink); border-color: var(--red); }
.dlg-body { display: grid; gap: 16px; }
.dlg-body .callout { margin: 0; }
.dlg-text { color: var(--ink-2); margin: 0; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dlg .error { margin: 0; }
.dlg textarea.emails { min-height: 92px; font-size: 14.5px; }
.btn.danger { background: linear-gradient(180deg, #d93445, #b8202f); border-color: #ff5a68; box-shadow: none; }
.rolepick { display: grid; gap: 8px; }
.rolecard { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
  background: rgba(10, 10, 12, .6); transition: border-color .15s, background .15s; }
.rolecard:hover { border-color: #55555f; }
.rolecard input { grid-row: span 2; margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--red); }
.rolecard .rn { font-weight: 600; color: var(--ink); }
.rolecard .rd { grid-column: 2; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.rolecard:has(input:checked) { border-color: rgba(255, 42, 61, .6); background: rgba(255, 42, 61, .07); }
.rolecard:has(input:checked) .rd { color: var(--ink-2); }
.rolecard:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.field > span:first-child { color: var(--ink-2); font-size: 14px; }
div.field { display: grid; gap: 8px; }
.secretrow { display: flex; gap: 8px; align-items: stretch; }
.secret { flex: 1; min-width: 0; display: block; padding: 14px 16px; border-radius: 12px; font: 600 14.5px/1.5 var(--mono); color: #c9f5c9; background: #060607; border: 1px solid rgba(12, 163, 12, .55); overflow-wrap: anywhere; user-select: all; }
.secretrow .btn { align-self: center; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px 12px 12px; border-radius: 12px; background: #121215; border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  font-size: 14.5px; color: var(--ink); animation: toast-in .2s ease-out; transition: opacity .25s, transform .25s; pointer-events: auto; overflow-wrap: anywhere; }
.toast .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--sans); color: #0a0a0b; background: var(--good); }
.toast.bad { border-color: rgba(208, 59, 59, .6); }
.toast.bad .ic { background: var(--critical); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* activity */
.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.feed .day { padding: 9px 18px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line); }
.feed .ev { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .k { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px 0; margin-top: 2px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink-2); }
.feed .k.bad { border-color: rgba(255, 42, 61, .5); color: var(--red-ink); }
.feed .t { font-weight: 600; font-size: 15px; }
.feed .d { margin-top: 2px; font: 12.5px/1.5 var(--mono); color: var(--mute); overflow-wrap: anywhere; }
.feed .w { display: grid; justify-items: end; gap: 2px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.feed .w .by { color: var(--ink-2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .feed .ev { grid-template-columns: 50px minmax(0, 1fr); } .feed .w { grid-column: 2; justify-items: start; } }
