/* Job search prototype: the design system.
   Two layers share these tokens. The brand layer (landing, the first look, onboarding moments, sign-in, empty states, the
   emails) carries the human touch: marker swipes and hand-drawn marks, a light paper grain. The product layer (Today,
   Employers, Messages, You…) stays calm, clear and quick: warmth comes from the words and small details, not from mess.
   Every colour, size, space, radius, shadow and motion below comes from a token; templates never hard-code one.
   How to add a screen: docs/features.md → "Design system". Fonts (SIL Open Font License 1.1, self-hosted, licences in
   static/fonts/): Bricolage Grotesque for headings, Atkinson Hyperlegible Next for everything you read. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"),
       url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Atkinson Hyperlegible Next writes every zero with a slash (no feature turns it off, checked), meant for codes and IDs.
   Pay, dates and counts read as text, so the digits 0-9 of the reading face come from Bricolage Grotesque instead: same
   family name, one character range, so no text needs to know. Declared after the Atkinson faces so it wins for digits. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"),
       url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap; size-adjust: 96%;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"),
       url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap; size-adjust: 96%;
  unicode-range: U+0030-0039;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour. A cool stone base (not cream), ink text, one bold marigold marker for what matters. Contrast (WCAG AA,
     checked): ink on paper 15:1, ink-2 on paper 6.4:1, ink on marigold 9.3:1, accent-text on white 6.1:1. */
  --paper: #edeeeb;          /* the page */
  --surface: #ffffff;        /* cards, inputs */
  --surface-2: #e2e4e0;      /* quiet fills: chips, tags, wells */
  --line: #d3d6d1;           /* card edges and dividers (decorative) */
  --line-strong: #8c938d;    /* edges that identify a control: inputs, checkboxes (3:1) */
  --ink: #16181b;            /* text */
  --ink-2: #50565c;          /* secondary text */
  --accent: #f7ae1d;         /* marigold: the primary button, marks, the one thing to notice */
  --accent-press: #e59a07;
  --accent-ink: #16181b;     /* text on marigold, in both themes */
  --accent-soft: #ffefc7;    /* selected, due, highlighted */
  --accent-text: #8a5700;    /* marigold as text on light surfaces */
  --ok: #2b7349;  --ok-soft: #e1f0e6;
  --danger: #b42318;  --danger-soft: #fce8e6;
  --demo: #5b3fa3;  --demo-soft: #ece6f8;
  --focus: #16181b;          /* focus ring */
  --grain-opacity: .5;
  --grain-blend: multiply;

  /* Type. Bricolage Grotesque (display, optical sizes) + Atkinson Hyperlegible Next (reading, made for low vision). */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .78rem;   --fs-sm: .875rem;  --fs-base: 1rem;   --fs-md: 1.125rem;
  --fs-lg: 1.3rem;   --fs-xl: 1.7rem;   --fs-2xl: 2.15rem;
  --fs-display: clamp(2.2rem, 1.55rem + 2.9vw, 3.5rem);
  --lh-tight: 1.06;  --lh-snug: 1.22;   --lh-body: 1.55;
  --tr-display: -.03em;  --tr-head: -.015em;  --tr-caps: .07em;
  --w-regular: 420;  --w-medium: 560;   --w-bold: 700;

  /* Space: a 4 px rhythm. */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4rem;

  /* Shape and depth. */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(22, 24, 27, .04), 0 1px 3px rgba(22, 24, 27, .06);
  --shadow-2: 0 2px 6px rgba(22, 24, 27, .06), 0 16px 40px rgba(22, 24, 27, .12);
  --tap: 44px;               /* the smallest thing you can tap, on phones */

  /* Motion: springs as CSS linear() curves (Apple's damping 1.0 / 0.8, response 0.35 s). Transitions, not keyframes,
     for anything you touch, so a change of mind reverses from where it is. */
  --spring: linear(0, .0492, .1574, .2852, .4113, .5256, .6239, .7057, .772, .8249, .8665, .8989, .9237, .9428, .9572, .9681, .9763, .9825, .9871, .9905, .993, .9949, .9962, .9972, 1);
  --spring-bounce: linear(0, .0465, .1553, .2912, .4315, .5623, .6765, .771, .846, .9032, .945, .9742, .9935, 1.0054, 1.0119, 1.0147, 1.0151, 1.014, 1.0122, 1.0101, 1.008, 1.0061, 1.0044, 1.0031, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-press: 90ms;   --t-fast: 160ms;   --t-spring: 470ms;   --t-draw: 700ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111315;  --surface: #1a1d20;  --surface-2: #24282c;
    --line: #30353a;  --line-strong: #6b737a;
    --ink: #eceeef;  --ink-2: #a7afb5;
    --accent: #f9b940;  --accent-press: #ffc95c;  --accent-ink: #16181b;
    --accent-soft: #3a2e10;  --accent-text: #f9b940;
    --ok: #6ccb93;  --ok-soft: #15301f;
    --danger: #f29a8e;  --danger-soft: #3b1d1a;
    --demo: #b9a3f0;  --demo-soft: #26203a;
    --focus: #f9b940;
    --shadow-1: none;
    --shadow-2: 0 16px 40px rgba(0, 0, 0, .5);
    --grain-opacity: .35;
    --grain-blend: screen;
    color-scheme: dark;
  }
}
@media (prefers-contrast: more) {
  :root { --line: var(--line-strong); --ink-2: var(--ink); }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: var(--w-regular) var(--fs-base)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.tabular, .num, .stage b, .setup-count b, .tile b, .funnel-n, .number b, .price, .table td.num, .review-table td { font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--ink); }
