/* Sweep — Direction A ("Sunny Desk"), the public skin: colour and type only.
   Loaded after sweep.css by base.html in public mode only; <html class="skin-a">
   scopes everything here, so the operator console never sees a byte of it.
   It re-points the custom properties sweep.css defines in :root and re-declares
   the five places sweep.css hard-codes a dark-theme colour (A1), then gives the
   shared components their Direction A shape (A2, below the theme switch):
   sticker buttons, chips, panels, fields, the tracker, and the new peek / tip /
   stamp / sticker / mbar parts. Components only; a screen's own layout is not
   here. What the colours mean in Direction A:
     peach / burnt orange (--paid)   money, and nothing else
     citrus / olive (--free)         free, done, ok
     --over                          an error, a limit crossed
     ink / paper (--chalk)           everything else: text, focus, selection
     lavender (--a-lav)              the component accent (A2): marks, done steps, scribbles
   Theme: follows the OS (prefers-color-scheme); the header switch writes
   data-theme (see theme.js) and wins either way. */

.skin-a {
  color-scheme: light;
  --ground: #FFF6EE;
  --well: #FFFBF7;
  --surface: #FFFFFF;
  --surface-low: #FFF9F3;
  --surface-high: #F2EDFF;
  --surface-edge: #E6DDFB;
  --chalk: #1E1530;
  --chalk-lift: #3A2B5C;
  --warm: #43385A;
  --slate: #574B6E;
  --dim: #7C7194;
  --paid: #A6420F;
  --paid-lift: #7F2F05;
  --free: #4B6200;
  --free-lift: #3A4C00;
  --over: #A12A1A;
  --rule: rgba(30, 21, 48, 0.14);
  --control: #7A6E92;
  --pending-slate: #4F4466;
  --toggle-track: #FCFFD9;
  --toggle-knob: #E4F25C;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --a-line: #1E1530;
  --a-shadow: #1E1530;
  --a-primary: #5B3FD0;
  --a-on-primary: #FFFFFF;
  --a-link: #5B3FD0;
  --a-focus: #5B3FD0;
  --a-lav: #B9A6F5;
  --a-cit: #E4F25C;
  --a-pch: #FFB38A;
  --a-ink: #1E1530;
  --a-tint: #F2EDFF;
  --radius: 12px;
}
:where(.skin-a) .chip { border: 1px solid rgba(75, 98, 0, 0.35); }
.skin-a dialog.feedback::backdrop { background: rgba(30, 21, 48, 0.45); }
.skin-a .error { background: rgba(161, 42, 26, 0.06); }
.skin-a tbody tr:hover td, .skin-a table tr:hover td { background: rgba(30, 21, 48, 0.05); }

@media (prefers-color-scheme: dark) {
  .skin-a:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #151024;
    --well: #100C1C;
    --surface: #211936;
    --surface-low: #1B1430;
    --surface-high: #2D2453;
    --surface-edge: #3A2F62;
    --chalk: #FFF6EE;
    --chalk-lift: #FFFFFF;
    --warm: #E2DAF2;
    --slate: #C2B8DA;
    --dim: #6E6390;
    --paid: #FFB38A;
    --paid-lift: #FFD2BC;
    --free: #E4F25C;
    --free-lift: #F0F98F;
    --over: #FF9F8C;
    --rule: rgba(237, 230, 255, 0.16);
    --control: #9A8FBB;
    --pending-slate: #CFC6E4;
    --toggle-track: #2D2453;
    --toggle-knob: #B9A6F5;
    --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
    --text: "Instrument Sans", system-ui, -apple-system, sans-serif;
    --a-line: #EDE6FF;
    --a-shadow: #7A5CF0;
    --a-primary: #B9A6F5;
    --a-on-primary: #1E1530;
    --a-link: #CDBEFF;
    --a-focus: #E4F25C;
    --a-lav: #B9A6F5;
    --a-cit: #E4F25C;
    --a-pch: #FFB38A;
    --a-ink: #1E1530;
    --a-tint: #2D2453;
  }
  :where(.skin-a:not([data-theme="light"])) .chip { border: 1px solid rgba(228, 242, 92, 0.35); }
  .skin-a:not([data-theme="light"]) dialog.feedback::backdrop { background: rgba(8, 5, 15, 0.75); }
  .skin-a:not([data-theme="light"]) .error { background: rgba(255, 159, 140, 0.08); }
  .skin-a:not([data-theme="light"]) tbody tr:hover td, .skin-a:not([data-theme="light"]) table tr:hover td { background: rgba(237, 230, 255, 0.06); }
}

.skin-a[data-theme="dark"] {
  color-scheme: dark;
  --ground: #151024;
  --well: #100C1C;
  --surface: #211936;
  --surface-low: #1B1430;
  --surface-high: #2D2453;
  --surface-edge: #3A2F62;
  --chalk: #FFF6EE;
  --chalk-lift: #FFFFFF;
  --warm: #E2DAF2;
  --slate: #C2B8DA;
  --dim: #6E6390;
  --paid: #FFB38A;
  --paid-lift: #FFD2BC;
  --free: #E4F25C;
  --free-lift: #F0F98F;
  --over: #FF9F8C;
  --rule: rgba(237, 230, 255, 0.16);
  --control: #9A8FBB;
  --pending-slate: #CFC6E4;
  --toggle-track: #2D2453;
  --toggle-knob: #B9A6F5;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --a-line: #EDE6FF;
  --a-shadow: #7A5CF0;
  --a-primary: #B9A6F5;
  --a-on-primary: #1E1530;
  --a-link: #CDBEFF;
  --a-focus: #E4F25C;
  --a-lav: #B9A6F5;
  --a-cit: #E4F25C;
  --a-pch: #FFB38A;
  --a-ink: #1E1530;
  --a-tint: #2D2453;
}
:where(.skin-a[data-theme="dark"]) .chip { border: 1px solid rgba(228, 242, 92, 0.35); }
.skin-a[data-theme="dark"] dialog.feedback::backdrop { background: rgba(8, 5, 15, 0.75); }
.skin-a[data-theme="dark"] .error { background: rgba(255, 159, 140, 0.08); }
.skin-a[data-theme="dark"] tbody tr:hover td, .skin-a[data-theme="dark"] table tr:hover td { background: rgba(237, 230, 255, 0.06); }

/* ---- Theme switch --------------------------------------------------------
   Header, public only. A 44px-tall target around a 58x32 pill; the 24px knob
   slides right in dark. Sun and moon are both in the markup and only the one
   for the effective theme shows. The ring is the shared chalk focus ring in
   sweep.css (button:focus-visible); nothing here removes it. (:where on the
   .chip rules above keeps them at .chip's own specificity, so .chip.quiet and
   .chip.free still win their border colour.) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 64px; height: 44px; padding: 0; margin-left: auto;
  border: 0; background: transparent; color: #1E1530; cursor: pointer;
}
.credit ~ .theme-toggle { margin-left: 0; }
.theme-toggle ~ .feedback-open { margin-left: 0; }
.theme-toggle-track {
  position: relative; display: block; width: 58px; height: 32px;
  border: 2px solid var(--chalk); border-radius: 999px; background: var(--toggle-track);
}
.theme-toggle-knob {
  position: absolute; top: 2px; left: 2px; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 2px solid #1E1530; border-radius: 50%;
  background: var(--toggle-knob); color: #1E1530;
}
.theme-toggle .moon { display: none; }
.skin-a[data-theme="dark"] .theme-toggle .sun { display: none; }
.skin-a[data-theme="dark"] .theme-toggle .moon { display: block; }
.skin-a[data-theme="dark"] .theme-toggle-knob { transform: translateX(26px); }
@media (prefers-color-scheme: dark) {
  .skin-a:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  .skin-a:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  .skin-a:not([data-theme="light"]) .theme-toggle-knob { transform: translateX(26px); }
}
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle-knob { transition: transform 0.35s cubic-bezier(0.5, 1.6, 0.4, 1), background 0.3s; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle-knob { transition: none; }
}
/* On a phone the feedback button sits out of the flow at the right end of the
   brand row (sweep.css); the switch takes the place beside it. */
@media (max-width: 30rem) {
  .theme-toggle { position: absolute; top: var(--s3); right: calc(var(--s5) + 2.75rem); margin-left: 0; }
}

/* ==== A2: the shared components ============================================
   Everything below is scoped to .skin-a and uses the --a-* tokens above; no raw
   colour. Where sweep.css's own selector would otherwise tie, :where(.skin-a)
   keeps the specificity identical to sweep.css's so every contextual rule there
   still wins exactly as it did; where A2 means to override, .skin-a adds one
   class. Motion lives only in the no-preference block at the very end. */

/* -- Buttons: the sticker. Hard offset shadow, lift on hover, press on active. */
.skin-a button.primary, .skin-a a.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font-weight: 700; font-size: 15px; line-height: 1;
  color: var(--a-on-primary); background: var(--a-primary);
  border: 2px solid var(--a-line); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--a-shadow);
}
.skin-a button.secondary, .skin-a a.secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  font-weight: 600; color: var(--chalk); background: var(--surface);
  border: 2px solid var(--a-line); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--a-shadow);
}
.skin-a button.tertiary, .skin-a a.tertiary {
  font-weight: 600; color: var(--a-link); text-underline-offset: 4px;
}
.skin-a button.primary:hover, .skin-a a.primary:hover {
  background: var(--a-primary);
  transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--a-shadow);
}
.skin-a button.secondary:hover, .skin-a a.secondary:hover {
  background: var(--a-tint);
  transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a button.tertiary:hover, .skin-a a.tertiary:hover { color: var(--chalk); }
.skin-a button.primary:active, .skin-a a.primary:active,
.skin-a button.secondary:active, .skin-a a.secondary:active {
  transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--a-shadow);
}
.skin-a button.big, .skin-a a.big { min-height: 56px; padding: 0 30px; font-size: 17px; }
/* A label that wraps (a long "Run what my credit covers · $1.98") gets real line spacing. */
.skin-a button.primary, .skin-a a.primary, .skin-a button.secondary, .skin-a a.secondary { line-height: 1.2; padding-block: 12px; }
/* Disabled is "not yet", not faded: a disabled primary can be the screen's one decision (Confirm, over credit, until
   "run anyway" is ticked), so its words must stay readable. Full opacity, the quiet tint, slate words (6.95:1 light,
   7.5:1 dark), a dashed control edge and no shadow; it neither lifts nor presses. Opacity .5 here measured 2.39:1. */
.skin-a button[disabled], .skin-a button[disabled]:hover, .skin-a button[disabled]:active {
  opacity: 1; cursor: default; transform: none;
}
.skin-a button.primary[disabled], .skin-a button.primary[disabled]:hover, .skin-a button.primary[disabled]:active,
.skin-a button.secondary[disabled], .skin-a button.secondary[disabled]:hover, .skin-a button.secondary[disabled]:active {
  background: var(--a-tint); color: var(--slate); border: 2px dashed var(--control); box-shadow: none;
}
.skin-a button.tertiary[disabled], .skin-a button.tertiary[disabled]:hover, .skin-a button.tertiary[disabled]:active {
  background: transparent; color: var(--slate);
}

/* -- Links. :where keeps the base colour at element specificity, so a classed
   link (.primary, .secondary, .step > a, .lockup, the listings' links) keeps its own. */
:where(.skin-a) a { color: var(--a-link); }
:where(.skin-a) a:where(:hover) { color: var(--chalk); }

/* -- Focus: one ring for public pages. */
:where(.skin-a) a:focus-visible, :where(.skin-a) button:focus-visible, :where(.skin-a) input:focus-visible,
:where(.skin-a) select:focus-visible, :where(.skin-a) summary:focus-visible,
:where(.skin-a) .choice:focus-within, :where(.skin-a) .drop:focus-within {
  outline: 3px solid var(--a-focus); outline-offset: 3px;
}
:where(.skin-a) input:focus-visible, :where(.skin-a) select:focus-visible, :where(.skin-a) textarea:focus-visible {
  outline: 3px solid var(--a-focus); outline-offset: 2px;
}

/* -- Chips and tags: pills. Only the border WIDTH changes, so .chip.quiet /
   .chip.free / .tag.low keep their colours. */
.skin-a .chip, .skin-a .tag {
  border-radius: 999px; padding: 2px 10px; font-weight: 600; border-width: 1.5px;
}

/* -- Panels: stickers. A disclosure is dashed until it opens; a panel inside a
   panel (and .inset) stays a hairline so the page does not stack shadows. */
.skin-a .panel, .skin-a .card {
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 22px;
  box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a details.panel { border: 2px dashed var(--rule); box-shadow: none; }
.skin-a details.panel[open] { border: 2px solid var(--a-line); box-shadow: 5px 5px 0 var(--a-shadow); }
.skin-a .panel .panel, .skin-a .panel details.panel, .skin-a .panel details.panel[open], .skin-a .inset {
  border: 1px solid var(--rule); border-radius: 14px; box-shadow: none;
}

/* -- Fields. Same selector shape as sweep.css; background-color, not the
   shorthand, so the select's chevron survives. */
:where(.skin-a) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
:where(.skin-a) select, :where(.skin-a) textarea {
  border: 2px solid var(--control); border-radius: 14px; background-color: var(--surface);
}
:where(.skin-a) input[type="file"] { border-radius: 14px; }

/* -- Choice cards. */
.skin-a .choice { border-width: 2px; border-radius: 18px; }
.skin-a .choice:hover { background: var(--a-tint); }
.skin-a .choice:has(:checked) {
  background: var(--a-tint); border-color: var(--a-line); box-shadow: 4px 4px 0 var(--a-shadow);
}
.skin-a input[type="checkbox"], .skin-a input[type="radio"] { accent-color: var(--a-primary); }

/* -- Headings and lede. :where: a contextual heading rule in sweep.css still wins. */
:where(.skin-a) h1 {
  font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em;
}
:where(.skin-a) h2 { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
:where(.skin-a) .lede { font-size: 17px; line-height: 1.5; }
.skin-a .scrib {
  text-decoration: underline wavy var(--a-lav); text-decoration-thickness: 3px;
  text-underline-offset: 0.18em; text-decoration-skip-ink: none;
}

/* -- Header, brand and tracker. */
.skin-a header { background: var(--ground); }
.skin-a .lockup strong { font-family: var(--display); font-weight: 800; font-size: 22px; }
.skin-a .step > a { border-radius: 999px; padding: 4px 12px 4px 4px; }
.skin-a .marker { width: 22px; height: 22px; font-size: 11px; }
.skin-a .step.current > a { background: var(--chalk); color: var(--ground); }
.skin-a .step.current .marker { background: var(--a-cit); color: var(--a-ink); border-color: var(--a-cit); }
.skin-a .step.done .marker { background: var(--a-lav); color: var(--a-ink); border-color: var(--a-line); }
.skin-a .tracker-at {
  padding: 3px 10px; border-radius: 999px; background: var(--a-cit); color: var(--a-ink); font-weight: 700;
}
.skin-a .feedback-open {
  border: 2px solid var(--a-line); border-radius: 999px; color: var(--chalk);
  min-height: 40px; padding: 0 14px;
}
.skin-a .feedback-open:hover { background: var(--a-tint); border-color: var(--a-line); color: var(--chalk); }
.skin-a .credit {
  border: 1.5px dashed var(--a-line); border-radius: 999px; padding: 4px 10px;
  color: var(--chalk); font-weight: 600;
}

/* ==== A2: new primitives (macros in templates/_a.html; no screen uses them yet) */

/* peek: a native <details>, dashed while shut, a sticker when open. The marker
   is a 24px circle with + / -; the triangle sweep.css draws on every summary
   (border-left, rotate on open) is fully reset here. */
.skin-a .peek { border: 2px dashed var(--rule); border-radius: 18px; }
.skin-a .peek[open] { border-style: solid; border-color: var(--a-line); background: var(--surface); }
.skin-a .peek > summary {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 14px;
  font: 600 15px/1.3 var(--text); color: var(--chalk);
}
.skin-a .peek > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none;
  align-self: center; margin: 0; width: 24px; height: 24px;
  border: 2px solid var(--a-line); border-radius: 50%;
  font: 700 16px/1 var(--text); color: var(--chalk);
  transform: none; transform-origin: 50% 50%;
}
.skin-a .peek[open] > summary::before { content: "\2013"; transform: none; }
.skin-a .peek > summary:hover::before { border-color: var(--a-line); background: var(--a-tint); }
/* The aside is a small sticker chip, vertically centred: a tint with the page's ink for a count ("5 of 46 done"), citrus for Yes and
   lavender for No (the _a.html macro adds .yes / .no). Ink on the bright fills in both themes; none of it is peach, because none of it is money. */
.skin-a .peek-aside {
  margin-left: auto; align-self: center; display: inline-flex; align-items: center; flex: none; white-space: nowrap;
  padding: 2px 10px; border: 1.5px solid var(--a-line); border-radius: 999px; background: var(--a-tint);
  font: 700 12.5px/1.4 var(--text); color: var(--chalk);
}
.skin-a .peek-aside.yes, .skin-a .peek-aside.no { border-color: var(--a-ink); color: var(--a-ink); }
.skin-a .peek-aside.yes { background: var(--a-cit); }
.skin-a .peek-aside.no { background: var(--a-lav); }
.skin-a .peek-body { margin-top: 0; padding: 0 16px 16px 50px; font-size: 14.5px; line-height: 1.55; color: var(--warm); }

/* tip: the brush's speech bubble. Without JS the dismiss button stays hidden and the tip stays. */
.skin-a .tip { position: relative; display: flex; align-items: center; gap: 12px; max-width: 34rem; }
.skin-a .tip[hidden], .skin-a .tip-x[hidden] { display: none; }
.skin-a .tip-face {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--a-cit); border: 2px solid var(--a-ink);
}
.skin-a .tip-say {
  position: relative; flex: 1; min-width: 0; margin: 0; padding: 10px 44px 10px 14px;
  border: 2px solid var(--a-line); border-radius: 16px; background: var(--surface);
  font-size: 14.5px; line-height: 1.4; font-weight: 600;
}
.skin-a .tip-say::before {
  content: ""; position: absolute; left: -8px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: var(--surface); border-left: 2px solid var(--a-line); border-bottom: 2px solid var(--a-line);
  transform: rotate(45deg);
}
.skin-a .tip-x {
  position: absolute; right: 0; top: 50%; margin-top: -22px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0;
  font-size: 20px; line-height: 1; color: var(--slate); background: transparent; border: 0; cursor: pointer;
}

