/* JobHunter+ — v3 (Nov 2026, "the console").
   Signed-in pages are a console: a dark sidebar with the sections, a white
   toolbar with the search, and a dark page-header band carrying each page's
   title; squared geometry (6 / 8 / 12 / 16), tables with header rows, score
   rings. The visitor's pages are editorial: a serif headline on a dark hero.
   Two typefaces, both with Hebrew: IBM Plex Sans Hebrew for the interface,
   Frank Ruhl Libre for titles. The palette is the v2 one, kept byte for
   byte; the names after it are values that used to be hard-coded. Logical
   properties throughout, so the Hebrew pages mirror with no extra rules.
   The older token names at the end of :root map onto these for the page
   rules not yet rewritten. */
:root {
  /* colour */
  --red: #d61800;             /* the "+", the one primary action, Apply, badges */
  --red-hover: #b51400;
  --red-wash: #fdeeeb;        /* avatar tint, "asking now" halo */
  --red-row: #fff8f6;         /* selected row */
  --red-row-2: #fffaf8;       /* current row */
  --red-flash: #fff1ec;       /* an answer that just landed */
  --ink: #121417;             /* text, dark buttons, focus border, the sidebar */
  --ink-2: #3d4148;           /* secondary text on white */
  --muted: #5c6168;           /* meta text, labels (6.1:1 on white) */
  --faint: #8b8f96;           /* hints, idle icons (3.25:1: borders and non-text cues only) */
  --disabled: #c7c9ce;
  --dash: #c2c4c8;            /* "—" for an empty value */
  --ground: #f6f6f4;          /* page */
  --surface: #ffffff;         /* cards */
  --head: #fafaf9;            /* table headers, card footers */
  --hairline: #e7e7e4;        /* card borders */
  --divider: #efefed;         /* inner dividers */
  --divider-2: #f0f0ee;       /* row separators */
  --control: #d9dad7;         /* decorative hairlines (dashed boxes, dividers) */
  --control-2: #e2e2df;
  --chip: #f2f2f0;            /* neutral chips */
  --chip-2: #f4f4f2;          /* pressed backgrounds, hover */
  --track: #efefed;           /* progress tracks */
  --track-2: #ececea;         /* segmented control */
  --green: #157347;
  --excellent: #0f6b3a;
  --green-wash: #e6f4ea;
  --success-panel: #eef7f1; --success-line: #d3eadb;
  --good: #2a9486; --good-wash: #e3f4f1; --good-ink: #0b6b62;  /* ring and dot; text on the wash */
  --amber: #8a5a00; --amber-wash: #fff4dc; --amber-dot: #c98a00;
  --navy: #1f2f55; --navy-wash: #e8f0fb;
  --linkedin: #0a66c2;
  --error: #b10e32; --error-wash: #fbe9e7; --error-dark: #7d0a23;
  --dark: #121417; --dark-inner: #1c1f24; --dark-text: rgba(255, 255, 255, .8);
  /* the values that used to be literals */
  --white: #ffffff; --black: #000000;
  --surface-hover: #fcfcfb;   /* a row under the pointer */
  --ink-text: #2a2d33;        /* posting text, the review */
  --idle-dot: #b8babe;        /* an untested or empty dot */
  --desk: #ebebe9;            /* the CV viewer's desk */
  --ring-great: #2f8f58; --ring-look: #d39a2a; --ring-long: #a3a6ab;
  --seg-great: #3d9a63; --seg-good: #7cc4b5; --seg-look: #f0c86a;
  --red-line: #f0dcd6; --red-paper: #fdf6f5; --navy-code-wash: #eef3fb; --excellent-wash: #dfeee5;
  --line-strong: #8b8f96;     /* input and outline-button borders: 3.25:1 on white */
  --placeholder: #5c6168;     /* 6.1:1 */
  /* the dark chrome */
  --side-text: rgba(255, 255, 255, .72); --side-dim: rgba(255, 255, 255, .55); --side-icon: rgba(255, 255, 255, .6);
  --side-hover: rgba(255, 255, 255, .06); --side-on: rgba(255, 255, 255, .1); --side-line: rgba(255, 255, 255, .12);
  --on-dark-border: rgba(255, 255, 255, .35);
  /* elevation */
  --e-0: none;
  --e-1: 0 1px 2px rgba(18, 20, 23, .04);
  --e-2: 0 2px 6px rgba(18, 20, 23, .05), 0 12px 28px -20px rgba(18, 20, 23, .25);
  --e-3: 0 24px 60px -24px rgba(18, 20, 23, .38), 0 2px 6px rgba(18, 20, 23, .06);
  --e-4: 0 40px 90px -30px rgba(18, 20, 23, .55), 0 2px 8px rgba(18, 20, 23, .08);
  --e-red: 0 10px 22px -14px rgba(214, 24, 0, .7);
  --shadow-card: var(--e-1); --shadow-menu: var(--e-3); --shadow-dialog: var(--e-4);
  --shadow-seg: 0 1px 2px rgba(18, 20, 23, .1), 0 3px 8px -4px rgba(18, 20, 23, .2);
  --shadow-current: 0 16px 34px -26px rgba(214, 24, 0, .55);
  /* type */
  --font: "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --t-xs: 12px; --t-sm: 13px; --t-base: 14px; --t-md: 15px; --t-lg: 16px; --t-xl: 20px;
  --t-title: 34px; --t-2xl: clamp(28px, 3vw, 40px); --t-hero: clamp(44px, 5.4vw, 76px);
  --track-caps: .08em;
  /* space, radius */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 48px;
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --nav-h: 56px;              /* the toolbar: sticky offsets measure from it */
  --side-w: 248px; --side-w-min: 64px;
  /* motion */
  --d-fast: 120ms; --d-base: 180ms; --d-slow: 260ms; --d-enter: 420ms; --d-stagger: 40ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-spring: cubic-bezier(.34, 1.3, .64, 1);
  /* mirrored in app.js (the shut timers of the menu, the dialog and Hunter): change both or neither */
  --d-menu: 160ms; --d-dialog: 180ms; --d-panel: 200ms;
  /* layers */
  --z-bar: 40; --z-menu: 50; --z-assistant: 60; --z-dialog: 70; --z-skip: 100;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink);
  /* older names, mapped onto the tokens above */
  --accent: var(--red); --accent-deep: var(--red-hover); --accent-dark: var(--red-hover);
  --line: var(--hairline); --line-2: var(--control); --line-3: var(--disabled); --line-form: var(--line-strong);
  --wash: var(--chip-2); --surface-2: var(--head); --ink-3: var(--faint);
  --ok: var(--green); --ok-wash: var(--green-wash);
  --warn: var(--amber); --warn-wash: var(--amber-wash);
  --risk: var(--error); --risk-wash: var(--error-wash);
  --blue-wash: var(--navy-wash); --wash-2: #d5e7ff;
  --radius: var(--r-sm); --radius-lg: var(--r-md); --radius-xl: var(--r-md);
  --shadow-pop: var(--shadow-menu);
  --nav-ink: var(--muted); --charcoal: var(--ink);
  --font-body: var(--font); --font-head: var(--font);
}

/* --- base -------------------------------------------------------------------- */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.focus-only:not(:focus):not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: 8px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; z-index: var(--z-skip);
  background: var(--white); padding: 8px 12px; color: var(--ink); font-weight: 600; border-radius: var(--r-sm); }
.skip:focus { width: auto; height: auto; overflow: visible; clip: auto; inset-inline-start: 16px; outline: 2px solid var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* On a dark surface the ring is white. */
.sidebar :focus-visible, .page-head :focus-visible, .con-head :focus-visible, .jobs-band :focus-visible, .hero-band :focus-visible,
.auth-side :focus-visible, .plan.dark :focus-visible, .dark-card :focus-visible, .setup-next :focus-visible, button.assistant-launcher:focus-visible { outline-color: var(--white); }
* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--t-base); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; min-height: 100vh;
}
body.marketing { background: var(--white); font-size: var(--t-md); }
a { color: var(--red); text-decoration: none; transition: color var(--d-fast) ease; }
a:hover { color: var(--red-hover); text-decoration: underline; text-underline-offset: .15em; }
/* A link inside prose is underlined, and in muted text it reads in ink (the
   red-on-grey pair was 1.2:1). Buttons, tabs and cards that are links stay bare. */
p a, li a, dd a, td a, .meta a, .note a, .lede a, .feed-empty a, .status-empty a, .locked-box a, .review-body a, .help-panel a, .con-summary a, .flash a
  { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.meta a, .note a, .lede a, .feed-empty a, .status-empty a, .help-panel a, .con-summary a { color: var(--ink); font-weight: 600; }
.meta a:hover, .note a:hover, .lede a:hover, .feed-empty a:hover, .status-empty a:hover, .help-panel a:hover, .con-summary a:hover { color: var(--red); }
main { width: 100%; max-width: 1320px; margin: 0; padding: var(--s-6) var(--s-7) 64px; flex: 1 0 auto; min-width: 0; }
main.wide { max-width: none; }
main.narrow-page { max-width: 1180px; }
main.marketing-main { max-width: none; padding: 0; margin: 0 auto; }
main:focus { outline: none; }
.num { font-variant-numeric: tabular-nums; }
code { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink); }

/* --- type -------------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: 0; font-weight: 600; margin: 0; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-title); letter-spacing: -.01em; line-height: 1.1; margin: 0 0 6px; text-wrap: balance; }
h2 { font-size: var(--t-lg); margin: 24px 0 10px; }
h3 { font-size: var(--t-base); margin: 16px 0 8px; }
h4 { font-size: var(--t-sm); margin: 12px 0 6px; }
.card > h1:first-child, .card > h2:first-child, section > h2:first-child { margin-top: 0; }
p { margin: 0 0 12px; }
b, strong { color: inherit; font-weight: 600; }
.lede { font-size: var(--t-md); color: var(--muted); max-width: 62ch; }
.meta, .note { color: var(--muted); font-size: var(--t-sm); }
.note { max-width: 62ch; }
.small { font-size: 12.5px; }
.warn { color: var(--error); }
.eyebrow { font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.eyebrow.red { color: var(--red); }
.group-title { font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.plus { color: var(--red); font-weight: 700; }
/* The page-header band: full-bleed across the workspace under the toolbar,
   dark, the title in the serif; its outline buttons turn white-on-dark. */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-7)) var(--s-6); padding: 28px var(--s-7); background: var(--dark-inner); color: var(--white); }
.page-head h1, .page-head h2, .page-head b, main .page-head :is(p, .meta, .note) b { color: var(--white); }
.page-head h1 { margin-bottom: 4px; }
.page-head .meta, .page-head .note, .page-head p { color: var(--dark-text); font-size: var(--t-base); margin: 0; max-width: 72ch; }
.page-head .eyebrow { color: var(--side-dim); }
.page-head .actions { gap: 8px; }
.page-head .button:not(.button-primary):not(.button-dark) { background: transparent; border-color: var(--on-dark-border); color: var(--white); }
.page-head .button:not(.button-primary):not(.button-dark):hover { background: var(--side-hover); border-color: var(--white); color: var(--white); }
.page-head .button-dark { background: var(--white); border-color: var(--white); color: var(--ink); }
.page-head .tag, .page-head .badge { vertical-align: middle; }
.page-head a:not(.button) { color: var(--white); text-decoration: underline; text-underline-offset: .16em; }
.page-intro, .dash-hello { min-width: 0; }

/* --- motion ------------------------------------------------------------------
   Opacity and transform only. The page's blocks rise in, one after the other;
   rows reveal in a stagger; the pane shimmers while it swaps; the rings fill
   their arc. Everything stops under prefers-reduced-motion (the block at the
   end of this layer) and in print. The shut timers of the menu, the dialog
   and Hunter are 160 / 180 / 200 ms in app.js too. */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes arc { from { --pct: 0%; } }
main > :not(.page-head):not(.flashes) { animation: rise var(--d-enter) var(--ease-out) both; }
main > :nth-child(2) { animation-delay: calc(var(--d-stagger) * 1); }
main > :nth-child(3) { animation-delay: calc(var(--d-stagger) * 2); }
main > :nth-child(4) { animation-delay: calc(var(--d-stagger) * 3); }
main > :nth-child(n+5) { animation-delay: calc(var(--d-stagger) * 4); }
.page-head > * { animation: rise var(--d-slow) var(--ease-out) both; }
.feed .row, .top-fits li, .app-row, .apps > li, .contacts-list li, .plans .plan, .steps > li, .tiles > .tile, .needs-list > li, .kpis > li
  { animation: rise var(--d-slow) var(--ease-out) both; }
.feed .row:nth-child(2), .top-fits li:nth-child(2), .app-row:nth-child(2), .apps > li:nth-child(2), .tiles > .tile:nth-child(2), .needs-list > li:nth-child(2) { animation-delay: calc(var(--d-stagger) * 1); }
.feed .row:nth-child(3), .top-fits li:nth-child(3), .app-row:nth-child(3), .apps > li:nth-child(3), .tiles > .tile:nth-child(3), .needs-list > li:nth-child(3) { animation-delay: calc(var(--d-stagger) * 2); }
.feed .row:nth-child(4), .top-fits li:nth-child(4), .app-row:nth-child(4), .apps > li:nth-child(4), .tiles > .tile:nth-child(4), .needs-list > li:nth-child(4) { animation-delay: calc(var(--d-stagger) * 3); }
.feed .row:nth-child(5), .top-fits li:nth-child(5), .app-row:nth-child(5), .apps > li:nth-child(5) { animation-delay: calc(var(--d-stagger) * 4); }
.feed .row:nth-child(6), .top-fits li:nth-child(6), .app-row:nth-child(6), .apps > li:nth-child(6) { animation-delay: calc(var(--d-stagger) * 5); }
.feed .row:nth-child(7), .top-fits li:nth-child(7), .app-row:nth-child(7), .apps > li:nth-child(7) { animation-delay: calc(var(--d-stagger) * 6); }
.feed .row:nth-child(8), .top-fits li:nth-child(8), .app-row:nth-child(8), .apps > li:nth-child(8) { animation-delay: calc(var(--d-stagger) * 7); }
.lift { transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) ease; }
.lift:hover { transform: translateY(-1px); box-shadow: var(--e-2); }
.button:active, button:active:not(:disabled) { transform: translateY(1px) scale(.985); transition-duration: var(--d-fast); }
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow-y: clip; transition: block-size var(--d-slow) var(--ease-out), content-visibility var(--d-slow) allow-discrete; }
  details[open]::details-content { block-size: auto; }
  details.app-group[open]::details-content { overflow-y: visible; }  /* a row's ⋯ menu may hang below the group */
}
@property --pct { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* --- icons: Material Symbols Rounded ---------------------------------------- */
.ms {
  font-family: 'Material Symbols Rounded'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal;
  flex: none; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased; user-select: none; overflow: hidden;
}
.ms.fill { font-variation-settings: 'FILL' 1; }
.ms.w5 { font-weight: 500; }
.ms.red { color: var(--red); } .ms.green { color: var(--green); } .ms.muted { color: var(--muted); }

/* --- buttons: squared, 36px, radius 8 ---------------------------------------- */
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line-strong);
  font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: background-color var(--d-fast) ease, border-color var(--d-fast) ease, color var(--d-fast) ease, opacity var(--d-fast) ease, transform var(--d-fast) ease, box-shadow var(--d-base) var(--ease-out);
}
.button:hover, button:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.button .ms, button .ms { font-size: 18px; }
.button-primary, button.button-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.button-primary:hover, button.button-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--white); }
.button-dark, button.button-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button-dark:hover, button.button-dark:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.button-white, button.button-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-white:hover, button.button-white:hover { background: var(--chip-2); border-color: var(--chip-2); color: var(--ink); }
.button-quiet, button.button-quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 10px; }
.button-quiet:hover, button.button-quiet:hover { background: var(--chip-2); border-color: transparent; color: var(--ink); }
.button-quiet.danger, button.button-quiet.danger { color: var(--error); }
.button-quiet.danger:hover, button.button-quiet.danger:hover { background: var(--error-wash); color: var(--error); }
.button-xs, button.button-xs { height: 28px; padding: 0 9px; font-size: var(--t-xs); gap: 5px; }
.button-xs .ms { font-size: 16px; }
.button-small, button.button-small { height: 32px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.button-small .ms { font-size: 17px; }
.button-tall, button.button-tall { height: 40px; padding: 0 18px; font-size: var(--t-base); gap: 8px; }
.button-tall .ms { font-size: 19px; }
.button-xl, button.button-xl { height: 48px; padding: 0 24px; font-size: var(--t-md); gap: 8px; }
.button-xl .ms { font-size: 20px; }
button:disabled, .button:disabled { opacity: .5; cursor: not-allowed; }
button.button-primary:disabled { opacity: 1; background: var(--disabled); border-color: var(--disabled); color: var(--white); }
.button-locked { border-style: dashed; }
.icon-button, button.icon-button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted); }
.icon-button:hover, button.icon-button:hover { background: var(--chip-2); color: var(--ink); border: 0; }
.icon-button .ms { font-size: 20px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px;
  background: var(--red); color: var(--white); font-size: var(--t-xs); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.button-primary .count, .button .count { background: rgba(255, 255, 255, .22); border-radius: 5px; padding: 1px 7px; font-size: 12.5px; font-weight: 600; }
.button:not(.button-primary):not(.button-dark) .count { background: var(--chip-2); color: var(--muted); }
button.linklike { background: none; border: 0; padding: 0; height: auto; font: inherit; color: var(--ink); font-weight: 600; cursor: pointer; display: inline; border-radius: 0;
  text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
button.linklike:hover { color: var(--red); transform: none; }

/* --- forms -------------------------------------------------------------------- */
input, select, textarea { font: inherit; font-size: var(--t-base); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease; }
input, select { height: 36px; padding: 0 12px; }
input[type="file"] { height: auto; padding: 8px 0; border: 0; background: none; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); vertical-align: middle; }
select { padding-inline-end: 32px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6168' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 11px; }
[dir="rtl"] select { background-position: left 11px center; }
select.pill, input.pill { border-radius: var(--r-sm); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: var(--focus-ring); }
::placeholder { color: var(--placeholder); opacity: 1; }
textarea { width: 100%; padding: 10px 12px; min-height: 5em; resize: vertical; border-radius: var(--r-sm); line-height: 1.5; }
label { display: block; margin-bottom: 12px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
label small { color: var(--muted); font-weight: 400; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
label.inline input { display: inline; width: auto; margin: 0; }
/* A search field: the search icon at its start. */
.search-wrap { position: relative; flex: 1 1 220px; min-width: 0; margin: 0; display: block; }
.search-wrap > .ms { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.search-wrap input { width: 100%; padding-inline-start: 36px; margin: 0; border-radius: var(--r-sm); }
/* The switch: a 40×24 track with an 18px knob. A checkbox (works without
   script) or a button with role=switch and aria-checked. */
input.switch-input, button.switch-input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; padding: 0;
  border: 0; border-radius: var(--r-pill); background: var(--disabled); cursor: pointer; vertical-align: middle; transition: background-color var(--d-fast) ease; }
input.switch-input::before, button.switch-input::before { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 2px rgba(18, 20, 23, .2); transition: inset-inline-start var(--d-base) var(--ease-out); }
input.switch-input:checked, button.switch-input[aria-checked="true"] { background: var(--green); }
input.switch-input:checked::before, button.switch-input[aria-checked="true"]::before { inset-inline-start: 19px; }
input.switch-input.navy:checked, button.switch-input.navy[aria-checked="true"] { background: var(--navy); }
input.switch-input:disabled, button.switch-input:disabled { opacity: .45; cursor: not-allowed; }
input.switch-input:focus-visible, button.switch-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }
button.switch-input:hover { border: 0; }
button.switch-input:active { transform: none; }
/* The older labelled switch (rules, filters). */
.switch { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding-block: 0; padding-inline: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; margin: 0; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { width: 28px; height: 16px; border-radius: var(--r-pill); background: var(--disabled); position: relative; display: inline-block; transition: background var(--d-fast); }
.switch .knob::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); transition: inset-inline-start var(--d-base) var(--ease-out); }
.switch:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.switch:has(input:checked) .knob { background: var(--red); }
.switch:has(input:checked) .knob::after { inset-inline-start: 14px; }
.switch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* --- segmented control -------------------------------------------------------- */
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--track-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented > a, .segmented > button, .segmented > label, .segmented > span {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--r-xs); border: 0; background: transparent;
  color: var(--muted); font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; margin: 0;
  transition: background-color var(--d-base) var(--ease-out), color var(--d-fast) ease, box-shadow var(--d-base) var(--ease-out);
}
.segmented > a:hover, .segmented > button:hover, .segmented > label:hover { color: var(--ink); text-decoration: none; border: 0; }
.segmented > [aria-current="page"], .segmented > [aria-current="true"], .segmented > [aria-selected="true"], .segmented > [aria-pressed="true"],
.segmented > .on, .segmented > label:has(input:checked) { background: var(--white); color: var(--ink); box-shadow: var(--shadow-seg); }
.segmented > label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented > label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }
.segmented .n { font-size: var(--t-xs); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.segmented .n.red { color: var(--red); }

/* --- cards, panels --------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.card.narrow { max-width: 460px; margin-inline: auto; }
.card.narrow h1 { text-align: center; }
.section-label { margin: 0 0 8px; font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 600; }
/* The dark card, with the serif "+" ghosted in its top-end corner. */
.dark-card { background: var(--dark); color: var(--white); border-radius: var(--r-md); padding: 22px; position: relative; overflow: hidden; }
.dark-card::before { content: "+"; position: absolute; inset-inline-end: -20px; top: -70px; font-family: var(--font-display); font-weight: 900; font-size: 240px; line-height: 1; color: rgba(214, 24, 0, .35); }
.dark-card > * { position: relative; }
.dark-card h2, .dark-card h3, .dark-card b { color: var(--white); }
.dark-card p { color: var(--dark-text); }
/* The empty state: a tile, a line, one action. Added beside a page's own class. */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--muted); }
.empty-state b { color: var(--ink); }
.empty-state .ms { font-size: 24px; color: var(--muted); }

/* --- tables as cards (Developer) ------------------------------------------------
   A card holding a toolbar, a table that scrolls sideways when it must, and a
   footer. The table is a grid of rows (role=table / row / cell): each table
   sets --cols and its min-width. A row can be followed by its panel (an
   editor, a source log), opened by a [data-row-toggle] (app.js; base.html's
   <noscript> opens them all). */
