/* ===========================================================================
   BulkUnfollow: brand B, "Show the result"
   ---------------------------------------------------------------------------
   The contract is docs/BRAND.md (tokens, rules, copy, platform constraints);
   the approved look is docs/brand/option-b-mockup.html. This sheet follows it:

     1. SOFT AND ROUNDED. Cards use --r / --r-lg with --sh-1 and a --line
        border; raised things (the drop panel, product mocks) use --sh-2.
     2. BANDS, NOT RULES. The landing alternates full-width white / cream /
        lavender / blush bands (.band + a colour class). Bands are drawn by a
        100vw pseudo-element because the page sits in a centred .wrap.
     3. BUTTONS. Primary = --grad-btn pill (.btn.grad; --grad is decorative only, white text needs --grad-btn). Dark = --ink pill
        (.btn.dark). Secondary = white pill with a 1.5px ink border and a hard
        --sh-sticker shadow that presses down 2px. Every control has a
        :focus-visible ring (2px --pink, 2px offset).
     4. STICKERS (.sticker): small tilted pills with a hard offset shadow, used
        sparingly: a few in the hero, one per pricing card, numbered steps.
     5. ANTON IS FOR HEADLINES ONLY (h1, section h2). Everything else is Inter.
        The yellow highlighter sits behind the hero headline's second line.
     6. MOTION is gentle (2px hover lift, sticker wobble) and off under
        prefers-reduced-motion.

   Sections of this file: tokens, reset, shell, type, controls, topbar, the
   landing (#screen-upload: hero, founder, how, safety, extension, pricing,
   FAQ, closing, footer), the homepage explainer frame (.xp-*), then the app
   screens (working, board, handoff, dialogs), which are restyled separately.
   Old token names (--grid, --amber, --magenta, --ig, --b, --b-loud...) are kept
   as aliases so those screens keep working until they are restyled.

   CSP: the page forbids inline style attributes and <style> blocks, so every
   value lives here; JS only toggles classes or sets CSSOM properties.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------------- */
:root {
  color-scheme: light;               /* light only, on purpose: see CLAUDE.md */

  --bg: #ffffff;                     /* page */
  --cream: #FFF8EC;                  /* bands */
  --blush: #FFF0F4;
  --lavender: #F4EFFD;
  --ink: #14110f;                    /* text, dark buttons */
  --ink-2: #4c4752;                  /* secondary text */
  --ink-3: #6b6672;                  /* captions (AA on white and the bands) */
  --line: #ece6ee;                   /* hairlines, card borders */
  --yellow: #FFC93C;                 /* highlighter, sticker fill */
  --orange: #F58529;
  --pink: #DD2A7B;                   /* fills, rings, stickers */
  --pink-text: #C21E6B;              /* pink TEXT and links (AA) */
  --purple: #8134AF;
  --grad: linear-gradient(100deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);   /* decorative: rings, bars, art */
  --grad-btn: linear-gradient(100deg, #C9480E 0%, #C4206F 50%, #8134AF 100%);   /* any fill with white text (AA) */
  --wash: #FCE9F1;                   /* row hover */

  /* The traffic light: score and recency ONLY. */
  --ok: #3fbf7f;
  --mid: #f0912b;
  --bad: #ed4956;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(20, 17, 15, .06), 0 6px 18px rgba(20, 17, 15, .06);
  --sh-2: 0 14px 40px rgba(20, 17, 15, .12);
  --sh-sticker: 0 3px 0 #14110f;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Aliases for the app screens that still use the old names. */
  --grid: var(--line);
  --hair: var(--line);
  --amber: var(--yellow);
  --magenta: var(--pink);
  --ig: var(--grad);
  --b-loud: 2px solid var(--ink);
  --b: 1px solid var(--ink);
  --b-prov: 1px dashed var(--ink);
  --b-hair: 1px solid var(--line);

  --e: cubic-bezier(.22, 1, .36, 1);
  --t: .15s;

  --wrap: 960px;
}


/* ---------------------------------------------------------------------------
   Brand B tokens used by the app screens (working, board, handoff, dialogs).
   Values from docs/BRAND.md. Kept in their own block so they merge cleanly with
   the token block above; identical values are harmless if declared twice.
   --------------------------------------------------------------------------- */
:root {
  --cream: #FFF8EC;
  --blush: #FFF0F4;
  --lavender: #F4EFFD;
  --line: #ece6ee;
  --yellow: #FFC93C;
  --orange: #F58529;
  --purple: #8134AF;
  --grad: linear-gradient(100deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  --grad-btn: linear-gradient(100deg, #C9480E 0%, #C4206F 50%, #8134AF 100%);
  --pink-text: #C21E6B;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(20,17,15,.06), 0 6px 18px rgba(20,17,15,.06);
  --sh-2: 0 14px 40px rgba(20,17,15,.12);
  --sh-sticker: 0 3px 0 #14110f;
  /* board column tints: soft green (Keep), lavender (Unsure), blush (Unfollow) */
  --col-keep: #F1FAF5;   --pill-keep: #D3F0E0;
  --col-unsure: #F8F5FE; --pill-unsure: #E4D9FA;
  --col-unfollow: #FFF6F8; --pill-unfollow: #FFD9E4;
}

/* ---------------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* The screen router toggles `hidden` on elements that also set a `display`,
   which would otherwise win. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
/* Smooth in-page links on the front door only (the other screens call
   scrollTo(0, 0) on every route and must not animate it). */
html:has(body[data-screen="upload"]) { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  font-variant-numeric: tabular-nums;   /* every numeral in the app lines up */
  -webkit-font-smoothing: antialiased;
  /* The bands are 100vw wide pseudo-elements; clip, never scroll sideways. */
  overflow-x: clip;
}

::selection { background: var(--yellow); color: var(--ink); }

/* Keyboard users get a visible ring on every control. */
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

img, svg { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
   Shell
   --------------------------------------------------------------------------- */
/* The feedback strip: the page's one standing invitation to talk to us. */
.feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 8px clamp(16px, 4vw, 32px);
  background: var(--blush);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.4;
}
body[data-screen="board"] .feedback { display: none; }
.feedback-text { margin: 0; }
.feedback-text strong { font-weight: 700; }
.feedback-btn {
  position: relative;
  flex: none;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t) var(--e);
}
.feedback-btn::after { content: ""; position: absolute; inset: -8px -4px; }
.feedback-btn:hover { transform: translateY(-1px); }
@media (max-width: 600px) {
  .feedback { justify-content: flex-start; }
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6px clamp(16px, 4vw, 32px) 90px;
}
/* The front door is wider and ends on its dark footer, with no air below. */
body[data-screen="upload"] { --wrap: 1200px; }
body[data-screen="upload"] .wrap { padding-bottom: 0; }

/* The board needs the width the reading screens don't want, and none of the
   bottom air: its columns own their own scrollers. */
body[data-screen="board"] { --wrap: 1400px; }
body[data-screen="board"] .wrap { padding-bottom: 20px; }

/* Staggered entry: blocks rise in one after another, .07s apart. The landing
   is exempt (full-bleed bands must not move). */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.screen > * { animation: rise .65s var(--e) backwards; }
.screen > *:nth-child(2) { animation-delay: .07s; }
.screen > *:nth-child(3) { animation-delay: .14s; }
.screen > *:nth-child(4) { animation-delay: .21s; }
.screen > *:nth-child(5) { animation-delay: .28s; }
.screen > *:nth-child(6) { animation-delay: .35s; }
.screen > *:nth-child(7) { animation-delay: .42s; }
.screen > *:nth-child(8) { animation-delay: .49s; }
.screen > *:nth-child(9) { animation-delay: .56s; }
#screen-upload > * { animation: none; }


/* ---------------------------------------------------------------------------
   Type
   ---------------------------------------------------------------------------
   Anton for display, always uppercase, and font-weight re-declared at 400
   everywhere it appears: Anton ships one master, so any inherited 600/700
   would make a browser synthesise a smeared fake bold.

   No monospace anywhere. A handle gets its code-ness from .02em tracking and
   --ink-3, not from a second typeface.
   --------------------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); line-height: 1.02; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.08; }
h3 { font-size: 1.15rem; line-height: 1.1; }

/* The yellow highlighter behind the headline's second line: a marker stroke
   across the lower part of the glyphs, repeated per wrapped line. */
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(transparent 8%, var(--yellow) 8%, var(--yellow) 92%, transparent 92%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* The signature micro-label. */
.micro {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}
.micro b, .micro strong { color: var(--ink); font-weight: 700; }

.kicker {
  display: flex;
  align-items: flex-start;   /* the dot stays on the first line when the text wraps */
  gap: 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker .dot {
  width: 9px; height: 9px;
  flex: none;
  margin-top: .32em;
  background: var(--ink-3);
}
/* The only pulsing dot in the app: it says "this page is doing the work". */
.kicker .dot.live {
  background: var(--amber);
  outline: 1px solid var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}
/* Same dot, at rest — the work is finished, so it stops moving. */
.kicker .dot.done { background: var(--amber); outline: 1px solid var(--ink); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.72); }
}

.lede {
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 42ch;
  margin-top: 16px;
}
.lede b { color: var(--ink); font-weight: 600; }

.hand { letter-spacing: .02em; color: var(--ink-3); }

/* ---------------------------------------------------------------------------
   Controls
   --------------------------------------------------------------------------- */
/* Secondary by default: white pill, 1.5px ink border, hard sticker shadow that
   presses down 2px. .dark and .grad are the primary variants. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  padding: 9px 18px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--sh-sticker);
  cursor: pointer;
  transition: transform .12s var(--e), box-shadow .12s var(--e), background-color var(--t), color var(--t);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.dark:hover { box-shadow: 0 8px 18px -8px rgba(20, 17, 15, .5); }
.btn.grad {
  border-color: transparent;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(221, 42, 123, .6);
}
.btn.grad:hover { box-shadow: 0 12px 24px -8px rgba(221, 42, 123, .7); }
.btn.grad:active { box-shadow: 0 2px 8px -4px rgba(221, 42, 123, .6); }

/* Chips: small neutral pills (labels, groups). */
.chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  padding: 5px 12px;
  font-size: .84rem;
  font-weight: 500;
}
.chip b { color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* Stickers: tilted pills with a hard offset shadow. Rotation is a variable so
   hover can flip it. */
.sticker {
  --rot: -3deg;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--sh-sticker);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(var(--rot));
  transition: transform .18s var(--e);
}
.sticker.y { background: var(--yellow); }
.sticker:hover { transform: rotate(calc(var(--rot) * -1)) translateY(-2px); }

/* A text link that stays quiet until it is pointed at. */
.textlink {
  display: inline-block;
  color: var(--pink-text);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background-color var(--t);
}
.textlink:hover { background: var(--wash); }

/* ---------------------------------------------------------------------------
   Topbar
   --------------------------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 2;                          /* above the hero's sky picture */
  display: flex;
  align-items: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding: 12px 0 14px;
}
/* A <button> off the board and handoff screens (it goes home, session kept:
   see the markup); disabled on the upload screen, where home is where you are. */
.brand { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0; text-align: left; }
.brand:disabled { cursor: default; }
.brand .mark {
  width: 34px; height: 34px;
  flex: none;
  background: url("/assets/icon.svg") center / contain no-repeat;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.tag {
  border: 1px dashed var(--ink-3);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  padding: 3px 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}
/* In-page links and the store button belong to the front door only. */
.topnav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: .95rem;
  font-weight: 500;
}
.topnav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.nav-cta { min-height: 40px; }
.topnav a:hover { color: var(--ink); }
body:not([data-screen="upload"]) .topnav,
body:not([data-screen="upload"]) .nav-cta { display: none; }
body[data-screen="upload"] #startOver { display: none; }
/* flex:1 keeps the actions hard right whether they share the brand's line or
   wrap onto their own. */
.topbar-actions { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 10px; }
body[data-screen="upload"] .topbar-actions { flex: none; }
@media (max-width: 760px) {
  .topnav { display: none; }
  body[data-screen="upload"] .topbar-actions { flex: 1; }
}


/* ---------------------------------------------------------------------------
   LANDING (#screen-upload)
   ---------------------------------------------------------------------------
   The front door. Sections are full-width .band blocks inside the centred
   .wrap: each draws its colour on a 100vw ::before (body clips the overflow).
   --------------------------------------------------------------------------- */
.band {
  --band: transparent;
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 80px) 0;
}
.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--band);
}
.band.cream { --band: var(--cream); }
.band.blush { --band: var(--blush); }
.band.lav { --band: var(--lavender); }
.band.ink { --band: var(--ink); }

.sec-head { max-width: 640px; margin-bottom: 34px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.band h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.02; }
.band h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
/* One small coloured eyebrow per section. */
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pink-text);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.band .note { font-size: 1.02rem; max-width: 52ch; }
.sec-head.center .note { margin-inline: auto; }

/* ---- the status pill, one soft row above the hero ---- */
.status-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 4px 0 14px;
}
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .85);
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  animation: statusGlow 2s ease-in-out infinite;
}
@keyframes statusGlow {
  0%, 100% { box-shadow: 0 0 3px 0 rgba(63, 191, 127, .55); }
  50% { box-shadow: 0 0 8px 3px rgba(63, 191, 127, .85); }
}

