@import url("/assets/fonts/fonts.css");

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  --ink: #070a14;            /* midnight: the page */
  --fg: #f4f4f2;
  --fg-2: #c9c9cf;
  --muted: #8e8e97;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --well: #0a0d1a;           /* the well's lacquer, a shade bluer than the page */
  --panel: #090c17;
  --gold: #f2a64f;           /* the glass's edge */
  --gold-2: #f7d540;
  --film: linear-gradient(90deg, #2a4cac, #34bae9 18%, #8d59d2 36%, #ff3fa6 52%, #f2a64f 70%, #f7d540 84%, #d13287);
  --clear: #34bae9;
  --look: #f2a64f;
  --shared: #ff3fa6;
  --version: #a97cf0;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;   /* headings: a serif, set large */
  --ui: "Instrument Sans", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; /* labels, numbers, controls */
  --text: "Instrument Sans", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 26px;
  --surface: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  --surface-line: rgba(255,255,255,.09);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { position: relative; margin: 0; color: var(--fg); background: var(--ink); font: 400 17px/1.5 var(--text); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.012em; line-height: 1.0; text-wrap: balance; }
h3 { margin: 0; font-family: var(--ui); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
::selection { background: #fff; color: #000; }
.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
/* pops of the film: text that carries the spectrum, hairlines that catch it */
.pop, .hero .lede strong.pop { background: var(--film); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.film-line { height: 1px; border: 0; background: linear-gradient(90deg, rgba(42,76,172,0), #34bae9 20%, #ff3fa6 50%, #f2a64f 80%, rgba(242,166,79,0)); opacity: .7; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ top bar */
.bar { display: flex; align-items: center; gap: 22px; padding: 22px 0 0; }
.mark { position: relative; display: inline-flex; align-items: center; height: 56px; line-height: 1; text-decoration: none; color: var(--fg); }
.mark img { display: block; height: 56px; width: auto; }
.mark canvas.gl { position: absolute; top: -14px; left: -16px; width: calc(100% + 32px); height: calc(100% + 28px); display: none; }
.mark.live canvas.gl { display: block; } .mark.live img { visibility: hidden; }
.stage { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; }
.big-mark { position: absolute; right: -9vw; bottom: -6vw; width: min(84vw, 1500px); aspect-ratio: 1420 / 1190; }
.bar nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
.bar nav a { color: var(--fg-2); text-decoration: none; }
.bar nav a:hover { color: var(--gold-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--surface-line); background: rgba(255,255,255,.06); color: var(--fg); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: rgba(255,255,255,.1); border-color: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--fg); color: #000; border-color: var(--fg); }
.btn.primary:hover { background: #fff; box-shadow: 0 0 0 1.5px var(--gold-2), 0 0 18px rgba(242,166,79,.45); }
.btn.iris { position: relative; border-color: transparent; background: var(--ink); }
.btn.iris::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--film); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.btn:disabled { opacity: .5; cursor: default; }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(64px, 12vh, 140px) 0 24px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 100px); font-weight: 600; letter-spacing: -.015em; line-height: .98; max-width: 13ch; }
.hero .lede { margin-top: 24px; max-width: 52ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--fg-2); }
.hero .lede strong { color: var(--fg); font-weight: 600; }

/* ------------------------------------------------------------------ the well */
.well { position: relative; margin-top: 44px; border-radius: var(--radius); background: var(--well); border: 1px solid var(--line); min-height: 300px; overflow: hidden; isolation: isolate; cursor: pointer; transition: border-color .25s, box-shadow .25s; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.well:hover, .well:focus-within, .well.over { border-color: var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14); }
.well canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.well .veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,13,26,.55) 0%, rgba(10,13,26,0) 55%); pointer-events: none; }
.well .in { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 48px 48px 92px; min-height: 340px; max-width: 54%; }
.well .cta { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.01em; line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.well .sub { color: var(--fg-2); text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.well .sub button { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-underline-offset: .2em; }
.well input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 3; }
.well.busy { cursor: progress; }
.well.busy input[type=file] { pointer-events: none; }
.wellnote { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.wellnote .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 7px; vertical-align: 1px; }
.wellnote .dot.on { background: var(--clear); box-shadow: 0 0 10px var(--clear); }

/* ------------------------------------------------------------------ results list */
.results { margin-top: 36px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; text-decoration: none; color: inherit; }
.row .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .head { grid-column: 1 / -1; color: var(--fg-2); }
.row.locked .head { filter: blur(6px); user-select: none; pointer-events: none; }
.row .prog { grid-column: 1 / -1; height: 2px; background: var(--line); overflow: hidden; border-radius: 1px; }
.row .prog i { display: block; height: 100%; width: 35%; background: var(--film); animation: slide 1.4s linear infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid transparent; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.clear { color: var(--clear); } .pill.look { color: var(--look); } .pill.shared { color: var(--shared); } .pill.version { color: var(--version); }
.pill.pending, .pill.queued, .pill.running, .pill.uploading { color: var(--muted); } .pill.error { color: var(--muted); }
.lockbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 20px 0 6px; }
.lockbar p { color: var(--fg-2); }

/* ------------------------------------------------------------------ sections */
section.plain { padding: clamp(56px, 9vh, 110px) 0 0; }
section.plain h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 600; letter-spacing: -.012em; max-width: 20ch; }
section.plain h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; margin-top: 14px; background: var(--film); }
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 14px; border-top: 1px solid var(--line); background: linear-gradient(90deg, #34bae9, #ff3fa6 50%, #f2a64f) left top / 48px 1px no-repeat; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 600; font-size: 36px; letter-spacing: -.03em; display: block; margin-bottom: 10px; background: var(--film); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--fg-2); max-width: 38ch; }

/* plugins: one card per tool — its mark, what it is, what Ky adds there, and the state of play */
.tiles { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.tiles li { display: flex; }
.tile { display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 8px 18px; align-content: start; min-height: 176px; height: 100%; padding: 20px 22px; border: 1px solid var(--surface-line); border-radius: 20px; text-decoration: none; color: inherit; background: var(--surface), rgba(7,10,20,.55); transition: border-color .2s, transform .2s, background .2s; text-align: left; font: inherit; width: 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.tile:hover { border-color: transparent; transform: translateY(-1px); background: linear-gradient(180deg, #171b2e, #0d1020) padding-box, var(--film) border-box; }
.tile .logo { grid-row: 1 / span 3; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: #0a0d1a; border: 1px solid var(--line); font-family: var(--ui); font-weight: 700; font-size: 22px; letter-spacing: -.04em; color: var(--fg); overflow: hidden; }
.tile .logo img { width: 32px; height: 32px; object-fit: contain; display: block; }
.tile .logo.word { font-size: 11px; letter-spacing: -.02em; line-height: 1.1; text-align: center; padding: 6px; text-transform: uppercase; }
.tile .t { font-weight: 600; font-size: 19px; line-height: 1.2; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.tile .t small { font-weight: 500; font-size: 14px; color: var(--muted); }
.tile .about { color: var(--fg-2); font-size: 15.5px; line-height: 1.45; align-self: start; }
.tile .s { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.4; align-self: end; }
.tile.live .s { color: var(--fg-2); }
.tile.live .s b { font-weight: 600; color: var(--fg); }
.tile.live .s b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--clear); box-shadow: 0 0 10px var(--clear); margin-right: 8px; vertical-align: 1px; }
.tile.soon { cursor: pointer; }
.tile.soon:hover .s { color: var(--fg-2); }
.tile.soon .logo { opacity: .7; }

/* ------------------------------------------------------------------ footer */
footer { position: relative; margin-top: clamp(64px, 10vh, 120px); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, #2a4cac, #34bae9 25%, #ff3fa6 55%, #f2a64f 85%, rgba(242,166,79,0)); opacity: .8; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
footer a { color: var(--fg-2); text-decoration: none; }
footer a:hover { color: var(--gold); text-decoration: underline; }

/* ------------------------------------------------------------------ modal / forms */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(6px); }
.modal { width: min(440px, 100%); background: linear-gradient(180deg, #141829, #0a0d1a); border: 1px solid var(--line-2); border-radius: 24px; padding: 30px; box-shadow: 0 40px 100px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }
.modal h2 { font-size: 32px; font-weight: 600; letter-spacing: -.01em; }
.modal .why { margin-top: 8px; color: var(--fg-2); }
.form { display: grid; gap: 10px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--fg-2); }
.field input { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); color: var(--fg); width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.field input:focus { border-color: var(--fg); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); margin-top: 4px; }
.consent input { margin-top: 3px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.block { width: 100%; justify-content: center; padding: 12px 16px; }
.msg { font-size: 14px; color: var(--look); min-height: 1.2em; }
.msg.ok { color: var(--clear); }
.switch { margin-top: 14px; font-size: 14px; color: var(--muted); }
.switch button { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-underline-offset: .2em; }
.close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; }
.modal { position: relative; }

/* ------------------------------------------------------------------ result page */
.crumbs { display: flex; gap: 14px; align-items: center; margin-top: 28px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.item { padding: 36px 0; border-bottom: 1px solid var(--line); }
.item header { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.item h2 { font-family: var(--ui); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.item .headline { margin-top: 16px; font-size: clamp(18px, 2vw, 22px); line-height: 1.35; max-width: 60ch; }
.item .explain { margin-top: 12px; max-width: 64ch; color: var(--fg-2); }
.groove { margin-top: 22px; }
.groove .lab { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.groove .track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #121629, #1a1f3a); overflow: hidden; }
.groove .track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--film); opacity: .9; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin-top: 22px; }
.fact b { display: block; font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: -.01em; line-height: 1; }
.fact span { color: var(--muted); font-size: 13px; }
.finding { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.finding .who { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.finding .who b { font-weight: 600; }
.finding .who span { color: var(--muted); font-size: 14px; }
.finding .who .standing { color: var(--text); opacity: .85; }
.roll { margin-top: 14px; border: 1px solid var(--surface-line); border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.roll svg { display: block; width: 100%; height: auto; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
.more a, .more button { color: var(--fg-2); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; }
details.raw { margin-top: 14px; font-size: 14px; color: var(--muted); }
details.raw pre { white-space: pre-wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 320px; overflow: auto; color: var(--fg-2); }
.disclaimer { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--surface-line); border-radius: 16px; background: var(--surface); color: var(--fg-2); font-size: 14px; max-width: 70ch; }
/* a recording's row on the landing page */
.row .name .via { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
/* a result read from a recording: the transcription it rests on */
.transcribed { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--surface-line); border-radius: 16px; background: var(--surface); max-width: 70ch; font-size: 14px; }
.transcribed h3 { font-size: 15px; }
.transcribed .about { margin-top: 6px; color: var(--fg-2); }
.transcribed ul { margin: 8px 0 0; padding: 0; list-style: none; color: var(--fg-2); }
.transcribed li + li { margin-top: 2px; }
.transcribed li b { font-weight: 600; color: var(--fg); }
.transcribed .caveat { margin-top: 8px; color: var(--muted); }

/* ------------------------------------------------------------------ app */
.tabs { display: flex; gap: 22px; margin-top: 30px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 0; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--fg); border-color: var(--fg); }
.list { margin: 8px 0 0; padding: 0; list-style: none; }
.list li { border-bottom: 1px solid var(--line); }
.list a.row { padding: 16px 0; }
.counts { display: flex; gap: 10px; }
.counts span { font-size: 13px; }
.empty { padding: 48px 0; color: var(--fg-2); max-width: 50ch; }
.keys { margin-top: 18px; }
.key { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.key code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--fg-2); }
.key .meta { grid-column: 1; color: var(--muted); font-size: 13px; }
.reveal { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; }
.reveal code { display: block; margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.danger { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline input { flex: 1; min-width: 200px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); }

/* ------------------------------------------------------------------ legal */
.doc { max-width: 72ch; padding-top: 32px; }
.doc h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 600; letter-spacing: -.012em; }
.doc .summary { margin-top: 14px; font-size: 19px; color: var(--fg-2); }
.doc h2 { font-size: 30px; letter-spacing: -.01em; margin-top: 40px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc p, .doc li { color: var(--fg-2); margin-top: 12px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc table { border-collapse: collapse; margin-top: 16px; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.doc th { color: var(--fg); font-weight: 600; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

/* ------------------------------------------------------------------ connect */
.centre { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.centre .card { max-width: 440px; }
.centre .code { font-family: var(--ui); font-weight: 700; font-size: 34px; letter-spacing: .04em; margin: 14px 0; color: var(--fg); }
.centre .actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { .row .prog i { animation: none; width: 100%; opacity: .5; } }
@media (max-width: 640px) { .mark, .mark img { height: 44px; } .big-mark { right: -18vw; bottom: -6vw; width: 118vw; }  .bar nav { gap: 12px; } .bar nav .hide-sm { display: none; } .well { min-height: 400px; } .well .in { padding: 30px 22px; min-height: 0; max-width: none; justify-content: flex-start; } .well .veil { background: linear-gradient(180deg, rgba(10,13,26,.55) 0%, rgba(10,13,26,0) 45%); } .modes { left: 16px; right: 16px; } .row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ------------------------------------------------------------------ utilities (no inline styles: strict CSP) */
.lede-2 { margin-top: 12px; max-width: 56ch; }
.doc pre { color: var(--fg-2); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto; }
.doc .tiles { list-style: none; padding: 0; }
.h-34 { font-size: 34px; }
.h-40 { font-size: 40px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mt-22 { margin-top: 22px; } .mt-24 { margin-top: 24px; }
.max-56 { max-width: 56ch; } .max-60 { max-width: 60ch; }
.card-left { text-align: left; width: min(420px, 100%); }
.code-input { text-align: center; font-family: var(--ui); font-size: 22px; letter-spacing: .04em; }
.h3 { font-size: 18px; }

/* ------------------------------------------------------------------ compare-against toggle (inside the well) */
.modes { position: absolute; left: 44px; bottom: 20px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; }
.modes-label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.modes { padding: 4px; border-radius: 999px; background: rgba(10,13,26,.72); border: 1px solid var(--surface-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); gap: 2px; }
.modes-label { padding: 0 10px 0 12px; }
.mode { padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--fg-2); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.mode:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.mode.on { background: var(--fg); color: #000; }

/* ------------------------------------------------------------------ pairwise results */
.matrix { margin-top: 18px; overflow: auto; }
.matrix table { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.matrix th { font-weight: 500; color: var(--muted); text-align: left; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px 0 0; }
.matrix thead th { writing-mode: vertical-rl; transform: rotate(180deg); max-width: none; max-height: 140px; height: 140px; padding: 0 0 6px; text-align: left; }
.matrix td { width: 22px; height: 22px; border-radius: 5px; background: #141829; }
.matrix td.clear { background: rgba(52, 186, 233, .22); } .matrix td.look { background: rgba(242, 166, 79, .55); } .matrix td.shared { background: var(--shared); } .matrix td.version { background: var(--version); } .matrix td.self { background: transparent; } .matrix td.none { background: #0a0d1a; }
.matrix td a { display: block; width: 100%; height: 100%; }
.pairhead { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.pairhead b { font-weight: 600; }