a.btn, a.chip, a.tile, a.number, a.brand, .nav a, .tabbar a, .filters a, .stage, .rd-tab, .kc-link, .email-list a, .boosts a { text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-snug); margin: 0 0 .4em; font-weight: 650; letter-spacing: var(--tr-head); font-optical-sizing: auto; }
h1 { font-weight: var(--w-bold); font-size: var(--fs-2xl); line-height: var(--lh-tight); letter-spacing: var(--tr-display); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-base); }
p { margin: 0 0 .8em; }
ul, ol { margin: 0 0 .8em; padding-left: 1.2em; }
b, strong { font-weight: var(--w-bold); }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.spacer { flex: 1; }
.right { text-align: right; }
.pre { white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.inline { display: inline-flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.mt-3 { margin-top: var(--sp-3); }
.mt-5 { margin-top: var(--sp-5); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--sp-4); }
.wrap.narrow { max-width: 640px; }
.wrap.wide { max-width: 1280px; }
main.wrap { padding-top: var(--sp-6); padding-bottom: var(--sp-8); }

/* ---------- The brand layer: paper grain and hand-drawn marks ---------- */
body.layer-brand::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .48  0 0 0 0 .44  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.brand { font-family: var(--font-display); font-weight: 750; font-size: var(--fs-md); letter-spacing: -.02em; color: var(--ink); display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.brand-mark { width: 1.45em; height: 1.45em; flex: none; overflow: visible; }
.brand-mark .blob { fill: var(--accent); }
.brand-mark .pen { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.badge { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--w-medium); text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 1px 7px; }

/* A marker swipe under a few words (marks.underline) and a loop around one (marks.circled) */
.mark-u, .mark-o { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.mark-u-line { position: absolute; left: -2%; width: 104%; bottom: -.08em; height: .42em; z-index: -1; overflow: visible; }
.mark-u-line path { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mark-u-line .second { stroke-width: 4; opacity: .7; }
.mark-o-line { position: absolute; left: -14%; top: -22%; width: 128%; height: 144%; overflow: visible; }
.mark-o-line path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mark-arrow, .mark-sign { overflow: visible; }
.mark-arrow path, .mark-sign path, .doodle path { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mark-arrow { width: 64px; height: 48px; }
.mark-sign { width: 150px; height: 46px; display: block; }
.mark-sign path { stroke: var(--ink); stroke-width: 2; }
.mark-sign .second { stroke: var(--accent); stroke-width: 3.5; }
.doodle { width: 120px; height: 90px; display: block; margin: 0 auto var(--sp-3); }
.doodle .dab { fill: var(--accent-soft); stroke: none; }
.doodle .dashed { stroke-dasharray: .04 .035; }
/* Marks draw themselves in once, on the brand layer only, and never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .layer-brand .mark-u-line path, .layer-brand .mark-o-line path, .layer-brand .mark-arrow path, .layer-brand .mark-sign path {
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--t-draw) var(--ease-out) .35s forwards;
  }
  .layer-brand .mark-u-line .second, .layer-brand .mark-sign .second { animation-delay: .7s; }
  .layer-brand .mark-arrow path + path { animation-delay: .8s; animation-duration: 260ms; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* The photo slot: a real, candid photo from the operator goes here (never stock, never AI). Shown only in drafts. */
.photo-slot { margin: var(--sp-5) 0; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); min-height: 180px; display: grid; place-items: center; padding: var(--sp-5); text-align: center; color: var(--ink-2); font-size: var(--fs-sm); background: var(--surface); }
.photo-slot img { width: 100%; height: auto; border-radius: var(--r-md); display: block; }

/* The story: the product's voice, first person, signed */
.story { position: relative; margin: var(--sp-7) 0 var(--sp-6); padding: var(--sp-5) var(--sp-5) var(--sp-4); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--line); transform: rotate(-.4deg); }
.story > * { transform: rotate(.4deg); }
.story h2, .landing .story h2 { font-size: var(--fs-md); margin: 0 0 var(--sp-3); }
.story p { font-size: var(--fs-md); line-height: 1.6; }
.story .mark-sign { margin-top: var(--sp-2); }
.story-note { font-size: var(--fs-sm); color: var(--ink-2); margin: var(--sp-5) 0 0; padding-top: var(--sp-4); border-top: 1px dashed var(--line); }
.story-note .mark-sign { width: 110px; height: 34px; }
.draft-chip { display: inline-block; font-size: var(--fs-xs); font-weight: var(--w-medium); color: var(--accent-text); background: var(--accent-soft); border-radius: var(--r-pill); padding: 1px 8px; margin-left: var(--sp-2); vertical-align: middle; font-family: var(--font-body); letter-spacing: 0; }

/* ---------- Top bar and tabs ---------- */
.topbar { background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; gap: var(--sp-5); height: 60px; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav a { color: var(--ink-2); padding: 7px 12px; border-radius: var(--r-md); white-space: nowrap; font-weight: var(--w-medium); display: inline-flex; align-items: center; gap: var(--sp-2); position: relative; transition: background var(--t-fast), color var(--t-fast); }
.nav a svg { width: 18px; height: 18px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; border-radius: 3px; background: var(--accent); }
.engine-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 11px; white-space: nowrap; }
.engine-pill:hover, .engine-pill.active { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-2); vertical-align: middle; }
.dot.ok { background: var(--ok); }
.dot.off { background: var(--accent); }
.tab-icon svg, .nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Page parts ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.page-head h1 { margin-bottom: .15em; }
.eyebrow { text-transform: uppercase; letter-spacing: var(--tr-caps); font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: .35em; font-weight: var(--w-medium); }
.lead { font-size: var(--fs-md); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); box-shadow: var(--shadow-1); }
.card > :last-child, .story > :last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.flash { padding: 11px 14px; border-radius: var(--r-md); margin-bottom: var(--sp-3); background: var(--ok-soft); border: 1px solid transparent; }
.flash.error { background: var(--danger-soft); color: var(--danger); }
.banner { background: var(--accent-soft); border-radius: var(--r-md); padding: 11px 14px; margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.note { background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-3) 14px; margin: var(--sp-3) 0; color: var(--ink-2); font-size: var(--fs-sm); }
.empty { text-align: center; padding: var(--sp-6) var(--sp-5); border: 1.5px dashed var(--line); border-radius: var(--r-lg); margin-bottom: var(--sp-4); list-style: none; }
.empty h2 { font-size: var(--fs-lg); }
.empty p { color: var(--ink-2); max-width: 520px; margin: 0 auto 1.1em; }
.empty.small h2 { font-size: var(--fs-base); }
li.empty.small { padding: var(--sp-4); text-align: left; }
.hint { color: var(--ink-2); font-size: var(--fs-sm); margin-top: .5em; }
.warn { color: var(--danger); }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: var(--w-medium); padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); vertical-align: middle; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.verified { color: var(--ok); font-size: var(--fs-sm); }

/* ---------- Buttons and inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: var(--w-medium); font-size: var(--fs-sm); line-height: 1.25;
  padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-spring) var(--spring);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(.97); transition: transform var(--t-press) var(--ease-out); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: var(--w-bold); box-shadow: inset 0 -2px 0 rgba(22, 24, 27, .14); }
.btn.primary:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.lg { padding: 13px 24px; font-size: var(--fs-base); border-radius: var(--r-md); }
.btn.sm { padding: 6px 11px; font-size: var(--fs-sm); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon { font: inherit; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); width: 32px; height: 32px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast), transform var(--t-spring) var(--spring); }
.icon:hover { background: var(--surface-2); }
.icon:active { transform: scale(.92); transition-duration: var(--t-press); }
.icon.on { background: var(--accent-soft); border-color: var(--ink); }
.icon.subtle { border-color: transparent; color: var(--ink-2); }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 10px 12px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input::placeholder { color: var(--ink-2); opacity: .8; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--ink); }
.input.lg { font-size: var(--fs-md); padding: 13px 14px; }
.input.sm { padding: 6px 9px; font-size: var(--fs-sm); width: auto; max-width: 100%; }
.input.w-5 { width: 5rem; } .input.w-7 { width: 7rem; }
textarea.input { resize: vertical; line-height: 1.5; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 1.1em; height: 1.1em; }
.field { display: block; margin-bottom: var(--sp-4); }
.field-label { display: block; font-size: var(--fs-sm); font-weight: var(--w-medium); color: var(--ink-2); margin-bottom: 6px; }
.check { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-base); }
.choices { display: grid; gap: var(--sp-2); }
.choices.row { display: flex; flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-spring) var(--spring); }
.choices.row .choice span { padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); }
.choice:hover span { border-color: var(--ink); }
.choice:active span { transform: scale(.98); transition-duration: var(--t-press); }
.choice input:checked + span { border-color: var(--ink); background: var(--accent-soft); font-weight: var(--w-medium); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }

/* ---------- Welcome and onboarding (brand layer) ---------- */
body.bare { background: var(--paper); }
.welcome { padding-top: 5vh; }
.welcome > .brand { margin-bottom: var(--sp-5); }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tr-display); font-weight: var(--w-bold); margin: .5em 0 .45em; text-wrap: balance; }
.welcome .lead { color: var(--ink-2); text-wrap: pretty; }
.welcome-steps { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); display: grid; gap: var(--sp-4); counter-reset: step; }
.welcome-steps li { display: flex; gap: 14px; align-items: flex-start; }
.welcome-steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 750; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-base); border-radius: 52% 48% 55% 45% / 50% 55% 45% 50%; }
.welcome-steps li:nth-child(2) > span { border-radius: 46% 54% 48% 52% / 55% 47% 53% 45%; }
.welcome-steps li:nth-child(3) > span { border-radius: 55% 45% 52% 48% / 45% 52% 48% 55%; }
.welcome-steps p { margin: 0; color: var(--ink-2); }
.ob-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-5); min-height: var(--tap); }
.ob-progress { height: 6px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.ob-progress-bar { width: var(--pct, 0%); height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width var(--t-spring) var(--spring); }
.ob-section { font-size: var(--fs-sm); font-weight: var(--w-medium); color: var(--ink); margin: var(--sp-3) 0 var(--sp-4); }
.ob-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6) 28px var(--sp-5); box-shadow: var(--shadow-1); }
.q-title { font-size: var(--fs-xl); margin-bottom: .3em; text-wrap: balance; }
.q-help { color: var(--ink-2); margin-bottom: 1.3em; }
.ob-actions { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-5); flex-wrap: wrap; }
.payoff { background: var(--accent-soft); color: var(--ink); border-radius: var(--r-md); padding: 10px 13px; margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 28px var(--sp-4); cursor: pointer; text-align: center; transition: border-color var(--t-fast), background var(--t-fast); }
.drop:hover, .drop:focus-within { border-color: var(--ink); background: var(--accent-soft); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-title { font-weight: var(--w-bold); color: var(--ink); }
.paste { margin-top: 14px; }
.paste summary { cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.unlocks { padding-left: 1.1em; }
.unlocks li { margin-bottom: .35em; }
.how { padding-left: 1.2em; margin-bottom: var(--sp-4); }
.how li { margin-bottom: .35em; }

/* ---------- Today ---------- */
.ring-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.ring { --pct: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-weight: var(--w-bold); font-size: var(--fs-sm); font-family: var(--font-display); }
.tasks { list-style: none; padding: 0; margin: 0 0 var(--sp-2); display: grid; gap: 10px; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.tasks > .task:first-child:has(.main-action) { border-color: var(--ink); box-shadow: var(--shadow-1), inset 4px 0 0 var(--accent); }
.task-icon { flex: none; width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--surface-2); font-weight: var(--w-bold); color: var(--ink-2); }
.task.kind-send .task-icon, .task.kind-followup .task-icon, .task.kind-team .task-icon, .task.kind-reply .task-icon { background: var(--accent-soft); color: var(--accent-text); }
.task.kind-look .task-icon, .task.kind-roles .task-icon, .task.kind-apply .task-icon { background: var(--ok-soft); color: var(--ok); }
.task.kind-network .task-icon { background: var(--accent-soft); color: var(--accent-text); }
.task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.task-title { font-weight: var(--w-bold); }
.task-detail { color: var(--ink-2); font-size: var(--fs-sm); }
.task-actions { flex: none; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.task-actions form { margin: 0; }

/* ---------- Companies and research cards ---------- */
.company-head { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: flex-start; }
.company-head h2 { font-size: var(--fs-lg); margin-bottom: .15em; }
.fit { flex: none; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--w-bold); padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; vertical-align: middle; letter-spacing: 0; }
.fit-strong { background: var(--accent); color: var(--accent-ink); }
.fit-good { background: var(--surface-2); color: var(--ink); }
.fit-stretch { background: var(--accent-soft); color: var(--accent-text); }
.trigger { background: var(--surface-2); border-radius: var(--r-md); padding: 10px 13px; margin: var(--sp-3) 0 var(--sp-4); font-size: var(--fs-base); }
.trigger-label, .hook-label { display: block; font-size: var(--fs-xs); font-weight: var(--w-bold); text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--ink-2); margin-bottom: 2px; }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.company-grid h3 { color: var(--ink-2); font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tr-caps); }
.reasons { padding-left: 1.1em; }
.reasons li { margin-bottom: .3em; }
.risk { font-size: var(--fs-sm); color: var(--ink-2); }
.contact { display: flex; gap: 11px; margin-bottom: var(--sp-3); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-weight: var(--w-bold); display: grid; place-items: center; font-family: var(--font-display); }
.contact-name { font-weight: var(--w-bold); }
.hook { background: var(--accent-soft); border-radius: var(--r-md); padding: var(--sp-2) 11px; margin: 7px 0 0; font-size: var(--fs-sm); }
.hook-label { color: var(--accent-text); }
.company-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sources summary { cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); }
.sources ul { margin-top: var(--sp-2); font-size: var(--fs-sm); }