/* stamp and sticker: a rubber stamp, and a peel-off label. */
.skin-a .stamp {
  display: inline-block; padding: 6px 12px; border: 3px double currentColor; border-radius: 10px;
  font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-7deg); color: var(--a-primary);
}
.skin-a .sticker {
  display: inline-block; padding: 7px 13px; border: 2px solid var(--a-ink); border-radius: 14px;
  color: var(--a-ink); background: var(--a-pch); font-weight: 800; font-size: 13.5px;
  box-shadow: 3px 3px 0 var(--a-ink); transform: rotate(4deg);
}
.skin-a .sticker.cit { background: var(--a-cit); }
.skin-a .sticker.lav { background: var(--a-lav); }

/* mbar: the phone action bar. Nothing on wide screens. */
.skin-a .mbar { display: none; }
.skin-a .mbar-text { flex: 1; min-width: 0; font-size: 13px; color: var(--slate); }
.skin-a .mbar-text b { display: block; font-size: 16px; color: var(--chalk); }
@media (max-width: 40rem) {
  html.skin-a { scroll-padding-bottom: 6rem; }
  .skin-a .mbar {
    display: flex; position: sticky; bottom: 0; z-index: 25; align-items: center; gap: 12px;
    margin: 0 calc(var(--s5) * -1); padding: 12px var(--s5) calc(12px + env(safe-area-inset-bottom));
    background: var(--ground); border-top: 2px solid var(--a-line);
  }
  .skin-a .mbar .primary { flex: none; }
}

/* -- Motion. The only place A2 moves anything; sweep.css's blanket
   reduced-motion rule zeroes the rest. */
@media (prefers-reduced-motion: no-preference) {
  .skin-a button.primary, .skin-a a.primary, .skin-a button.secondary, .skin-a a.secondary {
    transition: transform var(--ms-1) ease, box-shadow var(--ms-1) ease, background-color var(--ms-1) ease;
  }
  .skin-a .tip-face { animation: a-bob 3.2s ease-in-out infinite; }
  .skin-a .a-pop { animation: a-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  @keyframes a-bob {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg) translateY(-2px); }
  }
  @keyframes a-pop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: none; }
  }
}

/* ==== A4: the Upload screen and the reading screen ===========================
   The first screen-level rules in this file: Upload's own layout and parts (hero, form card, drop zone, the brush
   desk, the three steps, the list of résumés) and the working screen's pill and bar. Public only, like everything
   here; the console's Upload and reading screens are untouched. Colours are tokens, no raw colour. Everything that
   moves is in the no-preference block at the end of this section (desk.js adds the rest, and reads reduced motion
   itself). A class set from the template (hero, fresh, solo) is what these rules hang on, so no console page can
   match one. */

/* -- Hero: only while nothing has been added. */
.skin-a .hero { gap: 16px; }
.skin-a .eyebrow {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; padding: 5px 13px;
  border-radius: 999px; background: var(--a-cit); color: var(--a-ink); border: 2px solid var(--a-ink);
  font-weight: 700; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; transform: rotate(-2deg);
}
.skin-a .hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: .96; font-weight: 800; letter-spacing: -0.035em; }
.skin-a .hl {
  background: var(--a-lav); color: var(--a-ink); border-radius: 12px; padding: 0 .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.skin-a .hero .lede { font-size: 19px; max-width: 40em; }

/* -- The split: the rail is the desk, the wide half. With a list of résumés (solo) it is the desk alone, and it
   stays in view beside a list longer than the window. */
@media (min-width: 64rem) {
  .skin-a .upload.fresh, .skin-a .upload.solo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; }
  .skin-a .upload.solo > .rail { position: sticky; top: 24px; align-self: start; }
}
.skin-a .upload.fresh > .rail, .skin-a .upload.solo > .rail { padding: 0; border: 0; }

/* -- The add-résumé form is the screen's one job: a sticker card. */
.skin-a .add, .skin-a .add.after {
  padding: 24px; background: var(--surface); border: 2px solid var(--a-line); border-radius: 26px;
  box-shadow: 8px 8px 0 var(--a-shadow);
}
.skin-a .drop {
  gap: 6px; padding: 26px 18px; border: 2px dashed var(--a-line); border-radius: 20px; background: var(--well);
}
.skin-a .drop:hover, .skin-a .drop.over { background: var(--a-tint); border-color: var(--a-line); }
.skin-a .drop.compact { padding: 14px 18px; }
.skin-a .drop strong { font-size: 18px; font-weight: 800; }
.skin-a .picked-list { display: flex; flex-direction: column; gap: 8px; border-bottom: 0; }
.skin-a .picked-row {
  gap: 12px; padding: 6px 6px 6px 14px; background: var(--a-tint);
  border: 1.5px solid var(--a-lav); border-radius: 14px;
}
.skin-a .peeks { display: flex; flex-direction: column; gap: 8px; }
.skin-a .peek-body p + p { margin-top: 8px; }

/* -- The brush desk. A figure of seven scattered listings, a shortlist and a brush; desk.js moves them. The desk is
   illustration (aria-hidden); the buttons under it are the way in without a pointer, and they ship `hidden`. */
