/* Picky? "Editorial" look: a magazine that happens to be an app. Same screens, same DOM, same scripts as the Poster;
   everything here is scoped to html[data-look="editorial"] (set before first paint by look.js, switched by the footer
   toggle in app.js), so the Poster (theme.css + act1.css + act2.css) is untouched when this look is off.
   Reference: research/jev-typesafe/notes/ux/flows/editorial-brief.md and the dir-editorial screens of the design probe.
   Rules of the look: white paper, ONE black screen (the test, where the photo is the hero); very large, tight grotesque
   headlines (Helvetica Neue / Inter fallbacks, 700-800, -0.04em; no condensed face); serif italic for pulled quotes only;
   radius 0 everywhere; hairline rules (#DCDCDC); black slab buttons, label flush left, arrow flush right; red #E63312
   means exactly one thing: a rule got broken (CAUGHT, broken-rule tags, the proof underline and stamp on the share card);
   faces are square tiles, hearts small black squares, pills small bordered tags. Reduce, never add: no element exists
   only for this look; the few pseudo-elements draw hairlines, arrows, crop marks and quote marks.
   CSP: style-src 'self', no fonts (system faces only), no url(). The share canvas mirrors these values in live2.js
   CARD_LOOKS.editorial (test/look.test.mjs checks both). */

/* ---------- tokens ---------- */
html[data-look="editorial"] {
  --e-paper: #FFFFFF;
  --e-ink: #0A0A0A;
  --e-grey: #6E6E6E;
  --e-hair: #DCDCDC;
  --e-red: #E63312;          /* a rule got broken. Nothing else is ever red. */
  --e-dark-hair: #2E2E2E;    /* hairlines on the black test screen */
  --e-dark-soft: #9B9B9B;    /* small print on the black test screen */
  --e-tone: #C6BFB3;         /* a portrait tile with no portrait */
  --e-edge: #BDBDBD;         /* the edge of the print proof */
  --e-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --display: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --text: "Helvetica Neue", Helvetica, Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hero-xl: clamp(150px, 62vw, 240px);  /* cover numerals */
  --hero-l: clamp(64px, 28vw, 106px);    /* the landing question */
  --hero-m: clamp(40px, 13vw, 52px);     /* story headlines, the test title */
  --hero-s: 32px;                        /* friend dare, zero moment, sheet titles */

  --m: 20px;                 /* 20px margins on 4px steps */
  --line: 1.5px;
  --r-block: 0; --r-box: 0; --r-pill: 0;
  --h-btn: 54px;
  --dur-slap: 140ms;         /* the stamp lands in one hard scale, no bounce */
  --ease-slap: cubic-bezier(.2, 0, 0, 1);
}

/* White paper for every act; the test is the one black screen. */
html[data-look="editorial"] [data-act="landing"], html[data-look="editorial"] [data-act="rules"], html[data-look="editorial"] [data-act="friend"],
html[data-look="editorial"] [data-act="reveal"], html[data-look="editorial"] [data-act="flip"], html[data-look="editorial"] [data-act="share"] {
  --field: var(--e-paper); --on: var(--e-ink); --accent: var(--e-ink); --accent-on: var(--e-paper);
  --paper: var(--e-paper); --paper-on: var(--e-ink); --hot: var(--e-red); --hot-on: var(--e-paper); --match: var(--e-ink);
  --tag-bg: var(--e-paper); --tag-on: var(--e-red); --disc-bg: var(--e-tone); --disc-fg: var(--e-paper);
}
html[data-look="editorial"] [data-act="test"] {
  --field: var(--e-ink); --on: var(--e-paper); --accent: var(--e-paper); --accent-on: var(--e-ink);
  --paper: var(--e-paper); --paper-on: var(--e-ink); --hot: var(--e-red); --hot-on: var(--e-paper); --match: var(--e-paper);
  --tag-bg: var(--e-ink); --tag-on: var(--e-paper); --disc-bg: #262626; --disc-fg: #5E5E5E;
}