/* ---------- Outreach (older board parts still in use) ---------- */
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--sp-5); overflow: hidden; }
.funnel-step { padding: var(--sp-3) 10px; text-align: center; border-right: 1px solid var(--line); }
.funnel-step:last-child { border-right: 0; }
.funnel-n { font-size: var(--fs-lg); font-weight: var(--w-bold); font-family: var(--font-display); }
.funnel-l { font-size: var(--fs-xs); color: var(--ink-2); }
.draft-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.draft-to { font-weight: var(--w-bold); }
.draft-form { display: grid; gap: 10px; margin-top: var(--sp-3); }
.draft-body { min-height: 180px; }
.draft-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.draft.is-sent { opacity: .7; }

/* ---------- Tracker (Engine and older views) ---------- */
.add-row { display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.col { background: var(--surface-2); border-radius: var(--r-md); padding: 10px; min-height: 180px; }
.col-head { font-weight: 650; font-size: var(--fs-sm); padding: 2px 4px 10px; display: flex; justify-content: space-between; }
.count { color: var(--ink-2); font-weight: var(--w-regular); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 11px; margin-bottom: var(--sp-2); }
.kc-title { font-weight: var(--w-bold); }
.kc-actions { display: flex; justify-content: space-between; margin-top: var(--sp-2); }
.kc-actions .icon { width: 26px; height: 26px; font-size: var(--fs-sm); }
.due { color: var(--ink-2); margin-top: var(--sp-1); }
.due.overdue { color: var(--accent-text); font-weight: var(--w-bold); }

/* ---------- Profile parts ---------- */
.running { display: flex; align-items: center; gap: var(--sp-3); padding: 14px; background: var(--accent-soft); border-radius: var(--r-md); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink); border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pitch { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; line-height: 1.35; margin: 6px 0 var(--sp-5); padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); border-left: 4px solid var(--accent); }
.families { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.family { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); background: var(--paper); display: flex; flex-direction: column; }
.family-head { display: flex; justify-content: space-between; gap: var(--sp-2); align-items: flex-start; }
.family-head h3 { font-size: var(--fs-base); }
.evidence { font-size: var(--fs-sm); color: var(--ink-2); padding-left: 1.1em; }
.vote { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--sp-2); }
.pos-lists ul, .questions ul { padding-left: 1.1em; }
.boosts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-2); }
.boosts a { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 11px var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
.boosts a:hover { border-color: var(--ink); }
.boosts a > span:last-child { display: flex; flex-direction: column; }
.boost-plus { flex: none; font-weight: var(--w-bold); color: var(--accent-ink); background: var(--accent); border-radius: var(--r-sm); padding: 2px 7px; font-size: var(--fs-xs); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: var(--sp-2) 0 14px; font-size: var(--fs-sm); }
.facts dt { text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--ink-2); font-size: var(--fs-xs); padding-top: 2px; }
.facts dd { margin: 0; }
.facts.story { grid-template-columns: 1fr; }
.facts.story dt { font-weight: var(--w-bold); color: var(--ink); margin-top: var(--sp-2); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.bars { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 140px 1fr 32px; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--accent) var(--w), var(--surface-2) var(--w)); }
.bar-n { text-align: right; color: var(--ink-2); }