.table-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 20px; }
.table-scroll { position: relative; overflow-x: auto; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--hairline); }
.table-toolbar .count { margin-inline-start: auto; font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gtable { min-width: 700px; }
.grow { display: grid; grid-template-columns: var(--cols); align-items: center; }
.grow > * { min-width: 0; padding: 11px 16px; }
.ghead { background: var(--head); border-bottom: 1px solid var(--hairline); }
.ghead > * { padding-block: 9px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
.grow > .end { text-align: end; }
.grow .sub { display: block; font-size: 12.5px; color: var(--muted); }
.grow .muted { color: var(--muted); }
.grow .num { font-variant-numeric: tabular-nums; }
.gitem { position: relative; transition: background-color var(--d-fast) ease; }
.gitem + .gitem { border-top: 1px solid var(--divider-2); }
/* The red edge of an open row (or a new one). */
.gitem::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: transparent; pointer-events: none; z-index: 1; }
.gitem.is-open { background: var(--surface-hover); }
.gitem.is-open::before { background: var(--red); }
.gitem > .grow { transition: background-color var(--d-fast) ease; }
.gitem > .grow:hover { background: var(--surface-hover); }
.grow[data-row-click] { cursor: pointer; }
.gpanel { margin: 0; }
.gempty { margin: 0; padding: 28px 16px; text-align: center; color: var(--muted); font-size: var(--t-base); }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 16px; background: var(--head); border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--muted); }
.table-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.table-foot b { color: var(--ink); }
/* A row's open / close: the chevron, or Edit that turns into a dark Close. */
.row-chev, button.row-chev { width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted); }
.row-chev:hover, button.row-chev:hover { background: var(--chip-2); color: var(--ink); border: 0; }
.row-chev .ms { font-size: 20px; transition: transform var(--d-base) var(--ease-out); }
.row-chev[aria-expanded="true"] .ms { transform: rotate(180deg); }
.row-edit, button.row-edit { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.row-edit .ms, button.row-edit .ms { font-size: 16px; }
.row-edit[aria-expanded="true"], button.row-edit[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
/* Small status words in a pill: OK / EMPTY green, RATE / CHECK / TOKEN amber, the rest red. */
.status-pill { font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; padding: 1px 7px; border-radius: var(--r-xs); white-space: nowrap; background: var(--chip); color: var(--muted); line-height: 1.5; }
.status-pill.is-ok { background: var(--green-wash); color: var(--green); }
.status-pill.is-warn { background: var(--amber-wash); color: var(--amber); }
.status-pill.is-bad { background: var(--error-wash); color: var(--error); }
.dot.is-working { background: var(--green); } .dot.is-failing { background: var(--error); } .dot.is-untested { background: var(--idle-dot); }

/* --- chips, tags, pills ---------------------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); padding: 2px 7px; border-radius: var(--r-xs);
  background: var(--chip); color: var(--muted); margin-inline-end: 4px; font-weight: 600; line-height: 1.45; white-space: nowrap; vertical-align: middle; }
.tag-ok { background: var(--green-wash); color: var(--green); }
.tag-warn, .tag-amber { background: var(--amber-wash); color: var(--amber); }
.tag-red { background: var(--error-wash); color: var(--error); }
.tag-navy { background: var(--navy-wash); color: var(--navy); }
.tag-outline { background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); padding: 1px 7px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-xs); font-size: var(--t-xs); font-weight: 600; border: 1px solid transparent; line-height: 1.5; }
.pill-in { background: var(--navy-wash); color: var(--navy); }
.pill-out { background: var(--chip); color: var(--muted); }
.pill-neutral { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.pill-over { background: var(--error-wash); color: var(--error); }
.new-dot { display: inline-block; font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); flex: none; vertical-align: middle; }
.why { display: inline-block; font-size: var(--t-xs); padding: 2px 7px; margin-block: 1px 2px; margin-inline: 0 4px; border-radius: var(--r-xs); background: var(--chip); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.why-good { background: var(--success-panel); color: var(--green); } .why-bad { background: var(--chip); color: var(--ink-2); } .why-lower { background: var(--amber-wash); color: var(--amber); }
.why.ai-why { white-space: normal; line-height: 1.35; max-width: 100%; }
.evidence-roles { color: var(--green); } .evidence-none { color: var(--error); }
/* Score tiles and the five bands (services/match.py names them). The tile is
   the square the older pages still draw; the ring below replaces it. */
.score { display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 600; border-radius: var(--r-sm); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.score-md { width: 40px; height: 40px; font-size: var(--t-lg); } .score-lg { width: 40px; height: 40px; font-size: var(--t-lg); } .score-sm { width: 36px; height: 36px; font-size: var(--t-md); }
.score-excellent { background: var(--excellent); color: var(--white); }
.score-great { background: var(--green-wash); color: var(--green); }
.score-good { background: var(--good-wash); color: var(--good-ink); }
.score-look { background: var(--amber-wash); color: var(--amber); }
.score-long { background: var(--chip); color: var(--muted); }
.score-none { background: var(--chip); color: var(--muted); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0; text-align: center; line-height: 1.15; }
.score-none.score-md, .score-none.score-lg, .score-none.score-sm { font-size: var(--t-xs); }
/* The score ring: the band's colour around the score, filled to it (an inline
   --pct); it fills its arc on first paint. */
.ring { --pct: 0%; --ring: var(--muted); --ring-track: var(--track); --ring-ink: var(--muted); width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ring) var(--pct), var(--ring-track) 0); display: inline-flex; align-items: center; justify-content: center;
  animation: arc 600ms var(--ease-out) both; }
.ring > span { width: 28px; height: 28px; border-radius: 50%; background: var(--white); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: var(--t-xs); color: var(--ring-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.ring-md { width: 40px; height: 40px; } .ring-md > span { width: 32px; height: 32px; font-size: var(--t-sm); }
.ring-lg { width: 72px; height: 72px; } .ring-lg > span { width: 60px; height: 60px; font-size: 22px; }
.ring-xl { width: 96px; height: 96px; } .ring-xl > span { width: 80px; height: 80px; font-size: 30px; }
.ring-excellent { --ring: var(--excellent); --ring-track: var(--excellent-wash); --ring-ink: var(--excellent); }
.ring-great { --ring: var(--ring-great); --ring-track: var(--green-wash); --ring-ink: var(--green); }
.ring-good { --ring: var(--good); --ring-track: var(--good-wash); --ring-ink: var(--good-ink); }
.ring-look { --ring: var(--ring-look); --ring-track: var(--amber-wash); --ring-ink: var(--amber); }
.ring-long { --ring: var(--ring-long); --ring-track: var(--track); --ring-ink: var(--muted); }
.ring-none { --pct: 0%; --ring-track: var(--track); animation: none; }
.ring-none > span { font-size: var(--t-xs); color: var(--muted); font-weight: 600; letter-spacing: 0; text-align: center; line-height: 1.1; }
.ring-none .ms { font-size: 20px; color: var(--muted); }
.band { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); font-weight: 600; line-height: 1.5; padding: 1px 7px; margin-block: 1px 2px; margin-inline: 0 4px; border-radius: var(--r-xs); white-space: nowrap; vertical-align: baseline; }
.band::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.band-excellent { background: var(--green-wash); color: var(--excellent); }
.band-great { background: var(--green-wash); color: var(--green); }
.band-good { background: var(--good-wash); color: var(--good-ink); }
.band-look { background: var(--amber-wash); color: var(--amber); }
.band-long { background: var(--chip); color: var(--muted); }
.fit { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2em; height: 2em; padding: 0 .4em; font-weight: 600; border-radius: var(--r-xs); font-size: var(--t-md); }
a.fit { text-decoration: none; } a.fit:hover, a.fit:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* A tooltip that keyboard and touch can reach: the trigger is focusable, the
   text shows on hover and focus (the same words as the old title=). */
.tip { position: relative; display: inline-flex; }
.tip > .tip-text { position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0; z-index: var(--z-menu); background: var(--ink); color: var(--white); font-size: var(--t-xs); font-weight: 500;
  padding: 5px 9px; border-radius: var(--r-xs); white-space: nowrap; box-shadow: var(--e-2); opacity: 0; pointer-events: none; transform: translateY(2px);
  transition: opacity var(--d-fast) ease, transform var(--d-fast) var(--ease-out); }
.tip > .tip-text::after { content: ""; position: absolute; top: 100%; inset-inline-end: 12px; border: 5px solid transparent; border-top-color: var(--ink); }
.tip:hover > .tip-text, .tip:focus-visible > .tip-text, .tip:focus-within > .tip-text { opacity: 1; transform: none; }
/* A tip at the start of its row or line opens toward the end, clear of the card's edge. */
.tip.tip-start > .tip-text, .feed .row > .tip:first-child > .tip-text, .job-meta > .tip:first-child > .tip-text { inset-inline-end: auto; inset-inline-start: 0; }
.tip.tip-start > .tip-text::after, .feed .row > .tip:first-child > .tip-text::after, .job-meta > .tip:first-child > .tip-text::after { inset-inline-end: auto; inset-inline-start: 12px; }

/* --- progress ------------------------------------------------------------------ */
.bar { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--red); width: 0; border-radius: inherit; transition: width .45s var(--ease-out); }
/* A background task of the person's own: icon, step, "step N of M", bar, the server note. */
.task-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; align-items: center; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 12px; box-shadow: var(--shadow-card); }
.task-card .task-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--red-wash); color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.task-card .task-icon .ms { font-size: 20px; }
.task-card .task-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-card .bar { height: 4px; }
.task-card[data-running="true"] .bar-fill { background-image: linear-gradient(90deg, var(--red) 0 60%, rgba(255, 255, 255, .35) 80%, var(--red)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.task-card .task-note { grid-column: 2; margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.task-card .task-phrase { color: var(--ink); font-size: var(--t-base); font-weight: 600; margin-inline-end: 10px; }

/* --- flashes: a white line with a tone bar at its start ---------------------------- */
.flashes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); margin: 0 0 8px; font-size: 13.5px; line-height: 1.45;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-inline-start: 3px solid var(--navy); box-shadow: var(--shadow-card); animation: rise var(--d-slow) var(--ease-out) both; }
.flashes .flash { margin: 0; }
.flash::before { font-family: 'Material Symbols Rounded'; font-size: 20px; line-height: 1; font-weight: 400; flex: none; color: var(--navy);
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; content: "info"; content: "info" / ""; }
.flash-success { border-inline-start-color: var(--green); }
.flash-success::before { content: "check_circle"; content: "check_circle" / ""; font-weight: 500; color: var(--green); }
.flash-error { border-inline-start-color: var(--error); }
.flash-error::before { content: "error"; content: "error" / ""; color: var(--error); }
.flash-info { border-inline-start-color: var(--navy); }
.flash a { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; font-weight: 600; }
.flash b { color: inherit; }

/* --- a held read (services/read_hold.py): a flash's line with its two ways on ------ */
.read-hold { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; padding: 14px 16px; margin: 0 0 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-inline-start: 3px solid var(--amber); border-radius: var(--r-sm); box-shadow: var(--shadow-card); }
.read-hold > .ms { font-size: 22px; line-height: 1.1; color: var(--amber); }
.read-hold-text b { display: block; font-size: var(--t-base); }
.read-hold-text p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; text-wrap: pretty; }
.read-hold-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.read-hold-actions form { margin: 0; }
.read-hold-in-card { padding-bottom: 0; }
.read-hold-in-card .read-hold { margin: 0; box-shadow: none; }
@media (max-width: 760px) { .read-hold { grid-template-columns: 24px minmax(0, 1fr); } .read-hold-actions { grid-column: 2; } }
.read-hold-fields { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: var(--t-sm); color: var(--muted); }
.read-hold-fields li.is-dead { color: var(--ink); font-weight: 600; }
.read-hold-leave { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

/* --- the console shell: the sidebar, the toolbar, the workspace ----------------------
   base.html: div.shell > aside.sidebar + div.workspace. The sidebar carries
   the brand and the sections (nav.side-nav; a developer's Dev item opens
   nav.dev-rail with its six sections on a /dev page) and collapses to its
   icons (app.js keeps the choice; .is-collapsed). The toolbar carries the
   search, Feedback, EN / עב and the account menu. Under 760px the sidebar
   becomes a bottom tab bar and the toolbar the top bar. */
.shell { display: flex; flex: 1 0 auto; min-height: 100vh; width: 100%; }
.sidebar-wrap { position: sticky; top: 0; height: 100vh; flex: none; display: flex; z-index: calc(var(--z-bar) + 1); }  /* above the toolbar: the flip button crosses the edge */
.sidebar { position: relative; height: 100%; width: var(--side-w); flex: none; display: flex; flex-direction: column; gap: 3px;
  padding: 18px 12px 14px; background: var(--ink); color: var(--white); overflow: hidden auto; scrollbar-width: none;
  transition: width var(--d-base) var(--ease-out); }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar.no-motion, .sidebar.no-motion * { transition: none !important; }
.brand { display: inline-flex; direction: ltr; align-items: baseline; gap: 1px; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; flex: none; }
.brand .plus { font-size: 24px; line-height: 1; color: var(--red); font-weight: 700; }
.brand:hover { text-decoration: none; color: inherit; }
.sidebar .brand { color: var(--white); padding: 0 10px 16px; }
.sidebar .brand:hover { color: var(--white); }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav > a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--side-text); font-size: var(--t-base); font-weight: 500; text-decoration: none; white-space: nowrap; overflow: hidden;
  transition: background-color var(--d-fast) ease, color var(--d-fast) ease; }
.side-nav > a:hover { background: var(--side-hover); color: var(--white); text-decoration: none; }
.side-nav > a[aria-current="page"] { background: var(--side-on); color: var(--white); font-weight: 600; }
.side-nav > a[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--red); }
.side-nav > a > .ms { font-size: 20px; color: var(--side-icon); }
.side-nav > a[aria-current="page"] > .ms { color: var(--white); }
.side-nav > a.tab-premium { color: var(--white); }
.side-nav > a.tab-premium > .ms { color: var(--red); }
.tab-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--red); color: var(--white); font-size: var(--t-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; line-height: 1; }
/* The Dev item's six sections (dev/_nav.html), indented under it. */
nav.dev-rail { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px; padding-inline-start: 22px; }
.rail-item { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-inline-start: 1px solid var(--side-line); border-radius: 0 var(--r-xs) var(--r-xs) 0;
  color: var(--side-dim); font-size: var(--t-sm); font-weight: 500; text-decoration: none; white-space: nowrap; overflow: hidden;
  transition: background-color var(--d-fast) ease, color var(--d-fast) ease; }
[dir="rtl"] .rail-item { border-radius: var(--r-xs) 0 0 var(--r-xs); }
.rail-item:hover { color: var(--white); background: var(--side-hover); text-decoration: none; }
.rail-item[aria-current="page"] { color: var(--white); background: var(--side-on); border-inline-start-color: var(--red); font-weight: 600; }
.rail-icon { font-size: 18px; color: var(--side-icon); flex: none; }
.rail-item[aria-current="page"] .rail-icon { color: var(--white); }
.rail-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rail-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--red); color: var(--white); font-size: var(--t-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rail-foot { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 10px 10px 0; border-top: 1px solid var(--side-line); font-size: var(--t-xs); color: var(--side-dim); line-height: 1.4; white-space: normal; }
.rail-foot b { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-scan { display: flex; align-items: flex-start; gap: 6px; }
.rail-scan .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 5px; background: var(--green); box-shadow: 0 0 0 3px rgba(21, 115, 71, .25); }
.rail-scan .dot.is-bad { background: var(--error); box-shadow: 0 0 0 3px rgba(177, 14, 50, .25); } .rail-scan .dot.is-warn { background: var(--amber-dot); box-shadow: 0 0 0 3px rgba(201, 138, 0, .25); }
.rail-scan .dot.is-live { background: var(--red); box-shadow: 0 0 0 3px rgba(214, 24, 0, .25); } .rail-scan .dot.is-none { background: var(--idle-dot); box-shadow: none; }
.rail-tz { color: var(--side-dim); }
/* The round button on the sidebar's edge collapses it to icons. */
.rail-flip, button.rail-flip { position: absolute; inset-inline-end: -13px; top: 22px; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--white); color: var(--muted); box-shadow: 0 2px 6px rgba(18, 20, 23, .1); z-index: 1; }
.rail-flip .ms, button.rail-flip .ms { font-size: 16px; }
.rail-flip:hover, button.rail-flip:hover { border-color: var(--ink); color: var(--ink); }
.sidebar.is-collapsed { width: var(--side-w-min); padding-inline: 12px; }
.sidebar.is-collapsed .brand { padding-inline: 8px; }
.sidebar.is-collapsed .brand .word { display: none; }
.sidebar.is-collapsed .side-nav > a { padding: 0 10px; }
.sidebar.is-collapsed .side-nav > a > .label, .sidebar.is-collapsed .rail-label, .sidebar.is-collapsed .rail-foot { display: none; }
.sidebar.is-collapsed .tab-badge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: var(--t-xs); }
.sidebar.is-collapsed nav.dev-rail { padding-inline-start: 0; }
.sidebar.is-collapsed .rail-item { padding: 0 10px; border-inline-start-color: transparent; }
.sidebar.is-collapsed .rail-n { position: absolute; top: 2px; inset-inline-end: 2px; transform: scale(.85); }
.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.toolbar { position: sticky; top: 0; z-index: var(--z-bar); height: var(--nav-h); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 10px; padding: 0 var(--s-6); }
.toolbar .brand { display: none; font-size: 22px; }
.toolbar .brand .plus { font-size: 22px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex: none; }
/* The search: one box that goes to Jobs. */
.cmd { position: relative; display: flex; align-items: center; width: min(420px, 100%); margin: 0; }
.cmd > .ms { position: absolute; inset-inline-start: 11px; font-size: 18px; color: var(--muted); pointer-events: none; }
.cmd input { width: 100%; height: 36px; padding-inline: 36px 56px; border-radius: var(--r-sm); border: 1px solid var(--control); background: var(--head); font-size: 13.5px; }
.cmd input:focus { background: var(--white); }
.cmd kbd { position: absolute; inset-inline-end: 8px; font: inherit; font-size: var(--t-xs); color: var(--muted); border: 1px solid var(--control); border-radius: 4px; padding: 0 6px; background: var(--white); line-height: 18px; pointer-events: none; }
.bar-pill { height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--control); background: var(--white); font: inherit; font-size: var(--t-sm);
  font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color var(--d-fast) ease, color var(--d-fast) ease; }
.bar-pill:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.bar-pill .ms { font-size: 18px; }
.lang-toggle { height: 36px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--control); background: var(--white); font: inherit; font-size: var(--t-sm);
  font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; direction: ltr; transition: border-color var(--d-fast) ease; }
.lang-toggle:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.lang-toggle span:not(.off):not(.slash) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.lang-toggle .off { color: var(--muted); font-weight: 500; } .lang-toggle .slash { color: var(--control); font-weight: 500; }
/* The account menu: a <details>, so it opens without script too. */
details.account { position: relative; }
details.account > summary { list-style: none; cursor: pointer; height: 36px; padding-block: 0; padding-inline: 3px 8px; border-radius: var(--r-sm);
  border: 1px solid var(--control); background: var(--white); display: inline-flex; align-items: center; gap: 6px; transition: border-color var(--d-fast) ease; }
details.account > summary::-webkit-details-marker { display: none; }
details.account > summary:hover, details.account[open] > summary { border-color: var(--ink); }
details.account > summary .ms { font-size: 18px; color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: var(--r-xs); background: var(--red); color: var(--white); font-size: var(--t-xs); font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; letter-spacing: .02em; flex: none; }
.account-menu { position: absolute; inset-inline-end: 0; top: 44px; width: 264px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-menu); padding: 6px; z-index: var(--z-menu); animation: menu-in var(--d-menu) var(--ease-out); }
details.account.is-closing .account-menu { animation: menu-out var(--d-menu) var(--ease-in) forwards; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes menu-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-4px); } }
.account-menu .who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.account-menu .who-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; flex: 1; }
.account-menu .who b { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .who .email { display: block; font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }
.account-menu .who .who-text { min-width: 0; flex: 1; }
.plan-pill { font-size: var(--t-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 5px; background: var(--chip); color: var(--muted); white-space: nowrap; flex: none; }
.plan-pill.is-premium { background: var(--ink); color: var(--white); }
.account-menu a, .account-menu button.menu-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; padding: 8px 10px; border: 0; border-radius: var(--r-xs);
  background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: none; text-align: start; cursor: pointer; line-height: 1.4; }
.account-menu a:hover, .account-menu button.menu-item:hover { background: var(--chip-2); color: var(--ink); text-decoration: none; border: 0; }
.account-menu a .ms, .account-menu button.menu-item .ms { font-size: 18px; color: var(--muted); }
.account-menu .menu-divider { height: 1px; background: var(--divider); margin: 4px 0; }
.account-menu form { margin: 0; }
/* The visitor's header (Landing, Premium, sign in, and every page seen signed
   out): the serif wordmark, then Premium, Sign in (or Dashboard), EN / עב
   and Create account. */
header.marketing-head { position: sticky; top: 0; z-index: var(--z-bar); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--hairline); }
header.marketing-head .site-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
header.marketing-head .brand, .auth-top .brand { font-size: 26px; }
header.marketing-head .brand .plus, .auth-top .brand .plus { font-size: 26px; }
header.marketing-head nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
header.marketing-head nav a.plain { padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 14.5px; color: var(--ink); text-decoration: none; transition: background-color var(--d-fast) ease; }
header.marketing-head nav a.plain:hover { background: var(--chip); color: var(--ink); }
header.marketing-head nav a.plain[aria-current="page"] { background: var(--chip); font-weight: 600; }
header.marketing-head .lang-toggle, .auth-top .lang-toggle { height: 36px; padding: 0 10px; font-size: var(--t-sm); gap: 6px; }
header.marketing-head .lang-toggle { margin-inline: 6px; }
header.marketing-head nav .button-primary { height: 40px; padding: 0 18px; font-size: var(--t-base); }
header.marketing-head .bar-pill { height: 40px; }
@media (max-width: 1199px) {
  .bar-pill.feedback-button { width: 36px; padding: 0; justify-content: center; }
  .bar-pill.feedback-button .label { display: none; }
  .cmd { width: min(320px, 100%); }
}
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar-wrap { position: fixed; inset-inline: 0; bottom: 0; top: auto; height: auto; z-index: var(--z-bar); }
  .sidebar, .sidebar.is-collapsed { position: static; width: 100%; height: 64px; padding: 6px 4px 8px; flex-direction: row; align-items: stretch; overflow: visible; }
  .sidebar .brand, .sidebar nav.dev-rail, .sidebar .rail-foot, .rail-flip, button.rail-flip { display: none; }
  .side-nav { flex-direction: row; flex: 1; gap: 2px; }
  .side-nav > a, .sidebar.is-collapsed .side-nav > a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: auto; padding: 0 2px; font-size: var(--t-xs); overflow: visible; }
  .side-nav > a[aria-current="page"] { background: transparent; }
  .side-nav > a[aria-current="page"]::before { display: none; }
  .side-nav > a[aria-current="page"] > .ms { color: var(--red); }
  .side-nav > a > .ms { font-size: 22px; }
  .sidebar.is-collapsed .side-nav > a > .label { display: inline; }
  .tab-badge, .sidebar.is-collapsed .tab-badge { position: absolute; top: 0; inset-inline-start: calc(50% + 6px); margin: 0; transform: none; }
  .toolbar { padding: 0 12px; gap: 8px; }
  .toolbar .brand { display: inline-flex; }
  .cmd { width: 36px; transition: width var(--d-base) var(--ease-out); }
  .cmd:focus-within { width: 100%; }  /* the box opens while it is used */
  .toolbar:has(.cmd:focus-within) .brand, .toolbar:has(.cmd:focus-within) .toolbar-right { display: none; }
  .cmd input { padding-inline: 36px 8px; }
  .cmd kbd { display: none; }
  .toolbar .lang-toggle { padding: 0 8px; }
  .workspace { padding-bottom: 64px; }
  body.has-assistant .workspace { padding-bottom: 64px; }
  main { padding: var(--s-5) var(--s-4) 48px; }
  .page-head { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-4)) var(--s-5); padding: 20px var(--s-4); }
  body.console .assistant:not(.assistant-page) { bottom: 78px; }  /* above the tab bar */
}

/* --- footer -------------------------------------------------------------------- */
footer.site { border-top: 1px solid var(--hairline); background: var(--surface); }
footer.site .site-inner { max-width: none; margin: 0; padding: 14px var(--s-7); font-size: 12.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer.site.narrow-page .site-inner, footer.site.wide .site-inner { max-width: none; }
footer.site a { color: var(--muted); text-decoration: underline; text-underline-offset: .16em; }
footer.site a:hover { color: var(--ink); }
footer.site a.foot-feedback { margin-inline-start: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
footer.site a.foot-feedback:hover { color: var(--ink); text-decoration: none; }
footer.site a.foot-feedback .ms { font-size: 16px; }
body.has-assistant footer.site .site-inner { padding-bottom: 88px; }
/* The visitor's footer: the brand and the line, then a nav. */
body.marketing footer.site { border-top-color: var(--hairline); }
body.marketing footer.site .site-inner { max-width: 1200px; margin: 0 auto; padding: 28px; gap: 16px 32px; justify-content: space-between; font-size: 13.5px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foot-brand .brand { font-size: 20px; }
.foot-brand .brand .plus { font-size: 20px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site .foot-nav a { color: var(--muted); }
footer.site .foot-nav a:hover { color: var(--ink); }

/* --- the feedback dialog (and the /feedback page's form) ------------------------- */
dialog.feedback-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 20px 22px 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-dialog); overflow: auto; }
dialog.feedback-dialog[open] { animation: dialog-in var(--d-dialog) var(--ease-out); }
dialog.feedback-dialog::backdrop { background: rgba(18, 20, 23, .45); }
dialog.feedback-dialog[open]::backdrop { animation: fade-in var(--d-dialog) ease; }
dialog.feedback-dialog.is-closing { animation: dialog-out var(--d-dialog) var(--ease-in) forwards; }
dialog.feedback-dialog.is-closing::backdrop { animation: fade-out var(--d-dialog) ease forwards; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
.feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.feedback-dialog .fb-meta { margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); text-wrap: pretty; }
.feedback-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.feedback-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.feedback-form legend { font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; padding: 0; }
.feedback-topics .topic-list { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; margin: 0; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--white); font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: border-color var(--d-fast) ease, background-color var(--d-fast) ease, color var(--d-fast) ease; }
.topic-chip:hover { border-color: var(--ink); color: var(--ink); }
.topic-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.topic-chip .ms { font-size: 16px; color: var(--muted); }
.topic-chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.topic-chip:has(input:checked) .ms { color: var(--white); }
.topic-chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.feedback-form textarea { font-size: var(--t-base); line-height: 1.5; border-radius: var(--r-sm); padding: 10px 12px; min-height: 0; }
.feedback-email { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: var(--t-sm); font-weight: 400; color: var(--ink-2); }
.feedback-email input { height: 38px; margin: 0; font-size: var(--t-base); border-radius: var(--r-sm); }
.feedback-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback-foot .fb-send { height: 40px; padding: 0 18px; font-size: var(--t-base); }
.feedback-foot .fb-send .ms { font-size: 18px; font-weight: 500; }
.fb-page { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); min-width: 0; max-width: 100%; }
.fb-page .ms { font-size: 16px; }
.fb-page code { font-size: var(--t-xs); color: var(--ink-2); background: var(--chip-2); padding: 1px 7px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
[data-feedback-status] { font-size: var(--t-sm); color: var(--muted); }
[data-feedback-status].warn, .feedback-foot .warn { color: var(--error); font-weight: 600; }
.fb-sent { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--success-panel); border: 1px solid var(--success-line); }
.fb-sent-mark { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--green); color: var(--white); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fb-sent-mark .ms { font-size: 21px; font-weight: 500; }
.fb-sent .fb-sent-text { flex: 1; min-width: 0; }
.fb-sent .fb-sent-text b { display: block; font-size: var(--t-md); }
.fb-sent .fb-sent-text span { font-size: var(--t-sm); color: var(--ink-2); }
.fb-sent .button { height: 34px; padding: 0 12px; font-size: var(--t-sm); border-color: var(--success-line); }

