/* Role atlas — styled on the GradBuddy tokens (web/tokens/, snapshot 2026-10-09). Look changes through tokens only.
   Three colours with meaning: green = you (evidenced, chosen, current), blue = the postings' numbers, amber = attention
   (gaps). Skill areas are text, not colours. The shared components (web/ui.js draws them): the button, the close mark,
   the field, the chip, the segmented control, the pill, the callout, the spinner, the status line, the eyebrow, the
   card and the tile each have one rule set here, and a screen's own rule only places one. Phone rules sit in the
   blocks at max-width 640px. */

:root { --input: oklch(0.52 0.012 160); --page-max: 880px; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --input: oklch(0.60 0.006 160); --green-400: oklch(0.485 0.15 145); --primary-tint: oklch(0.485 0.15 145 / 0.12); } }
:root[data-theme="light"] { --input: oklch(0.60 0.006 160); --green-400: oklch(0.485 0.15 145); --primary-tint: oklch(0.485 0.15 145 / 0.12); }

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; line-height: 1.5; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
h1, h2, h3, h4 { margin: 0; font-weight: var(--weight-medium); }
h1 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tighter); line-height: var(--leading-tight); margin-bottom: 6px; }
h2 { font-size: var(--text-lg); margin: 28px 0 10px; }
h3 { font-size: var(--text-base); margin: 16px 0 6px; }
p { margin: 0 0 8px; }
a { text-decoration: none; }
.lead { font-size: var(--text-md); color: var(--muted-foreground); line-height: var(--leading-relaxed); max-width: 72ch; }   /* a reading measure on every page, however wide */
.facts, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--text-sm); color: var(--muted-foreground); }
.small { font-size: var(--text-sm); } .muted { color: var(--muted-foreground); } .subtle { color: var(--subtle-foreground); }
/* the small label over a group (UI.eyebrow): one look wherever a screen names a section in small capitals */
.eyebrow, .aside .rh, .tierlab, #about h3, .sp-besth, .sp-endside h3, .pcard h3, .q-ship b, .q-sect h3, .q-next h3, .sp-recipe dt { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: var(--weight-regular); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--subtle-foreground); }
.eyebrow { margin-bottom: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- top bar: brand · breadcrumbs · the four verbs (v19 B2) · theme ---------- */
header.top { height: var(--topbar-height); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--border); background: var(--card); font-size: var(--text-sm); color: var(--subtle-foreground); }
.verbs-nav { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
/* a phone: two rows (usability pass 2026-11-06; it was four). The brand and the crumbs share the first; the verbs,
   Feedback and Sign in take the second as one strip that scrolls sideways (no verb is hidden), the theme button at
   its end. header.top: the skill map's key has an i.sw.top */
@media (max-width: 640px) {
  header.top { height: auto; min-height: var(--topbar-height); flex-wrap: wrap; padding: var(--space-2) var(--space-4); gap: var(--space-1) var(--space-3); }
  .top-actions { order: 3; flex: 0 0 100%; min-width: 0; gap: var(--space-3); }
  .verbs-nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: var(--space-3); padding: var(--space-1) 0; }
  .verbs-nav::-webkit-scrollbar { display: none; }
  /* the strip fades at its right edge, so a cut word reads as "more this way" (2026-11-08); where the browser ties an
     animation to the strip's own scroll, the fade goes once the strip is scrolled to its end */
  .verbs-nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  @supports (animation-timeline: scroll()) {
    .verbs-nav { animation: verbs-fade linear both; animation-timeline: scroll(self inline); }
  }
}
@keyframes verbs-fade {
  0%, 92% { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  100% { -webkit-mask-image: none; mask-image: none; }
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--primary); }
.brand .wordmark { font-weight: var(--weight-semibold); color: var(--heading-foreground); letter-spacing: var(--tracking-tight); font-size: var(--text-base); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted-foreground); } .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs .here { color: var(--foreground); overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--subtle-foreground); }
.top-actions { display: flex; align-items: center; gap: 16px; }
/* the chrome's links, one style (2026-11-06): the verbs, Feedback (a button) and Sign in alike; the current mark only on
   the current verb (markVerb). The footer's two links alike, underlined as links. */
.top-actions .toplink { color: var(--muted-foreground); font: inherit; text-decoration: none; } .top-actions .toplink:hover { color: var(--foreground); text-decoration: none; }
.top-actions .toplink.on { color: var(--heading-foreground); font-weight: var(--weight-medium); }
.icon { width: var(--control-sm); height: var(--control-sm); border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--muted-foreground); display: grid; place-items: center; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.icon:hover { background: var(--muted); color: var(--foreground); border-color: var(--subtle-foreground); }

/* ---------- shell: main column, optional side panel (owner's choice 8B) ---------- */
.shell { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.main { padding: 28px var(--gutter) 56px; min-width: 0; }
.main > .page { max-width: var(--page-max); }
.main > .page.narrow { max-width: 560px; margin: 0 auto; padding-top: 40px; }
.main > .page.narrow.roomy { max-width: 760px; padding-top: 28px; }
/* the role page fills its column up to the rail: a capped page left a gap between the content and the rail (owner's
   feedback 2026-11-01, "use all possible space"); the lead keeps its reading measure */
.shell.with-rail .main > .page { max-width: none; }
/* the side panel slides in over the right edge once something is selected and the list keeps its width (owner's
   choice R8, 2026-10-19); on a narrow window the page gives way, and the full-width map makes room for it */
.aside { position: fixed; top: var(--topbar-height); right: 0; bottom: 0; width: var(--aside-width); z-index: var(--z-rail); border-left: 1px solid var(--border); background: var(--card); padding: 24px 24px 40px; overflow-y: auto; box-shadow: var(--shadow-panel); }
.shell.with-aside .main > .page { max-width: min(var(--page-max), calc(100vw - var(--aside-width) - 72px)); }
.shell.with-aside .main > .page.wide { max-width: none; padding-right: var(--aside-width); }
/* the rail (role screens, owner's decision 2026-10-24): the side column is part of the layout and always there */
.shell.with-rail { grid-template-columns: minmax(0, 1fr) var(--aside-width); }
.shell.with-rail .aside.rail { position: sticky; top: var(--topbar-height); height: calc(100vh - var(--topbar-height)); box-shadow: none; z-index: 1; }
.aside .close.back { float: none; font-size: var(--text-sm); color: var(--muted-foreground); padding: 0 0 10px; }
.aside .rs { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.5; }
.aside .rs:first-child { padding-top: 0; } .aside .rs:last-child { border-bottom: 0; }
.aside .rs p { margin: 0 0 6px; } .aside .rs p b { color: var(--heading-foreground); font-weight: var(--weight-medium); }
.aside .rh { margin: 0 0 6px; }
.aside .rh a { text-transform: none; letter-spacing: 0; }
.aside .rs .acts > a, .aside .rs .acts > .act { display: block; color: var(--foreground); padding: 5px 0; } .aside .rs .acts > a > span, .aside .rs .acts > .act > span { color: var(--subtle-foreground); } .aside .rs .acts .act a { color: var(--subtle-foreground); text-decoration: underline; text-underline-offset: 3px; }
.aside .rs .drop { padding: 14px; margin: 8px 0; } .aside .rs textarea { width: 100%; min-height: 0; }
.aside .rs .strip { margin: 0 0 10px; }
.aside .lead-rail { color: var(--foreground); font-size: var(--text-base); margin-top: 10px; } .aside .lead-rail .g { color: var(--primary); } .aside .lead-rail .a { color: var(--warning); }
.gaps { margin: 4px 0 0; padding: 0; list-style: none; }
.gaps li { border-top: 1px solid var(--border); }
.gaps li .t { display: grid; grid-template-columns: 14px 1fr auto; gap: 0 6px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--warning); padding: 7px 0; font-size: var(--text-sm); }
.gaps li .t::before { content: "▸"; color: var(--subtle-foreground); } .gaps li.open .t::before { content: "▾"; }
.gaps li .t .n { font-family: var(--font-mono); color: var(--subtle-foreground); }
.gaps li .ex { margin: 0 0 8px 20px; color: var(--muted-foreground); } .gaps li .ex em { color: var(--foreground); font-style: normal; }
/* The callout (UI.callout): a tinted box that says something is happening or asks for one thing. .wait is its first
   name and stays; busy puts the spinner beside the words. amber is for what needs attention, plain for a quiet aside. */
.callout, .wait { border: 1px solid var(--primary); border-radius: var(--radius-md); background: var(--primary-tint); padding: var(--space-3) var(--space-3-5); margin: var(--space-2) 0 0; color: var(--foreground); }
.callout b, .wait b { color: var(--heading-foreground); font-weight: var(--weight-medium); display: block; margin-bottom: var(--space-1); }
.callout.busy, .wait.pj-wait { display: flex; gap: var(--space-3-5); align-items: center; }
.callout.amber { border-color: var(--warning); background: var(--warning-tint); }
.callout.plain { border-color: var(--border); background: var(--card); }
.callout p:last-child, .wait p:last-child { margin-bottom: 0; }
/* the one spinner: a ring that turns once a second, still for a person who asked for less motion */
.spinner, .drop .proc li.now .pm { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--primary-tint); border-top-color: var(--primary); animation: spin var(--duration-slow) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner, .drop .proc li.now .pm { animation: none; border-color: var(--primary); } }
.drop .proc li.now .pm { width: 16px; height: 16px; }
/* the pill (UI.pill): a small rounded label for a level or a state. Green by default; blue for the postings' side,
   amber for attention, neutral for what is set aside */
.pill, .pj-level, .q-tag, .ptag { display: inline-block; padding: 2px var(--space-2-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-normal); background: var(--primary-tint); color: var(--accent-foreground); }
.pill.blue, .pj-level.lv-intermediate { background: var(--secondary-tint); color: var(--secondary); }
.pill.amber { background: var(--warning-tint); color: var(--warning); }
.pill.neutral, .q-tag.q-skipped { background: var(--muted); color: var(--muted-foreground); }
/* one line of outcome under a control (UI.status): what happened, or what is missing */
.status { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.status.error { font-size: var(--text-base); color: var(--warning); }
.status.done { color: var(--primary); }
.wait input { width: 100%; margin: 6px 0; }
.wait .small a { color: var(--primary); }
.fit-wait { max-width: 560px; margin-top: 20px; }
.wait.apply p.small { margin: 0; } .wait.apply b { margin-bottom: 6px; }
.apply-form { display: grid; gap: 6px; margin: 8px 0 0; } .apply-form input { margin: 0; } .apply-form .btn { justify-self: start; }
/* a Tally form's slot (web/doors.js, v19 B7): the native form's height held while the embed loads, so the page stays
   still whichever form ends up in it */
.apply-slot { min-height: 82px; margin: 8px 0 0; } .apply-slot iframe, .door-slot iframe { display: block; width: 100%; border: 0; }
.apply-loading, .door-loading { margin: 6px 0 0; }
.plinks { color: var(--muted-foreground); font-size: var(--text-sm); } .plinks a { color: var(--primary); }
.plinks-row { margin: -4px 0 6px 12px; }
.ptag { margin-left: 6px; vertical-align: middle; }
.posting-box { margin: 10px 0 4px; max-width: 720px; } .posting-box .disc > summary { font-size: var(--text-sm); color: var(--primary); cursor: pointer; }
.lead-rail.posting { margin-bottom: 4px; }
.rail-tab { display: none; position: fixed; right: 0; top: 50%; z-index: 9; transform: rotate(-90deg) translate(50%, 0); transform-origin: right bottom; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--card); color: var(--foreground); padding: 6px 14px; font-size: var(--text-sm); }
@media (max-width: 1180px) {
  .shell.with-rail { grid-template-columns: minmax(0, 1fr); }
  .shell.with-rail .aside.rail { position: fixed; height: auto; transform: translateX(100%); transition: transform var(--duration-base) var(--ease-out); box-shadow: var(--shadow-panel); z-index: var(--z-rail); }
  .shell.with-rail.rail-open .aside.rail { transform: none; }
  .shell.with-rail .rail-tab { display: block; }
  .shell.with-rail.rail-open .rail-tab { right: var(--aside-width); }
}
.aside .empty { color: var(--muted-foreground); font-size: var(--text-base); margin-top: 8px; }
.aside .close { float: right; margin: -6px -6px 0 var(--space-2); }
.foot { border-top: 1px solid var(--border); padding: 12px var(--gutter); font-size: var(--text-sm); color: var(--subtle-foreground); }
.foot .footlink { color: var(--primary); font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons, chips, choices ---------- */
/* The button (web/ui.js, UI.btn). Three kinds: primary (one per screen: the way forward), the plain outline, quiet (a
   way back, no box). Three sizes on the control heights: sm in a toolbar, a card's foot or a callout; md the default;
   lg the one main action of a step. Every kind answers a pointer the same way: a hover mixes toward the text colour,
   a press goes one step further, a disabled one fades and stops answering. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-md); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3-5); font-size: var(--text-base); line-height: var(--leading-snug); border: 1px solid var(--input); background: transparent; color: var(--foreground); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard); }
.btn:where(:not(:disabled)):hover { background: var(--muted); border-color: var(--subtle-foreground); text-decoration: none; }
.btn:where(:not(:disabled)):active { background: color-mix(in oklch, var(--muted) 80%, var(--foreground)); }
.btn.primary { background: var(--primary); color: var(--primary-foreground); border-color: transparent; font-weight: var(--weight-medium); }
.btn.primary:where(:not(:disabled)):hover { background: color-mix(in oklch, var(--primary) 88%, var(--heading-foreground)); border-color: transparent; }
.btn.primary:where(:not(:disabled)):active { background: color-mix(in oklch, var(--primary) 78%, var(--heading-foreground)); }
.btn.quiet { border-color: transparent; color: var(--muted-foreground); padding-left: 0; }
.btn.quiet:where(:not(:disabled)):hover, .btn.quiet:where(:not(:disabled)):active { background: transparent; border-color: transparent; color: var(--foreground); }
.btn.sm { min-height: var(--control-sm); padding: var(--space-1) var(--space-3); font-size: var(--text-sm); }
.btn.lg { min-height: var(--control-lg); padding: var(--space-2-5) var(--space-6); }
.gopt:disabled, .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }   /* a game's answer button fades as a button does */
/* the close mark of a panel, a drawer, a dialog: one size, a square a finger finds */
button.close { display: inline-grid; place-items: center; width: var(--control-sm); height: var(--control-sm); padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted-foreground); font-size: var(--text-lg); line-height: 1; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
button.close:hover { background: var(--muted); color: var(--foreground); }
button.close.back { display: inline-block; width: auto; height: auto; }
button.close.back:hover { background: transparent; }
/* The card: a bordered surface that holds one thing (a project, a posting, a section's verb). Every card has the same
   edge, the same corner and the same fill; a screen's own rule gives it a padding and a layout. A card that is a link
   or a button lifts its edge under a pointer. */
.surface, .choice, .fcard, .about-facts .fact, .verb, .jcard, .lf-step, .pcard, .op-card, .op-book, .tree-cta, .q-now, .sp-choice, .pj-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
:is(a, button).surface, .choice, .fcard, a.verb, .jcard, a.op-card { transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
:is(a, button).surface:hover, .choice:hover, .fcard:hover, .jcard:hover, a.op-card:hover { border-color: var(--input); text-decoration: none; }
/* The tile: one answer among a few, as a button the width of its column (the open flow's options, About you's, a
   game's answers). Still: the card's fill and a quiet edge. Under a pointer the edge lifts; chosen is the site's green. */
.tile, .opt, .sp-opt, .sp-tap, .gopt, .wd-chip, .sp-card, .ktr-tile, .cl-line { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
:is(.tile, .opt, .sp-opt, .sp-tap, .gopt, .wd-chip, .sp-card, .ktr-tile, .cl-line):where(:not(:disabled)):hover, .wd-chip:focus-visible, .sp-card:focus-visible { border-color: var(--input); }
.tile.on, .tile[aria-pressed="true"], .tile[aria-checked="true"] { border-color: var(--primary); background: var(--primary-tint); }
/* The field: every text box, select and text area is one control (web/ui.js, UI.field). md is the default; sm sits
   in a toolbar beside chips; lg is a screen's one search or its one answer. A screen's own rule places it (a width, a
   margin) and never draws it. The edge is --input in every size: --border is too faint for a control's edge. */
:where(input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input:not([type]), select, textarea) { font: inherit; font-size: var(--text-base); line-height: var(--leading-normal); color: var(--foreground); background: var(--background); border: 1px solid var(--input); border-radius: var(--radius-md); min-height: var(--control-md); padding: var(--space-2) var(--space-3); transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
:where(input, select, textarea):where(:not(:disabled)):hover { border-color: var(--subtle-foreground); }
:where(input, select, textarea)::placeholder { color: var(--subtle-foreground); opacity: 1; }
:where(input, select, textarea)[aria-invalid="true"] { border-color: var(--warning); }
:where(textarea) { display: block; width: 100%; resize: vertical; }
.input-sm, .ctx select, .sm-plan select, .cls-select, .jsort select, .sm-find { min-height: var(--control-sm); padding: var(--space-1) var(--space-2); font-size: var(--text-sm); border-radius: var(--radius-sm); }
.input-lg, .sp-lab input[type=text], .jsearch input, .lf input[type="search"].lf-q, .sp-ta input, .of-page .tr-lab input[type=email], .sp-text { min-height: var(--control-lg); padding: var(--space-2-5) var(--space-3-5); font-size: var(--text-md); }
.field { display: grid; gap: var(--space-1-5); font-size: var(--text-base); color: var(--heading-foreground); }
.field > input, .field > select, .field > textarea { width: 100%; }
.field .field-hint { font-size: var(--text-sm); color: var(--muted-foreground); }
/* read by a screen reader, drawn for no one */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 14px 0 6px; }
.chips .lbl { font-size: var(--text-sm); color: var(--subtle-foreground); margin-right: 2px; }
.chips .gap { width: 12px; }
/* The chip (UI.chip): a filter, a pick, a skill's name. One that can be pressed (a button or a link) answers a
   pointer; one that only names a thing (a span) stays still. On, by its class or by aria-pressed, is the site's one
   look for "chosen": the green edge, the tint, the weight. lg is a chip that is a screen's answer (40px, a finger's
   size); dead is one that would leave nothing. */
.chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--muted); color: var(--muted-foreground); font-size: var(--text-sm); line-height: var(--leading-normal); text-align: left; text-decoration: none; user-select: none; transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
:is(button, a).chip { cursor: pointer; }
:is(button, a).chip:where(:not(:disabled, .on, .dead, [aria-pressed="true"])):hover { border-color: var(--subtle-foreground); color: var(--foreground); text-decoration: none; }
.chip.on, .chip[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); background: var(--primary-tint); font-weight: var(--weight-medium); }
.chip.lg, .sp-quick .chip { min-height: var(--control-md); padding: var(--space-2) var(--space-3); font-size: var(--text-base); }
.chip.dead { color: var(--subtle-foreground); background: transparent; cursor: default; }
.chip:disabled { opacity: 0.5; cursor: not-allowed; }
.chip .n { color: var(--subtle-foreground); margin-left: 5px; font-family: var(--font-mono); font-weight: var(--weight-regular); }
.chip.on .n { color: var(--primary); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.choice { padding: 20px; color: inherit; display: block; }
.choice.rec { border-color: var(--primary); }
.choice .t { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--heading-foreground); margin-bottom: 6px; }
.choice .d { color: var(--muted-foreground); }
.choice .tag { display: inline-block; margin-top: 12px; font-size: var(--text-sm); color: var(--primary); }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 8px; }
.action { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; background: var(--card); color: inherit; display: block; }
.action.primary { border-color: var(--primary); }
.action.soon { opacity: 0.6; cursor: default; }
.action .t { font-weight: var(--weight-medium); color: var(--heading-foreground); display: block; margin-bottom: 2px; }
.action .d { font-size: var(--text-sm); color: var(--muted-foreground); }
.notice { border: 1px solid var(--warning); border-radius: var(--radius-md); padding: 10px 12px; font-size: var(--text-sm); margin: 10px 0; }
.acts { margin: 14px 0 4px; }