/* ---------- base and type ---------- */
html[data-look="editorial"] body { font-weight: 400; }
html[data-look="editorial"] :focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
html[data-look="editorial"] .screen { padding-top: calc(10px + env(safe-area-inset-top)); }
html[data-look="editorial"] .micro { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .09em; }
html[data-look="editorial"] .text { font-weight: 400; letter-spacing: -.01em; }
html[data-look="editorial"] .lede { max-width: none; font-size: 20px; line-height: 24px; font-weight: 500; letter-spacing: -.015em; }
html[data-look="editorial"] .strong { font-weight: 700; }
html[data-look="editorial"] .fine { font-size: 11px; line-height: 14px; font-weight: 400; color: var(--e-grey); opacity: 1; }
html[data-look="editorial"] [data-act="test"] .fine { color: var(--e-dark-soft); }
html[data-look="editorial"] .soft { opacity: 1; color: var(--e-grey); }
html[data-look="editorial"] .link { font-weight: 600; text-decoration-thickness: 1.5px; }

/* Headlines: a tight grotesque, sentence case, 800. */
html[data-look="editorial"] .hero { font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: -.04em; text-transform: none; margin-left: -2px; }
html[data-look="editorial"] .hero-xl { line-height: .78; letter-spacing: -.035em; }
html[data-look="editorial"] .hero-l { line-height: .9; letter-spacing: -.05em; }
html[data-look="editorial"] .hero-m { line-height: .96; }
html[data-look="editorial"] .hero-s { line-height: 1.04; letter-spacing: -.035em; }
html[data-look="editorial"] :lang(ru) .hero-s.wrap { line-height: 1.08; }
html[data-look="editorial"] .hero em, html[data-look="editorial"] .hero .hi { color: inherit; }

/* The cover numeral: the number, then its label on one line, then a hairline axis. */
html[data-look="editorial"] .lockup { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--on); }
html[data-look="editorial"] .lockup .hero { margin-left: -.05em; }
html[data-look="editorial"] .lockup .cap { max-width: none; padding: 0; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.025em; }
html[data-look="editorial"] .lockup .cap br { display: none; }   /* "of 150 still in" on one line (the copy keeps a space before each <br>) */
html[data-look="editorial"] #count.n3 { font-size: clamp(120px, 48vw, 196px); }
html[data-look="editorial"] #reveal .lockup .cap { max-width: none; }

/* Mastheads: the step label (or the brand bar) sits on a black hairline. */
html[data-look="editorial"] .topbar { min-height: 44px; align-items: flex-end; padding-bottom: 9px; border-bottom: 1px solid var(--on); }
html[data-look="editorial"] .screen > .micro:first-child, html[data-look="editorial"] .test-intro > .micro:first-child {
  display: flex; align-items: flex-end; min-height: 34px; padding-bottom: 9px; border-bottom: 1px solid var(--on);
}
html[data-look="editorial"] .wordmark { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: .12em; }
html[data-look="editorial"] .wordmark-q { margin-left: 0; padding: 0; border-radius: 0; background: none; color: inherit; rotate: 0deg; }

/* ---------- buttons: black slabs, label flush left, arrow flush right ---------- */
html[data-look="editorial"] .btn {
  justify-content: space-between; gap: 12px; padding: 0 18px; border-radius: 0; border-width: 1.5px;
  font-size: 17px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; text-align: left; white-space: normal;
}
html[data-look="editorial"] .btn-primary::after, html[data-look="editorial"] .btn-ghost::after { content: "→"; flex: none; font-size: 19px; font-weight: 400; }
html[data-look="editorial"] .btn:disabled, html[data-look="editorial"] .btn[aria-disabled="true"] { opacity: 1; background: var(--e-hair); border-color: var(--e-hair); color: var(--e-grey); }
html[data-look="editorial"] .btn:not(:disabled):active { translate: none; opacity: .85; }
html[data-look="editorial"] .btn-row { gap: 8px; }
html[data-look="editorial"] .btn-row > .btn { justify-content: space-between; padding: 0 16px; text-align: left; }
html[data-look="editorial"] .pools, html[data-look="editorial"] #reveal .story-actions { grid-template-columns: 1fr; gap: 2px; }
/* On the black test screen: "Nope" outlined with a cross, "I'd date" a white slab with the arrow. */
html[data-look="editorial"] [data-act="test"] .btn-ghost::after { content: "×"; font-size: 24px; font-weight: 300; line-height: 1; }
html[data-look="editorial"] .test-page .btn-row > .btn { gap: 8px; padding: 0 14px; font-size: 16px; }
html[data-look="editorial"] .zero-fixes .btn::after { content: none; }
html[data-look="editorial"] .zero-fixes .btn { justify-content: flex-start; }