/* --- print, reduced motion ------------------------------------------------------- */
@media print { .sidebar-wrap, .sidebar, .toolbar, header.marketing-head, footer.site, .assistant, .filter-bar, .rail-flip { display: none !important; } .shell, .workspace { display: block; } *, ::before, ::after { animation: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) {
  :root { --d-fast: 0ms; --d-base: 0ms; --d-slow: 0ms; --d-enter: 0ms; --d-stagger: 0ms; }
  *, ::before, ::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ring, .flash, main > *, .page-head > *, .bar-fill, .pane.is-loading, .sweep > span, .dots i, .pulse-dot { animation: none !important; }
}

/* ============================================================================
   Page rules below: each section is rewritten page by page onto the layer
   above (the shell, the tokens, the components).
   ============================================================================ */
/* --- tables (dev page, companies, rules) ------------------------------------ */
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
details > summary { cursor: pointer; }
details.how { margin: 0 0 16px; max-width: 70ch; }
details.how summary { color: var(--accent); font-weight: 700; }
details.how p { margin: 8px 0 0; }
code { font-family: var(--mono); font-size: max(12px, .85em); color: var(--ink); }
.divider { color: var(--muted); font-size: 13px; text-align: center; display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.cv-viewer .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.cv-viewer .back-link:hover { color: var(--ink); text-decoration: none; }
.cv-viewer .back-link .ms { font-size: 18px; }
.cv-viewer-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 16px; }
.cv-viewer-title { min-width: 0; }
.cv-viewer-title .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.eyebrow.red { color: var(--red); }
.gen-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--red); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; line-height: 1; }
.cv-viewer-title h1 { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 30px); }
.cv-viewer-title .meta { margin: 0; font-size: 14.5px; }
.cv-viewer-title .cv-why { margin-top: 4px; font-size: 13px; max-width: 80ch; }
.cv-viewer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-viewer-actions .button { height: 42px; gap: 8px; }
.cv-viewer-actions .button .ms { font-size: 19px; }
.cv-honest { display: inline-flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 11px 16px; border-radius: 14px; background: var(--navy-wash); color: var(--navy); font-size: 14px; }
.cv-honest .ms { font-size: 20px; line-height: 1.05; }
/* Built while the reviewer could not run: a warning, not the "checked" note. */
.cv-honest.is-unchecked { background: var(--amber-wash); color: var(--amber); }
.cv-desk { border-radius: var(--r-md); border: 1px solid var(--hairline); overflow: hidden; background: var(--desk); }
.cv-frame { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; min-height: 480px; border: 0; background: var(--desk); }
.notes { list-style: none; padding: 0; }
.notes li { padding: 8px 0; border-bottom: 1px solid var(--line); }
/* --- the scan's progress (Developer › Scans & filtering): the base task-card look ------ */
.scan-progress { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 18px; box-shadow: var(--shadow-card); }
.scan-progress-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scan-progress-head strong { font-size: 14.5px; }
.scan-count { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-wash); flex: none; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 7px rgba(214, 24, 0, .07); } }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
.scan-progress .scan-bar { height: 4px; border-radius: 2px; margin: 12px 0 14px; }
.scan-progress[data-running="true"] .scan-bar .bar-fill { background-image: linear-gradient(90deg, var(--red) 0 60%, rgba(255, 255, 255, .35) 80%, var(--red)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
/* One line and one bar per lane while the boards and LinkedIn run side by side. */
.scan-lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px 24px; }
.scan-lanes .lane { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.scan-lanes .lane-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: var(--t-sm); }
.scan-lanes .lane-label { font-weight: 600; color: var(--ink); }
.scan-lanes .lane-stage { font-size: var(--t-xs); font-weight: 600; padding: 0 7px; border-radius: var(--r-xs); background: var(--chip); color: var(--ink-2); }
.scan-lanes .lane-count { margin-inline-start: auto; font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.scan-lanes .lane-bar { height: 4px; border-radius: 2px; }
.scan-lanes .lane-bar .bar-fill { background: var(--ink); border-radius: 0; }
.scan-lanes .lane + .lane .lane-bar .bar-fill { background: var(--linkedin); }  /* the second lane is LinkedIn */
.scan-lanes .lane-text { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.scan-current { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.seg-applied { background: var(--navy); } .seg-in_progress { background: var(--ok); } .seg-rejected { background: var(--line-3); } .seg-forfeited { background: var(--line); }
.seg-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.seg-legend b { color: var(--muted); } .seg-legend .applied b { color: var(--navy); } .seg-legend .in_progress b { color: var(--ok); }

/* --- dashboard (design v3): the band, four KPI cards, the best-matches table, the review card --- */
.dash-head { align-items: flex-end; gap: 16px 24px; }
.dash-hello { min-width: 0; max-width: 760px; }
.dash-date { margin: 0 0 6px; font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600; color: var(--side-dim); }
.dash-head h1 { margin: 0 0 8px; }
.dash-head .meta { text-wrap: pretty; }
.dash-head .meta .warn { color: var(--amber); font-weight: 500; }
.dash-head .dash-feed { box-shadow: var(--e-red); }
.dash-head .dash-feed .ms { font-size: 18px; font-weight: 500; }
/* The numbers: four cards. */
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.dash-stats .stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; }
.dash-stats a.stat:hover { color: var(--ink); text-decoration: none; border-color: var(--control); }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600; color: var(--muted); }
.stat-label .ms { font-size: 18px; letter-spacing: normal; }
.stat-num { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-sub, .stat-foot { font-size: 12.5px; color: var(--muted); }
.stat-foot { margin-top: auto; }
.stat-sub b, .stat-foot b { color: var(--ink); }
.stat-go { font-weight: 600; color: var(--red); }
.stat-bar { display: flex; gap: 2px; height: 4px; border-radius: 2px; overflow: hidden; background: var(--track); }
.stat-bar > span { display: block; min-width: 2px; }
.stat-bar .seg-excellent { background: var(--excellent); } .stat-bar .seg-great { background: var(--seg-great); }
.stat-bar .seg-good { background: var(--seg-good); } .stat-bar .seg-look { background: var(--seg-look); }
.stat-bar .seg-applied { background: var(--navy); } .stat-bar .seg-in_progress { background: var(--green); }
.stat-bar .seg-rejected { background: var(--disabled); } .stat-bar .seg-forfeited { background: var(--control-2); }
.stat-sub.seg-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.seg-legend b { color: var(--muted); } .seg-legend .applied b { color: var(--navy); } .seg-legend .in_progress b { color: var(--green); }
@media (max-width: 1100px) { .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Two columns: the best matches, and the review beside what is new. */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1024px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-col { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dash-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.dash-top { min-width: 0; overflow: hidden; }
.dash-card-head, .review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--divider); }
.dash-card-head h2, .review-head h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.dash-card-head .meta { margin: 2px 0 0; font-size: var(--t-sm); }
.dash-card-head .more { white-space: nowrap; }
/* The best matches as a table: Fit · Posting · Why · Age. */
.top-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 220px) auto; gap: 14px; padding: 9px 16px; background: var(--head); border-bottom: 1px solid var(--hairline);
  font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.top-head .end { text-align: end; }
.top-fits { list-style: none; margin: 0; padding: 0; }
.top-fits a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-auto-rows: auto; gap: 2px 14px; align-items: center; min-height: 44px; padding: 10px 16px;
  border-bottom: 1px solid var(--divider-2); color: var(--ink); text-decoration: none; transition: background-color var(--d-fast) ease; }
.top-fits li:last-child a { border-bottom: 0; }
.top-fits a:hover { background: var(--surface-hover); color: var(--ink); text-decoration: none; }
.top-fits .ring { grid-column: 1; align-self: center; }
.top-main { min-width: 0; display: block; grid-column: 2; }
.row-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-title .t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-where { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-reason { display: inline-block; margin-top: 4px; font-size: var(--t-xs); padding: 2px 7px; border-radius: var(--r-xs); background: var(--amber-wash); color: var(--amber); font-weight: 500; line-height: 1.35; white-space: normal; max-width: 100%; }
.top-reason.good { background: var(--success-panel); color: var(--green); }
.top-age { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.top-age .ms { font-size: 18px; color: var(--muted); }
.age { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (min-width: 760px) {
  .top-fits a { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 220px) auto; }
  .top-fits .ring { grid-row: 1 / span 2; }
  .top-main { display: contents; }
  .row-title, .top-where { grid-column: 2; }
  .top-reason { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
  .top-age { grid-column: 4; grid-row: 1 / span 2; }
  .top-age .ms { display: none; }
}
@media (max-width: 759px) { .top-head { display: none; } }
.locked-box { margin: 16px 18px 18px; }
.locked-box .lock-tile { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--hairline); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.locked-box p { margin: 0; max-width: 42ch; }
/* Last night's review. */
.dash-review { padding: 0; }
.review-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.review-head .meta { font-size: var(--t-sm); margin: 0; }
.review-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--red); color: var(--white); font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.review-body { padding: 16px 18px; font-size: var(--t-base); line-height: 1.6; color: var(--ink-text); }
.review-body p { margin: 0 0 8px; } .review-body p:last-child { margin-bottom: 0; }
.review-body ul, .review-body ol { margin: .3em 0 .6em; padding-inline-start: 1.2em; }
.review-body a, .msg-body a.posting-ref { font-weight: 600; }
.review-none { margin: 0; padding: 16px 18px; }
.review-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; align-items: center; border-top: 1px solid var(--divider); background: var(--head); border-radius: 0 0 var(--r-md) var(--r-md); }
.review-reply { gap: 6px; }
.review-reply .ms { font-size: 17px; }
.dash-review .rate-msg { margin: 0; margin-inline-start: auto; }
.dash-review .rate-msg .rate-more { flex-basis: 100%; }
.dash-review .rate-msg button.thumb { width: 32px; height: 28px; }
.dash-review .rate-msg button.thumb .ms { font-size: 17px; }
/* A change Hunter made, with its Undo: a compact chip in the chat, a full row in the review. */
.change { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--hairline); border-radius: var(--r-xs);
  background: var(--head); font-size: 12.5px; color: var(--ink); }
.change > .ms { font-size: 17px; color: var(--muted); flex: none; }
.change-id { font-family: var(--mono); font-size: var(--t-xs); color: var(--navy); background: var(--navy-code-wash); border-radius: var(--r-xs); padding: 1px 5px; flex: none; }
.change-what { min-width: 0; }
.change.is-undone .change-what { text-decoration: line-through; color: var(--muted); }
.change-state { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.change form { flex: none; margin: 0; }
button.change-undo { height: auto; padding: 0; border: 0; border-radius: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
button.change-undo:hover { background: none; color: var(--red); border: 0; }
.dash-review .change { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 18px; border: 0; border-top: 1px solid var(--divider-2); border-radius: 0; background: none; font-size: var(--t-sm); }
/* Free: the dark promo card. */
.dash-promo { border-radius: var(--r-md); padding: 24px; }
.dash-promo h2 { margin: 0 0 8px; font-size: var(--t-xl); font-weight: 600; line-height: 1.4; max-width: 18ch; }
.dash-promo p { margin: 0 0 18px; max-width: 40ch; }
/* The running task's title line (the base's .task-card). */
.task-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.task-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .dash-stats { gap: 10px; }
  .dash-stats .stat { padding: 12px 14px; }
  .stat-num { font-size: 28px; }
}

/* --- select with an icon chevron (the selects in bars and actions) ---------------- */
.select-wrap { position: relative; display: inline-flex; flex: none; max-width: 100%; }
.select-wrap select { background-image: none; padding-inline-end: 32px; max-width: 100%; }
.select-wrap > .ms { position: absolute; inset-inline-end: 9px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
select.select-pill { height: 36px; padding-inline: 12px 32px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 500; }
/* As wide as the chosen option, where the browser can (the rest size to the longest). */
select.select-pill, .job-actions .state-form select { field-sizing: content; }
.ms.flip-rtl { transition: none; }
[dir="rtl"] .ms.flip-rtl { transform: scaleX(-1); }
.button-dashed { border-style: dashed; border-color: var(--line-strong); }
.button-dashed:hover { border-color: var(--ink); }

/* --- tags on a posting -------------------------------------------------------- */
.tag.tag-recruiter { background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); padding: 1px 7px; gap: 4px; }
.tag.tag-recruiter .ms { font-size: 13px; color: var(--muted); }
.tag.tag-contact { background: var(--navy-wash); color: var(--navy); padding: 1px 7px; gap: 4px; }
.tag.tag-contact .ms { font-size: 13px; }
.tag-state-applied { background: var(--navy-wash); color: var(--navy); }
.tag-state-in_progress { background: var(--green-wash); color: var(--green); }
.tag-state-rejected, .tag-state-forfeited { background: var(--chip); color: var(--muted); }
.tag-state-not_interested { background: var(--error-wash); color: var(--error); }
.src-chip { font-size: var(--t-xs); font-weight: 500; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--control); background: var(--white); color: var(--ink-2); white-space: nowrap; }
/* A tooltip's trigger sits above the row's link overlay, so it can be hovered. */
.feed .row .tip { position: relative; z-index: 1; }
.tip:has(> [hidden]) { display: none; }
.tip > .tip-text:empty { display: none; }

/* --- Jobs: the band — the title, the count line, the filters --------------------- */
.jobs-band { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px var(--s-7) 18px; }
.jobs-band > * { min-width: 0; max-width: 100%; }
.jobs-band-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.jobs-band h1 { font-size: 30px; margin: 0 0 2px; }
.jobs-band .feed-summary { margin: 0; font-size: 13.5px; color: var(--dark-text); }
.jobs-band .feed-summary b { color: var(--white); font-variant-numeric: tabular-nums; }
.jobs-band .feed-summary .sep { margin: 0 6px; }
.jobs-band .feed-summary .fit-why { color: var(--side-dim); }
.jobs-band a.new-toggle { height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--on-dark-border); background: transparent; color: var(--white); font-size: var(--t-sm);
  font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; transition: border-color var(--d-fast) ease, background-color var(--d-fast) ease; }
.jobs-band a.new-toggle:hover { border-color: var(--white); background: var(--side-hover); color: var(--white); text-decoration: none; }
.jobs-band a.new-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.jobs-band a.new-toggle.on { background: var(--white); border-color: var(--white); color: var(--ink); }
.jobs-band a.new-toggle.on:hover { color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.filter-bar .spacer { flex: 1; }
.filter-search { flex: 1 1 240px; max-width: 340px; }
.filter-search input { height: 36px; padding-inline: 36px 12px; background: var(--side-hover); border-color: rgba(255, 255, 255, .22); color: var(--white); font-size: 13.5px; }
.filter-search input::placeholder { color: var(--side-dim); }
.filter-search input:hover { border-color: rgba(255, 255, 255, .4); }
.filter-search input:focus, .filter-search input:focus-visible { background: rgba(255, 255, 255, .12); border-color: var(--white); box-shadow: none; }
.filter-search > .ms { inset-inline-start: 11px; font-size: 18px; color: var(--side-dim); }
.filter-bar select.select-pill { background-color: var(--side-hover); border-color: rgba(255, 255, 255, .22); color: var(--white); font-weight: 500; }
.filter-bar select.select-pill:hover { border-color: rgba(255, 255, 255, .4); }
.filter-bar select.select-pill:focus-visible { border-color: var(--white); box-shadow: none; }
.filter-bar select.select-pill option { color: var(--ink); background: var(--white); }
.filter-bar .select-wrap > .ms { color: var(--side-dim); }
.fit-tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--side-hover); border: 1px solid var(--side-line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.fit-tabs::-webkit-scrollbar { display: none; }
.fit-tabs a { flex: none; height: 28px; padding: 0 10px; border-radius: var(--r-xs); color: var(--side-text); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: background-color var(--d-base) var(--ease-out), color var(--d-fast) ease; }
.fit-tabs a:hover { color: var(--white); background: var(--side-hover); text-decoration: none; }
.fit-tabs a[aria-current="page"] { background: var(--white); color: var(--ink); }
.fit-tabs .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.fit-tabs .dot-all { background: var(--white); } .fit-tabs .dot-great { background: var(--ring-great); } .fit-tabs .dot-good { background: var(--good); }
.fit-tabs .dot-look { background: var(--ring-look); } .fit-tabs .dot-unread { background: rgba(255, 255, 255, .4); } .fit-tabs .dot-long { background: rgba(255, 255, 255, .25); }
.fit-tabs a[aria-current="page"] .dot-all { background: var(--ink); }
.fit-tabs .n { font-size: var(--t-xs); font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.filter-bar .button.focus-only { height: 36px; background: transparent; border-color: var(--on-dark-border); color: var(--white); }
/* A keyboard change does not apply itself (app.js): the Apply button comes into view. */
form[data-filter-form].is-dirty .focus-only { position: static; width: auto; height: 36px; margin: 0; padding: 0 14px; overflow: visible; clip: auto; white-space: nowrap; }
.filter-bar .button-locked { background: transparent; border-color: var(--on-dark-border); color: var(--white); }
.filter-bar .button-locked:hover { border-color: var(--white); color: var(--white); }

/* --- Jobs: the list as one card ---------------------------------------------------- */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.feed-layout.has-pane { grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); }
.feed-col { min-width: 0; }
.feed-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; background: var(--head); border-bottom: 1px solid var(--hairline); }
.list-head .caps { font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 600; }
ol.feed { list-style: none; margin: 0; padding: 0; background: var(--surface); }
.feed .row { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px;
  background: var(--white); border-top: 1px solid var(--divider-2); color: var(--ink); transition: background-color var(--d-fast) ease; }
.feed .row:first-child { border-top: 0; }
.feed .row:hover { background: var(--surface-hover); }
.feed .row[aria-current="true"] { background: var(--red-row); }
.feed .row[aria-current="true"]::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.feed .row .main { min-width: 0; color: var(--ink); text-decoration: none; display: block; }
.feed .row .main::after { content: ""; position: absolute; inset: 0; }
.feed .row .main:hover { color: var(--ink); text-decoration: none; }
.feed .row .main:focus-visible { outline: none; }
.feed .row:has(.main:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.feed .row-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.feed .row-title .t { font-weight: 600; font-size: var(--t-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .row.is-seen .row-title .t { font-weight: 500; color: var(--ink-2); }
.feed .row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: normal; overflow: visible; }
.feed .row-sub .tag { margin: 0; }
.feed .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.feed .chips:empty { display: none; }
.feed .chips .band, .feed .chips .why { margin: 0; font-size: var(--t-xs); padding: 2px 7px; line-height: 1.35; }
.feed .chips .why { white-space: normal; max-width: 100%; }
.feed .side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; position: relative; z-index: 1; }
.feed .age { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.feed .row.is-hidden-by-rule { opacity: .75; }
.feed .row.is-moved { opacity: .55; }
.moved-note { display: inline-block; font-size: var(--t-xs); color: var(--muted); background: var(--chip-2); border-radius: var(--r-xs); padding: 2px 7px; }
button.star { width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted); }
button.star .ms { font-size: 20px; }
button.star:hover { background: var(--chip); color: var(--ink); border: 0; }
button.star.on, button.star.on:hover { color: var(--red); }
/* Mark as unread, under the star: on the selected row, and on hover or focus. */
.feed .unread-form { display: none; }
.feed .row[aria-current="true"] .unread-form, .feed .row:hover .unread-form, .feed .row:focus-within .unread-form { display: inline-flex; }
.feed button.unread { width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted); }
.feed button.unread .ms { font-size: 18px; }
.feed button.unread:hover { background: var(--chip); color: var(--ink); border: 0; }
.feed button.unread.on { color: var(--red); }
.feed-empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.feed-empty a { font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 14px; background: var(--head); border-top: 1px solid var(--hairline); margin: 0; flex-wrap: wrap; }
.pager a, .pager span { height: 28px; min-width: 28px; padding: 0 8px; border-radius: var(--r-xs); border: 1px solid var(--control); background: var(--white); color: var(--ink); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.pager span[aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager span.gap { border: 0; background: none; min-width: 0; padding: 0 4px; color: var(--muted); }
.pager span.off { border-color: var(--hairline); color: var(--disabled); }
.pager .ms { font-size: 16px; }

/* --- Jobs: the panel ------------------------------------------------------------- */
.pane { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md); min-width: 0; box-shadow: var(--shadow-card); }
.pane[aria-busy="true"] { opacity: .55; transition: opacity var(--d-fast) ease; }
.pane[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .6) 50%, transparent 80%) 200% 0 / 200% 100% no-repeat; animation: shimmer 1.2s linear infinite; }
.pane > .pane-head, .pane > .pane-body { animation: rise var(--d-base) var(--ease-out) both; }
.pane-head { position: relative; padding: 22px 26px 18px; border-bottom: 1px solid var(--hairline); }
.pane-head .own-page { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border: 1px solid var(--control); border-radius: var(--r-sm); background: var(--white); color: var(--muted); }
.pane-head .own-page:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.pane-head .own-page .ms { font-size: 18px; }
.pane-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-inline-end: 44px; }
.pane-title-main { min-width: 0; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.pane-title h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: pretty; }
.pane-title .where { margin: 0; font-size: var(--t-base); color: var(--muted); }
.pane-head > .flash { margin: 14px 0 0; }
.ring-stack { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 30px; }
.ring-stack .band { margin: 0; }
.unread-pill { flex: none; height: 30px; padding: 0 10px; border-radius: var(--r-sm); background: var(--chip); color: var(--muted); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-top: 30px; }
.unread-pill .ms { font-size: 16px; }
/* Who you know there: the reminder, and the editor below the actions. */
.contact-banner { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--navy-wash); color: var(--navy); font-size: 13.5px; }
.contact-banner .ms { font-size: 20px; }
.contact-banner .contact-text { flex: 1; min-width: 0; }
.contact-banner b { color: var(--navy); }
.contact-banner .note { color: var(--navy); opacity: .85; }
.contact-banner .contact-edit { font-size: var(--t-sm); font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: .15em; }
.contact-banner .contact-edit:hover { color: var(--ink); }
.contact-box { margin-top: 12px; }
.contact-box > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--muted); cursor: pointer; }
.contact-box > summary::-webkit-details-marker { display: none; }
.contact-box > summary:hover { color: var(--ink); }
.contact-box > summary .ms { font-size: 17px; }
/* With a mark, the reminder's Edit opens the editor (base.html's <noscript>
   brings the summary back for a browser without script). */
.contact-box.has-contact > summary { display: none; }
.contact-box[open] > summary { margin-bottom: 8px; }
.contact-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--head); margin: 0; }
.contact-at { font-size: var(--t-sm); color: var(--muted); }
.contact-check { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13.5px; font-weight: 600; }
.contact-form input[type=text] { flex: 1 1 200px; min-width: 0; height: 36px; margin: 0; font-size: 13.5px; }
.contact-form .button { height: 36px; }