/* ---------- tooltips: an ⓘ opens on click, a bar or a mark explains itself on hover (owner's choices X1, X2) ---------- */
.tip { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; margin-left: 6px; border-radius: 50%; border: 1px solid var(--subtle-foreground); background: transparent; color: var(--subtle-foreground); font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1; vertical-align: 2px; }
.tip:hover, .tip[aria-expanded="true"] { color: var(--foreground); border-color: var(--foreground); }
/* the one tooltip look: the ⓘ's and a mark's box (app.js showTip), and a dot's name on the skill map (.sm-tip) */
.tipbox, .sm-tip { position: fixed; z-index: 20; max-width: 320px; padding: var(--space-2) var(--space-2-5); border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground); font-size: var(--text-sm); line-height: 1.45; box-shadow: var(--shadow-pop); }
.mark { color: var(--heading-foreground); margin-left: 5px; cursor: help; }

/* ---------- the role's filters: the level as a segmented control, everything else in a drawer (owner's choice R2) ---------- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
/* The segmented control: one of a few, all in view (a level, a view, yes or no). One rule for the site: a quiet
   tray, the chosen segment in the "chosen" green. lg (the open flow's yes and no) is a finger's size. */
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.seg button { border: 0; background: none; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); color: var(--muted-foreground); font-size: var(--text-sm); line-height: var(--leading-normal); white-space: nowrap; transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.seg button:where(:not(.on)):hover { color: var(--foreground); background: var(--muted); }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); font-weight: var(--weight-medium); }
.seg.lg button, .sp-seg button { min-height: var(--control-md); padding: var(--space-1-5) var(--space-3-5); font-size: var(--text-base); }
/* one height in a row of controls (the role's level, the sponsor chip, Filters; Explore's view toggle beside the find
   box): the small control height, the segmented control's tray and edge included */
.filters .seg button { min-height: calc(var(--control-sm) - 6px); padding-block: 0; }
.filters > .chip { min-height: var(--control-sm); }
.filters-btn.on { border-color: var(--primary); color: var(--primary); }
.filters-btn .n { font-family: var(--font-mono); margin-left: 6px; }
.drawer-back { position: fixed; inset: 0; z-index: 9; background: var(--scrim); }
.drawer { position: fixed; top: var(--topbar-height); right: 0; bottom: 0; width: 400px; z-index: 10; background: var(--card); border-left: 1px solid var(--border); padding: 20px 24px 28px; overflow-y: auto; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-panel); }
.drawer-h { display: flex; justify-content: space-between; align-items: center; }
.drawer-h h2 { margin: 0; }
.drawer-f { margin-top: 8px; }

/* ---------- the skills by area: panels, hairline rows, a bar for the share (owner's choices R3, X3) ---------- */
.listhead { display: flex; align-items: baseline; gap: 14px; margin-top: 24px; }
.listhead h2 { margin: 0; flex: 1; }
.listhead .link { font-size: var(--text-sm); color: var(--muted-foreground); }
.areas { margin-top: 8px; border-top: 1px solid var(--border); }
.areabox { border-bottom: 1px solid var(--border); }
.areabox > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 12px 0; }
.areabox > summary::-webkit-details-marker { display: none; }
.areabox > summary::before { content: "▸"; color: var(--subtle-foreground); width: 14px; flex: none; }
.areabox[open] > summary::before { content: "▾"; }
.areabox > summary .t { font-weight: var(--weight-medium); color: var(--heading-foreground); flex: 1; }
.areabox > summary .n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); white-space: nowrap; }
/* "How you work" counts its ways in a sentence, not a number: it wraps under the name at every width (2026-11-08; it
   ran past the summary's right edge on a desktop). The other rows keep their counts on one line */
.areabox.behaviours > summary { flex-wrap: wrap; }
.areabox.behaviours > summary .t { min-width: 0; }
.areabox.behaviours > summary .n { white-space: normal; min-width: 0; flex-basis: 100%; padding-left: var(--space-6); }
.srows { padding: 0 0 12px 24px; display: flex; flex-direction: column; }
.srow { display: grid; grid-template-columns: 1fr; gap: 2px 10px; align-items: center; padding: 7px 8px; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--foreground); text-align: left; font-size: var(--text-base); width: 100%; }
.srows > .srow:first-child, .tierlab + .srow { border-top: 0; }
.srow:hover { background: var(--muted); }
.srow .nm { color: var(--heading-foreground); }
.srow .m { display: block; font-size: var(--text-sm); color: var(--muted-foreground); }
.srow .bar { grid-column: 1 / -1; height: 3px; background: var(--muted); border-radius: 2px; overflow: hidden; }
.srow .bar i { display: block; height: 100%; background: var(--secondary); }
.srow.on { box-shadow: inset 0 0 0 1px var(--heading-foreground); border-radius: var(--radius-sm); border-top-color: transparent; }
.srow.on + .srow { border-top-color: transparent; }
.srow.have .nm { color: var(--primary); } .srow.have .bar i { background: var(--primary); }
.srow.gap .nm { color: var(--warning); } .srow.gap .bar i { background: var(--warning); }
/* the first-visit help box: shown once, closed for good (Inline Help Box; owner's choice X1) */
/* the legend: one component, rows left out when they do not apply (owner's decision 2026-10-24) */
.legend { display: grid; grid-template-columns: 40px 1fr; gap: 5px 10px; align-items: center; font-size: var(--text-sm); color: var(--muted-foreground); }
.legend .k { font-family: var(--font-mono); color: var(--heading-foreground); white-space: nowrap; }
.legend .b { display: inline-block; width: 26px; height: 3px; background: var(--secondary); vertical-align: middle; border-radius: 2px; }
/* on the resume and a gap: the skill map's dots (.sw.have, .sw.todo), in the legend and before a row's name */
.legend .k .sw, .srow .nm .sw { vertical-align: middle; position: relative; top: -1px; }
.srow .nm .sw { margin-right: 7px; }
/* on the role and fit screens a gap is amber (the row's name, its bar, the rail's count), so the gap dot is amber there
   too; the map keeps its blue */
.legend .k .sw.todo, .srow .nm .sw.todo { background: var(--warning); }
.fit-top { align-items: baseline; } .fit-top .eyebrow { margin: 0; }
/* the fit screen's heading is its eyebrow ("Your fit · {role}"), an h1 so the screen has one (2026-11-08): it looks as before */
h1.eyebrow { font-weight: var(--weight-regular); line-height: inherit; }

.lead .tip { vertical-align: 1px; }
.tierlab { display: block; margin: var(--space-3) 0 2px; }
.more { margin: 10px 0 2px; font-size: var(--text-sm); color: var(--muted-foreground); align-self: flex-start; }

/* ---------- Explore: fields as circles sized by open postings ---------- */
.bubbles { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 28px; }
.bubble { border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--card); border: 1px solid var(--border); color: var(--heading-foreground); padding: 12px; line-height: 1.2; font-size: var(--text-base); font-weight: var(--weight-medium); }
.bubble:hover { border-color: var(--input); }
.bubble .n { display: block; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); font-weight: var(--weight-regular); margin-top: 4px; }
.bubble.s1 { width: 108px; height: 108px; font-size: var(--text-sm); } .bubble.s2 { width: 132px; height: 132px; } .bubble.s3 { width: 160px; height: 160px; font-size: var(--text-md); } .bubble.s4 { width: 188px; height: 188px; font-size: var(--text-lg); }
.bubble.you { border-color: var(--primary); background: var(--primary-tint); }

/* the fields as cards (owner's choice E2): one size, sorted by open postings, example roles, one number, a bar */
.fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.fcard { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-3-5) var(--space-4) var(--space-3); color: inherit; }
button.fcard { font: inherit; text-align: left; cursor: pointer; }
.fcard .t { transition: color var(--duration-fast) var(--ease-standard); } a.fcard:hover .t, .lf .fcard:hover .t { color: var(--primary); }
.fcard.you { border-color: var(--primary); }
.fcard .t { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--heading-foreground); }
.fcard .m { font-size: var(--text-sm); color: var(--muted-foreground); min-height: 2.6em; }
.fcard .n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); }
.fcard .why { color: var(--primary); font-family: var(--font-sans); }

/* ---------- lists: one row pattern (title, meta line, count) ---------- */
.list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.list .r { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); color: inherit; text-align: left; background: transparent; border-left: 0; border-right: 0; width: 100%; }
.list :is(a, button, label).r:hover .t, .list .r.on .t { color: var(--primary); }
.list a.r:hover { text-decoration: none; }
.list .r .t { transition: color var(--duration-fast) var(--ease-standard); }
.list .r .t { font-size: var(--text-md); color: var(--heading-foreground); grid-column: 1; grid-row: 1; }
.list .r .m { font-size: var(--text-sm); color: var(--muted-foreground); grid-column: 1; grid-row: 2; }
.list .r .n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
input[type="search"] { width: 100%; max-width: 360px; margin: 8px 0; }

/* ---------- tabs: the lower layers of the role and fit screens share one area (Module Tabs; owner's choices R1, R6, F1) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); margin: 18px 0 4px; }   /* wraps, never scrolls */
.tabs button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted-foreground); padding: 8px 12px; font-size: var(--text-base); transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.tabs button:hover { color: var(--foreground); }
.tabs button.on { color: var(--heading-foreground); border-bottom-color: var(--primary); font-weight: var(--weight-medium); }
.tabs button .n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); margin-left: 6px; font-weight: var(--weight-regular); }
.listhead .paint { display: inline-flex; align-items: center; gap: 6px; }
.empbox { border-bottom: 1px solid var(--border); }
.empbox > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 11px 0; }
.empbox > summary::-webkit-details-marker { display: none; }
.empbox > summary .t { font-size: var(--text-md); color: var(--heading-foreground); grid-column: 1; grid-row: 1; }
.empbox > summary .t::before { content: "▸ "; color: var(--subtle-foreground); }
.empbox[open] > summary .t::before { content: "▾ "; }
.empbox > summary .m { font-size: var(--text-sm); color: var(--muted-foreground); grid-column: 1; grid-row: 2; }
.empbox > summary .n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
.empbox > .list { border-top: 0; padding-left: 18px; margin-bottom: 6px; }
/* a row has two densities: 12px, and 8px inside a panel or a box */
.list.dense .r, .empbox > .list .r, .aside .list .r { padding: var(--space-2) 0; } .empbox > .list .r:last-child { border-bottom: 0; }
.fitcols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.fitcols h3 { margin-top: 8px; } .fitcols h3 .n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); font-weight: var(--weight-regular); margin-left: 4px; }
.fitcols .srows { padding: 0; border-top: 1px solid var(--border); }
.fitcols .srows > .srow:first-child { border-top: 0; }
.srow.thin .nm { color: var(--muted-foreground); } .srow.thin .bar i { background: var(--muted-foreground); opacity: 0.5; }
.box-body { padding: 0 0 12px 18px; font-size: var(--text-sm); }
.key { font-size: var(--text-sm); color: var(--muted-foreground); margin: 10px 0 0; }

/* ---------- the side panel: skill card, posting card ---------- */
.card h2 { margin: 2px 0 4px; font-size: var(--text-2xl); letter-spacing: var(--tracking-tighter); line-height: var(--leading-tight); }
.card .what { font-size: var(--text-md); line-height: var(--leading-relaxed); margin: 4px 0 10px; }
.card h3 { margin-top: 18px; }
.card .tabs { margin-top: 16px; gap: 0; } .card .tabs button { padding: 7px 8px; font-size: var(--text-sm); white-space: nowrap; }
.card .card-body > h3:first-child { margin-top: 12px; }
.card .more { margin: 6px 0 0; }
.subs { display: grid; gap: 10px; margin: 8px 0; }
.sub { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: var(--text-sm); }
.sub .nm { font-weight: var(--weight-medium); color: var(--foreground); font-size: var(--text-base); }
.sub .ex { grid-column: 1 / -1; color: var(--muted-foreground); }
.sub .pct { font-family: var(--font-mono); color: var(--subtle-foreground); }
.sub.have .nm { color: var(--primary); } .sub.have .nm::before { content: "✓ "; }
.sub.miss .nm { color: var(--warning); }
.quote { border-left: 2px solid var(--border); padding: 2px 12px; margin: 8px 0; font-size: var(--text-sm); }
.quote .src { display: block; color: var(--muted-foreground); margin-top: 2px; }
.quote .src a { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
.ladder { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: var(--text-sm); margin-top: 8px; }
.ladder .lv { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--subtle-foreground); padding-top: 1px; }
.ladder .lv.here { color: var(--primary); }
details.disc { margin: 10px 0 0; }
details.disc > summary { cursor: pointer; font-size: var(--text-sm); color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; list-style: none; display: inline-block; }
details.disc > summary::-webkit-details-marker { display: none; }
details.disc > summary::before { content: "▸ "; color: var(--subtle-foreground); }
details.disc[open] > summary::before { content: "▾ "; }
details.disc > .disc-body { margin-top: 8px; font-size: var(--text-sm); line-height: 1.5; }
ul.plain { margin: 6px 0 0 18px; padding: 0; } ul.plain li { margin-bottom: 4px; font-size: var(--text-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.tag { font-size: var(--text-sm); padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--muted); color: var(--foreground); }
button.tag:hover { border-color: var(--input); }
.tag.good { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.tag.bad { border-color: var(--warning); background: var(--warning-tint); color: var(--warning); }
.tag.amber { border-color: var(--secondary); background: var(--secondary-tint); color: var(--secondary); }
.tag.thin { border-style: dashed; background: transparent; color: var(--muted-foreground); }
.evtabs { display: flex; gap: 4px; margin: 6px 0 4px; flex-wrap: wrap; }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.linkish { background: transparent; border: 0; padding: 0; color: var(--foreground); text-align: left; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkish.link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }   /* a button that reads as a link in a sentence ("choose a file") */
/* A link inside a sentence is told apart by more than colour (usability pass 2026-11-06; axe link-in-text-block):
   an underline. :where() keeps it weak, so a row, a card or a button styled as a link keeps its own look. */
:where(p, li, dd, label, figcaption) a:where(:not(.btn)) { text-decoration: underline; text-underline-offset: 3px; }
.aside .list .r .t { font-size: var(--text-base); }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 8px; }
.about-facts .fact { padding: 12px 14px; display: grid; gap: 2px; }
.about-facts .fact b { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--heading-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.about-facts .fact span { font-size: var(--text-sm); color: var(--muted-foreground); }
@media (max-width: 640px) { .about-facts { grid-template-columns: 1fr 1fr; } }
#about details.disc { margin: 4px 0 0; }
#about > p { max-width: 72ch; }   /* About is reading: the page keeps 880 px for the fact cards, the paragraphs a measure */
#about h3 { margin: 18px 0 6px; }

/* ---------- tell us about you: steps, options, the drop zone ---------- */
.steps { display: flex; gap: 6px; margin: 0 0 20px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--muted); }
.steps i.done { background: var(--primary); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two h2 { margin-top: 20px; }
/* About you's summary on a phone (2026-11-06): one column, and a long file name wraps instead of widening the page */
.two > * { min-width: 0; } .list .r .t { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .two { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.list .r a.n { color: var(--primary); font-family: var(--font-sans); }
/* the profile strip on Explore: what we know, and why each field is there */
.strip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; background: var(--card); font-size: var(--text-sm); color: var(--muted-foreground); margin: 14px 0 0; }
.strip b { color: var(--foreground); font-weight: var(--weight-medium); }
.strip .dotg { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-tint); border: 1px solid var(--primary); flex: none; }
.strip a { margin-left: auto; color: var(--primary); }
.explore-row { margin: 10px 0 0; }
.explore-row .views { margin-left: auto; }
.opts { display: grid; gap: 8px; margin: 16px 0; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.two { gap: 6px; } .opts.two .opt { padding: 8px 12px; font-size: var(--text-base); }
.opt small { display: block; font-size: var(--text-sm); color: var(--muted-foreground); font-weight: var(--weight-regular); margin-top: 1px; }
.opt.on small { color: var(--primary); opacity: 0.8; }
.opt { padding: 13px 16px; font-size: var(--text-md); text-align: left; color: var(--foreground); }
.opt.on { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); font-weight: var(--weight-medium); }
.between { justify-content: space-between; }
.drop { border: 1px dashed var(--input); border-radius: var(--radius-md); padding: 24px 20px; text-align: center; margin: 16px 0 10px; }
/* the processing state (app.js processing): the zone goes solid, its prompt fades, the steps list shows the one running
   with a turning ring and the ones done with a check */
.drop.busy { border-style: solid; border-color: var(--primary); }
.drop.busy > p:first-child { opacity: 0.35; }
.drop .proc { text-align: left; margin-top: 10px; }
.drop .proc ul { list-style: none; margin: 0; padding: 0; }
.drop .proc li { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--muted-foreground); font-size: var(--text-sm); }
.drop .proc li.now { color: var(--foreground); }
.drop .proc li.done { color: var(--primary); }
.drop .proc .pm { width: 16px; height: 16px; display: inline-grid; place-items: center; flex: none; font-size: var(--text-sm); }
.drop .proc p { margin: 8px 0 0; }
.drop.over { border-color: var(--primary); background: var(--primary-tint); }
.drop b { font-weight: var(--weight-medium); }
textarea { width: 100%; min-height: 110px; }

/* ---------- your fit: the band scale, what to evidence next ---------- */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 6px; }
.band i { height: 10px; border-radius: 3px; background: var(--muted); display: block; }
.band i.on { background: var(--primary); }
.band i.past { background: var(--primary); opacity: 0.45; }
.bandl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: var(--text-sm); color: var(--subtle-foreground); }
.bandl span.on { color: var(--primary); font-weight: var(--weight-medium); }
.verdict { font-size: var(--text-2xl); letter-spacing: var(--tracking-tighter); color: var(--heading-foreground); margin: 10px 0 4px; line-height: 1.2; }
ol.next { margin: 6px 0 0 18px; padding: 0; } ol.next li { margin-bottom: 10px; }
ol.next .why { color: var(--muted-foreground); font-size: var(--text-sm); display: block; }

