/* Benchwell agent scan. Production stylesheet, light theme only. Fonts: Host Grotesk 300/400/500 and Geist Mono 400/500.
   Layout (render.js): a narrow column with the agent's path (the graph) and a wide column with the result story;
   one column on phones, where the finished path folds into a line. The status strip (.st-*) is drawn by
   render.js into a bar the page provides. One family of shapes: fields 12px, buttons 10px, step chips 8px. */

:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #fbfbf9;
  --tile: #e9e8e2;
  --ink: #121413;
  --ink-2: #4a4e49;
  --ink-3: #686c65;       /* 4.7:1 on paper: small grey text stays readable */
  --ink-4: #a9aca5;
  --line: #dddbd4;
  --line-strong: #c3c0b6;
  --field-line: #8f8c83;  /* control borders, 3:1 on paper */
  --accent: #c9f03a;
  --accent-2: #b9e224;
  --accent-deep: #9cc61c;
  --accent-ink: #0c0e0b;
  /* the second colour (owner, 27.10): an orange highlighter for key words and actions; green is for numbering */
  --marker: 255, 158, 64;
  --pass: #0a7068;        /* 5.4:1 on paper */
  --fail: #b5301f;        /* 5.5:1 on paper */
  --comp: #8f5c00;
  /* Host Grotesk has no Cyrillic: Onest fills only that (it is loaded with the Cyrillic subsets alone) */
  --font: "Host Grotesk", "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --strip: 58px;
  /* one type scale for the whole site (map and reasons: site-v3/home/NOTES.md, round 4) */
  --t-display: clamp(42px, 5.3vw, 80px);  /* page title only: weight 300 */
  --t-h2: clamp(28px, 2.5vw, 36px);        /* the verdict, page sections: weight 400 (owner: a mix of A and B, 27.10) */
  --t-h3: 21px;                           /* section titles in the result and on pages: the one bold level */
  --t-meta: 14px;                         /* a quiet label (the finished path's title) */
  /* weight is an accent: section titles are the only bold text level on a screen, besides buttons (round 5) */
  --w-title: 450;  /* owner, 27.10, round 7: less bold; Host Grotesk and Onest load as variable fonts (300..600) */
  --w-btn: 450;
  /* text roles of the result screen and the form (round 6): six sizes instead of sixteen */
  --fw-verdict: 400; --lh-verdict: 1.2;
  --fs-lead: clamp(19px, 1.45vw, 21px); --fw-lead: 400; --lh-lead: 1.44;    /* what the agent found: profile, query */
  --fs-body: 17px; --lh-body: 1.58;                                         /* answers, rows, tasks, form */
  --fs-small: 15px;                                                         /* evidence, notes, help */
  --fs-meta: 13.5px;                                                        /* labels, dates, disclaimers */
  /* the owner chose a mix of the "even" and "large" directions (27.10, round 6) */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* a window of the report is open (the issues, the map, the form): the window scrolls, the page under it does not */
html:has(dialog[open]), html:has(.app.rail-open) { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
p, h1, h2, h3, h4, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- service page top bar (web/index.html) ---------- */
.top { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gut); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.brand svg { width: 24px; height: 24px; }
.top-tag { font-size: 15px; color: var(--ink-3); padding-left: 14px; border-left: 1px solid var(--line-strong); line-height: 1.1; }
.top-right { margin-left: auto; font-size: 15px; display: flex; align-items: center; gap: 16px; }
.top-right a { text-decoration: none; color: var(--ink-2); }
.top-right a:hover { color: var(--ink); }
.narrow { --maxw: 1160px; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 10px; font: var(--w-btn) 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); transition: background .2s, border-color .2s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn-ink { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; font: var(--w-btn) 16px/1 var(--font); white-space: nowrap; transition: background .2s; }
.btn-ink:hover { background: #2a2d2b; }
.field { width: 100%; height: 50px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--surface); font: 400 16px/1 var(--font); outline: none; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field::placeholder { color: var(--ink-3); }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- status words (sans, colour only where there is a gap) ---------- */
.st { font-weight: 400; white-space: nowrap; }
.st-yes { color: var(--ink); }
.st-ok { color: var(--pass); }
.st-warn { color: var(--comp); }
.st-fail { color: var(--fail); }
.st-info { color: var(--ink-3); }
.st-wait { color: var(--ink-3); font-weight: 400; }
.ring { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--ink); animation: bw-spin 1s linear infinite; vertical-align: -1px; margin-left: 6px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: bw-pulse 1.6s infinite; flex: none; }
@keyframes bw-spin { to { transform: rotate(360deg); } }
@keyframes bw-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,20,19,.35); } 70% { box-shadow: 0 0 0 7px rgba(18,20,19,0); } 100% { box-shadow: 0 0 0 0 rgba(18,20,19,0); } }
@keyframes bw-dot { 0% { box-shadow: 0 0 0 0 rgba(156,198,28,.55); } 70% { box-shadow: 0 0 0 7px rgba(156,198,28,0); } 100% { box-shadow: 0 0 0 0 rgba(156,198,28,0); } }
@keyframes bw-fresh { from { background: rgba(201,240,58,.22); } to { background: transparent; } }