/* The actions: Apply on each source, Save and Not interested stacked, the status. */
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 16px; }
.job-actions form { margin: 0; }
.job-actions .apply { height: 36px; padding: 0 14px; gap: 6px; }
.job-actions .apply .ms { font-size: 17px; font-weight: 500; }
.job-actions .actions-spacer { flex: 1; }
.job-actions .actions-divider { width: 1px; height: 36px; background: var(--hairline); margin: 0 4px; }
.actions-stack { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.actions-stack form { display: flex; }
.actions-stack .button, .actions-stack button.star { width: 100%; justify-content: center; }
.job-actions button.star { height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600; gap: 6px; }
.job-actions button.star .ms { font-size: 18px; color: var(--muted); }
.job-actions button.star:hover { border-color: var(--ink); background: var(--white); }
.job-actions button.star.on { color: var(--red); border-color: var(--red); }
.job-actions button.star.on .ms { color: var(--red); }
.job-actions button.nope { height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 13.5px; gap: 6px; }
.job-actions button.nope .ms { font-size: 17px; font-weight: 500; color: var(--muted); }
.job-actions button.nope:hover { border-color: var(--error); color: var(--error); }
.job-actions button.nope.on { background: var(--error-wash); border-color: var(--error); color: var(--error); }
.job-actions button.nope.on .ms { color: var(--error); }
.job-actions .state-form select { height: 36px; padding-inline: 12px 32px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 600; width: auto; }
.job-actions .state-form select.state-new { background-color: var(--white); color: var(--ink); border-color: var(--line-strong); }
.job-actions .state-form select.state-applied { background-color: var(--navy-wash); color: var(--navy); border-color: var(--navy-wash); }
.job-actions .state-form select.state-in_progress { background-color: var(--green-wash); color: var(--green); border-color: var(--green-wash); }
.job-actions .state-form select.state-rejected, .job-actions .state-form select.state-forfeited { background-color: var(--chip); color: var(--muted); border-color: var(--chip); }
.job-actions .state-form select.state-applied + .ms { color: var(--navy); }
.job-actions .state-form select.state-in_progress + .ms { color: var(--green); }
.job-actions button.unread { height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--control); background: var(--white); color: var(--muted); gap: 6px; font-size: 13.5px; font-weight: 600; }
.job-actions button.unread .ms { font-size: 18px; }
.job-actions button.unread:hover { border-color: var(--ink); color: var(--ink); }
.job-actions button.unread.on { color: var(--red); }
.when-on { display: none; }
.on > .when-on, .on .label > .when-on { display: inline; }
.on > .when-off, .on .label > .when-off { display: none; }
/* The job page's row: taller. */
.job-actions.is-big { margin-top: 20px; }
.job-actions.is-big .apply { height: 40px; padding: 0 16px; font-size: var(--t-base); }
.job-actions.is-big .apply .ms { font-size: 18px; }
.job-actions.is-big .apply.is-first { box-shadow: var(--e-red); }
.job-actions.is-big button.star, .job-actions.is-big button.nope, .job-actions.is-big button.unread { height: 40px; }
.job-actions.is-big .state-form select { height: 40px; padding-inline: 14px 34px; }
.job-actions.is-big .state-form .select-wrap > .ms { inset-inline-end: 12px; }
/* Why not: once Not interested is pressed. */
.why-box { margin-top: 12px; padding: 14px; border: 1px solid var(--red-line); border-radius: var(--r-sm); background: var(--red-paper); }
.why-label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 10px; }
.why-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.why-picks .pick { position: relative; margin: 0; }
.why-picks input, .chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.why-picks span, .chip-radio span { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: var(--r-xs); border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink); font-size: var(--t-sm); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color var(--d-fast) ease, border-color var(--d-fast) ease; }
.why-picks span:hover, .chip-radio span:hover { border-color: var(--ink); }
.why-picks input:checked + span, .chip-radio input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 600; }
.why-picks input:focus-visible + span, .chip-radio input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.why-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.why-row input[type=text] { flex: 1 1 180px; height: 36px; font-size: 13.5px; margin: 0; }
.why-row .button { height: 36px; }
.why-saved { font-size: var(--t-sm); color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.why-saved .ms { font-size: 16px; font-weight: 500; }

/* --- the panel's body: the posting, the report, the CV, how it got here --------------- */
.pane-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 24px; }
.flow { background: var(--head); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px 18px; }
.flow .section-label { margin-bottom: 14px; }
.flow .section-label .b-excellent { color: var(--excellent); } .flow .section-label .b-great { color: var(--green); }
.flow .section-label .b-good { color: var(--good-ink); } .flow .section-label .b-look { color: var(--amber); } .flow .section-label .b-long { color: var(--muted); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow-steps .step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.flow-steps .step::before { content: ""; position: absolute; inset-inline-start: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--hairline); }
.flow-steps .step:last-child::before { display: none; }
.flow-steps .step-mark { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--chip); color: var(--muted); position: relative; z-index: 1; }
.flow-steps .step-mark .ms { font-size: 14px; font-weight: 600; }
.flow-steps .step.pass .step-mark { background: var(--green-wash); color: var(--green); }
.flow-steps .step.fail .step-mark { background: var(--error-wash); color: var(--error); }
.flow-steps .step.wait .step-mark { background: var(--amber-wash); color: var(--amber); }
.flow-steps .step.ai .step-mark { background: var(--ink); color: var(--white); }
.flow-steps .step-body { min-width: 0; padding-bottom: 14px; }
.flow-steps .step:last-child .step-body { padding-bottom: 2px; }
.flow-steps .step-head { margin: 2px 0 6px; font-size: 13.5px; line-height: 1.5; }
.flow-steps .step-head .b-excellent { color: var(--excellent); font-weight: 600; } .flow-steps .step-head .b-great { color: var(--green); font-weight: 600; }
.flow-steps .step-head .b-good { color: var(--good-ink); font-weight: 600; } .flow-steps .step-head .b-look { color: var(--amber); font-weight: 600; }
.flow-steps .step.skip .step-head { color: var(--muted); }
.flow-steps .step-head b { color: var(--ink); }
.flow-steps .meta { margin: 0; font-size: var(--t-sm); }
.asks { margin: 0 0 8px; font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.asks .pill { padding: 1px 8px; font-size: 12.5px; font-weight: 400; }
.asks .pill-neutral { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.asks .pill-over { background: var(--error-wash); border-color: var(--error-wash); color: var(--error); }
ul.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
ul.reasons li { display: flex; gap: 8px; align-items: baseline; }
ul.reasons li > span[aria-hidden] { flex: none; font-weight: 700; }
ul.reasons li.up > span[aria-hidden] { color: var(--green); }
ul.reasons li.down > span[aria-hidden], ul.reasons li.note > span[aria-hidden] { color: var(--muted); }
ul.reasons .why-text { flex: 1; min-width: 0; }
ul.reasons .pts { margin-inline-start: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow ul.reasons:not(.fits):not(.minus) li > span[aria-hidden] { font-size: var(--t-xs); }
ul.reasons.fits, ul.reasons.minus { gap: 3px; }
ul.reasons.minus { color: var(--ink-2); }
.reasons-head { margin: 10px 0 4px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step-head + .reasons-head { margin-top: 6px; }
.ask-button { margin-top: 10px; height: 30px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.ask-button .ms { font-size: 16px; color: var(--red); }
.your-rules { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); font-weight: 600; }
.your-rules .ms { font-size: 15px; }
/* Was this reading right? */
.rate-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.rate-thumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.rate-q { font-size: var(--t-sm); color: var(--ink-2); margin-inline-end: 2px; }
button.thumb { width: 36px; height: 30px; padding: 0; border-radius: var(--r-xs); border: 1px solid var(--line-strong); background: var(--white); color: var(--muted); }
button.thumb .ms { font-size: 17px; }
button.thumb:hover { border-color: var(--ink); color: var(--ink); }
button.thumb-up[aria-pressed="true"] { background: var(--green-wash); border-color: var(--green); color: var(--green); }
button.thumb-down[aria-pressed="true"] { background: var(--chip); border-color: var(--ink); color: var(--ink); }
.rate-status { font-size: 12.5px; color: var(--muted); }
.rate-more { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rate-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip-radio { position: relative; margin: 0; }
.chip-radio span { font-size: 12.5px; }
.rate-line { display: flex; gap: 6px; flex-wrap: wrap; }
.rate-line input[type=text] { flex: 1 1 200px; min-width: 0; height: 34px; margin: 0; padding: 0 12px; font-size: var(--t-sm); }
.rate-line .rate-send { height: 34px; padding: 0 12px; font-size: 12.5px; }
.rate-more:not(:has(input[name=topic]:checked)) .rate-send { opacity: .5; }
/* The posting as fields (24 and 26 Oct 2026): the stated facts as a strip, then the description, requirements and advantages. */
.stated-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0 0 14px; border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.stated-facts div { min-width: 0; padding: 9px 12px; background: var(--head); border-inline-start: 1px solid var(--divider); display: flex; flex-direction: column; gap: 2px; }
.stated-facts div:first-child { border-inline-start: 0; }
.stated-facts dt { font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.stated-facts dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.stated-head { margin: 14px 0 4px; font-size: var(--t-base); font-weight: 600; color: var(--ink); }
.posting-card .stated-head:first-of-type, .stated-facts + .stated-head { margin-top: 4px; }
.stated-list { margin: 0; padding-inline-start: 1.2em; font-size: var(--t-base); line-height: 1.55; max-width: 70ch; display: flex; flex-direction: column; gap: 3px; color: var(--ink-text); overflow-wrap: anywhere; }
.stated-text { font-size: var(--t-base); line-height: 1.6; max-width: 70ch; color: var(--ink-text); overflow-wrap: anywhere; }
.stated-text p { margin: 0 0 6px; }
.stated-text .stated-list { margin: 0 0 6px; }
.posting-note { margin: 14px 0 0; font-size: var(--t-sm); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.posting-note .ms { font-size: 17px; }
.empty-note { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 14px 16px; color: var(--muted); max-width: 62ch; margin: 0; }
/* Report a problem with this posting: a bordered fold row. */
.report-box { margin-top: -6px; font-size: 13.5px; }
.report-box > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color var(--d-fast) ease, color var(--d-fast) ease; }
.report-box > summary::-webkit-details-marker { display: none; }
.report-box > summary:hover, .report-box[open] > summary { border-color: var(--ink); color: var(--ink); }
.report-box > summary .ms { font-size: 18px; color: var(--muted); }
.report-box > summary .chev { margin-inline-start: auto; transition: transform var(--d-base) var(--ease-out); }
.report-box[open] > summary .chev { transform: rotate(180deg); }
.report-form { margin: 10px 0 0; padding: 12px 16px 14px; border: 1px solid var(--hairline); border-radius: var(--r-sm); gap: 10px; max-width: 560px; }
.report-form legend { padding: 0; margin-bottom: 4px; font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; text-transform: none; }
.report-topics { display: flex; flex-direction: column; }
.radio-line { display: flex; align-items: center; gap: 10px; padding: 5px 0; margin: 0; font-size: 13.5px; font-weight: 400; cursor: pointer; }
.radio-line input { flex: none; }
.report-form input[type=text] { height: 36px; margin: 0; font-size: 13.5px; }
.report-form .button { height: 34px; }
.report-done { margin: 10px 0 0; font-size: 13.5px; padding: 10px 14px; align-items: center; }
.report-done::before { font-size: 18px; }
/* A CV for this role: a card with an icon tile. */
.cv-box { border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 14px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: var(--white); }
.cv-box .cv-plus { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; font-weight: 900; flex: none; line-height: 1; }
.cv-box .cv-text { min-width: 0; }
.cv-box h3 { margin: 0 0 2px; font-size: var(--t-base); }
.cv-box p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.cv-box form { margin: 0; }
.cv-box .button { height: 34px; padding: 0 12px; }
.cv-lang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block-end: 8px; }
.cv-built { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: var(--t-sm); font-weight: 600; }
.cv-built .ms { font-size: 16px; }
.cv-building, .cv-outcome { margin-top: -12px; }
.button-locked-cv { align-self: flex-start; height: 36px; font-size: 13.5px; }
.button-locked-cv .ms { font-size: 17px; }
.locked-card { background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 20px; text-align: center; }
.locked-card .lock-tile { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--ground); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.locked-card .lock-tile .ms { font-size: 21px; }
.locked-card p { margin: 12px 0 14px; font-size: var(--t-base); color: var(--muted); }

/* --- the job page ------------------------------------------------------------------- */
main.job-main { padding-top: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.back-link .ms { font-size: 18px; }
.back-link:hover { color: var(--ink); text-decoration: none; }
article.job-page { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.job-head { padding: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.job-head .main { min-width: 0; flex: 1 1 440px; }
.job-head .job-meta { font-size: var(--t-sm); margin-bottom: 10px; }
.job-head .job-id { font-family: var(--mono); font-size: var(--t-xs); }
.job-head h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin: 0 0 6px; }
.job-head .where { margin: 0; color: var(--muted); font-size: var(--t-lg); }
.job-head .flash { margin: 16px 0 0; padding: 10px 14px; align-items: center; }
.job-head .contact-banner { margin-top: 16px; padding: 10px 14px; font-size: var(--t-base); max-width: 640px; }
.job-head .why-box, .job-head .contact-box { max-width: 640px; }
.job-head .why-box { margin-top: 14px; padding: 14px 16px; }
.job-head .contact-box { margin-top: 14px; }
.job-head .contact-box > summary { font-size: 13.5px; }
.score-card { flex: 0 1 320px; min-width: 260px; border-radius: var(--r-md); padding: 16px 18px; display: flex; align-items: center; gap: 16px;
  background: var(--success-panel); border: 1px solid var(--success-line); }
.score-card .score-words { min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--green); }
.score-card .score-words b { display: block; font-size: var(--t-lg); margin-bottom: 2px; }
.score-card.b-excellent .score-words b { color: var(--excellent); }
.score-card.b-great .score-words b { color: var(--green); }
.score-card.b-good { background: var(--good-wash); border-color: var(--good-wash); } .score-card.b-good .score-words { color: var(--good-ink); } .score-card.b-good .score-words b { color: var(--good-ink); }
.score-card.b-look { background: var(--amber-wash); border-color: var(--amber-wash); } .score-card.b-look .score-words { color: var(--amber); } .score-card.b-look .score-words b { color: var(--amber); }
.score-card.b-long, .score-card.b-none { background: var(--head); border-color: var(--hairline); } .score-card.b-long .score-words, .score-card.b-none .score-words { color: var(--muted); }
.score-card.b-long .score-words b, .score-card.b-none .score-words b { color: var(--ink-2); }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.job-body { min-width: 0; padding: clamp(20px, 3vw, 32px); }
.job-body .section-label { margin-bottom: 12px; }
.job-body .stated-text, .job-body .stated-list { font-size: var(--t-md); line-height: 1.65; max-width: 68ch; }
.job-body .posting-note { margin-top: 18px; font-size: 13.5px; }
.job-body .report-box { margin-top: 18px; }
.job-side { min-width: 0; padding: clamp(20px, 3vw, 32px); background: var(--head); border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 22px; }
.job-side .cv-box { grid-template-columns: 40px minmax(0, 1fr); }
.job-side .cv-box form { grid-column: 1 / -1; margin-top: 4px; }
.job-side .cv-box .button { width: 100%; }
@media (min-width: 920px) {
  .job-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
  .job-side { border-top: 0; border-inline-start: 1px solid var(--hairline); position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
}
/* How it got here, at the bottom of the page (26 Oct 2026). */
.job-foot { padding: clamp(20px, 3vw, 32px); border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 18px; }
.job-foot .flow { background: none; border: 0; border-radius: 0; padding: 0; max-width: 80ch; }
.job-foot .your-rules { margin-top: 0; }

@media (max-width: 919px) {
  .feed-layout.has-pane { grid-template-columns: minmax(0, 1fr); }
  .pane { display: none; }
}
@media (max-width: 760px) {
  .jobs-band { padding: 18px var(--s-4) 14px; }
  .jobs-band h1 { font-size: 26px; }
  .filter-search { max-width: none; flex-basis: 100%; }
  .filter-bar .select-wrap { flex: 1 1 40%; } .filter-bar .select-wrap select { width: 100%; }
  .fit-tabs { flex-basis: 100%; }
  .job-actions .actions-spacer { display: none; }
  .actions-stack { flex-direction: row; }
  .stated-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stated-facts div:nth-child(2n+1) { border-inline-start: 0; }
  .stated-facts div:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .fit-tabs { min-width: 0; }
}
@media (max-width: 640px) {
  main.wide .jobs-band { margin-top: -12px; }
  .feed .row { gap: 10px; padding: 12px; }
}

/* --- my status ------------------------------------------------------------- */
/* My status (design v3): the band carries the counts and Download; the
   overview card holds the chips, the legend and the bar; then one card per
   group (In progress, Saved, Closed), a <details> with a header strip, a
   column header and one grid row per posting — its pill, last change, the
   two selects (the stage's "Other…" reveals a box for your own words, CSS
   only) and the ⋯ menu — its history as a stepper folded under it. The
   foot is a two-column grid of cards: the people you know, the earlier
   tracker's notes, the statuses file, the email. */
.status-head .page-intro { max-width: 680px; }
.head-side { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px 28px; }
.bstat { display: flex; gap: 28px; }
.bstat > div { display: flex; flex-direction: column; gap: 2px; }
.bstat .n { font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--white); }
.bstat .l { font-size: var(--t-xs); color: var(--side-dim); }
/* Pills with a tone (My status and My profile). */
.pill-amber { background: var(--amber-wash); color: var(--amber); border-color: transparent; }
.pill-green { background: var(--green-wash); color: var(--green); border-color: transparent; }
.pill-navy { background: var(--navy-wash); color: var(--navy); border-color: transparent; }
.pill-grey { background: var(--chip); color: var(--muted); border-color: transparent; }
/* The overview. */
.status-overview { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.overview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.status-chips a { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--control); background: var(--white); color: var(--ink); font-size: var(--t-sm); font-weight: 600; gap: 7px; text-decoration: none; transition: border-color var(--d-fast) ease; }
.status-chips a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); flex: none; }
.status-chips a[data-group-link="in_progress"]::before { background: var(--green); }
.status-chips a[data-group-link="saved"]::before { background: var(--red); }
.status-chips a[data-group-link="closed"]::before { background: var(--disabled); }
.status-chips a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.status-chips .n { font-size: var(--t-xs); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.status-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-sm); color: var(--muted); }
.status-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend > span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--disabled); flex: none; }
.status-legend .lg-applied::before { background: var(--navy); } .status-legend .lg-in_progress::before { background: var(--green); }
.status-legend .lg-rejected::before { background: var(--error); } .status-legend .lg-archived::before { display: none; }
.status-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.status-bar { display: flex; gap: 2px; height: 10px; border-radius: 3px; overflow: hidden; background: var(--track); }
.status-bar span { display: block; min-width: 0; }
.status-bar .seg-applied { background: var(--navy); } .status-bar .seg-in_progress { background: var(--green); }
.status-bar .seg-rejected { background: var(--error); } .status-bar .seg-forfeited { background: var(--disabled); }
/* One card per group. */
.app-group { margin: 0 0 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; scroll-margin-top: calc(var(--nav-h) + 16px); }
.app-group:has(.app-menu[open]) { overflow: visible; position: relative; z-index: var(--z-menu); }  /* the ⋯ menu of the last row hangs below the card, over the next one (each card is a stacking context while it rises) */
.app-group:has(.app-menu[open]) > summary { border-radius: var(--r-md) var(--r-md) 0 0; }
.app-group > summary { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; cursor: pointer; padding: 12px 18px; background: var(--head); }
.app-group > summary::-webkit-details-marker { display: none; }
.app-group[open] > summary { border-bottom: 1px solid var(--divider); }
.app-group > summary h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
#group-closed > summary h2 { color: var(--muted); }
.app-group > summary .n { font-size: var(--t-xs); font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.app-group > summary .meta { margin: 0; margin-inline-start: 4px; }
.app-group > summary .chev { margin-inline-start: auto; color: var(--muted); transition: transform var(--d-base) var(--ease-out); }
.app-group[open] > summary .chev { transform: rotate(180deg); }
ol.apps { list-style: none; margin: 0; padding: 0; }
/* The column header and each row share one grid: posting | status | last change | the selects | ⋯. */
.apps-head, .app-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 22%) 72px 300px 32px; gap: 12px; align-items: center; }
#group-saved .apps-head, #group-saved .app-line { grid-template-columns: minmax(0, 1fr) minmax(150px, 22%) 72px 160px 140px; }
.apps-head { padding: 8px 18px; font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--hairline); }
.app-row { border-top: 1px solid var(--divider-2); padding: 10px 18px; background: var(--surface); transition: background-color var(--d-fast) ease; }
.app-row:first-child { border-top: 0; }
.app-row:hover { background: var(--surface-hover); }
.app-row.is-archived { background: var(--head); }
.app-name { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.app-name a, .app-name .t { font-weight: 600; font-size: var(--t-base); color: var(--ink); }
.app-name a:hover { color: var(--red); text-decoration: none; }
.app-co { font-size: var(--t-sm); color: var(--muted); }
.app-stage { min-width: 0; }
.app-at { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.saved-star { font-size: 18px; }
.inline-star { font-size: 1.05em; vertical-align: -.15em; }
.app-row .tag { font-weight: 600; }
.tag-archived { background: var(--chip); color: var(--muted); }
.st-pill { max-width: 100%; min-height: 24px; padding: 2px 8px; border-radius: var(--r-xs); font-size: var(--t-xs); font-weight: 600; line-height: 1.4; display: inline-flex; align-items: center; gap: 5px; background: var(--chip); color: var(--muted); }
.st-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.st-applied { background: var(--navy-wash); color: var(--navy); }
.st-in_progress { background: var(--green-wash); color: var(--green); }
.st-rejected { background: var(--error-wash); color: var(--error); }
.st-forfeited { background: var(--chip); color: var(--muted); }
/* The selects; "Other…" on the stage reveals the box for your own words, with or without script. */
.app-update { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; min-width: 0; }
.app-update select { height: 32px; padding-block: 0; padding-inline: 10px 30px; border-radius: var(--r-xs); font-size: 12.5px; font-weight: 500; width: auto; }
.app-update select[name=status], .app-update select[name=state] { width: 122px; }
.app-update select[name=stage] { width: 150px; }
.app-update .select-wrap > .ms { inset-inline-end: 8px; font-size: 16px; }
.app-update .button-small { height: 32px; }
.app-update .stage-text { display: none; flex: 1 1 100%; min-width: 0; height: 32px; padding: 0 10px; border-radius: var(--r-xs); font-size: var(--t-sm); }
.app-update:has(select[name=stage] option[value="other"]:checked) .stage-text { display: block; }
.app-saved { font-size: var(--t-xs); font-weight: 600; color: var(--green); white-space: nowrap; }
.app-saved.is-error { color: var(--error); }
/* The ⋯ menu: Archive and Remove, a <details> so it works without script. */
.app-menu { position: relative; justify-self: end; }
.app-menu > summary { list-style: none; width: 28px; height: 28px; border: 1px solid var(--control); border-radius: var(--r-xs); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; transition: border-color var(--d-fast) ease, color var(--d-fast) ease; }
.app-menu > summary::-webkit-details-marker { display: none; }
.app-menu > summary:hover, .app-menu[open] > summary { border-color: var(--ink); color: var(--ink); }
.app-menu > summary .ms { font-size: 16px; }
.app-menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: var(--z-menu); min-width: 180px; padding: 6px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); box-shadow: var(--shadow-menu); display: flex; flex-direction: column; animation: menu-in var(--d-menu) var(--ease-out); }
.app-menu-list form { margin: 0; display: block; }
.app-menu-list button.linklike { display: flex; width: 100%; padding: 8px 10px; border-radius: var(--r-xs); font-size: var(--t-sm); font-weight: 500; color: var(--ink); text-decoration: none; text-align: start; }
.app-menu-list button.linklike:hover { background: var(--chip-2); color: var(--ink); }
.app-menu-list button.linklike.danger-hover:hover { background: var(--error-wash); color: var(--error); }
/* Saved: Remove from saved at the row's end. */
.app-end { justify-self: end; }
.app-end form { margin: 0; }
.app-end button.linklike { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.app-end button.linklike:hover { color: var(--error); }
/* History and notes, folded under the row: the stepper and the note. */
.app-more > summary { list-style: none; width: max-content; margin-top: 4px; font-size: 12.5px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.app-more > summary::-webkit-details-marker { display: none; }
.app-more > summary::after { content: "expand_more"; font-family: 'Material Symbols Rounded'; font-size: 16px; line-height: 1; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; transition: transform var(--d-base) var(--ease-out); }
.app-more[open] > summary::after { transform: rotate(180deg); }
.app-more > summary:hover { color: var(--ink); }
.detail-in { margin: 10px 0 4px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.app-row .sub { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.app-row .sub.reason { color: var(--ink-2); }
.app-note { margin: 0; }
.app-note input { width: min(100%, 420px); height: 32px; padding: 0 10px; border-radius: var(--r-xs); font-size: var(--t-sm); }
/* The stepper: each step a column (its dot, the step, the date and note), joined by a line; the last step green. */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 0; }
.timeline > li { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; min-width: 0; max-width: 240px; font-size: var(--t-sm); line-height: 1.4; }
.timeline > li[aria-hidden] { flex: 1 1 24px; min-width: 24px; max-width: none; padding-top: 7px; }
.timeline .link { display: block; height: 2px; background: var(--navy); margin-inline-end: 6px; }
.timeline .dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 2px solid var(--navy); flex: none; }
.timeline .lbl { order: 1; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.timeline .at { order: 2; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .tnote { order: 3; font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }
.timeline > li:last-child .dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.timeline .dot-rejected, .timeline > li:last-child .dot-rejected { background: var(--error); border-color: var(--error); box-shadow: 0 0 0 4px var(--error-wash); }
.timeline .dot-forfeited, .timeline > li:last-child .dot-forfeited { background: var(--faint); border-color: var(--muted); box-shadow: 0 0 0 4px var(--chip); }
.timeline > li:not(:last-child) .dot-rejected, .timeline > li:not(:last-child) .dot-forfeited { box-shadow: none; }
/* Nothing yet. */
.status-empty { display: block; margin: 0 0 18px; text-align: center; line-height: 1.6; }
/* The foot: the people you know, the earlier notes, the statuses file, the email — cards in two columns. */
.status-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.status-side > * { margin: 0; }
.contacts-box, .notes-box { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
section.contacts-box > .contacts-head, .mail-summary, .notes-box > summary { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--divider); }
.contacts-icon { color: var(--navy); display: inline-flex; flex: none; }
.contacts-icon .ms { font-size: 20px; }
.contacts-box h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.contacts-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.contacts-body .meta { margin: 0; }
.contacts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.contacts-list li { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--control); border-radius: var(--r-sm); background: var(--white); font-size: var(--t-sm); }
.contact-top { display: inline-flex; align-items: center; gap: 6px; }
.contact-top a { font-weight: 600; color: var(--ink); }
.contact-top a:hover { color: var(--red); }
.contact-note { font-size: var(--t-xs); color: var(--muted); }
/* Gmail on My status (19 Oct 2026), folded (26 Oct 2026). */
.mail-summary { list-style: none; cursor: pointer; }
.mail-summary::-webkit-details-marker { display: none; }
.mail-summary .contacts-icon { color: var(--muted); }
.mail-summary h2 { flex: 0 1 auto; }
.mail-summary .n { margin-inline-start: auto; font-size: var(--t-xs); font-weight: 600; padding: 2px 7px; border-radius: var(--r-xs); background: var(--amber-wash); color: var(--amber); white-space: nowrap; }
.mail-summary .chev { margin-inline-start: auto; color: var(--muted); transition: transform var(--d-base) var(--ease-out); }
.mail-summary .n + .chev { margin-inline-start: 0; }
.mail-box[open] > .mail-summary .chev { transform: rotate(180deg); }
.mail-box:not([open]) > .mail-summary, .notes-box:not([open]) > summary { border-bottom: 0; }
.mail-box > :not(summary), .notes-box > :not(summary) { margin: 12px 18px 0; }
.mail-box[open], .notes-box[open] { padding-bottom: 14px; }
.mail-box > .contacts-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.mail-head-text { flex: 1 1 240px; min-width: 0; }
.mail-head-text .meta { margin: 0; }
.mail-ops { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mail-ops .button { height: 32px; padding: 0 11px; font-size: 12.5px; }
.mail-sub { font-size: var(--t-base); font-weight: 600; margin: 14px 0 4px; }
.mail-sub .n { color: var(--muted); font-weight: 600; }
.mail-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mail-list li { border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.mail-list li.mail-done { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.mail-top { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.mail-top b { overflow-wrap: anywhere; }
.mail-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mail-confirm select { max-width: min(100%, 420px); }
.tag-mail-rejection { background: var(--error-wash); color: var(--error); }
.tag-mail-interview, .tag-mail-offer, .tag-mail-assessment { background: var(--navy-wash); color: var(--navy); }
/* The earlier tracker's notes (read only) and the statuses file, folded. */
.notes-box > summary { cursor: pointer; list-style: none; font-weight: 600; font-size: var(--t-lg); }
.notes-box > summary::-webkit-details-marker { display: none; }
.notes-box > summary .ms { color: var(--muted); font-size: 20px; }
.notes-box > summary .n { font-size: var(--t-xs); font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 7px; }
.notes-box > .meta { max-width: 70ch; }
.notes-box .cv-drop { margin-bottom: 0; }
.notes-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.notes-list li { border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 10px 14px; }
.note-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--t-base); }
.note-head .meta { font-size: 12.5px; margin-inline-start: auto; }
.note-body { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.tag.tag-note-lesson { background: var(--green-wash); color: var(--green); }
.tag.tag-note-open { background: var(--amber-wash); color: var(--amber); }
.tag.tag-note-note { background: var(--chip); color: var(--muted); }
@media (max-width: 900px) {
  .apps-head { display: none; }
  .app-line, #group-saved .app-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .app-name { order: 0; flex: 1 1 60%; }
  .app-menu, .app-end { order: 1; margin-inline-start: auto; }
  .app-stage { order: 2; }
  .app-at { order: 3; }
  .app-update { order: 4; flex: 1 1 100%; }
  .head-side { align-items: flex-start; }
  .app-group > summary .meta { display: none; }
  .timeline > li { max-width: 160px; }
  .status-side { grid-template-columns: 1fr; }
}

/* --- my profile (design v3) ----------------------------------------------------- */
/* My profile: the band (Hidden by your limits with its count, Quick check), a
   sticky sub-nav beside the cards. Each card has a header strip (a numbered
   square, the title, a line, a tag at the end), then a table, tiles or rows.
   Your files, Hidden by your limits and the quick check share the cards. */
.profile-head .page-intro { max-width: 640px; }
.profile-head .button .count { background: var(--side-on); color: var(--white); }
.profile-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-steps { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--nav-h) + 20px); }
.profile-steps a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid transparent; border-inline-start-width: 2px; color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: background-color var(--d-fast) ease, color var(--d-fast) ease; }
.profile-steps a:hover { background: var(--white); color: var(--ink); text-decoration: none; }
.profile-steps a[aria-current] { color: var(--ink); font-weight: 600; background: var(--white); border-color: var(--hairline); border-inline-start-color: var(--red); }
.profile-steps a .ms { font-size: 18px; }
.profile-steps a .badge { margin-inline-start: auto; }
.profile-steps a.steps-foot { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.profile-steps a.steps-foot .ms { font-size: 16px; }
.profile-steps a.steps-foot:hover { color: var(--error); }
.profile-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card.profile-card { margin: 0; padding: 0; overflow: hidden; scroll-margin-top: calc(var(--nav-h) + 20px); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--divider); }
.card-head-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.card-head h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.card-head .meta { margin: 0; max-width: 72ch; }
.card-head > .meta, .card-head > .tag { flex: none; margin-inline-start: auto; }
.card-head > .meta { font-size: var(--t-sm); white-space: nowrap; }
.sec-num { width: 24px; height: 24px; border-radius: var(--r-xs); background: var(--ink); color: var(--white); font-size: var(--t-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: flex-start; margin-top: 2px; }
.sec-num.sec-num-plus { background: var(--red); font-family: var(--font-display); font-size: 17px; }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.card-body > * { margin: 0; }
.card-note { margin: 0; padding: 10px 18px 0; }
.card.profile-card > .card-note:last-child, .filter-switch > .card-note:last-child { padding-bottom: 14px; }
.filter-switch { padding-bottom: 0; }
/* Tables in the cards: a caps header on --head, 44px rows. */
.profile-card table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.profile-card .tb th { text-align: start; font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 18px; background: var(--head); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.profile-card .tb td { padding: 10px 18px; border-bottom: 1px solid var(--divider-2); vertical-align: middle; }
.profile-card .tb tr:last-child td { border-bottom: 0; }
.profile-card .tb .end { text-align: end; white-space: nowrap; }
.profile-card .tb .end form, .profile-card .tb .end .inline-form { display: inline; margin: 0; }
.profile-card .tb td.meta { color: var(--muted); font-size: var(--t-sm); }
.profile-card .def-table th.k { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); background: transparent; border-top: 0; border-bottom: 1px solid var(--divider-2); width: 200px; padding: 10px 18px; vertical-align: top; white-space: normal; }
.profile-card .def-table tr:last-child th.k { border-bottom: 0; }
/* The three files as tiles. */
.file-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.file-tiles .tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--hairline); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; min-width: 0; }
.file-tiles .tile:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.file-tiles .ic { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--chip); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.file-tiles .tile b { font-size: var(--t-base); }
.file-tiles .tile .meta { margin: 0; }
.file-tiles .prev { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.file-tiles .go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--red); margin-top: auto; }
.file-tiles .go .ms { font-size: 15px; }
/* The keeper's lines: a mark, the line, its actions (the general .kept-* rules sit later in the file: these win by specificity). */
.kept-intro { gap: 4px; }
.kept-intro h3 { margin: 0; font-size: var(--t-base); }
.profile-card .kept-list { list-style: none; margin: 0; padding: 0; display: block; }
.profile-card .kept-line { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 18px; margin: 0; border: 0; border-top: 1px solid var(--divider-2); border-radius: 0; }
.profile-card .kept-line.is-pending { background: color-mix(in srgb, var(--amber-wash) 45%, var(--white)); }
.kept-mark { font-size: 18px; color: var(--muted); margin-top: 1px; }
.kept-mark.is-pending { color: var(--amber); }
.kept-mark.is-applied { color: var(--green); }
.profile-card .kept-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-card .kept-statement { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.profile-card .kept-text .meta { margin: 0; }
.profile-card .kept-ops { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.profile-card .kept-ops form { margin: 0; }
.profile-card .kept-history { margin: 0; padding: 0 0 6px; }
.profile-card .kept-history > summary { padding: 12px 18px; font-weight: 600; cursor: pointer; border-top: 1px solid var(--divider-2); }
.profile-card .kept-history > ol { list-style: none; margin: 0; padding: 0; }
.profile-card .kept-history > ol > li { padding: 0; }
.profile-card .kept-history > ol > li > .meta { display: block; padding: 10px 18px 0; }
.profile-card .kept-block { border: 0; border-radius: 0; padding: 0; margin: 0; }
/* The CVs: drop one on the box or choose it; the files as a table. */
.cv-drop { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--head); margin: 0; transition: border-color var(--d-fast) ease, background-color var(--d-fast) ease; }
.cv-drop.is-over { border-color: var(--ink); background: var(--white); }
.cv-drop-tile { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--red-wash); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cv-drop-tile .ms { font-size: 22px; }
.cv-drop-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.cv-drop-text b { font-size: var(--t-base); }
.cv-drop-text > span { font-size: var(--t-sm); color: var(--muted); }
.cv-drop input[type=text] { width: 200px; height: 36px; margin: 0; background: var(--white); }
label.cv-choose { position: relative; margin: 0; max-width: 260px; overflow: hidden; cursor: pointer; }
label.cv-choose:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
label.cv-choose [data-file-name] { overflow: hidden; text-overflow: ellipsis; }
label.cv-choose input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; inset-inline-start: 0; top: 0; }
.cv-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cv-icon { width: 34px; height: 34px; border-radius: 7px; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; flex: none; }
.cv-icon.long { letter-spacing: 0; }
.cv-icon.gen { background: var(--red); font-family: var(--font-display); font-size: 20px; letter-spacing: 0; }
.cv-table .file { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.cv-table .ops { display: inline-flex; gap: 4px; align-items: center; }
.cv-table .ops form { margin: 0; }
.button-text, a.button-text, button.button-text { height: 30px; padding: 0 10px; border: 0; background: transparent; font-size: var(--t-sm); color: var(--ink); }
.button-text:hover, a.button-text:hover, button.button-text:hover { background: var(--chip-2); border: 0; color: var(--ink); }
.button-text.red, button.button-text.red { color: var(--red); }
.button-text.red:hover, button.button-text.red:hover { color: var(--red); }
button.icon-button.danger { color: var(--error); }
button.icon-button.danger:hover { background: var(--error-wash); color: var(--error); }
button.icon-button.danger .ms { font-size: 19px; }
/* Your files (the segmented file tabs) and Hidden by your limits share the cards. */
.file-tabs.segmented { margin: 0 0 14px; display: inline-flex; }
.segmented > .file-tab { flex-direction: row; gap: 6px; min-width: 0; border: 0; }
.segmented > .file-tab .meta { font-size: var(--t-xs); font-weight: 500; }
.segmented > .file-tab.is-on { box-shadow: var(--shadow-seg); }
.card.profile-card.file-card { padding: 0; }
.profile-card .file-draft, .profile-card .kept-block, .profile-card .file-history { margin: 0; }
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; gap: 14px; }
  .profile-steps { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .profile-steps::-webkit-scrollbar { display: none; }
  .profile-steps a { white-space: nowrap; border: 1px solid var(--hairline); background: var(--white); }
  .profile-steps a.steps-foot { margin-top: 0; }
  .file-tiles { grid-template-columns: 1fr; }
  .card-head { flex-wrap: wrap; }
  .card-head > .meta { white-space: normal; margin-inline-start: 34px; }
  .profile-card .def-table th.k { width: 120px; }
  .profile-card .kept-line { grid-template-columns: 20px minmax(0, 1fr); }
  .profile-card .kept-line .kept-ops { grid-column: 2; }
}

/* --- Companies: the registry's foot and pager (the table itself is the base's table-card) --- */
.registry-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--hairline); background: var(--head); font-size: 12.5px; color: var(--muted); }
.registry-pager { margin: 0; padding: 10px 16px 14px; background: var(--head); }