.skin-a .desk-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.skin-a .desk-fig [hidden] { display: none; }
.skin-a .desk {
  position: relative; height: 540px; overflow: hidden; border-radius: 30px; border: 2px solid var(--a-line);
  background-color: var(--well); background-image: radial-gradient(var(--rule) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.skin-a .desk.desk-live { cursor: none; }
.skin-a .jc {
  position: absolute; width: 27%; padding: 11px 12px; pointer-events: none;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 14px; box-shadow: 4px 4px 0 var(--a-shadow);
}
/* Each desk card's resting place (the c<n> class _desk.html gives it), equal to its data-x / data-y / data-r / data-d,
   which desk.js reads; test_a4_upload holds the two together. A class, not Jinja in a style attribute (test_app). */
.skin-a .desk .jc.c1 { left: 2%; top: 4%; z-index: 18; transform: rotate(-7deg); }
.skin-a .desk .jc.c2 { left: 32%; top: 2%; z-index: 30; transform: rotate(6deg); }
.skin-a .desk .jc.c3 { left: 5%; top: 29%; z-index: 24; transform: rotate(4deg); }
.skin-a .desk .jc.c4 { left: 34%; top: 27%; z-index: 14; transform: rotate(-5deg); }
.skin-a .desk .jc.c5 { left: 2%; top: 54%; z-index: 28; transform: rotate(7deg); }
.skin-a .desk .jc.c6 { left: 32%; top: 53%; z-index: 20; transform: rotate(-3deg); }
.skin-a .desk .jc.c7 { left: 16%; top: 77%; z-index: 34; transform: rotate(-9deg); }
.skin-a .jc-co { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.skin-a .jc-t { margin: 3px 0 8px; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.15; }
.skin-a .jc-ft { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.skin-a .jc-loc { font-size: 12px; color: var(--slate); }
.skin-a .jc-pill {
  padding: 2px 8px; border: 1.5px solid var(--a-ink); border-radius: 999px; color: var(--a-ink);
  font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.skin-a .jc-pill.hi { background: var(--a-cit); }
.skin-a .jc-pill.mid { background: var(--a-lav); }
.skin-a .jc-pill.lo { background: var(--a-pch); }
/* The shortlist is the inverse of the desk: paper on ink in light, ink on paper in dark. */
.skin-a .shortlist {
  position: absolute; left: 64%; top: 3%; width: 34%; height: 94%; padding: 14px 16px;
  border-radius: 22px; background: var(--chalk); color: var(--ground);
}
.skin-a .sl-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 15px; }
.skin-a .sl-ct { flex: none; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--a-cit); color: var(--a-ink); font: 700 12px/1.4 var(--text); }
.skin-a .sl-empty { margin: 44% 0 0; text-align: center; font-size: 14px; line-height: 1.45; opacity: .8; }
.skin-a .sl-empty span { display: block; }
.skin-a .sl-foot { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; font-size: 12px; opacity: .8; }
.skin-a .desk .trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.skin-a .desk .trail polyline {
  fill: none; stroke: var(--a-lav); stroke-opacity: .7; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; opacity: 0;
}
.skin-a .brush {
  position: absolute; left: 50%; top: 50%; z-index: 90; opacity: 0; pointer-events: none;
  transform: translate(-32%, -74%) rotate(-8deg);
}
.skin-a .brush.down { transform: translate(-32%, -74%) rotate(10deg) scale(.94); }
.skin-a .brush svg { display: block; }
.skin-a .brush .b-handle, .skin-a .brush .b-lines { stroke: var(--a-ink); }
.skin-a .brush .b-glint { stroke: var(--a-lav); }
.skin-a .brush .b-bristles { fill: var(--a-cit); stroke: var(--a-ink); }
.skin-a .fig-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.skin-a .fig-bar p { flex: 1 0 200px; margin: 0; font-size: 15px; font-weight: 600; }

/* -- The three steps, once, under the page. */
.skin-a .trail3 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 8px 0 24px; list-style: none;
}
.skin-a .trail3 li {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px;
  border: 2px solid var(--a-line); border-radius: 999px; background: var(--surface);
  font-weight: 700; font-size: 15px;
}
.skin-a .trail3 li:nth-child(1) { transform: rotate(-1.5deg); }
.skin-a .trail3 li:nth-child(3) { transform: rotate(1deg); }
.skin-a .trail3 li:nth-child(5) { transform: rotate(-1deg); }
.skin-a .trail3 .k {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border: 2px solid var(--a-ink); border-radius: 50%; background: var(--a-cit); color: var(--a-ink);
  font-size: 13px; font-weight: 800;
}
.skin-a .trail3 li.arw { padding: 0; border: 0; background: none; color: var(--slate); font-weight: 800; }

/* -- Your résumés (a list, no markup change): each row a sticker card, not a ruled line. The phone's grid areas
   for the row's actions are sweep.css's and are not touched; only the rank column is widened for a 28px numeral. */
.skin-a .ledger.manage { gap: 14px; }
.skin-a .ledger.manage > li.resume {
  grid-template-columns: 2.5rem minmax(0, 1fr) auto; padding: 18px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 22px; box-shadow: 4px 4px 0 var(--a-shadow);
}
.skin-a .ledger.manage .resume-head .rank { font: 800 28px/1 var(--display); color: var(--chalk); }
.skin-a .ledger.manage .resume .status {
  justify-self: start; padding: 2px 10px; border: 1.5px solid var(--control); border-radius: 999px;
}
.skin-a .manage + .actionbar { margin-top: 18px; padding-top: 0; border-top: 0; }

/* -- Reading your résumé (/derive): the activity row is a pill with a live dot, the bar a striped lavender fill. */
.skin-a .working .activity {
  max-width: 100%; padding: 8px 16px; border: 2px solid var(--a-line); border-radius: 999px; background: var(--surface);
}
.skin-a .working .activity.live .activity-dot { width: 10px; height: 10px; background: var(--a-primary); }
@media (min-width: 40.01rem) {
  .skin-a .working .activity { flex-wrap: nowrap; }
  .skin-a .working .activity > .working-bar { flex: 0 1 14rem; width: 14rem; }
}
.skin-a .working .working-bar { height: 14px; border: 2px solid var(--a-line); border-radius: 999px; background: var(--well); }
.skin-a .working .working-bar span {
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, var(--a-lav) 0 10px, var(--a-tint) 10px 20px);
}

@media (max-width: 40rem) {
  .skin-a .add, .skin-a .add.after { padding: 18px; box-shadow: 5px 5px 0 var(--a-shadow); }
  .skin-a .desk { height: 480px; border-radius: 22px; }
  .skin-a .jc { padding: 7px 8px; border-radius: 11px; box-shadow: 3px 3px 0 var(--a-shadow); }
  .skin-a .jc-t { margin-bottom: 5px; font-size: 12.5px; }
  .skin-a .jc-co { font-size: 10px; }
  .skin-a .jc-loc { display: none; }
  .skin-a .jc-pill { padding: 1px 5px; font-size: 10px; }
  .skin-a .shortlist { padding: 10px; }
  .skin-a .sl-head { font-size: 12px; }
  .skin-a .trail3 { flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .skin-a .trail3 li.arw { display: none; }
  .skin-a .ledger.manage > li.resume { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .skin-a .working .activity { border-radius: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* A listing travels to the shortlist, or drifts off; the parallax follows the pointer a little behind. */
  .skin-a .jc {
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), left .85s cubic-bezier(.7, 0, .2, 1),
                top .85s cubic-bezier(.7, 0, .2, 1), opacity .5s ease;
  }
  .skin-a .jc.swept {
    transition: transform .85s cubic-bezier(.7, 0, .2, 1), left .85s cubic-bezier(.7, 0, .2, 1),
                top .85s cubic-bezier(.7, 0, .2, 1), opacity .45s ease .2s;
  }
  .skin-a .desk .trail polyline { transition: opacity .45s ease; }
  .skin-a .brush { transition: opacity .2s; }
  .skin-a .brush.auto { transition: left .22s ease, top .22s ease, opacity .2s; }
  /* A file just picked pops in (A2's pop, in place of sweep.css's fade). */
  .skin-a .picked-row { animation: a-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  /* The mark gives a gentle wiggle while Sweep is reading; the error screen has no activity row, so it keeps still. */
  .skin-a .working:has(.activity) > .mark { animation: a-bob 2.4s ease-in-out infinite; }
}

/* ==== A5: the Review screen ==================================================
   /review in public mode: "Did we get you right?", the experience chip, the first six roles, and the skills as chips you
   tap to tune (templates/review.html, _weights.html with tune=true, _resumes.html for the cards). Public only, tokens only
   (no raw colour), and motion only in the no-preference block at the end. None of it touches the form contract: every
   field here is the field the plain form already had, in the same form, in the same order.

   Reveals. WITHOUT a script everything is open and the page is the plain form it always was. WITH one, theme.js has put
   `js` on <html> before first paint, so what is closed is already hidden and Alpine opens it (an `open` / `all` class on
   the thing, plus aria-expanded on the button). Hidden is display:none on a wrapper, never a removed or disabled input:
   a skill behind "+N more" still posts its term and its weight. No x-cloak here: it would hide them without a script too. */
.skin-a.js .xp-edit:not(.open),
.skin-a.js .tune-row:not(.open) .tune-pop,
.skin-a.js .add-skills:not(.open),
.skin-a.js .chips:not(.all) .tag.extra,
.skin-a.js .tunes:not(.all) .tune-row.extra { display: none; }
/* Without a script these two have nothing to open (everything is already open), so they are not drawn. */
.skin-a:not(.js) .chip.more, .skin-a:not(.js) .tune-chip.tune-add { display: none; }

/* -- The three findings' headings. On the one-résumé page they are h2 (under its h1; h3 inside a résumé card, where that card's h2 is
   the section): one look either way, the size and face the h3 always had (sweep.css), so the h2's display face, 20px and balance
   do not reach them. */
.skin-a .read-name .read-h { margin: 0; font: 600 14px/20px var(--text); letter-spacing: normal; text-wrap: wrap; }

/* -- You: the years chip, and the editor it opens. */
.skin-a .xp-chip {
  position: relative; display: inline-flex; align-items: center; align-self: flex-start; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 2px dashed var(--a-line); border-radius: 12px;
  background: var(--a-tint); color: var(--chalk); font: 600 14px/1.25 var(--text); cursor: pointer;
}
.skin-a .xp-chip:hover { border-style: solid; }
.skin-a .xp-chip[aria-expanded="true"] { border-style: solid; background: var(--a-cit); color: var(--a-ink); }
.skin-a .xp-edit {
  padding: 14px 16px; background: var(--a-tint); border: 2px solid var(--a-line); border-radius: 18px; max-width: 30rem;
}
/* The work history could not be checked, so the years are the person's to set: said first, in the page's ink. */
.skin-a .xp-edit .xp-check { margin: 0 0 4px; font-size: 15px; line-height: 1.45; color: var(--chalk); }

/* -- Roles: the chips are a wrapped row, so the "+N more" button sits in it at its own height. */
.skin-a .read .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.skin-a .read .chips .tag { margin: 0; }
.skin-a button.chip.more {
  min-height: 44px; padding: 0 14px; border: 2px dashed var(--a-line); border-radius: 999px;
  background: transparent; color: var(--chalk); font: 600 14px/1.2 var(--text); cursor: pointer;
}
.skin-a button.chip.more:hover { background: var(--a-tint); border-style: solid; }

/* -- Skills, tap to tune. A row is a chip and the panel it opens; `display: contents` lets the chips wrap as one flowing
   set and the open panel take a line to itself right after its own chip. */
.skin-a .tune-wrap { display: flex; flex-direction: column; gap: 14px; }
.skin-a .tunes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.skin-a .tune-row { display: contents; }
.skin-a .tune-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--a-line); border-radius: 999px; background: var(--surface); color: var(--chalk);
  font: 600 15px/1.2 var(--text); cursor: pointer;
}
.skin-a .tune-chip:hover { background: var(--a-tint); }
.skin-a.js .tune-chip:hover { transform: translateY(-2px); }
.skin-a .tune-chip.tune-add { border-style: dashed; background: transparent; }
.skin-a .tune-chip.tune-add:hover { background: var(--a-tint); border-style: solid; }
.skin-a .tune-row.open .tune-chip {
  background: var(--a-lav); color: var(--a-ink); box-shadow: 3px 3px 0 var(--a-shadow); transform: rotate(-2deg);
}
.skin-a .tune-row.open .tune-chip:hover { transform: translateY(-2px) rotate(-2deg); }
/* A skill marked for removal reads struck through even when its panel is shut. */
.skin-a .tune-row:has(input[name="drop"]:checked) .tune-chip { text-decoration: line-through; }
.skin-a .dots { display: inline-flex; gap: 3px; }
.skin-a .dots i {
  display: inline-block; box-sizing: border-box; width: 7px; height: 7px;
  border: 1.5px solid currentColor; border-radius: 50%;
}
.skin-a .dots i.f { background: currentColor; }

.skin-a .tune-pop {
  flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 16px; background: var(--a-tint); border: 2px solid var(--a-line); border-radius: 18px;
}
.skin-a .tune-pop .tag { margin: 0; }
/* Remove sits at the right end of the first line, after the badges, and the reason takes the line under; the markup order
   (the stepper, the word, Remove, the badges, the reason) is the order a keyboard meets them. */
.skin-a .tune-pop .remove { position: relative; order: 1; margin-left: auto; }
.skin-a .tune-word { font-weight: 700; font-size: 14px; color: var(--chalk); }
.skin-a .tune-why { flex: 1 0 100%; order: 2; max-width: none; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--warm); }
.skin-a .add-skills { padding: 14px 16px; background: var(--a-tint); border: 2px solid var(--a-line); border-radius: 18px; }
.skin-a .peek-body .chips { margin: 0 0 10px; }

/* -- Unified review: each résumé a sticker card; the open one wears a lavender ring; a reviewed one's pill is citrus
   with an ink tick. No markup change: the selector is the section the macros already write. */
/* Scoped to the unified review: Upload's résumé list is also an .ledger (A4 styles that one). */
.skin-a [data-resumes] .ledger { gap: 14px; }
.skin-a .ledger > section.resume {
  margin: 0; padding: 18px; background: var(--surface); border: 2px solid var(--a-line); border-radius: 22px;
  box-shadow: 4px 4px 0 var(--a-shadow);
}
.skin-a .ledger > section.resume[data-open] {
  outline: 3px solid var(--a-lav); outline-offset: 3px; box-shadow: 6px 6px 0 var(--a-shadow);
}
.skin-a .ledger > section.resume .status {
  justify-self: start; padding: 2px 10px; border: 1.5px solid var(--control); border-radius: 999px;
}
.skin-a .ledger > section.resume .status.reviewed { background: var(--a-cit); color: var(--a-ink); border-color: var(--a-ink); }
.skin-a .ledger > section.resume .status.reviewed::before { border-color: var(--a-ink); }

/* -- On a phone the bar with Save is pinned to the foot of the screen (the same bar as A2's mbar: ground, a 2px rule,
   the home-indicator inset). It sits in the form, so it is only pinned while the form is on screen. */
@media (max-width: 40rem) {
  .skin-a .review-form > .actionbar {
    position: sticky; bottom: 0; z-index: 25; margin: 0 calc(var(--s5) * -1);
    padding: 12px var(--s5) calc(12px + env(safe-area-inset-bottom));
    background: var(--ground); border-top: 2px solid var(--a-line);
  }
  .skin-a .ledger > section.resume[data-open] .review-form > .actionbar { margin-inline: -18px; padding-inline: 18px; }
  .skin-a .tune-pop, .skin-a .xp-edit, .skin-a .add-skills { padding: 12px 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .skin-a .xp-chip, .skin-a .tune-chip, .skin-a button.chip.more {
    transition: transform var(--ms-1) ease, box-shadow var(--ms-1) ease, background-color var(--ms-1) ease;
  }
  /* What a tap opened arrives with A2's pop; with reduced motion it simply appears. */
  .skin-a.js .tune-row.open .tune-pop, .skin-a.js .xp-edit.open, .skin-a.js .add-skills.open {
    animation: a-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }
}

/* ==== V2 F1: the résumé deck =================================================
   /review in public mode with two or three résumés and one open for editing (templates/_resumes.html, deck): the ledger becomes
   two columns, the deck on the left (a pile of paper sheets, one per résumé in the search, the front one the résumé being checked,
   then the pips and the count, then the other résumés as compact rows with their own buttons) and the open résumé's card on the
   right. The sheets are decoration (aria-hidden); the rows are the real, accessible cards. Public only, tokens only (no raw
   colour). Motion only in the no-preference block at the end: on "Looks right, next résumé"
   the sheets shuffle (going.css, is-shuffle; going.js waits for it). With reduced motion the sheets simply stand or are
   where the shuffle ends. */
.skin-a [data-resumes] .ledger.deck-on { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.skin-a .deck-side { min-width: 0; }
@media (min-width: 900px) {
  .skin-a [data-resumes] .ledger.deck-on { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; }
}
/* Pinned beside the open card, when the window is tall enough to hold the column: a short one would cut its rows off. */
@media (min-width: 900px) and (min-height: 760px) {
  .skin-a .deck-side { position: sticky; top: 16px; }
}

/* -- The pile: a box tall enough for the offsets, the sheets stacked in it. The front one is the hard-shadow sticker. */
.skin-a .deck { position: relative; height: 300px; margin-top: 8px; }
.skin-a .deck-sheet {
  position: absolute; left: 0; top: 0; box-sizing: border-box; width: min(calc(100% - 16px), 320px); height: 230px;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; overflow: hidden;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 8px 8px 22px 22px;
}
/* The paper's margin: a dashed peach line down the left. */
.skin-a .deck-sheet::before {
  content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--a-pch) 0 6px, transparent 6px 12px); opacity: 0.6;
}
.skin-a .deck-sheet.p0 { z-index: 3; transform: rotate(-1.5deg); box-shadow: 6px 6px 0 var(--a-shadow); }
.skin-a .deck-sheet.p1 { z-index: 2; transform: translate(14px, 24px) rotate(2.5deg); }
.skin-a .deck-sheet.p2 { z-index: 1; transform: translate(-10px, 46px) rotate(-4deg); }
.skin-a .deck-file { display: flex; min-width: 0; margin: 0; font: 700 13px/16px var(--text); color: var(--slate); }
.skin-a .deck-name { display: block; font: 800 24px/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; color: var(--chalk); }
.skin-a .deck-xp { font-size: 14px; color: var(--slate); }
.skin-a .deck-state { display: flex; align-items: center; gap: 8px; margin-top: auto; font: 700 13.5px/1.2 var(--text); color: var(--chalk); }
.skin-a .deck-state::before {
  content: ""; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid var(--a-line); border-radius: 50%; background: var(--a-primary);
}
/* Every résumé reviewed: the front sheet is the whole pile's, its dot citrus. */
.skin-a .deck-state.is-done::before { background: var(--a-cit); }

/* -- Every résumé reviewed and none open: the way on stands where the open card was, a ticket-like box the height of the pile,
   its button at the foot. The bar keeps its own two ends (Manage on the left, Continue on the right). */
.skin-a .deck-done {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; margin-top: 8px; padding: 22px 24px;
  border: 2px solid var(--a-line); border-radius: 24px; background: var(--surface); box-shadow: 6px 6px 0 var(--a-shadow);
}
.skin-a .deck-done > .actionbar { margin: 0; padding-top: 0; border-top: 0; }

/* -- Which of them has looked right: reviewed is citrus, the one being checked is longer and the primary, the rest a hairline. */
.skin-a .deck-pips { display: flex; gap: 6px; margin: 4px 0 0; }
.skin-a .deck-pips i { width: 30px; height: 8px; border-radius: 999px; background: var(--surface-edge); }
.skin-a .deck-pips i.d { background: var(--a-cit); }
.skin-a .deck-pips i.n { width: 46px; background: var(--a-primary); }
.skin-a .deck-side > .meta { margin: 8px 0 12px; }

/* -- The other résumés, as compact rows: the name and its file, the state on a line of its own, then the body; the same shapes
   as the phone's ledger (sweep.css), and the state pill the cards have. */
.skin-a .deck-side .resume { grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: 10px; row-gap: 4px; padding: 12px 0; }
.skin-a .deck-side .resume .status {
  grid-column: 2; grid-row: 2; justify-self: start; padding: 2px 10px; border: 1.5px solid var(--control); border-radius: 999px;
}
.skin-a .deck-side .resume .status.reviewed { background: var(--a-cit); color: var(--a-ink); border-color: var(--a-ink); }
.skin-a .deck-side .resume .status.reviewed::before { border-color: var(--a-ink); }
.skin-a .deck-side .resume-body { grid-column: 2; grid-row: 3; gap: 8px; }
.skin-a .deck-side .resume-body.line { column-gap: 12px; }
.skin-a .deck-side .resume-body.line > p { min-width: 0; }

/* -- "Leave this résumé out", at the left of the open card's bar. On a phone that bar is pinned and the way on goes first: the
   leave-out is the line under it, not a second tall row. */
@media (max-width: 40rem) {
  .skin-a .review-form > .actionbar { gap: 4px; }
  .skin-a .review-form > .actionbar > .actions { order: 1; }
  .skin-a .review-form > .actionbar > .tertiary { order: 2; flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  /* The sheets ride one transition, so the shuffle (going.css) moves them together. The next page fades in over this one
     (deck.css), so the next résumé's words land on the sheet that came up; nothing slides in on arrival. */
  .skin-a .deck-sheet { transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, box-shadow .3s ease; }
}

/* ==== K2: the unlock ==========================================================
   The paste step, redone (templates/key.html): a lock in the field (decoration; the sentence under it is the promise), "Check
   my key", and the check said as three facts. While the form is out only the first is under way (a ring); back on this page
   from GET /key?checked, all three are in, each ticking on after the one before, and the setup's boards firm up beside them.
   Reduced motion: the facts are simply there. Tokens only. */
.skin-a .key-slot { position: relative; display: block; }
.skin-a .key-slot input { width: 100%; padding-right: 48px; }
.skin-a .key-lock { position: absolute; right: 16px; top: 50%; margin-top: -10px; color: var(--slate); pointer-events: none; }
.skin-a .key-run:not([hidden]) {                                          /* so the browser's own [hidden] still hides it */
  display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; padding: 16px 18px; list-style: none;
  background: var(--surface-high); border: 2px solid var(--surface-edge); border-radius: 18px;
}
.skin-a .key-run li { display: flex; align-items: center; gap: 10px; font: 700 15px/1.3 var(--text); color: var(--slate); }
.skin-a .key-run li.on, .skin-a .key-run li.now { color: var(--chalk); }
.skin-a .key-run .dot {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; box-sizing: border-box;
  border: 2px solid var(--control); border-radius: 50%; background: var(--surface); color: var(--a-ink);
}
.skin-a .key-run .dot svg { visibility: hidden; }
.skin-a .key-run li.now .dot { border-color: var(--a-primary); border-style: dashed; }
.skin-a .key-run li.on .dot { border-color: var(--a-line); background: var(--a-cit); }
.skin-a .key-run li.on .dot svg { visibility: visible; }
.skin-a .key-run li .sending { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .skin-a .key-run.is-done li { animation: a-pop .32s cubic-bezier(.3, 1.6, .5, 1) both; }
  .skin-a .key-run.is-done li:nth-child(2) { animation-delay: .45s; }
  .skin-a .key-run.is-done li:nth-child(3) { animation-delay: .9s; }
}

/* ==== T2: the plan ticket ======================================================
   /configure in public mode, Deep Sweep (templates/configure.html): Configure and Confirm are one screen. The settings stay on
   the left; on the right, one ticket: what is searched (lines that are written in again when they change: price.js ink, the
   a-ink wash), then the credit jar with the price beside it, then the peach stub that tears off, with Start, or, over the
   credit, two coupons to pick from before a button appears. Tokens only. Reduced motion: no wash. */
.skin-a .cf-ticket { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 64rem) and (min-height: 56rem) {
  .skin-a .cf-ticket { position: sticky; top: 16px; }
}
.skin-a .pticket {
  display: flex; flex-direction: column; background: var(--surface);
  border: 2px solid var(--a-line); border-radius: 28px; box-shadow: 8px 8px 0 var(--a-shadow);
}
.skin-a .pt-main { position: relative; padding: 24px 24px 14px; }
.skin-a .pt-main > .stamp { position: absolute; right: 20px; top: 20px; }
.skin-a .pt-main h2 { margin: 0 0 10px; padding-right: 8.5rem; font: 800 22px/1.2 var(--display); }
.skin-a .pt-lines { margin: 0; }
.skin-a .pt-line {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 10px 6px;
  border-top: 1.5px solid var(--surface-edge); border-radius: 8px;
}
.skin-a .pt-line:first-child { border-top: 0; }
.skin-a .pt-line dt { padding-top: 2px; font: 800 12px/1.4 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.skin-a .pt-line dd { margin: 0; font: 700 15px/1.4 var(--text); color: var(--chalk); overflow-wrap: anywhere; }

/* -- The jar and the price, side by side: the price is what the jar is filled to. */
.skin-a .pt-cost {
  display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; align-items: end;
  padding: 18px 24px 26px; border-top: 1.5px solid var(--surface-edge);
}
.skin-a .pt-cost .jar { width: 112px; height: 140px; margin: 16px 0 0 6px; }
.skin-a .pt-figure { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.skin-a .pt-figure > .label { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 700 13.5px/1.3 var(--text); color: var(--slate); }
.skin-a .pt-figure .numeral { margin: 0; font: 800 52px/1 var(--display); letter-spacing: -.04em; color: var(--chalk); }
.skin-a .pt-figure .numeral.over { color: var(--over); }
.skin-a .pt-figure .numeral.updating { opacity: var(--pending-dim); }
.skin-a .pt-figure > p.over { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--over); }

/* -- The stub: ink on peach, torn off along a dashed line with a notch at each end. */
.skin-a .pt-stub {
  --chalk: var(--a-ink); --slate: color-mix(in srgb, var(--a-ink) 82%, var(--a-pch)); --control: var(--a-ink);
  --surface-high: color-mix(in srgb, var(--a-ink) 10%, transparent);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px;
  background: var(--a-pch); color: var(--a-ink); border-top: 3px dashed var(--a-ink); border-radius: 0 0 26px 26px;
}
.skin-a .pt-stub::before, .skin-a .pt-stub::after {
  content: ""; position: absolute; top: -17px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--a-line);
}
.skin-a .pt-stub::before { left: -17px; }
.skin-a .pt-stub::after { right: -17px; }
.skin-a .pt-stub .meta { margin: 0; color: var(--slate); }
.skin-a .pt-stub .primary { align-self: stretch; justify-content: center; border-color: var(--a-ink); box-shadow: 4px 4px 0 var(--a-ink); }
.skin-a .pt-stub .primary:hover { box-shadow: 6px 6px 0 var(--a-ink); }
.skin-a .pt-stub .primary:active { box-shadow: 1px 1px 0 var(--a-ink); }
.skin-a .pt-stub button.primary[disabled], .skin-a .pt-stub button.primary[disabled]:hover {
  background: transparent; color: var(--a-ink); border: 2px dashed var(--a-ink); box-shadow: none;
}
.skin-a .pt-stub .error {
  margin: 0; padding: var(--s3) var(--s4); color: var(--a-ink);
  background: color-mix(in srgb, var(--a-ink) 8%, transparent); border: 2px solid var(--a-ink); border-radius: var(--radius);
}
.skin-a .pt-go, .skin-a .pt-coupons { display: flex; flex-direction: column; gap: 10px; }

/* Over the credit: two tear-off coupons. Picked, one goes solid ink and its own button appears under them. */
.skin-a .coupon {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left; cursor: pointer;
  font: inherit; color: var(--a-ink); background: color-mix(in srgb, var(--a-ink) 5%, transparent);
  border: 2px dashed var(--a-ink); border-radius: 16px;
}
.skin-a .coupon b { font: 800 18px/1.2 var(--display); }
.skin-a .coupon span { font-size: 14px; line-height: 1.4; }
.skin-a .coupon:hover { border-style: solid; background: var(--surface-high); }
.skin-a .coupon[aria-pressed="true"] { border-style: solid; background: var(--a-ink); color: var(--a-pch); }
.skin-a .coupon:focus-visible { outline: 3px solid var(--a-ink); outline-offset: 3px; }

/* -- The accounts that pay, under the ticket. */
.skin-a .cf-ticket .accounts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.skin-a .cf-ticket .accounts li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

@media (prefers-reduced-motion: no-preference) {
  /* A ticket line that changed is written in again: a citrus wash that fades. */
  .skin-a .pt-line.inked { animation: a-ink 1.1s ease-out; }
  @keyframes a-ink { from { background-color: var(--a-cit); } }
}

/* ==== A6: Search coverage ====================================================
   /key in public mode (templates/key.html): "How wide should we sweep?", two radio cards, a diagram of what each one
   searches, and the Deep Sweep setup one step at a time over the real key form. Public only, tokens only (no raw colour),
   motion only in the no-preference block at the end. Nothing here touches a form: the radios are in neither form, the Quick
   form posts to key_free and the key form to key, as they always did.

   Reveals, as in A5. WITHOUT a script the page is the plain one: the choose view, then the setup with all three steps in
   order and the key form. WITH one, theme.js has put `js` on <html> before first paint, and only then is anything closed:
   the choose view goes away while the setup is open, the setup shows only when opened, a step only when it is the one,
   the Quick form only for Quick, the "Set up" button only for Deep, and the setup's tip only on steps 1 and 2 (it says how long the
   guide takes, which is stale at the paste step). The template writes the starting classes, so the
   first paint is already right; Alpine takes them over. No x-cloak: it would hide these without a script too. */
.skin-a.js .cov-choose.away,
.skin-a.js .cov-setup:not(.open),
.skin-a.js .wstep:not(.open),
.skin-a.js .cov-quick:not(.on),
.skin-a.js .cov-deepgo:not(.on),
.skin-a.js .wtip:not(.on) { display: none; }
/* Controls with nothing to do without a script are not drawn (the Set up button, the Back buttons, the step count). */
.skin-a:not(.js) .cov-page .js-only { display: none; }

.skin-a .cov-page { display: flex; flex-direction: column; gap: var(--s6); --cov-tint: color-mix(in srgb, var(--a-cit) 22%, var(--surface)); }
.skin-a .cov-choose { display: flex; flex-direction: column; gap: var(--s6); }

/* -- The choice: the cards (left) and the diagram (right). */
/* The diagram is anchored to the top of its column, level with the top of the cards (it was centred, so opening the cost peek under
   the cards made the column taller and moved the diagram down with it): opening the peek now moves only what is under it. */
.skin-a .cov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 24px; }
.skin-a .cov-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.skin-a .cov-choices { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; border: 0; min-width: 0; }

/* The cards are A2's choice card, larger: a name in the display face, one line under it. The chosen Quick card takes a
   citrus tint, the chosen Deep card is filled lavender with ink (its "+3 big boards" sticker is citrus: peach is for money, and this
   is not a price). */
.skin-a .cov-choices .choice {
  position: relative; align-items: flex-start; gap: 14px; padding: 22px; border-radius: 24px;
  background: var(--surface); border: 2px solid var(--a-line);
}
.skin-a .cov-choices .choice:hover { background: var(--a-tint); }
.skin-a .cov-choices .choice:has(:checked) { box-shadow: 6px 6px 0 var(--a-shadow); }
.skin-a .cov-choices .choice.q:has(:checked), .skin-a .cov-choices .choice.q:has(:checked):hover { background: var(--cov-tint); }
.skin-a .cov-choices .choice.d:has(:checked), .skin-a .cov-choices .choice.d:has(:checked):hover {
  background: var(--a-lav); color: var(--a-ink); border-color: var(--a-ink);
}
/* The radios are drawn here, not the browser's (a native one took the lavender of the checked Deep card and disappeared into it in dark):
   an ink ring, an ink dot once checked. "Ink" is the page's own line colour (--a-line: ink in light, paper in dark), and on the lavender
   Deep card, which is lavender in both themes, it is the fixed ink. The input is still the native one: same name, value and x-model,
   the same keyboard and screen-reader behaviour; only its look is replaced. */
.skin-a .cov-choices .choice > input {
  --rc: var(--a-line);
  appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 24px; height: 24px; margin: 4px 0 0;
  border: 2.5px solid var(--rc); border-radius: 50%; background-color: transparent;
}
.skin-a .cov-choices .choice > input:checked { background-image: radial-gradient(circle closest-side, var(--rc) 0 56%, transparent 62%); }
.skin-a .cov-choices .choice.d:has(:checked) > input { --rc: var(--a-ink); }
.skin-a .cov-choices .choice > input:focus-visible { outline: 3px solid var(--a-focus); outline-offset: 3px; }
.skin-a .cov-choices .choice.d:has(:checked) > input:focus-visible { outline-color: var(--a-ink); }
.skin-a .cov-choices .choice > span:not(.sticker) { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.skin-a .cov-choices .nm { font: 800 30px/1 var(--display); letter-spacing: -0.02em; color: inherit; }
.skin-a .cov-choices .ds { font-size: 15.5px; line-height: 1.45; color: var(--warm); }
.skin-a .cov-choices .choice.d:has(:checked) .ds { color: var(--a-ink); }
.skin-a .cov-choices .sticker { position: absolute; right: 18px; top: -16px; }

.skin-a .cov-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.skin-a .cov-quick { margin: 0; }

/* -- The diagram. Decoration (aria-hidden); the sentence beside it is the live region. Inner ring: what every sweep
   searches. Outer ring: the paid boards, dim and empty for Quick, full for Deep. The outer chips sit on the ring at
   --ang (set in the template, evenly round from the top); a chip is centred on its point and turned in place. */
.skin-a .orbit-box { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; justify-self: center; }
.skin-a .orbit-ring { position: absolute; border-radius: 50%; }
.skin-a .orbit-ring.outer { inset: 0; border: 2.5px dashed var(--a-line); opacity: .35; scale: .92; }
.skin-a .orbit-ring.inner { inset: 24%; border: 2.5px solid var(--a-line); background: var(--cov-tint); }
.skin-a .orbit-core {
  position: absolute; inset: 39%; display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 50%; background: var(--chalk); color: var(--ground); font: 800 14px/1.05 var(--display);
}
.skin-a .orbit-spin { position: absolute; inset: 0; }
.skin-a .orbit-pt { position: absolute; width: 0; height: 0; }
/* The first declaration is the fallback for a browser without sin() / cos(): every chip at the top, rather than none. */
.skin-a .orbit-pt.out { left: 50%; top: 3%; }
.skin-a .orbit-pt.out { left: calc(50% + 47% * sin(var(--ang))); top: calc(50% - 47% * cos(var(--ang))); }
/* Evenly round from the top, by how many paid boards there are (the spin carries n<count>): a class rather than Jinja in a
   style attribute (test_app: style="" is CSS, and only a continuous percentage may be written into one).
   ponytail: rows for up to four boards; a fifth would sit on the first until an .n5 row is added. */
.skin-a .orbit-pt.out { --ang: 0deg; }
.skin-a .n2 > .orbit-pt.out:nth-child(2) { --ang: 180deg; }
.skin-a .n3 > .orbit-pt.out:nth-child(2) { --ang: 120deg; }
.skin-a .n3 > .orbit-pt.out:nth-child(3) { --ang: 240deg; }
.skin-a .n4 > .orbit-pt.out:nth-child(2) { --ang: 90deg; }
.skin-a .n4 > .orbit-pt.out:nth-child(3) { --ang: 180deg; }
.skin-a .n4 > .orbit-pt.out:nth-child(4) { --ang: 270deg; }
.skin-a .orbit-pt.in1 { left: 50%; top: 28%; }
.skin-a .orbit-pt.in2 { left: 50%; top: 72%; }
.skin-a .o-chip {
  position: absolute; left: 0; top: 0; translate: -50% -50%; display: inline-block; white-space: nowrap;
  padding: 7px 13px; border: 2px solid var(--a-ink); border-radius: 999px;
  background: var(--a-lav); color: var(--a-ink); font-weight: 800; font-size: 13.5px; line-height: 1.2;
}
.skin-a .o-chip.in { background: var(--a-cit); }
.skin-a .o-chip.out { opacity: 0; scale: .4; }
.skin-a .orbit-box.is-deep .orbit-ring.outer { opacity: 1; scale: 1; background: var(--a-tint); }
.skin-a .orbit-box.is-deep .o-chip.out { opacity: 1; scale: 1; }
/* Without a script the radios still work, so the diagram follows them. */
.skin-a:not(.js) .cov:has(.choice.d :checked) .orbit-ring.outer { opacity: 1; scale: 1; background: var(--a-tint); }
.skin-a:not(.js) .cov:has(.choice.d :checked) .o-chip.out { opacity: 1; scale: 1; }

/* -- The setup: one sticker card. */
.skin-a .cov-setup {
  display: flex; flex-direction: column; gap: 22px; max-width: 720px; padding: 32px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 28px; box-shadow: 6px 6px 0 var(--a-shadow);
}
/* The tip's wrapper (steps 1 and 2 only, above) takes no box of its own: the tip stays the card's flex item, so a dismissed one leaves no gap. */
.skin-a .wtip { display: contents; }
/* On a wide screen the setup has the diagram beside it, in its Deep state, so the right of the page is not empty. The boards are
   "waiting" (dashed, muted) until the paste step, then they firm up (solid, full colour). It is a second drawing of the one in the
   choice, aria-hidden, with no live region. Not drawn without a script (the setup is then the plain page, as before) or on a phone. */
.skin-a.js .cov-setup-row:not(.open) { display: none; }
.skin-a:not(.js) .cov-side { display: none; }
@media (max-width: 63.99rem) {
  .skin-a.js .cov-side { display: none; }
}
@media (min-width: 64rem) {
  .skin-a.js .cov-setup-row { display: grid; grid-template-columns: minmax(0, 44rem) minmax(20rem, 1fr); gap: 40px; align-items: start; }
  .skin-a.js .cov-setup-row > .cov-setup { max-width: none; }
}
/* The side's inline padding is the room the orbiting boards need: they ride the ring and stick out of the diagram's box by about half
   a chip, which at 1024px would otherwise push the page a few pixels wider while one is at the right-hand end of its turn. */
.skin-a .cov-side { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 44px 0; }
.skin-a .cov-side .orbit-box { max-width: 380px; }
.skin-a .cov-side .sticker { margin-top: 20px; }                                  /* under the diagram, clear of the boards that ride the ring */
.skin-a .setup-box:not(.firm) .o-chip.out {
  background: var(--surface); border: 2px dashed var(--control); color: var(--slate);     /* opaque, so the ring's dashes do not run through the word */
}
.skin-a .cov-setup-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.skin-a .cov-setup-top h2 { font: 800 clamp(26px, 3.2vw, 36px)/1.05 var(--display); letter-spacing: -0.03em; }
.skin-a .cov-setup [tabindex="-1"]:focus { outline: none; }
.skin-a .wnav { display: flex; align-items: center; gap: 12px; }
.skin-a .wdots { display: inline-flex; gap: 8px; }
.skin-a .wdots i { display: inline-block; width: 34px; height: 8px; border-radius: 999px; background: var(--surface-edge); }
.skin-a .wdots i.on { width: 56px; background: var(--a-primary); }
.skin-a .wdots i.ok { background: var(--a-cit); }
.skin-a .wcount { font-size: 13.5px; font-weight: 700; color: var(--slate); }

.skin-a .wsteps { display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: wstep; }
.skin-a .wstep { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0; }
.skin-a .wstep > * { max-width: 100%; }
.skin-a .wstep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; }
.skin-a .wstep h3 { margin: 0; font: 800 clamp(22px, 2.4vw, 28px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--chalk); }
.skin-a .wstep p { max-width: 34em; font-size: 16px; line-height: 1.55; color: var(--warm); }
.skin-a .wstep p.meta { font-size: 14px; line-height: 1.5; }
.skin-a .wstep form { width: 100%; max-width: 34rem; }
.skin-a .wstep .go-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
/* Without a script the steps are a numbered list, so the order reads. */
.skin-a:not(.js) .wstep h3::before {
  counter-increment: wstep; content: counter(wstep); display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-right: 10px; vertical-align: 2px;
  border: 2px solid var(--a-ink); border-radius: 50%; background: var(--a-cit); color: var(--a-ink); font: 800 15px/1 var(--text);
}
.skin-a .mocktok {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 30rem; padding: 14px;
  border: 2px dashed var(--a-line); border-radius: 16px; background: var(--well);
}
.skin-a .mocktok .crumb { flex-basis: 100%; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.skin-a .mocktok b { flex-grow: 1; }
.skin-a .mocktok .dotsrow { color: var(--slate); letter-spacing: .1em; }
.skin-a .mocktok .cp {
  padding: 4px 10px; border: 1.5px solid var(--a-ink); border-radius: 8px;
  background: var(--a-cit); color: var(--a-ink); font-weight: 800; font-size: 12.5px;
}

@media (max-width: 56rem) {
  .skin-a .cov { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 8px; }
  .skin-a .orbit-box { max-width: 260px; order: -1; }
  .skin-a .orbit-core { inset: 35%; font-size: 12px; }
}
@media (max-width: 40rem) {
  .skin-a .cov-choices .choice { padding: 18px; }
  .skin-a .cov-choices .nm { font-size: 26px; }
  .skin-a .o-chip { padding: 5px 10px; font-size: 12px; }
  .skin-a .cov-setup { padding: 20px; border-radius: 22px; box-shadow: 4px 4px 0 var(--a-shadow); }
  .skin-a .wstep-head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  /* The Quick / Deep button is the phone's bar (A2's mbar look), pinned to the foot of the screen while the choice is on it. */
  .skin-a .cov-cta {
    position: sticky; bottom: 0; z-index: 25; margin: 0 calc(var(--s5) * -1);
    padding: 12px var(--s5) calc(12px + env(safe-area-inset-bottom));
    background: var(--ground); border-top: 2px solid var(--a-line);
  }
  .skin-a .cov-cta .primary, .skin-a .cov-quick, .skin-a .cov-quick .actions { flex: 1 1 100%; }
  .skin-a .cov-quick .actions > button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .skin-a .cov-choices .choice { transition: transform var(--ms-1) ease, box-shadow var(--ms-1) ease, background-color var(--ms-1) ease; }
  .skin-a .cov-choices .choice:hover { transform: translate(-2px, -2px); }
  /* The boards a Deep Sweep adds pop onto the ring and slowly orbit it; each chip turns back so its words stay upright. */
  .skin-a .orbit-ring { transition: opacity .4s ease, scale .5s cubic-bezier(.3, 1.5, .5, 1), background-color .4s ease; }
  .skin-a .o-chip.out { transition: opacity .35s ease, scale .45s cubic-bezier(.3, 1.7, .5, 1); }
  .skin-a .orbit-box.is-deep .orbit-spin { animation: a-orbit 46s linear infinite; }
  .skin-a .orbit-box.is-deep .o-chip.out { animation: a-orbit 46s linear infinite reverse; }
  .skin-a.js .cov-setup.open, .skin-a.js .wstep.open { animation: a-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  /* The boards in the setup's diagram firm up when the paste step is reached: solid and full colour, with a small pop. */
  .skin-a .setup-box .o-chip.out { transition: opacity .35s ease, scale .45s cubic-bezier(.3, 1.7, .5, 1), background-color .3s ease, color .3s ease; }
  .skin-a .setup-box.firm .o-chip.out { animation: a-orbit 46s linear infinite reverse, a-firm .5s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes a-orbit { to { rotate: 360deg; } }
  @keyframes a-firm { 0% { scale: 1; } 45% { scale: 1.18; } 100% { scale: 1; } }
}
/* The orbit follows the pointer a little (orbit.js sets --ox and --oy, the pointer's place in the diagram from -1 to 1): the inner ring
   and its chips shift a few pixels toward it, the outer ring and the boards more, and they ease back when it leaves. Hovering a board
   lifts it and holds the orbit still, so it can be read and pointed at. Only where there is a pointer that hovers, and only with motion;
   a phone or reduced motion gets none of it. The diagram is decoration (aria-hidden) and stays so. */
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    .skin-a .cov-choose .orbit-core, .skin-a .cov-choose .orbit-pt.in1, .skin-a .cov-choose .orbit-pt.in2, .skin-a .cov-choose .orbit-spin {
      transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    }
    .skin-a .cov-choose .orbit-ring.inner {
      transition: opacity .4s ease, scale .5s cubic-bezier(.3, 1.5, .5, 1), background-color .4s ease, transform .45s cubic-bezier(.22, .61, .36, 1);
    }
    .skin-a .cov-choose .orbit-ring.outer {
      transition: opacity .4s ease, scale .5s cubic-bezier(.3, 1.5, .5, 1), background-color .4s ease, transform .45s cubic-bezier(.22, .61, .36, 1);
    }
    .skin-a .cov-choose .orbit-ring.inner, .skin-a .cov-choose .orbit-core, .skin-a .cov-choose .orbit-pt.in1, .skin-a .cov-choose .orbit-pt.in2 {
      transform: translate(calc(var(--ox, 0) * 6px), calc(var(--oy, 0) * 6px));
    }
    .skin-a .cov-choose .orbit-ring.outer, .skin-a .cov-choose .orbit-spin {
      transform: translate(calc(var(--ox, 0) * 14px), calc(var(--oy, 0) * 14px));
    }
    .skin-a .cov-choose .orbit-box.is-deep .o-chip.out { transition: opacity .35s ease, scale .45s cubic-bezier(.3, 1.7, .5, 1), box-shadow .25s ease; }
    .skin-a .cov-choose .orbit-box.is-deep .o-chip.out:hover { scale: 1.14; box-shadow: 3px 3px 0 var(--a-shadow); z-index: 2; }
    .skin-a .cov-choose .orbit-box.is-deep:has(.o-chip.out:hover) .orbit-spin,
    .skin-a .cov-choose .orbit-box.is-deep:has(.o-chip.out:hover) .o-chip.out { animation-play-state: paused; }
  }
}

/* ==== A7: Configure and Confirm ==============================================
   /configure and /confirm in public mode (templates/configure.html, confirm.html): "Where should we look?", the settings as
   sticker blocks, the credit jar beside them, and "Ready when you are." as one ticket. Public only, tokens only (no raw
   colour), and motion only in the no-preference block at the end. This is the money path: nothing here is a number the page
   computes for itself (the jar's fill is the estimate's own share of the credit, its `over` is est.over_cap and nothing else),
   and nothing here touches a form field, a button or a sentence.

   Reveals. Two parts of this screen are hidden by CSS: the scope's explanation of every option but the chosen one (a radio
   works without a script, so the reveal is `:has(:checked)`; a browser without :has drops the rule and shows all three), and
   the strip above 40rem. Both are written under `.skin-a.js` and `.skin-a:not(.js)` so every rule that hides something here
   is spelled the way A5 and A6 spell theirs. Without a script the lines table is empty (Alpine writes its rows), so the peek
   that holds it is not drawn rather than opened onto nothing.

   Ink on a fill. The Confirm stub (peach for money, citrus when free) and Configure's Quick card (citrus) are ink on a bright
   fill in BOTH themes, so inside them the theme's text tokens are pointed at ink: every sheet-level rule that reads --chalk,
   --warm, --slate, --paid, --free or --over then reads ink without being rewritten. The over state keeps its shape (the "!"
   and the words) and loses its colour there: coral on peach is not legible in dark. */

/* -- Configure: the page top (the eyebrow and headline are A4's parts), then the settings as sticker blocks. */
.skin-a .settings { gap: 20px; max-width: 56rem; }
.skin-a .settings > .setting {
  grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 24px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 22px; box-shadow: 4px 4px 0 var(--a-shadow);
}
.skin-a .setting-head > p { max-width: 54ch; font-size: 14px; line-height: 1.5; }
.skin-a .setting-head h2, .skin-a .setting-head h3 { font: 800 21px/1.2 var(--display); letter-spacing: -0.02em; }
/* "Affects cost" is money: a small peach tag on the heading's own line, not a line of its own. */
.skin-a .setting-head .affects {
  display: inline-block; margin: 0 0 0 8px; padding: 1px 10px; vertical-align: middle;
  border: 1.5px solid var(--paid); border-radius: 999px; font: 700 12px/1.5 var(--text);
}

/* Where Sweep searches: the free boards are always on (a dashed citrus chip), each paid board is a chip you switch. */
.skin-a .boards { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.skin-a .free-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px;
  border: 2px dashed var(--a-line); border-radius: 20px;
  background: color-mix(in srgb, var(--a-cit) 16%, var(--surface)); color: var(--chalk); font-weight: 700;
}
.skin-a .boards .choice {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 20px;
}
.skin-a .boards .choice > input { width: 22px; height: 22px; margin: 0; accent-color: var(--a-ink); }
.skin-a .boards .choice > span > b { font: 800 19px/1.1 var(--display); letter-spacing: -0.01em; }
.skin-a .boards .choice:has(:checked) {
  background: var(--a-lav); color: var(--a-ink); border-color: var(--a-ink); box-shadow: 4px 4px 0 var(--a-shadow); transform: rotate(-1.5deg);
}
.skin-a .boards .choice:has(:checked) > span > b { color: var(--a-ink); }

/* Which jobs: three sticker pills (still radios, still one name). The chosen one is filled and is the only one that says why. */
.skin-a .setting-body > [role="radiogroup"] { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.skin-a .setting-body > [role="radiogroup"] .choice { flex: 0 1 auto; max-width: 100%; padding: 12px 18px; background: var(--surface); }
.skin-a .setting-body > [role="radiogroup"] .choice > input { margin: 3px 0 0; accent-color: var(--a-ink); }
.skin-a .setting-body > [role="radiogroup"] .choice > span > b { font: 800 17px/1.25 var(--display); }
.skin-a .setting-body > [role="radiogroup"] .choice .why { max-width: 30ch; margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
.skin-a .setting-body > [role="radiogroup"] .choice:has(:checked) { background: var(--a-lav); color: var(--a-ink); border-color: var(--a-ink); }
.skin-a .setting-body > [role="radiogroup"] .choice:has(:checked) > span > b,
.skin-a .setting-body > [role="radiogroup"] .choice:has(:checked) .why { color: var(--a-ink); }
.skin-a.js .setting-body > [role="radiogroup"] .choice:not(:has(:checked)) .why,
.skin-a:not(.js) .setting-body > [role="radiogroup"] .choice:not(:has(:checked)) .why { display: none; }

/* The location picker, the stepper and the fields (the fields themselves are A2's). */
.skin-a .picker-box { background: var(--surface); border: 2px solid var(--control); border-radius: 14px; }
.skin-a .picker-box:hover { border-color: var(--a-line); }
.skin-a .picker-menu { background: var(--surface); border: 2px solid var(--a-line); border-radius: 18px; box-shadow: 4px 4px 0 var(--a-shadow); }
.skin-a .setting-body .stepper button {
  width: 48px; min-height: 48px; font: 800 20px/1 var(--text); color: var(--chalk);
  background: var(--a-tint); border: 2px solid var(--a-line); border-radius: 14px 0 0 14px;
}
.skin-a .setting-body .stepper button:last-child { border-radius: 0 14px 14px 0; }
.skin-a .setting-body .stepper button:hover { background: var(--a-lav); color: var(--a-ink); }
.skin-a .setting-body .stepper input[type="number"] {
  width: 4.25rem; border: 2px solid var(--a-line); border-left: 0; border-right: 0; border-radius: 0;
  font: 800 18px/1 var(--display); background-color: var(--surface);
}

/* Advanced: a door like a peek (dashed shut, a sticker open), its rows the same rows. */
.skin-a details.advanced { padding: 0 20px; border: 2px dashed var(--rule); border-radius: 22px; }
.skin-a details.advanced[open] { border-style: solid; border-color: var(--a-line); background: var(--surface); box-shadow: 4px 4px 0 var(--a-shadow); }
.skin-a details.advanced > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; }
.skin-a details.advanced > summary > h2 { font: 700 18px/1.3 var(--display); }
.skin-a details.advanced > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none; order: -1;
  align-self: center; margin: 0; width: 24px; height: 24px;
  border: 2px solid var(--a-line); border-radius: 50%; font: 700 16px/1 var(--text); color: var(--chalk);
  transform: none; transform-origin: 50% 50%;
}
.skin-a details.advanced[open] > summary::before { content: "\2013"; transform: none; }
.skin-a details.advanced > summary:hover::before { border-color: var(--a-line); background: var(--a-tint); }
.skin-a details.advanced > .advanced-body { padding-bottom: 8px; }
.skin-a details.advanced .setting { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 2px dashed var(--rule); }
.skin-a details.advanced .setting-title { font: 700 16px/1.3 var(--display); }

/* -- Configure: the cost, beside the settings. */
.skin-a .cf-deep .summary-panel { gap: 16px; padding: 22px; border-radius: 26px; box-shadow: 6px 6px 0 var(--a-shadow); }
.skin-a .cf-deep .summary-cost { gap: 14px; }
.skin-a .cf-deep .panel-head h2 { font: 800 22px/1.2 var(--display); }
.skin-a .cf-deep .peek-body { padding: 0 14px 14px; }
.skin-a .cf-deep .peek > summary { min-height: 44px; }
.skin-a .cf-deep .peek .lines td { padding: 8px 12px 8px 0; }
.skin-a .cf-deep .summary-panel > .peek .tag { margin-bottom: 6px; }
.skin-a:not(.js) .cf-deep .summary-cost .peek { display: none; }

/* The credit jar. Decoration: the figure and the sentence are the words. The dashed line is the credit (88% of the jar), the
   striped fill is the estimate as a share of it; over turns the fill to the error colour, off is "paid searches unavailable". */
.skin-a .jar {
  position: relative; align-self: center; flex: none; width: 132px; height: 160px; margin: 20px 0 4px;
  border: 3px solid var(--a-line); border-top: 0; border-radius: 0 0 40px 40px; background: var(--well);
}
.skin-a .jar::before {
  content: ""; position: absolute; left: -12px; right: -12px; top: -14px; height: 16px;
  border: 3px solid var(--a-line); border-radius: 8px; background: var(--surface);
}
/* The jar's inside (its padding box: 40px corners less the 3px wall). It clips the fill, so a sliver of a fill follows the
   curve instead of having its own corners flattened past the walls. */
.skin-a .jar-in { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 37px 37px; }
.skin-a .jar-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(-45deg, var(--a-pch) 0 10px, color-mix(in srgb, var(--a-pch) 62%, var(--surface)) 10px 20px);
}
.skin-a .jar.over .jar-fill {
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--over) 66%, var(--surface)) 0 10px, color-mix(in srgb, var(--over) 36%, var(--surface)) 10px 20px);
}
.skin-a .jar-lim { position: absolute; left: -8px; right: -8px; bottom: 88%; z-index: 2; border-top: 2px dashed var(--a-line); }
.skin-a .jar-lim span {
  position: absolute; left: 10px; bottom: 3px; padding: 0 5px; border-radius: 6px; white-space: nowrap;
  background: var(--surface); color: var(--chalk); font: 800 11px/1.3 var(--text);
}
.skin-a .jar.off { border-style: dashed; background: transparent; }
.skin-a .jar.off::before { border-style: dashed; }
.skin-a .jar.updating { opacity: var(--pending-dim); }

