/* Monitor Guide: the tailor's measure. Pattern paper in light mode, the green cutting mat in dark mode.
   Phone first (360 px), stage left and sticky from 960 px. Plan: docs/monitor-guide-plan.md section 3.

   SHARED CLASSES (every station builds with these; a station's own css/<id>.css adds only what is unique to it)
   .station          the grid a station mounts into its root: verdict, stage, controls, why, note (see app.js skeleton)
   .stage            the drawing. No box around it; it sits on the paper. Sticky on the left from 960 px.
   .controls         the column of controls (tapes, chips). Stacks with even gaps.
   .control          one labelled control inside .controls (.control-label is its small label)
   .verdict          the one big sentence that rewrites itself; wrap the key value in <b> for the red pencil mark
   .why              the "why" lines: a <ul> of one or two short sentences
   .note             the small honest line ("A simulation, enlarged 8 times.")
   .figures          a <dl> of numbers for Full detail (dt label, dd value; tabular figures)
   .full-only        shown only in Full detail;  .simple-only  shown only in Simple
   .choice / .chip   segmented choice (from ui/choice.js); .choice--seg joins the chips into one bar
   .btn              a plain ink button; .btn--quiet a text button; .linkish a button that reads as a link
   .tape             the measuring tape (from ui/tape.js)
   SVG drawing classes (ui/draw.js uses them; strokes keep their pixel width at any scale):
   .ink   ink outline 1.6 px, round ends, no fill         .ink-thin  0.9 px ink
   .chalk chalk-blue dashed line (annotations)            .chalk-solid  chalk line, not dashed
   .pencil red pencil line (verdict marks, warnings)      .fill-paper / .fill-paper2 / .fill-screen / .fill-ink fills
   .t     drawing text (Onest); .t-num drawing numerals (Bricolage, tabular); .t-chalk / .t-pencil colour it
   TOKENS: --paper --paper-2 --dot --ink --ink-2 --tape --tape-ink --tape-red --chalk --pencil --good --slip --slip-ink
   --screen, and drawing fills --skin --hair --cloth --cloth-2 --shoe --plastic --office --wood --metal --monitor
   --tile-a --tile-b --book-1..3. Motion: --ease, --fast, --mid. Use tokens, never a colour inline. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-latin.woff2) format("woff2"); }

:root {
  --paper: #f3eee2; --paper-2: #ebe4d3; --dot: #d6ccb5; --rule: #cfc5ae; --ink: #1d1b18; --ink-2: #5a554c; --on-ink: #f3eee2;
  --tape: #f2c40f; --tape-edge: #d9ab00; --tape-ink: #1d1b18; --tape-red: #b8231a; --chalk: #2c5aa0; --pencil: #c5281c; --good: #2f7d4f;
  --slip: #fffdf6; --slip-ink: #1d1b18; --slip-ink-2: #5a554c; --slip-rule: #ddd4c0; --screen: #101418;
  --skin: #c48a62; --skin-2: #a5704b; --hair: #2a211b; --cloth: #5b7fb8; --cloth-2: #3d3c43; --shoe: #4a3426;
  --plastic: #fbf9f2; --office: #3a3d42; --wood: #c8955f; --metal: #9aa0a6; --monitor: #2b2f33;
  --tile-a: #dfe8f4; --tile-b: #c7d6eb; --tile-ink: #1d1b18; --book-1: #2c5aa0; --book-2: #6c8f5a; --book-3: #b98a3e;
  --cheese: #f2cf6b; --crust: #cf9455; --pepperoni: #b8392b; --olive: #2b2a26;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --fast: 140ms; --mid: 260ms;
  --gutter: 16px; --top-h: 52px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12241d; --paper-2: #183027; --dot: #24423a; --rule: #2f5146; --ink: #f0ead8; --ink-2: #b4c2b2; --on-ink: #12241d;
    --tape-red: #b8231a; --chalk: #cfe0f5; --pencil: #ff8370; --good: #8fd6a4; --screen: #05080a;
    --skin: #c48a62; --skin-2: #a5704b; --hair: #1a1410; --cloth: #7d9fd3; --cloth-2: #5a5f6b; --shoe: #6b4b36;
    --plastic: #e9e4d6; --office: #5b6068; --wood: #a9784a; --metal: #8a9096; --monitor: #3b4248;
    --tile-a: #a9c3e3; --tile-b: #8fb0d8; --tile-ink: #0b1712; --book-1: #6f9ad6; --book-2: #8db67a; --book-3: #d4a65a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12241d; --paper-2: #183027; --dot: #24423a; --rule: #2f5146; --ink: #f0ead8; --ink-2: #b4c2b2; --on-ink: #12241d;
  --tape-red: #b8231a; --chalk: #cfe0f5; --pencil: #ff8370; --good: #8fd6a4; --screen: #05080a;
  --skin: #c48a62; --skin-2: #a5704b; --hair: #1a1410; --cloth: #7d9fd3; --cloth-2: #5a5f6b; --shoe: #6b4b36;
  --plastic: #e9e4d6; --office: #5b6068; --wood: #a9784a; --metal: #8a9096; --monitor: #3b4248;
  --tile-a: #a9c3e3; --tile-b: #8fb0d8; --tile-ink: #0b1712; --book-1: #6f9ad6; --book-2: #8db67a; --book-3: #d4a65a;
  color-scheme: dark;
}

/* The site's mouse cursor (a copy of src/styles/cursor.css; keep in step): the browser's normal cursor everywhere,
   the system hand over ordinary clickable things, and the pink hand with three little lines only over the main
   actions (data-act); laptops and desktops only. The tape keeps a grab hand while it is dragged. */