/* ---------- more filters: a sheet under the chip row, same chips ---------- */
.sheet { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px 14px; margin: 8px 0 4px; background: var(--card); display: grid; gap: 12px; }
.fgroup .lbl { font-size: var(--text-sm); color: var(--subtle-foreground); }
.sheet input[type="search"] { margin: 4px 0 0; }

/* ---------- Explore as a skill map (web/skillmap.js): the fields on the map, their skills around them ---------- */
.main > .page.wide { max-width: none; }
.sm-stage { position: relative; height: calc(100vh - 290px); min-height: 520px; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); overflow: hidden; }
.sm-svg { position: absolute; inset: 0; display: block; }
.sm-e { fill: none; stroke: var(--foreground); stroke-opacity: 0.05; stroke-width: 0.6; }
.sm-e.sel { stroke: var(--heading-foreground); stroke-opacity: 0.5; stroke-width: 1; }
.sm-spoke { fill: none; stroke: var(--secondary); stroke-opacity: 0.22; stroke-width: 0.8; }
.sm-n { fill: var(--subtle-foreground); opacity: 0.45; cursor: pointer; stroke: transparent; stroke-width: 8px; }
.sm-n:hover { fill: var(--heading-foreground); opacity: 1 !important; }
/* dots by state (owner's decisions 2026-10-24): the 35 most asked solid but fainter than the fields; the rest a faint
   fill; green already on the resume; blue a gap the person's roles require */
.sm-n.top { fill: var(--muted-foreground); opacity: 0.6; }
.sm-n.quiet { opacity: 0.16; }
.sm-n.have { fill: var(--primary); opacity: 1; }
.sm-n.todo { fill: var(--secondary); opacity: 1; }
.sm-n.hl { fill: var(--secondary); }
.sm-n.near { fill: var(--foreground); opacity: 0.9; }
.sm-n.sel { fill: var(--heading-foreground); opacity: 1; stroke: var(--background); stroke-width: 2px; }
.sm-n.dim { opacity: 0.12; } .sm-n.lit { fill: var(--secondary); opacity: 1; }
.sm-name { font-size: var(--text-sm); fill: var(--foreground); paint-order: stroke; stroke: var(--background); stroke-width: 3px; pointer-events: none; }
.sm-name.sel { fill: var(--heading-foreground); font-weight: var(--weight-medium); }
.sm-name.quiet { fill: var(--muted-foreground); opacity: 0.7; }
.sm-name.have { fill: var(--primary); } .sm-name.todo { fill: var(--secondary); }
.sm-name.dim { opacity: 0.2; } .sm-name.lens { fill: var(--heading-foreground); }
.sm-area { font-size: var(--text-sm); fill: var(--subtle-foreground); letter-spacing: 0.08em; opacity: 0.55; pointer-events: none; }
.swkey { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.swkey span, .chart-x { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--subtle-foreground); }
.sw.top { background: var(--muted-foreground); opacity: 0.7; } .sw.quiet { opacity: 0.25; } .sw.have { background: var(--primary); } .sw.todo { background: var(--secondary); } .sw.you { background: var(--primary-tint); border: 1px solid var(--primary); }
/* the field page: roles left, the field's skills on lanes right */
.field-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.chart-stage { position: relative; height: calc(100vh - 250px); min-height: 460px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); overflow: hidden; }
.chart-stage .sm-n { opacity: 0.75; fill: var(--muted-foreground); } .chart-stage .sm-n.have { fill: var(--primary); opacity: 1; } .chart-stage .sm-n.todo { fill: var(--secondary); opacity: 1; } .chart-stage .sm-n.dim { opacity: 0.12; } .chart-stage .sm-n.lit { fill: var(--secondary); opacity: 1; } .chart-stage .sm-n.sel { fill: var(--heading-foreground); }
.ch-lane { fill: none; } .ch-lane.alt { fill: var(--card); }
.ch-grid { stroke: var(--border); stroke-dasharray: 3 3; }
.ch-tick { font-family: var(--font-mono); font-size: var(--text-sm); fill: var(--subtle-foreground); }
.chart-stage .ch-narrow .sm-name { font-size: 11px; }   /* a phone's field chart: twenty names do not fit at 13 px (web/skillmap.js drawChart, NARROW) */
.chart-x { margin-top: 8px; flex-wrap: wrap; } .chart-x .mark { cursor: help; }
@media (max-width: 1180px) { .field-split { grid-template-columns: 1fr; } .chart-stage { height: 520px; } }
.sm-field { position: absolute; z-index: 1; padding: 8px; }
.sm-stage .sm-field.unnamed { font-size: 0; } .sm-stage .sm-field.unnamed .n { display: none; }   /* a name that would cross another (thinNames, web/skillmap.js): the circle stays, its aria-label keeps the name */
.sm-field.lit { border-color: var(--secondary); }
.sm-field.you.lit { border-color: var(--primary); }
.sm-field.dim { opacity: 0.45; }
.explore-row .sm-find { width: 240px; max-width: 100%; margin: 0; }
.sm-tip { pointer-events: none; white-space: nowrap; max-width: none; }
/* the route planner (PLAN.md v12, SP2-C): from a field to a role, the shortest route drawn on the map, your skills ticked */
.sm-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.sm-plan label { display: inline-flex; align-items: center; gap: 6px; }
.sm-plan select { max-width: 260px; }
.sm-plan-out { flex-basis: 100%; color: var(--foreground); }
.sm-plan-out .num { font-family: var(--font-mono); color: var(--secondary); }
.sm-plan-out .you { color: var(--primary); }
.sm-plan-out .warn { color: var(--warning); }
.sm-route { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sm-n.route { fill: var(--primary); opacity: 1; stroke: var(--background); stroke-width: 2px; }
.sm-n.route.gap { fill: var(--background); stroke: var(--warning); stroke-width: 2.5px; }
.sm-n.arrive { fill: var(--secondary); opacity: 1; }
.sm-name.route { fill: var(--primary); font-weight: var(--weight-medium); }
.sm-name.arrive { fill: var(--secondary); }
.sm-card { margin-top: 2px; }
.sm-card .sm-h { margin: var(--space-3-5) 0 var(--space-1); }

/* ---------- first visit: the games on top as one carousel row, what jobs ask for below ---------- */
.page.start { display: grid; gap: 28px; }
.cover { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: var(--muted); border: 1px solid var(--border); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 1; }
.cover .ph-t { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.cover.big { max-width: 560px; margin-top: 16px; }

/* ---------- games: the shared shell (web/gameshell.js; PLAN.md v12, G2 G6 G7 G8). One header (game · role, round pips, ⓘ, Quit),
   one footer row (one primary, one quiet), one results template (the measure, one takeaway, one visual, one link, Why),
   one ranked list painted with the player's calls, one kbd. Green = you, blue = the postings' numbers, amber = attention. ---------- */
.main > .page.gm { max-width: 1040px; }
.gm-head { display: flex; align-items: center; gap: 18px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted-foreground); }
.gm-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.gm-title b { color: var(--heading-foreground); font-weight: var(--weight-medium); font-size: var(--text-base); }
.gm-sep { color: var(--subtle-foreground); }
.gm-role { color: var(--foreground); overflow: hidden; text-overflow: ellipsis; }
.gm-round { display: flex; align-items: center; gap: 10px; }
.gm-pips { display: inline-flex; gap: 4px; }
.gm-pips i { width: 18px; height: 6px; border-radius: 3px; background: var(--muted); }
.gm-pips i.done, .gm-pips i.ok { background: var(--primary); }
.gm-pips i.miss { background: var(--warning); }
.gm-pips i.now { background: transparent; box-shadow: inset 0 0 0 1px var(--heading-foreground); }
.gm-pipn { font-family: var(--font-mono); color: var(--subtle-foreground); white-space: nowrap; }
.gm-tools { display: flex; align-items: center; gap: 14px; }
.gm-tools .tip { margin: 0; }
.gm-quit { color: var(--muted-foreground); white-space: nowrap; } .gm-quit:hover { color: var(--foreground); }
.gm kbd { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted-foreground); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--muted); line-height: 1.5; font-weight: var(--weight-regular); }
.gm .btn.primary kbd { background: transparent; color: var(--primary-foreground); border-color: currentColor; }   /* the button's own pairing: 4.5:1 or more (it was 4.09:1 at opacity 0.8) */
.gm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.gm-foot { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.gm-foot .btn.quiet { padding-left: 8px; }
.gm-key { font-size: var(--text-sm); color: var(--subtle-foreground); margin: 8px 0 0; }
.gm-best { font-size: var(--text-sm); color: var(--muted-foreground); margin: 10px 0 0; }
.gm-best b { color: var(--primary); font-weight: var(--weight-medium); font-family: var(--font-mono); }
/* the results template */
.gm .gm-measure { font-size: var(--text-3xl); letter-spacing: var(--tracking-tighter); line-height: 1.15; color: var(--primary); font-weight: var(--weight-medium); margin: 2px 0 4px; }
.gm-measure:focus { outline: none; }
.gm-record { font-size: var(--text-md); color: var(--muted-foreground); margin: 0 0 12px; }
.gm-record b { color: var(--foreground); font-weight: var(--weight-medium); }
.gm-take { font-size: var(--text-md); color: var(--foreground); line-height: var(--leading-relaxed); margin: 10px 0; max-width: 680px; }
.gm-take b { font-family: var(--font-mono); font-weight: var(--weight-regular); color: var(--secondary); }
.gm-visual { margin: 14px 0 0; }
.gm-link { margin: 12px 0 0; } .gm-link a { color: var(--primary); }
.gm-why { margin-top: 12px; } .gm-why .disc-body { color: var(--muted-foreground); max-width: 680px; }
/* the answer button (.gopt, drawn as a tile): its key, its name, one line under it. Guess the role, Spot the real ask
   and Know the role's calls answer with it. Other controls keep their own build: a pick-many tile (.ktr-tile), a chip
   to place or drag (.wd-chip), a card with its share and bar (.sp-card), a sentence to drag onto a rung (.cl-line). */
.gopt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; text-align: left; padding: 12px 16px; color: var(--foreground); }
.gopt kbd { grid-row: 1 / span 2; }
.gopt .t { font-size: var(--text-md); color: var(--heading-foreground); font-weight: var(--weight-medium); }
.gopt .m { font-size: var(--text-sm); color: var(--muted-foreground); }
.gopt.on { opacity: 1; border-color: var(--heading-foreground); }
/* the verdict: right or not, once, under the answers (Spot the real ask's line, Guess the role's round). A checked
   sentence in Climb the ladder is the answer itself marked, in the same two looks. */
.gm .verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md); font-size: var(--text-base); line-height: 1.45; }
.gm .verdict .mk { font-family: var(--font-mono); font-size: var(--text-lg); line-height: 1; }
.gm .verdict.ok, .cl-line.right { border: 1px solid var(--primary); background: var(--primary-tint); }
.gm .verdict.miss, .cl-line.wrong { border: 1px dashed var(--warning); background: var(--warning-tint); }
.gm .verdict.ok .mk { color: var(--primary); } .gm .verdict.miss .mk { color: var(--warning); }
.gm .verdict b { color: var(--heading-foreground); font-weight: var(--weight-medium); }
/* a ranked list with the player's calls on it: the bar is the postings' share, the name says whose call it was */
.gm-ranked { border-top: 1px solid var(--border); }
.gm-rr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 7px 0 8px; border-bottom: 1px solid var(--border); font-size: var(--text-base); }
.gm-rr .nm { color: var(--foreground); } .gm-rr .nm .m { display: block; font-size: var(--text-sm); color: var(--muted-foreground); }
.gm-rr .v { font-family: var(--font-mono); color: var(--secondary); font-variant-numeric: tabular-nums; }
.gm-rr .bar { grid-column: 1 / -1; height: 3px; background: var(--muted); border-radius: 2px; overflow: hidden; } .gm-rr .bar i { display: block; height: 100%; background: var(--secondary); }
.gm-rr.you .nm { color: var(--primary); } .gm-rr.you .nm::before { content: "✓ "; }
.gm-rr.miss .nm { color: var(--warning); }
.gm-rr.dim { opacity: 0.6; }
/* play first: the start screen, the one coachmark, the shared picker (the Explore field cards as buttons) */
.gm-start .lead { max-width: 640px; }
.gm-coach { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border: 1px solid var(--primary); border-radius: var(--radius-md); background: var(--card); padding: 10px 12px; margin: 0 0 14px; font-size: var(--text-sm); color: var(--foreground); box-shadow: var(--shadow-pop); }
.gm-coach::after { content: ""; position: absolute; left: 16px; bottom: -6px; width: 10px; height: 10px; background: var(--card); border-right: 1px solid var(--primary); border-bottom: 1px solid var(--primary); transform: rotate(45deg); }
.gm-coach .link { white-space: nowrap; color: var(--primary); }
.gm-picker .fcards { margin-top: 16px; }
.gm-picker .fcard { text-align: left; font: inherit; cursor: pointer; }
.gm-picker .fcard.on { border-color: var(--primary); background: var(--primary-tint); }
.gm-picker .fcard.on .t { color: var(--primary); }
.gm-picker .list .r { cursor: pointer; }
.gm-picker .list .r .m { color: var(--primary); }
/* the Know-your-role card (G4): a small ledger beside the role screen's action row and on About you */
.gm-know { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); padding: 12px 14px; margin: 14px 0 4px; max-width: 420px; font-size: var(--text-sm); }
.gm-know .eyebrow { margin-bottom: 6px; }
.gm-first { margin: 10px 0 4px; font-size: var(--text-sm); }   /* the way into the game before any record (2026-11-06) */
.course-level { margin: 4px 0 12px; }
.gm-know-r { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted-foreground); }
.gm-know-r b { color: var(--foreground); font-weight: var(--weight-medium); text-align: right; }
.gm-know-bar { height: 4px; border-radius: 2px; background: var(--muted); overflow: hidden; margin: 4px 0 6px; }
.gm-know-bar i { display: block; height: 100%; background: var(--primary); }
.gm-know-p { margin: 8px 0 0; } .gm-know-p a { color: var(--primary); }
.acts-row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.acts-row .acts { margin-top: 14px; }
.srow .known { color: var(--primary); margin-left: 6px; font-size: var(--text-sm); }
.you-know .list .r .m { color: var(--muted-foreground); }