/* The figure's well: peach-tinted, because it is money. Coral when the plan is over (sweep.css), with the "!" beside the words. */
.skin-a .summary-panel .headline-figure {
  gap: 4px; padding: 16px 18px; border: 2px solid var(--a-line); border-radius: 18px;
  background: color-mix(in srgb, var(--a-pch) 18%, var(--surface));
}
.skin-a .summary-panel .headline-figure .label { font-weight: 700; }
.skin-a .fits { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 0; color: var(--free); font-weight: 700; font-size: 14px; line-height: 1.4; }
.skin-a .fits::before { content: "\2713"; flex: none; font-weight: 800; }

/* Phones: the price stays in view while the settings are edited. A link to the cost (never a button: the form keeps one
   submit), pinned like A2's action bar. Above 40rem it is not drawn. */
.skin-a .cf-strip {
  display: flex; align-items: center; gap: 12px; position: sticky; bottom: 0; z-index: 25; min-height: 56px;
  margin: 0 calc(var(--s5) * -1); padding: 8px var(--s5) calc(8px + env(safe-area-inset-bottom));
  background: var(--ground); border-top: 2px solid var(--a-line); color: var(--chalk); text-decoration: none;
}
.skin-a .cf-strip-t { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; color: var(--slate); }
.skin-a .cf-strip-v { font: 800 28px/1 var(--display); letter-spacing: -0.03em; color: var(--paid-lift); }
.skin-a .cf-strip-v.over { color: var(--over); }
.skin-a .cf-strip-v.updating { opacity: var(--pending-dim); }
.skin-a .cf-strip-go { font-size: 22px; line-height: 1; }
@media (min-width: 40.01rem) {
  .skin-a.js .cf-strip, .skin-a:not(.js) .cf-strip { display: none; }
}