:root { --cursor: auto; --cursor-press: pointer; --cursor-act: pointer; }
@media (pointer: fine) and (not (forced-colors: active)) {
  :root { --cursor-act: url(/cursors/hand-press.svg) 12 7, pointer; }
}
html { cursor: var(--cursor); }
:where(a[href], button, summary, select, label[for], [role="button"], input:is([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"], [type="file"])) { cursor: var(--cursor-press); }
:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"], [type="file"]), textarea, [contenteditable="true"]) { cursor: text; }
html :is([data-act], a[href*="amazon.in/"], a[href*="flipkart.com/"], a[href*="wishlink.com/"], a[download], a[href*="/releases/download/"]) { cursor: var(--cursor-act); }
:where(:disabled) { cursor: var(--cursor); }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; min-width: 280px; color: var(--ink); font: 400 16px/1.55 var(--body); font-variant-numeric: tabular-nums;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px; padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px),
      linear-gradient(var(--dot) 1px, transparent 1px), linear-gradient(90deg, var(--dot) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  }
}
:root[data-theme="dark"] body {
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    linear-gradient(var(--dot) 1px, transparent 1px), linear-gradient(90deg, var(--dot) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
::selection { background: var(--tape); color: var(--tape-ink); }
input, textarea { caret-color: var(--pencil); }
html { scrollbar-color: var(--ink-2) transparent; accent-color: var(--chalk); }
a { color: inherit; text-decoration-color: var(--chalk); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pencil); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0 0 0.7em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
html:not([data-mode="full"]) .full-only { display: none !important; }
html[data-mode="full"] .simple-only { display: none !important; }

/* top: name, reading level, light/dark */
.masthead .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; font: 800 19px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; }
.theme-btn:hover { background: var(--paper-2); }
.theme-btn svg { width: 22px; height: 22px; }
.mode-switch .chip { min-height: 40px; padding-inline: 11px; font-size: 14px; }
.mode-switch { --chip-h: 40px; }
@media (max-width: 419px) {
  .masthead .wrap { gap: 6px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand svg { width: 26px; height: 26px; }
  .mode-switch .chip { padding-inline: 9px; }
  .mode-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* the station row: a ruler along its bottom edge, a red pointer under the station you are in */
.stations { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1.6px solid var(--ink); }
.stations::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 7px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px);
  background-size: 100% 4px, 100% 7px; background-repeat: no-repeat; background-position: 0 100%, 0 100%;
  opacity: 0.55;
}
.stations ol { display: flex; gap: 2px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.stations ol::-webkit-scrollbar { display: none; }
.stations li { flex: none; scroll-snap-align: start; }
.stations a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 11px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-radius: 6px; }
.stations a:hover { color: var(--ink); background: var(--paper-2); }
.stations a[aria-current="true"] { color: var(--ink); }
.stations a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 9px; transform: translateX(-50%);
  background: var(--pencil); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@media (min-width: 960px) {
  .masthead { position: sticky; top: 0; z-index: 41; background: var(--paper); border-bottom: 1.6px solid var(--ink); }
  .masthead .wrap { min-height: var(--top-h); }
  .stations .wrap { width: auto; }
  .stations { position: sticky; top: 0; z-index: 42; width: fit-content; max-width: calc(100% - 540px); margin: calc(-1 * var(--top-h) - 1.6px) auto 0; background: transparent; border: 0; }
  .stations::after { display: none; }
  .stations ol { padding: 4px 0; }
  .stations a[aria-current="true"]::after { bottom: -6px; }
  .masthead::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 7px; pointer-events: none; opacity: 0.55;
    background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px);
    background-size: 100% 4px, 100% 7px; background-repeat: no-repeat; background-position: 0 100%, 0 100%;
  }
}