/* ---------- Engine (for us only: tokens, no brand work) ---------- */
.code { background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-3) 14px; font-size: var(--fs-sm); overflow-x: auto; white-space: pre; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: 14px; }
.table th { text-align: left; color: var(--ink-2); font-weight: var(--w-medium); font-size: var(--fs-xs); padding: var(--sp-2) 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.model-form { display: flex; gap: 6px; align-items: center; }
.model-form select { max-width: 330px; }
.danger-zone { border-color: var(--danger-soft); }
.keys { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.keys code { font-size: var(--fs-sm); }
.area + .area { border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-top: var(--sp-3); }
.review { margin: var(--sp-2) 0 var(--sp-3); padding-left: 18px; }
.review li { margin: 2px 0; }
.review .review-head { font-weight: var(--w-bold); list-style: none; margin-left: -18px; }
.w-cell { width: 15rem; }

@media (max-width: 760px) {
  h1 { font-size: var(--fs-xl); }
  .topbar-inner { gap: 10px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -6px; }
  .badge { display: none; }
  .grid-2, .company-grid { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funnel-step:nth-child(3) { border-right: 0; }
  .funnel-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .add-row { grid-template-columns: 1fr 1fr; }
  .page-head { flex-direction: column; }
  .ob-card { padding: var(--sp-5) 18px 18px; }
  .q-title { font-size: 1.45rem; }
  .bars li { grid-template-columns: 110px 1fr 28px; }
  .role-row { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}

/* ---------- Research panel, filters ---------- */
.research { display: flex; gap: var(--sp-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.research-form { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.research-meta { font-size: var(--fs-sm); color: var(--ink-2); }
.research-meta b { color: var(--ink); }
.filters { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.filters a { padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); }
.filters a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters a:hover { color: var(--ink); }
.warm-badge { display: inline-block; font-size: var(--fs-xs); font-weight: var(--w-bold); padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); vertical-align: middle; }
.roles { font-size: var(--fs-sm); margin-top: var(--sp-3); }
.roles a { white-space: nowrap; }
.quote { color: var(--ink-2); font-style: italic; }
details.excluded { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--sp-2); }

/* ---------- Onboarding: CV review, roles, chips ---------- */
.small-drop { padding: var(--sp-4); }
.suggest { background: var(--accent-soft); border-radius: var(--r-md); padding: var(--sp-3) 14px; margin-bottom: 14px; }
.suggest p { margin-bottom: .6em; }
.suggestion { display: block; width: 100%; text-align: left; font: inherit; font-size: var(--fs-base); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px var(--sp-3); margin: 6px 0; cursor: pointer; color: var(--ink); }
.suggestion:hover { border-color: var(--ink); }
.boost-prompt { display: block; font-size: var(--fs-sm); margin-top: 3px; color: var(--ink); font-style: italic; }
.translated { font-size: var(--fs-xs); color: var(--ink-2); margin: -8px 0 14px; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); align-items: center; }
.tr-tag { font-weight: var(--w-bold); color: var(--accent-text); background: var(--accent-soft); padding: 1px 8px; border-radius: var(--r-pill); }
.tr-pair { background: var(--surface-2); padding: 1px 7px; border-radius: var(--r-sm); }
.check-note { background: var(--accent-soft); border-radius: var(--r-md); padding: 10px 13px; margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.result-row, .role-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px var(--sp-3); margin-bottom: var(--sp-2); background: var(--surface); }
.result-row.status-unconfirmed, .role-row.status-unconfirmed, .result-row.status-suggested { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.result-opt { display: flex; gap: var(--sp-2); align-items: flex-start; margin-bottom: 6px; font-size: var(--fs-base); cursor: pointer; }
.result-opt input { margin-top: 4px; }
.result-text { margin: 0 0 var(--sp-1); }
.confirm { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); background: var(--accent-soft); border-radius: var(--r-sm); padding: 6px 9px; margin: 6px 0 var(--sp-1); cursor: pointer; }
.confirm input { margin-top: 3px; }
.remove { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.role-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.role-row .tr-tag, .role-row .confirm { grid-column: 1 / -1; justify-self: start; }
.role-row input[name$="_title"] { grid-column: 1 / -1; font-weight: var(--w-bold); }
.role-row input[name$="_dates"] { width: 11rem; }
.lang-row { display: flex; gap: var(--sp-2); align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.lang-name { min-width: 110px; font-weight: var(--w-bold); }
.warn-soft { color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 7px; background: var(--surface); }
.chips:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-item { display: inline-flex; align-items: center; gap: var(--sp-1); background: var(--surface-2); border-radius: var(--r-pill); padding: 3px var(--sp-1) 3px 11px; font-size: var(--fs-sm); }
.chip-item.changed { background: var(--accent-soft); }
.chip-note { font-size: var(--fs-xs); color: var(--accent-text); margin-left: var(--sp-1); }
.chip-x { font: inherit; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; width: 24px; height: 24px; border-radius: 50%; line-height: 1; }
.chip-x:hover { background: var(--line); color: var(--ink); }
.chip-add { border: 0; outline: none; font: inherit; font-size: var(--fs-sm); flex: 1; min-width: 120px; padding: var(--sp-1) 6px; background: transparent; color: var(--ink); }
.answers { background: var(--accent-soft); border-radius: var(--r-sm); padding: var(--sp-2) 10px; margin: 6px 0 var(--sp-1); display: grid; gap: var(--sp-1); }
.role-row .answers { grid-column: 1 / -1; }
.answers-q { font-size: var(--fs-sm); margin-bottom: 2px; }
.answer { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; padding: 3px 0; }
.answer input { margin-top: 4px; }
.answer-line { display: block; color: var(--ink-2); font-size: var(--fs-sm); }
/* One choice per result: picking "Remove" greys the card and hides its check. */
.result-row:has(input[value="remove"]:checked) { opacity: .5; border-style: dashed; border-color: var(--line); box-shadow: none; }
.result-row:has(input[value="remove"]:checked) .answers,
.result-row:has(input[value="remove"]:checked) .confirm,
.result-row:has(input[value="remove"]:checked) .tr-tag { display: none; }
.remove-opt { margin-top: 2px; }
.field.spaced { margin-top: var(--sp-5); }

/* ---------- Contacts and hooks ---------- */
.rel { font-size: var(--fs-xs); font-weight: var(--w-bold); padding: 1px 7px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); margin-left: var(--sp-1); vertical-align: middle; }
.rel-hiring_manager { background: var(--ok-soft); color: var(--ok); }
.rel-connection { background: var(--accent-soft); color: var(--accent-text); }
.avatar.known { background: var(--accent); color: var(--accent-ink); }
.why { color: var(--ink); margin-top: 2px; }
.contact + form { margin-top: var(--sp-1); }
.kc-link { display: block; color: var(--ink); }
.kc-link:hover { color: var(--ink); }
.kcard:has(.kc-link:hover) { border-color: var(--ink); }
.kc-note { color: var(--ink-2); margin-top: var(--sp-1); }

/* ---------- Outreach drafts ---------- */
.tag.warn { background: var(--accent-soft); color: var(--accent-text); }
.banner.warn ul { margin: 6px 0 0; padding-left: 18px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: var(--sp-1) 0 var(--sp-3); }
.inline-form .input { width: 100%; min-width: 0; }
.inline-form .field { flex: 1 1 13rem; min-width: 0; margin-bottom: 0; }
.inline-form > .btn { align-self: flex-end; }
.small-head { font-size: var(--fs-sm); margin: var(--sp-4) 0 6px; display: flex; gap: var(--sp-2); align-items: baseline; }
.draft .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--sp-3); }
.draft .sources ul { padding-left: 18px; }
.draft .sources li { margin-bottom: 6px; }
.rec-label { font-size: var(--fs-xs); font-weight: var(--w-bold); text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--accent-text); margin: 10px 0 2px; }
.rec-why { margin: 0 0 var(--sp-1); }
details.others { margin-top: 10px; }
details.others summary { cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Radar and master list (Engine views) ---------- */
.radar-row { display: flex; gap: var(--sp-3); align-items: flex-start; justify-content: space-between; padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); }
.radar-main { min-width: 0; }
.radar-main .tag { margin-left: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 var(--sp-4); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px var(--sp-3); }
.tile b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.tile span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--ink-2); }
.tile.due b { color: var(--accent-text); }
a.tile { color: inherit; }
a.tile:hover { border-color: var(--ink); }
.ofilters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: var(--sp-3); }
.ofilters select { font: inherit; font-size: var(--fs-sm); padding: 6px var(--sp-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.ocard { padding: 0; margin-bottom: 10px; }
.ocard > summary { list-style: none; }
.ocard > summary::-webkit-details-marker { display: none; }
.ohead { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; padding: 14px 18px; cursor: pointer; flex-wrap: wrap; }
.oname { font-weight: var(--w-bold); font-size: var(--fs-md); }
.ochips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-st { font-size: var(--fs-xs); font-weight: var(--w-bold); padding: 2px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.st-sent, .st-landed { background: var(--ok-soft); color: var(--ok); }
.st-due, .st-bounced { background: var(--accent-soft); color: var(--accent-text); }
.st-replied { background: var(--ok-soft); color: var(--ok); }
.st-closed { background: var(--danger-soft); color: var(--danger); }
.obody { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-1) 18px 18px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px var(--sp-3); margin: 14px 0 0; font-size: var(--fs-sm); }
.kv dt { color: var(--ink-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tr-caps); padding-top: 3px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.addr { margin-top: 14px; font-size: var(--fs-sm); }
.addr > b { display: block; font-size: var(--fs-sm); color: var(--ink-2); font-weight: var(--w-medium); margin-bottom: 6px; }
.addr .a { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.addr .n { width: 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.addr .e { flex: 1; min-width: 180px; font-weight: var(--w-bold); overflow-wrap: anywhere; }
.addr .a.bounced .e { text-decoration: line-through; color: var(--danger); font-weight: var(--w-regular); }
.addr .a.landed .e { color: var(--ok); }
.addr-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
.ocard .actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); align-items: center; }
.ocard .actions .spacer { flex: 1; }
.ocard .sources textarea, .ocard .sources input { margin-top: 6px; }
.side { border-left: 1px solid var(--line); padding-left: var(--sp-4); display: flex; flex-direction: column; gap: 10px; }
.side textarea { width: 100%; }
.olog { font-size: var(--fs-xs); color: var(--ink-2); padding-left: var(--sp-4); margin: 0; }
@media (max-width: 760px) {
  .obody { grid-template-columns: 1fr; } .ohead { flex-direction: column; align-items: flex-start; } .ochips { justify-content: flex-start; }
  .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--sp-3); }
}
.steps { list-style: none; padding: 0; margin: var(--sp-2) 0; display: grid; gap: var(--sp-2); }
.steps form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.steps li { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; padding: 11px var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.steps li > span { display: flex; flex-direction: column; min-width: 0; }
.mrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); align-items: start; }
.mmain { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.mtags { display: flex; flex-wrap: wrap; gap: 6px; }
.mact { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.prio { display: inline-block; min-width: 20px; text-align: center; font-size: var(--fs-xs); font-weight: var(--w-bold); border-radius: var(--r-sm); padding: 1px 6px; margin-right: var(--sp-1); }
.prio-A { background: var(--accent); color: var(--accent-ink); }
.prio-B { background: var(--accent-soft); color: var(--accent-text); }
.prio-C { background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 640px) { .mrow { grid-template-columns: 22px minmax(0, 1fr); } .mact { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* ---------- Direction chat, stories, dig deeper ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-4); }
.bubble { max-width: 88%; padding: 11px 14px; border-radius: var(--r-lg); line-height: 1.5; }
.bubble.app { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: var(--r-sm); }
.bubble.me { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: var(--r-sm); white-space: pre-wrap; }
.bubble.wide { max-width: 100%; }
.bubble p:last-child, .bubble ul:last-child { margin-bottom: 0; }
.chat-input { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); }
.chat-input .ob-actions { margin-top: var(--sp-3); }
.rd-steps { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--ink-2); }
.rd-steps li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px var(--sp-1); border-radius: var(--r-pill); background: var(--surface-2); }
.rd-steps li span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: var(--w-bold); font-size: var(--fs-xs); }
.rd-steps li.on { background: var(--accent-soft); color: var(--ink); font-weight: var(--w-bold); }
.rd-steps li.past span { background: var(--ink); color: var(--paper); }
.rd-list { margin: 10px 0; padding-left: 1.3em; }
.rd-list li { margin-bottom: .55em; }
.rd-list li > span:not(.tag) { display: block; }
.rd-list.plain { list-style: none; padding-left: 0; }
.rd-fork { background: var(--accent-soft); border-radius: var(--r-md); padding: 10px 13px; font-weight: var(--w-medium); }
.rd-group { margin-top: 14px; color: var(--ink-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tr-caps); }
.rd-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: var(--fs-sm); }
.rd-table th, .rd-table td { text-align: left; padding: 6px var(--sp-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.rd-table th { color: var(--ink-2); font-weight: var(--w-medium); font-size: var(--fs-xs); }
.rd-table tr.rd-overlap td { background: var(--accent-soft); }
.rd-trait { align-items: flex-start; margin-bottom: var(--sp-2); }
.rd-trait input, .dg-item input { margin-top: 4px; flex: none; }
.rd-sort { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.rd-sort-name { flex: 1 1 220px; min-width: 0; }
.roles-mode { margin-bottom: var(--sp-2); }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: 6px 0; }
.st-voice { margin-top: 10px; padding: 14px; }
.dg-item { align-items: flex-start; margin-bottom: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); cursor: pointer; transition: background var(--t-fast); }
.dg-item:hover { background: var(--paper); }
.dg-item:has(input:checked) { background: var(--accent-soft); }
.dg-quote { display: block; margin-top: 2px; }
.dg-source { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: baseline; }
.dg-find .input { flex: 1 1 240px; }
.dg-group { margin: var(--sp-5) 0 var(--sp-1); font-family: var(--font-body); font-size: var(--fs-xs); color: var(--ink-2); font-weight: var(--w-bold); text-transform: uppercase; letter-spacing: var(--tr-caps); }
.dg-role-head h2 { margin: 0; }
.dg-role-head .dg-at { display: block; font-family: var(--font-body); font-size: var(--fs-base); font-weight: var(--w-regular); color: var(--ink-2); letter-spacing: 0; margin-top: 2px; }
.dg-looking { display: flex; align-items: center; gap: var(--sp-2); }
.dg-paste-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
.dg-paste-actions .input { flex: 1 1 14rem; }
.deeper-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.deeper-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.deeper-list li.done b { color: var(--ok); }

/* ---------- Autopilot: digest, wave, weekly review ---------- */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.review-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-3); }
.review-table th, .review-table td { text-align: left; padding: 6px var(--sp-2); border-bottom: 1px solid var(--line); }
.review-table tr.lead td { font-weight: var(--w-bold); color: var(--accent-text); }