/* --- errors (design v3): a centred card with the serif ghost "+" ------------------------ */
main.error-main { max-width: none; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.error-card { position: relative; width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 44px 40px 40px; text-align: center;
  box-shadow: var(--e-3); overflow: hidden; }
.error-card::before { content: "+"; position: absolute; inset-inline-end: -18px; top: -56px; font-family: var(--font-display); font-weight: 900; font-size: 200px; line-height: 1; color: var(--ground); }
.error-card > * { position: relative; }
.error-tile { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--chip); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.error-tile .ms { font-size: 28px; }
.error-tile.is-error { background: var(--error-wash); color: var(--error); }
.error-eyebrow { margin: 20px 0 6px; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.error-card h1 { margin: 0 0 8px; }
.error-body { margin: 0 0 24px; font-size: var(--t-md); color: var(--muted); }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.error-actions .button .ms { font-size: 19px; font-weight: 500; }

/* --- billing (design v3): the band, the plan card with its dark top ---------------- */
main.billing-main { max-width: 960px; }
.billing > .flash { margin: 0 0 16px; }
.plan-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.plan-top { border-radius: 0; padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.plan-name { display: flex; align-items: center; gap: 10px; }
.plan-name h2 { margin: 0; font-size: 22px; font-weight: 700; }
.plan-top h2 .plus { color: var(--red); }
.plan-top p { margin: 4px 0 0; font-size: var(--t-base); }
.plan-name .tag { font-size: var(--t-xs); letter-spacing: .06em; padding: 2px 9px; font-weight: 600; border-radius: var(--r-xs); background: var(--chip); color: var(--muted); }
.plan-name .tag.plan-active { background: var(--green); color: var(--white); }
.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.plan-price small { font-size: var(--t-base); font-weight: 500; letter-spacing: 0; color: var(--dark-text); }
.plan-meters { padding: 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
.meter-head { display: flex; justify-content: space-between; gap: 10px; font-size: var(--t-base); }
.meter-head > span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.meter-head .ms { font-size: 19px; }
.meter-head b { font-variant-numeric: tabular-nums; }
.meter-track { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; margin-top: 10px; }
.meter-track > span { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.meter-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.plan-flash { margin: 0 24px 16px; }
.plan-foot { padding: 14px 24px; background: var(--head); border-top: 1px solid var(--divider); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.plan-foot form { margin: 0; }
.plan-foot .button { gap: 8px; }
.plan-foot .meta { margin: 0; flex: 1 1 260px; font-size: var(--t-sm); }
.plan-free { padding: 0; }
.plan-free .plan-name { padding: 22px 24px 0; margin-bottom: 6px; }
.plan-lede { margin: 0; padding: 0 24px 18px; font-size: var(--t-md); color: var(--muted); }
.plan-adds { list-style: none; margin: 0; padding: 18px 24px 22px; border-top: 1px solid var(--divider); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; font-size: var(--t-base); }
.plan-adds li { display: flex; gap: 10px; }
.plan-adds .ms { flex: none; width: 22px; height: 22px; border-radius: var(--r-xs); background: var(--green-wash); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; }
.plan-free .plan-foot .button-tall { height: 42px; padding: 0 20px; }
.button-glow { box-shadow: var(--e-red); }
.billing-paddle { margin: 18px 4px 0; font-size: var(--t-sm); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.billing-paddle .ms { font-size: 18px; }

/* --- the visitor's pages (design v3): Landing, Premium ------------------------- */
/* Editorial: the dark hero band with the serif headline and a ghosted "+",
   the feed preview inside the band beside the text, the numbers in a
   ruled row, three ruled steps with a vignette each, the plan cards (Free
   white, Premium dark with its own ghosted "+") and the Top Expert+ band. */
/* The band clips its ghost "+"; the preview stays inside it. */
.hero-band { position: relative; z-index: 2; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-band::after { content: "+"; position: absolute; inset-inline-end: -40px; top: -120px; font-family: var(--font-display); font-size: 640px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .035); pointer-events: none; }
.hero { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-text { min-width: 0; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, .7); }
.plus-dot { width: 18px; height: 18px; border-radius: 4px; background: var(--red); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--t-sm); line-height: 1; flex: none; }
.hero h1 { margin: 26px 0 24px; font-family: var(--font-display); font-size: var(--t-hero); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--white); text-wrap: balance; }
.hero h1 .red, .closing h2 .red { color: var(--red); }
.hero .lede { margin: 0 0 32px; font-size: 18px; line-height: 1.55; color: var(--dark-text); max-width: 48ch; text-wrap: pretty; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .cta .button-xl { height: 52px; gap: 8px; }
.hero .cta .button:not(.button-primary) { background: transparent; border-color: var(--on-dark-border); color: var(--white); }
.hero .cta .button:not(.button-primary):hover { background: var(--side-hover); border-color: var(--white); color: var(--white); }
.hero .cta-note { margin: 20px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 6px; }
.hero .cta-note .ms { font-size: 18px; }
.cta-price { font-size: var(--t-base); color: var(--dark-text); }
/* The feed preview: a white card inside the band. */
.preview-frame { min-width: 0; background: var(--white); color: var(--ink); border: 1px solid var(--side-line); border-radius: var(--r-md); box-shadow: var(--e-4); overflow: hidden; }
.preview { background: var(--white); }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); background: var(--head); font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600; color: var(--muted); }
.preview-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--green); white-space: nowrap; }
.preview-head .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-wash); }
.preview-head .live.is-first { color: var(--muted); }
.preview-head .live.is-first .dot { background: var(--disabled); box-shadow: 0 0 0 3px var(--chip); }
.pr { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--divider-2); font-size: 13.5px; }
.pr:first-child { border-top: 0; }
.pr.is-current { background: var(--red-row); }
.pr.is-current::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 3px; background: var(--red); }
.pr-main { min-width: 0; }
.pr-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pr-title .t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sub { font-size: 12.5px; color: var(--muted); }
.pr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pr-band { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); font-weight: 600; padding: 2px 7px; border-radius: var(--r-xs); white-space: nowrap; }
.pr-band::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pr-band.band-excellent { background: var(--green-wash); color: var(--excellent); } .pr-band.band-great { background: var(--green-wash); color: var(--green); }
.pr-band.band-look { background: var(--amber-wash); color: var(--amber); }
.pr-chip { display: inline-flex; font-size: var(--t-xs); padding: 2px 7px; border-radius: var(--r-xs); background: var(--chip); color: var(--ink-2); }
.pr-chip.is-good { background: var(--success-panel); color: var(--green); }
.pr-age { font-size: var(--t-xs); color: var(--muted); }
.good { color: var(--green); }
/* "Why it scored 88": a hairline card inside its row, its title in caps. */
.why-card { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding: 10px 12px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.why-card b { font-size: var(--t-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 600; }
.preview-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--divider); background: var(--head); font-size: var(--t-xs); color: var(--muted); }
/* The numbers: serif figures in a ruled row. */
.stats-strip { background: var(--white); border-bottom: 1px solid var(--hairline); }
.stats-strip .inner { max-width: 1200px; margin: 0 auto; padding: 56px 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-strip .inner > div { padding: 0 24px; border-inline-start: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 6px; }
.stats-strip .inner > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats-strip .n { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-strip .n.red { color: var(--red); }
.stats-strip .l { font-size: var(--t-base); color: var(--muted); }
.stats-strip .l.sources { margin-top: 6px;  font-size: var(--t-sm); line-height: 1.45; max-width: 34ch; }
/* How it works: three ruled steps; the serif numeral, the vignette, the words. */
.how { max-width: 1200px; margin: 0 auto; padding: 96px 28px 104px; display: flex; flex-direction: column; gap: 56px; }
.how-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.how-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.how-head .lede { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps > li { display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--ink); padding-top: 22px; }
.step-copy { display: contents; }  /* its numeral, title and text join the column; the numeral moves above the vignette */
.step-copy .n { order: -1; font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.step-copy .n.red { color: var(--red); }
.step-copy h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.step-copy p { margin: -8px 0 0; font-size: var(--t-md); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.vignette { background: var(--ground); border: 1px solid var(--hairline); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 140px; justify-content: center; }
.v-line { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-xs); padding: 8px 10px; font-size: 12.5px; }
.v-line b { font-weight: 600; }
.v-line.is-off { opacity: .5; }
.v-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.v-line .m { color: var(--muted); }
.v-line .end { margin-inline-start: auto; color: var(--muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.v-switch { position: relative; width: 26px; height: 14px; border-radius: var(--r-pill); background: var(--disabled); flex: none; }
.v-switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.v-switch.is-on { background: var(--ink); } .v-switch.is-on::after { inset-inline-start: 14px; }
.v-tag { font-size: var(--t-xs); font-weight: 600; padding: 1px 6px; border-radius: 5px; }
.v-line .v-tag.is-navy { color: var(--navy); background: var(--navy-wash); } .v-line .v-tag.is-red { color: var(--error); background: var(--error-wash); }
.v-line .v-tag.is-amber { color: var(--amber); background: var(--amber-wash); }
.vignette.is-one { flex-direction: row; align-items: center; }
.v-score { flex: 1; display: flex; align-items: center; gap: 16px; }
.v-score > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.v-score b { font-size: var(--t-sm); color: var(--ink); }
/* The plans: Free on white, Premium dark with the ghosted "+". */
.plans-band { background: var(--ground); border-block: 1px solid var(--hairline); scroll-margin-top: 72px; }
.plans-inner { max-width: 1200px; margin: 0 auto; padding: 88px 28px; display: flex; flex-direction: column; gap: 40px; }
.plans-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.plans-head .eyebrow { margin: 0; letter-spacing: .1em; }
.plans-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.plans { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 960px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plans.big { max-width: 1000px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 36px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan h2, .plan h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.plans.big .plan h2 { font-size: 26px; }
.plan .price { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.plan .price small { font-family: var(--font); font-size: var(--t-sm); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan .plan-p { margin: 0; font-size: var(--t-md); color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.plans.big .plan-list { gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .tick { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; background: var(--green-wash); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.plan-list .tick .ms { font-size: 14px; font-weight: 500; }
.plan-list li.not { color: var(--muted); }
.plan-list li.not .tick { background: var(--chip); color: var(--muted); }
.plan-cta, .plan-cta-form { margin-top: auto; }
.plan-cta, button.plan-cta { width: 100%; height: 44px; font-size: var(--t-base); }
.plans.big .plan-cta, .plans.big button.plan-cta { height: 48px; font-size: var(--t-md); }
.plan-cta-form .plan-cta { margin-top: 0; }
.plan.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.plan.dark::before { content: "+"; position: absolute; inset-inline-end: -20px; top: -80px; font-family: var(--font-display); font-size: 300px; font-weight: 900; line-height: 1; color: rgba(214, 24, 0, .3); pointer-events: none; }
.plan.dark > * { position: relative; }
.plan.dark h2, .plan.dark h3, .plan.dark .price, .plan.dark b { color: var(--white); }
.plan.dark .plus { color: var(--red); }
.plan.dark .plan-p, .plan.dark .plan-list, .plan.dark .price small { color: var(--dark-text); }
.plan.dark .plan-list .tick { background: var(--red); color: var(--white); }
.plan.dark .plan-note { margin: 0; font-size: var(--t-sm); color: var(--side-dim); text-align: center; }
.plan.dark .plan-note.is-off { color: var(--dark-text); }
/* Part of Top Expert+. */
.te-wrap { max-width: 1200px; margin: 0 auto; padding: 80px 28px 88px; }
.te-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px 40px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-card); }
.te-mark { width: 72px; height: 72px; border-radius: var(--r-md); background: var(--red); color: var(--white); font-family: var(--font-display); font-size: 56px; font-weight: 900; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.te-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.te-text .eyebrow { margin: 0; }
.te-text h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.te-text p:last-child { margin: 0; font-size: var(--t-md); color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }
.te-band .button { gap: 6px; }
/* Premium: the hero's glimpse of a scored posting sits on the band, no overlap. */
.premium-hero { gap: 56px; }
.premium-hero h1 { font-size: clamp(40px, 4.8vw, 64px); }
.premium-hero .lede { max-width: 52ch; }
.glimpse-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 22px 16px; border-bottom: 1px solid var(--divider); }
.glimpse-title { min-width: 0; }
.glimpse-seen { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); }
.glimpse-job { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.glimpse-co { margin-top: 2px; font-size: var(--t-base); color: var(--muted); }
.glimpse-score { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.glimpse-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; font-size: var(--t-base); }
.glimpse-body .group-title { margin: 0 0 6px; }
.fit-line { display: flex; gap: 8px; margin-top: 4px; }
.fit-line .good, .fit-line > span:first-child { font-weight: 700; }
.fit-line.is-muted { color: var(--muted); }
.glimpse-foot { display: flex; align-items: center; gap: 10px; padding: 12px 22px 16px; border-top: 1px solid var(--divider); background: var(--head); font-size: 12.5px; }
.glimpse-foot .plus-dot { width: 22px; height: 22px; font-size: var(--t-sm); }
.glimpse-foot .glimpse-change { flex: 1; min-width: 0; }
.glimpse-foot code { margin-inline-end: 6px; padding: 0 5px; border-radius: 4px; background: var(--navy-code-wash); border: 1px solid var(--navy-wash); color: var(--navy); font-size: var(--t-xs); }
.glimpse-foot .undo { font-weight: 700; color: var(--red); }
/* Premium: three plain answers on a rule, then a closing call for a visitor. */
.faq { max-width: 1200px; margin: 0 auto; padding: 80px 28px 88px; }
.faq > h2 { margin: 0 0 32px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.faq-grid > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.faq-grid > div.is-red { border-top-color: var(--red); }
.faq-grid h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.faq-grid p { margin: 0; font-size: var(--t-md); color: var(--ink-2); text-wrap: pretty; }
.closing { max-width: 1200px; margin: 0 auto; padding: 0 28px 88px; }
.closing-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 36px 40px; background: var(--ground); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.closing h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.closing p { margin: 0; font-size: var(--t-md); color: var(--muted); }
.closing .button { height: 48px; padding: 0 24px; font-size: var(--t-md); gap: 8px; }
/* Narrow screens: one column everywhere. */
@media (max-width: 760px) {
  .hero-band::after { font-size: 360px; top: -60px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .stats-strip .inner { padding-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .stats-strip .inner > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stats-strip .inner > div:nth-child(3) { grid-column: 1 / -1; }
  .how { padding: 64px 28px 72px; gap: 40px; }
  .how-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .plans-inner { padding: 64px 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 28px; }
  .te-wrap, .faq { padding-block: 56px 64px; }
  .te-band { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .closing-box { padding: 28px; }
}

/* --- sign in / create account (design v3) --------------------------------------- */
/* The form first (so a phone shows it first) with the segmented switch, then
   the dark panel with the ghosted "+" and a glimpse of the feed. */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); background: var(--white); font-size: var(--t-md); }
.auth-form { display: flex; flex-direction: column; min-height: 100vh; padding: 28px clamp(24px, 4vw, 48px) 32px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-form .inner { width: 100%; max-width: 400px; }
.auth-tabs.segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 32px; }
.auth-tabs.segmented > a { height: 36px; justify-content: center; font-size: var(--t-base); }
.auth-form h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.auth-form .sub { margin: 0 0 28px; font-size: var(--t-md); color: var(--muted); }
.auth-form .flashes { padding: 0; margin: 0 0 14px; }
.button-google, a.button-google { width: 100%; height: 40px; border-radius: var(--r-sm); gap: 12px; font-size: var(--t-base); }
.button-google:hover { background: var(--head); }
.g-logo { flex: none; }
.auth-form .divider { margin: 20px 0; font-size: var(--t-sm); color: var(--muted); gap: 14px; }
.auth-form .divider::before, .auth-form .divider::after { border-top-color: var(--hairline); }
.auth-fields { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.auth-fields label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: var(--t-sm); font-weight: 600; }
.auth-fields label input { height: 40px; margin: 0; padding: 0 12px; border-radius: var(--r-sm); font-size: var(--t-base); }
.auth-fields .hint { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.auth-fields .hint small { font-size: var(--t-xs); font-weight: 400; color: var(--muted); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-inline-end: 42px; }
.pw-reveal, button.pw-reveal { position: absolute; top: 4px; inset-inline-end: 4px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted); }
.pw-reveal:hover, button.pw-reveal:hover { background: var(--chip-2); color: var(--ink); border: 0; }
.pw-reveal .ms { font-size: 20px; }
.auth-submit, button.auth-submit { margin-top: 6px; height: 44px; border-radius: var(--r-sm); font-size: var(--t-md); gap: 8px; box-shadow: var(--e-red); }
.auth-form .terms { margin: 20px 0 0; font-size: var(--t-sm); color: var(--muted); text-align: center; text-wrap: pretty; }
.auth-foot { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px); background: var(--ink); color: var(--white); }
.auth-plus { position: absolute; inset-inline-end: -20px; top: -60px; font-family: var(--font-display); font-size: 260px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .06); pointer-events: none; }
.auth-side-inner { position: relative; max-width: 520px; }
.auth-side h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.02em; font-weight: 900; color: var(--white); text-wrap: balance; }
.auth-side .lede { margin: 0 0 36px; font-size: 17px; line-height: 1.55; color: var(--dark-text); max-width: 44ch; }
.auth-glimpse { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: var(--r-md); background: var(--side-hover); border: 1px solid var(--side-line); }
.ag { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); }
.ag.is-first { background: var(--side-on); }
.ag-main { min-width: 0; }
.ag-main b { display: block; font-size: var(--t-base); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-main > span { font-size: 12.5px; color: var(--side-dim); }
.ag-main .good { color: var(--seg-great); }
.ag-age { font-size: var(--t-xs); color: var(--side-dim); }

/* --- Hunter: the launcher on every page, the drawer down the side (design v3) -------- */
.assistant { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: var(--z-assistant); }
button.assistant-launcher { position: relative; height: 48px; padding-block: 0; padding-inline: 8px 16px; border-radius: var(--r-md); border: 0; background: var(--ink); color: var(--white);
  display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-base); font-weight: 600; box-shadow: var(--e-3);
  transition: transform var(--d-fast) ease, background-color var(--d-fast) ease; }
button.assistant-launcher:hover { background: var(--black); color: var(--white); border: 0; transform: translateY(-1px); }
.launcher-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.launcher-mark .ms { font-size: 20px; font-weight: 500; }
.assistant .when-open { display: none; }
.assistant.is-open .when-open { display: inline; }
.assistant.is-open .when-closed { display: none; }
.assistant-launcher .badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 22px; height: 22px; border: 2px solid var(--white); }
/* The launcher hides while the drawer is open (the drawer has its own Close;
   app.js removes is-open before it focuses the launcher again). */
.assistant.is-open .assistant-launcher { display: none; }
.assistant-panel { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: var(--z-assistant); width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--surface); border-inline-start: 1px solid var(--hairline); box-shadow: var(--e-4); overflow: hidden; animation: panel-in var(--d-panel) var(--ease-out); }
[dir="rtl"] .assistant-panel { animation-name: panel-in-rtl; }
.assistant.is-closing .assistant-panel { animation: panel-out var(--d-panel) var(--ease-in) forwards; }
[dir="rtl"] .assistant.is-closing .assistant-panel { animation-name: panel-out-rtl; }
@keyframes panel-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes panel-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes panel-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes panel-out-rtl { from { transform: none; } to { transform: translateX(-100%); } }
.assistant-head { padding-block: 14px 0; padding-inline: 16px 14px; border-bottom: 1px solid var(--divider); }
.assistant-top { display: flex; align-items: center; gap: 12px; }
.hunter-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--red); color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 1; flex: none; }
.assistant-name { flex: 1; min-width: 0; }
.assistant-name h2 { margin: 0; font-size: var(--t-md); font-weight: 600; }
.assistant-name p { margin: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.assistant-icon { border-radius: var(--r-xs); }
.assistant-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.assistant .chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--surface); padding: 16px; }
.chat-empty { margin: auto 0; padding: 8px 4px; text-align: center; color: var(--muted); font-size: var(--t-base); }
.chat-empty p { margin: 0 0 4px; } .chat-empty b { color: var(--ink); }
/* Messages: Hunter's on the head colour, the person's in ink. */
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 92%; font-size: var(--t-base); line-height: 1.55; overflow-wrap: anywhere; align-self: flex-start; }
.msg-body { background: var(--head); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 10px 14px; }
.msg-body p { margin: 0 0 6px; } .msg-body p:last-child, .msg-body ul:last-child, .msg-body ol:last-child { margin-bottom: 0; }
.msg-body ul, .msg-body ol { margin: .3em 0 .55em; padding-inline-start: 1.2em; } .msg-body li { margin: .2em 0; }
.msg-me { align-self: flex-end; align-items: flex-end; gap: 4px; max-width: 86%; }
.msg-me .msg-body { background: var(--ink); border-color: var(--ink); color: var(--white); border-radius: var(--r-sm); padding: 10px 14px; white-space: pre-wrap; }
.msg-me .msg-body a { color: var(--white); }
.msg-status { align-self: center; max-width: none; font-size: 12.5px; color: var(--muted); text-align: center; }
.msg-status .msg-body { background: none; border: 0; padding: 0; }
.msg-label { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.msg-label .ms { font-size: 15px; color: var(--red); text-transform: none; }
.msg-about { font-size: var(--t-xs); color: var(--muted); }
.msg-about a { font-weight: 600; color: var(--ink); }
a.posting-ref { font-weight: 600; color: var(--red); text-decoration: none; }
a.posting-ref:hover { text-decoration: underline; }
.msg .change { display: flex; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: var(--r-xs); background: var(--head); }
.msg .change-what { flex: 1; }
/* Quiet thumbs under a reply or the review. */
.rate-msg { margin: 0; padding: 0; border: 0; gap: 6px; }
.rate-msg .rate-thumbs { gap: 2px; }
.rate-msg button.thumb { width: 30px; height: 30px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--faint); }
.rate-msg button.thumb .ms { font-size: 16px; }
.rate-msg button.thumb:hover { background: var(--divider-2); color: var(--ink); border: 0; }
.rate-msg button.thumb-up[aria-pressed="true"] { background: var(--green-wash); color: var(--green); }
.rate-msg button.thumb-down[aria-pressed="true"] { background: var(--track-2); color: var(--ink); }
.rate-msg .rate-status { font-size: var(--t-xs); margin-inline-start: 4px; }
.rate-msg .rate-more { flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
.rate-msg .rate-more input[type=text] { flex: 1 1 160px; min-width: 0; height: 32px; margin: 0; padding: 0 12px; border-radius: var(--r-sm); font-size: var(--t-sm); }
.rate-msg .rate-send { height: 32px; padding: 0 12px; font-size: 12.5px; }
/* Thinking… */
.chat-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 10px 14px; background: var(--head); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--muted); width: fit-content; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: .25; animation: dot 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .6; } .assistant-panel, .assistant.is-closing .assistant-panel { animation: none; } }
.assistant-error { margin: 0 16px 10px; padding: 8px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); background: var(--error-wash); color: var(--error-dark); }
.assistant-error.is-info { background: var(--navy-wash); color: var(--navy); }
/* The composer: suggestions, the about chip, the box with its Send. */
.composer { padding: 10px 12px 12px; border-top: 1px solid var(--divider); background: var(--surface); margin: 0; }
.suggest-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-row:empty { display: none; }
button.suggest { flex: none; height: 30px; padding: 0 12px; border-radius: var(--r-xs); border: 1px solid var(--control-2); background: var(--white); font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
button.suggest:hover { border-color: var(--ink); }
.composer-box { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding-block: 8px; padding-inline: 12px 8px; background: var(--white); transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease; }
.composer-box:focus-within { border-color: var(--ink); box-shadow: var(--focus-ring); }
.composer-about { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-bottom: 6px; padding-block: 3px; padding-inline: 9px 4px; border-radius: var(--r-xs); background: var(--chip-2); font-size: var(--t-xs); color: var(--muted); }
.composer-about > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.composer-about b { color: var(--ink); }
.composer-about .icon-button { width: 20px; height: 20px; border-radius: 5px; }
.composer-about .icon-button .ms { font-size: 15px; }
.composer-about .icon-button:hover { background: var(--hairline); }
.composer-line { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: none; resize: none; padding: 4px 0; min-height: 0; max-height: 9em; font-size: var(--t-base); line-height: 1.45; background: transparent; border-radius: 0; }
.composer textarea:focus, .composer textarea:focus-visible { outline: none; box-shadow: none; border: 0; }
button.composer-send { width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--red); color: var(--white); flex: none; transition: background-color var(--d-fast) ease; }
button.composer-send .ms { font-size: 20px; font-weight: 500; }
button.composer-send:hover { background: var(--red-hover); color: var(--white); border: 0; }
.composer-box:has(textarea:placeholder-shown) button.composer-send { background: var(--disabled); }
button.composer-send:disabled { opacity: 1; background: var(--disabled); }
.composer-hint { margin: 6px 4px 0; font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 640px) {
  .assistant.is-open:not(.assistant-page) .assistant-panel { inset: 0; width: 100%; height: 100%; border: 0; }
  button.assistant-launcher { width: 48px; padding: 0; justify-content: center; }
  .launcher-label { display: none; }
}