/* sections and the chalk cut line between them */
main { display: block; }
.sec { position: relative; padding: 44px 0 52px; }
.sec + .sec::before {
  content: ""; position: absolute; top: 0; left: 30px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--chalk) 0 11px, transparent 11px 18px);
  opacity: 0.85;
}
.sec + .sec::after {
  content: ""; position: absolute; top: -10px; left: 0; width: 22px; height: 22px; background: var(--ink-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='5.5' cy='6.5' r='3'/%3E%3Ccircle cx='5.5' cy='17.5' r='3'/%3E%3Cpath d='M8.2 8.1 21 17M8.2 15.9 21 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='5.5' cy='6.5' r='3'/%3E%3Ccircle cx='5.5' cy='17.5' r='3'/%3E%3Cpath d='M8.2 8.1 21 17M8.2 15.9 21 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-head { max-width: 46rem; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.75rem, 6.6vw, 2.75rem); margin-bottom: 12px; }
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 60ch; margin: 0; }
.nojs { color: var(--ink-2); font-style: italic; }

/* start */
.start { padding: 26px 0 40px; display: grid; gap: 26px; }
.start h1 { font-size: clamp(2.15rem, 9.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin-bottom: 16px; max-width: 14ch; }
.start-text p { font-size: 1.125rem; max-width: 38ch; margin: 0; }
.start-choices { display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) {
  .start { grid-template-columns: 1.1fr 1fr; align-items: end; padding: 56px 0 56px; gap: 48px; }
}

/* station layout: phone = verdict, stage, controls, why, note; from 960 = stage left (sticky), the rest right */
.station { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.station > .verdict { order: 1; } .station > .stage { order: 2; } .station > .controls { order: 3; }
.station > .why { order: 4; } .station > .figures { order: 5; } .station > .note { order: 6; }
@media (min-width: 960px) {
  .station { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr); column-gap: 56px; row-gap: 20px; align-items: start; }
  .station > * { grid-column: 2; }
  .station > .stage { grid-column: 1; grid-row: 1 / span 8; position: sticky; top: calc(var(--top-h) + 24px); }
  .station > .verdict, .station > .controls, .station > .why, .station > .figures, .station > .note { order: 0; }
}
.stage { position: relative; min-width: 0; }
.stage svg:where(:not(.tape-strip)) { display: block; width: 100%; height: auto; overflow: visible; }
.controls { display: grid; gap: 22px; min-width: 0; }
.control { display: grid; gap: 8px; min-width: 0; }
.control-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.control-hint { font-size: 14px; color: var(--ink-2); margin: 0; }

/* the verdict: one big sentence; <b> gets a red pencil mark under it */
.verdict { font: 650 clamp(1.45rem, 5.6vw, 2.05rem)/1.18 var(--display); letter-spacing: -0.012em; margin: 0; text-wrap: balance; max-width: 26ch; }
.verdict b { font-weight: 800; position: relative; white-space: nowrap; }
.verdict b::after {
  content: ""; position: absolute; left: -2px; right: -3px; bottom: -0.16em; height: 0.3em; background: var(--pencil); opacity: 0.92;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C20 4.4 41 3.6 60 4.3c13 .4 26 1.4 38 .9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C20 4.4 41 3.6 60 4.3c13 .4 26 1.4 38 .9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.verdict small { display: block; margin-top: 8px; font: 500 1rem/1.45 var(--body); color: var(--ink-2); letter-spacing: 0; }

/* why lines, notes, figures */
.why { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 58ch; color: var(--ink-2); }
.why li { position: relative; padding-left: 22px; }
.why li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 13px; border-top: 2px dashed var(--chalk); }
.note { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 58ch; }
.note::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1.6px solid var(--pencil); border-radius: 50%; vertical-align: -0.02em; }
.figures { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; max-width: 34rem; }
.figures dt { color: var(--ink-2); }
.figures dd { margin: 0; font: 600 15px/1.5 var(--display); font-variant-numeric: tabular-nums; }