/* ---------- Voice card ---------- */
.vc-words { padding-left: 1.1em; }
.vc-words li { margin-bottom: .3em; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin: 6px 0 var(--sp-3); }
.vc-pick summary::-webkit-details-marker { display: none; }
.vc-pick[open] > summary { background: var(--surface-2); }
.vc-excerpt { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-2); }
.vc-excerpt blockquote { margin: 0; padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--accent); color: var(--ink-2); font-size: var(--fs-sm); }
.vc-options { display: grid; gap: 10px; }
.vc-option { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }

/* ---------- Chips (one definition) ---------- */
.chip { font: inherit; font-size: var(--fs-sm); padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; list-style: none; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-spring) var(--spring); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); transition-duration: var(--t-press); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.subtle { color: var(--ink-2); border-color: transparent; }

/* ---------- Save / dismiss in place ---------- */
.reason-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex-basis: 100%; justify-content: flex-end; padding-top: var(--sp-1); }
.reason-pick[hidden] { display: none; }
.company.collapsing { overflow: hidden; transition: max-height var(--t-spring) var(--spring), opacity var(--t-fast) ease, padding var(--t-spring) var(--spring), margin var(--t-spring) var(--spring); }
.dismissed-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.dismissed-row .spacer { flex: 1; }
.company.is-dismissed { padding: 10px var(--sp-4); background: transparent; box-shadow: none; border-style: dashed; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; cursor: pointer; }
.linklike { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }

/* ---------- Research v2 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.visa, .loc-flag { font-size: var(--fs-xs); font-weight: var(--w-bold); padding: 3px 9px; border-radius: var(--r-pill); }
.visa.yes { background: var(--ok-soft); color: var(--ok); }
.visa.no { background: var(--danger-soft); color: var(--danger); }
.loc-flag { background: var(--accent-soft); color: var(--accent-text); }
.loc-flag.soft { background: var(--surface-2); color: var(--ink-2); }
.trigger.none { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- Demo mode: its own colour, on every page ---------- */
.demo-banner { background: var(--demo-soft); color: var(--ink); border-bottom: 2px solid var(--demo); font-size: var(--fs-sm); }
.demo-banner .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.demo-banner b { color: var(--demo); }
.demo-banner form { margin: 0; }
.demo-banner .btn { padding: 4px 12px; }
.demo-people { display: grid; gap: var(--sp-3); }
.demo-person + .demo-person { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.demo-person { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.demo-buttons { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.demo-mail { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-3) 14px; font-size: var(--fs-sm); }

/* ---------- The digest email as it would arrive (Engine's Emails page, the demo's Your emails) ---------- */
.email-view { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.email-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.email-list li + li { border-top: 1px solid var(--line); }
.email-list a { display: block; padding: 10px var(--sp-3); color: inherit; }
.email-list a b { display: block; font-weight: var(--w-bold); font-size: var(--fs-sm); }
.email-list li.on a { background: var(--surface-2); }
.email-head { margin: 0 0 var(--sp-2); }
.email-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.email-text { white-space: pre-wrap; font-size: var(--fs-sm); background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-3); overflow-wrap: anywhere; }
@media (max-width: 760px) { .email-view { grid-template-columns: minmax(0, 1fr); } .email-frame { height: 560px; } }

/* ---------- Shared parts: the paused banner, the progress line, the footer, the tab bar on phones ---------- */
.paused-banner { background: var(--accent-soft); color: var(--ink); font-size: var(--fs-sm); }
.paused-banner .wrap { padding-top: 6px; padding-bottom: 6px; }
.progress-line { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); }
.progress-line[hidden] { display: none; }
.pulse { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.progress-line.done .pulse { animation: none; background: var(--ok); }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.footer { padding-top: var(--sp-5); padding-bottom: var(--sp-6); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--ink-2); }
.footer a { color: var(--ink-2); }
.legal-links { margin-left: auto; }
.tabbar { display: none; }
@media (max-width: 700px) {
  .topbar .nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
            background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
            border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
              color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--w-medium); position: relative; -webkit-tap-highlight-color: transparent; }
  .tabbar a .tab-icon { display: grid; place-items: center; width: 44px; height: 28px; border-radius: var(--r-pill); transition: background var(--t-spring) var(--spring), transform var(--t-spring) var(--spring); }
  .tabbar a:active .tab-icon { transform: scale(.92); transition-duration: var(--t-press); }
  .tabbar a.active { color: var(--ink); font-weight: var(--w-bold); }
  .tabbar a.active .tab-icon { background: var(--accent); color: var(--accent-ink); }
  body:not(.bare) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .btn { min-height: var(--tap); }
  .main-action { width: 100%; }
  html, body { overflow-x: hidden; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .tabbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Employers (page_map.md 3) ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.number { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; color: var(--ink); transition: border-color var(--t-fast), transform var(--t-spring) var(--spring); }
.number b { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.number span { color: var(--ink-2); font-size: var(--fs-sm); }
.number.on { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.number:hover { border-color: var(--ink); }
.number:active { transform: scale(.98); transition-duration: var(--t-press); }
.search-row { display: flex; gap: var(--sp-2); margin: 0 0 10px; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 0 0 10px; scrollbar-width: none; }
.chips-row .chip { white-space: nowrap; }
.employers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.employer-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.employer-name { font-weight: var(--w-bold); color: var(--ink); font-size: var(--fs-md); text-decoration: none; }
a.employer-name:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.employer-label { margin: var(--sp-1) 0 2px; font-weight: var(--w-medium); font-size: var(--fs-sm); }
.label-role, .label-top { color: var(--accent-text); }
.label-saved, .label-done { color: var(--ok); }
.label-look { color: var(--accent-text); }
.label-watch, .label-muted { color: var(--ink-2); }
.employer-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin-top: var(--sp-2); }
.employer-actions form { margin: 0; }
.not-for-me summary { cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); list-style: none; }
.not-for-me[open] summary { margin-bottom: 6px; }
.page-action { margin: 0 0 var(--sp-4); }
.page-more { margin: var(--sp-5) 0; }
.page-more > summary { cursor: pointer; color: var(--ink-2); min-height: var(--tap); display: flex; align-items: center; }
.page-more > section { margin-top: var(--sp-4); }
.emp-group h2 { margin: var(--sp-5) 0 var(--sp-2); }
.more-filters { display: inline-block; }
.more-filters > summary { list-style: none; cursor: pointer; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters[open] .chips-row { margin-top: var(--sp-2); }
@media (max-width: 700px) {
  .employer-actions .main-action, .employer-actions form:has(.main-action) { flex: 1 1 100%; width: 100%; }
  .numbers b { font-size: var(--fs-lg); }
}

/* ---------- Messages (page_map.md 4) ---------- */
.due-line { display: inline-block; background: var(--accent-soft); color: var(--ink); border-radius: var(--r-md); padding: var(--sp-2) 14px; margin: 0 0 var(--sp-3); font-weight: var(--w-bold); }
.due-line.on { outline: 2px solid var(--ink); }
.stagebar { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.stage { white-space: nowrap; padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); min-height: 36px; display: inline-flex; align-items: center; transition: background var(--t-fast), color var(--t-fast); }
.stage b { color: inherit; margin-left: var(--sp-1); }
.stage:hover { color: var(--ink); border-color: var(--line-strong); }
.stage.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mcard summary { list-style: none; cursor: pointer; }
.mcard summary::-webkit-details-marker { display: none; }
.mhead { display: flex; gap: 6px; align-items: baseline; }
.mperson { margin-top: 2px; }
.mcard[open] summary [data-open] { display: none; }  /* open: the button inside the card takes over */
.stage-chip { margin-left: auto; flex-shrink: 0; white-space: nowrap; font-size: var(--fs-xs); font-weight: var(--w-bold); padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); }
.stage-replied, .stage-meeting, .stage-offer { background: var(--ok-soft); color: var(--ok); }
.mnext { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; font-size: var(--fs-sm); }
.mbody { margin-top: 14px; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.mbody .more { margin-top: 10px; }
.mbody h3 { margin-top: var(--sp-3); }
.hint-line { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.hint-line form { margin: 0; }
.add-form { display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: var(--sp-2); }
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; color: var(--ink-2); }
.onext { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-sm); }
.meeting h3 { margin: var(--sp-3) 0 6px; font-size: var(--fs-base); }
.meeting .prep { margin: 0 0 var(--sp-2); padding-left: 20px; display: grid; gap: var(--sp-2); }
@media (max-width: 700px) {
  .mnext .main-action { flex: 1 1 100%; }
  .add-form { grid-template-columns: 1fr; }
}
/* An open card, laid out like an outreach board (details left; status, dates, notes and history right) */
.board { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-5); }
.board-side { border-left: 1px solid var(--line); padding-left: 18px; }
.board-side p { margin: 0 0 var(--sp-3); }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } .board-side { border-left: 0; padding-left: 0; } }
.about { margin: 0 0 6px; }
.addr-list { margin: 6px 0 14px; padding-left: 1.4em; }
.addr-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.addr-list .addr { font-weight: var(--w-bold); }
.addr-list .addr-bounced .addr { text-decoration: line-through; color: var(--ink-2); font-weight: var(--w-regular); }
.addr-list .addr-landed .addr { color: var(--ok); }
.history { padding-left: 1.1em; margin: var(--sp-1) 0; }
.history li { margin: 3px 0; }
/* Only what's needed to send */
.mboard { display: grid; gap: var(--sp-2); }
.mboard .mline { margin: 0; }
.mboard .about { margin: 0; }
.mboard .mto { margin: var(--sp-1) 0 0; }
.mboard .actions { display: flex; align-items: center; gap: var(--sp-2); margin: 6px 0 10px; }
.mboard .field { margin-bottom: 10px; }
.mto b.addr { overflow-wrap: anywhere; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: var(--r-md); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-spring) var(--spring); }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--ink); border-color: var(--ink); }
.icon-btn:active { transform: scale(.92); transition-duration: var(--t-press); }
.icon-btn::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--ink); color: var(--paper); font-size: var(--fs-xs); padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-spring) var(--spring); z-index: 5; }
.icon-btn:hover::after, .icon-btn:focus-visible::after, .icon-btn.copied::after { opacity: 1; transform: translateX(-50%); }
.icon-btn.copied { color: var(--ok); border-color: var(--ok); }
.mboard details > summary { cursor: pointer; list-style: none; color: var(--ink-2); min-height: 36px; display: flex; align-items: center; }
.mboard details > summary::-webkit-details-marker { display: none; }
.mboard details > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 10px 0 2px; transition: transform var(--t-spring) var(--spring); }
.mboard details[open] > summary::before { transform: rotate(45deg); }
.mboard details { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.mboard .more-addr { border-top: 0; padding-top: 0; }
.sentcheck { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); }
.sentcheck[hidden] { display: none; }
.sentcheck form { margin: 0; }
.more-control > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 14px; color: var(--ink); font-weight: var(--w-bold); background: var(--surface); min-height: var(--tap); }
.more-control > summary::-webkit-details-marker { display: none; }
.more-control > summary .chev { transition: transform var(--t-spring) var(--spring); color: var(--ink-2); }
.more-control[open] > summary .chev { transform: rotate(180deg); }
.more-control > summary:hover { border-color: var(--ink); }
@media (max-width: 700px) { .mboard .actions .btn.primary { flex: 1; justify-content: center; } .icon-btn { width: var(--tap); height: var(--tap); } }

/* ---------- Today on phones: one button per task, under the text ---------- */
@media (max-width: 700px) {
  .task { flex-wrap: wrap; align-items: flex-start; }
  .task-body { flex: 1 1 calc(100% - 50px); }
  .task-actions { flex: 1 1 100%; justify-content: flex-start; padding-left: 50px; }
  .task-actions .main-action, .task-actions form:has(.main-action) { flex: 1 1 100%; }
}