/* ---------- service start page (web/index.html) ---------- */
.start { max-width: 1160px; margin: 0 auto; padding: clamp(48px, 11vh, 130px) var(--gut) 90px; }
.start h1 { font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.04em; max-width: 17ch; text-wrap: balance; }
.start .lede { margin: 26px 0 38px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.url-form { display: flex; gap: 8px; max-width: 620px; }
.url-form .field { flex: 1; min-width: 0; height: 60px; font-size: 19px; padding: 0 22px; }
.url-form .btn { height: 60px; padding: 0 28px; font-size: 17px; }
.start .hint { margin-top: 14px; font-size: 15px; color: var(--ink-3); }
.start .hint.err { color: var(--fail); }
.start-qs { margin-top: 84px; border-top: 1px solid var(--ink); }
.start-qs li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 300; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.015em; }
.start-qs small { font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--ink-4); white-space: nowrap; }

/* ================================================================
   STATUS STRIP: render.js draws .st-in into the page's bar
   ================================================================ */
.st-bar { position: sticky; top: 0; z-index: 20; height: var(--strip); background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-strong); }
.st-in { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 22px; min-width: 0; font-size: 14.5px; color: var(--ink-2); }
.st-dom { font-size: 18px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; max-width: 34%; }
.st-steps { display: flex; align-items: center; gap: 0; min-width: 0; white-space: nowrap; }
.st-steps li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-4); }
.st-steps li + li::before { content: ""; width: 18px; height: 1px; margin: 0 10px; background: var(--line-strong); }
.st-steps li.done { color: var(--ink-3); }
.st-steps li.now { color: var(--ink); }
.st-mark { width: 7px; height: 7px; border-radius: 50%; border: 1.3px solid currentColor; flex: none; }
.st-steps li.done .st-mark { background: currentColor; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); flex: none; animation: bw-dot 1.8s ease-out infinite; }
.st-cur { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.st-steps.queued li span { display: none; }
.st-page { white-space: nowrap; }
.st-page::before { content: ""; display: inline-block; width: 1px; height: 13px; margin-right: 18px; background: var(--line-strong); vertical-align: -2px; }
.st-clock, .st-num { font: 400 13px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-meta { display: flex; align-items: center; gap: 16px; min-width: 0; white-space: nowrap; overflow: hidden; }
.st-meta > span + span::before { content: ""; display: inline-block; width: 1px; height: 13px; margin-right: 16px; background: var(--line-strong); vertical-align: -2px; }
.st-bad { color: var(--fail); font-weight: 400; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-anchors { display: none; gap: 16px; }
.st-anchors a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); white-space: nowrap; }
.st-acts { margin-left: auto; flex: none; display: flex; align-items: center; gap: 18px; }
.st-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); white-space: nowrap; }
.st-link:hover { color: var(--ink); }
.st-cta, .st-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); text-decoration: none; font: var(--w-btn) 14.5px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background .2s; }
.st-cta:hover, .st-btn:hover { background: #2a2d2b; }
.st-btn { background: transparent; color: var(--ink); }
.st-btn:hover { background: rgba(18,20,19,.05); }
.st-btn[disabled] { opacity: .55; cursor: progress; }

/* ================================================================
   SCAN LAYOUT: narrow path column + wide story column
   ================================================================ */
.app { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0 clamp(32px, 4vw, 64px); }
.path { align-self: start; padding: 26px 0 56px; min-width: 0; }
.story { border-left: 1px solid var(--line); padding: 26px 0 96px clamp(28px, 3.6vw, 60px); min-width: 0; }
#sum, #path, #follow, .q { scroll-margin-top: calc(var(--strip) + 16px); }

/* path head: a section title while the agent works; once it is done the path is secondary, a quiet label */
.path-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.path-head h2 { font-weight: var(--w-title); font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.app.quiet:not(.rail-open) .path-head h2 { font-weight: 400; font-size: var(--t-meta); color: var(--ink-3); letter-spacing: 0; }
.path-fold { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.path-fold .pf-a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); white-space: nowrap; }
.path-fold svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.path:not(.folded) .path-fold svg { transform: rotate(180deg); }
.path.folded .path-head { display: none; }

/* the map: one grid row per top-level step; notes sit under their step */
.map { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; position: relative; align-content: start; }
.map > .t { grid-column: 1; font: 400 12px/1 var(--mono); color: var(--ink-3); padding-top: 25px; }
.map > .act { grid-column: 2; position: relative; padding: 16px 0 8px; min-width: 0; }
.map > .act::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.map > .act.first::before { top: 30px; }
.map > .act.last::before { bottom: 0; }
.map > .act.last.alone::before { height: 30px; bottom: auto; }
.map > .notes { grid-column: 2; display: grid; justify-items: start; gap: 8px; padding: 0 0 12px 28px; position: relative; min-width: 0; } /* a note is as wide as its text (owner, 27.10) */
.map > .notes:empty { display: none; }
.map .kids { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin: 8px 0 0 28px; }
.map-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; color: var(--ink-3); }
.map-foot b { font-weight: 400; color: var(--ink); }