/* ---------- game: Know the role (web/games/know-the-role.js) ----------
   Tokens only. Green = the player's right picks and calls, blue = the postings' shares, amber = a miss. */
.ktr-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.ktr-tile { position: relative; min-height: 78px; padding: 10px 30px 10px 12px; color: var(--heading-foreground); text-align: left; font-size: var(--text-base); font-weight: var(--weight-medium); line-height: var(--leading-snug); }
.ktr-tile.on { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ktr-check { position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--input); }
.ktr-tile.on .ktr-check { background: var(--primary); border-color: var(--primary); }
.ktr-calls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 18px 0 14px; }
.ktr-clock { font-family: var(--font-mono); color: var(--warning); }
.ktr .gm-result .gm-ranked { max-width: 680px; }
.gm-rr.wrong .nm { color: var(--warning); text-decoration: line-through; }
.gm-rr.wrong .nm .m { display: inline-block; text-decoration: none; }

/* ---------- game: where's the demand (web/games/wheres-the-demand.js): rank the fields ---------- */
/* Green: the player's picks. Blue: the postings' counts. Amber: a card out of place. */
.wd-stale { color: var(--warning); }
.wd-prompt { text-align: center; margin: 22px 0 4px; font-size: var(--text-3xl); }
.wd-sub { text-align: center; color: var(--muted-foreground); font-size: var(--text-base); margin-bottom: 22px; }
.wd-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 860px; margin: 0 auto; }
.wd-pool { display: grid; gap: 8px; }
.wd-chip { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; text-align: left; padding: 12px 16px; color: var(--foreground); }
.wd-chip kbd { grid-row: 1 / span 2; }
.wd-chip .t { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--heading-foreground); }
.wd-chip .f { font-size: var(--text-sm); color: var(--muted-foreground); }
.wd-chip.gone { opacity: 0.35; border-style: dashed; cursor: default; }
.wd-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wd-slot { display: grid; grid-template-columns: 28px 1fr auto; gap: 0 12px; align-items: center; min-height: 58px; padding: 10px 14px; border-radius: var(--radius-md); border: 1px dashed var(--border); color: var(--foreground); }
.wd-slot .k { grid-row: 1 / span 2; color: var(--subtle-foreground); font-size: var(--text-sm); }
.wd-slot .t { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--heading-foreground); }
.wd-slot .t.muted { color: var(--subtle-foreground); font-weight: var(--weight-regular); }
.wd-slot .f { grid-column: 2; font-size: var(--text-sm); color: var(--muted-foreground); }
.wd-slot.on { border-style: solid; border-color: var(--primary); background: var(--primary-tint); cursor: grab; }
.wd-slot.on .t { color: var(--primary); }
.wd-slot .wd-back { grid-column: 3; grid-row: 1 / span 2; font-size: var(--text-lg); line-height: 1; padding: 4px 6px; }
.wd-slot.drag { opacity: 0.5; }
.wd-slot.over { border-color: var(--heading-foreground); }
.wd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wd-two h3 { margin: 0 0 4px; }
.wd-recap .r { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 6px 0; gap: 0 10px; color: inherit; }
.wd-recap .r .mk { grid-row: 1 / span 2; align-self: center; color: var(--subtle-foreground); font-size: var(--text-sm); }
.wd-recap .r .t { grid-column: 2; font-size: var(--text-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-recap .r .m { grid-column: 2; font-size: var(--text-sm); }
.wd-recap .r .n { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--secondary); font-family: var(--font-mono); }
.wd-page .gm-take .num { font-family: var(--font-mono); color: var(--secondary); }

/* ---------- game: climb the ladder (web/games/climb-the-ladder.js) ---------- */
/* Tokens only. Green = the player's right rung, blue = the postings' numbers, amber = a wrong rung. Skill areas are text. */
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cl-head .facts b { color: var(--secondary); font-weight: var(--weight-medium); }
.cl-board .gm-measure { font-size: var(--text-2xl); margin-top: 0; }   /* the checked screen's measure: the results' look, a step smaller beside the ladder */
.cl-board .facts { margin: 0 0 6px; }
.cl-board h3 { margin-top: 18px; }
.cl-board .gm-take { font-size: var(--text-base); }
.cl-num { color: var(--secondary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cl-score { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted-foreground); text-align: right; }
.cl-score b { display: block; font-size: var(--text-2xl); color: var(--heading-foreground); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tighter); }

/* the board: statements on the left, the ladder on the right */
.cl-board { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; margin-top: 18px; }
.cl-col-h { font-size: var(--text-sm); color: var(--subtle-foreground); margin: 0 0 8px; display: flex; justify-content: space-between; }
.cl-pile { display: grid; gap: 10px; align-content: start; border-radius: var(--radius-md); }
.cl-pile.over { outline: 1px dashed var(--primary); outline-offset: 6px; }
.cl-line { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; text-align: left; width: 100%; padding: 12px 14px; color: var(--foreground); font-size: var(--text-md); line-height: 1.45; cursor: grab; touch-action: none; user-select: none; }
button.cl-line:hover { border-color: var(--input); }   /* a sentence to move; a checked one (a div) keeps its verdict's edge */
.cl-line .grip { color: var(--subtle-foreground); font-family: var(--font-mono); font-size: var(--text-sm); padding-top: 2px; }
.cl-line.sel { border-color: var(--heading-foreground); box-shadow: 0 0 0 1px var(--heading-foreground); }
.cl-line.ghost { border-style: dashed; background: transparent; color: var(--subtle-foreground); cursor: default; }
.cl-line.dragging { opacity: 0.4; }
.cl-line.cl-drag { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0.95; box-shadow: var(--shadow-dialog); cursor: grabbing; }
.cl-line .new { color: var(--heading-foreground); font-weight: var(--weight-semibold); }

.cl-ladder { display: grid; gap: 8px; position: relative; padding-left: 0; }
.cl-rung { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: stretch; }
.cl-rung .lv { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: var(--text-sm); color: var(--subtle-foreground); padding: 13px 0 0; border-right: 2px solid var(--border); padding-right: 12px; text-align: right; }
.cl-rung .lv kbd { margin-right: 6px; text-transform: none; letter-spacing: 0; }
.cl-rung .lv .grade { display: block; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); color: var(--muted-foreground); margin-top: 2px; }
.cl-slot { min-height: 64px; border-radius: var(--radius-md); border: 1px dashed var(--input); display: flex; align-items: center; padding: 0 14px; color: var(--subtle-foreground); font-size: var(--text-sm); }
.cl-slot.over { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.cl-slot .cl-line { margin: -1px -15px; width: calc(100% + 30px); min-height: 64px; }
.cl-slot.filled { border: 0; padding: 0; }
.cl-slot.filled .cl-line { margin: 0; width: 100%; }
.cl-slot.filled.over { outline: 1px dashed var(--primary); outline-offset: 2px; }

/* checked */
.cl-line.right, .cl-line.wrong { cursor: default; }   /* the edge and fill: the verdict's two looks (the shell's rules) */
.cl-line.right .grip { color: var(--primary); }
.cl-line.wrong .grip { color: var(--warning); }
.cl-line .verdict-l { grid-column: 2; font-size: var(--text-sm); margin-top: 2px; }
.cl-line.right .verdict-l { color: var(--primary); }
.cl-line.wrong .verdict-l { color: var(--warning); }
.cl-rung.here-right .lv { border-right-color: var(--primary); color: var(--primary); }
.cl-rung.here-wrong .lv { border-right-color: var(--warning); color: var(--warning); }
.cl-drawer { border-left: 2px solid var(--border); padding: 4px 0 4px 12px; margin: 0 0 12px; }
.cl-drawer ul.plain { margin-top: 4px; }

.cl-verbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--text-md); }
.cl-verbs span { padding: 3px 9px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--muted); color: var(--heading-foreground); }
.cl-verbs i { font-style: normal; color: var(--subtle-foreground); }