/* ---------- chips (one-tap answers) and pills (rules): small square tags ---------- */
html[data-look="editorial"] .chip { height: 44px; padding: 0 13px; border-radius: 0; border-width: 1.5px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
html[data-look="editorial"] .chip.on, html[data-look="editorial"] .chip[aria-pressed="true"] { background: var(--on); color: var(--field); }
html[data-look="editorial"] .chip .after { font-weight: 400; color: var(--e-grey); }
html[data-look="editorial"] .chip.on .after, html[data-look="editorial"] .chip[aria-pressed="true"] .after { color: inherit; }
html[data-look="editorial"] .chip.dashed { border-style: solid; font-weight: 600; }
html[data-look="editorial"] .ask-opts .chip { height: 32px; font-size: 13px; letter-spacing: 0; }

html[data-look="editorial"] .pill {
  height: 28px; padding: 0 8px; gap: 5px; border-radius: 0; border: 1px solid var(--on); background: transparent; color: var(--on);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-transform: none;
}
html[data-look="editorial"] .pill-hard { background: transparent; color: var(--on); border: 1.5px solid var(--on); font-weight: 700; }
html[data-look="editorial"] .pill-soft { background: transparent; color: var(--on); }
html[data-look="editorial"] .pill-live { border-style: dashed; }
html[data-look="editorial"] .pill-out { background: transparent; color: var(--on); border-color: var(--on); }
html[data-look="editorial"] .pill-hot { background: transparent; color: var(--e-red); border-color: var(--e-red); }
html[data-look="editorial"] .pill.two-line { height: auto; min-height: 28px; padding: 4px 8px; border-radius: 0; }
html[data-look="editorial"] #rule-pills > .pill-ask { border-radius: 0; }
html[data-look="editorial"] .pill .cost { font-weight: 700; color: var(--e-grey); }
html[data-look="editorial"] .pill .pill-x { font-weight: 400; color: var(--e-grey); }
html[data-look="editorial"] .pill .typed { opacity: 1; color: var(--e-grey); font-weight: 400; }
html[data-look="editorial"] #reveal .pill-trait { background: transparent; color: var(--on); }
html[data-look="editorial"] .cat-n { border-radius: 0; }

/* Nothing is slapped on by hand here: no tilts. */
html[data-look="editorial"] .tilt-l, html[data-look="editorial"] .tilt-r, html[data-look="editorial"] .tilt-l2, html[data-look="editorial"] .tilt-r2,
html[data-look="editorial"] .tilted > *, html[data-look="editorial"] .host .sticker { rotate: 0deg; }

/* ---------- stickers become kickers; the act-two question becomes a headline ---------- */
html[data-look="editorial"] .sticker {
  height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--on); rotate: 0deg;
  font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
html[data-look="editorial"] #flip-title { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; text-transform: none; white-space: normal; }
html[data-look="editorial"] .photo .ai-tag, html[data-look="editorial"] .receipt-sheet .ai-tag {
  left: 0; top: 0; height: auto; padding: 5px 7px 4px; border: 0; background: var(--e-paper); color: var(--e-ink);
  font-size: 10px; line-height: 12px; letter-spacing: .09em; rotate: 0deg;
}

/* ---------- stamps: a square double outline; red only where a rule got broken ---------- */
html[data-look="editorial"] .stamp {
  height: auto; min-height: 26px; padding: 7px 9px 6px; border-radius: 0; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: -5px;
  background: var(--e-paper); color: var(--e-red); font-family: var(--display); font-size: 11px; line-height: 13px; font-weight: 800; letter-spacing: .09em;
  rotate: -6deg;
}
html[data-look="editorial"] .demo-cap .stamp { rotate: -6deg; }
html[data-look="editorial"] .zero-stamp, html[data-look="editorial"] #flip-ten { color: var(--on); rotate: -4deg; }
html[data-look="editorial"] .zero-stamp { height: auto; font-size: 11px; }
html[data-look="editorial"] .receipt-sheet .photo .stamp.caught { height: auto; padding: 10px 12px 8px; background: var(--e-paper); color: var(--e-red); border-color: var(--e-red); font-size: 16px; line-height: 18px; }
/* The verdict: the round lime sticker becomes a square print stamp (as on the share card). Black, and red only when a
   liked face broke a rule (.broke, set by act2.js from live2.js brokeRule): a clean REALIST or a UNICORN HUNTER is not red. */
html[data-look="editorial"] .stamp-round {
  width: auto; height: auto; padding: 12px 16px 10px; border-radius: 0; border: 3px solid var(--e-ink); background: var(--e-paper); color: var(--e-ink);
  font-family: var(--display); font-size: 20px; line-height: 1.04; font-weight: 800; letter-spacing: .05em; rotate: -5deg; mix-blend-mode: multiply;
}
html[data-look="editorial"] .stamp-round::before { inset: 2px; border-radius: 0; border: 1.5px solid currentColor; }
html[data-look="editorial"] .stamp-round.broke { border-color: var(--e-red); color: var(--e-red); }
html[data-look="editorial"] .stamp-round.big { width: auto; height: auto; max-width: calc(100% - 16px); padding: 20px 22px 18px; font-size: 34px; line-height: 1.02; }

/* ---------- faces: square tiles; a heart is a small black square; a broken rule is a red rule under the tile ---------- */
html[data-look="editorial"] .face, html[data-look="editorial"] .face > .thumb, html[data-look="editorial"] .more-n { border-radius: 0; }
html[data-look="editorial"] .face.disc::before, html[data-look="editorial"] .face.disc::after { content: none; }
html[data-look="editorial"] .face.ring, html[data-look="editorial"] .face.liked, html[data-look="editorial"] .face.match { outline: 0; }
html[data-look="editorial"] .face.match::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; background: var(--on); }
html[data-look="editorial"] .face.placeholder { border: 1px dashed var(--on); opacity: .3; }
html[data-look="editorial"] .more-n { border: 1px solid var(--on); font-weight: 700; }
html[data-look="editorial"] .face .badge {
  right: 0; top: 0; width: 20px; height: 20px; border: 0; border-radius: 0; background: var(--e-ink); color: var(--e-paper);
  font-size: 11px; rotate: 0deg; font-variant-emoji: text;
}
html[data-look="editorial"] .face .badge.match { background: var(--e-ink); color: var(--e-paper); }
html[data-look="editorial"] .face .tag { border: 0; border-radius: 0; rotate: 0deg; background: var(--e-paper); color: var(--e-red); }