/* --- the welcome interview (design v3): the band, the stepper card, the chat and the brief --- */
main.setup-main { max-width: 1240px; }
.setup { display: flex; flex-direction: column; gap: 20px; }
.setup > .page-head { margin-bottom: 0; }
.setup-title { min-width: 0; max-width: 720px; }
.setup-title .eyebrow { margin: 0 0 8px; }
.setup-title h1 { margin: 0 0 8px; }
.setup-sub { margin: 0; text-wrap: pretty; }
.setup-skip { margin: 0; }
.setup-skip .button .ms { font-size: 19px; }
.setup-again { margin: 0; padding: 11px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--hairline); border-inline-start: 3px solid var(--navy); color: var(--ink); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.setup-again .ms { font-size: 20px; line-height: 1.1; color: var(--navy); }

/* The four steps: one card, a column each, the current one with a red edge. */
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.setup-steps li { position: relative; padding: 12px 16px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-inline-start: 1px solid var(--divider);
  transition: background-color var(--d-base) ease; }
.setup-steps li:first-child { border-inline-start: 0; }
.setup-steps li.is-current { background: var(--red-paper); }
.setup-steps li.is-current::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--red); }
.step-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.step-dot { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--white); color: var(--muted); border: 1px solid var(--control); display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--t-sm); font-weight: 600; line-height: 1; flex: none; transition: background-color var(--d-base) ease, border-color var(--d-base) ease; }
.step-dot .ms { font-size: 15px; font-weight: 600; }
.is-current .step-dot { background: var(--ink); border-color: var(--ink); color: var(--white); }
.is-done .step-dot { background: var(--green); border-color: var(--green); color: var(--white); }
.step-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.step-text b { font-size: var(--t-base); font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-current .step-text b, .is-done .step-text b { color: var(--ink); }
.step-state { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-track { display: block; height: 4px; margin: 0 -16px; background: var(--track); overflow: hidden; }
.step-track > span { display: block; height: 100%; background: var(--ink); transition: width var(--d-slow) ease; }
.is-done .step-track > span { background: var(--green); }
@media (max-width: 640px) { .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .setup-steps li:nth-child(3) { border-inline-start: 0; } .setup-steps li:nth-child(n+3) { border-top: 1px solid var(--divider); } }

/* Done: the dark card with what happens next. */
.setup-done { padding: 28px 30px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.setup-done-main { flex: 1 1 360px; min-width: 0; }
.setup-done h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; }
.setup-done-main p { margin: 0 0 22px; font-size: var(--t-md); max-width: 50ch; text-wrap: pretty; }
.setup-done-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.setup-done-actions .button-white .ms { font-weight: 500; }
.button-on-dark, a.button-on-dark { background: transparent; color: var(--white); border-color: var(--on-dark-border); }
.button-on-dark:hover, a.button-on-dark:hover { background: var(--side-hover); border-color: var(--white); color: var(--white); }
.setup-next { flex: 1 1 320px; min-width: 0; list-style: none; margin: 0; padding: 18px 20px; background: var(--dark-inner);
  border: 1px solid var(--side-line); border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 16px; }
.setup-next li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.next-icon { width: 30px; height: 30px; border-radius: var(--r-xs); background: var(--side-on); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.next-icon.is-now { background: var(--red); }
.next-icon .ms { font-size: 18px; }
.setup-next b { display: block; font-size: var(--t-base); color: var(--white); }
.setup-next li > div > span:not(.visually-hidden) { display: block; font-size: 13.5px; color: var(--dark-text); }
.setup-next .next-bar { position: relative; height: 4px; border-radius: 2px; background: var(--side-line); overflow: hidden; margin-top: 8px; }
.next-bar > span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--white); border-radius: 2px; transition: width var(--d-slow) ease; }
.setup-next .next-meta { margin-top: 4px; font-size: var(--t-xs); color: var(--side-dim); font-variant-numeric: tabular-nums; }
#task-progress-count:empty + .next-leave { display: none; }

/* Two columns: the conversation and "Your brief" (stacked under 960px). */
.setup-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.assistant.assistant-page { position: static; min-width: 0; z-index: auto; }
.assistant-page .assistant-panel { position: static; width: auto; height: clamp(540px, calc(100vh - 150px), 780px); z-index: auto; animation: none;
  border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.setup-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--divider); }
.setup-chat-head .hunter-mark { width: 32px; height: 32px; font-size: 22px; }
.setup-chat-head > div { min-width: 0; flex: 1; }
.setup-chat-head h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.setup-chat-head p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.assistant-page .chat-log { padding: 18px 20px 12px; gap: 12px; }
.assistant-page .chat-empty { margin: auto; }
/* The conversation: Hunter's messages with the "+" beside them, the person's in ink. */
.assistant-page .msg { max-width: 84%; font-size: var(--t-base); line-height: 1.55; }
.assistant-page .msg-body { padding: 10px 15px; }
.assistant-page .msg-body p { margin: 0 0 8px; }
.assistant-page .msg-hunter { position: relative; padding-inline-start: 36px; }
.assistant-page .msg-hunter::before { content: "+"; position: absolute; inset-inline-start: 0; bottom: 0; width: 26px; height: 26px; border-radius: 7px; background: var(--red-wash); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1; }
.assistant-page .msg-me .msg-body { padding: 10px 15px; }
.assistant-page .msg:not(.is-current) .rate-box { display: none; }
/* Hunter's latest message, when it is the last one: the current card. */
.assistant-page .msg-hunter.is-current { align-self: stretch; max-width: none; margin-top: 4px; margin-inline-start: 42px; padding: 14px 18px 10px; gap: 0;
  background: var(--white); border: 1px solid var(--red-line); border-radius: var(--r-md); box-shadow: var(--shadow-current), var(--shadow-card); }
.assistant-page .msg-hunter.is-current::before { inset-inline-start: -42px; top: 2px; bottom: auto; width: 30px; height: 30px; background: var(--red); color: var(--white); font-size: 20px; }
.assistant-page .msg-hunter.is-current .msg-body { background: none; border: 0; padding: 0; border-radius: 0; font-size: var(--t-lg); text-wrap: pretty; }
.msg-tag { display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.assistant-page .msg.is-current .rate-msg { margin-top: 8px; margin-inline-start: -6px; }
.assistant-page .msg-status { max-width: 100%; }
button.show-earlier { align-self: center; flex: none; height: 32px; padding: 0 14px; font-size: 12.5px; color: var(--muted); border-color: var(--control-2); gap: 6px; }
button.show-earlier .ms { font-size: 17px; }
/* Thinking…, in the log after the last message. */
.assistant-page .chat-status { position: relative; align-self: flex-start; margin: 0; padding: 0; padding-inline-start: 36px; min-height: 26px; background: none; border: 0; border-radius: 0; }
.assistant-page .chat-status::before { content: "+"; position: absolute; inset-inline-start: 0; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 7px; background: var(--red-wash); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1; }
.assistant-page .dots i { background: var(--muted); }
.assistant-page .assistant-error { margin: 0 16px 8px; }
/* Under the log: quick replies, the CV card, the composer. */
.setup-compose { padding: 10px 16px 14px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quick-hint { font-size: 12.5px; color: var(--muted); margin-inline-end: 2px; }
button.quick-chip { height: 34px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; border-color: var(--control); }
button.quick-chip:hover { border-color: var(--ink); background: var(--head); }
.setup-cv { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); border: 1px dashed var(--control); background: var(--head); margin: 0; }
.setup-cv.is-asked { border: 1px solid var(--red); background: var(--red-row); }
.cv-tile { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--red-wash); border: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--red); flex: none; }
.cv-tile .ms { font-size: 24px; }
.cv-text { flex: 1 1 220px; min-width: 0; }
.cv-text b { display: block; font-size: var(--t-md); }
.cv-text > span { font-size: var(--t-sm); color: var(--muted); }
.setup-cv:not(.is-asked) button[type=submit] { opacity: .5; }
.setup-cv:not(.is-asked) button[type=submit]:hover { opacity: 1; }
label.file-pill { position: relative; height: 36px; margin: 0; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; transition: border-color var(--d-fast) ease; }
label.file-pill:hover, label.file-pill:focus-within { border-color: var(--ink); }
label.file-pill:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
label.file-pill .ms { font-size: 18px; color: var(--muted); }
label.file-pill [data-file-name] { overflow: hidden; text-overflow: ellipsis; }
label.file-pill input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; inset-inline-start: 0; top: 0; }
label.file-pill-small { height: 30px; padding: 0 12px; font-size: 12.5px; gap: 5px; }
label.file-pill-small .ms { font-size: 16px; color: var(--ink); }
.nojs-only { display: none !important; }
.assistant-page .composer { padding: 0; border: 0; }
.assistant-page .composer-box { padding-block: 8px; padding-inline: 14px 8px; }
.assistant-page .composer-line { gap: 10px; }
.assistant-page .composer textarea { font-size: var(--t-md); padding: 5px 0; }
button.composer-send.composer-send-label { width: auto; height: 36px; padding: 0 16px; border-radius: var(--r-sm); gap: 6px; font-size: var(--t-base); font-weight: 600; }
button.composer-send.composer-send-label .ms { font-size: 18px; }
.assistant-page .composer-hint { margin: 0 4px; font-size: var(--t-xs); }