/* end */
.cl-results .r { grid-template-columns: 1fr auto; }
.cl-results .pts { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted-foreground); grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; }
.cl-results .pts b { color: var(--heading-foreground); font-weight: var(--weight-medium); font-size: var(--text-md); }
.cl-results .ln { grid-column: 1; grid-row: 3; display: flex; gap: 14px; font-size: var(--text-sm); margin-top: 3px; flex-wrap: wrap; }
.cl-results .ln a, .cl-results .ln .linkish { color: var(--primary); font-size: var(--text-sm); text-decoration: none; }
.cl-results .ln .roles { color: var(--muted-foreground); }
.cl-results .ln .roles a { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.cl-results .cl-drawer { grid-column: 1; grid-row: 4; margin: 8px 0 2px; }
.cl-dots { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: 1px; }
.cl-dots i { width: 10px; height: 10px; border-radius: 2px; background: var(--muted); display: inline-block; }
.cl-dots i.d-r { background: var(--primary); } .cl-dots i.d-h { background: var(--primary); opacity: 0.45; } .cl-dots i.d-w { background: var(--warning); }

/* ---------- Skill path (web/games/skill-path.js): a row of four cards, a strip of hops, the map once at the end ---------- */
/* Green: the route, a ticked hop, a good hop. Blue: the target's shares and the arrival skills. Amber: not yet. */
.sp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 14px 0 10px; }
.sp-head h1 { margin: 0; }
.sp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sp-card { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px 16px 12px 16px; min-height: 150px; color: var(--foreground); }
.sp-card kbd { position: absolute; top: 12px; right: 12px; }
.sp-card .t { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--heading-foreground); padding-right: 30px; }
.sp-card .m { font-size: var(--text-sm); color: var(--muted-foreground); }
.sp-card .n { margin-top: 6px; font-family: var(--font-mono); font-size: var(--text-2xl); line-height: 1; color: var(--secondary); font-variant-numeric: tabular-nums; }
.sp-card .n.nr { font-size: var(--text-sm); color: var(--subtle-foreground); }
.sp-card .bar { height: 3px; border-radius: 2px; background: var(--muted); overflow: hidden; }
.sp-card .bar i { display: block; height: 100%; background: var(--secondary); }
.sp-card.end { border-color: var(--secondary); }
.sp-card .sp-end-tag { font-size: var(--text-sm); color: var(--secondary); }
.sp-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; }
.sp-strip .tag { display: inline-flex; gap: 6px; align-items: baseline; }
.sp-strip .sp-cur { outline: 2px solid var(--primary); outline-offset: 1px; }
.sp-tagn { font-family: var(--font-mono); color: var(--subtle-foreground); }
.sp-arrow { color: var(--subtle-foreground); }
.sp-blue, .list .r .n.sp-blue { color: var(--secondary); font-family: var(--font-mono); }
.sp-bluet { color: var(--secondary); font-weight: var(--weight-medium); }
.sp-green { color: var(--primary); font-weight: var(--weight-medium); }
.sp-amber { color: var(--warning); }
/* the route form */
.sp-start { max-width: 720px; }
.sp-start h2 { margin: 16px 0 2px; font-size: var(--text-base); color: var(--muted-foreground); }
.sp-start .chips { margin: 8px 0 4px; }
.sp-search { margin: 6px 0; max-width: 300px; }
.sp-brief { margin-top: 12px; font-size: var(--text-base); }
.sp-problem { max-width: 560px; }
.sp-zone-list .r { padding: 7px 0; } .sp-zone-list .r .t { font-size: var(--text-base); }
.sp-besth { margin: 16px 0 2px; }
.sp-best .r { padding: 7px 0; border-top: 0; } .sp-best .r .t { font-size: var(--text-base); }
.sp-best .r.sp-old { opacity: 0.55; }
/* the end: the map once, the route to tick, the shortest route, build next */
.sp-end .sp-strip { margin-bottom: 12px; }
.sp-cols.e { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.sp-board { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); overflow: hidden; }
.sp-svg { display: block; }
.sp-field { fill: var(--card); stroke: var(--border); stroke-width: 1; }
.sp-field.on { stroke: var(--input); }
.sp-flabel { font-size: var(--text-sm); fill: var(--subtle-foreground); font-weight: var(--weight-medium); }
.sp-flabel.on { fill: var(--heading-foreground); }
.sp-e { fill: none; stroke: var(--foreground); stroke-opacity: 0.06; stroke-width: 0.7; }
.sp-n { fill: var(--subtle-foreground); opacity: 0.5; }
.sp-gen { fill: none; stroke: var(--subtle-foreground); stroke-opacity: 0.6; stroke-dasharray: 2 2; }
.sp-route { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sp-short { fill: none; stroke: var(--heading-foreground); stroke-opacity: 0.7; stroke-width: 1.5; stroke-dasharray: 5 4; }
.sp-short-n { fill: var(--background); stroke: var(--heading-foreground); stroke-width: 1.5; }
.sp-you { fill: var(--primary); stroke: var(--background); stroke-width: 2; }
.sp-you.gap { fill: var(--background); stroke: var(--warning); stroke-width: 2.5; }
.sp-zone { fill: var(--secondary-tint); stroke: var(--secondary); stroke-width: 1.5; }
.sp-zone-dot { fill: var(--secondary); }
.sp-name { font-size: var(--text-sm); fill: var(--foreground); paint-order: stroke; stroke: var(--background); stroke-width: 4px; stroke-linejoin: round; }
.sp-name.you { fill: var(--primary); font-weight: var(--weight-medium); }
.sp-name.zone { fill: var(--secondary); }
.sp-name.short { fill: var(--heading-foreground); }
.sp-route.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw 1.1s ease-out forwards; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-route.draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } }
.sp-endside h3 { margin: 4px 0 6px; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sp-tickhelp { margin: 0 0 4px; }
.sp-rl .r { padding: 6px 0; } .sp-rl .r .t { font-size: var(--text-base); grid-row: 1; }
.sp-rl .r .n { grid-row: 1; }
.sp-rl label.r { grid-template-columns: auto 1fr auto; cursor: pointer; align-items: center; }
.sp-rl label.r input { margin: 0; accent-color: var(--primary); }
.sp-rl label.r .t { grid-column: 2; }
.sp-rl label.r .n { grid-column: 3; }
.sp-rl .r.sp-yes .t { color: var(--primary); }
.sp-rl a.r .t { color: var(--heading-foreground); } .sp-rl a.r:hover .t { color: var(--primary); }
.sp-build { border: 1px solid var(--warning); border-radius: var(--radius-md); padding: 12px 14px; margin-top: 14px; }
.sp-bt { font-size: var(--text-lg); color: var(--heading-foreground); font-weight: var(--weight-medium); margin-bottom: 2px; }
.sp-bt a { color: inherit; } .sp-bt a:hover { color: var(--primary); }

/* ---------- games: Guess the role (#/play/guess-the-role) ---------- */
/* green = you (right, chosen), blue = the postings' numbers, amber = wrong */
.gtr .num { color: var(--secondary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gtr .you { color: var(--primary); }

.gtr .gtr-board { display: grid; grid-template-columns: 1fr 200px; gap: 12px; }
.gtr .clues, .gtr .pts { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 16px 20px; }
.gtr .clues:focus { outline: none; }   /* focus targets for assistive tech, not controls */
.gtr .clues > p, .gtr .pts > p { margin: 0 0 8px; }
.gtr .cluelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gtr .cluelist li { display: grid; grid-template-columns: 28px 1fr; align-items: center; min-height: 44px; padding: 4px 12px; border-radius: var(--radius-md); background: var(--background); border: 1px solid var(--border); }
.gtr .cluelist .n { color: var(--subtle-foreground); }
.gtr .cluelist .nm { font-size: var(--text-lg); color: var(--foreground); }
.gtr .cluelist li.new { border-color: var(--heading-foreground); animation: gtr-in 240ms ease-out; }
.gtr .cluelist li.new .nm { color: var(--heading-foreground); font-weight: var(--weight-medium); }
.gtr .cluelist li.hid { background: transparent; border-style: dashed; }
.gtr .cluelist li.hid .nm { font-size: var(--text-sm); color: var(--subtle-foreground); }
@keyframes gtr-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gtr .cluelist li.new { animation: none; } }
.gtr .now-pts { font-size: 40px; line-height: 1; color: var(--primary); margin: 0 0 14px !important; }
.gtr .ladder-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--text-sm); }
.gtr .ladder-pts li { display: grid; grid-template-columns: 40px 1fr; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--muted-foreground); }
.gtr .ladder-pts li.gone { color: var(--subtle-foreground); text-decoration: line-through; opacity: 0.6; }
.gtr .ladder-pts li.now { background: var(--primary-tint); color: var(--primary); }
.gtr .ladder-pts .mono { color: inherit; }   /* the points take the row's colour, not .mono's grey */
.gtr .gtr-timer { margin: 12px 0 0; }
.gtr .q { font-size: var(--text-lg); color: var(--heading-foreground); margin: 20px 0 10px; }
.gtr .gtr-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gtr .gtr-choices.small4 { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.gtr .gtr-choices:not(.small4) .gopt.wrong { opacity: 0.5; border-style: dashed; border-color: var(--warning); }
.gtr .gtr-choices:not(.small4) .gopt.wrong .m { color: var(--warning); }
.gtr .small4 .gopt { padding: 9px 12px; opacity: 0.55; grid-template-columns: auto minmax(0, 1fr); }
.gtr .small4 .gopt .t { font-size: var(--text-base); }
.gtr .small4 .gopt .t, .gtr .small4 .gopt .m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtr .small4 .gopt.right { opacity: 1; border-color: var(--heading-foreground); }
.gtr .small4 .gopt.right.you { border-color: var(--primary); background: var(--primary-tint); }
.gtr .small4 .gopt.right.you .t, .gtr .small4 .gopt.right.you .m { color: var(--primary); }
.gtr .small4 .gopt.wrong { opacity: 1; border-color: var(--warning); border-style: dashed; }
.gtr .small4 .gopt.wrong .m { color: var(--warning); }
.gtr .gtr-foot { margin-top: 16px; gap: 14px; }

.gtr .gm-result { margin-top: 16px; }
.gtr .gm-result .eyebrow a { color: inherit; }
.gtr .gtr-give .bar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--muted); max-width: 480px; }
.gtr .gtr-give .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--secondary); }
.gtr .gtr-give .bar u { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--heading-foreground); }
.gtr .fact-head > :last-child { text-align: right; }
.gtr .fact-head { display: grid; grid-template-columns: 1fr minmax(172px, max-content) 52px; white-space: nowrap; gap: 10px; padding: 0 0 6px; border-bottom: 1px solid var(--border); }   /* the middle column grows for a long role name */
.gtr .factlist { list-style: none; margin: 0; padding: 0; }
.gtr .factlist li { display: grid; grid-template-columns: 22px 1fr 120px 42px 52px; gap: 10px; align-items: center; padding: 5px 0; line-height: 1.3; border-bottom: 1px solid var(--border); font-size: var(--text-base); }
.gtr .factlist .n { color: var(--subtle-foreground); font-size: var(--text-sm); }
.gtr .factlist .nm { color: var(--subtle-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtr .factlist li.seen .nm { color: var(--foreground); }
.gtr .factlist .ar { display: block; font-size: var(--text-sm); color: var(--subtle-foreground); }
.gtr .factlist .bar { position: relative; height: 6px; border-radius: 3px; background: var(--muted); }
.gtr .factlist .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--secondary); }
.gtr .factlist .bar u { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--muted-foreground); }
.gtr .factlist .v { color: var(--secondary); text-align: right; }
.gtr .factlist .avg { color: var(--subtle-foreground); text-align: right; }
.gtr .close { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.gtr .close li { padding: 7px 0; line-height: 1.4; border-bottom: 1px solid var(--border); display: grid; gap: 1px; }
.gtr .close .t { color: var(--heading-foreground); font-weight: var(--weight-medium); }
.gtr .close .m { font-size: var(--text-sm); color: var(--muted-foreground); }
.gtr .close .d { font-size: var(--text-sm); color: var(--muted-foreground); }
.gtr .close li.picked .m { color: var(--warning); }

.gtr .rounds { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: var(--text-base); }
.gtr .rounds th { text-align: left; font-weight: var(--weight-regular); font-size: var(--text-sm); color: var(--subtle-foreground); padding: 0 8px 6px 0; border-bottom: 1px solid var(--border); }
.gtr .rounds td { padding: 4px 8px 4px 0; line-height: 1.35; border-bottom: 1px solid var(--border); vertical-align: middle; }
.gtr .rounds .r { text-align: right; }
.gtr .rounds td a { color: var(--heading-foreground); }
.gtr .rounds td .m { display: block; color: var(--subtle-foreground); font-size: var(--text-sm); line-height: 1.3; }
.gtr .rounds .post { color: var(--muted-foreground); font-size: var(--text-sm); white-space: nowrap; }
.gtr .rounds .rn { color: var(--subtle-foreground); font-size: var(--text-sm); width: 28px; }
.gtr .rounds .rp { color: var(--primary); }
.gtr .rounds tr.miss .rp { color: var(--warning); }
.gtr .gtr-fail { max-width: 560px; margin: 0 auto; padding-top: 40px; }

/* ---------- games: spot the real ask (web/games/spot-the-real-ask.js): one line at a time ---------- */
/* Green: the player's own calls that were right. Blue: the postings' numbers. Amber: a call that went wrong. */
.sra .gm-body { max-width: 900px; }   /* a reading measure for the posting; the frame is every game's width */
.sra .count, .sra .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sra .count { color: var(--primary); }
.sra .num { color: var(--secondary); }
.sra .sra-q { margin: 4px 0 12px; }
.sra .sra-line { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 18px 24px; font-size: var(--text-lg); line-height: 1.7; color: var(--muted-foreground); }
.sra .sra-line p { margin: 0; }
.sra .sra-line mark.now { background: var(--card); color: var(--heading-foreground); font-weight: var(--weight-medium); border-bottom: 2px solid var(--heading-foreground); padding: 2px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sra .sra-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sra .sra-foot { margin-top: 4px; }
.sra .ch { border-radius: 4px; padding: 2px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sra .ch.found { background: var(--primary-tint); color: var(--primary); border-bottom: 2px solid var(--primary); }
.sra .ch.missed { color: var(--warning); border: 1.5px dashed var(--warning); padding: 1px 3px; }
.sra .ch.false { background: var(--warning-tint); color: var(--warning); text-decoration: line-through; text-decoration-thickness: 1px; }
.sra .ch.skipped { color: var(--subtle-foreground); text-decoration: line-through; text-decoration-color: var(--subtle-foreground); text-decoration-thickness: 1px; }
.sra .passage { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 18px 24px 16px; font-size: var(--text-md); line-height: 2.05; color: var(--foreground); }
.sra .passage .sec { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--subtle-foreground); line-height: 1.5; margin-bottom: 4px; }
.sra .passage ul { list-style: none; margin: 0; padding: 0; }
.sra .passage li { position: relative; padding-left: 16px; }
.sra .passage li::before { content: "–"; position: absolute; left: 0; color: var(--subtle-foreground); }
.sra .passage .gap { font-family: var(--font-mono); color: var(--subtle-foreground); line-height: 1.6; margin: 2px 0; }
.sra .passage p { margin: 0; }
.sra .legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted-foreground); margin-top: 12px; }
.sra .legend .sw { display: inline-block; width: 26px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.sra .sw.found { background: var(--primary-tint); border-bottom: 2px solid var(--primary); }
.sra .sw.missed { border: 1.5px dashed var(--warning); }
.sra .sw.false { background: var(--warning-tint); }
.sra .sw.skipped { border-bottom: 1px solid var(--subtle-foreground); }
.sra #sra-say h3 { margin: 18px 0 2px; }
.sra #sra-say .quote { margin: 10px 0 0; }
.sra .gm-result .eyebrow a { color: inherit; }
.sra .chips.fields { margin-top: 18px; }
.sra .n-blue { font-family: var(--font-mono); color: var(--secondary); }

/* ---------- Spring 2027 classes (classes.js): one card per class, two relevance columns ---------- */
/* ---------- the door (#/) and home (#/home), v19 B2: tokens only, no fixed colours ---------- */
.door { max-width: 520px; margin: 0 auto; }
.door h1 { font-size: var(--text-3xl); margin-bottom: 10px; }
.door .lead { margin-bottom: 10px; }
.door-form { display: grid; gap: 14px; margin-top: 22px; }
.door-slot { min-height: 240px; } .door-slot iframe { margin-top: 22px; }
.dlabel { display: grid; gap: 6px; font-size: var(--text-sm); color: var(--muted-foreground); }
.dlabel input, .dlabel select { width: 100%; max-width: none; margin: 0; }
.door-acts { display: flex; align-items: center; gap: 18px; margin: 4px 0 0; }
.door-skip { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; } .door-skip:hover { color: var(--foreground); }
.door-privacy { margin-top: 18px; }
.door-tally-acts { margin-top: 12px; }   /* the site's own Skip under the Tally slot, outside the iframe */
.verbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
/* home: the verbs on one row from 1280 px, in a page up to 1440 px (it was the 880 px column, two by two): five with Build skills (n5,
   2026-11-11) for an address that opens a roster, four for any other, three (n3) with the tree off; under 1280 px they wrap by two */
.main > .page.home-page { max-width: 1440px; }
@media (min-width: 1280px) { .home-page .verbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .home-page .verbs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-page .verbs.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.verb { padding: 20px; color: inherit; display: block; }
a.verb:hover { border-color: var(--primary); text-decoration: none; }
.verb .t { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--heading-foreground); margin-bottom: 6px; display: block; }
.verb .d { color: var(--muted-foreground); display: block; }
/* About you on home (app.js youInline, 2026-11-01): the questions inline under the cards, or the one-line summary */
.home-you { margin-top: 32px; max-width: 760px; } .home-you h2 { margin: 0 0 4px; } .home-you h3 { margin: 4px 0 0; }
.home-you .steps { margin: 12px 0 14px; } .home-you .yi-nav { margin-top: 12px; } .home-you .strip { margin-top: 8px; }
@media (max-width: 640px) { .verbs { grid-template-columns: 1fr; } .door { margin-top: 0; } }
.choices.one { grid-template-columns: 1fr; margin-top: 12px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
.role-search { display: flex; gap: 8px; max-width: 620px; } .role-search input { flex: 1; min-width: 0; }
.cls-filters { margin: 14px 0 4px; gap: 16px; }
.cls-filters input[type="search"] { margin: 0; max-width: 240px; }
.cls-select { max-width: 280px; }
/* the cards in as many columns of at least 540 px as the page holds (one under 1200 px or so; owner's feedback
   2026-11-01: a single column of short cards left most of a wide page empty) */
.cls-list { border-top: 1px solid var(--border); margin-top: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); column-gap: 36px; align-content: start; }
.cls-list > p { grid-column: 1 / -1; }
.cls-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.cls-card.on { background: var(--primary-tint); box-shadow: 0 0 0 10px var(--primary-tint); }
.cls-card .cls-open { font: inherit; display: block; width: 100%; }
.cls-card .cls-codes { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); margin-right: 6px; }
.cls-card .cls-title { font-size: var(--text-md); color: var(--heading-foreground); }
.cls-card .cls-open:hover .cls-title, .cls-card.on .cls-title { color: var(--primary); }
.cls-card .cls-main p { margin: 2px 0; }
.cls-rel { width: 220px; }
@media (max-width: 640px) { .cls-card { grid-template-columns: minmax(0, 1fr); } .cls-rel { width: auto; } }
.cls-rel .eyebrow { margin-bottom: 0; }
/* the "high" band tag: the primary button's pairing (filled), 4.5:1 or more in both themes and on a selected card, where
   the tint-on-tint of .tag.good read 3.93:1 */