/* ---------- the photo ---------- */
html[data-look="editorial"] .photo { border-radius: 0; }
html[data-look="editorial"] .photo > img { object-position: 50% 24%; }

/* ---------- the rules box: one underlined line ---------- */
/* The enter key is pinned to the right end of the last line (the input's line, the input is always last), so it never
   wraps alone under a pill that left room for the input but not for the key; the right padding keeps that room. */
html[data-look="editorial"] .rulebox { position: relative; min-height: 48px; padding: 8px 40px 10px 0; border: 0; border-bottom: 2px solid var(--on); border-radius: 0; background: transparent; color: var(--on); }
html[data-look="editorial"] .rulebox:focus-within { outline: 0; border-bottom-width: 3px; padding-bottom: 9px; }
html[data-look="editorial"] .rulebox-input { font-weight: 400; color: var(--on); }
html[data-look="editorial"] .rulebox-input:focus-visible { outline: 0; }   /* the box shows focus (the thicker rule), as in the poster */
html[data-look="editorial"] .rulebox-input::placeholder { color: var(--on); opacity: .4; }
html[data-look="editorial"] .rulebox-enter { position: absolute; right: 0; bottom: 10px; width: 32px; height: 32px; border-radius: 0; background: var(--on); color: var(--field); font-weight: 400; }
html[data-look="editorial"] .rulebox:focus-within .rulebox-enter { bottom: 9px; }