.pill { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; max-width: 100%; padding: 0 11px 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font: 400 12.5px/1 var(--mono); color: var(--ink); white-space: nowrap; cursor: default; transition: opacity .2s, border-color .3s, background .3s, color .3s; }
.pill > span { overflow: hidden; text-overflow: ellipsis; }
.pill svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pill.sub { height: 26px; font-size: 12px; color: var(--ink-2); background: transparent; border-color: var(--line); }
.pill.bad { color: var(--fail); border-color: #e3b1a8; }
.pill.bad svg { stroke: var(--fail); }
.pill.now { background: var(--accent); border-color: var(--accent-2); color: var(--accent-ink); }
.pill.now svg { stroke: var(--accent-ink); }
.map.dim .pill:not(.hl) { opacity: .28; }
.map.dim .note:not(.hl) { opacity: .35; }
.pill.hl { border-color: var(--ink); }

.map .note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px 12px; cursor: default; transition: border-color .15s, opacity .2s, background .3s; }
.map .note:hover, .map .note.on { border-color: var(--ink-3); }
.map .note h3 { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 400; line-height: 1.3; }
.map .note h3 .st { font-size: 14px; }
.map .note p { margin-top: 4px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.map .note.missing { border-style: dashed; background: transparent; }
.map .note.hl { border-color: var(--ink); }
/* finished: the path stays in place, quiet */
/* finished: the path stays in place and goes quiet. No frames, no fills, no green; only refusals keep their red */
.app.quiet:not(.rail-open) .map .note { background: transparent; border-color: transparent; padding: 4px 0 6px 14px; border-left: 1px solid var(--line); border-radius: 0; }
.app.quiet:not(.rail-open) .map .note:hover, .app.quiet:not(.rail-open) .map .note.on { border-color: transparent; border-left-color: var(--ink-3); }
.app.quiet:not(.rail-open) .map .note h3 { font-weight: 400; color: var(--ink-2); font-size: 14.5px; }
.app.quiet:not(.rail-open) .map .note h3 .st:not(.st-fail) { color: var(--ink-3); font-weight: 400; }
.app.quiet:not(.rail-open) .map .note p { color: var(--ink-3); }
.app.quiet:not(.rail-open) .map .pill:not(.bad) { background: transparent; border-color: var(--line); color: var(--ink-2); }
.app.quiet:not(.rail-open) .map .pill:not(.bad) svg { stroke: var(--ink-4); }
.app.quiet:not(.rail-open) .map > .act::before { background: var(--line); }
.app.quiet:not(.rail-open) .map > .t { color: var(--ink-4); }
/* wide screens, finished (round 6): the path becomes a rail of step icons at the left edge, the story takes the
   centre, wider; the rail opens as a panel over the page. Nothing in the page scrolls on its own. */
.path-rail { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s; }
.path-rail:hover { color: var(--ink); border-color: var(--ink-3); }
.path-rail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 761px) {
  .app.rail { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .app.rail .story { grid-column: 2; grid-row: 1; justify-self: center; width: 100%; max-width: 880px; border-left: 0; padding-left: 0; }
  .app.rail .path { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--strip) + 18px); padding: 24px 0; }
  /* the closed rail: the button, then one icon per step on a thin line */
  .app.rail:not(.rail-open) .path-head, .app.rail:not(.rail-open) .map > .t, .app.rail:not(.rail-open) .map > .notes,
  .app.rail:not(.rail-open) .map .kids, .app.rail:not(.rail-open) .map-foot { display: none; }
  .app.rail:not(.rail-open) .path-body { margin-top: 14px; }
  .app.rail:not(.rail-open) .map { grid-template-columns: 36px; }
  .app.rail:not(.rail-open) .map > .act { grid-column: 1; padding: 4px 0; }
  .app.rail:not(.rail-open) .map > .act::before { left: 17.5px; top: 0; bottom: 0; height: auto; }
  .app.rail:not(.rail-open) .map > .act.first::before { top: 50%; }
  .app.rail:not(.rail-open) .map > .act.last::before { bottom: 50%; }
  .app.rail:not(.rail-open) .map > .act.alone::before { display: none; }
  .app.rail:not(.rail-open) .map .pill { width: 36px; height: 36px; padding: 0; gap: 0; justify-content: center; background: var(--bg); cursor: pointer; }
  .app.rail:not(.rail-open) .map .pill > span { display: none; }
  .app.rail:not(.rail-open) .map .pill:not(.bad) { border-color: var(--line-strong); }
  .app.rail:not(.rail-open) .map .pill:not(.bad) svg { stroke: var(--ink-2); }
  /* the icons sit on the line, not under it: as specific as the quiet rule above, and later, so it wins */
  .app.quiet.rail:not(.rail-open) .map .pill { background: var(--bg); }
  /* the open map: a window in the centre (owner, 27.10, round 7), the whole path; it scrolls inside, the page does not */
  .app.rail-open::after { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(18,20,19,.3); }
  .app.rail-open .path { position: fixed; z-index: 40; inset: 0; margin: auto; height: fit-content; width: min(820px, calc(100vw - 48px)); max-height: calc(100vh - 64px); animation: bw-win-in .38s var(--ease) both; padding: 26px clamp(20px, 3.4vw, 40px) 32px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px -30px rgba(18,20,19,.45); overflow-y: auto; overscroll-behavior: contain; }
  .app.rail-open .path-rail { position: absolute; top: 24px; right: clamp(20px, 3.4vw, 40px); width: auto; height: 32px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; font-size: var(--fs-small); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
  .app.rail-open .path-head { padding-right: 48px; }
  .app.rail-open .path-head h2 { font-weight: var(--w-title); font-size: var(--t-h3); color: var(--ink); letter-spacing: -0.01em; }
  /* the moves themselves (render.js morph(): View Transitions, skipped with reduced motion) */
  .app.vt .path { view-transition-name: bw-path; }
  .app.vt .story { view-transition-name: bw-story; }
}
::view-transition-group(bw-path), ::view-transition-group(bw-story) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(bw-path) { animation: bw-vt-out .3s var(--ease) both; }
::view-transition-new(bw-path) { animation: bw-vt-in .35s .12s var(--ease) both; }
@keyframes bw-vt-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes bw-vt-in { from { opacity: 0; } }