/* -- Ink on a fill: the Quick card (citrus) and the Confirm stub (peach for money, citrus when free). */
.skin-a .cf-quick .summary-panel, .skin-a .confirm.ticket > .decide {
  --fill: var(--a-pch);
  --chalk: var(--a-ink); --chalk-lift: var(--a-ink); --warm: var(--a-ink);
  --slate: color-mix(in srgb, var(--a-ink) 82%, var(--fill)); --pending-slate: var(--slate); --dim: var(--slate);
  --paid: var(--a-ink); --paid-lift: var(--a-ink); --free: var(--a-ink); --free-lift: var(--a-ink); --over: var(--a-ink);
  --control: var(--a-ink); --rule: color-mix(in srgb, var(--a-ink) 30%, transparent);
  --well: transparent; --surface: transparent; --surface-low: transparent;
  --surface-high: color-mix(in srgb, var(--a-ink) 10%, transparent); --surface-edge: color-mix(in srgb, var(--a-ink) 16%, transparent);
  background: var(--fill); color: var(--a-ink);
}
.skin-a .cf-quick .summary-panel, .skin-a .confirm.ticket-free > .decide { --fill: var(--a-cit); }
.skin-a .cf-quick .summary-panel { border-color: var(--a-ink); }
.skin-a .cf-quick .summary-panel, .skin-a .confirm.ticket > .decide { gap: 14px; }
.skin-a .cf-quick .summary-panel a:not(.primary), .skin-a .confirm.ticket > .decide a:not(.primary) { color: var(--a-ink); }
.skin-a .cf-quick .summary-panel .primary, .skin-a .confirm.ticket > .decide .primary {
  border-color: var(--a-ink); box-shadow: 4px 4px 0 var(--a-ink);
}
.skin-a .cf-quick .summary-panel .primary:hover, .skin-a .confirm.ticket > .decide .primary:hover { box-shadow: 6px 6px 0 var(--a-ink); }
.skin-a .cf-quick .summary-panel .primary:active, .skin-a .confirm.ticket > .decide .primary:active { box-shadow: 1px 1px 0 var(--a-ink); }
.skin-a .cf-quick .summary-panel button.primary[disabled], .skin-a .confirm.ticket > .decide button.primary[disabled],
.skin-a .confirm.ticket > .decide button.primary[disabled]:hover {
  background: transparent; color: var(--a-ink); border: 2px dashed var(--a-ink); box-shadow: none;
}
.skin-a .cf-quick .summary-panel .tag, .skin-a .confirm.ticket > .decide .tag { border-color: var(--a-ink); }
.skin-a .cf-quick .summary-panel .choice, .skin-a .confirm.ticket > .decide .choice,
.skin-a .confirm.ticket > .decide .choice:hover { background: transparent; border: 2px solid var(--a-ink); border-radius: 16px; }
.skin-a .confirm.ticket > .decide .choice:hover { background: var(--surface-high); }
.skin-a .confirm.ticket > .decide .choice:has(:checked), .skin-a .confirm.ticket > .decide .choice:has(:checked):hover {
  background: var(--surface-edge); box-shadow: 3px 3px 0 var(--a-ink);
}
.skin-a .confirm.ticket > .decide input[type="checkbox"] { accent-color: var(--a-ink); }
.skin-a .confirm.ticket > .decide .error {
  padding: var(--s3) var(--s4); background: color-mix(in srgb, var(--a-ink) 8%, transparent); border: 2px solid var(--a-ink); border-radius: var(--radius);
}

/* Quick: what it searches, then Start. Nothing here costs anything, so nothing here is peach. */
.skin-a .cf-quick .summary-panel { gap: 16px; padding: 22px; border-radius: 26px; box-shadow: 6px 6px 0 var(--a-shadow); }
.skin-a .cf-quick .summary-panel .primary { align-self: stretch; }

/* -- Confirm: the back link, and the ticket. */
.skin-a .tlink {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  font-weight: 700; font-size: 15px; color: var(--a-link); text-underline-offset: 4px;
}
.skin-a .confirm.ticket { max-width: 62rem; gap: 0; align-items: stretch; }
.skin-a .confirm.ticket > .what {
  position: relative; gap: 6px; padding: 24px 20px 22px;
  background: var(--surface); border: 2px solid var(--a-line); border-bottom: 0; border-radius: 24px 24px 0 0;
  box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a .confirm.ticket > .what > .stamp { align-self: flex-start; margin-bottom: 4px; }
.skin-a .confirm.ticket > .what h2 { font: 800 22px/1.2 var(--display); }
.skin-a .confirm.ticket > .decide {
  position: relative; padding: 28px 20px 26px;
  border: 2px solid var(--a-line); border-top: 3px dashed var(--a-ink); border-radius: 0 0 24px 24px;
  box-shadow: 5px 5px 0 var(--a-shadow);
}
/* The notches: bites out of the ticket where the stub tears off. */
.skin-a .confirm.ticket > .decide::before, .skin-a .confirm.ticket > .decide::after {
  content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--a-line);
}
.skin-a .confirm.ticket > .decide::before { top: -17px; left: -17px; }
.skin-a .confirm.ticket > .decide::after { top: -17px; right: -17px; }
.skin-a .confirm.ticket > .detail { grid-column: 1 / -1; margin-top: 28px; padding-top: 0; border-top: 0; gap: 14px; }
@media (min-width: 48rem) {
  .skin-a .confirm.ticket { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .skin-a .confirm.ticket > .what {
    grid-column: 1; grid-row: 1; padding: 30px 32px 28px;
    border-bottom: 2px solid var(--a-line); border-right: 0; border-radius: 28px 0 0 28px; box-shadow: 6px 6px 0 var(--a-shadow);
  }
  .skin-a .confirm.ticket > .what > .stamp { position: absolute; right: 26px; top: 24px; align-self: auto; margin: 0; }
  .skin-a .confirm.ticket > .what h2 { padding-right: 9rem; }
  .skin-a .confirm.ticket > .decide {
    grid-column: 2; grid-row: 1; padding: 30px 28px;
    border-top: 2px solid var(--a-line); border-left: 3px dashed var(--a-ink); border-radius: 0 28px 28px 0; box-shadow: 6px 6px 0 var(--a-shadow);
  }
  .skin-a .confirm.ticket > .decide::before { top: -17px; left: -17px; right: auto; }
  .skin-a .confirm.ticket > .decide::after { top: auto; bottom: -17px; left: -17px; right: auto; }
  .skin-a .confirm.ticket > .detail { grid-row: 2; }
}

/* The ticket's lines: what Sweep will search, ruled like the rows of a ticket. */
.skin-a .confirm .what .summary.ruled { margin-top: 6px; }
.skin-a .confirm .what .summary.ruled > div { padding: 14px 0; border-top: 2px dashed var(--rule); }
.skin-a .confirm .what .summary.ruled > div:first-child { border-top: 0; padding-top: 6px; }
.skin-a .confirm .what .summary dt { font: 700 12.5px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.skin-a .confirm .what .summary .roles { font: 700 16px/1.5 var(--text); color: var(--chalk); }

/* The stub: the figure large, no well of its own, the rest as it was. */
.skin-a .confirm.ticket > .decide .headline-figure { padding: 0; border: 0; background: none; gap: 2px; }
.skin-a .confirm.ticket > .decide .headline-figure .label { font: 700 12.5px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.skin-a .confirm.ticket > .decide .headline-figure .numeral { font-size: 60px; letter-spacing: -0.05em; }
.skin-a .confirm.ticket > .decide .headline-figure .numeral.over { padding-bottom: 10px; text-decoration: underline wavy var(--a-ink); text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.skin-a .confirm.ticket > .decide .decide-figure { font-size: 30px; }
.skin-a .confirm.ticket > .decide .capacity td:last-child { white-space: normal; }
.skin-a .confirm.ticket > .decide .verdict.ok > b { font-weight: 800; }
.skin-a .confirm.ticket > .decide .start button.primary, .skin-a .confirm.ticket > .decide .actions .primary { width: 100%; text-align: center; }
.skin-a .confirm.ticket > .decide .decide-note .tag { background: var(--a-cit); color: var(--a-ink); }
/* The peek under the figure: dashed ink shut, solid open, on the fill. */
.skin-a .confirm.ticket > .decide .peek { border: 2px dashed var(--a-ink); background: transparent; }
.skin-a .confirm.ticket > .decide .peek[open] { border-style: solid; border-color: var(--a-ink); background: var(--surface-high); }
.skin-a .confirm.ticket > .decide .peek > summary::before { border-color: var(--a-ink); }
.skin-a .confirm.ticket > .decide .peek > summary:hover::before { background: var(--surface-edge); border-color: var(--a-ink); }
.skin-a .confirm.ticket > .decide .peek-body { padding: 0 14px 14px; }
.skin-a .confirm.ticket > .decide .peek .lines tr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule);
}
.skin-a .confirm.ticket > .decide .peek .lines tr:first-child { border-top: 0; }
.skin-a .confirm.ticket > .decide .peek .lines td { border: 0; padding: 0; }
.skin-a .confirm.ticket > .decide .peek .lines td:nth-child(2) { text-align: right; }
.skin-a .confirm.ticket > .decide .peek .lines td:nth-child(3) { font-size: 12.5px; font-weight: 500; }
.skin-a .confirm.ticket > .decide .peek .lines td:nth-child(4) { grid-column: 2; }

/* The rail beside the ticket (wide screens): what happens after Start, as three sticker steps. A plain ordered list; the tick and the
   number are drawn here, not written, so the list reads as three sentences. Below 75rem it is not drawn (the ticket carries the page). */
.skin-a .cf-next { display: flex; flex-direction: column; gap: 14px; }
.skin-a .cf-next h2 { margin: 0; font: 800 20px/1.2 var(--display); letter-spacing: -0.02em; }
.skin-a .cf-next ol { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: nx; }
.skin-a .cf-next li {
  position: relative; counter-increment: nx; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px 12px 12px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 18px; box-shadow: 3px 3px 0 var(--a-shadow);
  font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--chalk);
}
.skin-a .cf-next li:nth-child(1) { transform: rotate(-1.2deg); }
.skin-a .cf-next li:nth-child(2) { transform: rotate(1deg); }
.skin-a .cf-next li:nth-child(3) { transform: rotate(-.8deg); }
.skin-a .cf-next li::before, .skin-a .cf-next li::after {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; box-sizing: border-box;
  border: 2px solid var(--a-ink); border-radius: 50%; background: var(--a-cit); color: var(--a-ink); font: 800 14px/1 var(--text);
}
.skin-a .cf-next li::before { content: counter(nx); }
.skin-a .cf-next li::after { content: "\2713"; position: absolute; left: 12px; top: 50%; margin-top: -14px; opacity: 0; }
.skin-a .cf-next li:nth-child(1) { --n: 0; }
.skin-a .cf-next li:nth-child(2) { --n: 1; }
.skin-a .cf-next li:nth-child(3) { --n: 2; }
@media (min-width: 75rem) {
  .skin-a .cf-row { display: grid; grid-template-columns: minmax(0, 62rem) minmax(14rem, 17rem); column-gap: 32px; align-items: start; }
  .skin-a .cf-next { padding-top: 6px; }
}
@media (max-width: 74.99rem) {
  .skin-a.js .cf-next, .skin-a:not(.js) .cf-next { display: none; }
}

/* After the ticket: the accounts and the way to add one. */
.skin-a .confirm .detail h3 { margin: 0; font: 800 20px/1.2 var(--display); letter-spacing: -0.02em; }
.skin-a .confirm .detail ul.accounts { display: flex; flex-direction: column; gap: 8px; }
.skin-a .confirm .detail ul.accounts > li {
  margin: 0; padding: 8px 8px 8px 16px; background: var(--surface); border: 2px solid var(--a-line); border-radius: 16px;
}
.skin-a .confirm .detail ul.accounts > li:first-child { border-top: 2px solid var(--a-line); }
.skin-a details.add-key { margin: 0; padding: 0; border: 2px dashed var(--rule); border-radius: 18px; }
.skin-a details.add-key[open] { border-style: solid; border-color: var(--a-line); background: var(--surface); }
.skin-a details.add-key > summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 14px; font: 600 15px/1.3 var(--text); color: var(--chalk); }
.skin-a details.add-key > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none;
  align-self: center; margin: 0; width: 24px; height: 24px;
  border: 2px solid var(--a-line); border-radius: 50%; font: 700 16px/1 var(--text); color: var(--chalk);
  transform: none; transform-origin: 50% 50%;
}
.skin-a details.add-key[open] > summary::before { content: "\2013"; transform: none; }
.skin-a details.add-key > summary:hover::before { border-color: var(--a-line); background: var(--a-tint); }
.skin-a details.add-key > form { margin: 0; padding: 4px 16px 0 50px; }
.skin-a details.add-key > p { margin: 0; padding: 12px 16px 16px 50px; font-size: 14.5px; line-height: 1.55; }