/* choice chips (ui/choice.js) */
.choice { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.choice-label { font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--chip-h, 44px); padding: 0 14px;
  border: 1.6px solid var(--ink); border-radius: 7px; background: transparent; color: var(--ink);
  font-weight: 600; font-size: 15px; line-height: 1.15; text-align: left;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.chip:hover { background: var(--paper-2); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.chip:disabled { opacity: 0.45; }
.chip .mark { font-size: 13px; font-weight: 600; color: var(--chalk); }
.chip[aria-checked="true"] .mark { color: var(--tape); }
.choice--seg .chips { gap: 0; flex-wrap: nowrap; }
.choice--seg .chip { border-radius: 0; margin-left: -1.6px; }
.choice--seg .chip:first-child { border-radius: 7px 0 0 7px; margin-left: 0; }
.choice--seg .chip:last-child { border-radius: 0 7px 7px 0; }
.choice--wrap-seg .chips { flex-wrap: wrap; }

/* buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1.6px solid var(--ink); border-radius: 7px; background: var(--ink); color: var(--on-ink); font-weight: 650; font-size: 15px; text-decoration: none;
  transition: transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--paper-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.linkish { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--chalk); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: var(--pencil); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 15px; }
.input, .select {
  min-height: 44px; width: 100%; padding: 0 12px; border: 1.6px solid var(--ink); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 16px;
}
.select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 13px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.input:focus-visible, .select:focus-visible { outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* the measuring tape (ui/tape.js). The tape slides under a fixed red pointer, like reading a tailor's tape. */
.tape { display: grid; gap: 6px; min-width: 0; user-select: none; -webkit-user-select: none; }
.tape-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tape-label { font-weight: 600; font-size: 15px; }
.tape-value { font: 800 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.tape-value .unit { font-size: 1rem; font-weight: 600; margin-left: 3px; color: var(--ink-2); letter-spacing: 0; }
.tape-value .aside { font: 500 14px var(--body); color: var(--ink-2); margin-left: 8px; letter-spacing: 0; }
.tape-window {
  position: relative; height: 74px; overflow: hidden; touch-action: pan-y; cursor: grab; border-radius: 3px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.tape.dragging .tape-window { cursor: grabbing; }
.tape-strip { position: absolute; top: 0; left: 0; height: 74px; will-change: transform; overflow: visible; }
.tape-strip .band { fill: var(--tape); }
.tape-strip .edge { fill: var(--tape-edge); }
.tape-strip .tick { stroke: var(--tape-ink); stroke-width: 1; shape-rendering: crispEdges; }
.tape-strip .tick5 { stroke-width: 1.3; }
.tape-strip .num { fill: var(--tape-red); font: 700 15px var(--display); font-variant-numeric: tabular-nums; text-anchor: middle; }
.tape-strip .num-sm { fill: var(--tape-ink); font: 600 12px var(--display); text-anchor: middle; opacity: 0.8; }
.tape-strip .tip { fill: var(--metal); stroke: var(--tape-ink); stroke-width: 1; }
.tape-strip .mark-line { stroke: var(--chalk); stroke-width: 1.6; stroke-dasharray: 4 3; fill: none; }
.tape-strip .mark-flag { fill: var(--chalk); }
.tape-strip .mark-text { fill: var(--chalk); font: 600 14px var(--body); }
.tape-strip .mark-bg { fill: var(--paper); }
.tape-strip .mark-range { stroke: var(--chalk); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.tape-pointer { position: absolute; top: 14px; bottom: 6px; left: 50%; width: 0; pointer-events: none; }
.tape-pointer { top: 13px; bottom: 0; }
.tape-pointer::before { content: ""; position: absolute; left: -1.25px; top: 8px; height: 21px; width: 2.5px; background: var(--tape-red); border-radius: 2px; }
.tape-pointer::after { content: ""; position: absolute; left: -7px; top: 0; width: 14px; height: 10px; background: var(--pencil); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tape-window::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: 2px; width: 12px; height: 8px; background: var(--pencil); clip-path: polygon(50% 0, 100% 100%, 0 100%); pointer-events: none; }
.tape-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tape:has(.tape-input:focus-visible) .tape-window { outline: 3px solid var(--chalk); outline-offset: 2px; }

/* drawing classes (ui/draw.js) */
.drawing { font-family: var(--body); }
.drawing .ink:not([fill]) { fill: none; }
.drawing .ink { stroke: var(--ink); stroke-width: 1.6px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.drawing .ink-thin:not([fill]) { fill: none; }
.drawing .ink-thin { stroke: var(--ink); stroke-width: 0.9px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.drawing .outline { stroke: var(--ink); stroke-width: 3.2px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drawing .chalk { fill: none; stroke: var(--chalk); stroke-width: 1.5px; stroke-dasharray: 6 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drawing .chalk-solid { fill: none; stroke: var(--chalk); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.drawing .chalk-fill { fill: var(--chalk); }
.drawing .pencil { fill: none; stroke: var(--pencil); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.drawing .pencil.dash { stroke-dasharray: 6 4; }
.drawing .pencil-fill { fill: var(--pencil); }
.drawing .fill-paper { fill: var(--paper); } .drawing .fill-paper2 { fill: var(--paper-2); }
.drawing .fill-screen { fill: var(--screen); } .drawing .fill-ink { fill: var(--ink); }
.drawing .t { fill: var(--ink); font-family: var(--body); font-weight: 600; }
.drawing .t-num { fill: var(--ink); font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.drawing .t-chalk { fill: var(--chalk); } .drawing .t-pencil { fill: var(--pencil); } .drawing .t-ink2 { fill: var(--ink-2); }
.drawing .knock { stroke: var(--paper); stroke-linejoin: round; paint-order: stroke; }
.drawing .eye { fill: var(--ink); }

/* the slim tag pinned to the bottom: the monitor being tried; it jumps to the slip */
.tag {
  position: fixed; z-index: 45; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 10px; min-height: 46px; max-width: calc(100vw - 24px); padding: 0 14px 0 30px;
  color: var(--slip-ink); text-decoration: none; font: 700 15px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.18)) drop-shadow(0 4px 8px rgb(0 0 0 / 0.12));
}
.tag::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--slip); border: 1.6px solid var(--slip-ink);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
}
.tag::after { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.6px solid var(--slip-ink); background: var(--paper); }
.tag .tag-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tag .tag-go { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; border-left: 1.6px dashed var(--slip-rule); font: 600 14px var(--body); color: var(--slip-ink-2); }
.tag .tag-go svg { width: 16px; height: 16px; }
.tag[data-hide="true"] { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.tag:focus-visible { outline-offset: 4px; }
.tag-edge { position: absolute; inset: 0; z-index: -2; }

/* footer */
.foot { padding: 28px 0 40px; border-top: 1.6px solid var(--ink); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot p { margin: 0; color: var(--ink-2); font-size: 14px; flex-basis: 100%; }

/* sources */
.sources-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 62rem; }
.sources-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.sources-list .what { font-weight: 600; }
.sources-list .from { color: var(--ink-2); font-size: 15px; }
.sources-list a { overflow-wrap: anywhere; }
.thumbs { margin-top: 26px; max-width: 62rem; }
.thumbs h3 { font-size: 1.25rem; margin-bottom: 8px; }
.thumbs ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-2); }
.thumbs li { position: relative; padding-left: 22px; }
.thumbs li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 13px; border-top: 2px dashed var(--chalk); }

/* motion off when asked */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