/* step card and knowledge popover */
.tip, .pop { position: absolute; top: 0; left: 0; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(18,20,19,.35); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; transform: translateX(-4px); }
.tip.below, .pop.below { transform: translateY(4px); }
.tip.on, .pop.on { opacity: 1; transform: none; }
/* never wider than the screen, even while hidden (an absolute box still counts for the page width) */
.tip, .pop { max-width: calc(100vw - 16px); }
.tip { width: 320px; padding: 12px; font-size: 13.5px; }
.tip img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--line); margin-bottom: 12px; }
.tip dl { display: grid; grid-template-columns: 70px 1fr; gap: 5px 12px; padding: 0 2px; }
.tip dt { color: var(--ink-3); }
.tip dd { overflow-wrap: anywhere; }
.tip dd.m { font: 400 12.5px/1.5 var(--mono); }
.pop { width: 340px; padding: 16px 18px; font-size: 14.5px; line-height: 1.45; }
.pop h4 { margin-bottom: 8px; font-size: 16px; font-weight: 400; display: flex; justify-content: space-between; gap: 12px; }
.pop li { padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.pop .src { margin-top: 10px; font: 400 12px var(--mono); color: var(--ink-3); }

/* ================================================================
   THE STORY
   ================================================================ */
/* sections: the title sits close to its content and far from the section above */
.story > .b { padding: 32px 0 26px; border-top: 1px solid var(--line); }
.app.live .story > .blk-profile { border-top: 0; }
.b-verdict + .b { margin-top: 26px; }
.app.live .story > .blk-profile { padding-top: 4px; }
.story > .b > h2, .eye h2 { font-weight: var(--w-title); font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 12px; text-wrap: balance; }

/* first line: what this page is (for someone who got the link) */
.b-meta { padding-bottom: 14px; }
.m-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: var(--fs-meta); color: var(--ink-3); }
.m-site { color: var(--ink); font-weight: 400; }
/* the separator stays with the word before it when the line wraps */
.m-line > span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--ink-4); }
.m-note { margin-top: 6px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.b-verdict { padding-bottom: 16px; }
/* the verdict: the strongest text of the result. 400, not 300: 300 at this size is too pale on ordinary screens */
.verdict { font-weight: var(--fw-verdict); font-size: var(--t-h2); line-height: var(--lh-verdict); letter-spacing: -0.022em; text-wrap: pretty; max-width: 34ch; }
.verdict.quiet { font-size: clamp(21px, 1.7vw, 25px); }
.v-err { margin-top: 10px; font-size: var(--fs-body); line-height: 1.45; color: var(--fail); overflow-wrap: anywhere; }
.app.empty { grid-template-columns: minmax(0, 1fr); }
.app.empty .path { display: none; }
.app.empty .story { border-left: 0; padding-left: 0; padding-bottom: 40px; }

/* how the agent sees the business */
.summary { font-weight: var(--fw-lead); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: -0.01em; max-width: 50ch; }
.tags { margin-top: 10px; font-size: var(--fs-meta); color: var(--ink-3); }
.facts { margin-top: 18px; }
.facts li, .kv li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--fs-body); line-height: 1.5; }
.facts .k, .kv .k { color: var(--ink-3); }
.facts .st { font-size: var(--fs-small); margin-left: 4px; }
.kv li:first-child { border-top: 0; padding-top: 0; }