@media (max-width: 40rem) {
  .skin-a .settings > .setting { padding: 18px 16px; border-radius: 20px; box-shadow: 3px 3px 0 var(--a-shadow); }
  .skin-a details.advanced { padding: 0 14px; }
  .skin-a .setting-body > [role="radiogroup"] .choice { flex: 1 1 100%; }
  .skin-a .boards .choice { flex: 1 1 auto; }
  .skin-a .free-chip { flex: 1 1 100%; }
  .skin-a .cf-deep .summary-panel, .skin-a .cf-quick .summary-panel { padding: 18px; border-radius: 22px; box-shadow: 4px 4px 0 var(--a-shadow); }
  .skin-a .jar { width: 112px; height: 124px; border-radius: 0 0 34px 34px; }
  .skin-a .jar-in { border-radius: 0 0 31px 31px; }
  .skin-a .jar-lim span { font-size: 10px; left: 6px; }
  .skin-a .confirm.ticket > .what { padding-top: 22px; }
  .skin-a .confirm.ticket > .decide .headline-figure .numeral { font-size: 54px; }
  .skin-a details.add-key > form, .skin-a details.add-key > p { padding-left: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* The jar pours: the fill moves to its new height, with a soft overshoot. The figure beside it is still written, never counted. */
  .skin-a .jar-fill { transition: height .6s cubic-bezier(.3, 1.4, .5, 1); }
  .skin-a .jar { transition: opacity var(--ms-2) var(--ease-settle); }
  /* Crossing into over wobbles it once (the page adds `wobble` on that change and takes it off at the animation's end); never on first paint. */
  .skin-a .jar.wobble { animation: a-wobble .6s ease-in-out; }
  .skin-a .cf-strip-v { transition: color var(--ms-2) var(--ease-settle), opacity var(--ms-2) var(--ease-settle); }
  .skin-a .boards .choice, .skin-a .setting-body > [role="radiogroup"] .choice {
    transition: transform var(--ms-1) ease, box-shadow var(--ms-1) ease, background-color var(--ms-1) ease;
  }
  .skin-a .boards .choice:hover { transform: translate(-2px, -2px); }
  .skin-a .boards .choice:has(:checked):hover { transform: translate(-2px, -2px) rotate(-1.5deg); }
  @keyframes a-wobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
  }
  /* The rail's demonstration: hovered or focused, the three steps light up one after the other (a tint, and the number becomes a tick).
     With reduced motion there is none: the steps are simply there, plain, and stay so. */
  .skin-a .cf-next:hover li, .skin-a .cf-next:focus-within li { background: color-mix(in srgb, var(--a-cit) 28%, var(--surface)); }
  .skin-a .cf-next:hover li::before, .skin-a .cf-next:focus-within li::before { opacity: 0; }
  .skin-a .cf-next:hover li::after, .skin-a .cf-next:focus-within li::after { opacity: 1; }
  .skin-a .cf-next li, .skin-a .cf-next li::before, .skin-a .cf-next li::after {
    transition: background-color var(--ms-3) var(--ease-settle), opacity var(--ms-3) var(--ease-settle);
  }
  .skin-a .cf-next:hover li, .skin-a .cf-next:hover li::before, .skin-a .cf-next:hover li::after,
  .skin-a .cf-next:focus-within li, .skin-a .cf-next:focus-within li::before, .skin-a .cf-next:focus-within li::after {
    transition-delay: calc(var(--n) * .45s);
  }
  /* "Not started" flips to "Sweeping…" with a stamp-press the moment Start is pressed (the form's own `sent`). */
  .skin-a .confirm.ticket > .what > .stamp.sent { animation: a-stamp .42s cubic-bezier(.3, 1.5, .5, 1) both; }
  @keyframes a-stamp {
    0% { transform: rotate(-7deg) scale(1.9); opacity: 0; }
    55% { transform: rotate(-7deg) scale(.9); opacity: 1; }
    100% { transform: rotate(-7deg) scale(1); opacity: 1; }
  }
}

/* ==== A8: Progress ===========================================================
   /running in public mode (templates/running.html): "Sweep is searching for you", the sticker track with the brush on its end,
   "Now: board · city", the searches behind a peek, and the matches that open to the skills they mention. Public only, tokens
   only (no raw colour), and motion only in the no-preference block at the end.

   Scope. Every rule here hangs on `.run-a`, the class running.html puts on its own wrapper (public only), because most of what
   Progress is made of is shared (.activity, .working-bar and .aside are also on /derive, .banner and .eyebrow on Results and
   the other steps, .panel everywhere): a bare rule on one of those would move a page this stage does not touch (A7's bare
   .stepper did that to Review). test_a8_progress holds it: no selector in this section lacks a running-only class.

   Frozen. Nothing here hides or reveals a word: an ending, a lede, the ledger and the queue lines are the server's and Alpine's.
   The one thing that is hidden here is the legend inside the Searches summary while it is shut (a shut peek is one line), and
   only with a script (`.skin-a.js`, the way A5 to A7 spell every rule that hides something): without one the legend stays. */

/* -- The top: the eyebrow, the headline, and the number of jobs found on the right (under the headline on a phone). */
.skin-a .run-a .run-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s3); align-items: start; }
.skin-a .run-a .run-hero > * { grid-column: 1; min-width: 0; }
.skin-a .run-a .run-hero > .eyebrow { justify-self: start; }
.skin-a .run-a .run-hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; }
.skin-a .run-a .run-hero .lede { max-width: 40em; }
.skin-a .run-a .run-hero > .headline-figure.found { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-left: 40px; }
.skin-a .run-a .headline-figure.found { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.skin-a .run-a .headline-figure.found .numeral {
  min-width: 1.3em; margin: 0; padding: 12px 22px; border: 2px solid var(--a-ink); border-radius: 26px;
  background: var(--a-cit); color: var(--a-ink); box-shadow: 5px 5px 0 var(--a-shadow);
  font: 800 84px/.9 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; transform: rotate(3deg);
}
.skin-a .run-a .headline-figure.found .label { font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--chalk); }

/* -- The activity row: the words and the percentage on one line, the track under them, then "Now: ...". */
.skin-a .run-a .activity { gap: 10px 16px; }
.skin-a .run-a .activity-said { flex: 1 1 0; min-width: 0; max-width: none; flex-wrap: wrap; gap: 4px 12px; }
.skin-a .run-a .activity-said > b { font-size: 16px; font-weight: 700; }
.skin-a .run-a .activity-count { font-size: 14px; }
.skin-a .run-a .activity-dot { width: 10px; height: 10px; }
.skin-a .run-a .activity.live .activity-dot { background: var(--a-primary); }
.skin-a .run-a .activity-pct { order: 2; margin-right: 28px; font: 800 20px/1 var(--display); color: var(--chalk); }

/* The track is a chunky striped sticker (lavender stripes; citrus when the search is done, a quiet tint when it stopped). The
   brush's room above it is the margin, and its room at the right end (the brush leans over the end of the fill, about 24px) is the
   right margin: without it the brush at 100% pushes the page wider than a phone. The free pass's indeterminate bar is the same
   sticker, so the two never read as different things. Overflow is visible: the brush stands above the bar. */
.skin-a .run-a .activity-track, .skin-a .run-a .activity > .working-bar {
  position: relative; order: 3; flex: 1 1 100%; width: auto; min-width: 0; height: 30px; margin: 34px 28px 0 0; box-sizing: border-box;
  border: 2px solid var(--a-line); border-radius: 999px; background: var(--surface); overflow: visible;
}
.skin-a .run-a .activity-fill {
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--a-lav) 0 10px, color-mix(in srgb, var(--a-lav) 62%, var(--surface)) 10px 20px);
}
.skin-a .run-a .activity.done .activity-fill {
  background: repeating-linear-gradient(-45deg, var(--a-cit) 0 10px, color-mix(in srgb, var(--a-cit) 62%, var(--surface)) 10px 20px);
}
.skin-a .run-a .activity.off .activity-fill { background: repeating-linear-gradient(-45deg, var(--surface-edge) 0 10px, var(--a-tint) 10px 20px); }
/* The free pass has no fraction, so its bar does not fill to a number: the brush sweeps the whole track and paints lavender stripes
   behind it, then the stripes fade and it starts again (a-sweep and its two companions, in the no-preference block below). Nothing
   here changes a box's size, so a frame costs no layout: the span is the track's full width and carries only the fade; the stripes are
   its ::before, fixed in place and shown by a clip-path that opens from the left (round-ended, like the pill); the brush is the rider,
   whose box is the track's width anchored at the right end, so a translateX in percent of it is a place on the track (-50% is half
   way). At rest, and always with reduced motion, the stripes are half painted and the brush rests at their end, and nothing moves. */
.skin-a .run-a .activity > .working-bar > span { position: relative; width: 100%; opacity: 1; background: none; }
.skin-a .run-a .activity > .working-bar > span::before {
  content: ""; position: absolute; inset: 0; clip-path: inset(0 50% 0 0 round 999px);
  background: repeating-linear-gradient(-45deg, var(--a-lav) 0 10px, color-mix(in srgb, var(--a-lav) 62%, var(--surface)) 10px 20px);
}
.skin-a .run-a .activity > .working-bar > span > .rider { width: 100%; transform: translateX(-50%); }
.skin-a .run-a .activity > .working-bar > span > .rider svg { left: calc(100% - 12px); }

/* The rider: a zero-size anchor at the end of the fill (its `left` is the same number as the fill's width) or, on the free pass, a
   track-wide, zero-height box whose right end is the leading end of the painted stripes (the free pass's rules above place it). The
   brush hangs off the anchor, so the anchor is what a measure reads. */
.skin-a .run-a .rider { position: absolute; z-index: 2; top: 0; display: block; width: 0; height: 0; pointer-events: none; }
.skin-a .run-a .activity-track > .rider { left: 0; }
.skin-a .run-a .working-bar .rider { right: 0; }
.skin-a .run-a .rider svg { position: absolute; left: -12px; bottom: -4px; display: block; transform-origin: 28% 86%; }
/* The brush's ink is the page's line colour here: the tip draws it on a citrus face, but the rider is on the page itself, where the
   dark theme's ink would vanish into the ground. White bristles either way. */
.skin-a .run-a .rider svg path { stroke: var(--a-line); }

/* "Now: LinkedIn · Bengaluru". */
.skin-a .run-a .ticker { order: 4; flex: 1 1 100%; max-width: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; color: var(--warm); }
.skin-a .run-a .ticker b { padding: 2px 10px; border-radius: 8px; background: var(--a-tint); border: 1.5px solid var(--rule); color: var(--chalk); font-weight: 800; }

/* -- The searches: a peek (dashed shut, a sticker open). The legend is only worth a line once the grid is open. */
.skin-a .run-a details.searches, .skin-a .run-a details.about { border: 2px dashed var(--rule); border-radius: 18px; }
.skin-a .run-a details.searches[open], .skin-a .run-a details.about[open] {
  border-style: solid; border-color: var(--a-line); background: var(--surface); box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a .run-a details.searches > summary, .skin-a .run-a details.about > summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 46px; margin: 0; padding: 4px 14px;
  font: 600 15px/1.3 var(--text); color: var(--chalk);
}
.skin-a .run-a details.searches > summary::before, .skin-a .run-a details.about > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center; margin: 0;
  width: 24px; height: 24px; border: 2px solid var(--a-line); border-radius: 50%;
  font: 700 16px/1 var(--text); color: var(--chalk); transform: none; transform-origin: 50% 50%;
}
.skin-a .run-a details.searches[open] > summary::before, .skin-a .run-a details.about[open] > summary::before { content: "\2013"; transform: none; }
.skin-a .run-a details.searches > summary:hover::before, .skin-a .run-a details.about > summary:hover::before {
  border-color: var(--a-line); background: var(--a-tint);
}
.skin-a .run-a details.searches > summary > h2 { margin: 0; font: 700 17px/1.3 var(--display); letter-spacing: -0.01em; }
.skin-a .run-a details.searches > summary > .peek-aside { margin-left: auto; }
.skin-a .run-a details.searches > summary > .meta { flex: 1 1 100%; padding-left: 34px; }
.skin-a.js .run-a details.searches:not([open]) > summary > .meta { display: none; }
.skin-a .run-a details.searches > :not(summary) { margin-left: 16px; margin-right: 16px; }
.skin-a .run-a details.searches > :last-child { margin-bottom: 16px; }
.skin-a .run-a details.about > .about-body { padding: 4px 16px 16px; }
.skin-a .run-a details.about .about-body > .panel { padding: 16px; background: transparent; border: 1px solid var(--rule); border-radius: 14px; box-shadow: none; }

/* A tile's sticker tooltip: on hover it shows the full search ("keywords @ location", the tile's data-label, which the page sets from the
   same label as its title). It is drawn above the tile, so the tile and the grid stop clipping their overflow here (they clipped a
   wide glance sideways in sweep.css; the grid is still constrained to its column, and wraps). Only where something hovers: a touch screen
   has no hover, and a tooltip with no way to close it would only cover the grid. */
.skin-a .run-a .grid-groups { overflow: visible; contain: none; }
.skin-a .run-a .cell { position: relative; overflow: visible; }
@media (hover: hover) {
  .skin-a .run-a .cell[data-label]:hover::after {
    content: attr(data-label); position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 8px); translate: -50% 0;
    width: max-content; max-width: min(20rem, 60vw); padding: 6px 11px; box-sizing: border-box;
    background: var(--a-cit); color: var(--a-ink); border: 2px solid var(--a-ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--a-ink);
    font: 700 13px/1.3 var(--text); letter-spacing: 0; text-align: left; white-space: normal; pointer-events: none;
  }
}