/* "Your brief". */
.brief { min-width: 0; position: sticky; top: calc(var(--nav-h) + 24px); background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.brief-head { padding: 14px 18px; border-bottom: 1px solid var(--divider); background: var(--head); }
.brief-head h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.brief-head p { margin: 2px 0 0; font-size: var(--t-sm); color: var(--muted); text-wrap: pretty; }
.brief-body { padding: 4px 18px 10px; }
.brief-group { padding: 10px 0 2px; }
.brief-group h3 { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.brief-row { position: relative; display: grid; grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 10px; margin-inline: -10px; border-radius: var(--r-xs);
  background: transparent; transition: background-color .7s ease; }
.brief-row::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: transparent; }
.brief-row.is-asking { background: var(--red-row-2); }
.brief-row.is-asking::before { background: var(--red); }
.brief-row.is-fresh { background: var(--red-flash); transition: none; }
.brief-label { font-size: var(--t-sm); color: var(--muted); }
.brief-value { min-width: 0; font-size: 13.5px; }
.brief-value .dash { color: var(--dash); }
.brief-said { color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.asking { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); font-weight: 600; color: var(--red); }
.asking i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.brief .pills { display: flex; flex-wrap: wrap; gap: 4px; }
.brief .pill { display: inline; font-size: 12.5px; font-weight: 500; line-height: 1.55; padding: 1px 9px; border-radius: var(--r-xs); background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); overflow-wrap: anywhere; }
.brief .pill.pill-out { background: var(--chip-2); color: var(--muted); border-color: var(--hairline); }
.brief-files { border-top: 1px solid var(--divider); padding: 8px 18px 10px; }
.brief-file { align-items: center; padding-block: 9px; }
.brief-file::before { top: 8px; bottom: 8px; }
.brief-file .brief-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.brief-file .brief-label .ms { font-size: 18px; color: var(--muted); }
.brief-file .brief-value { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.brief-ok { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.brief-ok .ms { font-size: 17px; font-weight: 500; color: var(--green); }
.brief-ok b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-wait { color: var(--muted); }
.brief-add { margin: 0; display: inline-flex; gap: 6px; }
.brief-file .brief-rules { flex-direction: column; align-items: stretch; }
.brief-rules .writing { font-size: var(--t-sm); font-weight: 600; color: var(--red); }
.sweep { display: block; position: relative; height: 4px; border-radius: 2px; background: var(--red-line); overflow: hidden; }
.sweep > span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 40%; background: var(--red); border-radius: 2px; animation: sweep 1.4s ease-in-out infinite; }
[dir="rtl"] .sweep > span { animation-name: sweep-rtl; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes sweep-rtl { from { transform: translateX(100%); } to { transform: translateX(-260%); } }
@media (prefers-reduced-motion: reduce) { .sweep > span { animation: none; width: 100%; opacity: .5; } }
.brief .rule-groups { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
.rg { font-size: var(--t-xs); padding: 1px 9px; border-radius: var(--r-xs); background: var(--chip); color: var(--muted); }
.rg.rg-boost { background: var(--green-wash); color: var(--green); }
.rg.rg-flag { background: var(--navy-wash); color: var(--navy); }
.brief-foot { padding: 12px 18px 14px; background: var(--head); border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.brief-foot a { font-weight: 600; }
/* Step 3: the files Hunter wrote, waiting for the person's OK. */
.brief.setup-files { position: static; }
.setup-files-body { padding: 14px 18px 12px; }
.setup-files .file-tabs.segmented { margin: 0 0 8px; }
.setup-files-purpose { margin: 0 0 10px; font-size: var(--t-sm); text-wrap: pretty; }
.setup-files .file-form textarea { min-height: 280px; }
.setup-approve { display: grid; gap: 8px; }
.setup-approve form { margin: 0; }
.setup-approve .button { width: 100%; justify-content: center; }
.setup-approve p { margin: 0; }
.setup-approve-head { margin: 0; }
.setup-draft { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--head); font-size: var(--t-sm); display: grid; gap: 8px; }
.setup-draft p, .setup-draft form { margin: 0; }
.setup-draft summary { cursor: pointer; font-weight: 600; }
.setup-draft .doc-inset { max-height: 280px; }
@media (max-width: 960px) { .setup-columns { grid-template-columns: minmax(0, 1fr); } .brief { position: static; } }

/* --- small screens ----------------------------------------------------------- */
@media (max-width: 640px) {
  main { padding: 20px 16px 48px; }
  main.wide { padding-top: 12px; }
  h1 { font-size: 26px; }
  .card { padding: 18px 16px; }
  header.marketing-head .site-inner, .hero, .how, .plans-inner, .stats-strip .inner, .te-wrap, .faq, .closing,
  body.marketing footer.site .site-inner { padding-inline: 16px; }
  header.marketing-head .site-inner { height: auto; min-height: 60px; flex-wrap: wrap; padding-block: 10px; }
  .hero { gap: 36px; }
  .auth-form { min-height: auto; padding: 20px 16px 28px; }
  .auth-plus { font-size: 80px; inset-inline-end: 28px; top: 28px; }
  .auth-side h2 { padding-inline-end: 64px; } /* clear of the "+" in the corner */
  .assistant:not(.assistant-page) { inset-inline-end: 14px; bottom: 14px; }
  .assistant-page .assistant-panel { box-shadow: none; }
  .msg { max-width: 100%; }
}
@media print { .appbar, footer.site, .assistant, .filter-bar { display: none; } }


/* --- feedback: the posting report, the reading and message thumbs, triage --- */
/* The /feedback page (design v2). */
main.feedback-main { max-width: 768px; padding: 40px 24px 80px; }
.feedback-page h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 32px); }
.feedback-sub { margin: 0 0 24px; font-size: var(--t-md); }
.feedback-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-card); }
.feedback-card .feedback-form { gap: 18px; }
.feedback-card .topic-chip { height: 38px; padding: 0 15px; font-size: 14px; }
.feedback-card .fb-label { display: block; margin: 0 0 -8px; font-size: 13.5px; font-weight: 600; }
.feedback-card .feedback-foot .fb-send { height: 46px; padding: 0 24px; font-size: 15px; }
.feedback-card .fb-page code { font-size: 12.5px; }
.feedback-sent h2 { margin: 16px 0 6px; font-size: 20px; font-weight: 600; }
.feedback-sent h2:focus { outline: none; }
.feedback-sent .fb-sent-mark { width: 44px; height: 44px; }
.feedback-sent .fb-sent-mark .ms { font-size: 24px; }
.feedback-sent .meta { margin: 0 0 18px; font-size: 14.5px; }
.feedback-sent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-sent-actions .button { height: 42px; padding: 0 18px; gap: 8px; }
.feedback-sent-actions .button .ms { font-size: 18px; }
.rate-msg { margin-top: 6px; gap: 6px; }
.rate-msg button.thumb { height: 26px; width: 30px; font-size: 13px; }
.rate-msg .rate-more { flex-direction: row; flex-wrap: wrap; align-items: center; }
.rate-msg .rate-more input[type=text] { flex: 1 1 180px; width: auto; height: 32px; font-size: 13px; }

/* --- developer console (design v3, Nov 2026) --------------------------------------------
   The six Developer pages on the console shell: dev/_base.html puts main.dev-main
   in the workspace, the six sections are the sidebar's (base layer). Every page:
   the con_head band (dark, full-bleed like .page-head: the eyebrow, the serif h1,
   one sentence ending in the "How it works" pill, the actions), the help panel as
   a white card, then the content — the facts as KPI cards, Needs you, tables
   inside cards (.hourly-card), the tiles, the mode cards, and the registry tables
   on the base's table-card recipe. Pills carry a dot. Under 760px the band hugs
   main's phone padding and every table scrolls inside its card. */
main.dev-main { flex: 1; min-width: 0; max-width: none; margin: 0; padding: var(--s-6) var(--s-7) 48px; }
/* No footer here: room under the last row for Hunter's bubble. */
body.has-assistant main.dev-main { padding-bottom: 112px; }
/* The band. */
.con-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-7)) var(--s-6); padding: 28px var(--s-7); background: var(--dark-inner); color: var(--white); }
main > .con-head.con-head { animation: none; }  /* outweighs main > :not(.page-head):not(.flashes) */
.con-head > * { animation: rise var(--d-slow) var(--ease-out) both; }
.con-title { min-width: 0; flex: 1 1 320px; }
.con-head .eyebrow { margin: 0 0 6px; color: var(--side-dim); }
.con-head h1 { margin: 0 0 6px; color: var(--white); }
.con-summary { margin: 0; font-size: var(--t-base); color: var(--dark-text); max-width: 72ch; text-wrap: pretty; }
.con-summary b, .con-summary em, .con-head .con-summary a { color: var(--white); }
.help-pill, button.help-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding-block: 0; padding-inline: 6px 9px; margin-inline-start: 4px; border-radius: var(--r-xs);
  border: 1px solid var(--on-dark-border); background: transparent; color: var(--white); font-size: var(--t-xs); font-weight: 600; vertical-align: middle; white-space: nowrap; }
.help-pill .ms, button.help-pill .ms { font-size: 15px; }
.help-pill:hover, button.help-pill:hover { border-color: var(--white); background: var(--side-hover); color: var(--white); }
.help-pill[aria-expanded="true"], button.help-pill[aria-expanded="true"] { background: var(--side-on); border-color: var(--white); }
.con-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.con-actions form { margin: 0; }
.con-actions .button { white-space: nowrap; }
/* The six sections as tabs (dev_tabs in dev/_console.html): on a phone only, where the sidebar is a tab bar; the rule is with the small screens. */
nav.dev-tabs { display: none; }
.con-head .button:not(.button-primary) { background: transparent; border-color: var(--on-dark-border); color: var(--white); }
.con-head .button:not(.button-primary):hover { background: var(--side-hover); border-color: var(--white); color: var(--white); }
.con-head .button-primary .ms { font-weight: 500; }
.con-head button.button-primary:disabled { background: var(--red); border-color: var(--red); color: var(--white); opacity: .6; cursor: default; }
/* The help panel: a white card under the band (open without script: base.html's noscript). */
.help-panel { display: flex; flex-direction: column; gap: 8px; max-width: 110ch; margin: 0 0 18px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-card); font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }
.help-panel p { margin: 0; }
.help-panel b { color: var(--ink); }
.help-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.help-legend .dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; vertical-align: 1px; }
.help-legend .dot.is-working { background: var(--green); } .help-legend .dot.is-failing { background: var(--error); } .help-legend .dot.is-untested { background: var(--idle-dot); }
/* The facts as KPI cards: a caps label over the value; a bad value red, a link filters. */
.facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; }
.facts > li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card);
  animation: rise var(--d-slow) var(--ease-out) both; }
.facts > li:nth-child(2) { animation-delay: calc(var(--d-stagger) * 1); } .facts > li:nth-child(3) { animation-delay: calc(var(--d-stagger) * 2); }
.facts > li:nth-child(4) { animation-delay: calc(var(--d-stagger) * 3); } .facts > li:nth-child(n+5) { animation-delay: calc(var(--d-stagger) * 4); }
.fact-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.fact-value { font-size: var(--t-md); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact-value .meta { font-weight: 500; }
.fact-value.is-bad { color: var(--error); } .fact-value.is-warn { color: var(--amber); } .fact-value.is-live { color: var(--red); }
a.fact-value { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red-line); }
a.fact-value:hover { color: var(--red); text-decoration-color: var(--red); }
.facts > li.fact-wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.facts .fact-link { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: .16em; white-space: nowrap; }
.facts .fact-link:hover { color: var(--red); }
.company-summary .help-i { font-size: 14px; vertical-align: -2px; color: var(--muted); }
/* Each search of the last scan as a small tag (in the facts strip). */
.search-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); background: var(--surface); border: 1px solid var(--hairline); font-size: var(--t-xs); }
.search-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.search-pill code { font-size: var(--t-xs); }
.search-pill b { font-variant-numeric: tabular-nums; }
.search-pill.is-failing .dot { background: var(--error); }
.search-pill.is-failing b { color: var(--error); }
/* A state (tables, tiles, mode cards), a run's status, a proposal's verdict: a pill with a dot, tone by class. */
.state-tag, .run-pill, .verdict { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: var(--r-xs); background: var(--chip); color: var(--muted);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.state-tag::before, .run-pill::before, .verdict::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.state-tag.is-ok, .run-pill.is-ok, .verdict.is-verified { background: var(--green-wash); color: var(--green); }
.state-tag.is-bad, .run-pill.is-bad, .verdict.is-failed { background: var(--error-wash); color: var(--error); }
.state-tag.is-warn, .verdict.is-unverified { background: var(--amber-wash); color: var(--amber); }
.state-tag.is-info, .verdict.is-needs_learning { background: var(--navy-wash); color: var(--navy); }
.state-tag.is-live, .run-pill.is-live { background: var(--red-wash); color: var(--red); }
/* The tiles: one number each. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 0 0 18px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card);
  color: var(--ink); text-decoration: none; transition: border-color var(--d-fast) ease; }
a.tile:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tile-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tile-top .ms { font-size: 19px; color: var(--muted); }
.tile-label { flex: 1; min-width: 0; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.tile-big { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 12.5px; color: var(--muted); }
/* Needs you: a card with a header strip; worst first, each line a link to its page. */
.card.needs { margin: 0 0 18px; padding: 0; overflow: hidden; }
.needs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--divider); }
.needs-head h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.count-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-xs); background: var(--red); color: var(--white); font-size: var(--t-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.count-n.is-zero { background: var(--green-wash); color: var(--green); }
.needs-note { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.needs-list { list-style: none; margin: 0; padding: 0; }
.needs-list > li + li { border-top: 1px solid var(--divider-2); }
.needs-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 20px; gap: 14px; align-items: center; padding: 11px 18px; color: var(--ink);
  text-decoration: none; transition: background-color var(--d-fast) ease; }
.needs-row:hover { background: var(--surface-hover); color: var(--ink); text-decoration: none; }
.needs-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--idle-dot); }
.needs-dot.is-bad { background: var(--error); } .needs-dot.is-warn { background: var(--amber-dot); } .needs-dot.is-info { background: var(--navy); }
.needs-text { min-width: 0; }
.needs-text b { display: block; font-size: 13.5px; }
.needs-text span { display: block; font-size: 12.5px; color: var(--muted); }
.where-chip { padding: 2px 8px; border-radius: var(--r-xs); background: var(--chip); color: var(--muted); font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }
.needs-row > .ms { font-size: 20px; color: var(--faint); }
.needs-empty { display: flex; align-items: center; gap: 10px; margin: 0; padding: 22px 18px 26px; color: var(--ink-2); }
.needs-empty .ms { font-size: 22px; color: var(--green); }
.needs-empty b { color: var(--ink); }
/* A table inside a card (the schedule, the sources, the database's state, posting
   data, the AI tables, the lacking list): a header strip, the table — caps header
   on --head, 44px rows, hover wash — then a note. */