/* "What the agent sees", during the run only */
.blk-eye { border-top: 0; }
.eye figure { margin: 0; }
.v-img { position: relative; aspect-ratio: 16 / 10; background: var(--tile); }
.v-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.v-img img.on { opacity: 1; }
.eye .v-img { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.eye.away .v-img img.on { opacity: .55; filter: saturate(.6); }
.eye .ph { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14.5px; color: var(--ink-3); transition: opacity .4s var(--ease); }
.eye.has .ph { opacity: 0; pointer-events: none; }
.eye figcaption { margin-top: 10px; display: grid; gap: 2px; font-size: var(--fs-small); line-height: 1.45; }
.eye .cap-a, .eye .cap-b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eye .cap-a { color: var(--ink-2); }
.eye .cap-b { color: var(--ink-3); }

/* the customer's question and why */
.query { font-weight: var(--fw-lead); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: -0.01em; max-width: 46ch; padding-left: 18px; border-left: 2px solid var(--ink); }
.why { margin-top: 12px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.why .k { color: var(--ink-3); }

/* what the assistants answered */
/* what the assistants answered: a board of three columns (round 7); our green on top of a column whose
   assistant named the business */
.ai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.ai > li { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 18px 24px 4px; min-width: 0; }
.ai > li:first-child { padding-left: 0; }
.ai > li + li { border-left: 1px solid var(--line); }
.ai .vn { display: flex; align-items: center; gap: 9px; font-size: var(--fs-body); color: var(--ink); }
.ai .rk { margin-top: 16px; font-weight: 300; font-size: clamp(40px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ai .rk.none { color: var(--ink-4); }
.ai .st { display: block; margin-top: 12px; font-size: var(--fs-body); line-height: 1.35; }
.ai .st.st-info { color: var(--ink); } /* «Mentions» reads as an answer, not as a grey aside (owner, 27.10) */
.ai .n { margin-top: 6px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-3); }
.ai .n b { font-weight: 400; color: var(--ink); } /* the business itself: marked (.mk below) */
.ai-open { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 0 4px; border: 0; background: none; font: 400 var(--fs-small)/1.3 var(--font); color: var(--ink-2); cursor: pointer; }
.ai-open:hover { color: var(--ink); }
.ai-open svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.ai-open:hover svg { transform: translateX(3px); }
.ai > li.wait .st { color: var(--ink-3); }
.bw-ans .bw-dlg-top h2 { display: flex; align-items: center; gap: 10px; }
.bw-ans .ans-q { margin-bottom: 16px; padding-left: 16px; border-left: 2px solid var(--ink-4); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
@media (max-width: 760px) {
  .ai { grid-template-columns: minmax(0, 1fr); }
  .ai > li, .ai > li:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 14px 0 12px; border-left: 0; }
  .ai > li + li { border-top: 1px solid var(--line); border-left: 0; }
  .ai .vn { grid-column: 1; grid-row: 1; align-self: center; }
  .ai .st { grid-column: 1; grid-row: 2; }
  .ai .n { grid-column: 1 / -1; grid-row: 3; }
  .ai-open { grid-column: 1 / -1; grid-row: 4; justify-self: start; }
  .ai .rk { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; font-size: 36px; }
  .ai .st { margin-top: 4px; }
}
.ans { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); max-width: 66ch; }
.ans p + p, .ans ul + p, .ans p + ul { margin-top: 8px; }
.ans ul { list-style: disc; padding-left: 20px; }
.ans li + li { margin-top: 4px; }
.ans b { font-weight: 400; color: var(--ink); }
.src { margin-top: 14px; display: grid; gap: 6px; font-size: var(--fs-small); }
.src li { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.src a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.src span { font: 400 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.fine { margin-top: 10px; font-size: var(--fs-meta); color: var(--ink-3); }

/* technical analysis (round 7): the groups and their words in one line, one button; the found issues,
   and only they, in a window as one flat list */
.blk-tech .lead { margin: -4px 0 16px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.tgs { display: flex; flex-wrap: wrap; gap: 10px 30px; padding: 14px 0 15px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.tg { display: inline-flex; align-items: baseline; gap: 9px; font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.tg b { font-weight: 400; }
.tech-none { margin-top: 14px; font-size: var(--fs-body); color: var(--pass); }
.tech-open { margin-top: 18px; }
/* open / closed: a chevron (the assistants' rows) */
.q-pm { grid-column: 3; grid-row: 1; position: relative; width: 12px; height: 12px; align-self: center; }
.q-pm::before { content: ""; position: absolute; left: 2px; top: 1px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--ease), top .3s var(--ease); }
details[open] > summary > .q-pm::before { transform: rotate(-135deg); top: 5px; }
summary:hover > .q-pm::before { border-color: var(--ink); }
.scope { margin-top: 18px; font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-3); max-width: 62ch; }
/* the windows of the report: the issues, the map of the path; they scroll inside, the page does not */
.bw-dlg.bw-wide { width: min(880px, calc(100% - 32px)); }
.bw-wide .bw-dlg-top { justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(20px, 4vw, 40px) 0; }
.bw-wide .bw-dlg-top h2 { font-weight: var(--w-title); font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; }
.bw-dlg-x { flex: none; height: 36px; padding: 0 2px; border: 0; background: transparent; font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.bw-dlg-x:hover { color: var(--ink); }
.bw-wide .bw-dlg-body { padding-top: 14px; }
.bw-tech .lead { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.issues { margin-top: 18px; border-top: 1px solid var(--ink); }
.issues li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0 17px; border-bottom: 1px solid var(--line); }
.issues .st { font-size: var(--fs-small); line-height: 1.55; }
.i-t { font-size: var(--fs-body); line-height: 1.4; color: var(--ink); }
.i-ev { margin-top: 5px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 64ch; overflow-wrap: anywhere; }
.i-g { margin-top: 7px; font-size: var(--fs-meta); color: var(--ink-3); }
@media (max-width: 760px) { .issues li { grid-template-columns: minmax(0, 1fr); } }
.task-go svg, .tech-open svg, .btn-acc svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.task-go:hover svg, .tech-open:hover svg, .btn-acc:hover svg { transform: translateX(3px); }

/* tasks that can be checked next */
.tasks li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--fs-body); line-height: 1.5; }
.tasks li:first-child { border-top: 0; padding-top: 0; }
.tasks .k { color: var(--ink-3); }
.tasks.access { margin-top: 20px; }
.tasks.access li { grid-template-columns: minmax(0, 1fr); padding-top: 16px; border-top: 1px solid var(--line); }
.tasks.access p, .tasks.access .task-go { grid-column: 1; }
.tasks p { grid-column: 2; max-width: 66ch; }
/* the actions inside the report read as links with an arrow, not as a stack of buttons; the one button is the end */
.tech-open, .task-go { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: transparent; font: 400 15.5px/1.3 var(--font); color: var(--ink); cursor: pointer; transition: color .2s; }
.tech-open:hover, .task-go:hover { color: var(--ink); }
/* the secondary links of the report: an underline is enough (owner, 27.10) */
.tech-open > span, .ai-open > span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.tech-open:hover > span, .ai-open:hover > span { text-decoration-color: var(--ink); }
.task-go { grid-column: 2; justify-self: start; margin-top: 4px; }

/* closed site */
.lead-p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); max-width: 56ch; }
.blk-closed h2 { margin-top: 24px; }
.tries li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 1px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.tries li:first-child { border-top: 0; padding-top: 0; }
.tries .how { grid-column: 2; font-size: var(--fs-small); color: var(--ink-3); }
.fine-ev { font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }
.fine-ev + .fine-ev { margin-top: 8px; }

/* the follow-up slot: the form component, or the contact path until it is live */
/* the form: a section of the result like the others (its title at h3), opened by a dark rule: from reading to acting.
   The black button is its accent; the title must not outweigh the verdict */
.story > .blk-follow { padding-top: 32px; border-top-color: var(--ink); }
.blk-follow .f-h, .blk-follow .fu-h { font-weight: var(--w-title); font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
.blk-follow .f-l { color: var(--ink-2); margin-bottom: 18px; max-width: 52ch; }
.b-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); }
/* the audit request on the service page (/r/<id>), opened from the status strip */
.bw-dlg { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(18,20,19,.45); overflow: auto; }
.bw-dlg::backdrop { background: rgba(18,20,19,.3); } /* one soft veil under every window of the site */
.bw-dlg-top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 14px 18px 0; background: var(--bg); }
.bw-dlg-body { padding: 4px clamp(20px, 4vw, 40px) 36px; }
@media (max-width: 760px) { .bw-dlg { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; border-radius: 0; } }