/* ---------- quotes: serif italic, the pulled quote only ---------- */
html[data-look="editorial"] .quote {
  position: relative; padding-left: 0; border-left: 0; font-family: var(--e-serif); font-style: italic; font-weight: 400;
  font-size: 21px; line-height: 1.3; letter-spacing: -.005em; quotes: "“" "”";
}
html[data-look="editorial"] :lang(ru) .quote { quotes: "«" "»"; }
html[data-look="editorial"] .test-page .quote::before { content: open-quote; position: absolute; right: 100%; padding-right: 2px; }
html[data-look="editorial"] .test-page .quote::after { content: close-quote; }
html[data-look="editorial"] .receipt-sheet .quote { font-size: 18px; }
html[data-look="editorial"] mark, html[data-look="editorial"] .proof { border-radius: 0; }

/* ---------- act-two rows: a hairline table ---------- */
html[data-look="editorial"] .rows { border-top: 1px solid var(--on); border-bottom: 0; }
html[data-look="editorial"] .row { min-height: 44px; border-top: 0; border-bottom: 1px solid var(--e-hair); font-size: 15px; font-weight: 400; }
html[data-look="editorial"] .seg { gap: 4px; }
html[data-look="editorial"] .seg-btn { height: 28px; padding: 0 9px; border-radius: 0; border-width: 1px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
html[data-look="editorial"] .seg-btn[aria-pressed="true"] { background: var(--on); color: var(--field); }
html[data-look="editorial"] .stepper button { width: 28px; height: 28px; border-radius: 0; border-width: 1px; font-weight: 400; }
html[data-look="editorial"] #flip .stepper-age { height: 28px; border-radius: 0; border-width: 1px; }
html[data-look="editorial"] .textbox { border-radius: 0; border-width: 1px; font-weight: 400; }
html[data-look="editorial"] .textbox:focus { outline: 2px solid var(--on); outline-offset: 2px; }

/* ---------- the reveal: progress as hairline segments, the 12 faces as a legend ---------- */
html[data-look="editorial"] .dots { gap: 4px; height: 3px; }
html[data-look="editorial"] .dot { flex: 1; width: auto; height: 3px; border-radius: 0; background: var(--e-hair); opacity: 1; }
html[data-look="editorial"] .dot.done, html[data-look="editorial"] .dot.now { width: auto; background: var(--on); }
html[data-look="editorial"] #reveal .story-hint { padding-top: 14px; border-top: 1px solid var(--on); color: var(--e-grey); opacity: 1; text-align: left; }
html[data-look="editorial"] #reveal .face.liked { outline: 0; }
html[data-look="editorial"] .rule-top { padding-top: 12px; border-top: 1px solid var(--on); }
html[data-look="editorial"] .rule-y { border-top: 1px solid var(--on); border-bottom: 1px solid var(--e-hair); }
/* "You said yes to" small, "5 of 12." cover-sized underneath */
html[data-look="editorial"] #reveal [data-card="said"] .hero { font-size: 34px; line-height: 1.05; letter-spacing: -.035em; }
html[data-look="editorial"] #reveal [data-card="said"] .hero em { display: block; margin: 4px 0 0 -.04em; font-size: min(104px, 24vw); line-height: .84; letter-spacing: -.05em; }
/* "3 of them break your rules." gets the red key, but only when a liked face in the grid really broke one */
html[data-look="editorial"] #reveal [data-card="said"]:has(.said-grid .tag) > .text::before {
  content: ""; display: inline-block; width: 22px; height: 4px; margin: 0 10px 3px 0; vertical-align: middle; background: var(--e-red);
}
html[data-look="editorial"] #reveal .said-grid { grid-template-columns: repeat(4, 1fr); column-gap: 8px; row-gap: 34px; margin-bottom: 14px; }
html[data-look="editorial"] #reveal .said-grid .face { width: 100%; height: auto; aspect-ratio: 4 / 5; }
html[data-look="editorial"] #reveal .said-grid .face:has(> .tag)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 4px; background: var(--e-red); }
html[data-look="editorial"] #reveal .said-grid .face .tag {
  display: block; left: 0; right: auto; top: calc(100% + 12px); bottom: auto; translate: none; rotate: 0deg;
  height: auto; max-width: 100%; padding: 0; overflow: hidden; text-overflow: ellipsis; background: none;
  font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: -.005em;
}
html[data-look="editorial"] #reveal .verdict-slot { justify-content: flex-start; padding: 16px 0 8px 4px; }