.cls-rel > .tag.good { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.cls-rel > .small.muted { margin: 0 0 6px; }
.cls-why { margin-top: 6px; }
.cls-why > summary { font-size: var(--text-sm); color: var(--muted-foreground); cursor: pointer; }
.cls-why .tags { margin-top: 4px; }
.cls-gaps { margin: 6px 0 0; color: var(--primary); } .cls-gaps.muted { color: var(--muted-foreground); }
.gaps.classes li a.t { grid-template-columns: 1fr auto; color: var(--foreground); text-decoration: none; } .gaps.classes li a.t::before { content: none; } .gaps.classes li a.t:hover span:first-child { color: var(--primary); }
.gaps.classes li .ex { margin-left: 0; }
/* ---------- the picker's "Match to roles" chips and the resume row (v19 B3) ---------- */
.cls-roles { margin: 10px 0 0; align-items: center; } .cls-roles .cls-select { max-width: 240px; } .cls-roles .pick { min-width: 14rem; }
/* the collapsible facets under the subject row (owner feedback 2026-11-01): days, credits, eligibility, professor */
.cls-facets { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; align-items: flex-start; }
.cls-facet > summary { font-size: var(--text-sm); color: var(--muted-foreground); cursor: pointer; }
.cls-facet[open] { flex-basis: 100%; } .cls-facet .chips, .cls-facet .pick { margin-top: 6px; }
.cls-roles .chip .x { background: none; border: 0; padding: 0 0 0 6px; margin: 0; color: inherit; font: inherit; line-height: 1; cursor: pointer; }
.cls-resume { max-width: 620px; margin: 12px 0 4px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.cls-resume .drop { padding: 14px; margin: 8px 0; } .cls-resume textarea { min-height: 70px; } .cls-resume .row { margin-top: 8px; }

/* ---------- Find jobs (v19 B4): the search bar, the facet rail, the cards, the pager and the panel ---------- */
/* the full main width (it was 1040 px), the results in columns of at least 440 px; with the panel open the page makes
   room for it, as a wide page does */
.main > .page.jobs-page { max-width: none; }
.shell.with-aside .main > .page.jobs-page { max-width: none; padding-right: var(--aside-width); }
.jsearch { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto; gap: 10px; margin-top: 14px; }
.jsearch input { margin: 0; max-width: none; width: 100%; }
/* the quick filters under the search box: chips, close to the form they narrow; one that would leave nothing is plain */
.jquick { margin: 10px 0 0; }
.jobs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin-top: 16px; align-items: start; }
/* sticky, and never taller than the window: on a short screen the rail scrolls on its own, so its last groups (Visa
   sponsorship, Company, Work) are reachable before the list ends (2026-11-08; before, they were out of reach) */
.jrail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.jnote { margin: 10px 0 0; }
.facets { display: grid; gap: 0; align-content: start; }
.facets details { border-top: 1px solid var(--border); padding: 6px 0; }
.facets details:first-child { border-top: 0; }
.facets summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--heading-foreground); padding: 4px 2px; }
.facets summary::-webkit-details-marker { display: none; }
.facets summary::after { content: "+"; color: var(--subtle-foreground); font-family: var(--font-mono); }
.facets details[open] summary::after { content: "–"; }
.frow { display: flex; justify-content: space-between; align-items: baseline; width: 100%; gap: 8px; background: transparent; border: 0; padding: 4px 2px; font: inherit; font-size: var(--text-sm); color: var(--foreground); text-align: left; border-radius: var(--radius-sm); cursor: pointer; }
.frow:hover { background: var(--muted); }
.frow.on { color: var(--primary); font-weight: var(--weight-medium); }
.frow .n { font-family: var(--font-mono); color: var(--subtle-foreground); }
.frow.on .n { color: var(--primary); }
.frow.dead { color: var(--subtle-foreground); cursor: default; } .frow.dead:hover { background: transparent; }
.frow.more { color: var(--muted-foreground); }
/* the link to the filters: on a phone only, where the filters come after the postings */
.jfilters-link { display: none; }
.jhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.jhead .jcount { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.jnotes p { margin: 6px 0 0; }
.jsort { display: inline-flex; gap: 8px; align-items: center; font-size: var(--text-sm); color: var(--muted-foreground); white-space: nowrap; }
.jsort select { margin: 0; max-width: none; }
.jlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.jlist > .jempty { grid-column: 1 / -1; }
.jcard { padding: 14px 16px; cursor: pointer; }
.jcard.on { border-color: var(--primary); }
.jcard .jtop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.jcard .eyebrow { margin-bottom: 2px; }
.jcard .jt { margin: 0 0 4px; font-size: var(--text-md); font-weight: var(--weight-medium); }
.jcard .jt .linkish { color: var(--heading-foreground); font: inherit; cursor: pointer; }
.jcard .jt .linkish:hover { color: var(--primary); text-decoration: none; }
.jcard .lvl { white-space: nowrap; }
.jcard .facts { margin: 0 0 4px; }
.jwho { color: var(--primary); margin: 2px 0; }
.jfit { margin: 2px 0; }
.jtags { margin-top: 6px; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: var(--text-sm); color: var(--muted-foreground); }
.jempty { border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 16px; margin-top: 12px; }
.jempty p { margin: 0 0 4px; }
.jdetail .kind { margin: 12px 0 2px; }
.jdetail .jacts { margin: 12px 0 0; }
/* a posting's panel is a native <dialog> inside the aside: non-modal on a desktop, where it is the aside's content as
   before (none of the browser's own box); modal on a phone, in the top layer over the whole screen, where the aside is */
.jdlg { position: static; inset: auto; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.jdlg:modal { position: fixed; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: inherit; background: inherit; box-shadow: inherit; }
.jdlg::backdrop { background: var(--scrim); }
@media (max-width: 900px) {
  .jobs-grid { grid-template-columns: 1fr; gap: 16px; }
  .jrail { position: static; }
  .jsearch { grid-template-columns: 1fr; }
}

/* ---------- B5 launcher ---------- */
/* Explore careers, the launcher (owner's pick S5): the roles two thirds of the page, the résumé the right third, sticky;
   four field tiles per row from 1280 px, three from 900, two below; one column under 900 px. Tokens only. */
.main > .page.lf-page { max-width: none; }   /* the full main width (it was 1200 px); five tiles a row from 1680 px */
.lf-lead { max-width: 720px; }
.lf { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; margin-top: 20px; align-items: start; }
.lf-main { min-width: 0; }
.lf-side { position: sticky; top: calc(var(--topbar-height) + 16px); }
.lf-step { padding: 24px; }
.lf-step h2 { margin: 0 0 6px; } .lf-step h3 { margin: 24px 0 0; font-size: var(--text-md); }
.lf-step p { margin: 10px 0 0; line-height: var(--leading-relaxed); }
.lf-step .drop { margin-top: 14px; } .lf-step textarea { min-height: 90px; } .lf-step .btn { margin-top: 4px; }
.lf-step .list { margin-top: 6px; } .lf-step .list .r .t { font-size: var(--text-base); }
.lf-you { margin-top: 24px; } .lf-you a { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; } .lf-you a:hover { color: var(--foreground); }
.lf input[type="search"].lf-q { width: 100%; max-width: none; margin: 0; }
.lf-lab { margin: 16px 0 4px; font-size: var(--text-sm); color: var(--muted-foreground); }
.lf .fcards.lf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.lf .fcard .t { line-height: 1.3; }
.lf .fcard.on { border-color: var(--primary); background: var(--primary-tint); } .lf .fcard.on .t { color: var(--primary); }
.lf-field { margin-top: 10px; } .lf-field h2 { margin: 0 0 2px; }   /* under "← Back to fields", where the tiles were */
.lf .list { margin-top: 6px; }
@media (min-width: 900px) { .lf .fcards.lf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .lf .fcards.lf-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1680px) { .lf .fcards.lf-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lf { grid-template-columns: minmax(0, 1fr); gap: 28px; } .lf-side { position: static; } }

/* ---------- B5 networking ---------- */
/* Who to meet (owner's pick N6): the guide two thirds of the page, the prep card and the list the right third, sticky
   and scrolling inside itself when taller than the screen; one column under 900 px. Tokens only. */
.main > .page.nw-page { max-width: none; }   /* the full main width (owner's feedback 2026-11-01: no dead space at the right) */
/* the role and the type tabs span the page, so the five tabs sit on one line; below them who to look for (left) and
   the prep card (right, the wider column, sticky) */
.nw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; margin-top: 4px; align-items: start; }
.nw-main { min-width: 0; }
.nw-side { position: sticky; top: calc(var(--topbar-height) + 16px); max-height: calc(100vh - var(--topbar-height) - 32px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; align-content: start; }
.nw-role { margin-top: 14px; max-width: 420px; } .nw-role .pick { width: 100%; }
/* the tabs on one line from about 780 px of main width (the five labels, tight padding); below that they wrap, and the
   strip never scrolls sideways (owner's feedback 2026-11-01) */
.nw-head .tabs.nw-tabs { margin-top: 14px; flex-wrap: wrap; row-gap: 0; }
.nw-head .tabs.nw-tabs button { white-space: nowrap; flex: 0 0 auto; padding: 8px 10px; }
.nw-more { margin: 6px 0 0; } .nw-more a { color: var(--primary); }
.nw-you { max-width: 760px; margin-top: 12px; }   /* the About you gate (AtlasUI.youInline draws into it) */
.nw-sec { margin-top: 20px; } .nw-sec h2 { margin: 0 0 6px; } .nw-sec p { margin-bottom: 6px; }
.nw ul.plain.nw-lv { margin-top: 2px; } .nw ul.plain.nw-lv li { margin-bottom: 2px; }
.nw .list.nw-emps .r { padding: 6px 0; } .nw .list.nw-emps .r .t { font-size: var(--text-base); }
.nw .list.nw-emps a.r .t { color: var(--primary); }   /* a professor's name: the link to the card */
/* a professor's row: the count line ("teaches 5 of the 12 skills…") goes under the name and wraps, so the row never
   runs wider than a phone (usability pass 2026-11-06; .list .r .n keeps nowrap elsewhere) */
.nw .list.nw-emps a.r { grid-template-columns: minmax(0, 1fr); }
.nw .list.nw-emps a.r .n { grid-column: 1; grid-row: 2; white-space: normal; align-self: start; }
.nw .list.nw-emps a.r .m { grid-row: 3; }
.pcard .nw-prof { margin: 8px 0 0; } .pcard .nw-prof a { color: var(--primary); }
.nw-outs { list-style: none; margin: 4px 0 0; padding: 0; }
.nw-outs li { padding: 6px 0; border-top: 1px solid var(--border); }
.nw-outs li a { color: var(--primary); }
.nw .fit-wait { margin-top: 24px; }
.pcard { padding: 12px 16px 14px; }
.pcard .eyebrow { margin-bottom: 2px; }
.pcard h2 { margin: 0 0 6px; font-size: var(--text-lg); }
.pcard h3 { margin: 10px 0 3px; }
.pcard .dlabel { margin-top: 4px; } .pcard .nw-target .pick { width: 100%; }
.pcard .nw-ap { margin-top: 6px; padding: 8px 12px; background: var(--background); border-radius: var(--radius-sm); }
.pcard .nw-ap p { margin: 0 0 6px; } .pcard .nw-ap p.nw-k { margin: 8px 0 2px; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--heading-foreground); }
.pcard .nw-ap p.nw-k:first-child { margin-top: 0; } .pcard .nw-ap a { color: var(--primary); }
.pcard ol.qs { margin: 2px 0 0; padding-left: 20px; } .pcard ol.qs li { margin: 3px 0; }
.pcard p.small { margin: 0; }
.pcard .acts-row { margin: 8px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .nw { grid-template-columns: minmax(0, 1fr); gap: 24px; } .nw-side { position: static; max-height: none; overflow: visible; } }
/* the apprentice map's entry (the build plan's B2): the slot line on the launcher, the sign-in, the map as plain text */
/* the self-serve tree form on #/map (step 4) */
.tr-form { max-width: 560px; } .tr-form h2 { margin-top: 20px; }
.tr-lab { display: block; margin: 14px 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.tr-lab select, .tr-lab textarea, .tr-lab input[type=email] { display: block; width: 100%; margin-top: 6px; }
.tr-lab textarea { min-height: 96px; resize: vertical; }
/* the open tree (2026-11-11): the two projects and the booking card under the tree */
.op-prev, .op-book { margin: 32px 0 0; max-width: 880px; }
.op-prev h2, .op-book h2 { margin: 0 0 6px; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.op-card { padding: 14px 16px; }
.op-card h3 { margin: 0 0 6px; font-size: var(--text-md); } .op-card p { margin: 0 0 6px; } .op-card p:last-child { margin-bottom: 0; }
a.op-quest { display: block; color: inherit; text-decoration: none; } a.op-quest:hover { border-color: var(--primary); } a.op-quest h3 { color: var(--primary); }
.op-book { padding: 18px 20px; }
.op-book p { margin: 0 0 12px; } .op-book p:last-child { margin-bottom: 0; }
@media print { .op-prev, .op-book { display: none; } }
.tr-also { border: 0; padding: 0; margin: 10px 0 0; } .tr-also legend { font-size: var(--text-sm); color: var(--muted-foreground); padding: 0; margin-bottom: 4px; }
.tr-also label { display: block; padding: 2px 0; }
.tr-out { min-height: 1.4em; } .map-self { margin-top: 4px; } .map-self a { color: var(--primary); }
/* the heart (step 5, 2026-11-05): beside a role's row (outside its link) and beside the open role's title, with a word */
.list .rw { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.list .rw .r { flex: 1; border-bottom: 0; min-width: 0; }
.heart { background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--muted-foreground); font-size: var(--text-md); line-height: 1; padding: 6px 8px; cursor: pointer; white-space: nowrap; }
.heart:hover, .heart:focus-visible { color: var(--primary); border-color: var(--border); }
.heart.on, .heart.on:hover { color: var(--primary); }
.heart .hi { font-size: 1.15em; vertical-align: -1px; }
.heart-save { font-size: var(--text-sm); border-color: var(--border); min-height: var(--control-sm); padding: var(--space-1) var(--space-3); }
.role-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .role-head h1 { margin-right: auto; }
.heart-note { margin: -6px 0 10px; } .heart-note a { color: var(--primary); }
.saved-strip { margin: 0 0 12px; } .saved-strip .hi { color: var(--primary); } .saved-strip a { color: var(--primary); }
.tree-cta { margin: 20px 0 6px; padding: 14px 16px; }
.tree-cta b { display: block; margin-bottom: 4px; } .tree-cta p { margin: 0 0 10px; }
/* the feedback box (step 6, 2026-11-05): a small sheet over the page, from the link or the prompt */
.fb-box::backdrop { background: var(--scrim, hsl(0 0% 0% / 0.4)); }
.fb-box { position: fixed; inset: auto 20px 20px auto; margin: 0; max-height: calc(100dvh - 40px); overflow-y: auto; color: var(--foreground); z-index: var(--z-dialog); width: min(400px, calc(100vw - 40px)); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-5) var(--space-4); box-shadow: var(--shadow-dialog); display: grid; gap: 10px; }
.fb-box h2 { margin: 0; font-size: var(--text-lg); } .fb-box .fb-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fb-box textarea { width: 100%; min-height: 96px; resize: vertical; } .fb-box input[type=email] { width: 100%; }
.fb-box .fb-lab { display: grid; gap: 4px; font-size: var(--text-sm); color: var(--muted-foreground); }
.fb-box .fb-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fb-box .fb-out { min-height: 1.3em; margin: 0; }
.foot #foot-feedback { margin-left: 14px; }
/* the guide (the usability pass of 2026-11-06; web/guide.js): a dim with a hole over the target and the card beside it;
   on a phone (640 px and under) no dim, a bottom sheet and an outline on the target. Tokens only: the dim is the canvas
   at 62%, so it darkens in dark mode and fades in light mode. Over the pick lists (30) and the tooltip (20). */
.foot #foot-guide { margin-left: 14px; }
.guide-hole { position: fixed; z-index: 40; pointer-events: none; border-radius: var(--radius-md); box-shadow: 0 0 0 9999px var(--scrim); outline: 2px solid var(--ring); outline-offset: 2px; transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease; }
/* the card is a native <dialog> shown non-modal: the browser's own inset and margin go, so it opens inside the window */
.guide-card { position: fixed; inset: var(--space-4) auto auto var(--space-4); margin: 0; z-index: 41; width: min(340px, calc(100vw - 32px)); display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-4); background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); }
.guide-card:focus { outline: none; } .guide-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.guide-card .guide-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.guide-card .eyebrow { margin: 0; }
.guide-card h2 { margin: 0; font-size: var(--text-lg); line-height: var(--leading-snug); color: var(--heading-foreground); }
.guide-card p.guide-b { margin: 0; font-size: var(--text-base); line-height: var(--leading-normal); color: var(--foreground); }
.guide-f { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.guide-f .guide-nav { display: flex; gap: var(--space-2); align-items: center; }
.guide-f .linkish { color: var(--muted-foreground); font-size: var(--text-sm); }
.guide-none { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.guide-sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 45vh; overflow-y: auto; transform: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; padding: var(--space-4) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px color-mix(in oklch, var(--neutral-950) 22%, transparent); }
body.guide-room { padding-bottom: 50vh; }
.guide-ring { outline: 2px solid var(--ring) !important; outline-offset: 3px; border-radius: var(--radius-md); }
@media (prefers-reduced-motion: reduce) { .guide-hole { transition: none; } }
.si { display: flex; gap: 8px; margin-top: 16px; }
.si input { flex: 1; min-width: 0; max-width: none; margin: 0; }
.si-no { margin-top: 12px; color: var(--warning); }
.si-out .wait { margin-top: 14px; } .si-out .wait p { margin: 4px 0 0; }
.si-note { margin-top: 18px; } .si-note a { color: var(--primary); }
.si input.si-code { flex: 0 0 140px; font-family: var(--font-mono); font-size: var(--text-lg); letter-spacing: 0.2em; text-align: center; }
.si-again { margin-top: 10px; font-size: var(--text-sm); } .si-again button { margin-right: 12px; }
.si-gate { padding: 14px 16px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.si-gate b { display: block; margin-bottom: 4px; } .si-gate p { margin: 0 0 10px; }
#verbs .who { margin-left: auto; color: var(--muted-foreground); font-size: var(--text-sm); white-space: nowrap; }
#verbs .who button { margin-left: 8px; }
.map-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-head h1 { margin: 0; }
.map-head .map-lead { margin: 0; font-size: var(--text-md); color: var(--muted-foreground); }
.map-top { margin: 0; white-space: nowrap; font-size: var(--text-sm); display: flex; align-items: center; gap: 16px; } .map-top a { color: var(--primary); }
/* the page nav: Quests · Skill tree under the title, the way out and Print at its right end */
.mapnav { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.mapnav > a { padding: 10px 0; text-decoration: none; color: var(--muted-foreground); font-size: var(--text-md); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mapnav > a:hover { color: var(--foreground); }
.mapnav > a.on { color: var(--heading-foreground); border-bottom-color: var(--primary); font-weight: var(--weight-medium); }
.mapnav .sp { flex: 1; }

/* ---------- the apprentice map (web/map.js and app.js drawMap): #/map/quests and #/map/tree ----------
   Tokens only, light and dark; at phone width the pages stack, the path wraps and the tree scrolls sideways. Green = you (shows, shipped, chosen), blue = the postings and the owner's
   hand (the posting's mark, the "asked together with" lines, a changed mission), amber = attention (evidence better).
   The four skill looks read without a legend: a filled disc (shows), a dotted ring (shows in other words), a half disc
   (must evidence better), an empty ring (must build); the fifth (P1) is the filled disc with an outer ring and a check.
   No arrowhead anywhere; no line at rest on the tree. */
.main > .page.wide.map-page { max-width: 1240px; }
.shell.with-aside .main > .page.wide.map-page { max-width: none; }
.map-page .map-lead { margin: 2px 0 0; }
.map-only { margin-top: 28px; } .map-only .link { color: var(--primary); }
.st-shows { --node-fill: var(--primary); --node-stroke: var(--primary); --node-text: var(--primary); }
.st-other { --node-fill: var(--primary-tint); --node-stroke: var(--primary); --node-text: var(--primary); --node-dash: 2 2; }
.st-half { --node-fill: var(--warning-tint); --node-stroke: var(--warning); --node-text: var(--warning); }
.st-build { --node-fill: transparent; --node-stroke: var(--input); --node-text: var(--muted-foreground); }
.st-built { --node-fill: var(--primary); --node-stroke: var(--primary); --node-text: var(--primary); }
.sdot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--node-stroke, var(--border)); background: var(--node-fill, transparent); vertical-align: -2px; margin-right: 6px; box-sizing: border-box; }
.st-other .sdot, .sdot.st-other { border-style: dotted; }
.st-half .sdot, .sdot.st-half { background: linear-gradient(90deg, var(--warning) 50%, transparent 50%); }
.st-built .sdot, .sdot.st-built { outline: 1.5px solid var(--primary); outline-offset: 2px; margin-left: 3px; margin-right: 9px; }
.nd { display: inline-block; flex: none; width: var(--d, 13px); height: var(--d, 13px); border-radius: 50%; box-sizing: border-box; border: 2px solid var(--node-stroke, var(--border)); background: var(--node-fill, transparent); }
.st-other .nd { border-style: dotted; }
.st-half .nd { background: linear-gradient(90deg, var(--warning) 50%, var(--warning-tint) 50%); }
.st-built .nd { outline: 1.5px solid var(--primary); outline-offset: 2px; }
.mk-p { fill: var(--secondary); flex: none; }
.mk-s { fill: none; stroke: var(--muted-foreground); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* the legend: one thin bar, one line, never a box beside the map; How you work at its right end */
.lgwrap { position: relative; }
.legend-bar { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 14px; align-items: center; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); font-size: var(--text-sm); color: var(--muted-foreground); margin: 0; overflow-x: auto; }
.legend-bar > span { display: inline-flex; align-items: center; gap: 4px; }
.legend-bar > .sp { flex: 1; }
.legend-bar .sdot { margin-right: 2px; }
.legend-bar .st-built .sdot { margin-right: 5px; }
.legend-bar .lb-how { color: var(--primary); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; }
.how-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(380px, 100%); background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-pop); }
.how-pop h3 { margin: 0 0 2px; }
.how-pop > p { margin: 0 0 8px; font-size: var(--text-sm); color: var(--subtle-foreground); }
.how-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.how-pop li { display: flex; align-items: flex-start; gap: 4px; font-size: var(--text-base); }
.how-pop li .sdot { margin-top: 5px; }
.how-pop li .linkish { color: var(--heading-foreground); }
.how-pop li small { display: block; font-size: var(--text-sm); color: var(--subtle-foreground); }
.how-pop li small a { color: var(--primary); }
/* Tree · List */
.map-view { margin: 18px 0 14px; }