.card.hourly-card { margin: 0 0 18px; padding: 0; overflow: hidden; }
.steps-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 18px; border-bottom: 1px solid var(--divider); }
.steps-head h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.steps-head > span { font-size: 12.5px; color: var(--muted); }
.steps-head > a { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: .16em; white-space: nowrap; }
.steps-head > a:hover { color: var(--red); }
.hourly-scroll { position: relative; overflow-x: auto; padding: 0; }  /* relative: a visually-hidden span inside stays in the scroller */
.hourly-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.hourly-table th, .hourly-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--divider-2); vertical-align: top; white-space: nowrap; }
.hourly-table thead th { padding-block: 9px; background: var(--head); border-bottom-color: var(--hairline); font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
.hourly-table tbody th { font-weight: 600; color: var(--ink); }
.hourly-table th:first-child, .hourly-table td:first-child { padding-inline-start: 18px; }
.hourly-table th:last-child, .hourly-table td:last-child { padding-inline-end: 18px; }
.hourly-table tbody tr:last-child > * { border-bottom: 0; }
.hourly-table tbody tr:hover > * { background: var(--surface-hover); }
.hourly-table tr.is-skipped td, .hourly-table tr.is-weekend td, .hourly-table tr.is-closed td, .hourly-table tr.is-failed td { color: var(--muted); }
.hourly-table tr.is-failed td:first-child { box-shadow: inset 3px 0 0 var(--error); }
[dir="rtl"] .hourly-table tr.is-failed td:first-child { box-shadow: inset -3px 0 0 var(--error); }
.hourly-table .red, .hourly-cover b.red, .mail-box .red { color: var(--error); font-weight: 600; }
.hourly-table .ok, .data-table .ok { color: var(--green); font-weight: 600; }
.hourly-table .bad, .postings-table td.red, .data-table .bad, .data-table a.bad { color: var(--error); font-weight: 600; }
.data-table .warn { color: var(--amber); }
.data-table tr.data-all th, .data-table tr.data-all td { border-top: 2px solid var(--hairline); font-weight: 600; }
.postings-table td:nth-child(3) { white-space: normal; min-width: 220px; }
.stats-table th[scope="row"] { padding-inline-end: 24px; cursor: help; }
.sources-table th[title] { cursor: help; }
.hourly-why { margin: 0 0 6px; }
.hourly-cover { margin: 0; padding: 12px 18px 14px; font-size: var(--t-sm); color: var(--muted); max-width: none; }
.hourly-cover p { margin: 0 0 6px; }
.hourly-card > p.meta { margin: 0; padding: 10px 18px 14px; }
.hourly-misses { padding: 10px 18px 14px; }
.hourly-misses summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); }
.hourly-misses ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 12.5px; columns: 2 320px; }
/* A fold with a table in it (Agents: "By feature", the keeper's runs, the batches). */
.recipe { margin-top: 4px; font-size: var(--t-xs); }
.recipe > summary { color: var(--muted); font-weight: 600; cursor: pointer; }
.hourly-card > .recipe { margin: 0; padding: 10px 18px 0; }
.hourly-card > .recipe > .hourly-scroll { margin-inline: -18px; margin-top: 10px; border-top: 1px solid var(--divider-2); }
.ai-lines { margin: 0; padding: 14px 18px 16px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 10px; }
.ai-lines details { margin-top: 6px; }
.limits-list li, .limits-postings > li { padding: 6px 0; }
.limits-postings > li { border-top: 1px solid var(--hairline); padding: 12px 0; }
.limits-postings q, .limits-why q { display: inline-block; margin-top: 4px; color: var(--muted); font-style: italic; }
.inline-form { display: inline; margin-inline-start: 8px; }
.link-button { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; font: inherit; }
.limits-why { border-inline-start: 3px solid var(--red); }
/* The toolbar's search and selects (the base's table-toolbar). */
.table-toolbar .toolbar-search { flex: 1 1 220px; max-width: 320px; }
.table-toolbar .search-wrap > .ms { inset-inline-start: 12px; }
.table-toolbar .search-wrap input { height: 36px; padding-inline: 38px 12px; font-size: 13.5px; }
.table-toolbar select.select-pill { height: 36px; padding-inline: 14px 32px; font-size: var(--t-sm); }
.table-toolbar select.select-pill.is-set { border-color: var(--ink); }
.table-toolbar .select-wrap > .ms { inset-inline-end: 9px; }
.table-toolbar .nojs-only { height: 36px; }
.show-all { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: var(--r-xs); font-size: var(--t-sm); font-weight: 600; }
.show-all:hover { background: var(--red-wash); text-decoration: none; }
/* The sticky sub-navigation (Agents & AI) and the section headings. */
.con-subnav { position: sticky; top: calc(var(--nav-h) + 1px); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 8px 0 10px;
  background: rgba(246, 246, 244, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.con-subnav a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color var(--d-fast) ease; }
.con-subnav a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.con-subnav .rail-n { min-width: 18px; }
.con-subnav .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--chip); color: var(--muted); font-size: var(--t-xs); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.dev-h2 { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; font-size: var(--t-lg); font-weight: 600; scroll-margin-top: calc(var(--nav-h) + 62px); }
.dev-h2-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.dev-h2-row .dev-h2 { margin: 0; }
.dev-h2-row > .meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.dev-h2 .count-n { min-width: 22px; }
.dev-h2-sub { font-weight: 500; color: var(--muted); font-size: var(--t-sm); }
/* The mode cards (Agents & AI). */
.mode-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0 0 28px; }
.mode-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.mode-head { display: flex; align-items: flex-start; gap: 8px; }
.mode-head > div { min-width: 0; flex: 1; }
.mode-head b { display: block; font-size: var(--t-md); }
.mode-head .sub { display: block; font-size: 12.5px; color: var(--muted); }
.mode-head code { font-size: var(--t-xs); }
.mode-card > p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); text-wrap: pretty; }
.mode-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.mode-facts b { color: var(--ink); }
.mode-last { display: flex; flex-direction: column; gap: 3px; padding-top: 9px; border-top: 1px solid var(--divider-2); font-size: 12.5px; color: var(--muted); }
.mode-last .last-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mode-last .last-top > span:first-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.mode-run { display: flex; align-items: center; gap: 6px; margin: auto 0 0; }
.mode-run input { flex: 1; min-width: 0; width: auto; height: 32px; margin: 0; padding: 0 10px; border-radius: var(--r-sm); font-size: 12.5px; }
.mode-run .spacer { flex: 1; }
.mode-run .button { height: 32px; padding: 0 11px; font-size: 12.5px; white-space: nowrap; }
.mode-run button.button-primary:disabled { opacity: .45; cursor: not-allowed; background: var(--red); border-color: var(--red); color: var(--white); }
.mode-card .hourly-table th:first-child, .mode-card .hourly-table td:first-child { padding-inline-start: 12px; }
.mode-card .hourly-table th:last-child, .mode-card .hourly-table td:last-child { padding-inline-end: 12px; }
/* The companies (a Needs-you line jumps here: clear of the toolbar). */
#companies { scroll-margin-top: calc(var(--nav-h) + 16px); }
.cov-table { --cols: minmax(180px, 1.4fr) minmax(220px, 2.2fr) 86px 112px 44px; min-width: 660px; }
.cov-table .grow > :last-child { padding: 0; display: flex; justify-content: center; }
/* Dev › Companies: company, place, field, status, kind, sources, open roles, last read, the log. */
.companies-table { --cols: minmax(170px, 1.3fr) minmax(90px, .7fr) minmax(100px, .8fr) 150px 96px minmax(200px, 2fr) 76px 104px 44px; min-width: 1120px; }
.grow > .cov-place, .grow > .cov-field { font-size: var(--t-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.grow > .cov-place.is-none, .grow > .cov-field.is-none { color: var(--muted); }
.cov-company { display: flex; align-items: center; gap: 12px; }
.cov-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cov-dot.is-own { background: var(--green); } .cov-dot.is-linkedin { background: var(--linkedin); } .cov-dot.is-none { background: var(--error); }
.cov-name { min-width: 0; }
.cov-name > a, .cov-name > b { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-name > a:hover { color: var(--red); }
.cov-name .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow > .cov-sources { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 10px; }
.cov-src { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-xs); border: 1px solid var(--hairline); background: var(--head); font-size: var(--t-xs); white-space: nowrap; }
.cov-src .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--idle-dot); }
.cov-src code { font-size: var(--t-xs); color: var(--ink); }
.cov-src b { font-size: var(--t-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cov-src.is-working { background: var(--green-wash); border-color: var(--success-line); } .cov-src.is-working .dot { background: var(--green); } .cov-src.is-working b { color: var(--green); }
.cov-src.is-failing { background: var(--error-wash); border-color: var(--red-line); } .cov-src.is-failing .dot { background: var(--error); } .cov-src.is-failing b { color: var(--error); }
.cov-open { font-weight: 600; font-variant-numeric: tabular-nums; }
.cov-open.is-none { color: var(--idle-dot); }
.cov-read { font-size: var(--t-sm); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* A company's source log: the review, then a card per source. */
.cov-log > [role="cell"] { display: flex; flex-direction: column; gap: 10px; padding-block: 2px 16px; padding-inline: 37px 16px; }
.reviewed { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--navy-code-wash); color: var(--navy); font-size: var(--t-sm); }
.reviewed .ms { font-size: 18px; line-height: 1.1; }
.reviewed a { color: inherit; }
.log-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.log-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); }
.log-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.log-top .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.log-top code { font-size: var(--t-xs); font-weight: 600; }
.log-top .status-pill { margin-inline-start: auto; }
.log-id { font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }
.log-stats { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.log-note { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.cov-legend .dot { width: 7px; height: 7px; border-radius: 50%; }
.cov-legend .legend-rows { margin-inline-start: auto; }
.cov-legend .legend-rows .dot { display: inline-block; margin-inline-end: 4px; vertical-align: 1px; }
.cov-legend .dot.is-linkedin { background: var(--linkedin); }

/* Accounts. */
.users-table { --cols: minmax(200px, 1.6fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(190px, 1.5fr) 92px; min-width: 760px; }
.acct, .rec { display: flex; align-items: center; gap: 12px; }
.acct-av { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--ink); color: var(--white); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.acct-av.av-1 { background: var(--navy); } .acct-av.av-2 { background: var(--excellent); } .acct-av.av-3 { background: var(--amber); } .acct-av.av-4 { background: var(--muted); }
.acct-text, .rec-text { min-width: 0; }
.acct-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acct-name .tag { margin: 0; padding: 1px 7px; letter-spacing: .05em; }
.acct-meta { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-seen { display: block; font-size: var(--t-xs); color: var(--muted); }
.plan-cell .tag { margin: 0; letter-spacing: .05em; }
.tag.tag-plan-developer { background: var(--navy-wash); color: var(--navy); }
.tag.tag-plan-premium { background: var(--green-wash); color: var(--green); }
.plan-meta { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.plan-paddle { display: block; font-size: var(--t-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; font-size: 12.5px; color: var(--muted); }
.activity b { color: var(--ink); text-align: end; font-variant-numeric: tabular-nums; }
.ai-cell { display: flex; flex-direction: column; gap: 5px; }
.ai-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ai-top b { font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.ai-tag { font-size: var(--t-xs); font-weight: 600; padding: 1px 7px; border-radius: var(--r-xs); }
.ai-tag.is-navy { background: var(--navy-wash); color: var(--navy); } .ai-tag.is-amber { background: var(--amber-wash); color: var(--amber); }
.ai-note { font-size: var(--t-xs); color: var(--muted); }
.ai-note.is-warn { color: var(--amber); font-weight: 600; }
.meter-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) 70px; gap: 8px; align-items: center; font-size: var(--t-xs); color: var(--muted); }
.meter-bar { display: block; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.meter-bar > span { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.meter-bar > span.is-high { background: var(--amber-dot); }
.meter-v { text-align: end; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.grow > .edit-cell { display: flex; justify-content: flex-end; }
/* A row's editor. */
.editor { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; padding-block: 4px 18px; padding-inline: 62px 16px; }
.ed-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ed-label { margin: 0; padding: 0; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
legend.ed-label { margin-bottom: 8px; }
.ed-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
.ed-inline input { display: inline-block; width: auto; height: 32px; margin: 0; padding: 0 8px; border-radius: var(--r-sm); font-size: var(--t-sm); }
.ed-hint { font-size: var(--t-xs); color: var(--muted); }
.ed-num { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: var(--t-xs); font-weight: 400; color: var(--muted); }
.ed-num input { width: 76px; height: 32px; margin: 0; padding: 0 10px; border-radius: var(--r-sm); font-size: var(--t-sm); }
.ed-num:last-child input { width: 84px; }
.ed-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-inline-start: auto; }
.ed-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-buttons .button, .ed-buttons button { height: 32px; }
.ed-buttons.ed-reverse { flex-direction: row-reverse; }
.ed-actions .button-quiet { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.ed-actions .button-quiet .ms { font-size: 16px; }

/* Agents: the status card — three columns: the state, the two agents, the spend. */
.card.agents-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px 28px; margin: 0 0 12px; padding: 18px 20px; }
.status-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.status-col > .eyebrow { margin: 0; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-xs); background: var(--chip); color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; align-self: flex-start; }
.state-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.state-pill.is-on { background: var(--green-wash); color: var(--green); }
.state-pill.is-bad { background: var(--error-wash); color: var(--error); }
.status-line { display: flex; align-items: flex-start; gap: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.status-line.is-bad { color: var(--error); }
.status-line .ms { font-size: 16px; line-height: 1.3; }
.status-line .ms.is-ok { color: var(--green); } .status-line .ms.is-bad { color: var(--error); }
.status-line b { color: var(--ink); }
.switch-form { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.switch-form b { color: var(--ink); }
/* The schedule's switch (a button with role=switch): the one pill-shaped track, an 18px knob. */
.switch-form .switch, .switch-form button.switch { width: 40px; height: 24px; padding: 3px; border: 0; border-radius: var(--r-pill); background: var(--disabled); display: inline-flex; justify-content: flex-start; flex: none; transition: background-color var(--d-fast) ease; }
.switch-form .switch[aria-checked="true"], .switch-form button.switch[aria-checked="true"] { background: var(--green); justify-content: flex-end; }
.switch-form .switch:hover, .switch-form button.switch:hover { border: 0; filter: brightness(.95); }
.switch-form .switch .knob { width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(18, 20, 23, .25); }
.switch-form .switch .knob::after { content: none; }
.agent-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.agent-icon { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.agent-icon .ms { font-size: 18px; }
.agent-text { display: flex; flex-direction: column; min-width: 0; }
.agent-text .ver { font-weight: 600; color: var(--muted); }
.agent-text code { font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }
.agent-modes { font-size: 12.5px; color: var(--muted); }
.last-sync { font-size: var(--t-xs); color: var(--muted); }
.spend { margin: 0; font-size: var(--t-base); }
.spend b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spend > span { color: var(--muted); }
.spend-bar { display: flex; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.spend-bar .spent { background: var(--ink); }
.spend-bar .live { background: repeating-linear-gradient(45deg, var(--faint) 0 4px, var(--disabled) 4px 8px); }
.spend-note { font-size: 12.5px; color: var(--muted); }
.cap-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; }
.cap-form label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.cap-form input { width: 84px; height: 32px; margin: 0; padding: 0 10px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink); }
.cap-form .button { height: 32px; font-size: 12.5px; }
/* A session that failed. */
.fault { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--error-wash); color: var(--error-dark); font-size: 13.5px; }
.fault > .ms { font-size: 20px; line-height: 1.05; }
.fault-text { flex: 1 1 300px; min-width: 0; }
.fault-button, button.fault-button { height: 28px; padding: 0 10px; border: 1px solid var(--red-line); background: var(--surface); color: var(--error-dark); font-size: 12.5px; }
.fault-button:hover, button.fault-button:hover { border-color: var(--error-dark); color: var(--error-dark); }
.fault > a { align-self: center; font-size: 12.5px; font-weight: 600; color: var(--error-dark); }
.fault > .agents-raw { flex: 1 1 100%; margin: 4px 0 0; }
.agents-raw { max-height: 12rem; overflow: auto; margin: 6px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--hairline); color: var(--ink-2);
  font-family: var(--mono); font-size: var(--t-xs); white-space: pre-wrap; word-break: break-word; }
.running-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); font-size: 13.5px; }
.running-strip > span:not(.pulse-dot) { color: var(--ink-2); }
.running-strip > a { margin-inline-start: auto; font-weight: 600; }
/* Waiting for you: one collapsible card per kind. */
.card.nothing-waits { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 16px 18px; color: var(--ink-2); font-size: 13.5px; }
.nothing-waits .ms { font-size: 20px; color: var(--green); }
.agent-groups { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.card.agents-group { position: relative; margin: 0; padding: 0; overflow: hidden; }
.agents-group > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 16px; list-style: none; cursor: pointer; }
.agents-group > summary::-webkit-details-marker { display: none; }
.agents-group:has(.group-keep) > summary { padding-inline-end: 200px; }
.agents-group > summary .chev { font-size: 20px; color: var(--muted); transition: transform var(--d-base) var(--ease-out); }
.agents-group:not([open]) > summary .chev { transform: rotate(-90deg); }
[dir="rtl"] .agents-group:not([open]) > summary .chev { transform: rotate(90deg); }
.agents-group > summary b { font-size: 14.5px; }
.agents-group > summary .n { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.agents-group > .table-scroll { border-top: 1px solid var(--hairline); }
/* Careers pages handed to the Source Fixer: folded away under the groups that wait for a decision. */
.group-keep { position: absolute; top: 10px; inset-inline-end: 16px; margin: 0; }
.group-keep .button { height: 32px; padding: 0 12px; font-size: 12.5px; }
.props-table { --cols: minmax(150px, 1fr) minmax(220px, 2fr) minmax(140px, 1fr) 212px; min-width: 740px; }
.props-table .grow:not(.ghead) { align-items: start; }
.props-table .ghead > * { padding-block: 8px; }
.prop-co > a, .prop-co > b { font-weight: 600; color: var(--ink); }
.prop-co > a:hover { color: var(--red); }
.prop-co .he { display: block; font-size: var(--t-sm); }
.prop-co .sub { font-size: var(--t-xs); color: var(--muted); }
.prop-found { font-size: var(--t-sm); }
.found-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.result-tag { padding: 1px 8px; border-radius: var(--r-xs); background: var(--chip); color: var(--ink-2); font-size: var(--t-xs); font-weight: 600; }
.found-top .ms { font-size: 16px; color: var(--faint); }
.found-top .date { font-size: var(--t-xs); color: var(--muted); }
.found-url { display: block; margin-top: 3px; font-size: 12.5px; overflow-wrap: anywhere; }
.found-note { display: block; margin-top: 3px; color: var(--ink-2); }
.evidence { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: var(--t-xs); }
.evidence a { display: inline-flex; align-items: center; gap: 3px; }
.evidence .ms { font-size: 14px; }
.prop-check { font-size: 12.5px; color: var(--muted); }
.check-note { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.grow > .prop-decide { padding-block: 10px; }
.agents-decide { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.agents-decide .button { display: inline-block; max-width: 100%; height: 32px; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; line-height: 30px; }
.agents-decide .button.is-danger { color: var(--error); }
/* The history. */
.history-table { --cols: 52px minmax(120px, 1fr) minmax(120px, 1fr) 100px 52px 60px minmax(190px, 2fr); min-width: 720px; font-size: var(--t-sm); }
.history-table .grow:not(.ghead) > * { padding-block: 10px; }
.history-table .sub { font-size: var(--t-xs); color: var(--muted); }
.run-id { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Feedback: the status as a segmented control, the kinds as chips. */
.fb-toolbar { gap: 10px 18px; }
.segmented.fb-status { background: var(--chip); }
.fb-status > a { height: 30px; padding: 0 12px; gap: 6px; font-size: var(--t-sm); }
.fb-status .n { font-size: var(--t-xs); }
.kind-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kind-chips a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: var(--t-sm); font-weight: 500; text-decoration: none; transition: border-color var(--d-fast) ease; }
.kind-chips a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.kind-chips a[aria-current="page"] { border-color: var(--ink); background: var(--chip-2); font-weight: 600; }
.kind-chips .ms { font-size: 16px; color: var(--muted); }
.kind-chips .n { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.fb-table { --cols: 136px minmax(220px, 2.4fr) minmax(150px, 1.3fr) 200px; min-width: 740px; }
.fb-table .grow:not(.ghead) { align-items: start; }
.fb-row.is-new::before { background: var(--red); }
.fb-row.is-done > .grow { opacity: .6; }
.fb-who { font-size: 12.5px; color: var(--muted); }
.fb-who > * { display: block; overflow-wrap: anywhere; }
.fb-who .when { color: var(--ink); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.fb-who .name { color: var(--ink); }
.fb-who .changed { color: var(--muted); }
.what-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.what-top b { font-size: 13.5px; }
.kind-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-xs); background: var(--chip); color: var(--ink-2); font-size: var(--t-xs); font-weight: 600; }
.kind-chip .ms { font-size: 15px; }
.ms.fb-thumb { font-size: 18px; } .ms.fb-thumb.is-up { color: var(--green); } .ms.fb-thumb.is-down { color: var(--error); }
.fb-text { display: block; max-width: 62ch; margin-top: 6px; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; text-wrap: pretty; }
.fb-dev-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--green); }
.fb-dev-note .ms { font-size: 15px; line-height: 1.3; }
.fb-about { font-size: 12.5px; color: var(--muted); }
.fb-about > * { display: block; }
.fb-about .job { font-size: var(--t-sm); font-weight: 600; }
.fb-about b { color: var(--ink); }
.fb-about .page { display: inline-block; margin-top: 2px; }
.fb-about .page code { padding: 1px 7px; border-radius: 5px; background: var(--chip-2); color: var(--ink-2); font-size: var(--t-xs); }
.fb-about .ua { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.grow > .fb-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 10px; }
.fb-triage { margin: 0; }
.segmented.seg-sm { padding: 2px; background: var(--chip); }
.segmented.seg-sm > button { height: 28px; padding: 0 11px; font-size: 12.5px; }
.note-toggle, button.note-toggle { height: 26px; padding: 0 8px; margin-inline-start: -4px; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; }
.note-toggle:hover, button.note-toggle:hover { background: var(--chip); color: var(--ink); border: 0; }
.note-toggle .ms, button.note-toggle .ms { font-size: 15px; }
.fb-note-form .note-inner { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 0 14px; padding-inline: 152px 16px; }
.note-inner input { flex: 1 1 260px; height: 36px; margin: 0; padding: 0 12px; border-radius: var(--r-sm); font-size: var(--t-sm); }
.note-inner .button { height: 36px; }

/* Delete the account: what goes, then a box to type DELETE. */
.account-delete h2 { font-size: var(--t-lg); margin: 0 0 10px; }
.account-delete .delete-list { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 6px; }
.account-delete .delete-form { display: grid; gap: 8px; max-width: 380px; margin-block-start: 18px; }
.account-delete .delete-form input[type="text"] { font: inherit; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.account-delete .delete-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block-start: 6px; }
.button-danger, button.button-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.button-danger:hover, button.button-danger:hover { background: var(--error-dark); border-color: var(--error-dark); color: var(--white); }
.account-link { margin: 4px 0 24px; text-align: end; font-size: var(--t-sm); }
.account-link a { color: var(--muted); }
.account-link a:hover { color: var(--error); }

/* Your files and the quick check (profile pages; their rules live here for now). */
.files-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin: 0 0 16px; color: inherit; text-decoration: none; border: 1px solid var(--hairline); }
.files-banner > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.files-banner:hover b { color: var(--red); }
.file-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.file-tab { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--divider); border-radius: var(--r-md); color: inherit; text-decoration: none; min-width: 140px; background: var(--surface); }
.file-tab.is-on { border-color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.file-card { padding: 18px; }
.file-form textarea { width: 100%; box-sizing: border-box; font: 13.5px/1.55 var(--mono); padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); min-height: 420px; resize: vertical; }
.file-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.file-draft { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.file-draft p { margin: 0; flex: 1 1 280px; }
.file-history { margin-top: 14px; }
.file-history summary { cursor: pointer; font-weight: 600; }
.file-history ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.file-history li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; border-bottom: 1px solid var(--divider); padding: 6px 0; }
.file-history li > .doc { flex: 1 1 100%; min-width: 0; }
.file-history li { scroll-margin-top: calc(var(--nav-h) + 16px); }
.file-check-link { margin-top: 14px; }

/* --- a profile file as a document (services/file_document.py) ----------------------
   profile/_file_form.html: div.file-view holds the document (div.file-doc: the
   Edit bar and the sheet, article.doc, on a desk) and the editor (form.file-form);
   one of the two is hidden (app.js, or ?edit=1 without script). The sheet is the
   reading typography: the interface face at 15px / 1.7, the title and the
   sections in the title face, bullets and numbers drawn by the item (each block
   carries its own dir, so a Hebrew line sets its own side), tables on hairlines.
   section.doc-limits is the Preferences file's Limits — what the filter reads —
   as a panel of label / value rows. .doc-inset is the same document small and
   scrolling: an earlier version, Hunter's offered draft. In the setup's narrow
   panel and on a phone the sheet loses its desk and the panel is the paper. */
.file-view { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.file-view > form { margin: 0; }
.file-doc { background: var(--ground); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px 16px 32px; min-width: 0; }
.file-doc-bar { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.file-doc-bar .button { background: var(--surface); }
.file-form .file-doc-bar { margin-bottom: 10px; }
.doc { color: var(--ink-text); font-size: var(--t-md); line-height: 1.7; overflow-wrap: break-word; text-align: start; min-width: 0; }
.file-doc > .doc { max-width: 820px; margin-inline: auto; padding: clamp(32px, 4vw, 52px) clamp(24px, 5vw, 64px) clamp(36px, 4.6vw, 60px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xs); box-shadow: var(--e-2); }
.doc-body > :first-child { margin-top: 0; }
.doc-body > :last-child { margin-bottom: 0; }
.doc p { margin: 0 0 12px; text-wrap: pretty; }
.doc p:has(+ .doc-list) { margin-bottom: 6px; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.doc a:hover { color: var(--red); }
.doc code { font: 12.5px/1.4 var(--mono); background: var(--chip); border-radius: 4px; padding: 1px 5px; }
.doc .doc-h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0 0 18px; text-wrap: balance; }
.doc .doc-h1::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 16px; border-radius: 2px; background: var(--red); }
.doc .doc-h1 + p { font-size: var(--t-lg); color: var(--ink-2); margin-bottom: 4px; }
.doc .doc-h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--ink); margin: 34px 0 10px; }
.doc .doc-h3 { font-size: var(--t-md); font-weight: 600; line-height: 1.4; color: var(--ink); margin: 22px 0 6px; }
.doc .doc-h4 { font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.doc-list { list-style: none; margin: 0 0 14px; padding: 0; }
.doc-list > li { position: relative; margin: 0 0 6px; padding-inline-start: 22px; }
.doc-list > li:last-child { margin-bottom: 0; }
ul.doc-list > li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
/* A numbered item keeps the marker it was written with ("1.", "2)"), as text beside it. */
ol.doc-list > li { display: flex; align-items: baseline; gap: 8px; padding-inline-start: 0; }
.doc-n { flex: none; min-width: 22px; text-align: end; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-li { flex: 1 1 0; min-width: 0; }
.doc-list .doc-list { margin: 6px 0 2px; }
.doc-list ul.doc-list > li::before { background: transparent; border: 1px solid var(--faint); }
.doc blockquote { margin: 0 0 14px; padding-block: 2px; padding-inline: 16px 0; border-inline-start: 3px solid var(--control); color: var(--ink-2); }
.doc-pre-info { margin: 0 0 4px; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.doc-pre { margin: 0 0 14px; padding: 12px 14px; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; background: var(--head); border: 1px solid var(--hairline); border-radius: var(--r-xs); }
.doc-rule { border: 0; border-top: 1px solid var(--hairline); margin: 26px 0; }
.doc-table { margin: 4px 0 16px; overflow-x: auto; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: var(--t-base); line-height: 1.55; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.doc-table th, .doc-table td { padding: 10px 14px; text-align: start; vertical-align: top; }
.doc-table th { font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--control); white-space: nowrap; }
.doc-table td { border-top: 1px solid var(--divider-2); }
.doc-table tr > :first-child { padding-inline-start: 2px; }
.doc-table tr > :last-child { padding-inline-end: 2px; }
.doc-table .doc-center { text-align: center; }
.doc-table .doc-end { text-align: end; }
/* The Limits: the one part with a strict format. The rows (white) are the lines the filter reads;
   anything else written in the section is ordinary text on the panel's ground, in its place. */
.doc-limits { margin: 34px 0 30px; border: 1px solid var(--control-2); border-radius: var(--r-sm); background: var(--head); overflow: hidden; }
.doc-limits:last-child { margin-bottom: 0; }
.doc-limits-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 14px 18px 0; }
.doc .doc-limits-head .doc-h2 { margin: 0; }
.doc-limits-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-xs); background: var(--ink); color: var(--white); font-size: var(--t-xs); font-weight: 600; line-height: 1; white-space: nowrap; }
.doc-limits-tag .ms { font-size: 15px; }
.doc-limits > :not(.doc-limits-head):not(.doc-limit-rows) { margin-inline: 18px; }
.doc-limits > p { margin-block: 6px 0; font-size: var(--t-sm); line-height: 1.5; color: var(--muted); }
.doc-limits > .doc-list { margin-block: 10px 0; font-size: var(--t-base); line-height: 1.55; color: var(--ink-2); }
.doc-limits > :last-child:not(.doc-limit-rows) { margin-bottom: 14px; }
.doc-limit-rows { list-style: none; margin: 14px 0 0; padding: 0; background: var(--surface); border-block: 1px solid var(--control-2); }
.doc-limit-rows:last-child { border-bottom: 0; }
.doc-limit-rows + * { margin-top: 12px; }
.doc-limit { display: grid; grid-template-columns: minmax(150px, 32%) minmax(0, 1fr); gap: 2px 20px; align-items: baseline; padding: 11px 18px; border-top: 1px solid var(--divider-2); line-height: 1.55; }
.doc-limit:first-child { border-top: 0; }
.doc-limit-k { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.doc-limit-v { color: var(--ink); min-width: 0; }
.doc-none { color: var(--dash); }
/* Small and scrolling: an earlier version, Hunter's offered draft. */
.doc-inset { margin: 8px 0 4px; padding: 18px 20px; max-height: 420px; overflow: auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); font-size: var(--t-base); line-height: 1.6; }
.doc-inset .doc-h1 { font-size: 22px; margin-bottom: 12px; }
.doc-inset .doc-h1::after { width: 32px; height: 2px; margin-top: 10px; }
.doc-inset .doc-h1 + p { font-size: var(--t-base); }
.doc-inset .doc-h2 { font-size: 17px; margin: 22px 0 8px; }
.doc-inset .doc-limits { margin: 22px 0 18px; }
.doc-inset .doc-limit, .setup-files .doc-limit { grid-template-columns: minmax(0, 1fr); }
/* The setup's panel is the paper: no desk, the sheet's own padding gone. */
.setup-files .file-doc { background: transparent; border: 0; border-radius: 0; padding: 0; }
.setup-files .file-doc > .doc { max-width: none; padding: 6px 0 4px; border: 0; border-radius: 0; box-shadow: none; }
.setup-files .doc .doc-h1 { font-size: 26px; }
.setup-files .doc .doc-h2 { font-size: 19px; }
.setup-files .doc-body > .doc-h2 { margin-top: 28px; }
.setup-files .file-doc-bar { margin-bottom: 4px; }
.setup-files .file-form .file-doc-bar { margin-bottom: 10px; }
/* Step 3 is about the files: their column is the wider one, and the chat stays in view beside a long file
   (where the window is tall enough to hold the whole chat under the toolbar). */
@media (min-width: 961px) {
  .setup-columns:has(> .setup-files) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
@media (min-width: 961px) and (min-height: 700px) {
  .setup-columns:has(> .setup-files) > .assistant-page { position: sticky; top: calc(var(--nav-h) + 24px); }
}
@media (max-width: 760px) {
  .file-doc { background: transparent; border: 0; border-radius: 0; padding: 0; }
  .file-doc > .doc { max-width: none; padding: 6px 0 4px; border: 0; border-radius: 0; box-shadow: none; }
  .file-doc-bar { margin-bottom: 4px; }
  .file-form .file-doc-bar { margin-bottom: 10px; }
  .doc .doc-h1 { font-size: 26px; }
  .doc .doc-h2 { font-size: 19px; }
  .doc-body > .doc-h2 { margin-top: 28px; }
  .doc-limit { grid-template-columns: minmax(0, 1fr); }
  .doc-limits-head, .doc-limit { padding-inline: 14px; }
  .doc-limits > :not(.doc-limits-head):not(.doc-limit-rows) { margin-inline: 14px; }
  .doc-table th, .doc-table td { padding: 8px 10px; }
}
@media print {
  main.files-page > .page-head, .files-page .file-tabs, .files-page .card-head, .files-page .task-card, .files-page .kept-block, .files-page .file-draft,
  .file-doc-bar, .file-history, .file-check-link, .setup-draft, nav.dev-tabs { display: none !important; }
  .files-page .card.file-card { border: 0; box-shadow: none; background: transparent; }
  .files-page .card-body { padding: 0; }
  .file-doc { background: transparent; border: 0; padding: 0; }
  .file-doc > .doc { max-width: none; padding: 0; border: 0; box-shadow: none; }
  .doc-inset { max-height: none; overflow: visible; }
  .doc [class^="doc-h"] { break-after: avoid; }
  .doc-limit, .doc-table tr, .doc-list > li { break-inside: avoid; }
  .doc-limits-tag { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
}
/* The keeper's lines (services/keeper.py). */
.kept-block { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 12px; }
.kept-block h3, #keeper h3 { margin: 0 0 4px; font-size: var(--t-md); }
.kept-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; }
.kept-line { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.kept-line:last-child { border-bottom: 0; }
.kept-line.is-pending { background: var(--amber-wash); border-radius: var(--r-sm); padding: 8px 10px; border-bottom: 0; margin-bottom: 4px; }
.kept-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kept-statement { overflow-wrap: anywhere; }
.kept-ops { display: flex; gap: 4px; flex-shrink: 0; }
.kept-history { margin-top: 12px; }
.kept-history summary { cursor: pointer; font-weight: 600; }
.kept-history > ol > li { padding: 8px 0; }
.check-card { padding: 18px; }
.check-card h2 { margin: 0 0 4px; }
.check-text { white-space: pre-wrap; font-size: 13.5px; max-height: 420px; overflow: auto; border-top: 1px solid var(--divider); padding-top: 10px; margin-top: 10px; }
.check-answers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.check-progress { margin: 0 0 6px; }
.profile-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.profile-files .files-banner .meta { display: block; }

/* Small screens: the band hugs main's phone padding; the editors lose their indent. */
@media (max-width: 760px) {
  main.dev-main { padding: var(--s-5) var(--s-4) 80px; }
  body.has-assistant main.dev-main { padding-bottom: 112px; }
  .con-head { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-4)) var(--s-5); padding: 20px var(--s-4); }
  .con-actions { width: 100%; }
  /* The six sections as tabs, a strip under the band that scrolls sideways. */
  nav.dev-tabs { display: flex; margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-4)) var(--s-5); padding: 6px var(--s-4); gap: 4px; max-width: none; border-radius: 0;
    border-bottom: 1px solid var(--hairline); scroll-padding-inline: var(--s-4); }
  nav.dev-tabs > a { height: 36px; flex: none; }
  nav.dev-tabs > a .ms { font-size: 18px; }
  nav.dev-tabs > a:focus-visible { outline-offset: -2px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .con-subnav { top: var(--nav-h); }
  .fb-note-form .note-inner { padding-inline: 16px; }
  .editor { padding-inline: 16px; }
  .cov-log > [role="cell"] { padding-inline: 16px; }
  .agents-group:has(.group-keep) > summary { padding-inline-end: 16px; }
  .group-keep { position: static; padding: 0 16px 12px; }
}
/* The privacy policy: a readable column on the visitor's page. */
.legal-page { max-width: 72ch; margin: 0 auto; padding: 48px 16px 64px; line-height: 1.65; }
.legal-page h1 { font-family: var(--font-display); margin: 0 0 4px; }
.legal-page h2 { font-size: var(--t-lg); margin: 28px 0 8px; }
.legal-page ul { padding-inline-start: 20px; }
.legal-page li { margin: 6px 0; }