/* ---------- the landing: the cover (question, dek, demo, two slabs, fine print) on one 812px screen ---------- */
html[data-look="editorial"] #landing { gap: 12px; }
html[data-look="editorial"] #landing .hero-l { line-height: .88; }
html[data-look="editorial"] #landing .lede { margin-top: 0; }
html[data-look="editorial"] #landing .demo { padding: 12px 0; border-top: 1px solid var(--on); border-bottom: 1px solid var(--e-hair); }
html[data-look="editorial"] .demo-ticket { height: 30px; padding: 0 9px; border-width: 1.5px; border-radius: 0; rotate: 0deg; font-size: 13px; font-weight: 700; letter-spacing: -.01em; text-transform: none; }
html[data-look="editorial"] .demo-ticket::before { content: none; }
html[data-look="editorial"] .demo-count { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
html[data-look="editorial"] .demo-grid .face .badge { right: 0; top: 0; width: 13px; height: 13px; font-size: 8px; }
html[data-look="editorial"] .demo:is([data-step="3"], [data-step="4"]) .face[data-hearted] { outline: 1.5px solid var(--e-ink); outline-offset: 1px; }
html[data-look="editorial"] .demo:is([data-step="3"], [data-step="4"]) .face[data-hearted] .tag {
  height: 16px; padding: 0 4px; border: 1px solid var(--e-red); background: var(--e-paper); color: var(--e-red); font-size: 9px; letter-spacing: .02em;
}

/* ---------- the rules screen: receipt, host, catalogue, zero moment ---------- */
html[data-look="editorial"] .host-q { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -.025em; }
html[data-look="editorial"] .zero .hero { letter-spacing: -.035em; }
html[data-look="editorial"] .who-out { border: 1px dashed var(--e-ink); border-radius: 0; }

/* ---------- the test (the black screen): the photo is the cover, full bleed ---------- */
html[data-look="editorial"] .test-photo { width: calc(100% + 2 * var(--m)); max-width: none; margin: 0 calc(-1 * var(--m)); max-height: 52dvh; }
html[data-look="editorial"] .test-photo.slap { animation: e-fade 180ms ease-out both; }
html[data-look="editorial"] .test-name { margin-top: calc(-1 * var(--m) + 14px); color: var(--on); font-size: 38px; line-height: 1; }
html[data-look="editorial"] .test-page .text.soft { padding-bottom: 13px; border-bottom: 1px solid var(--e-dark-hair); color: var(--e-dark-soft); font-size: 13px; line-height: 16px; }
html[data-look="editorial"] .test-top { margin-bottom: calc(-1 * var(--m) + 8px); }
html[data-look="editorial"] .test-progress { gap: 3px; }
html[data-look="editorial"] .test-progress i { height: 2px; border-radius: 0; background: #343434; opacity: 1; }
html[data-look="editorial"] .test-progress i.done, html[data-look="editorial"] .test-progress i.now { background: var(--e-paper); }
html[data-look="editorial"] .test-facts { gap: 8px 14px; }
html[data-look="editorial"] .test-facts .pill-out {
  height: auto; padding: 0; border: 0; background: none; color: #D6D6D6; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: #5E5E5E; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
html[data-look="editorial"] .test-card { gap: 20px; padding: 0; border-radius: 0; background: none; color: var(--on); rotate: 0deg; }
html[data-look="editorial"] .test-stats { gap: 0; border-top: 1px solid var(--e-dark-hair); border-bottom: 1px solid var(--e-dark-hair); }
html[data-look="editorial"] .test-stat { padding: 14px 0; border: 0; border-radius: 0; }
html[data-look="editorial"] .test-stat + .test-stat { padding-left: 16px; border-left: 1px solid var(--e-dark-hair); }
html[data-look="editorial"] .test-stat:first-child { background: none; color: var(--on); }
html[data-look="editorial"] .test-stat .hero { font-size: 56px; }

/* ---------- act two ---------- */
html[data-look="editorial"] #flip-ten { top: -6px; }
html[data-look="editorial"] #flip .face.match { outline: 0; border: 0; }
html[data-look="editorial"] #flip .face.match > .thumb { border-radius: 0; }
html[data-look="editorial"] #flip #best-fix { padding: 2px 0 2px 12px; border: 0; border-left: 3px solid var(--on); border-radius: 0; background: none; color: var(--on); rotate: 0deg; font-weight: 700; }
html[data-look="editorial"] #flip .rb-yes { background: transparent; }

/* ---------- the share screen: the card is a print proof (drawn on the canvas, crop marks included) ---------- */
html[data-look="editorial"] .share-card { border-radius: 0; background: var(--e-paper); color: var(--e-ink); }
html[data-look="editorial"] #share-card { max-width: 100%; background: none; }
html[data-look="editorial"] .share-text { border-radius: 0; border: 1px solid var(--e-hair); }
html[data-look="editorial"] #share .h2h-table { border-bottom: 1px solid var(--e-hair); }
html[data-look="editorial"] #share .h2h-row { border-top: 1px solid var(--e-hair); }
html[data-look="editorial"] #share .h2h-head { border-top: 0; }

/* The friend's card: the same print proof in the DOM, crop marks as CSS hairlines around a 1px edge, the red stamp. */
html[data-look="editorial"] #friend-card.friend-card {
  gap: 10px; margin: 12px 12px 8px; padding: 22px 20px 20px; border: 1px solid var(--e-edge); background: var(--e-paper); color: var(--e-ink); rotate: 0deg;
}
html[data-look="editorial"] #friend-card.friend-card::before {
  content: ""; position: absolute; inset: -13px; pointer-events: none;
  background:
    linear-gradient(var(--e-ink), var(--e-ink)) left 0 top 12px / 7px 1px no-repeat,
    linear-gradient(var(--e-ink), var(--e-ink)) left 12px top 0 / 1px 7px no-repeat,
    linear-gradient(var(--e-ink), var(--e-ink)) right 0 top 12px / 7px 1px no-repeat,
    linear-gradient(var(--e-ink), var(--e-ink)) right 12px top 0 / 1px 7px no-repeat,
    linear-gradient(var(--e-ink), var(--e-ink)) left 0 bottom 12px / 7px 1px no-repeat,
    linear-gradient(var(--e-ink), var(--e-ink)) left 12px bottom 0 / 1px 7px no-repeat,
    linear-gradient(var(--e-ink), var(--e-ink)) right 0 bottom 12px / 7px 1px no-repeat,
    linear-gradient(var(--e-ink), var(--e-ink)) right 12px bottom 0 / 1px 7px no-repeat;
}
html[data-look="editorial"] #friend-card .friend-leave { max-width: none; }
html[data-look="editorial"] #friend-card .friend-stamp {
  position: relative; top: auto; right: auto; bottom: auto; align-self: flex-start; width: auto; height: auto;
  margin: 10px 0 0 4px; padding: 10px 14px 8px; font-size: 18px; line-height: 1.04;
}