/* the list (the read): the band in words, what you bring under the line that showed it, the gaps with their quests */
.rd .rd-band { margin: 0; font-size: var(--text-2xl); letter-spacing: var(--tracking-tighter); line-height: var(--leading-tight); color: var(--foreground); }
.rd .rd-band b { color: var(--primary); font-weight: var(--weight-medium); }
.rd-sub { margin: 6px 0 0; }
.rd h2 { margin: 24px 0 6px; font-size: var(--text-md); }
.rd-hint { margin: 0 0 6px; }
.rd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.rd-cols.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.rd-list { list-style: none; margin: 0; padding: 0; }
.rd-list > li { padding: 10px 0; border-top: 1px solid var(--border); font-size: var(--text-base); }
.rd-line { display: block; margin: 0 0 6px; padding-left: 10px; border-left: 2px solid var(--primary); color: var(--muted-foreground); font-size: var(--text-sm); line-height: 1.5; }
.rd-line::before, .rd-line::after { content: none; }
.rd-skills { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rd-list .linkish { color: var(--heading-foreground); display: inline-flex; align-items: baseline; }
.rd-gaps small { display: block; margin: 2px 0 0 18px; font-size: var(--text-sm); color: var(--subtle-foreground); }
.rd-gaps small a { color: var(--primary); }

/* the quest states: open (an empty ring), started (a green ring), shipped (filled green), skipped (struck, dim) */

/* the Quests page: the now card, which opens in place */
.q-note { margin: 0 0 12px; font-size: var(--text-base); color: var(--muted-foreground); }
.q-note .link, .q-actions .link, .q-shipform .link { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; font-size: var(--text-base); }
.q-note .link:hover, .q-actions .link:hover { color: var(--foreground); }
.q-now { padding: 24px 28px; }
.q-now.q-started { border-color: var(--primary); }
.q-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.q-top .eyebrow { margin: 0; }
.q-now h2 { margin: 0; font-size: var(--text-3xl); letter-spacing: var(--tracking-tighter); line-height: 1.2; max-width: 30ch; color: var(--heading-foreground); }
.q-ship { margin: 10px 0 0; font-size: var(--text-md); max-width: 62ch; }
.q-ship b { margin-right: 8px; }
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.q-chips .chip { color: var(--foreground); background: var(--background); }
.q-live { margin: 14px 0 0; font-size: var(--text-md); }
.q-live a { color: var(--primary); overflow-wrap: anywhere; }
.q-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.q-err { color: var(--warning); margin: 8px 0 0; }
.q-open:not(.q-now) { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 16px; max-width: 760px; }
.q-full { margin: 0; font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--foreground); }
.q-sect h3 { margin: 0 0 8px; }
.q-sect ul.slots, .q-tools { margin: 0; padding-left: 18px; font-size: var(--text-base); line-height: var(--leading-relaxed); }
.q-sect ul.slots b, .q-tools b { font-weight: var(--weight-medium); }
.q-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.q-checks label { display: flex; gap: 12px; align-items: flex-start; padding: 6px 8px; border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-md); }
.q-checks label:hover { background: var(--muted); }
.q-checks input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.q-checks .done span { color: var(--subtle-foreground); text-decoration: line-through; }
.q-line { border-left: 3px solid var(--primary); padding: 10px 14px; background: var(--background); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.q-line .k { margin: 0; font-size: var(--text-sm); color: var(--subtle-foreground); }
.q-line q { display: block; margin: 4px 0; font-size: var(--text-md); color: var(--heading-foreground); }
.q-try textarea { display: block; width: 100%; min-height: 76px; margin: 8px 0 6px; line-height: var(--leading-relaxed); resize: vertical; }
.q-try p { margin: 0; }
.story-read { margin: 0; min-height: 1.4em; font-size: var(--text-base); line-height: var(--leading-relaxed); display: flex; align-items: flex-start; gap: 6px; }
.story-read .sdot { margin-top: 7px; flex: none; }
.q-sect pre.prompt { margin: 0; white-space: pre-wrap; font-family: var(--font-mono); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--muted-foreground); background: var(--muted); border-radius: var(--radius-md); padding: 12px 14px; max-height: 220px; overflow: auto; }
.q-copy { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.q-why { border-top: 1px solid var(--border); padding-top: 12px; }
.q-why summary { cursor: pointer; color: var(--muted-foreground); font-size: var(--text-base); }
.q-why summary:hover { color: var(--foreground); }
.q-why dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; margin: 12px 0 0; font-size: var(--text-base); }
.q-why dt { color: var(--subtle-foreground); font-size: var(--text-sm); padding-top: 1px; }
.q-why dd { margin: 0; line-height: var(--leading-relaxed); }
.q-why q { display: block; margin-top: 2px; color: var(--muted-foreground); font-size: var(--text-sm); }
.q-why a { color: var(--primary); }
.q-why ul.src { margin: 0; padding-left: 18px; font-size: var(--text-sm); }
.q-class { display: block; } .q-class code { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted-foreground); }
.q-shipform { margin-top: 20px; padding: 16px; border-radius: var(--radius-md); background: var(--primary-tint); display: grid; gap: 10px; }
.q-shipform label { font-size: var(--text-base); color: var(--heading-foreground); font-weight: var(--weight-medium); }
.q-shipform .r { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.q-shipform input { flex: 1; min-width: 220px; }
.q-empty { border: 1px dashed var(--input); border-radius: var(--radius-lg); padding: 32px 28px; max-width: 720px; display: grid; gap: 10px; }
.q-empty p { margin: 0; font-size: var(--text-md); color: var(--muted-foreground); }
.q-empty a { color: var(--primary); }

/* the slim path: one line of numbered dots per level, and up next beside it */
.q-below { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; margin-top: 32px; }
.q-path { display: grid; gap: 2px; }
.q-path .lvl { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 16px; padding: 8px 0; }
.q-path .lvl-name { display: grid; gap: 1px; }
.q-path .lvl-name .nm { font-weight: var(--weight-medium); color: var(--heading-foreground); font-size: var(--text-md); line-height: 1.3; }
.q-path .lvl-name i { font-style: normal; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--subtle-foreground); margin-right: 6px; }
.q-path .line { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 4px; }
.q-path .line::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: var(--border); }
.q-path .line.reach::before { background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); }
.q-path .line.few { justify-content: flex-start; gap: 64px; }
.q-path .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; flex: none; border: 2px solid var(--input); background: var(--background); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted-foreground); display: grid; place-items: center; padding: 0; cursor: pointer; }
.q-path .dot:hover { border-color: var(--foreground); color: var(--foreground); }
.q-path .dot.story { border-style: dashed; }
.q-path .dot.q-started { border-color: var(--primary); border-style: solid; color: var(--primary); }
.q-path .dot.q-shipped { background: var(--primary); border-color: var(--primary); border-style: solid; color: var(--primary-foreground); }
.q-path .dot.q-skipped { opacity: 0.45; text-decoration: line-through; }
.q-path .dot.cur { width: 36px; height: 36px; box-shadow: 0 0 0 4px var(--background), 0 0 0 6px var(--primary); font-size: var(--text-base); }
.q-next h3 { margin: 0 0 8px; }
.q-next ul { list-style: none; margin: 0; padding: 0; }
.q-next li button { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--border); padding: 12px 0; font-size: var(--text-md); color: var(--foreground); }
.q-next li button:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .q-now { padding: 18px 16px; }
  .q-now h2 { font-size: var(--text-2xl); }
  .q-below { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .q-path .lvl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .q-path .line.few { gap: 32px; }
  .q-why dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .q-why dd { margin-bottom: 8px; }
  .rd-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legend-bar { flex-wrap: wrap; white-space: normal; gap: 6px 14px; }
  .mapnav { gap: 18px; }
  .mapnav .map-top { width: 100%; padding-bottom: 8px; }
  .how-pop { width: 100%; }
}

/* T4, the tree: an svg at a fixed size, so the names stay 14 px when the side panel opens */
.t4-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--canvas); }
.t4-host { width: max-content; margin: 0 auto; padding: 8px 4px; }
.t4 { display: block; font-family: var(--font-sans); overflow: visible; }
.t4 .trunk { fill: var(--input); stroke: none; }
.t4 .tick { stroke: var(--border); stroke-width: 3; stroke-linecap: round; }
.t4 .tick.first { stroke: var(--input); }
.t4 .branch { stroke: var(--border); stroke-width: 5; stroke-linecap: round; fill: none; }
.t4 .branch.first { stroke: var(--input); stroke-width: 8; }
.t4 .ground { stroke: var(--border); stroke-width: 2; stroke-linecap: round; }
.t4 .role { font-size: 14px; fill: var(--muted-foreground); font-weight: 500; }
.t4 .role.first { fill: var(--heading-foreground); font-size: 15px; }
.t4 .node { cursor: pointer; outline: none; }
.t4 .halo { fill: var(--canvas); stroke: transparent; stroke-width: 2; }
.t4 .disc { fill: var(--node-fill); stroke: var(--node-stroke); stroke-width: 2; stroke-dasharray: var(--node-dash, none); }
.t4 .st-half .disc { fill: var(--warning-tint); }
.t4 .half { fill: var(--warning); }
.t4 .ring { fill: none; stroke: var(--primary); stroke-width: 1.5; }
.t4 .check { fill: none; stroke: var(--primary-foreground); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t4 .nm { font-size: 14px; fill: var(--node-text); }
.t4 .st-build .nm { fill: var(--foreground); }
.t4 .node:hover .nm, .t4 .node:focus-visible .nm { text-decoration: underline; }
.t4 .node.sel .halo { stroke: var(--secondary); }
.t4 .node.co .halo { stroke: var(--secondary); stroke-dasharray: 3 2; }
.t4 .co-lines path { fill: none; stroke: var(--secondary); stroke-width: 1.8; stroke-linecap: round; opacity: 0.9; }
.t2-cap { margin: 8px 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.t2-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: var(--text-base); }
.t2-links button { color: var(--primary); background: transparent; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: var(--text-base); }

/* the side panel on the Skill tree page: the node panel and the more skills */
.aside h2.t2p { margin: 4px 0 6px; font-size: var(--text-2xl); line-height: var(--leading-tight); }
.aside .t2-state { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: var(--text-base); color: var(--foreground); }
.aside .t2-state .nd { --d: 14px; }
.aside .t2-mk { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; font-size: var(--text-sm); color: var(--muted-foreground); }
.aside .t2-mk span { display: inline-flex; align-items: center; gap: 6px; }
.aside .t2-since { margin: 0 0 8px; font-size: var(--text-sm); color: var(--primary); }
.aside .rs q { display: block; color: var(--foreground); font-size: var(--text-base); line-height: 1.5; }
.aside .rs .what { color: var(--foreground); font-size: var(--text-base); }
.aside .rs .chips { margin: 0; }
.aside .rs .co-l { display: flex; flex-direction: column; gap: 2px; }
.aside .rs .co-l button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: transparent; color: var(--foreground); font-size: var(--text-base); text-align: left; }
.aside .rs .co-l button:hover { color: var(--primary); }
.aside .rs .co-l .ln { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--secondary); }
.aside .rs .list .r { cursor: pointer; }
.aside .rs .list .r .t { color: var(--primary); }
.aside .rs .list .r .n .mk { margin: 0; }
.aside .backlink { display: inline-block; font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: 10px; border: 0; background: transparent; padding: 0; }
.aside .backlink:hover { color: var(--primary); }
.aside .more-l .r { cursor: pointer; }
.aside .more-l .r .t { color: var(--foreground); display: flex; align-items: center; }
/* the print page: hidden on screen; on paper one landscape sheet, four columns of missions and the tree's states as
   dots. The sheet carries .light (tokens/colors.css), so a dark screen still prints dark text on white. Paper sizes
   are in points: the 13 px floor is the screen's. */
.map-print { display: none; }
#map-print-sheet { display: contents; }
/* .light sets the light neutrals on the sheet; the semantic tokens are named again here so they resolve against them */
.map-print.light { --background: var(--neutral-900); --foreground: var(--neutral-100); --heading-foreground: var(--neutral-50); --card: var(--neutral-900); --muted: var(--neutral-800); --muted-foreground: var(--neutral-300); --subtle-foreground: var(--neutral-500); --border: var(--neutral-700); --input: var(--neutral-500); --primary: var(--green-400); --primary-foreground: var(--green-950); --secondary: var(--blue-400); --warning: var(--amber-400); }
@media print {
  @page { size: landscape; margin: 10mm; }
  body:has(.map-print) header.top, body:has(.map-print) .foot, body:has(.map-print) .aside, body:has(.map-print) .rail-tab, body:has(.map-print) .tipbox { display: none !important; }
  body:has(.map-print) { min-height: 0; display: block; }
  body:has(.map-print) .main { padding: 0; }
  body:has(.map-print) .shell.with-aside .main > .page.wide { padding-right: 0; }
  .main > .page.map-page { max-width: none; }
  .map-page > :not(#map-print-sheet) { display: none !important; }
  .map-print { display: block; background: var(--card); color: var(--foreground); font-size: 8pt; line-height: 1.25; }
  .map-print header h1 { margin: 0; font-size: 14pt; color: var(--heading-foreground); }
  .map-print header p { margin: 1pt 0 0; font-size: 8.5pt; }
  .map-print .pr-gap { margin-top: 3pt; padding-left: 6pt; border-left: 2px solid var(--primary); }
  .pr-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9pt; margin-top: 7pt; }
  .pr-cols > section { min-width: 0; border-top: 1.5px solid var(--heading-foreground); padding-top: 3pt; }
  .pr-cols h2 { margin: 0; font-size: 9pt; color: var(--heading-foreground); } .pr-cols h2 span { font-weight: var(--weight-regular); color: var(--muted-foreground); }
  .pr-cols .who { margin: 0 0 4pt; font-size: 7.5pt; color: var(--muted-foreground); }
  .pr-card { display: block; margin: 0 0 5pt; break-inside: avoid; }
  .pr-card .t { display: block; font-size: 8pt; font-weight: var(--weight-medium); color: var(--heading-foreground); }
  .pr-card .m { display: block; font-size: 7pt; color: var(--muted-foreground); margin: 1pt 0; }
  .pr-card .ship { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 7pt; color: var(--foreground); }
  .pr-card.q-skipped .t { text-decoration: line-through; }
  .pr-tree { margin-top: 6pt; border-top: 1.5px solid var(--heading-foreground); padding-top: 3pt; break-inside: avoid; }
  .pr-tree h2 { margin: 0 0 2pt; font-size: 9pt; color: var(--heading-foreground); }
  .pr-row { display: flex; flex-wrap: wrap; gap: 2pt 12pt; }
  .pr-grp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1pt 7pt; }
  .pr-grp h3 { margin: 0; font-size: 7pt; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--muted-foreground); font-weight: var(--weight-regular); }
  .pr-node { font-size: 7pt; white-space: nowrap; }
  .map-print .sdot { width: 7pt; height: 7pt; border-width: 1.2pt; margin-right: 2pt; vertical-align: -0.5pt; }
  .map-print .sdot.st-built { outline-width: 1pt; outline-offset: 1pt; margin-left: 2pt; margin-right: 4pt; }
  .pr-note { margin: 3pt 0 0; font-size: 7pt; color: var(--muted-foreground); }
  .pr-note .sdot { margin-left: 5pt; }
  .map-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Pick: the searchable select (web/pick.js) ---------- */
.pick { position: relative; display: inline-block; min-width: 16rem; max-width: 100%; }
.pick input { width: 100%; padding-right: 2rem; }
.pick-toggle { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted-foreground); cursor: pointer; font-size: 0.8rem; padding: 0.2rem 0.4rem; }
.pick-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 0.25rem 0; list-style: none; max-height: 18rem; overflow: auto; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); }
.pick-list li { padding: 0.35rem 0.7rem; cursor: pointer; font-size: var(--text-sm); }
.pick-list li.active, .pick-list li:hover { background: var(--primary-tint); }
.pick-list li.picked { font-weight: 600; }
.pick-list li.pick-none { color: var(--muted-foreground); cursor: default; }
.pick-list li.pick-note { color: var(--muted-foreground); cursor: default; font-size: var(--text-sm); }
.pick-list li.pick-note:hover { background: transparent; }
.pick-hint { color: var(--muted-foreground); font-size: var(--text-sm); margin-left: 0.3rem; }

/* ---------- a phone (640 px and under): the usability pass of 2026-11-06, cluster "phone layout". Tokens only ---------- */
/* what a screen is for comes first in one column: the prep card before Who to look for, the postings before the
   filters, the résumé box before the field tiles. The markup has that order, so Tab follows what a phone shows
   (2026-11-08); the desktop columns are pinned with grid-column under min-width 901px */