/* ---------- You (page_map.md 5) ---------- */
#week ul.plain { margin: 0 0 var(--sp-3); display: grid; gap: var(--sp-1); }
.dir-check { margin: 0 0 var(--sp-3); }
.dir-check li { display: flex; gap: var(--sp-2); justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.delete-all { display: flex; gap: var(--sp-2); align-items: flex-end; flex-wrap: wrap; margin-top: var(--sp-2); }
.delete-all label { display: flex; flex-direction: column; gap: var(--sp-1); }
.blocked-row { display: flex; gap: var(--sp-2); align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0; }
@media (max-width: 700px) {
  .steps li { flex-wrap: wrap; }
  .steps li .main-action { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin: 0 0 var(--sp-2); }
}
/* Phone width (page_map.md 1.6): everything you tap is at least 44 px tall; a card's main button is full width */
@media (max-width: 700px) {
  .btn, .chip { min-height: var(--tap); }
  .chip { display: inline-flex; align-items: center; }
  .icon { min-width: var(--tap); min-height: var(--tap); }
  .chip-x { min-width: var(--tap); min-height: var(--tap); }
  .card .main-action, .card form:has(> .main-action) { width: 100%; }
  .stage { min-height: var(--tap); }
}
.lang-chips .main-tag { color: var(--ink-2); font-weight: var(--w-regular); font-size: .85em; font-style: normal; }
.lang-line { margin: 0 0 var(--sp-2); }
@media (max-width: 700px) { .lang-line .linklike { min-height: var(--tap); } }

/* ---------- Onboarding fixes: the CV on file, the calm line, LinkedIn first ---------- */
.cv-done { display: flex; flex-wrap: wrap; gap: var(--sp-2) 14px; align-items: baseline; }
.cv-done .replace { flex: 1 1 100%; }
.cv-done .replace > summary { list-style: none; display: inline; }
.drop.done { border-color: var(--ok); border-style: solid; }
.drop.error .drop-name { color: var(--accent-text); }
.calm-line { color: var(--ink-2); margin: 0 0 14px; }
.li-request { margin: var(--sp-4) 0; }
.li-request .how { margin-bottom: 0; }
.ob-top .linklike { color: var(--ink-2); text-decoration: none; min-height: var(--tap); }
.ob-top .linklike:hover { text-decoration: underline; }

/* ---------- The market step: the waitlist ---------- */
.waitlist { background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-3) 14px; margin: var(--sp-2) 0 var(--sp-3); }
.waitlist .inline { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.waitlist input[type=email] { flex: 1 1 14rem; }
select.input { appearance: auto; }
.gloss-row { display: flex; gap: 10px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.gloss-row .gloss-name { min-width: 10em; flex: 0 1 14em; }
.gloss-row .input { flex: 1 1 12em; }
.ask-hours { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ask-hours span { flex: 1 1 16em; }

/* ---------- Direction finder v2: steps as tabs, preference cards, direction cards ---------- */
.rd-sofar { margin-bottom: 14px; padding: 10px 14px; }
.rd-sofar > summary { cursor: pointer; }
.rd-sofar[open] > summary { margin-bottom: 10px; }
.rd-edit { margin-bottom: 14px; }
.rd-count { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-xs); }
.rd-q { font-size: var(--fs-md); margin: 6px 0 var(--sp-3); }
.rd-current { margin-top: 0; }
.rd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--sp-4); font-size: var(--fs-sm); }
.rd-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent; min-height: 36px; transition: border-color var(--t-fast), background var(--t-fast); }
.rd-tab span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: var(--w-bold); font-size: var(--fs-xs); }
a.rd-tab:hover { border-color: var(--ink); color: var(--ink); }
.rd-tab.on { background: var(--accent-soft); color: var(--ink); font-weight: var(--w-bold); border-color: var(--ink); }
.rd-tab.done span { background: var(--ink); color: var(--paper); }
.rd-tab.off { opacity: .5; cursor: not-allowed; }
.rd-tab em { font-style: normal; }
.rd-now { display: none; }
.rd-prefs { display: grid; gap: 10px; margin: var(--sp-3) 0 var(--sp-4); }
.rd-pref { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); padding: 14px var(--sp-4); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-spring) var(--spring); }
.rd-pref b { display: block; font-size: var(--fs-md); margin-bottom: 2px; font-family: var(--font-display); font-weight: 650; }
.rd-pref span { color: var(--ink-2); font-size: var(--fs-sm); }
.rd-pref:hover { border-color: var(--ink); background: var(--accent-soft); }
.rd-pref:active { transform: scale(.985); transition-duration: var(--t-press); }
.rd-pref.on { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.rd-pref.none { border-style: dashed; }
.rd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px var(--sp-5); margin-bottom: var(--sp-3); box-shadow: var(--shadow-1); }
.rd-card h3 { margin: 0 0 6px; font-size: var(--fs-md); }
.rd-card.blocked { border-style: dashed; }
.rd-desc { margin: 0 0 10px; line-height: 1.55; }
.rd-meta { margin: 0; display: grid; gap: var(--sp-1); font-size: var(--fs-sm); }
.rd-meta div { display: flex; gap: 10px; }
.rd-meta dt { flex: 0 0 7.5em; color: var(--ink-2); font-weight: var(--w-medium); }
.rd-meta dd { margin: 0; }
.rd-intro { margin: 0 0 14px; }
.rd-also ul { margin: var(--sp-2) 0 var(--sp-1); }
.rd-also li { margin-bottom: .4em; }
.rd-qset { border: 0; padding: 0; margin: 0 0 var(--sp-4); }
.rd-qset legend { font-weight: var(--w-bold); padding: 0; margin-bottom: var(--sp-1); }
.rd-fork-q { font-size: var(--fs-md); }
.rd-earlier[open] > summary { margin-bottom: var(--sp-2); }
@media (max-width: 700px) {
  .rd-current .bubble { max-width: 100%; }
  .rd-question textarea { min-height: 8rem; }
  .rd-head .muted { display: none !important; }   /* the chat explains itself; on a phone the card comes first */
  .rd-head h1 { font-size: 1.5rem; margin-bottom: 0; }
  .rd-steps { margin-bottom: 10px; }
  .rd-steps li:not(.on) { display: none; }  /* one line: the step you are on */
  /* on a phone the six steps are six round buttons in one row, and a line under them names the open one */
  .rd-tabs { gap: 6px; margin-bottom: var(--sp-2); }
  .rd-tab { padding: 5px; min-height: var(--tap); min-width: var(--tap); justify-content: center; }
  .rd-tab span { width: 32px; height: 32px; }
  .rd-tab em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rd-now { display: block; margin: 0 0 var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); }
  .rd-meta div { flex-direction: column; gap: 0; }
  .rd-meta dt { flex: none; }
}

/* ---------- Sign-in ---------- */
.signin-options form { margin: 0 0 10px; }
.btn.block { width: 100%; justify-content: center; }
.signin-email { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }

/* ---------- Launch pages, plans, feedback ---------- */
.public-head { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) 0 6px; min-height: 64px; }
.public-head nav a { font-weight: var(--w-bold); }
.draft-banner { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-md); padding: 10px 14px; margin: var(--sp-2) 0 var(--sp-4); font-size: var(--fs-sm); }
.draft-note { color: var(--accent-text); margin: 0 0 var(--sp-3); }
.landing > h2 { margin-top: var(--sp-7); font-size: var(--fs-xl); }
.landing .hero { position: relative; padding: var(--sp-5) 0 var(--sp-3); }
.landing .hero .display { margin-top: .2em; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: var(--sp-5) 0 6px; }
.cta-start { position: relative; display: inline-flex; }
.cta-start .mark-arrow { position: absolute; right: -58px; top: -40px; transform: scale(-1, 1) rotate(-6deg); }
@media (max-width: 520px) { .cta-start .mark-arrow { display: none; } }
.legal-text { padding-bottom: var(--sp-5); }
.legal-text h1 { margin-bottom: var(--sp-1); }
.legal-text h2 { margin-top: 28px; font-size: var(--fs-md); }
.legal-text table { margin: 10px 0 14px; }
.legal-text td, .legal-text th { vertical-align: top; }
.plan-table th { text-align: left; font-weight: var(--w-medium); }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: var(--sp-3) 0; }
.buy { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); background: var(--surface); }
.buy h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-md); }
.price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--w-bold); letter-spacing: var(--tr-head); margin: var(--sp-1) 0 6px; }
.plan-head { position: relative; }
.plan-head h1 { font-size: var(--fs-display); }
.paywall p { margin: 0 0 6px; }
.paywall p:last-child { margin-bottom: 0; }
.honest ul.plain li { padding-left: 1.6em; position: relative; }
.honest ul.plain li::before { content: ""; position: absolute; left: .15em; top: .45em; width: .7em; height: .38em; border-left: 2.2px solid var(--ink); border-bottom: 2.2px solid var(--ink); transform: rotate(-48deg); border-radius: 1px; }

/* Feedback: a small sheet that grows from its button */
.feedback { position: fixed; right: 14px; bottom: 14px; z-index: 30; max-width: min(92vw, 340px); }
.feedback > summary { list-style: none; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); font-weight: var(--w-bold); box-shadow: var(--shadow-2); float: right; min-height: 40px; transition: transform var(--t-spring) var(--spring); }
.feedback > summary:active { transform: scale(.96); transition-duration: var(--t-press); }
.feedback > summary::-webkit-details-marker { display: none; }
.feedback[open] > summary { float: none; display: inline-block; margin-bottom: var(--sp-2); }
.feedback form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-2); transform-origin: bottom right; }
@media (prefers-reduced-motion: no-preference) {
  .feedback[open] form { animation: sheet-in var(--t-spring) var(--spring-bounce); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 700px) { .feedback { bottom: 78px; } .feedback > summary { min-height: var(--tap); display: flex; align-items: center; } }

/* ---------- Setup progress: "2 of 3 done" with a thin bar ---------- */
.setup-progress { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); }
.setup-count { font-size: var(--fs-sm); white-space: nowrap; }
.setup-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.setup-bar i { display: block; width: var(--w, 0%); height: 100%; background: var(--accent); border-radius: 3px; }