/* ---------- chrome: sheet, toast, language and look switches, dock, install card ---------- */
html[data-look="editorial"] .sheet { --on: var(--e-ink); --field: var(--e-paper); border-top: 1px solid var(--e-ink); border-radius: 0; background: var(--e-paper); color: var(--e-ink); }
html[data-look="editorial"] .sheet::backdrop { background: rgba(10, 10, 10, .55); }
html[data-look="editorial"] .sheet-x { border-radius: 0; border-width: 1px; font-weight: 400; }
html[data-look="editorial"] .sheet .hero-s { font-size: 30px; }
html[data-look="editorial"] .toast { border-radius: 0; border: 1px solid var(--e-paper); background: var(--e-ink); color: var(--e-paper); font-weight: 600; }
html[data-look="editorial"] .lang-btn { height: 28px; min-width: 36px; border-width: 1px; font-size: 11px; font-weight: 700; }
html[data-look="editorial"] .lang-btn:first-child, html[data-look="editorial"] .lang-btn:last-child { border-radius: 0; }
html[data-look="editorial"] .lang-btn:last-child { margin-left: -1px; }
html[data-look="editorial"] .look-btn[aria-pressed="true"] { text-decoration-thickness: 1.5px; }
html[data-look="editorial"] .install-card { border-radius: 0; border-width: 1px; }
html[data-look="editorial"] .install-card img { border-radius: 0; }
html[data-look="editorial"] .install-go { border-radius: 0; background: var(--e-ink); color: var(--e-paper); }

/* Page turns: a 180ms fade instead of the poster's slap. */
@keyframes e-fade { from { opacity: 0; } to { opacity: 1; } }