/* ---- hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5.6fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
  padding: 10px 0 clamp(40px, 5vw, 72px);
}
/* hero-sky: very pale, soft behind the hero and the topbar above it. */
.screen > .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -150px; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: url("/assets/brand/hero-sky.webp") center bottom / cover no-repeat, var(--cream);
  filter: saturate(1.5) contrast(1.05);
  opacity: .95;
  -webkit-mask-image: linear-gradient(transparent 0, #000 140px, #000 72%, transparent);
  mask-image: linear-gradient(transparent 0, #000 140px, #000 72%, transparent);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.25rem);
  line-height: 1.02;
}
.hero .lede {
  max-width: 30em;
  margin: 18px 0 26px;
  color: var(--ink-2);
  font-size: 1.2rem;
}

.dz-wrap { display: flex; flex-direction: column; max-width: 540px; }

/* The big rounded drop card. It is a <button>, so it is a real tab stop and
   Enter opens the picker; the file input behind it stays out of the way. */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px 24px 26px;
  border: 2.5px dashed #e0b9cf;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-2);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t), transform .2s var(--e);
}
.dropzone:hover { border-color: var(--pink); background: #fff7fb; transform: translateY(-2px); }
.dropzone.over { border-color: var(--pink); border-style: solid; background: #fff0f7; transform: translateY(-2px) scale(1.01); }
.dz-glyph {
  display: block;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 002 2h12a2 2 0 002-2v-3'/%3E%3C/svg%3E") center / 30px no-repeat,
    var(--grad);
  box-shadow: 0 10px 24px -8px rgba(221, 42, 123, .6);
}
.dz-title { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.dz-sub { display: block; max-width: 30em; margin-top: 6px; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.dz-note { display: block; margin-top: 12px; color: var(--ink-3); font-size: .8rem; }

/* The analysing bar under the drop card: a moving candy stripe over --grad. */
.progress {
  height: 8px;
  margin-top: 12px;
  border-radius: var(--r-pill);
  background-color: var(--line);
  background-image:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, .55) 0 7px, rgba(255, 255, 255, 0) 7px 14px),
    var(--grad);
  background-size: 39.6px 100%, 100% 100%;
  animation: hatch .7s linear infinite;
}
@keyframes hatch { to { background-position: 39.6px 0, 0 0; } }

/* The question the drop target provokes: a real secondary (sticker) button. */
.btn.help-btn { align-self: flex-start; margin-top: 18px; min-height: 44px; padding: 10px 20px; }
.btn.help-btn::after { content: "\2192"; transition: transform var(--t); }
.btn.help-btn:hover::after { transform: translateX(3px); }
.hero-note { margin-top: 14px; color: var(--ink-3); font-size: .88rem; }

/* A saved board, offered behind two plain buttons. */
.resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.resume .btn { flex: 1 1 100%; width: 100%; padding: 12px 14px; }
.btn.resume-go { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.resume .btn.danger { color: var(--ink-2); }
.resume-note { flex-basis: 100%; margin: 0; }

/* Proof numbers. */
.proof { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; list-style: none; }
.proof li { color: var(--ink-2); font-size: .88rem; line-height: 1.3; max-width: 13em; }
.proof .val {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ---- the laptop: a sample of the sorted list ---- */
.hero-stage { position: relative; padding: 14px 0 34px; }
.laptop { position: relative; max-width: 700px; margin: 0 auto; }
.lp-screen {
  padding: 8px 8px 10px;
  border-radius: 22px 22px 6px 6px;
  background: #1d1a22;
  box-shadow: var(--sh-2);
}
.lp-base {
  position: relative;
  height: 14px;
  margin: 0 -4%;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(#d8d4d0, #bdb8b3);
}
.lp-base::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 90px; height: 5px;
  border-radius: 0 0 8px 8px;
  background: #a9a39e;
  transform: translateX(-50%);
}
.lp-win { overflow: hidden; border-radius: 12px; background: #fff; }
.lp-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f3f0ec; }
.lp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6159; }
.lp-bar i:nth-child(2) { background: #ffbd2e; }
.lp-bar i:nth-child(3) { background: #28c941; }
.lp-url {
  flex: 1;
  max-width: 260px;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  font-size: 11px;
}
.lp-app { padding: 14px 16px 16px; }
.lp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lp-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lp-mark { width: 20px; height: 20px; background: url("/assets/icon.svg") center / contain no-repeat; }
.lp-cnt { margin-left: auto; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.lp-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow: hidden; }
.lp-tab {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: #f4f1ee;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.lp-tab.on { background: var(--ink); color: #fff; }
.lp-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; }
.lp-row:nth-child(odd) { background: #fbf9f7; }
.lp-cb {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px; height: 18px;
  border: 2px solid #d3ccc6;
  border-radius: 6px;
  background: #fff;
}
.lp-cb.on { border-color: var(--pink); background: var(--pink); }
.lp-cb svg { width: 11px; height: 11px; }
.lp-av { flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.lp-av.a1 { background: linear-gradient(135deg, #8134AF, #515BD4); }
.lp-av.a2 { background: linear-gradient(135deg, #FEDA77, #F58529); }
.lp-av.a3 { background: linear-gradient(135deg, #34c3a0, #2b8fd6); }
.lp-av.a4 { background: linear-gradient(135deg, #ff7a7a, #DD2A7B); }
.lp-av.a5 { background: linear-gradient(135deg, #F58529, #DD2A7B); }
.lp-av.a6 { background: linear-gradient(135deg, #DD2A7B, #8134AF); }
.lp-av.a7 { background: linear-gradient(135deg, #8134AF, #515BD4); }
.lp-who { min-width: 0; flex: 1; line-height: 1.2; }
.lp-who b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lp-who small { color: var(--ink-2); font-size: 11.5px; }
.lp-chip { flex: none; padding: 4px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; white-space: nowrap; }
.lp-chip.pink { background: #ffe1ec; color: #b5175d; }
.lp-chip.red { background: #ffe4dc; color: #b83a14; }
.lp-chip.purple { background: #ece3fb; color: #6a2a9a; }
.lp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}
.lp-unf { padding: 8px 16px; border-radius: var(--r-pill); background: var(--grad-btn); color: #fff; font-size: 13px; font-weight: 700; }

/* The floating result chip: a plain soft pill (stickers are words only). */
.float {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-2);
}
.f-ba { left: -5%; bottom: 0; display: flex; align-items: center; gap: 12px; transform: rotate(-1deg); }
.f-ba small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.f-ba b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.f-ba .arr { color: var(--pink-text); font-size: 22px; font-weight: 800; }
.f-ba .new b { color: var(--pink-text); }
.f-prog { top: 0; right: -1%; width: 200px; transform: rotate(1deg); }
.f-prog small { font-size: 12px; font-weight: 600; }
.pbar { height: 8px; margin-top: 7px; overflow: hidden; border-radius: var(--r-pill); background: #f0e9f5; }
.pbar i { display: block; width: 32%; height: 100%; border-radius: var(--r-pill); background: var(--grad); }
.s-np { position: absolute; z-index: 3; right: 3%; top: -6px; --rot: 3deg; }
.s-hp { position: absolute; z-index: 3; right: 3%; bottom: 4px; --rot: 3deg; }

/* ---- how it works ---- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; }
.how-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
}
.how-card p { margin-top: 6px; color: var(--ink-2); font-size: .98rem; }
.illo {
  display: grid;
  place-items: center;
  height: 230px;
  margin-bottom: 18px;
  border-radius: var(--r);
  background: var(--cream);
}
.illo.blush { background: var(--blush); }
.illo.lav { background: var(--lavender); }
.illo img { width: 190px; height: 190px; object-fit: contain; }
.num {
  position: absolute;
  top: -14px; left: -6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: var(--sh-sticker);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  transform: rotate(-6deg);
}
.step-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 2px;
  padding: 0;
  color: var(--pink-text);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.step-link:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ---------------------------------------------------------------------------
   Numbered instruction lists (.steps): the Meta help dialog, the handoff screen
   and the zip-install fold. Restyled with the app screens.
   --------------------------------------------------------------------------- */
/* ---- the numbered "what we need from Meta" list ---- */
.steps {
  list-style: none;
  border-left: var(--b-loud);
  padding-left: 20px;
  max-width: 62ch;
}
/* Hanging indent by negative text-indent rather than grid: the sentence carries
   inline <b> and <span>, and every one of those would blockify into its own
   grid item. */
.steps li {
  display: block;
  position: relative;
  padding: 12px 2px 12px 2.7rem;
  text-indent: -2.7rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.steps li::before {
  content: "";
  position: absolute;
  left: -25px; top: 1.24em;
  width: 8px; height: 8px;
  background: var(--magenta);
  outline: 1.5px solid var(--ink);
}
.steps .n {
  display: inline-block;
  width: 2.7rem;
  text-indent: 0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.steps b { color: var(--ink); font-weight: 600; }
.steps .say {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  padding: 0 4px;
}
/* The one .say that is also a link (Instagram's export page, desktop only).
   It keeps the highlighter and gains the underline every other link here has,
   so it reads as "this phrase, and you can press it" rather than as a new
   kind of thing. */
a.say {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a.say:hover, a.say:focus-visible { background: var(--ink); color: var(--amber); }

/* Inside a step a link goes back to being inline. */
.steps a.textlink { display: inline; padding: 0; }

/* ---- founder video bubble ---- */
/* One composed card: bubble and text centred together. */
.founder { padding-block: clamp(40px, 6vw, 64px); }
/* Sits between the hero and How it works: keep the hand-off to the steps tight. */
.founder:not([hidden]) { padding-bottom: 0; }
.fd-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
}
.fd-bubble { position: relative; width: 220px; height: 220px; }
.fd-ring {
  width: 100%; height: 100%;
  padding: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--sh-2);
}
.fd-disc {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE9F3, var(--lavender));
}
.fd-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.fd-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.fd-init {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
}
.fd-bubble.has-video .fd-video { display: block; }
.fd-bubble.has-video .fd-ph { display: none; }
.fd-play {
  position: absolute;
  left: 50%; bottom: -14px;
  margin-left: -27px;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .5);
  transition: transform .15s var(--e);
}
.fd-play:hover { transform: scale(1.06); }
.fd-play svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.fd-bubble.is-soon .fd-play { opacity: .55; cursor: default; }
.fd-bubble.is-soon .fd-play:hover { transform: none; }
.fd-bubble.playing .fd-play { opacity: 0; pointer-events: none; }
.fd-copy p { max-width: 28em; margin-top: 12px; color: var(--ink-2); font-size: 1.15rem; }

/* The small floating bubble, bottom-left (the support chat is bottom-right). */
.fd-float {
  position: fixed;
  z-index: 30;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: none;
  width: 96px; height: 96px;
}
body[data-screen="upload"] .fd-float.on { display: block; animation: fdIn .35s var(--e) backwards; }
@keyframes fdIn { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.fd-float-btn {
  position: relative;
  display: block;
  width: 96px; height: 96px;
  padding: 4px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--sh-2);
  transition: transform .15s var(--e);
}
.fd-float-btn:hover { transform: scale(1.05); }
.fd-float-disc {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE9F3, var(--lavender));
}
.fd-float-c {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}
/* The poster is only requested once draft.js arms the float (video exists). */
.fd-float.armed.has-video .fd-float-disc { background: url("/assets/founder-poster.webp") center / cover no-repeat, linear-gradient(135deg, #FFE9F3, var(--lavender)); }
.fd-float.has-video .fd-float-c { display: none; }
.fd-float-disc { position: relative; overflow: hidden; }
.fd-float-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}
.fd-float-play {
  position: absolute;
  right: -2px; bottom: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
}
.fd-float-play svg { width: 13px; height: 13px; margin-left: 1px; fill: #fff; }
.fd-float-x {
  position: absolute;
  top: -12px; left: -12px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
}
.fd-float-x::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}
.fd-float-x span { position: relative; }

/* ---- safety ---- */
.safe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sec-head .note { margin-top: 10px; }
.safe {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-1);
}
.safe img { flex: none; width: 120px; height: 120px; object-fit: contain; }
.safe p { margin-top: 2px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.safe-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }

/* ---- the zip-install fallback (inside safety) ---- */
.band [data-store-fallback] { margin-top: 22px; }
.fold > summary {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--sh-sticker);
  font-size: .88rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary { background: var(--ink); color: #fff; }
.steps-install { margin-top: 18px; }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.plan {
  position: relative;
  padding: 30px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.plan.pro { padding: 32px; border: 0; box-shadow: var(--sh-2); }
/* The gradient ring: a masked border-only layer. */
.plan.pro::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: var(--r-lg);
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.s-pop { position: absolute; top: -14px; left: 30px; --rot: -3deg; }
.pro-art { position: absolute; top: -34px; right: 14px; width: 128px; height: 128px; object-fit: contain; transform: rotate(8deg); filter: drop-shadow(0 10px 14px rgba(20, 17, 15, .16)); }
.plan h3 { color: var(--ink-2); }
.pr { margin: 6px 0; font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pr small { margin-left: 4px; color: var(--ink-2); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.plan ul { display: grid; gap: 10px; margin: 16px 0 24px; list-style: none; }
.plan li { display: flex; gap: 10px; font-size: 1rem; }
.plan li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: #ffe8f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23DD2A7B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan .btn { width: 100%; }
.ex {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 900px;
  margin: 34px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-1);
}
.ex h3 { font-size: 1.05rem; }
.ex p { margin-top: 4px; color: var(--ink-2); font-size: .9rem; }
.bars { display: grid; gap: 12px; }
.bl { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .88rem; font-weight: 600; }
.bt { position: relative; height: 30px; overflow: hidden; border-radius: var(--r-pill); background: #f3eef8; }
.bt i {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  padding-left: 14px;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: .8rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.bt .f { width: 100%; background: #a79bb3; }
.bt .p { width: 13%; min-width: 96px; background: var(--grad-btn); }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--yellow); }
.faq summary:hover { color: var(--pink-text); }
.faq details p { max-width: 62ch; padding: 0 20px 18px; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }

/* The store button, wherever it appears (landing and handoff). */
.go-store { padding: 12px 22px; }

/* ---- closing call to action, on the closing-sky picture ---- */
/* The card sits on the left over the empty sky; the clay bubbles own the right. */
.closing { padding: clamp(56px, 9vw, 110px) 0; }
.closing::before { background: url("/assets/brand/closing-sky.webp") 70% bottom / cover no-repeat, #cfe6fb; }
.closing-card {
  max-width: 500px;
  margin: 0;
  padding: clamp(24px, 4.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-2);
  text-align: left;
}
.closing-card p { margin: 10px 0 22px; color: var(--ink-2); }

/* ---- footer: same structure as the pages footer (logo, links, disclaimer) ---- */
.foot { padding: 44px 0 40px; color: #d9d3cd; font-size: .95rem; }
.foot.band::before { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.foot b { color: #fff; font-weight: 600; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 12px 0 14px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-size: .95rem; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { max-width: 70ch; margin-top: 8px; color: #a39c95; font-size: .82rem; line-height: 1.5; }
.foot-legal a { color: #d9d3cd; }
.foot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  color: #d9d3cd;
  font-size: .82rem;
}
.foot :focus-visible { outline-color: var(--yellow); }

/* Shared note style (landing and app screens). */
.note {
  max-width: 66ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: .92rem;
}
.note b { color: var(--ink); font-weight: 600; }

/* The phone-only static replacement for the film. */
.xp-static {
  display: none;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.xp-static .lp-win { border-radius: 0; }

/* ---- landing, narrower screens ---- */
@media (max-width: 1060px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dz-wrap { max-width: none; }
  .f-ba { left: 0; }
}
@media (max-width: 860px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .illo { height: 210px; }
  .fd-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .fd-copy p { margin-inline: auto; }
}
@media (max-width: 760px) {
  .safe-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ex { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  /* The film is unreadable at phone width: swap it for the static card. */
  .xp-host, .xp-play { display: none; }
  .xp-static { display: block; }
  .xp-step { pointer-events: none; }
  .closing { min-height: 520px; display: flex; align-items: flex-start; }
  .closing::before { background-position: 70% bottom; }
  .closing-card { max-width: none; width: 100%; padding: 24px; }
  .safe img { width: 104px; height: 104px; }
  .hero-stage { margin-inline: -12px; }
  .lp-screen { padding: 5px 5px 7px; }
  .lp-base { margin: 0; }
  .proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .proof li { font-size: .78rem; }
  .proof .val { font-size: 1.2rem; }
  .lp-tab:nth-child(n+3) { display: none; }
}
@media (max-width: 520px) {
  .fd-bubble { width: 160px; height: 160px; }
  .fd-init { font-size: 4.4rem; }
  .fd-play { width: 48px; height: 48px; margin-left: -24px; }
  .f-ba { position: relative; left: auto; bottom: auto; width: max-content; margin: -6px auto 0; }
  .f-ba b { font-size: 19px; }
  .hero-stage .lp-row:nth-child(n+8) { display: none; }
  .dropzone { padding: 24px 16px 22px; }
  .hero .lede { font-size: 1.05rem; }
  .s-np { right: 6px; top: -10px; }
}

/* ---------------------------------------------------------------------------
   HOW IT WORKS, START TO FINISH — the homepage explainer
   ---------------------------------------------------------------------------
   Replaced the interactive demo board (2026-10-18). One fixed 1120x740 browser
   window, scaled to the section's width with a transform and driven by
   explainer.js from one clock. Everything in it is a REPLICA: the app's own
   classes and copy, so a redesign of the upload panel, the cards or the pink
   button changes the film too. The side panel is the extension's own stylesheet,
   renamed and scoped (explainer-panel.css, generated).

   Three things here exist because the frame is a fixed-size screen inside a
   page of ANY width, and the app's CSS is keyed to the viewport:
     - `vw` / `vh` clamps (h1, the dropzone, the card gap) are pinned to their
       desktop values under `.xp-frame`;
     - every `@media (max-width)` and `(pointer: coarse)` block that restyles
       cards, columns, the pink button and buttons is undone for the frame, so a
       phone sees the same desktop product, only smaller;
     - the board is a flex column like the real one at >= 861px.
   `.xp-frame` carries no `.screen` class and no ids, on purpose: see THE TRAP in
   app/CLAUDE.md. Nothing in it is interactive (pointer-events: none).
   --------------------------------------------------------------------------- */
.demo-note { margin-top: 12px; }
.demo-note .sticker { margin-left: 8px; vertical-align: middle; }
.s-demo { --rot: 2deg; }
.demo-foot { margin-top: 12px; color: var(--ink-3); font-size: .8rem; text-transform: none; letter-spacing: 0; font-weight: 400; }

.xp-host {
  position: relative;
  width: 100%;
  aspect-ratio: 1120 / 740;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-2);
}

.xp-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 1120px;
  height: 740px;
  overflow: hidden;
  transform: scale(var(--xp-s, .8));
  transform-origin: 0 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.xp-frame * { pointer-events: none; }
.xp-frame.xp-fade { opacity: 0; transition: opacity .45s linear; }

/* ---- the browser (not the product, so it may be round) ---- */
.xp-chrome {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 78px;
  z-index: 30;
  background: #dee1e6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.xp-tabstrip { display: flex; align-items: flex-end; gap: 4px; height: 38px; padding: 0 12px; }
.xp-lights { align-self: center; flex: none; margin: 0 16px 0 2px; }
.xp-tab {
  display: flex; align-items: center; gap: 8px;
  width: 210px; height: 32px; padding: 0 10px;
  font-size: 12px; color: #3c4043;
  border-radius: 9px 9px 0 0 !important;
}
.xp-tab.xp-on { background: #fff; }
.xp-tab-b:not(.xp-show) { display: none; }
.xp-tab-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-tab-x { font-size: 15px; color: #5f6368; line-height: 1; }
.xp-fav { width: 14px; height: 14px; flex: none; }
.xp-fav-bu { background-image: var(--ig); }
.xp-fav-ig { background: #c4c9d0; border-radius: 4px !important; }
.xp-toolbar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: #fff; border-bottom: 1px solid #dadce0;
}
.xp-nav { flex: none; margin: 0 5px; }
.xp-omni {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px; margin: 0 8px;
  background: #f1f3f4; color: #202124; font-size: 13px;
  border-radius: 15px !important;
}
.xp-tools { display: flex; align-items: center; gap: 4px; }
.xp-tool {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50% !important;
}
.xp-tool.xp-h { background: #e8eaed; }
.xp-tool.xp-press { background: #dadce0; }
.xp-avatar::after {
  content: ""; width: 24px; height: 24px;
  background: linear-gradient(135deg, #8ab4f8, #c58af9);
  border-radius: 50% !important;
}

/* ---- the page ---- */
.xp-view {
  position: absolute;
  left: 0; top: 78px;
  width: 1120px; height: 662px;
  overflow: hidden;
  background: #fff;
}
.xp-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; background: #fff; }
.xp-pagewrap {
  height: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 32px 20px;
  display: flex;
  flex-direction: column;
}
.xp-boardwrap { max-width: 1400px; padding-bottom: 20px; }

/* The viewport-keyed rules, pinned to what a 1120px desktop window gets. */
.xp-frame h1 { font-size: 3.5rem; }
.xp-frame .lede { font-size: 1.05rem; }
.xp-frame .topbar { padding: 0 0 8px; }
.xp-frame .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 4px 0 0; }
.xp-frame .hero .lede { margin: 12px 0 18px; font-size: 1.05rem; }
.xp-frame .hero .dz-wrap { max-width: none; }
.xp-frame .dz-title { font-size: 1.4rem; }
.xp-frame .dropzone { padding: 26px 20px 22px; }
.xp-frame .hero-stage { padding: 14px 0 24px; }
.xp-frame .laptop { max-width: 100%; }
.xp-frame .btn, .xp-frame .chip { padding-top: 7px; padding-bottom: 7px; }
.xp-frame .btn.next { padding: 13px 32px; }
.xp-frame .card { grid-template-columns: 42px minmax(0, 1fr) auto; row-gap: 3px; padding: 9px 10px; }
.xp-frame .card.pinned, .xp-frame .card.stalker { padding-left: 8px; }
.xp-frame .c-meta { grid-column: 3; grid-row: 1; justify-content: normal; padding-top: 2px; }
.xp-frame .c-why { grid-column: 2; grid-row: 2; }
.xp-frame .mk { width: 17px; height: 17px; }
.xp-frame .mk svg { width: 11px; height: 11px; }
.xp-frame .go { width: auto; order: 0; padding: 11px 26px 10px; }
.xp-frame .tile .val { font-size: 2rem; }

/* The board, as the real one lays out at >= 861px: a flex column whose
   scrollers take whatever the action rule and bar leave. */
.xp-frame .actionrule { gap: 26px; }
.xp-frame .board { grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; min-height: 0; margin-top: 16px; }
.xp-frame .col { display: flex; flex-direction: column; min-height: 0; }
.xp-frame .col + .col { border-left: var(--b-hair); border-top: none; }
.xp-frame .col-scroll { flex: 1; min-height: 0; max-height: none; overflow-y: auto; padding: 0 16px 20px; }
.xp-frame .col:first-child .col-scroll { padding-left: 0; }
.xp-frame .col:last-child .col-scroll { padding-right: 0; }
.xp-frame .col[data-xp-col="keep"] .col-head h3 { background: var(--ok); }
.xp-frame .col[data-xp-col="unsure"] .col-head h3 { background: var(--amber); }
.xp-frame .col[data-xp-col="unfollow"] .col-head h3 { background: var(--bad); }
.xp-frame .col.xp-over .col-scroll { background: var(--wash); }
.xp-frame .actionbar { --chat-clear: 0px; gap: 22px; }
.xp-frame .card .c-years { margin-top: 5px; }

/* :hover and :active, as classes, because nothing here is ever really hovered. */
.xp-frame .card.xp-h { background: var(--wash); }
.xp-frame .go.xp-h { background: var(--ink); color: var(--pink); }
.xp-frame .go.xp-h .go-sub { color: #fff; }
.xp-frame .go.xp-press { transform: scale(.985); }
.xp-frame .btn.next.xp-h { background: var(--ink); color: var(--ok); }
.xp-frame .btn.xp-press { transform: scale(.97); }
.xp-frame .card.xp-hide { display: none; }
.xp-frame .c-mono.xp-h { background: var(--ink); color: #fff; }
.xp-frame .col-filter { white-space: nowrap; padding: 3px 6px; gap: 5px; letter-spacing: .1em; }
.xp-frame .col-head { gap: 8px; }
.xp-frame .col-filter.xp-h { background: var(--ink); color: #fff; }
.xp-frame .col-filter.xp-press { transform: scale(.96); }
.xp-frame .col.filtered .col-count { display: none; }

/* The walkthrough and the handoff, with the page-width constraints the real
   screens take from their ids. */
.xp-working { max-width: 62ch; padding-top: 12px; }
.xp-working .work-h, .xp-hand .work-h { max-width: 14ch; margin-top: 14px; }
.xp-working .work-bar { margin-top: 26px; }
.xp-working .work-steps { margin-top: 18px; }
.xp-hand { max-width: 68ch; padding-top: 8px; }
.xp-hand-owner .owner { padding: 0; margin-top: 18px; gap: 12px; }
.xp-hand-owner .own-face { width: 52px; height: 52px; }
.xp-hand-owner .own-name { font-size: 1rem; }
.xp-hand .go { padding: 11px 22px 10px; font-size: 1rem; }
.xp-hand .ready { margin-top: 22px; }
.xp-off { visibility: hidden; }
.xp-working .work-go, .xp-working .wstep { transition: opacity .3s linear; }
.xp-working .xp-off { opacity: 0; }

/* The page being worked on: a generic profile, deliberately without anyone's
   logo or trade dress. */
.xp-scene-ig { background: #fafafa; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #262626; }
.xp-ig { padding: 44px 56px 0; }
.xp-ig-head { display: flex; gap: 56px; align-items: flex-start; }
.xp-ig-av { flex: none; }
.xp-ig-info { min-width: 0; padding-top: 6px; }
.xp-ig-line { position: relative; display: flex; align-items: center; gap: 10px; }
.xp-ig-handle { font-size: 20px; margin-right: 14px; }
.xp-ig-btn {
  padding: 7px 18px; font-size: 14px; font-weight: 600;
  background: #efefef; color: #262626;
  border-radius: 8px !important;
}
.xp-ig-btn.xp-follow { background: #0095f6; color: #fff; }
.xp-ig-btn.xp-press { transform: scale(.94); }
.xp-ig-ring {
  position: absolute; left: 150px; top: 50%;
  width: 90px; height: 40px; margin: -20px 0 0 -45px;
  border: 3px solid #c13584;
  border-radius: 10px !important;
  opacity: 0;
}
.xp-ig-stats { display: flex; gap: 40px; margin-top: 22px; font-size: 16px; }
.xp-ig-name { margin-top: 18px; font-size: 14px; font-weight: 600; }
.xp-ig-bio { margin-top: 4px; font-size: 14px; }
.xp-ig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 56px; border-top: 1px solid #dbdbdb; padding-top: 24px;
}
.xp-ig-tile { aspect-ratio: 1; background: #dfe3e8; }
.xp-ig-tile.xp-t1 { background: #e9e3df; }
.xp-ig-tile.xp-t2 { background: #dde6e0; }
.xp-ig-tile.xp-t3 { background: #e4dfe9; }
.xp-ig-tile.xp-t4 { background: #e8e8e3; }

.xp-lapse {
  position: absolute; left: 24px; bottom: 20px;
  padding: 6px 10px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0;
}

/* The drawn toolbar arrow: #toolbarArrow's own geometry, aimed by JS. */
.xp-arrow {
  position: absolute;
  top: 84px;
  right: 88px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  max-width: 330px;
  opacity: 0;
}
.xp-arrow svg {
  width: 72px; height: 72px; margin-top: -6px;
  fill: none; stroke: var(--magenta); stroke-width: 3.5; stroke-linecap: square;
}
.xp-ta-line { stroke-dasharray: 200; stroke-dashoffset: 200; }
.xp-ta-head { opacity: 0; }
.xp-arrow p {
  margin: 16px 0 0; justify-self: end; text-align: right;
  font-size: .82rem; font-weight: 600; line-height: 1.35;
  color: var(--ink); background: var(--amber); border: var(--b); padding: 7px 10px;
}

/* The side panel: a Chrome side panel, 380px, under the toolbar. */
.xp-frame .xp-panel {
  position: absolute;
  top: 78px;
  right: 0;
  width: 380px;
  height: calc(100% - 78px);
  z-index: 20;
  border-left: 1px solid #c4c7c5;
  transform: translateX(380px);
}
.xp-p-title { font-family: var(--font-display); font-weight: 400; }
.xp-panel .xp-p-go { display: block; }
.xp-panel .xp-p-go.xp-h { background: var(--ink); color: var(--pink); }
.xp-panel .xp-p-go.xp-press { transform: scale(.985); }
.xp-panel .xp-p-tab.xp-h:not([aria-pressed="true"]) { background: var(--wash); color: var(--ink); }
.xp-panel .xp-p-tab.xp-press { transform: scale(.97); }
.xp-panel .xp-p-btn { display: inline-block; }
.xp-panel .xp-p-pane[hidden] { display: none !important; }

/* The cursor, the dragged file, the card in flight, the click ripple. */
.xp-cursor { position: absolute; left: 0; top: 0; z-index: 60; opacity: 0; transform-origin: 2px 1px; }
.xp-ripple {
  position: absolute; left: 0; top: 0; z-index: 59;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border: 3px solid var(--magenta);
  border-radius: 50% !important;
  opacity: 0;
}
.xp-chip {
  position: absolute; left: 0; top: 0; z-index: 58;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: #fff; border: var(--b);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px; font-weight: 600; color: var(--ink);
  opacity: 0; transform-origin: 0 0;
}
.xp-chip-ico {
  position: relative; display: grid; place-items: end center;
  width: 30px; height: 36px; padding-bottom: 5px;
  background: var(--amber); border: var(--b);
}
.xp-chip-ico i { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.xp-ghost { position: absolute; left: 0; top: 0; z-index: 57; }
.xp-ghost-item { position: absolute; left: 0; top: 0; opacity: 0; }
.xp-ghost-item .card { margin: 0; background: var(--bg); }
.xp-ghost-item .card.dragging, .xp-ghost-item .card.xp-h, .xp-ghost-item .card.sel { opacity: 1; }
.xp-frame .card.dragging { opacity: .35; }

/* ---- the five-step rail and the pause button ---- */
.xp-ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 0 16px; margin-top: 14px; }
.xp-rail { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.xp-rail li + li { border-left: var(--b-hair); }
.xp-step {
  position: relative;
  display: flex; align-items: flex-start; gap: 9px;
  width: 100%; height: 100%;
  padding: 14px 10px 12px 12px;
  text-align: left;
  color: var(--ink-3);
  border-top: 2px solid var(--grid);
  transition: background-color var(--t), color var(--t);
}
.xp-rail li:first-child .xp-step { padding-left: 0; }
.xp-step::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--xp-p, 0));
}
.xp-n { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; flex: none; }
.xp-l { font-size: .84rem; font-weight: 600; line-height: 1.3; padding-top: 2px; }
.xp-step:hover, .xp-step:focus-visible { color: var(--ink); }
.xp-step[aria-current="step"] { color: var(--ink); }
.xp-step[aria-current="step"] .xp-n { background: var(--amber); padding: 0 5px; margin-left: -5px; align-self: flex-start; }
.xp-rail li:first-child .xp-step[aria-current="step"] .xp-n { margin-left: 0; }
.xp-play { align-self: stretch; justify-content: center; min-width: 88px; }
.xp-reduce .xp-play { display: none; }
.xp-reduce .xp-ctl { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 760px) {
  .xp-ctl { grid-template-columns: minmax(0, 1fr); gap: 10px 0; }
  .xp-rail { grid-template-columns: minmax(0, 1fr); }
  .xp-rail li + li { border-left: none; }
  .xp-rail li:first-child .xp-step { padding-left: 0; }
  .xp-step { padding: 10px 6px 10px 0; align-items: center; }
  .xp-step::before { display: none; }
  .xp-step[aria-current="step"] .xp-n { margin-left: 0; }
  .xp-play { justify-self: start; }
}

/* ---------------------------------------------------------------------------
   WORKING — the interstitial
   ---------------------------------------------------------------------------
   No bordered panel: two rules and a list, like every other reading surface
   here. The list is the content, so it gets the width and the air, and the
   headline stays out of its way.
   --------------------------------------------------------------------------- */
#screen-working { max-width: 62ch; padding-top: clamp(12px, 4vh, 40px); }
/* The blanket entry stagger every other screen gets is switched OFF here. This
   screen's whole job is a progressive reveal, and it does that itself, one row
   at a time — layering a second, delayed fade over the frame it starts in only
   creates a window where the headline and the bar are laid out but painting
   nothing. Each step keeps its own `rise`; the furniture around them does not
   need one. */
#screen-working > * { animation: none; }
.work-h { max-width: 14ch; margin-top: 14px; }

/* The bar. Gradient use 3 of 3 was the analysing hatch on the dropzone; this is
   the same idea at full width, and it fills rather than loops — a bar that
   loops says "still going", a bar that fills says "this much is done". */
.work-bar {
  position: relative;
  height: 3px;
  margin-top: clamp(22px, 4vh, 34px);
  background: var(--grid);
  overflow: hidden;
}
.work-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 1%);
  background-image: var(--ig);
  background-size: 62ch 100%;   /* the gradient belongs to the BAR, not the fill,
                                   so the colours do not slide as it grows */
  transition: width .45s var(--e);
}

.work-steps { list-style: none; margin-top: 20px; }
.wstep {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: var(--b-hair);
  animation: rise .4s var(--e) backwards;
}
.wstep:last-child { border-bottom: none; }

/* Open square while it runs, filled once it is done. Fill weight again, not
   hue — a tick would be a fifth glyph in a system that has three. */
.wmark {
  width: 9px;
  height: 9px;
  align-self: center;
  outline: 1px solid var(--ink);
  background: var(--bg);
  animation: pulse 1.1s var(--e) infinite;
}
.wstep.done .wmark { background: var(--ink); animation: none; }

.wlabel { font-size: .92rem; line-height: 1.4; color: var(--ink-3); }
.wstep.done .wlabel { color: var(--ink); }
.wnote {
  font-size: .78rem;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.work-foot { margin-top: 22px; max-width: 58ch; animation: rise .4s var(--e) backwards; }

/* The way out. Green like the other button in this app that moves you forward
   rather than spending something, and parked on the right edge — where the eye
   already is, because that is the column every count in the list above ends in.
   The note keeps the left, so the row reads as a statement with an answer. */
.work-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  animation: rise .4s var(--e) backwards;
}
.btn.next {
  margin-left: auto;            /* holds the right edge even with no note */
  background: var(--ok);
  color: var(--ink);
  border: var(--b);
  padding: 13px 32px;
  font-size: .84rem;
}
.btn.next:hover, .btn.next:focus-visible { background: var(--ink); color: var(--ok); }
.work-go-note { font-size: .8rem; color: var(--ink-3); line-height: 1.4; max-width: 40ch; }

/* ---------------------------------------------------------------------------
   HANDOFF
   ---------------------------------------------------------------------------
   The same numbered-instructions device as the upload screen's "what we need
   from Meta", and that echo is the point: the last time the user was told to go
   and fetch something, it looked like this, and it worked.

   The one addition is STATE. Those steps were a static list; these three are a
   sequence with a current position, so each carries data-state and the marker
   dot does the talking — filled magenta for the step you are on, solid ink once
   it is done, hollow while it is still out of reach. Border weight and fill,
   the system's existing vocabulary; no new colour and no tick-mark font.
   --------------------------------------------------------------------------- */
#screen-handoff { max-width: 68ch; padding-top: clamp(12px, 4vh, 40px); }
/* NOTE for whoever writes the next headline: the shared `h1 em` highlighter is
   an inline-block with line-height .82, which is what hugs the amber to the
   glyphs — and which collapses if the highlighted phrase ever WRAPS, because
   the crushed line-height then applies to the em's own two lines and they
   overlap. Every headline in this app highlights one short phrase for that
   reason. Keep it to one line, or fix the rule for everybody. */
/* Their own face, carried over from the board's masthead. The whole point is
   recognition, so it uses the same .owner/.own-face components rather than a
   lookalike — including the one sanctioned border-radius exception. */
#handOwner .owner { padding: 0; margin-top: 18px; gap: 12px; }
#handOwner .own-face { width: 52px; height: 52px; }
#handOwner .own-name { font-size: 1rem; }

.hand-lede { margin-top: 12px; max-width: 52ch; }

/* ---- the preview strip ----
   A crowd of monograms: the same initials on the same hues they have been
   dragging round the board, so this reads as THEIR list and not as a number.
   Wrapped, not scrolled — a scroller here would hide exactly the faces someone
   is scanning for. */
.preview { margin-top: 20px; }
.pv-faces { display: flex; flex-wrap: wrap; gap: 4px; }
.pv-face, .pv-more {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  overflow: hidden;
}
/* Crushed to a tint, exactly as on the card: 1,200 saturated hues is a rainbow,
   1,200 tinted papers is a list you can scan. */
.pv-face { background: hsl(var(--mh) 38% 92%); color: var(--ink); }
.pv-more { background: var(--ink); color: #fff; letter-spacing: .04em; }
.pv-note { margin: 10px 0 0; font-size: .76rem; color: var(--ink-3); max-width: 52ch; }

/* ---- the short version ----
   What the page becomes when the extension was already there. No step numbers,
   no rule down the left: with one thing left to do there is no sequence to
   draw, and drawing one anyway is how a single button becomes a form. */
.ready { margin-top: 26px; }
.ready-tick { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.ready-note { margin-top: 14px; max-width: 52ch; }
.ready .hand-do { margin-top: 18px; }

.hand-steps {
  list-style: none;
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: var(--b-loud);
  max-width: 62ch;
}
.hand-step {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  position: relative;
  padding: 16px 0 20px;
  border-bottom: var(--b-hair);
}
.hand-step:last-child { border-bottom: none; }
.hand-step::before {
  content: "";
  position: absolute;
  left: -25px; top: 1.9em;
  width: 8px; height: 8px;
  outline: 1.5px solid var(--ink);
  background: var(--bg);
}
.hand-step[data-state="now"]::before  { background: var(--magenta); }
.hand-step[data-state="done"]::before { background: var(--ink); }

/* A step you cannot act on yet is dimmed, not hidden: the user should be able
   to read ahead and see that handing over the list is one button, before they
   have gone to the trouble of installing anything. */
.hand-step[data-state="todo"] .hand-body { opacity: .5; }
.hand-step[data-state="todo"] h2 { color: var(--ink-2); }

.hand-n {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-3);
  padding-top: .45em;
}
.hand-step[data-state="now"] .hand-n { color: var(--ink); }
.hand-body { min-width: 0; }
.hand-body h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hand-body .note { max-width: 52ch; }
.hand-do {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
}
.hand-msg { font-size: .8rem; color: var(--ink-3); max-width: 34ch; }
.hand-msg.ok { color: var(--ink); font-weight: 600; }
.hand-msg.bad { color: var(--bad); }

/* Waiting. The pulsing dot is the page's own kicker device, reused because it
   means the same thing here as it does there: this is live, right now. */
.hand-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--ink-3);
}
.btn.small { padding: 5px 11px; font-size: .68rem; }

/* Confirmation, and the only place --ok fills a surface on this page. It earns
   it the same way --pink earns the action bar: this is the one state on the
   screen the user is actually waiting to see, and it should be legible from
   the other side of the desk without reading a word.
   Ink on green, not white: #0b0b0c on #3fbf7f is 8.9:1, where white would be
   2.1:1 and fail outright. */
.hand-found { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }
.hand-tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ok);
  color: var(--ink);
  border: var(--b);
  padding: 9px 15px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Stroked, not filled: a tick is a gesture, and drawing it as one keeps it
   from reading as a badge icon borrowed from somewhere else. */
.hand-tick svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: square;
}
.hand-ver { font-size: .78rem; color: var(--ink-3); }

/* Step 1's instructions, folded away once step 2 confirms. */
.hand-step[data-state="done"] .hand-fold { display: none; }

.btn.dl { text-decoration: none; }

/* The three-click install. Deliberately smaller and tighter than the numbered
   steps above it — it is a footnote to a button, not a second set of
   instructions competing with the first. */
.hand-mini {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  max-width: 52ch;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.hand-mini li { margin-bottom: 3px; }
.hand-mini b { color: var(--ink); font-weight: 600; }
.hand-mini .say, .hand-body .say {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  padding: 0 4px;
}
.hand-why { margin-top: 12px; }

/* The load button is the same pink control as the board's, at the same size,
   because it is the same commitment arriving one screen later. */
#screen-handoff .go { padding: 11px 22px 10px; font-size: 1rem; }

.hand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: var(--b-hair);
}
.hand-foot .micro { max-width: 44ch; text-align: right; }

@media (max-width: 640px) {
  .hand-foot { flex-direction: column; align-items: flex-start; }
  .hand-foot .micro { text-align: left; }
}

/* ---------------------------------------------------------------------------
   THE TOOLBAR ARROW
   ---------------------------------------------------------------------------
   The one instruction this flow cannot carry out for you. Chrome will not let
   an extension open its own side panel without a click on the toolbar icon,
   and that icon is outside the document — a place the page can neither reach
   nor draw on. So it points at it: fixed to the top-right, curving up and off
   the page, which is genuinely where the thing went.

   position: fixed and outside .wrap, for the same reason the tooltip is — the
   board is a scroller and a scroller clips on both axes.
   --------------------------------------------------------------------------- */
/* Below the masthead, not level with it: the page's own Start over button lives
   in the top-right corner and an arrow laid across it would be pointing at the
   wrong thing entirely. Starting under the header and curving up-and-right is
   unambiguous anyway — an arrow indicates a direction, not a pixel. */
/* WHERE it points, in two numbers rather than one fudged `right`.
   Chrome's toolbar is not ours to measure — but its right-hand end is stable
   and the extensions puzzle is not at the corner: the ⋮ menu sits about 17px
   in, the profile avatar about 53, and the puzzle about 105. Aiming at the
   corner (the old right: 20px) put the tip under the profile menu, which is a
   wrong thing that also opens something. `--ta-tip` is where the arrowhead
   falls inside the 72px drawing, so the two together aim the TIP rather than
   the box around it. */
#toolbarArrow {
  --toolbar-icon: 105px;
  --ta-tip: 17px;
  position: fixed;
  top: 62px;
  right: calc(var(--toolbar-icon) - var(--ta-tip));
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  max-width: 330px;
  pointer-events: none;          /* never in the way of the thing it points at */
  animation: arrow-in .45s var(--e) backwards;
}
#toolbarArrow svg {
  width: 72px;
  height: 72px;
  margin-top: -6px;
  fill: none;
  stroke: var(--magenta);
  stroke-width: 3.5;
  stroke-linecap: square;
}
/* Drawn on, rather than appearing. A line that arrives by being drawn reads as
   a gesture — someone pointing — where a static one reads as a diagram. */
.ta-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw .7s var(--e) .12s forwards;
}
.ta-head { opacity: 0; animation: fade .25s linear .75s forwards; }
#toolbarArrow p {
  margin: 16px 0 0;
  justify-self: end;
  text-align: right;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  background: var(--amber);
  border: var(--b);
  padding: 7px 10px;
}
@keyframes draw { to { stroke-dashoffset: 0 } }
@keyframes fade { to { opacity: 1 } }
@keyframes arrow-in {
  from { opacity: 0; transform: translateY(-8px) }
  to { opacity: 1; transform: none }
}

@media (max-width: 640px) {
  /* On a phone the extensions menu is not up there, and pointing off-screen at
     nothing is worse than not pointing. */
  #toolbarArrow { display: none; }
}

/* ---------------------------------------------------------------------------
   BOARD MASTHEAD
   ---------------------------------------------------------------------------
   No bordered panel at all. Three horizontal rules carry it: the gradient
   hairline above the tiles, and — 2px, below the caveats — the action rule's
   own bottom edge, which closes the masthead and opens the columns. The tiles
   themselves carry no bottom border, because two 2px rules a few pixels apart
   is a stripe, not a structure.
   --------------------------------------------------------------------------- */
/* Gradient use 2 of 3. */
.rule-ig {
  height: 2px;
  margin-top: 8px;
  background-image: var(--ig);
}

.tiles {
  display: grid;
  /* The owner takes what it needs and the three counts split the rest, so a
     long display name never squeezes the numbers. */
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 14px 0 12px;
}
.tile { padding: 2px 24px; border-left: var(--b); }
.tiles > :first-child { border-left: none; padding-left: 2px; }

/* ---- who this is ----
   The only real photograph in the app, and the ONLY round thing in it.

   Everything else here is square by a rule enforced with `!important` at the
   root, which is deliberate: it means a corner cannot be softened by accident.
   Rounding this one is therefore an explicit, single-selector exception, and it
   is the right one to make — a profile picture is round everywhere a person has
   ever seen their own, including on Instagram, and a square one reads as a
   cropping mistake rather than as a style. The monogram takes the same shape,
   so the masthead does not change silhouette depending on whether the export
   happened to include a photo.

   If you add a second exception, stop: the reason this one works is that it is
   the only one. */
.owner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 26px 2px 2px;
  min-width: 0;
}
.own-face {
  width: 72px;
  height: 72px;
  flex: none;
  border: var(--b);
  object-fit: cover;
  /* Beats the root reset on specificity: .own-face (0,1,0) over * (0,0,0). */
  border-radius: 50% !important;
}
/* The fallback, and it is the same monogram every other account gets: tinted
   paper with the account's own hue, never a grey silhouette. */
.own-mono {
  display: grid;
  place-items: center;
  background: hsl(var(--mh, 0) 38% 92%);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
}
.own-id { min-width: 0; }
.own-name, .own-handle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}
.own-name { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.own-handle { font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); }
.tile .cap {
  display: block;
  color: var(--ink-3);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* Big enough to be read across the room, small enough that four of them plus
   the action rule do not eat the top third of a working surface. */
.tile .val {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.05;
  margin-top: 2px;
}
.tile .sub { display: block; color: var(--ink-3); font-size: .74rem; margin-top: 2px; }

/* ---------------------------------------------------------------------------
   Warnings
   ---------------------------------------------------------------------------
   Blocking is the loudest treatment in the app: a reversed block, and the only
   reversed thing above the board. It stays open, because it has emptied the
   Unfollow column and nothing under it makes sense without it.

   Info is the opposite claim — "here is a limit of your file, it did not change
   the answer" — so it wears the dashed provisional border and collapses to a
   single summary line. Both severities are always in the DOM; only one of them
   is allowed to cost vertical space.
   --------------------------------------------------------------------------- */
.warnblock { margin-top: 26px; animation: rise .4s var(--e) backwards; }
.warnblock > .micro { margin-bottom: 8px; }

.warn { max-width: 78ch; }
.warn-code {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.warn p { font-size: .9rem; }

.warn.blocking { padding: 16px 18px; background: var(--ink); color: #fff; }
.warn.blocking .warn-code { display: block; margin-bottom: 9px; color: var(--pink); }
.warn.blocking h3 { font-size: 1.08rem; }
.warn.blocking p { margin-top: 8px; color: rgba(255, 255, 255, .78); }

.warn.info { border: var(--b-prov); }
.warn.info + .warn.info { margin-top: 6px; }
/* The row is the control, so it inverts like every other control here. */
.warn.info summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 12px;
  font-size: .88rem;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;               /* and ::-webkit-details-marker, below */
  transition: background-color var(--t), color var(--t);
}
.warn.info summary::-webkit-details-marker { display: none; }
.warn.info summary:hover,
.warn.info summary:focus-visible { background: var(--ink); color: #fff; }
.warn.info summary .warn-code { flex: none; color: var(--ink-3); }
.warn.info summary:hover .warn-code,
.warn.info summary:focus-visible .warn-code { color: var(--amber); }
/* + and − (U+2212), both inside the embedded latin subset — unlike a chevron
   glyph, which would have to be drawn. */
.warn.info summary::after {
  content: '+';
  margin-left: auto;
  padding-left: 12px;
  font-weight: 700;
}
.warn.info[open] summary::after { content: '\2212'; }
.warn.info[open] summary { border-bottom: var(--b-prov); }
.warn.info > p { padding: 10px 12px 12px; color: var(--ink-2); line-height: 1.6; }

/* ---------------------------------------------------------------------------
   BOARD
   ---------------------------------------------------------------------------
   Same rule as everywhere else, applied at 1,263 accounts: boxes are rationed.
   There is no panel around a column and no box around the toolbar, so the card
   is the only bordered thing on the screen — and that is precisely what makes
   it read as the thing you pick up.

   Depth is border weight and background, never shadow. The column header is
   sticky with a 2px bottom rule and the page background behind it; 600 cards
   pass under it and it stays legible, which is the argument for the whole
   system in one component.
   --------------------------------------------------------------------------- */

/* ---- the action rule ---- */
/* Three jobs on one line under a 2px edge: the number you are here to change,
   take the list away, start again. It is also the masthead's closing rule —
   the counts above it are context, everything below it is work. */
.actionrule {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  flex-wrap: wrap;
  padding: 4px 0 12px;
  background: var(--bg);
  border-bottom: var(--b-loud);
}
.queue { display: flex; align-items: baseline; gap: 11px; }
.queue-n { font-size: 1.5rem; line-height: 1; }
.actionrule-acts { display: flex; align-items: center; gap: 9px; margin-left: auto; flex-wrap: wrap; }
/* The copy chooser borrows the headers' chip row wholesale; it only needs to
   sit flush against the button that opened it. */
.copy-dests { margin-left: -4px; }
/* Destructive, so it wears the provisional border rather than the solid one. */
.btn.danger { border: var(--b-prov); }

/* ---- the action bar ---- */
/* The bottom bracket. The 2px top edge answers the action rule's 2px above the
   columns, so the board is enclosed rather than fading out at the bottom of the
   viewport — which matters here because the columns scroll inside themselves
   and there is no page scroll to signal an end. */
/* A 1fr auto 1fr GRID, not a flex row, and that is the whole trick: flexed, the
   middle cell spans the gap BETWEEN the two buttons, so anything centred in it
   sits off the bar's true centre by half the difference in their widths — and
   that difference moves every time the count does ("Unfollow 1 person" against
   "Unfollow 1,263 people"). Equal side tracks pin the centre to the bar. */
.actionbar {
  /* The support chat's launcher (ticketdm.com's loader, not ours) floats
     fixed at the bottom-right, 20px in and 56px wide, over whatever is there,
     and on the board that was the pink button. So the bar keeps 84px (20 + 56
     + air) clear on its right, measured from the VIEWPORT's edge: the wrap's
     own margin and gutter are subtracted, so on a wide window, where the wrap
     already stops short of the corner, nothing is added. Never move the widget
     to fix a collision; give it room here. */
  --chat-clear: max(0px, calc(84px - (100vw - min(100vw, var(--wrap))) / 2 - clamp(16px, 4vw, 32px)));
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  /* A sliver of white above the rule so the last visible card reads as clipped
     by a scroller rather than butted against the edge of the page. */
  margin-top: 10px;
  padding: 12px var(--chat-clear) 2px 0;
  border-top: var(--b-loud);
  background: var(--bg);
}

/* Takes all the slack between the two buttons, so the green one sits hard left
   and the pink one hard right whether or not there is anything in the middle. */
.actionbar-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
/* Placed explicitly, not auto-flowed. The bar is `1fr auto 1fr` and it used to
   have three children; with the account offer gone, auto-placement would put
   the middle in the FIRST column and centre the toast over the left third of
   the screen. Naming the columns makes the layout independent of how many
   children happen to exist. */
.actionbar-mid { grid-column: 2; }
.actionbar .go { grid-column: 3; justify-self: end; }
.actionbar-note {
  min-width: 0;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 62ch;
  text-align: center;
}

/* The loudest control in the app, and the only one that is loud because of what
   it does rather than where it is. Pink is elsewhere reserved for reversed text
   on ink; this is the one surface it fills, and it earns that by being the
   single irreversible action on the screen.

   The type is deliberately large: at 1.2rem/700 white on #e1306c clears the
   contrast floor for display text, which it would not at the .82rem the other
   buttons use. Size here is an accessibility constraint, not emphasis. */
.go {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: var(--b-loud);
  background: var(--pink);
  color: #fff;
  padding: 11px 26px 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background-color var(--t), color var(--t);
}
/* The second action, at a size where white on pink would NOT clear the contrast
   floor (4.34:1 only passes as display text). Ink does: #0b0b0c on #e1306c is
   4.52:1, over the 4.5 needed for body-sized text — and ink on a colour is what
   the highlighter does everywhere else in this system, so the fix is also the
   house style. Hierarchy is carried by size, not by lightening the small one. */
.go-sub {
  color: var(--ink);
  font-size: .66rem;
  letter-spacing: .1em;
}
/* Inverted, the pink is on the text; white carries the sub-line at 19:1 and the
   1.2rem headline still leads. */
.go:hover .go-sub, .go:focus-visible .go-sub { color: #fff; }
.go[disabled] .go-sub { color: var(--ink-3); }
/* Inverts like every other control, into ink with the pink carried by the text
   — which is pink's usual job in this system, so the hover is a homecoming. */
.go:hover, .go:focus-visible { background: var(--ink); color: var(--pink); }
.go:active { transform: scale(.995); }
/* Nothing to unfollow. It keeps its size so the bar does not resize under the
   pointer as the last card leaves the column. */
.go[disabled] {
  background: var(--bg);
  color: var(--ink-3);
  border-color: var(--grid);
  cursor: default;
  transform: none;
}
.go[disabled]:hover { background: var(--bg); color: var(--ink-3); }

/* ---- the full-disconnect option (handoff) ---- */
.hand-mutual {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 62ch;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: var(--b-hair);
  font-size: .86rem;
  line-height: 1.5;
  cursor: pointer;
}
.hand-mutual input { margin-top: 3px; accent-color: var(--ink); width: 15px; height: 15px; flex: none; }

/* ---- the three columns ---- */
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}
.col { min-width: 0; }
/* The seam, not a panel — the .tiles device again. */
.col + .col { border-left: var(--b-hair); }

.col-scroll {
  position: relative;            /* the offset frame every cached card top uses */
  overflow-y: auto;
  overscroll-behavior: contain;  /* a column that runs out must not scroll the page */
  max-height: calc(100dvh - 220px);
  padding: 0 clamp(10px, 1.1vw, 16px) 20px;
}
/* The Unfollow column packs 5,800px of cards into one screen of scroller. The
   OS overlay scrollbar gives that a fingernail of a thumb and hides it between
   scrolls — which is how "can't drag to the bottom" got reported as a bug.
   Styling ::-webkit-scrollbar is what opts out of the overlay: the track is
   always there, in the system's own grammar — square, hairline, ink on paper.
   NOTE: setting the standard scrollbar-width/scrollbar-color ANYWHERE on this
   element makes Chrome ignore every ::-webkit-scrollbar rule below, so the
   standard pair lives in a Firefox-only @supports instead. */
.col-scroll::-webkit-scrollbar { width: 11px; }
.col-scroll::-webkit-scrollbar-track { background: var(--bg); border-left: var(--b-hair); }
.col-scroll::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border: 2px solid var(--bg);   /* inset the thumb without rounding a corner */
}
.col-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink); }
@supports (-moz-appearance: none) {
  .col-scroll { scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
}
.col:first-child .col-scroll { padding-left: 0; }
.col:last-child .col-scroll { padding-right: 0; }

/* Side by side, the board screen is a full-height flex column and the scrollers
   take whatever the masthead leaves. That is not a refinement of the fixed
   `100dvh - 220px` above, it is the fix for it: the masthead's height is data
   (a caveat may be there or not, a long handle may wrap) and no constant can
   track it. Get it wrong upward and the columns run off the bottom of a page
   that cannot scroll — `overscroll-behavior: contain` means a pointer over a
   column never chains to the page, so those cards would be unreachable.
   The stacked layout below 861px keeps the fixed height and page-scrolls. */
@media (min-width: 861px) {
  /* height, not min-height: a flex column that is only told a MINIMUM grows to
     fit its children, and children that can grow never have to shrink — the
     scrollers would size to all 578 cards and run off a page that cannot
     scroll. Fixing the height is what forces the shrink back onto them. */
  body[data-screen="board"] .wrap { display: flex; flex-direction: column; height: 100dvh; }
  body[data-screen="board"] main,
  body[data-screen="board"] #screen-board { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .board { flex: 1; min-height: 0; }
  /* min-height on the GRID item, for the same reason min-width: 0 is already on
     it: a grid item's automatic minimum size is its content, so without this the
     row refuses to shrink and 578 cards decide the height of the board. */
  .col { display: flex; flex-direction: column; min-height: 0; }
  .col-scroll { flex: 1; min-height: 0; max-height: none; }
}

/* The column being dragged over washes, exactly like any other list surface.
   The cards keep the page background, so they lift off it without a shadow. */
.col.over .col-scroll { background: var(--wash); }

.col-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 8px;
  margin-bottom: 12px;
  background: var(--bg);
  border-bottom: var(--b-loud);
}
.col-head h3 { font-size: 1rem; line-height: 1; }

/* The select-all box, first thing in the header: it is about every card below,
   so it reads before the title. Hand-drawn (appearance: none) because a native
   checkbox is the one rounded, shadowed control this system cannot re-skin;
   the three states are the selection said back — empty, a bar for "some"
   (indeterminate, script-set only), a check for "all". */
.col-check {
  appearance: none;
  width: 16px;
  height: 16px;
  flex: none;
  display: grid;
  place-items: center;
  border: var(--b);
  background: var(--bg);
  cursor: pointer;
  transition: background-color var(--t);
}
.col-check:hover, .col-check:focus-visible { background: var(--wash); }
.col-check:checked, .col-check:indeterminate { background: var(--ink); }
.col-check:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.col-check:indeterminate::after { content: ""; width: 8px; height: 2px; background: #fff; }
.col-check:disabled { border-color: var(--grid); cursor: default; background: var(--bg); }

/* The column's verdict is worn by the TITLE itself (owner's call, 2026-07-29 —
   the old fill-weight dot said the same thing and said it too quietly to earn
   its square): highlighter treatment, ink text on all three fills — the board's
   own band colours, with amber standing in for "orange" because it is the one
   mid colour this palette sanctions behind black text. */
.col-head h3 { padding: 2px 6px; color: var(--ink); }
.col[data-col="keep"] .col-head h3 { background: var(--ok); }
.col[data-col="unsure"] .col-head h3 { background: var(--amber); }
.col[data-col="unfollow"] .col-head h3 { background: var(--bad); }
/* The filter chip. A control, so it inverts; pressed, it STAYS inverted, which
   is the only way a toggle in this system can show it is on without inventing a
   second vocabulary for it. */
.col-filter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  border: var(--b);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color var(--t), color var(--t);
}
.col-filter:hover, .col-filter:focus-visible { background: var(--ink); color: #fff; }
.col-filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.col-filter[aria-pressed="true"]:hover { background: var(--bg); color: var(--ink); }
.col-filter-n { font-variant-numeric: tabular-nums; opacity: .75; }
/* The pair, as one object. The chips share an edge rather than sitting near
   each other: 1px of overlap so the two borders read as a single outline, and
   the group takes the auto margin so the pair moves as a unit. Nothing here is
   a new shape — it is the same chip twice with the gap taken out, which is the
   difference between "two controls" and "one control with two halves". */
.col-filter-group {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}
.col-filter-group .col-filter { margin-left: 0; }
.col-filter-group .col-filter + .col-filter { margin-left: -1px; }

/* Pressed, the filter is ink-filled — and Move all, attached to it, inherits
   that state visually by sitting inside the same outline, in the amber that
   means "this is the thing being pointed at" everywhere else in the app. It is
   never on screen unless the filter above is pressed, so this styling only
   ever appears next to an inverted chip. */
.col-move-all {
  background: var(--amber);
  border-color: var(--ink);
  color: var(--ink);
}
.col-move-all:hover, .col-move-all:focus-visible { background: var(--ink); color: #fff; }
.col-move-all .col-filter-n { opacity: .6; }
/* The destination pair rides in the same segmented outline, appearing when
   "Move all" is expanded. inline-flex keeps the shared-edge grammar. */
.col-move-dests { display: inline-flex; align-items: center; }
.col-move-dests .col-filter { margin-left: -1px; }
/* With the filter on, the count next to the title would be the WHOLE column
   and read as a contradiction, so it steps aside. */
.col.filtered .col-count { display: none; }

/* Beside the title now, not at the far edge — the chips own the right end of
   the header (the group's auto margin above), so the count reads as part of
   the title: "Keep, 591". */
.col-count {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
}

/* Why the Unfollow column can be empty on a blocked export. */
.col-note {
  border: var(--b-prov);
  padding: 12px 13px;
  margin-bottom: 12px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.col-note b { color: var(--ink); font-weight: 600; }

/* The break between "you decided this" and "we ranked this". */
.pin-divider { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.pin-divider span {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.pin-divider::after { content: ""; flex: 1; height: 1px; background: var(--grid); }

/* An empty column is a place you can put something, so it has to be big enough
   to aim at and marked as provisional. */
.col-empty {
  display: grid;
  place-items: center;
  min-height: 8rem;
  padding: 12px;
  border: var(--b-prov);
  text-align: center;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.more {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: var(--b-hair);
  background: var(--bg);
  color: var(--ink-2);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.more:hover, .more:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }

.sentinel { height: 1px; }

/* ---------------------------------------------------------------------------
   The card
   ---------------------------------------------------------------------------
   The one thing on this screen allowed to be a box, and it earns it because
   nothing around it is one. Three columns: monogram, identity, verdict.
   --------------------------------------------------------------------------- */
.card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: start;
  padding: 9px 10px;
  margin-bottom: 6px;
  border: var(--b);
  background: var(--bg);
  cursor: grab;
  transition: background-color var(--t);
}
/* List items wash, controls invert (see rule 2 at the top of this file):
   inverting a card under a 600-row hover-scan would be violent. */
.card:hover { background: var(--wash); }
.card:focus-visible { background: var(--wash); }
.card:active { cursor: grabbing; }
/* The one sanctioned opacity in the app. It is a drag state, not a hover, and
   it is added a frame late on purpose — see the note in draft.js. */
.card.dragging { opacity: .35; }
/* A pinned card is heavier on the edge it was dragged from. The harness used an
   inset shadow here; there are no shadows in this system. */
.card.pinned { border-left-width: 3px; padding-left: 8px; }

/* Tinted paper, not a rainbow: the library's per-account hue crushed to a wash
   so 1,263 monograms stay scannable without becoming a second colour system. */
.c-mono {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  justify-self: start;
  width: 34px;
  height: 34px;
  text-decoration: none;
  transition: background-color var(--t), color var(--t);
  border: var(--b);
  background: hsl(var(--mh, 0) 38% 92%);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .82rem;
  line-height: 1;
  letter-spacing: .01em;
}
/* It is the select control now, so it inverts on hover like every other
   control here — and STAYS inverted while the card is selected, the same
   pressed grammar as the filter chips. */
.c-mono:hover, .c-mono:focus-visible { background: var(--ink); color: #fff; }

/* Selected: the initials give way to a drawn check (drawn, not typed — the
   embedded fonts are latin-subset and a ✓ would arrive in system-ui), and the
   whole card washes so a scattered selection can be read back at a glance. */
.mono-check { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
.card.sel { background: var(--wash); }
.card.sel .c-mono { background: var(--ink); color: #fff; }
.card.sel .c-mono:hover, .card.sel .c-mono:focus-visible { background: var(--bg); color: var(--ink); }
.card.sel .mono-i { display: none; }
.card.sel .mono-check { display: block; }

/* How long they have been in your following list, under the monogram.
   Deliberately coarse and deliberately quiet: it is context for the numbers to
   the right, not a number of its own. Tabular so a column of them lines up. */
.c-years {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  margin-top: 5px;
  padding: 1px 4px;
  border: var(--b-hair);
  color: var(--ink-3);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.c-id { grid-column: 2; grid-row: 1; min-width: 0; }
.c-name, .c-handle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-name { font-size: .84rem; font-weight: 600; line-height: 1.25; }
/* No monospace anywhere: a handle gets its code-ness from tracking. */
.c-handle { font-size: .74rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); line-height: 1.3; }
.c-id.solo .c-handle { font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
/* Name and handle are both the profile link now — two spellings of one
   identity, one destination, one hover grammar. */
.c-name a, .c-handle a { text-decoration: none; }
.c-name a:hover, .c-name a:focus-visible,
.c-handle a:hover, .c-handle a:focus-visible { background: var(--ink); color: #fff; }

.c-meta { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 9px; padding-top: 2px; }

/* ---- the three marks ----
   Colour says WHEN, the glyph says WHAT. Both are needed: the fills are the
   fastest read on the card, and the glyph is what is left when someone cannot
   tell them apart. Every mark also carries its state in its title/aria text, so
   nothing here is ONLY a colour.

   All three slots are always drawn, present or not. A variable number of icons
   would make every row a different shape and the column unscannable; an absent
   mark is a hairline outline with a faded glyph, which reads as "no" at a glance
   without competing with the ones that read as "yes". */
.c-marks { display: flex; align-items: center; gap: 4px; flex: none; }
.mk {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.mk svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }

.mk.m-active { background: var(--ok); }
.mk.m-fading { background: var(--mid); }
.mk.m-cold { background: var(--bad); }
/* On, but with no recency to report: close friends is a list, not a moment, so
   it takes the ink treatment rather than a colour that would imply a date. */
.mk.m-on { background: var(--ink); color: #fff; }
/* Real contact, no date anywhere in the export. Dashed is this system's word
   for provisional, and inventing a colour here would be inventing a date. */
.mk.m-undated { border-style: dashed; background: var(--bg); }
/* Absent: still a slot, but it recedes. */
.mk.m-none { border-color: var(--grid); color: var(--grid); }

/* The mark that stands where a score would. Outlined rather than filled: it is
   a statement about which way the relationship points, not a verdict with a
   number behind it, and filling it would put it in the same visual class as the
   three bands. */
.c-stalk {
  display: grid;
  place-items: center;
  width: 26px;
  height: 22px;
  border: var(--b);
  color: var(--ink);
}
.c-stalk svg { width: 16px; height: 16px; fill: currentColor; }
/* A hairline left edge marks the whole card as a different kind of row without
   spending a colour on it. */
.card.stalker { border-left-width: 3px; padding-left: 8px; }
.card.stalker.pinned { border-left-width: 3px; }

/* ---- the score ----
   The card's headline number, and the one place a continuous scale collapses
   into a verdict: three bands, three fills, black text on all of them. Ink on
   colour rather than white on colour because these are small numerals and the
   greens dark enough to carry white text are too dark to read as green. */
.c-score {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 1px 7px;
  border: var(--b);
  font-variant-numeric: tabular-nums;
}
.c-score.b-keep { background: var(--ok); }
.c-score.b-unsure { background: var(--mid); }
.c-score.b-unfollow { background: var(--bad); }

.c-why {
  grid-column: 2;
  grid-row: 2;
  font-size: .73rem;
  line-height: 1.35;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* There are no per-card move buttons. A card is a drag handle and a way into
   the drawer; the pointer route to moving one is the drag it already looks like
   it wants. Keyboard still moves a card with the arrow keys, and touch — where
   HTML5 drag-and-drop never fires at all — moves it from the drawer's column
   switcher, which is why that control is not optional. */

/* The landing flash — background-color only, so nothing moves. */
@keyframes flash { from { background-color: var(--amber); } }
.card.just-moved { animation: flash .9s var(--e); }

/* The drag placeholder. Sized to the card being dragged (Trellis's fixed 40px
   mismatches every tall card) and dashed, because "a card would go here" is
   the definition of provisional. */
.ph {
  height: var(--ph-h, 64px);
  margin-bottom: 6px;
  border: var(--b-prov);
  background: var(--wash);
}

/* ---------------------------------------------------------------------------
   THE DRAWER
   ---------------------------------------------------------------------------
   A native <dialog> opened with showModal(), which hands over the four things a
   hand-rolled drawer always gets wrong — focus trap, Esc, an inert background
   and top-layer stacking — and nothing below re-implements any of them.

   It is the app's one modal surface, so it is allowed one loud edge: a 2px left
   border and nothing else. No shadow lifts it off the page; the dimmed
   ::backdrop does that, the same way the reversed warning block separates
   itself from a reading screen.
   --------------------------------------------------------------------------- */
dialog {
  width: min(460px, 92vw);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;                /* flush to the right edge, full height */
  padding: 0;
  overflow: hidden;                  /* .dw does the scrolling — see ::after */
  border: 0;
  border-left: var(--b-loud);
  background: var(--bg);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform .18s var(--e);
}
dialog.slid { transform: none; }
dialog::backdrop { background: rgba(11, 11, 12, .55); }

/* The grain, and the only copy of it in this file. A modal <dialog> paints in
   the TOP LAYER, above body::after, so without this the drawer would be the one
   ungrained surface in the app — which nobody can name but everybody can see.
   It is a child of the dialog rather than of the scroller, so it stays put while
   the content moves under it. */
dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035;
  mix-blend-mode: multiply;
}

/* The export instructions. The account drawer is a drawer because it is ABOUT
   something on the board behind it — you keep the board in view and slide the
   detail in beside it. This is about a different application entirely, and
   nothing behind it is worth keeping in view while you read it, so it takes the
   middle of the screen and the page dims out of the way.

   It undoes the drawer rule rather than escaping it: same <dialog>, same
   backdrop, same grain, all four borders instead of one, and it grows to its
   content rather than to the window. Wider than the drawer for one reason:
   `.steps` is a hanging-indent list with a rail down its left, and at 460px the
   four sentences wrap often enough to lose the shape that makes them steps. */
#metaHelp {
  width: min(600px, 92vw);
  /* fit-content, NOT auto. A modal dialog is `position: fixed; inset: 0` in the
     UA sheet, and `height: auto` against a fixed box with both insets set means
     "fill the viewport" — which is how the drawer gets its full height for
     free. The UA's own centring depends on `height: fit-content`, so putting it
     back is what makes this box shrink to its four steps. */
  height: fit-content;
  max-height: min(84dvh, 780px);
  margin: auto;                      /* undoes the drawer's `0 0 0 auto` */
  border: var(--b-loud);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .18s var(--e), opacity .18s var(--e);
}
#metaHelp.slid { transform: none; opacity: 1; }

/* The Unsure heads-up and the board-entry question: metaHelp's centred-modal
   geometry, one size down. */
#unsureCheck, #boardIntro {
  width: min(480px, 92vw);
  height: fit-content;               /* same UA-sheet trap as #metaHelp above */
  margin: auto;
  border: var(--b-loud);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .18s var(--e), opacity .18s var(--e);
}
#unsureCheck.slid, #boardIntro.slid { transform: none; opacity: 1; }
.unsure-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dw.help {
  height: auto;
  max-height: min(84dvh, 780px);
  padding-bottom: clamp(18px, 3.4vw, 26px);
}
.help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.dw.help h2 { margin-top: 4px; }
.dw.help .note { margin-top: 10px; max-width: none; }
.dw.help .steps { margin-top: 22px; max-width: none; }
.help-foot { margin-top: 26px; }

.dw {
  --dw-pad: clamp(16px, 3.4vw, 26px);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3.4vw, 26px) var(--dw-pad) 0;
}
.dw:focus { outline: none; }         /* it is focused on open, not tabbed to */

/* ---- header ---- */
/* The display name is INTER 700, not Anton, and that is a rule rather than a
   preference: a display name is arbitrary user text, and Anton is an
   uppercase-only latin face. A CJK or emoji name set in it is a broken
   rendering. Anton gets the score instead — a number we generate. */
.dw-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; gap: 14px; align-items: start; }
.dw-mono {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: var(--b);
  background: hsl(var(--mh, 0) 38% 92%);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
}
.dw-id { min-width: 0; padding-top: 2px; }
.dw-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
/* An account with no harvested display name puts its handle in the name slot,
   where it keeps the handle's wider tracking rather than pretending to be a
   name. Still the link, still the only keyboard route to a profile. */
.dw-name a.as-name { text-decoration: none; letter-spacing: .02em; padding: 2px 3px; margin-left: -3px; }
.dw-name a.as-name:hover, .dw-name a.as-name:focus-visible { background: var(--ink); color: #fff; }

/* On the board the profile link is tabindex="-1" so a card stays one tab stop,
   which makes this the only keyboard route to a profile in the whole app. */
.dw-handle { display: block; margin-top: 4px; }
.dw-handle a {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  padding: 2px 3px;
  margin-left: -3px;
  transition: background-color var(--t), color var(--t);
}
.dw-handle a:hover, .dw-handle a:focus-visible { background: var(--ink); color: #fff; }

.dw-x {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: var(--b-loud);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  transition: background-color var(--t), color var(--t);
}
.dw-x:hover, .dw-x:focus-visible { background: var(--ink); color: #fff; }

/* ---- the verdict sentence ---- */
/* The tier, in the colour its verdict deserves. The highlighter was amber for
   every account, which made the app's clearest sentence its least informative
   pixel — "very engaged" and "feed clutter" looked identical until you read
   them. Silent stays neutral on purpose: it is not a bad verdict, it is the
   absence of one, and painting it red would claim evidence we do not have. */
.hl.t-protected { background: var(--ok); }
.hl.t-engaged { background: var(--mid); }
.hl.t-clutter { background: var(--bad); }
.hl.t-silent { background: var(--grid); }

.dw-verdict { margin-top: 20px; color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
/* The highlighter, inline this time: a marker stroke behind the tier word. */
.hl {
  font-style: normal;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  padding: 0 .18em;
}

/* ---- the mini tile strip ---- */
/* The masthead's .tiles device at drawer scale. Score takes the Anton treatment
   and is the largest thing in here; last contact gets the leftover width
   because it is the only value that can be a word. */
.dw-tiles {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  border-block: var(--b-loud);
  padding: 14px 0;
  margin-top: 22px;
}
.dw-tiles .tile { padding: 0 14px; }
.dw-tiles .tile:first-child { padding-left: 0; }
.dw-tiles .val { font-size: 1.4rem; margin-top: 3px; }
.dw-tiles .tile.score .val {
  font-size: 2.6rem;
  line-height: .92;
  /* The one number the whole drawer is about, wearing its band. Padded and
     bordered so the fill reads as a deliberate block rather than a highlight
     that has slipped behind the digits. */
  display: inline-block;
  border: var(--b);
  padding: 2px 10px 4px;
}
.dw-tiles .tile.b-keep .val { background: var(--ok); }
.dw-tiles .tile.b-unsure .val { background: var(--mid); }
.dw-tiles .tile.b-unfollow .val { background: var(--bad); }
.dw-tiles .sub { font-size: .66rem; line-height: 1.35; margin-top: 3px; }

/* ---- section furniture inside the drawer ---- */
.dw-sec { margin-top: 26px; }
.dw-sec > .micro { margin-bottom: 2px; }

/* ---- the signed-points table ---- */
/* Polarity is carried by POSITION, WEIGHT and MARK — never by red and green,
   even now that the card next door has a traffic light on it. Two reasons it
   stays that way: a negative line is not an error, it is evidence; and the score
   at the bottom of this table is ALREADY coloured by band, so colouring each
   contributing line as well would say each one had a verdict of its own.

   A positive line (earns points, argues for keeping) gets the magenta edge and a
   black 700 numeral; a negative one recedes to a grey edge and --ink-3 600. The
   bar is 2px and left-aligned so it reads as a rule under the numeral rather
   than as a chart nobody asked for. */
.pts { width: 100%; border-collapse: collapse; margin-top: 10px; }
.pts td { border-bottom: 1px solid var(--hair); padding: 9px 0; vertical-align: baseline; }
.pts .n {
  width: 1%;
  white-space: nowrap;
  padding-left: 11px;
  padding-right: 13px;
  font-size: .84rem;
}
.pts .l { font-size: .8rem; line-height: 1.4; color: var(--ink-2); }
.pts .b { width: 62px; padding-left: 12px; }
.pts .bar {
  display: block;
  height: 2px;
  width: calc(var(--w, 0) * 1%);
  min-width: 2px;
  background: var(--grid);
}
.pts tr.pos .n { border-left: 3px solid var(--magenta); color: var(--ink); font-weight: 700; }
.pts tr.pos .bar { background: var(--magenta); }
.pts tr.neg .n { border-left: 3px solid var(--grid); color: var(--ink-3); font-weight: 600; }

/* The baseline: the line every other line is measured from, so it is set apart
   from both polarities rather than dressed as a gain. */
.pts tr.base .n { border-left: 3px solid var(--ink); color: var(--ink); font-weight: 700; }
.pts tr.base .l { color: var(--ink); }
.pts tr.base td { border-bottom: var(--b); }

/* The score is clamped to 0-100, so on a strongly protected account the lines
   above genuinely do not add up to it. Say so in a row of its own rather than
   quietly printing a total that is not the sum of anything. */
.pts tr.clamp .n { border-left: 3px solid transparent; color: var(--ink-2); font-weight: 600; }
.pts tr.clamp .l { color: var(--ink-3); font-size: .72rem; }

/* The reversed moment: the loudest treatment in the system lands on the most
   important number in the app. The band shows up as the numeral's own colour
   against the ink, which is the only way to keep both the reversal and the
   traffic light without one of them cancelling the other. */
.pts tr.tot td { background: var(--ink); color: #fff; border-bottom: 0; padding: 12px 0; }
.pts tr.tot .n { border-left: 3px solid var(--ink); color: var(--pink); font-weight: 700; font-size: 1.1rem; }
.pts tr.tot.b-keep .n { color: var(--ok); }
.pts tr.tot.b-unsure .n { color: var(--mid); }
.pts tr.tot.b-unfollow .n { color: var(--bad); }
.pts tr.tot .l {
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---- reasons ---- */
/* The upload screen's numbered-list device, without the numbers. */
.rail { list-style: none; border-left: var(--b-loud); padding-left: 17px; margin-top: 12px; }
.rail li { position: relative; padding: 8px 0; font-size: .82rem; line-height: 1.45; color: var(--ink-2); }
.rail li::before {
  content: "";
  position: absolute;
  left: -21px; top: 1.05em;
  width: 7px; height: 7px;
  background: var(--magenta);
  outline: 1.5px solid var(--ink);
}

/* ---- signals ---- */
.sig { width: 100%; border-collapse: collapse; margin-top: 10px; }
.sig th {
  text-align: left;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--hair);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sig td { border-bottom: 1px solid var(--hair); padding: 7px 0; font-size: .8rem; color: var(--ink); }
.sig th + th, .sig td + td { width: 1%; text-align: right; padding-left: 12px; white-space: nowrap; }
.sig td + td { color: var(--ink-3); }
.dw-age { margin-top: 10px; }
.dw-empty { margin-top: 10px; font-size: .82rem; color: var(--ink-2); }

/* ---- the column switcher ---- */
/* Sticky, because the drawer is long and the whole point of reading it is to
   then decide. In flow it would sit below reasons and signals, which on a
   1,263-account board means scrolling to make every single call. */
/* Full-bleed rather than inset, for two reasons: its 2px top edge then reads as
   a floor under the drawer instead of a rule inside it, and its background has
   to cover the whole width — the .rail's markers sit slightly outside the
   content box by design, and they would otherwise poke out from behind it. */
.dw-switch {
  position: sticky;
  bottom: 0;
  margin: 26px calc(var(--dw-pad) * -1) 0;
  padding: 12px var(--dw-pad) 13px;
  background: var(--bg);
  border-top: var(--b-loud);
}
.dw-switch .micro { margin-bottom: 8px; }
.dw-sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw {
  border: var(--b);
  background: var(--bg);
  color: var(--ink);
  padding: 10px 4px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color var(--t), color var(--t);
}
.sw:hover, .sw:focus-visible { background: var(--ink); color: #fff; }
/* Where it already is. Amber, and it stays amber under the pointer: there is
   nothing to press here. */
.sw[aria-pressed="true"] { background: var(--amber); color: var(--ink); cursor: default; }
.sw[aria-pressed="true"]:hover { background: var(--amber); color: var(--ink); }

.dw-fine { padding: 12px 0 20px; }

/* ---------------------------------------------------------------------------
   THE UNDO TOAST
   ---------------------------------------------------------------------------
   Reversed, flush into the bottom-left corner, no border and nothing floating:
   it is a strip the page slides out from under itself, not a card. UNDO is the
   third and final sanctioned use of reversed --pink (the others: a high score
   badge, and the score in the points table's total row).

   z-index sits UNDER body::after on purpose, so the grain runs across it like
   everything else.
   --------------------------------------------------------------------------- */
.toast {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(430px, 100%);
  padding: 9px 14px;
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  animation: toastin .18s var(--e);
}
.toast-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-msg b { font-weight: 600; letter-spacing: .02em; }
.toast-undo {
  flex: none;
  margin-left: auto;
  padding: 5px 7px;
  color: var(--pink);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color var(--t), color var(--t);
}
.toast-undo:hover, .toast-undo:focus-visible { background: var(--pink); color: var(--ink); }
.toast-undo:focus-visible { outline-color: #fff; }
/* It sits in the bar now instead of sliding in from the viewport edge, so it
   arrives rather than travels — a strip that shoves the bar's own contents
   around every time you move a card is a strip you learn to dread. */
@keyframes toastin { from { opacity: 0; } }

/* ---------------------------------------------------------------------------
   Tooltip
   ---------------------------------------------------------------------------
   One node for the whole board. Reversed, because it is transient and has to
   read instantly over a page of white cards, and because the only other
   reversed things here — the blocking warning, the score total, the toast — are
   also things that interrupt.

   position:fixed and outside .wrap on purpose: the columns are scrollers, and a
   scroller clips both axes, so a tooltip drawn inside one would be cut off at
   the column edge. Coordinates arrive as custom properties, never as `left`
   and `top` in a style attribute — the CSP forbids that attribute outright.
   --------------------------------------------------------------------------- */
.tip {
  position: fixed;
  left: var(--tip-x, 0);
  top: var(--tip-y, 0);
  z-index: 50;                  /* over the grain, under the drawer */
  max-width: 30ch;
  padding: 8px 11px;
  background: var(--ink);
  color: #fff;
  font-size: .76rem;
  line-height: 1.4;
  pointer-events: none;         /* never steals the hover that summoned it */
}

/* ===========================================================================
   BRAND B: THE APP SCREENS (docs/BRAND.md)
   ---------------------------------------------------------------------------
   Working, board, handoff, the drawer and the help dialogs. Rounded and soft:
   cards --r with --sh-1, tinted pill column headers, circular avatars, pill
   chips, the --grad pill for the one primary action, a gradient progress bar.
   Anton only on the masthead numbers and h1s. The traffic light (--ok, --mid,
   --bad) stays on score, recency marks and tier highlights only.
   Everything is screen-scoped so the shared base components stay untouched.
   The older rules above are the structure (grids, sticky heads, drag states);
   this block is the skin and wins by specificity.
   =========================================================================== */

/* micro-labels on these screens: plain Inter, no wide tracking */
:is(#screen-working, .xp-working) .micro, :is(#screen-board, .xp-frame) .micro, :is(#screen-handoff, .xp-hand) .micro,
.help-head .micro, .dw .micro {
  font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2);
}
.help-head .micro { color: var(--pink); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---- working ---- */
:is(#screen-working, .xp-working) .work-bar { height: 12px; border-radius: var(--r-pill); background: var(--lavender); }
:is(#screen-working, .xp-working) .work-fill { border-radius: var(--r-pill); background-image: var(--grad); background-size: 62ch 100%; }
:is(#screen-working, .xp-working) .work-steps {
  margin-top: 22px; padding: 4px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1);
}
:is(#screen-working, .xp-working) .wstep { border-bottom-color: var(--line); grid-template-columns: 18px minmax(0, 1fr) auto; }
:is(#screen-working, .xp-working) .wmark {
  width: 16px; height: 16px; border-radius: 50%; outline: 0;
  border: 2px solid var(--pink); background: #fff;
}
:is(#screen-working, .xp-working) .wstep.done .wmark { border: 0; background: var(--grad); position: relative; }
:is(#screen-working, .xp-working) .wstep.done .wmark::after {
  content: ""; position: absolute; left: 4px; top: 2px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
:is(#screen-working, .xp-working) .btn.next {
  background: var(--grad); color: #fff; border: 0; border-radius: var(--r-pill);
  padding: 13px 34px; font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  box-shadow: var(--sh-1);
  transition: transform var(--t), filter var(--t);
}
:is(#screen-working, .xp-working) .btn.next:hover, :is(#screen-working, .xp-working) .btn.next:focus-visible, .xp-frame .btn.next.xp-h { background: var(--grad); color: #fff; filter: brightness(1.06); transform: translateY(-2px); }
:is(#screen-working, .xp-working) .btn.next:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ---- masthead ---- */
:is(#screen-board, .xp-frame) .rule-ig, .rule-ig { height: 3px; border-radius: var(--r-pill); }
:is(#screen-board, .xp-frame) .tiles { gap: 10px; padding: 14px 0 10px; }
:is(#screen-board, .xp-frame) .tile { border-left: 0; border-radius: var(--r); padding: 10px 18px; }
:is(#screen-board, .xp-frame) .tiles > :first-child { padding: 0 14px 0 2px; background: none; }
:is(#screen-board, .xp-frame) .tiles > .tile:nth-child(2) { background: var(--cream); }
:is(#screen-board, .xp-frame) .tiles > .tile:nth-child(3) { background: var(--blush); }
:is(#screen-board, .xp-frame) .tiles > .tile:nth-child(4) { background: var(--lavender); }
:is(#screen-board, .xp-frame) .tile .cap { font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
:is(#screen-board, .xp-frame) .own-face { border: 2px solid #fff; box-shadow: var(--sh-1); width: 60px; height: 60px; }
:is(#screen-board, .xp-frame) .own-mono { background: hsl(var(--mh, 0) 55% 90%); }

:is(#screen-board, .xp-frame) .actionrule { border-bottom: 0; padding: 4px 0 6px; }
:is(#screen-board, .xp-frame) .queue-n { font-family: var(--font-display); }
:is(#screen-board, .xp-frame) .btn.danger { border: 1.5px solid var(--line); box-shadow: none; color: var(--ink-2); background: #fff; }
:is(#screen-board, .xp-frame) .btn.danger:hover, :is(#screen-board, .xp-frame) .btn.danger:focus-visible { background: var(--blush); color: var(--ink); }

/* ---- warnings ---- */
.warn.blocking { border-radius: var(--r); padding: 16px 20px; }
.warn.blocking .warn-code { color: var(--yellow); letter-spacing: .06em; }
.warn.info { border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); overflow: hidden; }
.warn.info summary:hover, .warn.info summary:focus-visible { background: var(--wash); color: var(--ink); }
.warn.info summary:hover .warn-code, .warn.info summary:focus-visible .warn-code { color: var(--ink-3); }
.warn.info[open] summary { border-bottom: 1px solid var(--line); }
.warn-code { letter-spacing: .06em; }

/* ---- columns ---- */
:is(#screen-board, .xp-frame) .board { gap: 14px; }
:is(#screen-board, .xp-frame) .col { border-radius: var(--r-lg); overflow: hidden; background: var(--col-bg); }
:is(#screen-board, .xp-frame) .col + .col { border: 0; }
:is(#screen-board, .xp-frame) .col:is([data-col="keep"], [data-xp-col="keep"]) { --col-bg: var(--col-keep); --col-pill: var(--pill-keep); }
:is(#screen-board, .xp-frame) .col:is([data-col="unsure"], [data-xp-col="unsure"]) { --col-bg: var(--col-unsure); --col-pill: var(--pill-unsure); }
:is(#screen-board, .xp-frame) .col:is([data-col="unfollow"], [data-xp-col="unfollow"]) { --col-bg: var(--col-unfollow); --col-pill: var(--pill-unfollow); }
:is(#screen-board, .xp-frame) .col-scroll,
:is(#screen-board, .xp-frame) .col:first-child .col-scroll,
:is(#screen-board, .xp-frame) .col:last-child .col-scroll { padding: 0 12px 14px; }
:is(#screen-board, .xp-frame) .col-scroll::-webkit-scrollbar { width: 12px; }
:is(#screen-board, .xp-frame) .col-scroll::-webkit-scrollbar-track { background: transparent; border: 0; }
:is(#screen-board, .xp-frame) .col-scroll::-webkit-scrollbar-thumb { background: rgba(20,17,15,.22); border: 3px solid var(--col-bg); border-radius: var(--r-pill); }
:is(#screen-board, .xp-frame) .col-scroll::-webkit-scrollbar-thumb:hover { background: rgba(20,17,15,.4); }
:is(#screen-board, .xp-frame) .col.over { box-shadow: inset 0 0 0 2px var(--pink); }
:is(#screen-board, .xp-frame) .col.over .col-scroll { background: var(--wash); }
:is(#screen-board, .xp-frame) .col-head {
  background: var(--col-bg); border-bottom: 0; padding: 12px 0 10px; margin-bottom: 4px; gap: 8px;
}
:is(#screen-board, .xp-frame) .col-head h3 {
  background: var(--col-pill); border-radius: var(--r-pill); padding: 4px 12px 5px;
  font-size: .95rem; letter-spacing: .02em;
}
:is(#screen-board, .xp-frame) .col-count { font-size: .95rem; color: var(--ink-2); }
:is(#screen-board, .xp-frame) .col-check { width: 18px; height: 18px; border: 1.5px solid var(--ink-3); border-radius: 6px; background: #fff; }
:is(#screen-board, .xp-frame) .col-check:hover, :is(#screen-board, .xp-frame) .col-check:focus-visible { background: var(--wash); }
:is(#screen-board, .xp-frame) .col-check:checked, :is(#screen-board, .xp-frame) .col-check:indeterminate { background: var(--pink); border-color: var(--pink); }
:is(#screen-board, .xp-frame) .col-check:disabled { border-color: var(--line); background: #fff; }

:is(#screen-board, .xp-frame) .col-filter {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  font-size: .74rem; font-weight: 600; letter-spacing: 0; text-transform: none;
}
:is(#screen-board, .xp-frame) .col-filter:hover, :is(#screen-board, .xp-frame) .col-filter:focus-visible,
.xp-frame .col-filter.xp-h { background: var(--wash); color: var(--ink); }
:is(#screen-board, .xp-frame) .col-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
:is(#screen-board, .xp-frame) .col-filter[aria-pressed="true"]:hover { background: var(--ink); color: #fff; }
:is(#screen-board, .xp-frame) .col-filter-group { gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
:is(#screen-board, .xp-frame) .col-filter-group .col-filter + .col-filter { margin-left: 0; }
:is(#screen-board, .xp-frame) .col-move-all { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
:is(#screen-board, .xp-frame) .col-move-all:hover, :is(#screen-board, .xp-frame) .col-move-all:focus-visible { background: var(--yellow); filter: brightness(.96); color: var(--ink); }
:is(#screen-board, .xp-frame) .col-move-dests { gap: 5px; flex-wrap: wrap; }
:is(#screen-board, .xp-frame) .col-move-dests .col-filter { margin-left: 0; }
:is(#screen-board, .xp-frame) .copy-dests { margin-left: 0; }

:is(#screen-board, .xp-frame) .col-note { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
:is(#screen-board, .xp-frame) .pin-divider span { font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
:is(#screen-board, .xp-frame) .pin-divider::after { background: var(--line); }
:is(#screen-board, .xp-frame) .col-empty {
  border: 1.5px dashed rgba(20,17,15,.18); border-radius: var(--r);
  font-size: .85rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
:is(#screen-board, .xp-frame) .more {
  border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none;
}
:is(#screen-board, .xp-frame) .more:hover, :is(#screen-board, .xp-frame) .more:focus-visible { background: var(--wash); border-color: var(--line); color: var(--ink); }

/* ---- cards ---- */
:is(#screen-board, .xp-frame) .card {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh-1);
  padding: 8px 10px; margin-bottom: 7px;
}
:is(#screen-board, .xp-frame) .card:hover, :is(#screen-board, .xp-frame) .card:focus-visible,
.xp-frame .card.xp-h { background: var(--wash); }
:is(#screen-board, .xp-frame) .card.sel { background: var(--wash); border-color: var(--pink); }
:is(#screen-board, .xp-frame) .card.pinned { border-left-width: 3px; border-left-color: var(--pink); padding-left: 8px; }
:is(#screen-board, .xp-frame) .card.stalker, :is(#screen-board, .xp-frame) .card.stalker.pinned { border-left-width: 3px; border-left-color: var(--purple); padding-left: 8px; }
:is(#screen-board, .xp-frame) .c-mono {
  border: 0; border-radius: 50%; background: hsl(var(--mh, 0) 55% 90%);
  font-size: .8rem; letter-spacing: .02em;
}
:is(#screen-board, .xp-frame) .c-mono:hover, :is(#screen-board, .xp-frame) .c-mono:focus-visible,
.xp-frame .c-mono.xp-h { background: var(--pink); color: #fff; }
:is(#screen-board, .xp-frame) .card.sel .c-mono { background: var(--grad); color: #fff; }
:is(#screen-board, .xp-frame) .card.sel .c-mono:hover, :is(#screen-board, .xp-frame) .card.sel .c-mono:focus-visible { background: var(--grad); color: #fff; filter: brightness(1.08); }
:is(#screen-board, .xp-frame) .c-years { border: 0; border-radius: var(--r-pill); background: var(--lavender); color: var(--ink-2); padding: 1px 6px; }
:is(#screen-board, .xp-frame) .c-name a:hover, :is(#screen-board, .xp-frame) .c-name a:focus-visible,
:is(#screen-board, .xp-frame) .c-handle a:hover, :is(#screen-board, .xp-frame) .c-handle a:focus-visible { background: none; color: var(--pink); text-decoration: underline; }
:is(#screen-board, .xp-frame) .mk { border: 0; border-radius: 50%; }
:is(#screen-board, .xp-frame) .mk.m-undated { border: 1.5px dashed var(--ink-3); background: #fff; }
:is(#screen-board, .xp-frame) .mk.m-none { background: #f3eff5; color: #d6cfdb; border: 0; }
:is(#screen-board, .xp-frame) .c-stalk { border: 0; border-radius: var(--r-pill); background: var(--lavender); color: var(--purple); }
:is(#screen-board, .xp-frame) .c-score { border: 0; border-radius: var(--r-pill); padding: 1px 9px; }
:is(#screen-board, .xp-frame) .ph { border: 1.5px dashed var(--pink); border-radius: var(--r); background: var(--wash); }
@keyframes flash { from { background-color: var(--yellow); } }

/* ---- action bar ---- */
:is(#screen-board, .xp-frame) .actionbar { border-top: 0; background: transparent; padding-top: 14px; }
:is(#screen-board, .xp-frame) .go, :is(#screen-handoff, .xp-hand) .go {
  border: 0; border-radius: var(--r-pill); background: var(--grad); color: #fff;
  box-shadow: var(--sh-1);
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  transition: transform var(--t), filter var(--t);
}
:is(#screen-board, .xp-frame) .go:hover, :is(#screen-board, .xp-frame) .go:focus-visible, .xp-frame .go.xp-h,
:is(#screen-handoff, .xp-hand) .go:hover, :is(#screen-handoff, .xp-hand) .go:focus-visible { background: var(--grad); color: #fff; filter: brightness(1.06); transform: translateY(-2px); }
:is(#screen-board, .xp-frame) .go:focus-visible, :is(#screen-handoff, .xp-hand) .go:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
:is(#screen-board, .xp-frame) .go .go-sub, :is(#screen-handoff, .xp-hand) .go .go-sub { color: rgba(255,255,255,.92); font-size: .72rem; font-weight: 600; letter-spacing: 0; }
:is(#screen-board, .xp-frame) .go:hover .go-sub, :is(#screen-board, .xp-frame) .go:focus-visible .go-sub { color: #fff; }
:is(#screen-board, .xp-frame) .go[disabled], :is(#screen-handoff, .xp-hand) .go[disabled] { background: var(--line); color: var(--ink-3); box-shadow: none; filter: none; transform: none; }
:is(#screen-board, .xp-frame) .go[disabled] .go-sub { color: var(--ink-3); }
:is(#screen-board, .xp-frame) .actionbar-note { font-size: .82rem; }

/* ---- toast, tooltip ---- */
.toast { border-radius: var(--r); box-shadow: var(--sh-2); padding: 10px 14px; }
.toast-undo { color: var(--yellow); border-radius: var(--r-pill); font-size: .8rem; letter-spacing: 0; text-transform: none; padding: 5px 12px; }
.toast-undo:hover, .toast-undo:focus-visible { background: var(--yellow); color: var(--ink); }
.toast-undo:focus-visible { outline-color: #fff; }
.tip { border-radius: var(--r-sm); box-shadow: var(--sh-2); }

/* ---- drawer + help dialogs ---- */
dialog { border-left: 0; border-radius: var(--r-lg) 0 0 var(--r-lg); box-shadow: var(--sh-2); }
dialog::after { display: none; }
dialog::backdrop { background: rgba(20,17,15,.4); }
#metaHelp, #unsureCheck, #boardIntro { border: 0; border-radius: var(--r-lg); }
.dw-x {
  width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff;
  font-size: 1.1rem; box-shadow: none;
}
.dw-x:hover, .dw-x:focus-visible { background: var(--wash); color: var(--ink); }
.dw-mono { border: 0; border-radius: 50%; background: hsl(var(--mh, 0) 55% 90%); }
.dw-name a.as-name:hover, .dw-name a.as-name:focus-visible,
.dw-handle a:hover, .dw-handle a:focus-visible { background: none; color: var(--pink); text-decoration: underline; }
.dw-handle a { font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hl { border-radius: 6px; padding: 0 .3em; }
.dw-tiles { border: 0; background: var(--cream); border-radius: var(--r); padding: 14px 16px; }
.dw-tiles .tile { border-left: 0; }
.dw-tiles .tile.score .val { border: 0; border-radius: var(--r-sm); }
.dw .tile .cap { font-size: .75rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.dw-switch { border-top: 1px solid var(--line); box-shadow: 0 -8px 16px rgba(20,17,15,.04); }
.sw {
  border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 9px 4px;
  font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 600;
}
.sw:hover, .sw:focus-visible { background: var(--wash); color: var(--ink); }
.sw[aria-pressed="true"], .sw[aria-pressed="true"]:hover { background: var(--yellow); border-color: var(--ink); }
.dw.help .steps .say, dialog .say { background: var(--yellow); border-radius: 6px; padding: 0 5px; color: var(--ink); font-weight: 600; }
.dw.help h2 { font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1.35rem; line-height: 1.25; }

/* drawer furniture: soft rail, rounded total */
.dw .rail { border-left: 2px solid var(--line); }
.dw .rail li::before { border-radius: 50%; outline: 0; background: var(--grad); }
.dw .pts tr.base td { border-bottom: 1px solid var(--line); }
.dw .pts tr.tot td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); padding-left: 10px; }
.dw .pts tr.tot td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.dw .pts .bar { border-radius: var(--r-pill); }

/* help dialog steps: soft numbered circles instead of the rail */
.dw.help .steps { border-left: 0; padding-left: 0; }
.dw.help .steps li::before { display: none; }
.dw.help .steps .n {
  width: 1.7rem; height: 1.7rem; margin-right: 1rem; border-radius: 50%;
  display: inline-grid; place-items: center; vertical-align: -.1rem;
  background: var(--lavender); color: var(--ink-2); font-size: .68rem; letter-spacing: 0;
}
.dw.help .steps a.say:hover, .dw.help .steps a.say:focus-visible { background: var(--yellow); color: var(--ink); }

/* ---- handoff ---- */
:is(#screen-handoff, .xp-hand) .hand-steps { border-left: 0; padding-left: 0; margin-top: 24px; }
:is(#screen-handoff, .xp-hand) .hand-step {
  grid-template-columns: 2.6rem minmax(0, 1fr);
  margin-bottom: 12px; padding: 16px 18px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1);
}
:is(#screen-handoff, .xp-hand) .hand-step:last-child { border-bottom: 1px solid var(--line); }
:is(#screen-handoff, .xp-hand) .hand-step::before { display: none; }
:is(#screen-handoff, .xp-hand) .hand-step[data-state="now"] { border-color: var(--pink); box-shadow: 0 0 0 3px var(--wash), var(--sh-1); }
:is(#screen-handoff, .xp-hand) .hand-step[data-state="done"] { background: var(--cream); }
:is(#screen-handoff, .xp-hand) .hand-n {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; background: var(--lavender); color: var(--ink-2);
  font-size: .72rem; font-weight: 700; letter-spacing: 0;
}
:is(#screen-handoff, .xp-hand) .hand-step[data-state="now"] .hand-n { background: var(--grad); color: #fff; }
:is(#screen-handoff, .xp-hand) .hand-step[data-state="done"] .hand-n { background: var(--ink); color: #fff; }
:is(#screen-handoff, .xp-hand) .hand-body h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
:is(#screen-handoff, .xp-hand) .hand-mini .say, :is(#screen-handoff, .xp-hand) .hand-body .say { background: var(--yellow); border-radius: 6px; }
:is(#screen-handoff, .xp-hand) .hand-tick {
  border: 0; border-radius: var(--r-pill); padding: 8px 16px;
  font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 700;
}
:is(#screen-handoff, .xp-hand) .hand-tick svg { stroke-linecap: round; stroke-linejoin: round; }
:is(#screen-handoff, .xp-hand) .hand-mutual { border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); }
:is(#screen-handoff, .xp-hand) .hand-mutual input { accent-color: var(--pink); }
:is(#screen-handoff, .xp-hand) .pv-face, :is(#screen-handoff, .xp-hand) .pv-more { border: 0; border-radius: 50%; background: hsl(var(--mh, 0) 55% 90%); }
:is(#screen-handoff, .xp-hand) .pv-more { width: auto; min-width: 30px; padding: 0 9px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
:is(#screen-handoff, .xp-hand) .hand-foot { border-top: 1px solid var(--line); }
#toolbarArrow svg { stroke: var(--pink); stroke-linecap: round; }
#toolbarArrow p { background: var(--yellow); border: 1.5px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-sticker); transform: rotate(-2deg); }


/* ---------------------------------------------------------------------------
   Dev banner — draft-only, deleted on promotion to site/app/
   --------------------------------------------------------------------------- */
.devbanner {
  border: var(--b-prov);
  background: var(--amber);
  color: var(--ink);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: .74rem;
  font-weight: 600;
}
.devbanner b { letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  /* The card's third column stops paying for itself well before it stops
     fitting: a why-line that clamps at four words has stopped being scannable.
     So the marks and the score drop under the name and get a row of their own. */
  .card { grid-template-columns: 42px minmax(0, 1fr); row-gap: 5px; }
  .c-meta { grid-column: 2; grid-row: 2; justify-content: flex-start; padding-top: 0; }
  .c-why { grid-column: 2; grid-row: 3; }
}

@media (max-width: 860px) {
  /* Stacked, and the seam turns from a left edge into a top edge. Each column
     keeps its own scroller so a 578-card Unfollow list never becomes a 578-card
     page scroll. */
  .board { grid-template-columns: minmax(0, 1fr); }
  .col + .col { border-left: none; border-top: var(--b-hair); }
  /* overscroll-behavior flips back to auto here, and it matters: stacked, the
     column scroller is the full width of the screen, so containing the scroll
     would strand a touch user at the bottom of Keep with nowhere left to swipe.
     Side by side there is always somewhere else to put your finger; stacked
     there is not, so the scroll has to chain to the page. */
  .col-scroll {
    max-height: min(62dvh, 560px);
    overscroll-behavior: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  /* The owner takes the full first row; the three counts pair up under it. */
  .tiles { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .owner { grid-column: 1 / -1; padding-right: 0; }
  .tiles > .tile:nth-child(2) { border-left: none; padding-left: 2px; }
  /* Two lines of caption reserved, so the four huge numerals share a baseline
     even when one label wraps. */
  .tile .cap { display: block; min-height: 2.7em; }

  /* The code and the sentence stop competing for one line. */
  .warn.info summary { flex-wrap: wrap; gap: 4px 12px; }
  .warn.info summary .warn-code { flex-basis: 100%; }
}

@media (max-width: 520px) {
  .lede { font-size: .98rem; }

  /* Stacked, and the irreversible one goes last: on a narrow screen the bottom
     of a stack is where the thumb lands, and that should be the deliberate
     press rather than the one you reach by accident. */
  .actionbar { grid-template-columns: 1fr; }
  .actionbar .btn { width: 100%; justify-self: stretch; }
  .go { width: 100%; order: 3; justify-self: stretch; }
  .actionbar-mid { order: 2; width: 100%; }
  .toast { max-width: none; width: 100%; }
  .actionbar-note { max-width: none; }
}

/* Coarse pointers get real targets. */
@media (pointer: coarse) {
  .btn { padding-top: 11px; padding-bottom: 11px; }
  .btn.help-btn { padding: 8px 0; }
  .textlink { padding: 10px 6px; }

  .card { padding: 11px 12px; }
  .go { padding: 16px 26px; }
  /* The marks are titles-on-hover for a mouse, which touch does not have, so
     give them enough room to be tapped for their tooltip. */
  .mk { width: 22px; height: 22px; }
  .mk svg { width: 13px; height: 13px; }

  /* HTML5 drag-and-drop never fires on touch — not "fires badly", never fires —
     and there are no per-card move buttons any more. So on a touch screen the
     drawer's column switcher is the ONLY way to move a card, which makes the
     tap target on the card and the switcher itself load-bearing rather than a
     convenience. */
  .dw-x { width: 44px; height: 44px; }
  .dw-head { grid-template-columns: 48px minmax(0, 1fr) 44px; }
  .sw { padding: 15px 4px; }
  .dw-handle a { padding: 8px 6px; margin-left: -6px; }
  .toast-undo { padding: 12px 10px; }
}

/* ---------------------------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------------------------
   Every animation introduced above is named here rather than swept up by a
   wildcard, so adding a new one and forgetting this block is a visible
   omission rather than a silent one. The wildcard is kept as a backstop.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* rise: no travel, and no invisible first frame if the animation is dropped. */
  .screen > * { animation: none !important; opacity: 1; transform: none; }
  /* pulse: the dot stays lit rather than flickering once and stopping. */
  .kicker .dot.live { animation: none !important; opacity: 1; transform: none; }
  /* the interstitial: steps appear rather than rise, the running marker holds
     steady, and the bar jumps to each new value. draft.js also shortens every
     dwell, because pacing is not motion and reduced-motion users should still
     get to see what was read — just not for five seconds. */
  .wstep, .work-foot, .work-go, .warnblock { animation: none !important; }
  .wmark { animation: none !important; }
  .work-fill { transition: none !important; }
  /* hatch: a static barber pole still reads as "working". */
  .progress { animation: none !important; }
  /* landing: stickers hold still, the status dot stays lit, the float just appears. */
  .sticker, .sticker:hover { transform: rotate(var(--rot)); transition: none; }
  .status-dot { animation: none; box-shadow: 0 0 6px 2px rgba(63, 191, 127, .7); }
  .fd-float.on { animation: none !important; }
  .dropzone, .dropzone:hover, .dropzone.over { transform: none; }
  .btn:active, .go:active { transform: none; }
  /* flash: the card lands where it lands, no amber sweep. The FLIP that slides
     the cards under it is skipped in draft.js — a Web Animation is not a CSS
     animation and this block cannot reach it. */
  .card.just-moved { animation: none !important; }
  /* The drawer slide: it is simply there. draft.js sets the open class in the
     same tick as showModal(), so dropping the transition leaves no first frame
     off-screen to be seen. */
  dialog { transition: none !important; }
  /* toastin: the strip appears, it does not travel. */
  .toast { animation: none !important; }
  /* The toolbar arrow: fully drawn from the first frame. Its dash offset has to
     be reset explicitly — an un-run animation would otherwise leave the line
     hidden at dashoffset 160, and an arrow that never draws is no arrow. */
  #toolbarArrow { animation: none !important; }
  .ta-line { animation: none !important; stroke-dashoffset: 0; }
  .ta-head { animation: none !important; opacity: 1; }
}

/* The owner's callout inside step 01 of the Meta dialog (2026-07-29): what the
   minimum viable export is, and the more-data-better-scores trade. Pink at the
   owner's request — ink on the fill, same contrast arithmetic as every other
   pink surface here. */
.steps .help-min {
  display: block;
  text-indent: 0; /* the li hangs its number with a negative indent; the box must not inherit it */
  margin-top: 9px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--blush);
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.5;
}


/* ===========================================================================
   APP SCREENS, ROUND TWO (docs/BRAND.md "Decisions from the review round")
   ---------------------------------------------------------------------------
   Working, board, handoff, the drawer, the help dialogs and the film frames
   that replicate them (.xp-*). Loaded last so it wins over the first skin.
   - contrast tokens: --ink-3 / --pink-text / --grad-btn (AA with white text)
   - kickers are soft sentence-case pills, no tracked uppercase
   - one step-number component (32px yellow circle, ink border, sticker shadow)
   - working + handoff are two columns on desktop with a clay render
   - board controls 40px, stats 3 across on phones
   - drawer: soft score card, no left rules
   =========================================================================== */
:root {
  --ink-3: #6b6672;
  --pink-text: #C21E6B;
  --grad-btn: linear-gradient(100deg, #C9480E 0%, #C4206F 50%, #8134AF 100%);
}

/* ---- kickers ---- */
:is(#screen-working, #screen-handoff, .xp-working, .xp-hand) .kicker {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--blush); color: var(--pink-text);
  font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none;
}
:is(#screen-working, #screen-handoff, .xp-working, .xp-hand) .kicker .dot {
  width: 8px; height: 8px; margin-top: 0; border-radius: 50%; background: var(--pink); outline: 0;
}
:is(#screen-working, #screen-handoff, .xp-working, .xp-hand) .kicker .dot.live { background: var(--pink); outline: 0; }
.help-head .micro { color: var(--pink-text); }
:is(#screen-board, .xp-frame) .c-name a:hover, :is(#screen-board, .xp-frame) .c-name a:focus-visible,
:is(#screen-board, .xp-frame) .c-handle a:hover, :is(#screen-board, .xp-frame) .c-handle a:focus-visible,
.dw-name a.as-name:hover, .dw-name a.as-name:focus-visible, .dw-handle a:hover, .dw-handle a:focus-visible { color: var(--pink-text); }
.hand-pro a, .ready-note a, .store-nudge a { color: var(--pink-text); font-weight: 600; }
:is(#screen-handoff, .xp-hand) .hand-pro { margin-top: 12px; font-size: .85rem; }
.hand-pro { color: var(--ink-3); }

/* ---- primary buttons: the AA gradient, white text ---- */
:is(#screen-working, .xp-working) .btn.next,
:is(#screen-working, .xp-working) .btn.next:hover, :is(#screen-working, .xp-working) .btn.next:focus-visible, .xp-frame .btn.next.xp-h,
:is(#screen-board, .xp-frame) .go, :is(#screen-handoff, .xp-hand) .go,
:is(#screen-board, .xp-frame) .go:hover, :is(#screen-board, .xp-frame) .go:focus-visible, .xp-frame .go.xp-h,
:is(#screen-handoff, .xp-hand) .go:hover, :is(#screen-handoff, .xp-hand) .go:focus-visible,
:is(#screen-board, .xp-frame) .card.sel .c-mono, :is(#screen-board, .xp-frame) .card.sel .c-mono:hover,
:is(#screen-board, .xp-frame) .card.sel .c-mono:focus-visible { background: var(--grad-btn); }
:is(#screen-board, .xp-frame) .go[disabled], :is(#screen-handoff, .xp-hand) .go[disabled] { background: var(--line); color: var(--ink-3); }
:is(#screen-board, .xp-frame) .go .go-sub, :is(#screen-handoff, .xp-hand) .go .go-sub { color: #fff; }
:is(#screen-board, .xp-frame) .go[disabled] .go-sub { color: var(--ink-3); }
.btn.go-store {
  min-height: 44px; padding: 11px 26px; border: 0; border-radius: var(--r-pill);
  background: var(--grad-btn); color: #fff; box-shadow: var(--sh-1);
  font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; text-decoration: none;
  transition: transform var(--t), filter var(--t);
}
.btn.go-store:hover, .btn.go-store:focus-visible { background: var(--grad-btn); color: #fff; filter: brightness(1.06); transform: translateY(-2px); }
.btn.go-store:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.btn.small { padding: 9px 16px; font-size: .78rem; min-height: 40px; }
.work-go-note, .hand-msg, .hand-watch { font-size: .85rem; }

/* ---- one step-number component ---- */
:is(#screen-handoff, .xp-hand) .hand-n,
:is(#screen-handoff, .xp-hand) .hand-step[data-state="now"] .hand-n,
:is(#screen-handoff, .xp-hand) .hand-step[data-state="done"] .hand-n,
.dw.help .steps .n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink);
  box-shadow: var(--sh-sticker); font-family: var(--font-body); font-size: .9rem; font-weight: 700; letter-spacing: 0;
}
:is(#screen-handoff, .xp-hand) .hand-step { grid-template-columns: 3rem minmax(0, 1fr); }
:is(#screen-handoff, .xp-hand) .hand-n { align-self: start; margin-top: 2px; }
.dw.help .steps .n { margin-right: 14px; }
.xp-n, .xp-step[aria-current="step"] .xp-n {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; margin: 0;
  border: 1.5px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink);
  box-shadow: var(--sh-sticker); font-family: var(--font-body); font-size: .9rem; font-weight: 700; line-height: 1;
  align-self: flex-start;
}
.xp-step:not([aria-current="step"]) .xp-n { background: #fff; box-shadow: none; border-color: var(--line); color: var(--ink-3); }
.xp-l { font-size: .88rem; }
.xp-step::before { display: none; }
.xp-step[aria-current="step"] { background: var(--cream); border-radius: var(--r); }

/* the film's playback control: icon only, so it is not a second "Pause" */
.xp-play { min-width: 48px; width: 48px; height: 48px; align-self: center; padding: 0; border-radius: 50%; }
.xp-play-ico { display: block; width: 12px; height: 14px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.xp-play[aria-pressed="true"] .xp-play-ico {
  width: 0; height: 0; border-left: 12px solid var(--ink); border-right: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}

/* ---- working + handoff: two columns with a clay render ---- */
.app-art { display: none; }
@media (min-width: 1000px) {
  #screen-working, #screen-handoff {
    max-width: none; display: grid; align-content: start;
    grid-template-columns: minmax(0, 1fr) 300px; column-gap: 48px;
  }
  #screen-working > *, #screen-handoff > * { grid-column: 1; }
  #screen-working > .app-art, #screen-handoff > .app-art {
    grid-column: 2; grid-row: 1 / span 12; align-self: start;
    position: sticky; top: 28px; margin-top: 40px;
    display: grid; place-items: center; padding: 34px 28px 44px;
    border-radius: var(--r-lg); background: var(--lavender); box-shadow: var(--sh-1);
  }
  #screen-handoff > .app-art { background: var(--cream); }
  .app-art img { display: block; width: 100%; max-width: 230px; height: auto; }
  .app-art .sticker { position: absolute; right: 16px; bottom: 16px; --rot: 3deg; }
}
.work-h { max-width: 16ch; }

/* ---- board ---- */
:is(#screen-board, .xp-frame) .actionrule .btn { min-height: 40px; }
:is(#screen-board, .xp-frame) .queue { align-items: baseline; }
#screen-board { padding-bottom: 96px; }
:is(#screen-board, .xp-frame) .col-check { width: 24px; height: 24px; border-radius: 7px; position: relative; }
#screen-board .col-check::before { content: ""; position: absolute; inset: -9px; }
:is(#screen-board, .xp-frame) .col-check:checked::after { width: 11px; height: 6px; }
:is(#screen-board, .xp-frame) .c-mono { width: 40px; height: 40px; }
:is(#screen-board, .xp-frame) .card { grid-template-columns: 46px minmax(0, 1fr) auto; }
@media (max-width: 1100px) { #screen-board .card { grid-template-columns: 46px minmax(0, 1fr); } }
:is(#screen-board, .xp-frame) .card .c-why, :is(#screen-board, .xp-frame) .c-years { font-size: .75rem; }
:is(#screen-board, .xp-frame) .tile .sub { color: var(--ink-3); }
@media (max-width: 720px) {
  #screen-board .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; row-gap: 14px; }
  #screen-board .tiles > .owner { grid-column: 1 / -1; }
  #screen-board .tiles > .tile { padding: 10px 10px; min-width: 0; }
  #screen-board .tile .cap { min-height: 0; font-size: .72rem; }
  #screen-board .tile .val { font-size: 1.45rem; }
  #screen-board .tile .sub { font-size: .72rem; line-height: 1.25; }
}

/* ---- the drawer: soft score card, no left rules ---- */
.pts tr.pos .n, .pts tr.neg .n, .pts tr.base .n, .pts tr.clamp .n, .pts tr.tot .n { border-left: 0; padding-left: 4px; }
.pts tr.base td { border-bottom: 1px solid var(--line); }
.pts tr.tot td { background: var(--cream); color: var(--ink); padding: 12px 0; }
.pts tr.tot .n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; padding-left: 12px; line-height: 1; }
.pts tr.tot .l { color: var(--ink); font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pts .bar { height: 4px; border-radius: 3px; }
.pts tr.neg .n { color: var(--ink-3); }
.rail { border-left: 0; padding-left: 0; }
.rail li { padding-left: 20px; }
.rail li::before { left: 0; top: 1.15em; width: 8px; height: 8px; outline: 0; border-radius: 50%; background: var(--grad); }
.dw .rail { border-left: 0; }
.dw .rail li::before { left: 0; }
.sig th { font-size: .75rem; letter-spacing: .02em; text-transform: none; color: var(--ink-2); }
.dw-sec .micro, .dw .micro { font-size: .8rem; }
dialog::after { display: none; }

/* ---- the "open from up here" hint: a white sticker pill ---- */
#toolbarArrow p, .xp-arrow p {
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 7px 16px; box-shadow: var(--sh-sticker); transform: rotate(-2deg); text-align: center;
}
#toolbarArrow svg, .xp-arrow svg { stroke: var(--pink); stroke-linecap: round; }

/* ---- the film: site logo, not the old broom ---- */
.xp-fav-bu { background: url("/assets/icon.svg") center / contain no-repeat; border-radius: 4px; }

/* ---------------------------------------------------------------------------
   Hero mock animation (landing only, `.hero-stage.is-anim`; the film's copy of
   the hero is left alone). draft.js drives a short loop: rows get ticked one by
   one, Unfollow is pressed, the ticked rows are worked through at a human pace
   and the "After" count drops. Off under prefers-reduced-motion (the JS never
   starts, so the static, fully ticked mock shows).
   --------------------------------------------------------------------------- */
.is-anim .lp-cb { transition: background-color .18s var(--e), border-color .18s var(--e); }
.is-anim .lp-cb.on { animation: lp-tick .32s var(--e); }
@keyframes lp-tick { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.is-anim .lp-row { transition: opacity .35s var(--e), transform .35s var(--e); }
.is-anim .lp-row.done { opacity: .42; transform: translateX(6px); }
.is-anim .lp-chip { transition: background-color .25s var(--e), color .25s var(--e); }
.is-anim .lp-chip.gone { background: #e3f6ec; color: #1f7a4d; }
.is-anim .lp-unf { transition: transform .15s var(--e), box-shadow .2s var(--e), opacity .2s var(--e); }
.is-anim .lp-unf.idle { opacity: .45; }
.is-anim .lp-unf.press { transform: scale(.93); box-shadow: 0 0 0 6px rgba(221, 42, 123, .18); }
.is-anim .lp-unf.busy { animation: lp-busy 1.1s ease-in-out infinite; }
@keyframes lp-busy { 50% { box-shadow: 0 0 0 6px rgba(221, 42, 123, .14); } }
.is-anim .f-ba .new b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .is-anim .lp-cb.on, .is-anim .lp-unf.busy { animation: none; }
}