/* The tiles: small stickers. Done is lavender, a done search on a board that costs nothing is citrus (the legend's swatches agree),
   the one in flight is a ring, one that never ran is dashed. */
.skin-a .run-a .search-grid { gap: 6px; }
.skin-a .run-a .cell { height: 28px; border: 1.5px solid var(--rule); border-radius: 8px; font-weight: 800; }
.skin-a .run-a .cell.done { background: var(--a-lav); border-color: var(--a-ink); color: var(--a-ink); }
.skin-a .run-a .cell.done.free { background: var(--a-cit); border-color: var(--a-ink); }
.skin-a .run-a .cell.running { border: 2px solid var(--a-line); color: var(--chalk); }          /* a ring, no fill: D7B's P2 holds that only a finished tile changes colour */
.skin-a .run-a .cell.parked { border-style: dashed; }
.skin-a .run-a .key::before { border-radius: 3px; }
.skin-a .run-a .key.paid::before { background: var(--a-lav); border-color: var(--a-ink); }
.skin-a .run-a .key.free::before { background: var(--a-cit); border-color: var(--a-ink); }
.skin-a .run-a .key.running::before { background: transparent; border: 2px solid var(--a-line); }

/* -- Panels on this page: the ruled sections D5 made are sticker cards here, with room inside. */
.skin-a .run-a .flow .panel, .skin-a .run-a .split.ended .panel { padding: 22px; }
.skin-a .run-a .split.ended .panel { background: var(--surface); border: 2px solid var(--a-line); border-radius: 22px; }
.skin-a .run-a .aside .panel-head > .meta {
  padding: 2px 12px; border-radius: 999px; background: var(--a-cit); color: var(--a-ink); font-size: 13px; font-weight: 700; line-height: 20px;
}
.skin-a .run-a .aside .panel-head > .meta b { color: inherit; }
/* The export row in the narrow aside: its words on a line of their own, Excel and CSV side by side under them. */
.skin-a .run-a .panel-foot .label { flex-basis: 100%; margin-right: 0; }
.skin-a .run-a .skeleton li { padding: 14px 16px; border: 2px dashed var(--rule); border-radius: 18px; opacity: 1; }

/* -- Latest matches. Each is a card; one that carries skills is a button that opens the reason, one open at a time. */
.skin-a .run-a .lm-tip { margin: 0; }
.skin-a .run-a .feed { display: flex; flex-direction: column; gap: 10px; }
.skin-a .run-a .feed li, .skin-a .run-a .feed li:first-child {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 12px 16px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 18px;
}
.skin-a .run-a .feed li > span:not(.feed-score) { min-width: 0; }
.skin-a .run-a .feed li:has(> .lm-b[aria-expanded="true"]) { background: var(--a-tint); box-shadow: 4px 4px 0 var(--a-shadow); }
.skin-a .run-a .lm-b {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  width: 100%; min-height: 44px; margin: -12px 0; padding: 12px 0; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; border-radius: 14px; cursor: pointer;
}
.skin-a .run-a .lm-b > span:first-child { min-width: 0; }
.skin-a .run-a .feed-score {
  padding: 2px 11px; border: 1.5px solid var(--a-ink); border-radius: 999px; background: var(--a-lav); color: var(--a-ink);
  font: 800 14px/20px var(--display); letter-spacing: 0;
}
.skin-a .run-a .lm-why {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding: 12px 14px;
  background: var(--surface); border: 2px dashed var(--a-line); border-radius: 14px;
}
.skin-a .run-a .lm-why-t { flex: 1 0 100%; font-size: 13.5px; font-weight: 700; color: var(--chalk); }
.skin-a .run-a .lm-why .tag {
  margin: 0; padding: 2px 10px; background: var(--a-lav); border: 1.5px solid var(--a-ink); color: var(--a-ink);
  font-size: 12.5px; font-weight: 700;
}

/* -- How it ended: sticker banners. Their shapes (the tick, the "!", the ring, the half disc) and their words are the same. */
.skin-a .run-a .banner {
  gap: 14px 20px; padding: 18px 22px; background: var(--surface);
  border: 2px solid var(--a-line); border-radius: 22px; box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a .run-a .banner b { font: 800 18px/1.25 var(--display); letter-spacing: -0.01em; }
.skin-a .run-a .banner span { font-size: 14.5px; line-height: 1.5; }
.skin-a .run-a .banner.ok { background: color-mix(in srgb, var(--a-cit) 20%, var(--surface)); }
.skin-a .run-a .banner.warn { background: color-mix(in srgb, var(--over) 8%, var(--surface)); }
.skin-a .run-a .banner.part { background: var(--a-tint); }

/* -- The free path: the passes, a marker for each (a number; a tick once it is behind; lavender while it is under way). */
.skin-a .run-a .stages { display: flex; flex-direction: column; gap: 8px; counter-reset: pass; }
.skin-a .run-a .stages li, .skin-a .run-a .stages li:first-child {
  counter-increment: pass; align-items: center; padding: 12px 16px;
  background: var(--surface); border: 2px solid var(--rule); border-radius: 18px;
}
.skin-a .run-a .stages li::before, .skin-a .run-a .stages li.done::before {
  content: counter(pass); display: inline-flex; align-items: center; justify-content: center; align-self: center; margin: 0;
  width: 32px; height: 32px; border: 2px solid var(--a-line); border-radius: 50%; background: var(--surface); color: var(--chalk);
  font: 800 14px/1 var(--text);
}
.skin-a .run-a .stages li.done::before { content: "\2713"; background: var(--a-cit); color: var(--a-ink); border-color: var(--a-ink); font-size: 15px; }
.skin-a .run-a .stages li.now { background: var(--a-tint); border-color: var(--a-line); box-shadow: 4px 4px 0 var(--a-shadow); }
.skin-a .run-a .stages li.now::before { background: var(--a-lav); color: var(--a-ink); border-color: var(--a-ink); }
.skin-a .run-a .stages:not(.settled) li.now::before { animation: none; }
.skin-a .run-a .stages.settled li.now { background: var(--surface); box-shadow: none; }
.skin-a .run-a .stages.settled li.now::before { background: var(--surface); color: var(--chalk); border-color: var(--a-line); }
.skin-a .run-a .stages li.done > b, .skin-a .run-a .stages li.next > b, .skin-a .run-a .stages li > b { font-size: 15px; }

/* -- Stop is a quiet link, not a button: still the form's own submit, with its own words. */
.skin-a .run-a form[action$="/stop"] button.secondary,
.skin-a .run-a form[action$="/stop"] button.secondary:hover,
.skin-a .run-a form[action$="/stop"] button.secondary:active {
  min-height: 44px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  color: var(--a-link); font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}
.skin-a .run-a form[action$="/stop"] button.secondary:hover { color: var(--chalk); }

/* -- Phones: one column, the figure under the headline, nothing pinned. */
@media (max-width: 40rem) {
  .skin-a .run-a .run-hero { grid-template-columns: minmax(0, 1fr); }
  .skin-a .run-a .run-hero > .headline-figure.found { grid-column: 1; grid-row: auto; justify-self: start; margin-left: 0; flex-direction: row; gap: 14px; }
  .skin-a .run-a .headline-figure.found .numeral { padding: 8px 16px; font-size: 56px; border-radius: 20px; }
  .skin-a .run-a .activity-said { flex: 1 1 100%; }
  .skin-a .run-a .flow .panel, .skin-a .run-a .split.ended .panel { padding: 18px; }
  .skin-a .run-a .banner { padding: 16px 18px; box-shadow: 4px 4px 0 var(--a-shadow); }
}

@media (prefers-reduced-motion: no-preference) {
  /* The brush moves with the fill (the fill's own transition, same time and curve) and bobs while the sweep is going. */
  .skin-a .run-a .activity-track > .rider { transition: left var(--ms-2) var(--ease-settle); }
  .skin-a .run-a .activity.live .rider svg { animation: a-bob 3.2s ease-in-out infinite; }
  /* The free pass: the brush travels left to right across the whole track in 2.4s (ease in and out), the stripes filling behind it from
     the left edge; at the right end the stripes and the brush fade out over the next 0.5s, and it starts again from the left. Three
     animations on one 2.9s clock, none of them a size: the span's opacity (the fade, a-sweep), the stripes' clip-path (the paint opening,
     a-sweep-paint) and the brush's transform (the travel, a-sweep-brush). They start together and share their stops and easing. */
  .skin-a .run-a .activity > .working-bar > span { animation: a-sweep 2.9s infinite; }
  .skin-a .run-a .activity > .working-bar > span::before { animation: a-sweep-paint 2.9s infinite; }
  .skin-a .run-a .activity > .working-bar > span > .rider { animation: a-sweep-brush 2.9s infinite; }
  /* A finished search pops once (a transform, not a colour: D7B's colour change is the cell's own transition). The page marks only a
     cell that was NOT done when it was drawn, so one that is done at load is simply done. */
  .skin-a .run-a .cell.pop { position: relative; z-index: 1; animation: a-tile-pop .26s ease-out; }
  /* A match that arrives drops in and settles, alongside D7B's write-in (opacity) on its own cells. */
  .skin-a .run-a .feed li.fresh { animation: a-drop .35s cubic-bezier(.3, 1.4, .5, 1) both; }
  .skin-a .run-a .feed li { transition: background-color var(--ms-1) ease, box-shadow var(--ms-1) ease; }
  .skin-a .run-a .lm-why { animation: a-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  @keyframes a-drop {
    from { opacity: 0; transform: translateY(-14px) rotate(-3deg); }
    to { opacity: 1; transform: none; }
  }
  @keyframes a-sweep {
    0% { opacity: 1; }
    82.8% { opacity: 1; animation-timing-function: ease-out; }
    100% { opacity: 0; }
  }
  @keyframes a-sweep-paint {
    0% { clip-path: inset(0 100% 0 0 round 999px); animation-timing-function: ease-in-out; }
    82.8% { clip-path: inset(0 0 0 0 round 999px); }
    100% { clip-path: inset(0 0 0 0 round 999px); }
  }
  @keyframes a-sweep-brush {
    0% { transform: translateX(-100%); animation-timing-function: ease-in-out; }
    82.8% { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
  @keyframes a-tile-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
  }
}

/* ==== A9: Results ============================================================
   /results in public mode (templates/results.html): the score explainer as a peek, one sticker card per job at every width,
   "Why it matched" (a peek holding every matched skill), "Top of the pile", sticker tabs, tools and sections. Public only,
   tokens only (no raw colour), and motion only in the no-preference block at the end.

   Scope. Every rule here hangs on `.res-a`, the class results.html puts on its own root (public only), because the table, the
   tabs, the bar, the banner and the sections are sweep.css's and the console's: a bare rule on one of them would move a page
   this stage does not touch (A7's bare .stepper did that to Review). test_a9_results holds it: no selector in this section
   lacks `.skin-a .res-a`.

   The table stays a table. The markup, the cells and their order are the ones the console draws; here the table, its body and
   its rows are blocks, each row is a flex-wrap card, and the cells it is made of are placed with `order`. The score badge and
   Apply are taken out of the flow and sit at the card's two ends; the head (thead) is visually hidden, not removed. On a phone
   (40rem and under) the badge goes back into the flow beside the title and Apply is the card's full-width foot. Raw scores,
   negative included, are drawn as the number: no band, no colour by value, no threshold.
   Money is the one place peach is used: the "Paid" word on a paid board's source. */

/* -- The top: the eyebrow, the headline, the explainer. */
.skin-a .res-a > .stack-tight { gap: 10px; }
.skin-a .res-a > .stack-tight > h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }

/* The score explainer is a peek: dashed while shut, a sticker open. The sentences are the page's, unchanged. */
.skin-a .res-a details.how-scoring { max-width: 40rem; border: 2px dashed var(--rule); border-radius: 18px; }
.skin-a .res-a details.how-scoring[open] { border-style: solid; border-color: var(--a-line); background: var(--surface); box-shadow: 5px 5px 0 var(--a-shadow); }
.skin-a .res-a details.how-scoring > summary {
  display: flex; align-items: center; gap: 10px; width: auto; min-height: 46px; margin: 0; padding: 4px 14px;
  font: 600 15px/1.3 var(--text); color: var(--chalk);
}
.skin-a .res-a details.how-scoring > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center; margin: 0;
  width: 24px; height: 24px; border: 2px solid var(--a-line); border-radius: 50%;
  font: 700 16px/1 var(--text); color: var(--chalk); transform: none; transform-origin: 50% 50%;
}
.skin-a .res-a details.how-scoring[open] > summary::before { content: "\2013"; transform: none; }
.skin-a .res-a details.how-scoring > summary:hover::before { border-color: var(--a-line); background: var(--a-tint); }
.skin-a .res-a details.how-scoring > p { margin: 0 16px 12px 50px; max-width: 62ch; font-size: 14.5px; line-height: 1.55; color: var(--warm); }
/* The picture: a line with zero marked on it. Left of the tick is dashed (below zero), right of it is solid (more of the résumé).
   Nothing on it is a number, a band or a threshold; it is aria-hidden because the sentence above says the same. */
.skin-a .res-a .scale {
  display: grid; grid-template-columns: auto minmax(2rem, 1fr) auto; align-items: center; gap: 12px;
  margin: 0 16px 16px 50px; font: 600 13px/1.3 var(--text); color: var(--slate);
}
.skin-a .res-a .scale-line { position: relative; display: block; height: 22px; }
.skin-a .res-a .scale-line::before { content: ""; position: absolute; left: 0; top: 10px; width: 26%; border-top: 3px dashed var(--control); }
.skin-a .res-a .scale-line::after { content: ""; position: absolute; left: 26%; right: 0; top: 10px; border-top: 3px solid var(--a-line); border-radius: 3px; }
.skin-a .res-a .scale-zero { position: absolute; z-index: 1; left: calc(26% - 2px); top: 2px; width: 4px; height: 18px; background: var(--a-line); border-radius: 2px; }

/* -- Tabs: sticker pills. The current one is filled, weightier and still aria-current; colour is never the only mark. */
.skin-a .res-a .views { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 0; }
.skin-a .res-a .views a {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; margin: 0; padding: 6px 16px;
  border: 2px solid var(--a-line); border-radius: 22px; background: var(--surface);
  font-weight: 600; color: var(--chalk); text-decoration: none; overflow-wrap: anywhere;
}
.skin-a .res-a .views a:hover { background: var(--a-tint); color: var(--chalk); }
.skin-a .res-a .views a[aria-current="page"], .skin-a .res-a .views a[aria-current="page"]:hover {
  background: var(--chalk); color: var(--ground); border-color: var(--chalk); font-weight: 800; box-shadow: 3px 3px 0 var(--a-lav);
}
.skin-a .res-a .views .n { font-weight: 500; color: inherit; }
.skin-a .res-a .view-note { color: var(--warm); font-size: 14px; line-height: 1.5; }

/* -- Tools: the line is the A2 buttons already; each panel is a sticker card (the panel itself stays unstyled, because Alpine
   animates its height and a border or padding on it would not shrink to nothing). The margin leaves room for the shadow. */
/* The row gap stays --s3: sweep.css's tool panels cancel exactly that gap with a negative margin while they open (D7B R11c). */
.skin-a .res-a .bar { align-items: center; gap: var(--s3) var(--s5); }
.skin-a .res-a .bar > .count { font-size: 15px; font-weight: 600; color: var(--warm); }
.skin-a .res-a .tool-panel > form, .skin-a .res-a .tool-panel > .exports {
  margin: 0 5px 5px 0; padding: 18px 20px; background: var(--surface);
  border: 2px solid var(--a-line); border-radius: 22px; box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a .res-a .tool-panel .exports + .meta { margin-top: 10px; }

/* -- Sections: the heading with its count as a chip; the abroad one is a peek. */
.skin-a .res-a .jobs-section { gap: 12px; }
.skin-a .res-a .jobs-section h2 { font: 800 clamp(22px, 2.4vw, 28px)/1.1 var(--display); letter-spacing: -0.02em; }
.skin-a .res-a .section-head { align-items: center; gap: 6px 12px; }
.skin-a .res-a .head-note > b {
  display: inline-block; padding: 2px 11px; border: 1.5px solid var(--a-line); border-radius: 999px;
  background: var(--a-tint); color: var(--chalk); font-size: 13.5px; font-weight: 700; line-height: 20px;
}
.skin-a .res-a .section-note { color: var(--warm); font-size: 14px; line-height: 1.5; }
.skin-a .res-a .section-foot { border-top: 2px dashed var(--rule); }
.skin-a .res-a details.jobs-section { gap: 0; border: 2px dashed var(--rule); border-radius: 18px; }
.skin-a .res-a details.jobs-section[open] { border-style: solid; border-color: var(--a-line); background: var(--surface); box-shadow: 5px 5px 0 var(--a-shadow); }
.skin-a .res-a details.jobs-section > summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 46px; margin: 0; padding: 8px 14px;
  font: 600 15px/1.3 var(--text); color: var(--chalk);
}
.skin-a .res-a details.jobs-section > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center; margin: 0;
  width: 24px; height: 24px; border: 2px solid var(--a-line); border-radius: 50%;
  font: 700 16px/1 var(--text); color: var(--chalk); transform: none; transform-origin: 50% 50%;
}
.skin-a .res-a details.jobs-section[open] > summary::before { content: "\2013"; transform: none; }
.skin-a .res-a details.jobs-section > summary:hover::before { border-color: var(--a-line); background: var(--a-tint); }
.skin-a .res-a details.jobs-section > summary > h2 { margin: 0; }
.skin-a .res-a details.jobs-section > :not(summary) { margin: 12px 16px 0; }
.skin-a .res-a details.jobs-section > :last-child { margin-bottom: 16px; }