/* ---------- The value-first start: the first look and saving it ---------- */
.draft-line { margin: -6px 0 var(--sp-3); }
.look-card h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-md); display: flex; gap: var(--sp-2); align-items: baseline; flex-wrap: wrap; }
.look-strengths { margin: var(--sp-4) 0 0; }
.look-strengths li { padding-left: 1.4em; position: relative; }
.look-strengths li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6em; height: .6em; border-radius: 48% 52% 45% 55%; background: var(--accent); }
.look-employers { display: grid; gap: var(--sp-3); margin: var(--sp-2) 0 var(--sp-3); padding: 0; list-style: none; }
.look-employers li { display: flex; flex-direction: column; gap: 2px; }
.save-card { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--accent); }
.welcome > h2, .reveal > h2 { margin-top: var(--sp-6); }
.welcome > ul.plain { margin: var(--sp-3) 0 0; }
.field select.input, .inline-form .input { max-width: 100%; }
.ask-card { border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.ask-card .inline { gap: 10px; align-items: center; }
.terms-check { margin: var(--sp-2) 0; display: flex; gap: var(--sp-2); align-items: flex-start; }
.smart-default { margin: 0 0 14px; }
/* The first look arrives card by card (a quick, physical reveal; nothing to wait for) */
@media (prefers-reduced-motion: no-preference) {
  .reveal > * { animation: rise var(--t-spring) var(--spring) both; }
  .reveal > :nth-child(2) { animation-delay: 60ms; }
  .reveal > :nth-child(3) { animation-delay: 120ms; }
  .reveal > :nth-child(4) { animation-delay: 180ms; }
  .reveal > :nth-child(5) { animation-delay: 240ms; }
  .reveal > :nth-child(6) { animation-delay: 300ms; }
  .reveal > :nth-child(n+7) { animation-delay: 360ms; }
  html:not(.no-rise) .layer-product .card, html:not(.no-rise) .layer-product .task, html:not(.no-rise) .layer-product .mcard,
  html:not(.no-rise) .layer-product .employers > li { animation: rise-soft var(--t-spring) var(--spring) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Reduced motion: cross-fades only, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .btn:active, .chip:active, .icon:active, .icon-btn:active, .choice:active span, .rd-pref:active, .number:active { transform: none; }
  .pulse { animation: none; opacity: 1; }
}

/* ---------- Native file pickers look like our buttons ---------- */
input[type=file] { font: inherit; font-size: var(--fs-sm); color: var(--ink-2); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: var(--w-medium); padding: 8px 14px; margin-right: var(--sp-3); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer; min-height: 40px; }
input[type=file]::file-selector-button:hover { background: var(--surface-2); }
.public-head nav a { min-height: var(--tap); display: inline-flex; align-items: center; }
@media (max-width: 700px) { .role-row { grid-template-columns: minmax(0, 1fr) 7.5rem; } .role-row input[name$="_dates"] { width: 100%; } }
@media (max-width: 700px) { body.bare { padding-bottom: 76px; } body.bare .feedback { bottom: 14px; } }
/* Onboarding on phones: the main button spans the card, under Back and Skip, where the thumb is */
@media (max-width: 700px) { .ob-actions .btn.primary { flex: 1 1 100%; order: 3; } }

/* Quiet words inside a heading ("Apply · 3 open roles that fit") read as text, not as a second heading */
h1 .small, h2 .small, h2 .muted, h3 .small { font-family: var(--font-body); font-weight: var(--w-regular); letter-spacing: 0; }
/* Every "More…" disclosure opens the same way: a chevron that turns */
.page-more > summary, details.more > summary { list-style: none; gap: var(--sp-2); }
.page-more > summary::-webkit-details-marker, details.more > summary::-webkit-details-marker { display: none; }
.page-more > summary::before, details.more > summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 6px 0 2px; transition: transform var(--t-spring) var(--spring); }
.page-more[open] > summary::before, details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary { display: flex; align-items: center; min-height: 36px; }
/* Disclosures open with a spring where the browser can animate to auto height */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    details::details-content { height: 0; overflow: clip; transition: height var(--t-spring) var(--spring), content-visibility var(--t-spring) allow-discrete; }
    details[open]::details-content { height: auto; }
  }
}
/* Counts use the display face (Atkinson's slashed zero is for reading, not for tallies) */
.stage b, .setup-count b, .ring span { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.facts dt a { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: var(--w-medium); color: var(--ink); margin-left: var(--sp-2); }
@media (max-width: 700px) { .facts dt a { display: inline-flex; min-height: 32px; align-items: center; padding: 0 var(--sp-1); } }

/* Phones: small inputs and the plain disclosures are still 44 px to tap */
@media (max-width: 700px) {
  .input.sm { min-height: var(--tap); }
  .paste > summary, .sources > summary, details.others > summary, .not-for-me > summary, .rd-sofar > summary, .rd-earlier > summary, .replace > summary { min-height: var(--tap); display: flex; align-items: center; }
}
/* Cards in a list: the list's gap spaces them, and they're a little tighter than a page section */
.employers > .card, .mcards > .card, .tasks > .card, .look-employers > .card { margin-bottom: 0; }
.employers > .card, .mcards > .card { padding: 18px 20px; }
/* An open message card has one "Open in Gmail": the one next to the message it opens */
.mcard[open] > summary [data-compose-card] { display: none; }
.more-control > summary::before, .mboard .more-control > summary::before { content: none; }
@media (max-width: 700px) {
  .mboard details > summary, details.more > summary, .page-more > summary { min-height: var(--tap); }
  .feedback .btn { min-height: var(--tap); }
}

/* "Copy and open LinkedIn": one button, then the question in place when the user is back */
.li-go { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin: var(--sp-2) 0; }
.li-copied { margin: 0 0 var(--sp-2); }
.li-sentcheck { margin-top: var(--sp-3); }
@media (max-width: 700px) { .li-go .btn { flex: 1 1 100%; } .li-sentcheck .btn { flex: 1 1 auto; } }

/* ---------- "Here's what we found": profile-style sections, a pencil per item, a "+" per section, small sheets ---------- */
.pf-section { border-top: 1px solid var(--line); padding: var(--sp-4) 0 var(--sp-2); }
.pf-section:first-child, .pf-about { border-top: 0; padding-top: 0; }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.pf-head h2 { font-size: var(--fs-md); margin: 0; }
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-item { display: flex; align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.pf-list > .pf-item:last-child { border-bottom: 0; }
.pf-item[hidden] { display: none; }
.pf-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.pf-text .tr-tag, .pf-text .chip-note { align-self: flex-start; }
.pf-item > .answers, .pf-item > .confirm { flex: 1 1 100%; margin-top: 0; }
.pf-name { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: var(--tr-head); }
.pf-about .pf-item { border-bottom: 0; padding-top: 0; }
.pf-empty { color: var(--ink-2); font-size: var(--fs-sm); padding: var(--sp-2) 0; }
.pf-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); column-gap: var(--sp-4); }
.pf-section > .pf-item { border-bottom: 0; }
.pf-btn { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent;
          background: transparent; color: var(--ink-2); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), transform var(--t-spring) var(--spring); }
.pf-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pf-btn:hover { background: var(--surface-2); color: var(--ink); }
.pf-btn:active { transform: scale(.92); transition-duration: var(--t-press); }
.pf-plus { border-color: var(--line-strong); color: var(--ink); }
.pf-sheet { position: fixed; inset: 0; margin: auto; width: min(92vw, 30rem); max-height: min(85vh, 40rem); height: fit-content; overflow: auto;
            padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.pf-sheet::backdrop { background: rgba(22, 24, 27, .32); }
.pf-sheet h3 { font-size: var(--fs-md); margin: 0 0 var(--sp-4); }
.pf-sheet .field { margin-bottom: var(--sp-3); }
.pf-sheet-foot { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); }
@media (prefers-reduced-motion: no-preference) {
  .pf-sheet:popover-open { animation: sheet-in var(--t-spring) var(--spring-bounce); }
}
@media (max-width: 700px) {
  .pf-btn { width: var(--tap); height: var(--tap); }
  .pf-sheet { inset: auto 0 0 0; width: 100%; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); }
  .pf-sheet-foot .btn { flex: 1 1 0; }
  .pf-sheet-foot .spacer { display: none; }
}

/* The opt-in switch for job alert emails */
.alerts-switch { margin: var(--sp-3) 0; }
.alerts-switch .check { align-items: flex-start; }
.alerts-switch .check input { margin-top: .25em; flex: none; }
.alerts-form { margin: var(--sp-3) 0; }

/* Close calls: a collapsed list under the roles, one line each */
.close-calls { margin: 0 0 var(--sp-5); }
.close-calls > summary { cursor: pointer; font-weight: var(--w-medium); min-height: var(--tap); display: flex; align-items: center; gap: var(--sp-2); }
.close-call { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
.cc-text { flex: 1 1 14rem; min-width: 0; }
.cc-actions { display: flex; gap: var(--sp-2); align-items: center; }
.cc-actions form { margin: 0; }