/* ---------- motion: new things rise in, changed things glow once; nothing bounces ---------- */
@keyframes bw-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bw-fade { from { opacity: .35; } to { opacity: 1; } }
.enter { animation: bw-rise .34s var(--ease) both; }
.flash { animation: bw-fresh 1.8s var(--ease); }
.swap { animation: bw-fade .4s var(--ease); }

/* assistant marks */
svg.logo { width: 15px; height: 15px; fill: currentColor; stroke: none; flex: none; }
.pill svg.logo { width: 12px; height: 12px; }

/* ---------- language menu (as on the landing) ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 58px; padding: 0 14px 0 16px;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer;
  font: 400 13px/1 var(--font); letter-spacing: 0.06em; transition: border-color .2s;
}
.lang-btn:hover { border-color: currentColor; }
.lang-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 172px; padding: 6px;
  background: #f4f3ef; color: #121417; border: 1px solid rgba(18,20,23,.1); border-radius: 12px;
  box-shadow: 0 14px 40px -16px rgba(18,20,23,.35); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.lang-menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px;
  color: inherit; text-decoration: none; font: 400 13px/1.2 var(--font); letter-spacing: 0.06em;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(18,20,23,.06); }
.lang-menu a[aria-current="true"] { font-weight: 400; color: var(--ink); }
.lang-menu a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9cc61c; align-self: center; margin-left: -8px; order: 3; }

/* ================================================================
   NARROW
   ================================================================ */