/* -- How it ended, and nothing found: sticker cards. Their words, shapes and links are the same. */
.skin-a .res-a .banner {
  gap: 14px 20px; padding: 18px 22px; background: var(--surface);
  border: 2px solid var(--a-line); border-radius: 22px; box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a .res-a .banner b { font: 800 18px/1.25 var(--display); letter-spacing: -0.01em; }
.skin-a .res-a .banner span { font-size: 14.5px; line-height: 1.5; }
.skin-a .res-a .banner.ok { background: color-mix(in srgb, var(--a-cit) 20%, var(--surface)); }
.skin-a .res-a .banner.warn { background: color-mix(in srgb, var(--over) 8%, var(--surface)); }
.skin-a .res-a .banner.part { background: var(--a-tint); }
.skin-a .res-a .no-results {
  max-width: 40rem; padding: 24px 26px; background: var(--surface);
  border: 2px solid var(--a-line); border-radius: 22px; box-shadow: 5px 5px 0 var(--a-shadow);
}
.skin-a .res-a .no-results h2 { font: 800 22px/1.15 var(--display); letter-spacing: -0.02em; }
.skin-a .res-a .no-results p { font-size: 15px; color: var(--warm); }

/* -- The cards. Reset what the table gave a cell (rules, widths, hover shade), then lay the row out. */
.skin-a .res-a .listings { overflow: visible; contain: none; }
.skin-a .res-a .jobs, .skin-a .res-a .jobs tbody { display: block; width: 100%; min-width: 0; }
.skin-a .res-a .jobs thead {
  display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skin-a .res-a .jobs thead tr { display: block; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.skin-a .res-a .jobs td {
  display: block; width: auto; margin: 0; padding: 0; border: 0; background: none; font-size: 13px; line-height: 18px; color: var(--warm);
}
.skin-a .res-a .jobs tbody tr:hover td { background: none; }
.skin-a .res-a .jobs tbody tr:hover td.score, .skin-a .res-a .jobs tbody tr:hover td.pay,
.skin-a .res-a .jobs tbody tr:hover td.exp, .skin-a .res-a .jobs tbody tr:hover td.src { background: var(--a-tint); }
.skin-a .res-a .jobs tbody tr {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px 8px;
  min-height: 92px; margin: 0 0 18px; padding: 18px 168px 16px 104px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 24px;
}
.skin-a .res-a .jobs tbody tr:last-child { margin-bottom: 0; }

/* The score: a large raw number on a tint, at the card's left. Ink on a tint, the same for every score. */
.skin-a .res-a .jobs td.score {
  position: absolute; left: 20px; top: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; min-height: 56px; padding: 6px 8px; text-align: center;
  background: var(--a-tint); border: 2px solid var(--a-line); border-radius: 18px; color: var(--chalk);
  font: 800 26px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.skin-a .res-a .jobs td.score::after { margin-top: 4px; font: 600 12px/1 var(--text); color: var(--slate); }
.skin-a .res-a .jobs tr.opened td.score, .skin-a .res-a .jobs tr.applied td.score { color: var(--warm); }

/* The job: the title on its own line, then the company and the location, then what the engine says (caution before
   suggestion, as the page draws them), then the facts, then the peek. The wrappers step aside so each is a flex item. */
.skin-a .res-a .jobs td.role, .skin-a .res-a .job-line { display: contents; }
.skin-a .res-a .jobs td.role::after { content: none; }
.skin-a .res-a .job-line > b {
  order: 1; flex: 0 0 100%; font: 800 20px/1.2 var(--display); letter-spacing: -0.01em; color: var(--chalk); overflow-wrap: anywhere;
}
.skin-a .res-a .job-line .co { order: 2; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--warm); overflow-wrap: anywhere; }
.skin-a .res-a .jobs td.loc { order: 3; min-width: 0; font-size: 15px; line-height: 20px; color: var(--slate); overflow-wrap: anywhere; }
.skin-a .res-a .jobs td.loc:empty { display: none; }
.skin-a .res-a .jobs td.loc:not(:empty)::before { content: "\00B7"; margin-right: 8px; font-weight: 800; }
.skin-a .res-a .caution, .skin-a .res-a .suggest { order: 4; flex: 0 0 100%; max-width: none; margin: 6px 0 0; }
.skin-a .res-a .suggest { order: 5; margin-top: 0; padding: 8px 12px; background: var(--a-tint); border: 2px solid var(--a-lav); border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--chalk); }
.skin-a .res-a .caution { align-items: center; font-size: 13px; line-height: 18px; color: var(--warm); }
.skin-a .res-a .caution + .suggest { margin-top: 0; }
.skin-a .res-a .bang { border-color: var(--a-line); color: var(--chalk); }

/* The facts: chips. A fact the job does not state is not drawn. */
.skin-a .res-a .jobs td.pay, .skin-a .res-a .jobs td.exp, .skin-a .res-a .jobs td.src, .skin-a .res-a .jobs .posted {
  order: 6; margin: 4px 0 0; padding: 2px 11px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--a-tint);
  font-size: 13px; line-height: 20px; color: var(--chalk); white-space: normal;
}
.skin-a .res-a .jobs td.none { display: none; }
.skin-a .res-a .mlabel { display: inline; color: var(--slate); }
.skin-a .res-a .paid-word { display: inline; margin-left: 6px; font-weight: 700; color: var(--paid); white-space: nowrap; }
.skin-a .res-a .paid-word::before, .skin-a .res-a .paid-word::after { content: none; }
.skin-a .res-a .jobs .posted { display: block; margin-top: 4px; color: var(--slate); }

/* Apply: a sticker button at the card's right (the link itself is the page's own: href, target, rel, hidden words). */
.skin-a .res-a .jobs td.act { display: contents; }
.skin-a .res-a .jobs td.act .apply {
  position: absolute; right: 20px; top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 48px; margin: 0; padding: 0 22px;
  font: 800 15px/1 var(--text); text-decoration: none; color: var(--a-on-primary); background: var(--a-primary);
  border: 2px solid var(--a-line); border-radius: 999px; box-shadow: 3px 3px 0 var(--a-shadow);
}
.skin-a .res-a .jobs td.act .apply:hover { color: var(--a-on-primary); background: var(--a-primary); box-shadow: 5px 5px 0 var(--a-shadow); }
.skin-a .res-a .jobs td.act .apply:active { box-shadow: 1px 1px 0 var(--a-shadow); }
.skin-a .res-a .jobs td.act .apply .go { margin: 0; }
.skin-a .res-a .jobs td.act > .muted { position: absolute; right: 24px; top: 32px; font-size: 13px; color: var(--slate); }

/* The card as a whole: it opens the listing (the row's own script), so it lifts when the pointer is over it. */
.skin-a .res-a .jobs tbody tr.rowlink:hover { box-shadow: 5px 5px 0 var(--a-shadow); }

/* Top of the pile: a citrus label on the first card's top edge. */
.skin-a .res-a .jobs td.role > .stamp {
  position: absolute; top: -16px; right: 190px; z-index: 1; padding: 5px 11px; transform: rotate(3deg);
  background: var(--a-cit); color: var(--a-ink); border: 2px solid var(--a-ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--a-ink);
  font-size: 12px; letter-spacing: .08em;
}

/* Why it matched: a small peek. Shut it is a dashed pill; open it holds every term the job mentions. A click in it is its own
   (results.html: @click.stop), so it never opens the listing. */
.skin-a .res-a .jobs td.skills { order: 9; flex: 0 0 100%; margin-top: 6px; }
.skin-a .res-a .jobs td.skills:empty { display: none; }
.skin-a .res-a details.why { width: 100%; border: 1.5px dashed var(--a-line); border-radius: 18px; cursor: default; }
.skin-a .res-a details.why:not([open]) { width: fit-content; max-width: 100%; border-radius: 999px; }
.skin-a .res-a details.why[open] { border-style: solid; background: var(--a-tint); }
.skin-a .res-a details.why > summary {
  display: flex; align-items: center; gap: 10px; width: auto; min-height: 40px; margin: 0; padding: 2px 14px 2px 10px;
  font: 600 14px/1.3 var(--text); color: var(--chalk); cursor: pointer;
}
.skin-a .res-a details.why > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center; margin: 0;
  width: 22px; height: 22px; border: 2px solid var(--a-line); border-radius: 50%;
  font: 700 15px/1 var(--text); color: var(--chalk); transform: none; transform-origin: 50% 50%;
}
.skin-a .res-a details.why[open] > summary::before { content: "\2013"; transform: none; }
.skin-a .res-a details.why > summary:hover::before { background: var(--surface); }
.skin-a .res-a details.why > .why-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 4px 16px 14px 16px; }
.skin-a .res-a .why-t { flex: 1 0 100%; margin-bottom: 2px; font-size: 13.5px; font-weight: 700; color: var(--chalk); }
/* Every term: sweep.css's phone rule keeps only the first three tags of a skills cell (.tag:nth-child(n+4)); here none is dropped,
   and the selector says so by being longer than that one. */
.skin-a .res-a .jobs td.skills details.why .why-body .tag {
  display: inline-block; margin: 0; padding: 2px 10px; background: var(--a-lav); border: 1.5px solid var(--a-ink); color: var(--a-ink);
  font-size: 12.5px; font-weight: 700;
}

/* -- Phones: the badge goes back beside the title, everything else stacks, Apply is the card's full-width foot. */
@media (max-width: 40rem) {
  .skin-a .res-a .jobs tbody tr { padding: 16px; min-height: 0; gap: 6px 8px; margin-bottom: 16px; border-radius: 22px; }
  .skin-a .res-a .jobs td.score { position: static; order: 0; flex: 0 0 auto; margin-right: 4px; }
  .skin-a .res-a .job-line { display: flex; flex-wrap: wrap; order: 1; flex: 1 1 0; min-width: 0; gap: 2px 8px; }
  .skin-a .res-a .job-line > b { font-size: 18px; }
  .skin-a .res-a .job-line .co { flex: 0 0 100%; }
  .skin-a .res-a .jobs td.role::after { content: ""; order: 2; flex: 0 0 100%; height: 0; }
  .skin-a .res-a .jobs td.loc {
    order: 6; margin: 4px 0 0; padding: 2px 11px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--a-tint);
    font-size: 13px; color: var(--chalk);
  }
  .skin-a .res-a .jobs td.loc:not(:empty)::before { content: none; }
  .skin-a .res-a .jobs tbody tr:hover td.loc { background: var(--a-tint); }
  .skin-a .res-a .jobs td.act .apply { position: static; order: 20; flex: 0 0 100%; min-height: 48px; margin-top: 8px; }
  .skin-a .res-a .jobs td.act > .muted { position: static; order: 20; flex: 0 0 100%; margin-top: 8px; }
  .skin-a .res-a .jobs td.role > .stamp { right: 18px; }
  .skin-a .res-a .jobs-section h2 { font-size: 22px; }
  .skin-a .res-a .banner { padding: 16px 18px; box-shadow: 4px 4px 0 var(--a-shadow); }
  .skin-a .res-a .tool-panel > form, .skin-a .res-a .tool-panel > .exports { padding: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* The card lifts under the pointer, and Apply presses; nothing else on the list moves (D7B's arrival and swap are sweep.css's). */
  .skin-a .res-a .jobs tbody tr { transition: box-shadow var(--ms-1) ease; }
  .skin-a .res-a .jobs td.act .apply { transition: box-shadow var(--ms-1) ease; }
  /* The peek's body pops in, with A2's own a-pop. */
  .skin-a .res-a details.why[open] > .why-body { animation: a-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
}

/* ==== A10: the other states ==================================================
   What the canvas never drew: a refusal on any screen, the door, the strip that says a sweep (or a résumé reading) is going
   on, Confirm's "already done today" notes, Results' notice, the feedback dialog, the plan that could not be made, and the page
   that is not there. Public only (everything hangs on .skin-a). Tokens only, no raw colour; peach stays money's, so none is
   used here. Nothing moves: there is no animation or transition in this section. Every rule that is not for a part that exists on
   every screen hangs on a class that exists in one place: .runbar (_active_run.html), .door-a (beta.html), .cf-a (Confirm's root),
   .pe-a (plan_error.html's root), .nf-a (not_found.html), .res-a p.notice (Results). */

/* -- An error is a sticker: the A2 outline and hard shadow, a "!" in a ring, the words in the page's own ink. The ring and the
   outline carry "this went wrong" as well as the tint does. Every screen's own message, and the feedback dialog's.
   Not the one inside Confirm's stub (A7 gave that its own look). */
.skin-a .error:not(.confirm.ticket > .decide .error) {
  position: relative; padding: 14px 18px 14px 58px;
  border: 2px solid var(--a-line); border-radius: 18px; box-shadow: 4px 4px 0 var(--a-shadow);
  background: color-mix(in srgb, var(--over) 8%, var(--surface)); color: var(--chalk); font-weight: 600;
}
.skin-a .error:not(.confirm.ticket > .decide .error)::before {
  content: "!"; position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--over); border-radius: 50%; background: var(--surface); color: var(--over);
  font: 800 15px/1 var(--text);
}
.skin-a .error:not(.confirm.ticket > .decide .error) .problems { margin: 0; padding-left: 1.1em; }

/* -- The strip under the header. A sticker band in the page's own gutters (it was a full-bleed hairline, its words at the top
   and its button in the middle). The dot is a ringed state light; the tone is the band's tint. */
.skin-a .runbar {
  align-items: center; gap: 10px 16px; margin: 14px 16px 0; padding: 12px 14px 12px 18px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 22px; box-shadow: 4px 4px 0 var(--a-shadow);
}
@media (min-width: 64rem) {
  .skin-a .runbar { width: calc(100% - 3rem); max-width: 85rem; margin: 14px auto 0; }
}
.skin-a .runbar.live { background: var(--a-tint); }
.skin-a .runbar.done { background: color-mix(in srgb, var(--a-cit) 20%, var(--surface)); }
.skin-a .runbar.warn { background: color-mix(in srgb, var(--over) 8%, var(--surface)); }
.skin-a .runbar .runbar-dot { align-self: center; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid var(--a-line); background: var(--a-lav); }
.skin-a .runbar.live .runbar-dot { background: var(--a-primary); }
.skin-a .runbar.done .runbar-dot { background: var(--a-cit); }
.skin-a .runbar.warn .runbar-dot { background: var(--over); }
.skin-a .runbar .runbar-said > b, .skin-a .runbar.done .runbar-said > b, .skin-a .runbar.warn .runbar-said > b {
  font: 700 15px/1.3 var(--text); color: var(--chalk);
}
.skin-a .runbar .runbar-detail { font-size: 13.5px; color: var(--slate); }

/* -- The tracker's "2 of 4" chip is empty when no step is current (the plan that could not be made, the 404): no blank citrus capsule. */
.skin-a .tracker-at:empty { display: none; }

/* -- The door (beta.html): one sticker card on the ground, the mark above the words. */
.skin-a .door-a { max-width: 34rem; margin: 3rem auto; padding: 0 16px; }
.skin-a .door-a .door-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px;
  background: var(--surface); border: 2px solid var(--a-line); border-radius: 26px; box-shadow: 8px 8px 0 var(--a-shadow);
}
.skin-a .door-a h1 { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.skin-a .door-a .door-card form { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; }
.skin-a .door-a .door-card input { width: 100%; }
.skin-a .door-a .door-card .label { font-size: 14px; font-weight: 700; color: var(--chalk); }
.skin-a .door-a .door-card .error { align-self: stretch; }

/* -- Confirm: "N searches from today's run are already done" and "Every search in this plan already ran today". The second
   is a warning (nothing new would be fetched), not a price, so it takes the warning tint and no peach. */
.skin-a .cf-a .callout {
  max-width: 46rem; padding: 14px 18px; background: var(--a-tint);
  border: 2px solid var(--a-line); border-radius: 18px; box-shadow: 4px 4px 0 var(--a-shadow);
  color: var(--chalk); font-size: 14.5px; line-height: 1.5;
}
.skin-a .cf-a .callout > b { margin-bottom: 4px; font: 800 16px/1.3 var(--display); }
.skin-a .cf-a .callout.warn { background: color-mix(in srgb, var(--over) 8%, var(--surface)); }
.skin-a .cf-a .callout.warn > b { color: var(--chalk); }

/* -- Results: what a refused re-rank says (a status, not a failure) is a quiet sticker. */
.skin-a .res-a p.notice {
  padding: 12px 18px; background: var(--a-tint); color: var(--chalk); font-weight: 600;
  border: 2px solid var(--a-line); border-radius: 18px; box-shadow: 4px 4px 0 var(--a-shadow);
}

/* -- The feedback dialog: a sticker panel like the rest, not a plain box. */
.skin-a dialog.feedback { border: 2px solid var(--a-line); border-radius: 26px; box-shadow: 8px 8px 0 var(--a-shadow); }
.skin-a dialog.feedback form { padding: 24px; }
.skin-a dialog.feedback h2 { font: 800 24px/1.2 var(--display); letter-spacing: -0.02em; }

/* -- The plan that could not be made: one panel at a reading width, its label readable. */
.skin-a .pe-a > .panel { max-width: 40rem; gap: 12px; }
.skin-a .pe-a > .panel > .label { font-size: 14px; font-weight: 700; color: var(--chalk); }

/* -- The page that is not there: the brush on a citrus disc, then the headline (the hero's own size). */
.skin-a .nf-a .nf-brush {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 4px;
  background: var(--a-cit); border: 2px solid var(--a-ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--a-shadow);
  transform: rotate(-8deg);
}
.skin-a .nf-a .nf-brush svg { width: 44px; height: 44px; }

@media (max-width: 40rem) {
  .skin-a .door-a { margin: 1.5rem auto; }
  .skin-a .door-a .door-card { padding: 20px; box-shadow: 5px 5px 0 var(--a-shadow); }
  .skin-a dialog.feedback form { padding: 18px; }
}

/* -- How Sweep handles your data (/privacy) and the footer link to it. */
.skin-a .data-a { max-width: 44rem; }
.skin-a .data-a ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.55; }
.skin-a .site-foot { margin: 56px 0 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; }
.skin-a .site-foot a { color: var(--slate); }
.skin-a .site-foot a:hover { color: var(--chalk); }
