/* RepoTale. "The product performs": off-white ground, bottle-green ink, one yellow (actions and the
   hero stage). General Sans throughout, bold and tight for display. Square corners. */
:root {
  --bg: #f7f7f7;
  --surface: #ebebeb;
  --surface-2: #dedede;
  --plum: #d4d4d4;
  --line: #cfcfcf;
  --ink: #0d2a1c;
  --muted: #5f6b64;
  --accent: #f6e016;
  --accent-ink: #0d2a1c;
  --paper: #0d2a1c;
  --paper-ink: #f7f7f7;
  --paper-2: #1a3a2a;
  --serif: 'General Sans', system-ui, sans-serif;
  --sans: 'General Sans', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(16px, 2.8vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 50; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.display { font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: 0.86; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0; cursor: pointer;
  font-weight: 600; text-decoration: none; letter-spacing: 0.005em;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { background: var(--ink); color: var(--accent); }
.btn:active { transform: translateY(2px) scale(0.98); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.ctl {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 0; background: var(--surface-2); cursor: pointer; font-weight: 500;
  transition: background-color .18s, transform .18s var(--ease);
}
.ctl:hover { background: var(--plum); }
.ctl:active { transform: translateY(2px); }
.ctl:disabled { opacity: .5; cursor: progress; }
.grow { flex: 1; }

/* ------------------------------------------------------------- bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--m); background: var(--bg);
  transition: transform .35s var(--ease);
}
.bar.away { transform: translateY(-100%); }
.mark { font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 1.5rem; text-decoration: none; letter-spacing: 0.01em; }
.bar nav { display: flex; gap: 24px; margin-left: auto; font-size: var(--step-small); }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.bar nav a:hover { color: var(--ink); }

/* ------------------------------------------------------------- hero */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 96px var(--m) 40px; }
.hero-name {
  align-self: center; margin: 0; display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: nowrap;
  font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: .9;
  font-size: clamp(64px, 18vw, 340px); white-space: nowrap;
}
.glyph {
  display: inline-block; width: .62em; height: .7em; margin: 0 .02em; position: relative; align-self: baseline;
  overflow: hidden;
  clip-path: inset(0 100% 0 0); animation: shutter 1.1s var(--ease) .25s forwards;
}
.glyph canvas { width: 100%; height: 100%; display: block; transform: scale(1.12); animation: settle 1.4s var(--ease) .25s forwards; }
@keyframes shutter { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
.hero-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.hero-line { grid-column: 1 / span 6; margin: 0; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero-foot .btn { grid-column: 10 / span 3; justify-self: end; white-space: nowrap; }

/* ------------------------------------------------------------- the ask */
.ask { min-height: 88svh; padding: var(--gap) var(--m) 64px; display: flex; flex-direction: column; justify-content: center; }
.ask-line { display: flex; align-items: center; gap: 16px; background: var(--surface); padding: 0 0 0 clamp(12px, 2vw, 28px); }
.ask-input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: .12em 0 .02em;
  font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: 1;
  font-size: clamp(48px, 9.5vw, 168px); caret-color: var(--ink); caret-shape: block;
}
.ask-input::placeholder { color: var(--muted); }
.ask-line:focus-within { box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: focus indicator */
.ask-go {
  align-self: stretch; min-width: clamp(96px, 12vw, 200px); border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer;
  font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: clamp(28px, 3.6vw, 60px);
  transition: background-color .18s;
}
.ask-go:hover { background: var(--ink); color: var(--accent); }
.ask-go:active { transform: scale(.98); }
.ask-answer { max-width: 640px; margin-top: 40px; min-height: 120px; }
.ask-note { margin: 0; color: var(--ink); }
.ask-error { margin: 16px 0 0; padding: 14px 18px; background: var(--plum); color: var(--ink); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stages li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 16px; background: var(--surface); position: relative; overflow: hidden; }
.stages li::before { content: ''; position: absolute; inset: 0; background: var(--plum); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s var(--ease); }
.stages li > * { position: relative; }
.stages li[data-state="wait"] { color: var(--muted); }
.stages li[data-state="done"] b::after { content: 'done'; color: var(--accent); font-weight: 600; }
.stages b { font-weight: 500; font-variant-numeric: tabular-nums; }
.examples { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 40px; }
.examples button { border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: var(--step-body); color: var(--muted); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: color .15s; }
.examples button:hover { color: var(--ink); text-decoration-color: var(--accent); }
.token { margin-top: 28px; max-width: 640px; color: var(--muted); font-size: var(--step-small); }
.token summary { cursor: pointer; padding: 6px 0; }
.token p { margin: 8px 0 12px; }
.token input { width: 100%; min-height: 48px; padding: 0 16px; background: var(--surface); border: 0; }

/* ------------------------------------------------------------- the result */
.result { padding: 64px var(--m) var(--gap); }
.r-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; align-items: end; margin-bottom: 48px; }
.r-name { grid-column: 1 / -1; margin: 0; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: .86; font-size: clamp(64px, 12vw, 220px); overflow-wrap: anywhere; }
.r-desc { grid-column: 1 / span 7; margin: 16px 0 0; font-size: var(--step-lead); line-height: 1.35; }
.r-meta { grid-column: 8 / -1; margin: 0; color: var(--muted); font-size: var(--step-small); text-align: right; }
.r-meta a { color: var(--ink); }

.tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 4px; background: var(--bg); padding: 12px 0; margin-bottom: 24px; overflow-x: auto; }
.tabs button {
  border: 0; border-radius: 0; background: var(--surface); cursor: pointer; min-height: 52px; padding: 0 28px;
  font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 1.6rem; letter-spacing: .01em; color: var(--muted);
  transition: background-color .18s, color .18s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.panel { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* film */
#p-film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 24px; align-items: start; }
.screen { position: relative; background: var(--surface); aspect-ratio: 16 / 9; }
.screen canvas { width: 100%; height: 100%; display: block; }
.screen-play {
  position: absolute; inset: 0; border: 0; background: rgba(29, 29, 31, .18); cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s;
}
.screen-play span { width: clamp(72px, 9vw, 120px); aspect-ratio: 1; background: var(--accent); clip-path: polygon(30% 22%, 30% 78%, 78% 50%); transition: transform .2s var(--ease); }
.screen-play:hover span { transform: scale(1.08); }
.screen-play.gone { opacity: 0; pointer-events: none; }
.controls { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.time { padding: 0 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.rec-note { margin: 12px 0 0; color: var(--muted); font-size: var(--step-small); }
.rec-note a { color: var(--ink); font-weight: 600; }
.script { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: min(80vh, 760px); overflow: auto; }
.script li { background: var(--surface); padding: 14px 16px; cursor: pointer; transition: background-color .18s; }
.script li:hover { background: var(--surface-2); }
.script li[aria-current="true"] { background: var(--plum); }
.script h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 1.5rem; line-height: 1; }
.script p { margin: 0; font-size: var(--step-small); line-height: 1.45; }
.cites { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: .875rem; }
.cites a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cites a:hover { text-decoration: underline; }

/* map */
.map-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.map-tools input[type="search"] { min-height: 48px; padding: 0 16px; background: var(--surface); border: 0; min-width: min(320px, 100%); }
.chk { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-size: var(--step-small); }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.legend { display: inline-flex; gap: 8px 16px; align-items: center; font-size: var(--step-small); color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: -8px; vertical-align: -2px; }
.lg-core { background: var(--accent); } .lg-entry { background: var(--ink); } .lg-test { background: var(--muted); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 24px; align-items: start; }
.map { background: var(--surface); overflow: auto; max-height: 78vh; position: relative; }
.map svg { display: block; }
.map .node { cursor: pointer; }
.map .node rect { transition: fill .15s; }
.map .node:hover rect, .map .node:focus rect { fill: var(--plum); }
.map .node:focus { outline: none; }
.map .node:focus-visible rect { stroke: var(--accent); stroke-width: 3; }
.map .edge { fill: none; stroke: var(--line); stroke-width: 1.2; transition: stroke .15s, opacity .15s; }
.map .dim { opacity: .18; }
.map .edge.out { stroke: var(--ink); stroke-width: 2; opacity: 1; }
.map .edge.in { stroke: var(--accent); stroke-width: 2; opacity: 1; }
.map .hit rect { fill: var(--plum); }
.map .sel rect { fill: var(--accent); }
.map .sel text { fill: var(--accent-ink); }
.map .hop1 rect { fill: #7cb3ee; } .map .hop2 rect { fill: #b9d6f5; } .map .hop3 rect { fill: #e8f1fc; }
.inspect { background: var(--surface); padding: 20px; position: sticky; top: 84px; max-height: 78vh; overflow: auto; }
.inspect-empty { margin: 0; color: var(--muted); }
.inspect h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 2.2rem; line-height: .95; overflow-wrap: anywhere; }
.inspect .path { margin: 6px 0 16px; color: var(--muted); font-size: var(--step-small); overflow-wrap: anywhere; }
.inspect h4 { margin: 20px 0 6px; font-size: var(--step-small); font-weight: 600; }
.inspect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--step-small); }
.inspect li a, .inspect li button { display: block; width: 100%; text-align: left; padding: 6px 10px; background: var(--surface-2); border: 0; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.inspect li a:hover, .inspect li button:hover { background: var(--plum); }
.inspect li small { color: var(--muted); margin-left: 6px; }
.inspect .big { display: flex; gap: 24px; margin: 12px 0; }
.inspect .big b { display: block; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 3.4rem; line-height: .9; color: var(--ink); }
.inspect .big span { font-size: var(--step-small); color: var(--muted); }

/* evidence */
.evidence { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.finding { background: var(--surface); padding: 24px; grid-column: span 6; }
.finding.wide { grid-column: 1 / -1; }
.finding.hot { background: var(--plum); }
.finding h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: clamp(2rem, 3vw, 2.8rem); line-height: .95; }
.finding > p { margin: 0 0 14px; color: var(--muted); font-size: var(--step-small); max-width: 60ch; }
.finding ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.finding li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; background: rgba(29,29,31,.04); font-size: var(--step-small); }
.finding li a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.finding li a:hover { color: var(--ink); }
.finding li span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* export */
.exports { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.exports li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; background: var(--surface); padding: 20px 24px; }
.exports h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 2rem; line-height: 1; }
.exports p { margin: 4px 0 0; color: var(--muted); font-size: var(--step-small); }
.exports pre { grid-column: 1 / -1; margin: 8px 0 0; padding: 16px; background: var(--bg); overflow: auto; font: 400 .875rem/1.5 'JetBrains Mono', ui-monospace, monospace; max-height: 240px; }

/* ------------------------------------------------------------- how */
.how { margin-top: var(--gap); }
.how-fields { display: grid; grid-template-columns: 1fr 1fr; min-height: 76svh; }
.how-text { background: var(--plum); padding: clamp(32px, 5vw, 72px) var(--m); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.how-clause { margin: 0; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: .9; font-size: clamp(44px, 5.6vw, 96px); max-width: 12ch; }
.how-body { margin: 0; max-width: 46ch; font-size: var(--step-body); }
.how-ui { background: var(--paper); color: var(--paper-ink); display: grid; place-items: center; padding: 40px var(--m); }
.how-ui > div { width: min(440px, 100%); animation: rise .35s var(--ease); }
.how-rail { background: var(--surface); padding: 28px var(--m) 24px; }
.how-rail input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 32px; background: transparent; cursor: pointer; }
.how-rail input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--fill, 0%) 100% no-repeat, var(--line); } /* taste-skill-ignore: hard-stop progress fill, two flat colours */
.how-rail input[type="range"]::-moz-range-track { height: 8px; background: var(--line); }
.how-rail input[type="range"]::-moz-range-progress { height: 8px; background: var(--ink); }
.how-rail input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--accent); border: 0; border-radius: 0; }
.how-rail input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.how-names { list-style: none; margin: 10px 0 0; padding: 0; display: flex; justify-content: space-between; color: var(--muted); }
.how-names li.on { color: var(--ink); font-weight: 600; }
/* the fragments shown on the paper field */
.frag { font-size: 15px; line-height: 1.45; }
.frag-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--paper-2); margin-bottom: 3px; }
.frag-row b { font-weight: 600; }
.frag-row span { color: #a1a1a6; font-variant-numeric: tabular-nums; }
.frag-row.on { background: var(--paper-ink); color: var(--paper); }
.frag-row.on span { color: #424245; }
.frag-row.pink { background: var(--accent); color: var(--accent-ink); }
.frag code { font: 400 13px/1.6 'JetBrains Mono', monospace; }
.frag-cap { font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 30px; line-height: 1; margin: 0 0 12px; }
.frag-film { aspect-ratio: 16/9; background: var(--bg); color: var(--ink); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.frag-film b { font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; font-size: 54px; line-height: .86; }
.frag-film i { font-style: normal; background: var(--surface); padding: 6px 10px; font-size: 13px; align-self: flex-end; }
.frag-film i::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 8px; }
.frag-film span { background: rgba(13,6,11,.9); padding: 6px 10px; font-size: 13px; }

/* ------------------------------------------------------------- switches */
.switches { margin-top: var(--gap); }
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 24px;
  min-height: 20vh; padding: 28px var(--m); background: var(--bg); color: var(--muted); cursor: pointer;
  transition: background-color .35s var(--ease), color .35s;
}
.band > p:first-child { margin: 0; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: .95; font-size: clamp(30px, 4.4vw, 76px); }
.band-more { grid-column: 1; margin: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: 17px; transition: max-height .35s var(--ease), opacity .3s; }
.band.on { color: var(--ink); }
.band.on .band-more { max-height: 4em; opacity: 1; }
.band.on:nth-child(1) { background: var(--plum); }
.band.on:nth-child(2) { background: var(--surface-2); }
.band.on:nth-child(3) { background: var(--paper); color: var(--paper-ink); }
.band.on:nth-child(4) { background: #e8f1fc; }
.toggle {
  grid-row: 1 / span 2; grid-column: 2; position: relative; width: 2.6em; height: 1.3em; font-size: clamp(30px, 3.4vw, 56px);
  border: 0; border-radius: 0; background: var(--line); cursor: pointer; padding: 0; transition: background-color .25s;
}
.toggle i { position: absolute; top: .15em; left: .15em; width: 1em; height: 1em; background: var(--ink); transition: transform .3s var(--ease); }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"] i { transform: translateX(1.3em); background: var(--accent-ink); }

/* ------------------------------------------------------------- cta */
.cta { padding: var(--gap) var(--m); }
.cta-line { margin: 0; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: 1.02; font-size: clamp(48px, 8.4vw, 150px); }
.cta-line input {
  width: 6.6em; max-width: 100%; height: 1em; vertical-align: -0.08em; border: 0; border-radius: 0; padding: 0 .12em;
  background: var(--surface-2); font: inherit; text-transform: none; outline: none;
}
.cta-line input::placeholder { color: var(--muted); }
.cta-line input:focus { background: var(--plum); }
.cta-line button { height: 1em; vertical-align: -0.08em; padding: 0 .16em; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); font: inherit; cursor: pointer; transition: background-color .18s; }
.cta-line button:hover { background: var(--ink); color: var(--accent); }
.cta-note { margin: 24px 0 0; color: var(--muted); }

/* ------------------------------------------------------------- footer */
.foot { background: var(--plum); min-height: 90svh; padding: 40px var(--m) 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; font-size: 15px; }
.foot-top p { margin: 0; grid-column: span 4; max-width: 32ch; }
.foot-top a { grid-column: 11 / span 2; justify-self: end; white-space: nowrap; }
.foot-cmd {
  display: flex; flex-direction: column; text-decoration: none; font-family: var(--serif); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: .95; overflow-wrap: anywhere;
  font-size: clamp(40px, 9vw, 170px); transition: color .2s;
}
.foot-cmd span:last-child { color: var(--ink); }
.foot-cmd:hover { color: var(--ink); }
.foot-cmd:hover span:last-child { color: var(--ink); }
.foot-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------- entrances */
.reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal.in > *:nth-child(4) { transition-delay: 240ms; }
.hero-name > span:not(.glyph) { display: inline-block; animation: up .9s var(--ease) both; }
.hero-name > span:last-child { animation-delay: .12s; }
.hero-foot > * { animation: up .9s var(--ease) .45s both; }
@keyframes up { from { opacity: 0; transform: translateY(.18em); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .glyph { clip-path: none; } .glyph canvas { transform: none; }
  .reveal > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  #p-film, .map-wrap { grid-template-columns: 1fr; }
  .script { max-height: none; }
  .inspect { position: static; max-height: none; }
  .finding { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .bar { gap: 12px; }
  .bar nav { gap: 14px; }
  .bar nav a:not(:last-child) { display: none; }
  .hero { padding-top: 80px; }
  .hero-name { flex-wrap: wrap; font-size: 36vw; line-height: .84; }
  .hero-name > span:last-child { flex-basis: 100%; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-line, .hero-foot .btn { grid-column: 1; justify-self: start; }
  .ask-line { flex-direction: column; align-items: stretch; padding: 0; }
  .ask-input { font-size: 13vw; padding: .2em 12px .1em; }
  .ask-go { min-height: 56px; }
  .examples { gap: 8px; }
  .examples button { background: var(--surface); padding: 0 14px; min-height: 44px; text-decoration: none; color: var(--ink); }
  .r-desc, .r-meta { grid-column: 1 / -1; text-align: left; }
  .tabs button { padding: 0 18px; font-size: 1.3rem; }
  .how-fields { grid-template-columns: 1fr; }
  .how-ui { order: -1; min-height: 46svh; }
  .how-clause { font-size: 12vw; }
  .band { min-height: 132px; }
  .band > p:first-child { font-size: 8vw; }
  .toggle { font-size: 30px; }
  .cta-line { font-size: 13vw; }
  .cta-line input { display: block; width: 100%; margin: .08em 0; }
  .foot-top p, .foot-top a { grid-column: 1 / -1; justify-self: start; }
  .foot-cmd { font-size: 15.5vw; }
  .foot-meta { flex-direction: column; font-size: 13px; }
}

/* ------------------------------------------------------------- voice, diagram */
select.ctl { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
select.ctl option { background: var(--surface); }
.voice-note { margin: 12px 0 0; font-size: var(--step-small); color: var(--muted); min-height: 1.5em; }
.voice-note b { color: var(--ink); font-weight: 600; }
.token input + p { margin-top: 20px; }
.token input { margin-bottom: 4px; }
.seg { display: inline-flex; gap: 4px; }
.seg button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 0; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 600; transition: background-color .18s, color .18s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.map-tools.diagram-mode #find, .map-tools.diagram-mode .chk, .map-tools.diagram-mode .legend { display: none; }
.diagram { background: var(--bg); overflow: auto; max-height: 82vh; }
.diagram svg { display: block; width: 100%; min-width: 860px; height: auto; }
.diagram svg g { transition: opacity .2s; }
.diagram-grow { animation: rise .6s var(--ease); }

/* ------------------------------------------------------------- architecture viewer */
.dz-wrap { background: var(--bg); }
.dz-levels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 8px; }
.dz-levels button { min-height: 40px; padding: 0 16px; border: 0; background: var(--surface-2); cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background-color .18s; }
.dz-levels button:hover { background: var(--plum); }
.dz-levels button[aria-current="true"] { background: var(--ink); color: var(--bg); }
.dz-levels .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* ------------------------------------------------------------- brief */
.brief-lede { font-size: var(--step-lead); line-height: 1.35; max-width: 46ch; margin: 0 0 28px; letter-spacing: -0.01em; }
.brief-lede b { font-weight: 600; }
.brief-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.brief-card { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; grid-column: span 4; }
.brief-card.brief-arch { grid-column: span 12; }
.brief-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }
.brief-card p { margin: 0; color: var(--muted); line-height: 1.5; max-width: 60ch; }
.brief-card .btn { margin-top: auto; }
.brief-map { width: 100%; height: 340px; background: #fff; }
.brief-map svg { width: 100%; height: 100%; display: block; }
.brief-start ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.brief-start li a { overflow-wrap: anywhere; }
.brief-start li span { color: var(--muted); font-size: var(--step-small); }
.brief-form { display: flex; width: 100%; gap: 6px; margin-top: auto; }
.brief-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; background: var(--bg); }
.brief-health { margin: 18px 0 0; color: var(--muted); }
@media (max-width: 900px) { .brief-card { grid-column: span 12; } .brief-map { height: 240px; } }
.dz-say { margin: 4px 0 14px; max-width: 72ch; font-size: var(--step-body, 1.05rem); line-height: 1.5; }
.dz-say:empty { display: none; }
.dz .node.area:hover > path:first-of-type, .dz .node.area:focus > path:first-of-type { stroke-width: 3.4; }
.dz-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-bottom: 8px; }
.dz-tools .ctl { min-height: 44px; padding: 0 16px; }
.dz-tools .btn { min-height: 44px; }
#dz-in, #dz-out { width: 48px; padding: 0; font-size: 1.4rem; }
.dz { position: relative; height: min(78vh, 900px); overflow: hidden; background: #ffffff; cursor: grab; touch-action: none; outline: none; }
.dz:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); } /* taste-skill-ignore: focus indicator */
.dz.dark { background: #1d1d1f; }
.dz.grabbing { cursor: grabbing; }
.dz svg { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; }
.dz .node { cursor: pointer; transition: opacity .18s; }
.dz .node[data-file]:hover > rect, .dz .node[data-file]:focus > rect { stroke-width: 3; }
.dz .node:focus { outline: none; }
.dz .edge, .dz .elabel, .dz .grp { transition: opacity .18s; }
.dz svg.tracing .node:not(.on), .dz svg.tracing .edge:not(.on), .dz svg.tracing .elabel:not(.on) { opacity: .12; }
.dz svg.tracing .edge.on { stroke-opacity: 1; }
.dz-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.dz-note { margin: 10px 0 0; color: var(--muted); font-size: var(--step-small); }
.dz-wrap:fullscreen { padding: 16px; display: flex; flex-direction: column; }
.dz-wrap:fullscreen .dz { flex: 1; height: auto; }
@media (max-width: 760px) {
  .dz { height: 70svh; }
  .dz-tools .grow { display: none; }
}

.eleven { display: grid; gap: 6px; margin-top: 10px; max-width: 420px; font-size: var(--step-small); color: var(--muted); }
.eleven input { min-height: 44px; padding: 0 14px; background: var(--surface); border: 0; }
optgroup { background: var(--surface); color: var(--muted); }

/* ------------------------------------------------------------- app mode, once a repository is open */
body.has-result .hero { display: none; }
body.has-result .ask { min-height: 0; padding: 88px var(--m) 8px; }
body.has-result .ask-answer { min-height: 0; margin-top: 16px; }
body.has-result .ask-note, body.has-result .stages { display: none; }
body.has-result .examples { margin-top: 12px; }
body.has-result .examples button { font-size: var(--step-small); }
body.has-result .token { margin-top: 8px; }
body.has-result .result { padding-top: 24px; }
body.has-result .r-head { margin-bottom: 24px; }
body.has-result .r-name { font-size: clamp(48px, 7vw, 120px); }
body.has-result .ask[aria-busy] .stages, body.has-result .ask-form[aria-busy="true"] .stages { display: grid; }

/* ------------------------------------------------------------- editorial finish */
.display, .hero-name, .r-name, .cta-line, .how-clause, .band > p:first-child { font-style: normal; }
.hero-name, .r-name { line-height: .92; }
.mark { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; }
.screen, .dz, .map, .inspect, .finding, .exports > *, .how-ui, .frag-film { border-radius: var(--r); overflow: hidden; }
.tabs [role="tab"] { font-family: var(--sans); font-weight: 600; font-size: 1rem; text-transform: none; letter-spacing: -0.01em; }
code, pre, .mono { font-family: 'JetBrains Mono', monospace; }
.ask-input:focus-visible { outline: none; }
.ask-go { align-self: stretch; }
.ask-error { border-radius: var(--r); }

/* ------------------------------------------------------------- apple-minimal finish */
body { font-feature-settings: "ss01", "cv11"; }
.btn { font-weight: 500; }
.ctl { background: var(--surface); }
.ctl:hover { background: var(--surface-2); }
.dz, .map, .inspect, .finding, .how-ui { border-radius: 0; }

/* ------------------------------------------------------------- film: seek bar and full screen */
.seek { flex: 1 1 200px; min-width: 120px; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 0%; }
.seek::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill) 100% no-repeat, var(--surface-2); } /* taste-skill-ignore: hard-stop progress fill, two flat colours */
.seek::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
.seek::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; transition: transform .15s; }
.seek:hover::-webkit-slider-thumb { transform: scale(1.25); }
.seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--accent); }
.film:fullscreen { background: #000; padding: 20px 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.film:fullscreen .screen { flex: 1; min-height: 0; display: grid; place-items: center; background: #000; border-radius: 0; }
.film:fullscreen canvas { width: auto; height: 100%; max-width: 100%; max-height: calc(100vh - 110px); aspect-ratio: 16 / 9; object-fit: contain; }
.film:fullscreen .controls { color: #fff; }
.film:fullscreen .ctl, .film:fullscreen select.ctl { background-color: rgba(255,255,255,.12); color: #fff; }
.film:fullscreen .seek::-webkit-slider-runnable-track { background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill) 100% no-repeat, rgba(255,255,255,.2); } /* taste-skill-ignore: hard-stop progress fill, two flat colours */
.film:fullscreen .seek::-webkit-slider-thumb { border-color: #000; }
.film:fullscreen .time { color: rgba(255,255,255,.75); }
.film:fullscreen .voice-note, .film:fullscreen .rec-note, .film:fullscreen .eleven { display: none; }

/* ------------------------------------------------------------- the product performs */
.bar { background: var(--bg); border: 0; }
.hero { display: none; }
.ask { position: relative; min-height: 100svh; padding: 150px var(--m) 0; overflow: hidden; }
.ask-copy { position: relative; z-index: 1; width: min(560px, 40vw); }
.hero-title { margin: 0; font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; line-height: .9; font-size: clamp(52px, 5.2vw, 80px); max-width: 8.5em; }
.hero-line { margin: 28px 0 0; font-size: 18px; line-height: 1.45; max-width: 40ch; }
.ask .ask-form { margin-top: 36px; }
.ask .ask-line { background: var(--surface); border-radius: 0; padding: 0 0 0 18px; gap: 0; }
.ask .ask-input { font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; letter-spacing: -0.01em; padding: 18px 12px 18px 0; min-width: 0; }
.ask .ask-go { min-width: 0; padding: 0 26px; font-size: 18px; font-weight: 600; border-radius: 0; background: var(--accent); color: var(--accent-ink); align-self: stretch; transition: background-color .18s, color .18s, transform .15s var(--ease); }
.ask .ask-go:hover { background: var(--ink); color: var(--accent); }
.ask .ask-go:active { transform: translateY(2px); }
.ask .ask-answer { margin-top: 18px; min-height: 0; }
.ask .ask-note { color: var(--muted); font-size: 15px; }
.ask .examples { margin-top: 18px; gap: 6px 18px; }
.ask .examples button { font-size: 15px; }
.ask .token { margin-top: 14px; }
.stage { position: absolute; left: 44vw; right: 0; top: 42%; bottom: 0; margin: 0; background: var(--accent); overflow: hidden;
  clip-path: polygon(220px 0, 100% 0, 100% 100%, 0 100%, 0 120px); }
.stage-ui { position: absolute; left: 56px; top: 56px; width: min(1100px, calc(56vw - 112px)); overflow: hidden; background: #fff; transform-origin: 0 0; animation: stage-in 1.1s var(--ease) both; }
.stage-ui svg { display: block; width: 100%; height: auto; }
.stage-ui .node { cursor: pointer; transition: opacity .18s; }
.stage-ui svg.tracing .node:not(.on), .stage-ui svg.tracing .edge:not(.on), .stage-ui svg.tracing .elabel:not(.on) { opacity: .12; }
.stage figcaption { position: absolute; right: var(--m); top: 18px; z-index: 1; font-size: 14px; font-weight: 500; color: var(--accent-ink); background: var(--accent); padding: 6px 0 0 12px; }
@keyframes stage-in { from { clip-path: inset(0 0 100% 0); transform: scale(1.04); } to { clip-path: inset(0); transform: none; } }
body.has-result .ask { min-height: 0; padding: 96px var(--m) 8px; }
body.has-result .hero-title, body.has-result .hero-line, body.has-result .stage { display: none; }
body.has-result .ask-copy { width: auto; }
body.has-result .ask .ask-form { margin-top: 0; }
@media (max-width: 760px) {
  .ask { padding-top: 104px; min-height: 0; }
  .ask-copy { width: auto; }
  .hero-title { font-size: 11vw; }
  .hero-line { font-size: 16px; }
  .stage { position: relative; left: auto; top: auto; margin: 40px calc(-1 * var(--m)) 0; height: auto; clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 48px); }
  .stage-ui { position: relative; left: 16px; top: 0; width: calc(100% - 32px); margin: 56px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { .stage-ui { animation: none; } }
.cites a, .rec-note a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 3px; }
.foot-cmd span:last-child { background: var(--accent); }
/* Headline measure: the title runs wider than the form column so it holds two lines. */
.hero-title { width: min(62vw, 900px); max-width: none; }
@media (max-width: 1000px) { .hero-title { width: 86vw; font-size: 7.4vw; } }
@media (max-width: 760px) {
  .hero-title { width: auto; font-size: 9vw; }
  .band > p:first-child { font-size: 24px; }
  .foot-cmd { font-size: 7.4vw; }
}

/* ------------------------------------------------------------- stills */
.stills { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; align-items: start; }
.stills-title { grid-column: 1 / -1; margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: .95; font-size: var(--step-head); }
.still { margin: 0; }
.still img, .still video { display: block; width: 100%; height: auto; background: var(--surface); transition: transform .5s var(--ease); }
.still:hover img, .still:hover video { transform: scale(1.015); }
.still figcaption { margin-top: 14px; font-size: var(--step-body); line-height: 1.45; max-width: 46ch; }
.still-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 8fr 4fr; gap: 24px; align-items: end; }
.still-lead figcaption { font-size: var(--step-lead); line-height: 1.35; margin: 0; }
.still.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.still.reveal.in { opacity: 1; transform: none; }
.still.reveal:nth-of-type(3) { transition-delay: 80ms; } .still.reveal:nth-of-type(4) { transition-delay: 160ms; }
@media (max-width: 760px) {
  .stills { grid-template-columns: 1fr; gap: 40px; }
  .still-lead { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .still.reveal { opacity: 1; transform: none; transition: none; } }
/* Five sizes: display (hero, closing lines), heading, lead, body, small. */
:root { --step-display: clamp(52px, 5.2vw, 80px); }
.hero-line, .ask .ask-go, .still figcaption, .how-body, .band-more, .cta-note { font-size: var(--step-body); }
.ask .ask-input, .still-lead figcaption { font-size: var(--step-lead); }
.ask .ask-note, .ask .examples button, .stage figcaption, .bar nav a, .bar .btn, .foot-meta, .foot-top, .token summary, .token p { font-size: var(--step-small); }
.how-clause, .band > p:first-child, .stills-title { font-size: var(--step-head); }
.cta-line, .foot-cmd, .hero-title { font-size: var(--step-display); }
.mark { font-size: var(--step-lead); }
@media (max-width: 760px) { .hero-title, .cta-line { font-size: 9vw; } .foot-cmd { font-size: 7.4vw; } .band > p:first-child { font-size: 24px; } }
@media (max-width: 760px) {
  .ask .ask-line { flex-direction: row; flex-wrap: nowrap; align-items: stretch; padding-left: 14px; }
  .ask .ask-input { flex: 1 1 auto; width: 0; min-width: 0; font-size: 20px; }
  .ask .ask-go { flex: 0 0 auto; padding: 0 18px; }
}

/* ------------------------------------------------------------- motion layer */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
.words .w { display: inline-block; animation: rise .9s var(--ease) calc(var(--i) * 70ms) both; }
.demo-title.words .w, .stills-title.words .w { animation-play-state: paused; }
.in .demo-title.words .w, .stills-title.words.in .w { animation-play-state: running; }
/* Stills open like a shutter as they come into view. */
.still.reveal img, .still.reveal video { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); }
.still.reveal.in img, .still.reveal.in video { clip-path: inset(0); transform: none; }
.btn, .ctl, .voices button, .examples button { transition: transform .15s var(--ease), background-color .18s, color .18s; }
.btn:active, .ctl:active, .voices button:active { transform: translateY(2px) scale(.98); }
.stage { will-change: transform; }

/* ------------------------------------------------------------- demo */
.demo { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: end; }
.demo-title { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: .95; font-size: var(--step-head); }
.demo-line { margin: 20px 0 0; font-size: var(--step-body); max-width: 40ch; }
.voices { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.voices button { display: flex; justify-content: space-between; align-items: baseline; min-height: 52px; padding: 0 18px; border: 0; background: var(--surface); color: var(--ink); font: 600 var(--step-body) var(--sans); cursor: pointer; text-align: left; }
.voices button span { font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.voices button:hover { background: var(--surface-2); }
.voices button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.voices button[aria-checked="true"] span { color: var(--accent); }
.demo-screen { position: relative; background: var(--ink); }
.demo-screen video { display: block; width: 100%; height: auto; }
.demo-play { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.demo-play span { width: 104px; height: 104px; background: var(--accent); display: grid; place-items: center; transition: transform .2s var(--ease); }
.demo-play span::before { content: ''; border-left: 30px solid var(--ink); border-top: 18px solid transparent; border-bottom: 18px solid transparent; margin-left: 8px; }
.demo-play:hover span { transform: scale(1.08); }
@media (max-width: 1000px) { .demo { grid-template-columns: 1fr; } .voices { flex-direction: row; flex-wrap: wrap; } .voices button { flex: 1 1 160px; } }
@media (max-width: 760px) { .demo-play span { width: 76px; height: 76px; } }
@media (prefers-reduced-motion: reduce) {
  .words .w, .still.reveal img, .still.reveal video { animation: none; transition: none; clip-path: none; transform: none; opacity: 1; }
}

/* ------------------------------------------------------------- start here, review */
.start, .review { max-width: 1100px; }
.start-head h3, .review-head h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-size: var(--step-head); }
.start-head p, .review-sum { margin: 16px 0 0; font-size: var(--step-lead); line-height: 1.35; max-width: 52ch; }
.start-list { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; gap: 6px; }
.start-list li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 20px; align-items: baseline; padding: 22px 24px; background: var(--surface); transition: background-color .18s; }
.start-list li:hover { background: var(--surface-2); }
.start-list li::before { content: counter(s); grid-row: span 2; font-weight: 700; font-size: var(--step-head); line-height: .9; }
.start-list a { font-weight: 600; font-size: var(--step-lead); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.start-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; }
.start-list p { grid-column: 2; margin: 0; font-size: var(--step-body); }
.start-time { grid-row: 1; grid-column: 3; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.review-pr { margin: 0 0 10px; font-size: var(--step-small); color: var(--muted); }
.review-pr a { color: var(--ink); font-weight: 600; }
.verdict { display: inline-block; margin: 18px 0 0; padding: 8px 14px; font-weight: 600; font-size: var(--step-body); }
.verdict-high { background: var(--ink); color: var(--accent); }
.verdict-medium { background: var(--accent); color: var(--ink); }
.verdict-low { background: var(--surface-2); color: var(--ink); }
.review-block { margin-top: 40px; }
.review-block h4 { margin: 0 0 12px; font-size: var(--step-lead); font-weight: 600; }
.risk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.risk-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 16px 20px; background: var(--accent); }
.risk-list a { font-weight: 600; color: var(--ink); }
.review-table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.review-table th { text-align: left; font-weight: 600; font-size: var(--step-small); color: var(--muted); padding: 8px 12px; }
.review-table td { padding: 12px; background: var(--surface); border-top: 6px solid var(--bg); }
.review-table tr.hot td { background: #fbf3a6; }
.review-table a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.review-ok, .review-note { margin-top: 24px; font-size: var(--step-body); }
.dz .node.changed > path:first-of-type { stroke: #0d2a1c; stroke-width: 4; }
.dz .node.changed > path:first-of-type { fill: #fbf3a6; }
@media (max-width: 760px) {
  .start-list li { grid-template-columns: 40px 1fr; }
  .start-time { grid-column: 2; grid-row: auto; }
  .review-table th:nth-child(2), .review-table td:nth-child(2) { display: none; }
}

/* ------------------------------------------------------------- ask */
.ask-repo { max-width: 900px; }
.askr-head h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-size: var(--step-head); }
.askr-head p { margin: 16px 0 0; font-size: var(--step-body); max-width: 60ch; }
.askr-form { display: flex; margin-top: 32px; background: var(--surface); }
.askr-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 18px 20px; font: 500 var(--step-lead) var(--sans); color: var(--ink); }
.askr-form input:focus-visible { outline: none; }
.askr-form:focus-within { box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: focus indicator */
.askr-form .btn { min-height: auto; }
.askr-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.askr-examples button { border: 0; background: transparent; padding: 6px 0; margin-right: 14px; font: 400 var(--step-small) var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.askr-examples button:hover { color: var(--ink); }
.askr-key { margin-top: 24px; display: grid; gap: 8px; max-width: 520px; }
.askr-key label { font-weight: 600; font-size: var(--step-small); }
.askr-key input { min-height: 48px; padding: 0 14px; border: 0; background: var(--surface); }
.askr-key p { margin: 0; font-size: var(--step-small); color: var(--muted); }
.askr-out { margin-top: 32px; font-size: var(--step-body); line-height: 1.6; }
.askr-out p { margin: 0 0 14px; max-width: 68ch; }
.askr-check { font-weight: 600; padding: 10px 14px; display: inline-block; }
.askr-check.all { background: var(--ink); color: var(--accent); }
.askr-check.some { background: var(--accent); color: var(--ink); }
.cite { display: inline-block; padding: 0 6px; margin: 0 2px; font-size: var(--step-small); font-weight: 600; text-decoration: none; }
.cite.ok { background: var(--surface-2); color: var(--ink); }
.cite.ok:hover { background: var(--accent); }
.cite.bad { background: #f9d6d6; color: #6b1010; }
.cite.warn { background: #fbe8c4; color: #5c3b00; text-decoration: underline dotted; }
.askr-src { color: var(--muted); font-size: var(--step-small); }
.askr-src a { color: var(--ink); }
.askr-wait { color: var(--muted); }
.askr-warn { background: var(--accent); color: var(--ink); padding: 10px 14px; display: inline-block; }

.askr-sum { font-size: var(--step-lead); line-height: 1.4; max-width: 60ch; }
.askr-code { margin: 0 0 12px; background: var(--ink); color: var(--bg); }
.askr-code figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface-2); color: var(--ink); font-size: var(--step-small); }
.askr-code figcaption a { color: var(--ink); font-weight: 600; }
.askr-code pre { margin: 0; padding: 14px 16px; overflow: auto; max-height: 360px; font-size: 13px; line-height: 1.55; }
.askr-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; }
.askr-ai > p { margin: 0 12px 0 0; font-weight: 600; }
.askr-ai .askr-key { flex-basis: 100%; }
.askr-prose { margin-top: 24px; font-size: var(--step-body); line-height: 1.6; }
.askr-prose p { margin: 0 0 14px; max-width: 68ch; }