@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .facts li, .kv li, .why, .tasks li { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --strip: 64px; }
  /* the strip in two lines: the address and its action, then the status */
  .st-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; gap: 4px 12px; font-size: 13.5px; }
  .st-dom { grid-column: 1; grid-row: 1; font-size: 17px; max-width: none; }
  .st-in.is-live { grid-template-columns: auto minmax(0, 1fr) auto; }
  .st-in.is-live .st-dom { grid-column: 1 / 3; }
  .st-in.is-live .st-clock { grid-column: 3; grid-row: 1; justify-self: end; }
  .st-steps { grid-column: 1; grid-row: 2; }
  .st-steps li span { display: none; }
  .st-steps li + li::before { width: 8px; margin: 0 4px; }
  /* the dots, and one label right after the current dot (future dots follow it), cut with an ellipsis */
  .st-steps { min-width: 0; overflow: hidden; }
  .st-steps li.now { min-width: 0; flex: 0 1 auto; }
  .st-steps li.now span { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .st-steps li.now + li::before { margin-left: 8px; }
  .st-in.is-live .st-cur { grid-column: 1 / 3; grid-row: 2; overflow: hidden; text-overflow: ellipsis; }
  .st-in.is-live .st-steps { grid-column: 1 / 3; }
  .st-page { grid-column: 3; grid-row: 2; justify-self: end; }
  .st-page::before { display: none; }
  .st-meta { grid-column: 1 / -1; grid-row: 2; gap: 12px; }
  .st-meta > span + span::before { margin-right: 12px; height: 11px; }
  .st-acts { grid-column: 2; grid-row: 1; gap: 14px; }
  .st-link { display: none; }
  .st-cta, .st-btn { height: 32px; padding: 0 12px; font-size: 13.5px; }
}
@media (max-width: 760px) {
  :root { --t-h2: 24px; --t-h3: 18px; --fs-lead: 18.5px; --fs-body: 16px; --fs-small: 14.5px; }
  body { font-size: 16px; }
  .top-tag { display: none; }
  /* one column; the story runs through it and the path keeps its place after the profile */
  .app { display: flex; flex-direction: column; }
  .story { display: contents; }
  .b-meta { order: 1; padding-top: 22px; }
  .b-verdict { order: 2; padding-bottom: 18px; }
  .blk-profile { order: 3; }
  .blk-eye { order: 4; }
  .path { order: 5; padding: 0 0 8px; align-self: stretch; display: flex; flex-direction: column; }
  /* the fold line stays first: opening the path adds its head and the map under it, not above */
  .path-fold { order: 0; } .path-head { order: 1; } .path-body { order: 2; }
  .app { overflow-anchor: none; } /* render.js keeps the reader's place itself when the path folds */
  .blk-query { order: 6; } .blk-assist { order: 7; } .blk-tech { order: 8; } .blk-open { order: 9; }
  .blk-impacts { order: 10; } .blk-tasks { order: 11; } .blk-closed { order: 12; } .blk-follow { order: 13; } .b-end { order: 14; padding-bottom: 72px; }
  .app.live .path { padding-top: 6px; }
  .story > .b { padding: 28px 0 22px; }
  .app.live .blk-profile, .app.live .blk-eye { border-top: 0; }
  .blk-profile { padding-top: 22px; }
  .path-head { padding-top: 18px; }
  .verdict { line-height: 1.28; }
  .map { grid-template-columns: 38px minmax(0, 1fr); gap: 0 10px; }
  .map > .t { font-size: 11px; }
  .facts li, .kv li, .why, .tasks li { grid-template-columns: 1fr; gap: 2px; }
  .tasks p, .task-go { grid-column: 1; }
  .why { gap: 2px; }
  .url-form { flex-direction: column; }
  .url-form .field, .url-form .btn { height: 54px; flex: none; }
  .start-qs { margin-top: 56px; }
  .start-qs li { flex-direction: column; gap: 2px; }
  .tip { width: 280px; }
}
@media (max-width: 420px) {
  /* narrow phones: one group per row, the label left and the word right */
}
@media (max-width: 400px) {
  /* finished scan, the stuck strip: two anchors instead of the status line */
  .st-in.is-done:has(.st-anchors) .st-meta { display: none; }
  .st-in.is-done .st-anchors { display: flex; grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .lang-menu, .lang-btn svg { transition: none; }
}

/* ---------- the report's accent (owner, 27.10, round 7): our green marks where a section starts, the
   customer's question, the links and the one action; status colours stay for status only ---------- */
.app { counter-reset: bw-sec; } /* on .app: on phones .story is display: contents and holds no counter */
.story > .b > h2 { counter-increment: bw-sec; }
.story > .b > h2::before { content: counter(bw-sec, decimal-leading-zero); display: inline-block; min-width: 26px; margin-right: 12px; padding: 4px 6px 3px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font: 400 12px/1 var(--mono); letter-spacing: .02em; text-align: center; vertical-align: 3px; }
.btn-acc { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 22px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: var(--w-btn) 16px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background .2s; }
.btn-acc:hover { background: var(--accent-2); }
.kv li > span:last-child { max-width: 66ch; }

/* windows come in softly: a short rise and a fading veil (round 7); reduced motion turns it off above */
@keyframes bw-win-in { from { opacity: 0; transform: translateY(16px) scale(.975); } }
@keyframes bw-win-out { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes bw-veil-out { to { opacity: 0; } }
@keyframes bw-veil-in { from { opacity: 0; } }
.bw-dlg[open], .h-dlg[open] { animation: bw-win-in .38s var(--ease) both; }
.bw-dlg[open]::backdrop, .h-dlg[open]::backdrop { animation: bw-veil-in .32s ease-out both; }
.app.rail-open::after { animation: bw-veil-in .32s ease-out both; }
/* closing the map: the same move back, then render.js drops the window */
.app.rail-closing .path { animation: bw-win-out .22s ease-in both !important; }
.app.rail-closing::after { animation: bw-veil-out .22s ease-in both; }

/* the marker (round 7): an even, light orange highlight over the whole phrase, for the key actions and the
   business's own name; a touch stronger on hover, never a jump in height. Green stays for numbering. */
.mk, .ai .n b {
  background: rgba(var(--marker), .24); border-radius: 3px; padding: .05em .24em .07em; margin: 0 -.24em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .2s ease;
}
button:hover > .mk, a:hover > .mk, a:focus-visible > .mk, button:focus-visible > .mk { background: rgba(var(--marker), .38); }
/* a window takes the focus itself when it opens: no ring around it */
.bw-dlg:focus, .h-dlg:focus, .bw-dlg:focus-visible, .h-dlg:focus-visible { outline: none; }

/* ---------- phones (27.10, the phone pass): windows as sheets, one rule per seam, finger-sized targets ---------- */
@media (max-width: 760px) {
  /* every window of the report is a full-screen sheet, the wide ones too (they were 32 px short and left-aligned) */
  .bw-dlg.bw-wide { width: 100%; }
  .bw-wide .bw-dlg-top { padding: 10px 16px 0 20px; }
  .bw-dlg-x { height: 44px; padding: 0 4px; }
  .bw-ans .src { gap: 0; }
  .bw-ans .src li { align-items: center; }
  .bw-ans .src a { padding: 11px 0; }
  /* a long section title wraps under its words, not under its number */
  .story > .b > h2 { padding-left: 50px; text-indent: -50px; }
  .story > .b > h2::before { text-indent: 0; }
  /* the folded path is one row between two sections: its own rule would double the next section's */
  .path.folded { padding-bottom: 0; }
  .path.folded .path-fold { border-bottom: 0; }
  .path-fold .pf-t { display: grid; gap: 3px; }
  .path-fold .pf-h { color: var(--ink); }
  .path-fold .pf-n { font-size: var(--fs-meta); color: var(--ink-3); }
  /* technical analysis: one group per row, the label left and the word right */
  .tgs { display: grid; gap: 6px; padding: 12px 0 13px; }
  .tg { justify-content: space-between; gap: 16px; white-space: normal; }
  .tg b { text-align: right; }
  /* targets of 44 px; the margins give back what the padding adds, so nothing moves */
  .ai-open { padding: 14px 0 12px; margin-bottom: -8px; }
  .task-go { padding: 12px 0; margin: -4px 0 -8px; }
  .tech-open { padding: 12px 0; margin: 10px 0 -8px; }
  .st-anchors a { padding: 11px 0; margin: -11px 0; }
  .st-cta { position: relative; }
  .st-cta::after { content: ""; position: absolute; inset: -6px -4px; }
  /* the end of the report: the one button across the column, as on the first screen */
  .b-end .btn-acc { width: 100%; justify-content: center; }
  .b-end .link { padding: 11px 0; margin: -11px 0; }
}