@media (max-width: 900px) {
  .jobs-grid .jfilters-link { display: inline-block; margin-bottom: var(--space-2); }
}
@media (min-width: 901px) {
  .jobs-grid .jrail { grid-column: 1; grid-row: 1; }
  .jobs-grid .jmain { grid-column: 2; grid-row: 1; }
  .lf-main { grid-column: 1; grid-row: 1; }
  .lf-side { grid-column: 2; grid-row: 1; }
  .nw-main { grid-column: 1; grid-row: 1; }
  .nw-side { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  /* the role page: the "How you work" row's summary wraps under its name (it was one line, 1,147 px wide) */
  .areabox > summary { flex-wrap: wrap; }
  .areabox > summary .t { min-width: 0; }
  .areabox > summary .n { white-space: normal; min-width: 0; flex-basis: 100%; padding-left: var(--space-6); }
  .fcards { grid-template-columns: minmax(0, 1fr); }
  /* the side panel (a posting, a skill card) and the Filters drawer: the full width of the screen, over the top bar */
  .aside, .drawer { top: 0; left: 0; width: 100%; }
  .shell.with-aside .main > .page { max-width: none; }
  .shell.with-aside .main > .page.wide, .shell.with-aside .main > .page.jobs-page { padding-right: 0; }
  /* the role rail leaves a strip at the left for the tab that closes it */
  .shell.with-rail .aside.rail { top: 0; left: var(--space-10); width: auto; }
  .shell.with-rail.rail-open .rail-tab { right: calc(100% - var(--space-10)); white-space: nowrap; }
  /* the skill map: the field names in the small size without their counts, and draw() keeps only the names that fit */
  .sm-field.bubble { font-size: var(--text-sm); padding: 0; line-height: var(--leading-tight); }
  .sm-field .n { display: none; }
  /* the game: two tiles a row, words wrap whole, the header wraps under the game's name */
  .ktr-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ktr-tile { overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .gm-head { flex-wrap: wrap; row-gap: var(--space-2); }
  .gm-title { flex-basis: 100%; }
}
/* About you's Start over asks once (2026-11-06): the question and its two buttons on one row, wrapping on a phone */
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.confirm-row[hidden] { display: none; }
.confirm-row p { margin: 0; flex: 1 1 260px; }
/* "Start a side project" (#/map/start, 2026-11-11): one question per screen, big tap targets, a thin progress bar
   (the approved mock, data/experiments/scratch/map-redesign/option-c.html, screens a to g) */
/* .sp is the step frame only inside its page (.sp-page): the Skill path game's page and two spacers carry the same name */
:where(.sp-page) .sp { max-width: 620px; margin: 0 auto; padding-top: 8px; }
:where(.sp-page) .sp.wide { max-width: 760px; }
.sp-prog { height: 3px; background: var(--muted); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.sp-prog i { display: block; height: 100%; background: var(--primary); transition: width .25s; }
.sp-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; min-height: 24px; }
:where(.sp-page) .sp h1 { font-size: var(--text-3xl); margin: 0 0 8px; }
.sp-hint { color: var(--muted-foreground); font-size: var(--text-md); margin: 0 0 20px; }
.sp-sub { font-size: var(--text-lg); margin: 18px 0 6px; }
.sp-band { font-size: var(--text-2xl); letter-spacing: var(--tracking-tighter); color: var(--heading-foreground); margin: 4px 0 10px; line-height: 1.25; }
.sp-band b { color: var(--accent-foreground); font-weight: var(--weight-medium); }
.sp-file { margin: 6px 0; color: var(--muted-foreground); }
.sp-ta { position: relative; }
.sp-ta input { width: 100%; }
.sp-ta ul { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--popover); }
.sp-ta li button { width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; min-height: 44px; cursor: pointer; border-radius: var(--radius-sm); font-size: var(--text-md); color: var(--foreground); }
.sp-ta li button:hover:not(:disabled), .sp-ta li button.active { background: var(--muted); }
.sp-ta li button:disabled { opacity: .5; cursor: not-allowed; }
.sp-picked { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sp-role { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; font-size: var(--text-base); }
.sp-role button { border: 0; background: none; cursor: pointer; color: inherit; padding: 0 0 0 6px; font-size: var(--text-md); min-width: 24px; min-height: 24px; }
.sp-or { margin: 22px 0 8px; color: var(--muted-foreground); }
.sp-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-next { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.sp-err { color: var(--warning); font-size: var(--text-base); }
.sp-out { margin-top: 36px; }
.sp-opts { display: grid; gap: 10px; }
.sp-opt { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center; text-align: left; width: 100%; min-height: 60px; padding: 14px 16px; font-size: var(--text-md); color: var(--foreground); }
.sp-opt.on { border-color: var(--primary); background: var(--primary-tint); }
.sp-opt .box { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--input); }
.sp-opt.on .box { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--card); }
.sp-opt b { font-weight: var(--weight-medium); color: var(--heading-foreground); }
.sp-more { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.sp-more h2 { font-size: var(--text-lg); margin: 0 0 4px; }
.sp-xlist { list-style: none; margin: 8px 0 0; padding: 0; } .sp-xlist li { padding: 4px 0; font-size: var(--text-base); }
.sp-privacy { color: var(--accent-foreground); margin-top: 10px; }
.sp-wait { margin-top: 12px; }
.sp-choices { display: grid; gap: 14px; }
.sp-choice { padding: 18px 20px; }
.sp-choice h2 { font-size: var(--text-lg); letter-spacing: var(--tracking-tighter); margin: 0; }
.sp-recipe { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.sp-recipe > div { padding: 10px 12px; } .sp-recipe > div + div { border-left: 1px solid var(--border); }

.sp-recipe dd { margin: 4px 0 0; font-size: var(--text-base); color: var(--heading-foreground); }
.sp-recipe dd small { display: block; color: var(--muted-foreground); font-size: var(--text-sm); }
.sp-again { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.map-top .btn.primary { color: var(--primary-foreground); }
.q-by { margin-left: 10px; }
@media (max-width: 640px) {
  :where(.sp-page) .sp h1 { font-size: var(--text-2xl); }
  .sp-recipe { grid-template-columns: 1fr; } .sp-recipe > div + div { border-left: 0; border-top: 1px solid var(--border); }
 .sp-seg { width: 100%; } .sp-seg button { flex: 1; }
}
/* the open form (#/map/find/<step>, 2026-11-12): its heading over every step, the question as the step's h2 */
:where(.sp-page) .sp h1.sp-kicker { font-size: var(--text-sm); color: var(--muted-foreground); letter-spacing: normal; line-height: inherit; margin: 0 0 6px; }
.sp-intro { color: var(--muted-foreground); margin: 0 0 18px; }
h2.sp-ask { font-size: var(--text-2xl); letter-spacing: var(--tracking-tighter); line-height: var(--leading-tight); margin: 0 0 6px; }
h2.sp-ask:focus { outline: none; }
.sp-posting { margin-top: 22px; }
.sp-posting textarea { display: block; width: 100%; min-height: 96px; resize: vertical; margin-top: 8px; }
#open-next:not(:empty) { margin-bottom: 24px; }

/* the open flow's tools and share steps (2026-11-27): a text box first, the kinds as rows that tap on, yes or no */
.sp-text { display: block; width: 100%; min-height: 64px; resize: vertical; margin: 4px 0 6px; }
.sp-page h3.sp-sub { font-size: var(--text-lg); margin: 26px 0 4px; }
.sp-hint.small { font-size: var(--text-base); margin-bottom: 10px; }
.sp-taps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-tap { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; color: var(--foreground); font-size: var(--text-base); }
.sp-tap .box { width: 20px; height: 20px; border-radius: var(--radius-sm); border: 2px solid var(--input); }
.sp-tap.on { border-color: var(--primary); background: var(--primary-tint); }
.sp-tap.on .box { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--card); }
.sp-tap b { display: block; font-weight: var(--weight-medium); color: var(--heading-foreground); }
.sp-tap small { display: block; color: var(--muted-foreground); font-size: var(--text-sm); margin-top: 2px; }
.sp-yn button { min-width: 88px; }
.sp-note { margin: 8px 0 0; }
.sp-lab { display: block; margin-top: 22px; color: var(--heading-foreground); font-size: var(--text-base); }
.sp-lab input[type=text] { display: block; width: 100%; margin-top: 6px; }
.sp-hitlist { list-style: none; }
.sp-more-q { margin-top: 14px; }
.sp-one { margin: 22px 0 0; color: var(--muted-foreground); }
/* #/map/projects (2026-11-27): one row that snaps on a phone, three columns on a wide screen */
.main > .page.pj-page { max-width: 1080px; margin: 0 auto; padding-top: 12px; }
.pj h1 { margin-bottom: 6px; }
.pj .lead { margin-bottom: 18px; }
.pj-sub { margin: 10px 0 4px; }
.pj-wait { margin: 22px 0; padding: 18px 20px; border-radius: var(--radius-lg); }
.pj-wait p { margin: 0; }
.pj-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pj-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; min-width: 0; }
.pj-card h2 { font-size: var(--text-lg); line-height: var(--leading-tight); margin: 0; letter-spacing: var(--tracking-tighter); }
.pj-card p { margin: 0; }
.pj-level { align-self: flex-start; margin: 0; }
.pj-ship b, .pj-skills b { display: block; font-size: var(--text-sm); color: var(--subtle-foreground); font-weight: var(--weight-medium); margin-bottom: 2px; }
.pj-skills .chip { display: inline-block; margin: 2px 4px 2px 0; }
.pj-recipe { display: grid; gap: 8px; margin: 0; }
.pj-recipe dt { font-size: var(--text-sm); color: var(--subtle-foreground); font-weight: var(--weight-medium); }
.pj-recipe dd { margin: 2px 0 0; color: var(--heading-foreground); }
.pj-recipe dd small { display: block; color: var(--muted-foreground); font-size: var(--text-sm); }
.pj-tag { color: var(--muted-foreground); font-size: var(--text-sm); white-space: nowrap; }
.pj-go { margin-top: auto !important; padding-top: 6px; }
.pj-go .btn { min-height: 44px; }
.pj-ctl { display: none; }
.pj-why { margin: 14px 0 0; color: var(--warning); }
.pj-none { margin-top: 22px; max-width: 560px; }
.pj-none textarea { display: block; width: 100%; min-height: 88px; resize: vertical; margin: 6px 0 10px; }
.pj-help { margin: 28px 0 0; }
.pj-help a { color: var(--primary); }
.pj-kept { margin-top: 28px; }
@media (max-width: 760px) {
  .pj-row { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
  .pj-row::-webkit-scrollbar { display: none; }
  .pj-card { flex: 0 0 100%; scroll-snap-align: start; }
  .pj-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
  .pj-arrow { min-width: 44px; min-height: 44px; justify-content: center; }
  .pj-arrow:disabled { opacity: .4; }
  .pj-dots { display: flex; gap: 4px; }
  .pj-dot { width: 32px; height: 32px; border: 0; background: none; padding: 0; position: relative; cursor: pointer; }
  .pj-dot::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--input); }
  .pj-dot[aria-current="true"]::after { background: var(--primary); }
}
/* #/map/projects/<id>: the picked project */
.pj-one { max-width: 760px; margin: 0 auto; }
.pj-backrow { margin: 0 0 12px; }
.pj-one h1:focus { outline: none; }
.pj-one section { margin-top: 26px; }
.pj-one h2 { font-size: var(--text-lg); margin: 0 0 6px; }
.pj-one h3 { font-size: var(--text-base); margin: 14px 0 6px; }
.pj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pj-two section { margin-top: 26px; }
.pj-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.pj-steps li { margin: 6px 0; }
.pj-steps label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.pj-steps input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.pj-steps label.done span { color: var(--muted-foreground); text-decoration: line-through; }
.pj-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); font: inherit; color: var(--foreground); }
.pj-copyrow { display: flex; align-items: center; gap: 12px; }
.pj-tools { margin: 0 0 8px; padding-left: 20px; }
.pj-tools a, .pj-one section a { color: var(--primary); }
.pj-dl { border: 1px solid var(--primary); border-radius: var(--radius-lg); background: var(--primary-tint); padding: 18px 20px; }
.pj-dl .btn { min-height: 48px; }
.pj-dl { margin: 22px 0 6px; }
.pj-dl p:last-child { margin-bottom: 0; }
.pj-dl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 640px) { .pj-two { grid-template-columns: 1fr; gap: 0; } }
@media print { .pj-ctl, .pj-none, .pj-help, .pj-kept, .pj-copyrow, .pj-dl, .pj-go { display: none; } }
.pj-foot { margin-top: 22px; }
/* the picked project in three parts (PROJECT_PARTS_ENABLED): the nav under the title, the brief box, the finish */
.pj-parts { margin: 14px 0 0; border-bottom: 1px solid var(--border); }
.pj-parts ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pj-parts a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted-foreground); text-decoration: none; font-weight: var(--weight-medium); }
.pj-parts a:hover { color: var(--heading-foreground); }
.pj-parts a[aria-current="page"] { color: var(--heading-foreground); border-bottom-color: var(--primary); }
.pj-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); font-size: var(--text-sm); flex: none; }
.pj-parts a[aria-current="page"] .pj-num { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.pj-count { color: var(--muted-foreground); font-size: var(--text-sm); font-weight: var(--weight-regular); }
.pj-brief { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 16px 20px; }
.pj-brief p:last-child { margin-bottom: 0; }
.pj-next { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 30px 0 0; }
.pj-next .btn { min-height: 48px; }
.pj-next a:not(.btn) { color: var(--primary); }
.pj-finish { border: 1px solid var(--primary); border-radius: var(--radius-lg); background: var(--primary-tint); padding: 18px 20px; }
.pj-finish > :last-child { margin-bottom: 0; }
.pj-others { margin: 0; padding-left: 20px; }
.pj-notyet { margin-top: 26px; }
.pj-check, .pj-own { display: inline-block; width: 100%; margin-top: 4px; font-size: var(--text-sm); color: var(--muted-foreground); text-decoration: none; }
.pj-check b { color: var(--heading-foreground); }
.pj-own { color: var(--primary); }
.pj-donewhen { margin: 0; padding-left: 20px; }
/* the example shelf under the open flow's first question */
.pj-shelf { max-width: 720px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--border); }
.pj-shelf h2 { font-size: var(--text-lg); margin: 0 0 4px; }
.pj-ex { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); margin-top: 12px; padding: 0 18px; }
.pj-ex summary { display: grid; gap: 4px; padding: 14px 0; cursor: pointer; list-style: none; min-height: 44px; }
.pj-ex summary::-webkit-details-marker { display: none; }
.pj-ex summary b { color: var(--heading-foreground); font-weight: var(--weight-medium); }
.pj-ex-kind { font-size: var(--text-sm); color: var(--primary); }
.pj-ex-ship { color: var(--foreground); }
.pj-ex-more { font-size: var(--text-sm); color: var(--primary); }
.pj-ex[open] .pj-ex-more { display: none; }
.pj-ex h3 { font-size: var(--text-base); margin: 12px 0 4px; }
.pj-ex ul, .pj-ex ol { margin: 0 0 14px; padding-left: 20px; }
.pj-ex li { margin: 6px 0; }
@media print { .pj-shelf { display: none; } }
.pj-light .pj-ship { color: var(--foreground); }
.pj-with { margin: 0; }
@media (max-width: 640px) { .pj-parts a { padding: 8px 10px; } }
@media print { .pj-parts, .pj-next { display: none; } }

/* ---------- skeleton: a grey line or box where content is on its way (UI.skel); it pulses unless less motion is asked ---------- */
.skel { display: block; height: 12px; margin: var(--space-2) 0; border-radius: var(--radius-sm); background: var(--muted); animation: skel 1.4s var(--ease-standard) infinite alternate; }
.skel.tall { height: 18px; } .skel.box { height: var(--control-lg); margin: 0; border-radius: var(--radius-md); } .skel.btnw { width: 96px; }
.skel.w30 { width: 30%; } .skel.w50 { width: 50%; } .skel.w70 { width: 70%; } .skel.w90 { width: 90%; }
.skel-card { padding: var(--space-3-5) var(--space-4); }
@keyframes skel { from { opacity: 1; } to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ---------- spacing a screen sets on one element: the token scale, never a style attribute ---------- */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; } .mt-1-5 { margin-top: var(--space-1-5) !important; } .mt-2 { margin-top: var(--space-2) !important; } .mt-2-5 { margin-top: var(--space-2-5) !important; }
.mt-3 { margin-top: var(--space-3) !important; } .mt-3-5 { margin-top: var(--space-3-5) !important; } .mt-4 { margin-top: var(--space-4) !important; } .mt-5 { margin-top: var(--space-5) !important; }
.mb-0-5 { margin-bottom: 2px !important; } .mb-1 { margin-bottom: var(--space-1) !important; }
.p-4 { padding: var(--space-4) !important; } .py-2-5 { padding-block: var(--space-2-5) !important; padding-inline: 0 !important; }
.fg-primary { color: var(--primary) !important; }

/* ---------- a phone, for the screens that had no phone layout (the audit of 2026-11-27) ---------- */
@media (max-width: 640px) {
  /* the fit screen's two lists, one under the other; the role list's heading wraps under its title */
  .fitcols { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .listhead { flex-wrap: wrap; gap: var(--space-1) var(--space-3-5); } .listhead h2 { flex: 1 0 100%; }
  /* the games: a board's two columns stack, a footer's buttons keep their words on one line */
  .cl-board, .gtr .gtr-board, .sp-cols.e, .sp-two, .wd-two { grid-template-columns: minmax(0, 1fr); }
  .cl-rung { grid-template-columns: 92px minmax(0, 1fr); gap: var(--space-2-5); }
  .cl-rung .lv { padding-right: var(--space-2); }
  .sp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-card { min-height: 0; padding: var(--space-3); }
  .sp-head { flex-wrap: wrap; }
  .wd-rank { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2-5); }
  .wd-chip { padding: var(--space-2-5) var(--space-3); gap: 0 var(--space-2); }
  .wd-slot { grid-template-columns: 16px minmax(0, 1fr) auto; gap: 0 var(--space-2); padding: var(--space-2) var(--space-2-5); }
  .wd-prompt { font-size: var(--text-2xl); }
  .gtr .rounds .post { white-space: normal; overflow-wrap: anywhere; }   /* a long employer's name wraps in its cell */
  .gtr .fact-head { grid-template-columns: minmax(0, 1fr) minmax(0, auto) 52px; white-space: normal; }   /* a long role name wraps */
  .gtr .factlist li { grid-template-columns: 18px minmax(0, 1fr) 64px 40px 44px; gap: var(--space-2); }
  .gtr .gtr-choices.small4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-foot { flex-wrap: wrap; } .gm-foot .btn { white-space: nowrap; }
  /* the top bar's and the footer's links: a finger's height */
  .top-actions .toplink, .foot .footlink { display: inline-flex; align-items: center; min-height: var(--control-sm); }
  /* the skill map: the stage as tall as the map is at a phone's width, not the window less a fixed allowance; the map
     keeps the scale it had (web/skillmap.js draw: the width decides), only the empty bands above and below go */
  .sm-stage { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
}
