[hidden] { display: none !important; } /* the hidden attribute always wins over a display rule */

/* ==========================================================================
   Ivy’s Index design system
   One set of tokens for both themes, shared with the homepage (home.css). Components
   below use only these, so a change here changes the whole product. Deep ivy marks the
   main action and links; gold is for small highlights; green marks what’s confirmed.
   ========================================================================== */
:root {
  /* Surfaces: page (ivory paper), raised panels (sheet), hover/inset, and hairlines */
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #efe8da;
  --line: rgba(29, 42, 36, 0.12);
  --border: rgba(29, 42, 36, 0.2);
  --border-strong: rgba(29, 42, 36, 0.34);
  /* Text: ivy ink, AA on every surface above */
  --text: #1d2a24;
  --muted: #47524c;
  --faint: #5f6862;
  /* Brand: deep ivy for actions and links, gold for small highlights */
  --accent: #2f5d47;
  --accent-hover: #24493a;
  --accent-soft: rgba(47, 93, 71, 0.09);
  --accent-line: rgba(47, 93, 71, 0.32);
  --on-accent: #ffffff;
  --gold: #7c5a17;
  --gold-soft: #f3e6c7;
  --ivy: #2f6b45;
  /* Semantic states */
  --good: var(--ivy);
  --good-soft: rgba(47, 107, 69, 0.09);
  --good-line: rgba(47, 107, 69, 0.3);
  --warn: #8a5119;
  --warn-soft: rgba(169, 128, 47, 0.12);
  --warn-line: rgba(138, 81, 25, 0.3);
  --danger: #a3392a;
  --danger-soft: rgba(163, 57, 42, 0.07);
  --danger-line: rgba(163, 57, 42, 0.35);
  --focus: #2f5d47;
  --panel: var(--surface);
  /* Type */
  --serif: 'Newsreader', Georgia, serif;   /* page titles and display only */
  --sans: 'Inter', system-ui, sans-serif;  /* everything else */
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-base: 16px; --fs-lg: 18px;
  /* Space (4px grid), shape, and elevation */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-sm: 7px; --radius: 10px; --r-lg: 14px; --r-pill: 99px;
  --shadow-1: 0 1px 2px rgba(29, 42, 36, 0.06);
  --shadow-pop: 0 18px 44px -12px rgba(29, 42, 36, 0.22);
  --shadow-paper: 0 1px 0 rgba(29, 42, 36, 0.05), 0 24px 50px -24px rgba(29, 42, 36, 0.28);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --topbar-bg: rgba(246, 241, 231, 0.88);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: var(--fs-base)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

/* ---------- Top bar: quiet, sticky, translucent ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  height: 60px; padding: 0 var(--s5);
  background: var(--topbar-bg); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font: 500 16px var(--serif);
}
.brand-name { font: 500 19px var(--serif); letter-spacing: 0.005em; }
.demo-pill { font-size: var(--fs-xs); color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; border-radius: var(--r-pill); }

/* ---------- Page ---------- */
main { max-width: 720px; margin: 0 auto; padding: var(--s7) var(--s5) 96px; }
.screen { animation: fade 0.2s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Type scale: serif for page titles only; the rest is Inter. */
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: 44px; line-height: 1.12; }
h2 { font-size: 30px; line-height: 1.22; }
h3 { font: 600 17px/1.35 var(--sans); margin: 0; letter-spacing: -0.005em; }
h4 { font: 600 var(--fs-sm)/1.4 var(--sans); margin: 0; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.6; margin: var(--s3) 0 0; max-width: 580px; }
/* Section labels: small and quiet. Gold is kept for actions. */
.eyebrow { color: var(--faint); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: var(--s3); }
em.accent { font-style: italic; color: var(--accent); }

/* ---------- Buttons: three kinds, two sizes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: transparent; color: var(--text);
  font-size: var(--fs-md); font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease), color 0.12s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(0.5px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; color: var(--muted); padding: 0 10px; }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn.tiny, .btn.small { min-height: 30px; padding: 0 11px; font-size: var(--fs-sm); border-radius: 6px; }
.btn.ghost.tiny { padding: 0 8px; }
.btn.link, .btn.ghost.link { color: var(--accent); background: none; min-height: 0; padding: 0; border: 0; }
.btn.link:hover { text-decoration: underline; background: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }

/* Welcome */
.drop {
  margin-top: var(--s6); border: 1px dashed var(--border); border-radius: var(--r-lg);
  padding: var(--s7) var(--s5); text-align: center; background: var(--surface); transition: border-color 0.15s, background 0.15s;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop p { margin: 6px 0 20px; color: var(--muted); }
.drop .row { justify-content: center; }
.note { color: var(--faint); font-size: 14px; line-height: 1.55; margin-top: var(--s3); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.how div { border-top: 1px solid var(--line); padding-top: 14px; }
.how b { display: block; font-weight: 500; margin-bottom: 4px; }
.how span { color: var(--muted); font-size: 14px; }
.how i { font-style: normal; color: var(--accent); font-family: var(--serif); margin-right: 6px; }

/* Reading */
.steps { list-style: none; padding: 0; margin: 32px 0 0; }
.steps li { padding: 10px 0; color: var(--faint); display: flex; gap: 12px; align-items: center; transition: color 0.3s; }
.steps li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.3s; }
.steps li.done::before { background: var(--ivy); }
.steps li.done { color: var(--text); }

/* Overview */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-top: var(--s4); }
.role-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.role-head small { color: var(--muted); }
.card ul { margin: var(--s3) 0 0; padding-left: 18px; color: var(--muted); }
.gaps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gap { font-size: var(--fs-xs); color: var(--warn); background: var(--warn-soft); padding: 2px 9px; border-radius: var(--r-pill); }
.cta { margin-top: var(--s6); }

/* Interview */
.progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); transition: width 0.3s ease; }
.ctx { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: 14px 0 48px; gap: 12px; }
.ctx b { color: var(--text); font-weight: 500; }
.question h2 { font-size: 30px; line-height: 1.25; }
.why { color: var(--muted); margin-top: 12px; }
.answers { margin-top: 32px; display: grid; gap: 10px; }
.answers.two { grid-template-columns: 1fr 1fr; }
.opt {
  text-align: left; border: 1px solid var(--border); background: var(--surface);
  padding: 13px 16px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease);
}
.opt:hover { border-color: var(--border-strong); background: var(--surface-2); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt kbd { font: 11px var(--sans); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; user-select: none; }
/* Fields: one shape everywhere */
.field {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 12px; outline: none; font-size: var(--fs-md); line-height: 1.45;
  transition: border-color 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.field::placeholder { color: var(--faint); }
.field:hover { border-color: var(--border-strong); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.question .field#field, .answers .field { padding: 13px 14px; font-size: 17px; }
.qfoot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }

/* Results */
.stats { display: flex; gap: 40px; margin: 28px 0 8px; flex-wrap: wrap; }
.stat b { display: block; font: 600 32px/1 var(--sans); letter-spacing: -0.02em; color: var(--text); }
.stat span { color: var(--muted); font-size: 13px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.compare h4 { margin: 0 0 8px; font: 500 var(--fs-xs) var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }
.compare .after h4 { color: var(--ivy); }
.compare ul { margin: 0; padding-left: 18px; }
.compare .before li { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.compare .after li { color: var(--text); margin-bottom: 6px; }
.compare .after li[contenteditable]:focus { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.empty { color: var(--faint); font-size: 14px; }
/* Chips: tags without frames */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.chip { font-size: var(--fs-xs); background: var(--surface-2); border: 1px solid transparent; padding: 3px 10px; border-radius: var(--r-pill); color: var(--muted); }
button.chip:hover { color: var(--text); border-color: var(--border); }
.chip.on { background: var(--accent-soft); color: var(--text); }
/* "What's next" panels: the one place a card leads somewhere */
.next { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.next p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px);
  background: var(--surface-2); border: 1px solid var(--border); padding: 10px 16px; border-radius: var(--radius); font-size: 14px;
  box-shadow: var(--shadow-pop);
}

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  main { padding: 36px 16px 72px; }
  h1 { font-size: 34px; }
  .question h2 { font-size: 26px; }
  .how, .compare { grid-template-columns: 1fr; }
  .next { flex-direction: column; align-items: flex-start; }
}

/* Nav */
/* Navigation */
.nav { display: flex; gap: 2px; margin-left: auto; margin-right: var(--s3); }
.tab { background: none; border: 0; color: var(--muted); padding: 6px 11px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.12s, background 0.12s; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.on { color: var(--text); background: var(--surface-2); }
.badge { display: inline-block; min-width: 18px; text-align: center; background: var(--surface-2); color: var(--accent); border: 1px solid var(--accent-line); font-size: 11px; font-weight: 600; border-radius: var(--r-pill); padding: 0 5px; margin-left: 4px; line-height: 16px; }
.screen.still { animation: none; }

/* Interview extras */
.exact { margin-top: 20px; }
.exact label, .pq-form label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.exact .row { flex-wrap: nowrap; }

textarea.field { resize: vertical; line-height: 1.55; }


/* Resume paper */
main:has(.wide) { max-width: 880px; }
.between { justify-content: space-between; align-items: flex-end; }
.paper {
  /* A classic, recruiter- and ATS-friendly page: one column, standard fonts, plain headings. */
  --ink: #1d2433; --rule: #c9d1de; --head: #23395b; --soft: #5b6475;
  background: #fff; color: var(--ink); border-radius: 6px; margin-top: 16px;
  padding: 0.7in 0.75in; box-shadow: var(--shadow-paper);
  font: 13.5px/1.45 Calibri, Carlito, 'Segoe UI', Arial, sans-serif;
}
.paper .r-head { text-align: center; margin-bottom: 6px; }
.paper h1 { font: 600 28px/1.15 Georgia, 'Times New Roman', serif; color: var(--head); letter-spacing: 0.01em; }
.paper .contact { color: var(--soft); margin-top: 6px; font-size: 12.5px; }
.paper h4 {
  font: 700 12px Calibri, Carlito, Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--head);
  border-bottom: 1px solid var(--rule); padding-bottom: 3px; margin: 20px 0 8px;
}
.paper p { margin: 0; }
.paper .job { margin-bottom: 12px; break-inside: avoid; }
.paper .edu { margin-bottom: 6px; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.paper .job-head b { font-weight: 700; font-size: 14px; }
.paper .job-head .dates { color: var(--soft); white-space: nowrap; font-size: 12.5px; }
.paper .job-sub { color: var(--soft); font-style: italic; }
.paper ul { margin: 4px 0 0; padding-left: 16px; }
.paper li { margin-bottom: 2px; padding-left: 2px; }
.paper li::marker { color: var(--head); }
.paper .skills-line { line-height: 1.6; }
.paper [contenteditable]:hover { background: var(--accent-soft); border-radius: 3px; }
.paper [contenteditable]:focus { outline: 1px solid var(--accent); outline-offset: 2px; border-radius: 3px; background: none; }

/* Bank & jobs */
h3.section { margin: var(--s7) 0 var(--s3); display: flex; align-items: center; gap: 10px; font-size: var(--fs-base); }
.count { font: 500 var(--fs-xs) var(--sans); color: var(--muted); background: var(--surface-2); border-radius: var(--r-pill); padding: 1px 8px; }
/* Lists: rows on one panel, separated by hairlines */
.bank { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.bank-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.bank-row:last-child { border-bottom: 0; }
.bank-row small { color: var(--faint); text-align: right; }
.chips.plain { border-top: 0; padding-top: 0; margin-top: 14px; }
button.chip { cursor: pointer; }
.chip.ok { color: var(--good); border-color: var(--good-line); }
.chip.ask { color: var(--warn); border-color: var(--warn-line); }
.chip.off { color: var(--faint); text-decoration: line-through; }
.pq { border: 1px solid var(--line); border-left: 2px solid var(--warn); background: var(--surface); border-radius: var(--radius); padding: 14px 18px; margin-top: var(--s3); }
.pq small { color: var(--faint); font-size: 12px; }
.pq-q { margin: 4px 0 12px; font: 500 var(--fs-base)/1.45 var(--sans); }
.pq-form { display: grid; gap: 10px; }
.pq-form label { margin: 4px 0 -4px; }
.fit { text-align: right; }
.fit b { display: block; font: 600 26px/1 var(--sans); letter-spacing: -0.02em; color: var(--text); }
.fit span { font-size: 12px; color: var(--muted); }
.meter { height: 4px; background: var(--line); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.meter div { height: 100%; background: var(--ivy); transition: width 0.4s var(--ease); }

@media (max-width: 640px) {
  .nav { display: none; }
  .paper { padding: 28px 20px; }
  .job-head { flex-direction: column; gap: 0; }
}

@media print {
  @page { margin: 0.5in; }
  body { background: #fff; }
  .topbar, .no-print, .toast { display: none !important; }
  main { padding: 0; max-width: none !important; }
  .screen { animation: none; }
  .paper { box-shadow: none; padding: 0; margin: 0; background: #fff; font-size: 11pt; }
  .paper h1 { font-size: 22pt; }
}

/* ---- v4: honesty, prep, applications, pricing ---- */
.btn.tiny { padding: 4px 10px; font-size: 13px; }
.note .btn.link, .empty .btn.link { padding: 0; }

/* Verified banner + sources on the resume */
.verified {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding: 14px 18px; border-radius: 10px;
  border: 1px solid var(--good-line); background: var(--good-soft);
}
.verified b { display: block; color: var(--good); font-weight: 500; }
.verified.has-warn { border-color: var(--warn-line); background: var(--warn-soft); }
.verified.has-warn b { color: var(--warn); }
.verified span { color: var(--muted); font-size: 14px; }
.switch { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.switch input { accent-color: var(--accent); }
.paper .src { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #7a766c; margin: 2px 0 6px; }
.paper .src i { font-style: normal; }
.paper .src b { color: #4d6b4d; font-weight: 600; }
.paper .warn { font-size: 12px; color: #9a5b1e; background: #fbefe2; border-radius: 4px; padding: 4px 8px; margin: 4px 0 6px; }
.paper .warn .btn { color: #9a5b1e; text-decoration: underline; padding: 0 0 0 6px; }
.paper li.flag > span { background: #fbefe2; }

/* Employer reply data */
.employer { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.employer b { color: var(--text); font-weight: 500; }
.employer .ok b { color: var(--good); }
.employer .bad b { color: var(--danger); }
.employer small { color: var(--faint); width: 100%; }

/* Applications */
.app-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app-row:last-child { border-bottom: 0; }
.app-main b { display: block; font-weight: 500; }
.app-main small { color: var(--faint); }
.app-side { display: flex; gap: 12px; align-items: center; }
.field.status { width: auto; padding: 7px 10px; font-size: 13px; }
.s-ghosted { color: var(--danger); }
.s-interview, .s-offer, .s-replied { color: var(--good); }
.tiny-check { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tiny-check input { accent-color: var(--accent); }
.app-nudge { grid-column: 1 / -1; font-size: 13px; color: var(--warn); }
.draft { white-space: pre-wrap; font: 14px/1.55 var(--sans); color: var(--text); background: var(--surface-2); border: 0; border-radius: var(--r-sm); padding: 12px 14px; margin: 10px 0 8px; }
.insight p { margin: 0; color: var(--muted); }
.insight b { color: var(--text); font-weight: 500; }

/* Interview prep */
.star { color: var(--muted); }
.star b { color: var(--text); font-weight: 500; }
.prep-q { font: 500 18px/1.4 var(--sans); margin: 0 0 14px; }
.prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.prep h4 { margin: 0 0 6px; font: 500 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.prep ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.proof { margin: 0; font-size: 14px; }
.prep textarea { font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.plan { margin: 0; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent-line); }
.price { margin: 8px 0 12px; }
.price b { font: 600 34px/1.1 var(--sans); letter-spacing: -0.025em; }
.price span { color: var(--muted); margin-left: 6px; }
.plan ul { flex: 1; margin: 0 0 20px; color: var(--muted); list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ivy); font-weight: 600; }
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.promise div { border-top: 1px solid var(--line); padding-top: 12px; }
.promise b { display: block; font-weight: 500; }
.promise span { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .nav { display: flex; order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .tab { white-space: nowrap; }
  .prep-grid, .plans, .promise { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 1fr; }
}

/* ---- v5: tiers, job checks ---- */
.job-meta { flex-wrap: nowrap; margin-bottom: 10px; }
.job-meta .field { font-size: 14px; padding: 10px 14px; }
.job-card.fresh { animation: glow 1.6s ease; }
@keyframes glow { 0% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } 100% { border-color: var(--border); box-shadow: none; } }
.lock { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); border-radius: var(--r-pill); padding: 1px 6px; margin-left: 4px; }
.locked { padding: 36px; }
.locked .tier { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: var(--r-pill); padding: 2px 10px; margin-bottom: 14px; }
.plans.three { grid-template-columns: repeat(3, 1fr); }
.plan.current { border-color: var(--good-line); }
@media (max-width: 760px) { .plans.three { grid-template-columns: 1fr; } .job-meta { flex-wrap: wrap; } }

/* ---- Weak-spot checker ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#results { scroll-margin-top: 16px; }
.score-card { display: flex; gap: 28px; align-items: center; margin-top: 32px; }
.dial {
  --p: 0; flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 82%, transparent 83%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0);
}
.dial b { font: 600 34px/1 var(--sans); letter-spacing: -0.02em; }
.dial span { font-size: 11px; color: var(--muted); }
.score-text p { color: var(--muted); margin: 8px 0 0; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.mini-stats b { color: var(--warn); font-weight: 600; }
.mini-stats span + span::before { content: '·'; margin-right: 18px; color: var(--faint); }
.why-score { margin-top: 14px; padding: 18px 22px; }
.why-score h4 { font-size: 14px; margin: 14px 0 4px; }
.why-score h4:first-child { margin-top: 0; }
.why-score p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 72ch; }
.weak .where { color: var(--faint); font-size: 12px; }
.weak .line { font: 500 17px/1.45 var(--sans); margin: 4px 0 0; }
.weak .tip { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.ask-box { margin-top: 14px; padding: 12px 16px; border-radius: 8px; background: var(--surface-2); }
.ask-box h4 { margin: 0 0 4px; font: 500 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.ask-box ul { margin: 0; padding-left: 18px; }
.ask-box li { margin-top: 4px; }
.cta-card { margin-top: 40px; }
a.btn { text-decoration: none; display: inline-flex; white-space: nowrap; color: var(--text); }
@media (max-width: 640px) { .score-card { flex-direction: column; align-items: flex-start; } }
.good-row { flex-direction: column; gap: 2px; }
.good-row small { text-align: left; }

/* ---- v8: start from scratch, cover letters, your data ---- */
.foot { max-width: 720px; margin: -64px auto 40px; padding: 16px var(--s5) 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.foot .btn { color: var(--faint); }
.foot .btn:hover { color: var(--text); }
.scratch-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; }
.scratch-cta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.form { display: grid; gap: 14px; }
.form h3 { margin: 0; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form .field { font-size: 15px; padding: 11px 14px; }
.form .bank { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 12px; }
textarea.letter { margin-top: 20px; font: 16px/1.65 var(--serif); padding: 24px 28px; }
.honesty h4 { margin: 0 0 8px; font: 500 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--good); }
.honesty ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.honesty li small { color: var(--faint); margin-left: 6px; }
.kept { color: var(--muted); padding-left: 18px; margin: 8px 0 0; }
.card.danger { border-color: var(--danger-line); }
.btn.danger-btn { color: var(--danger); border-color: var(--danger-line); }
.btn.danger-btn:hover { background: var(--danger-soft); }
.del-input { width: auto; flex: 1; min-width: 140px; }
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .scratch-cta { flex-direction: column; align-items: flex-start; }
  .foot { margin-top: -40px; padding: 16px 16px 0; }
}

/* ---- v12: reading real resumes ---- */
.upload-error { margin-top: 28px; border: 0; background: var(--danger-soft); color: var(--muted); }
.upload-error b { color: var(--danger); font-weight: 500; }
.paste { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.paste textarea { font-size: 14px; }
.check-note { color: var(--muted); border: 0; background: var(--surface-2); }
.check-note b { color: var(--text); font-weight: 500; }
.fix-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.fix-row .field { font-size: 15px; padding: 9px 12px; }
.kind-select { width: auto; padding: 6px 10px; font-size: 13px; margin-left: auto; }
@media (max-width: 640px) { .fix-row { grid-template-columns: 1fr auto; } .fix-row .field:nth-child(2) { grid-column: 1; } }

/* ---- v15: my resumes ---- */
.resume-row { align-items: center; }
.resume-row b { display: block; font-weight: 500; }
.resume-row small { color: var(--faint); text-align: left; }
.resume-row.active { background: var(--surface-2); }
@media (max-width: 640px) { .resume-row { flex-direction: column; align-items: flex-start; } }

/* ---- v16: editing jobs after reading ---- */
.role-edit { display: grid; gap: 10px; }
.role-edit h3 { margin: 0; }
.role-edit label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.role-edit .field { font-size: 15px; padding: 9px 12px; }
.role-edit textarea.field { font-size: 14px; line-height: 1.5; }
.fix-row { grid-template-columns: 1fr 1fr auto; align-items: end; }
.fix-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-role-btn { margin-top: 16px; }
.paper [data-placeholder]:empty::before { content: attr(data-placeholder); color: #b3ada0; }
@media (max-width: 640px) { .fix-row, .fix-row.two { grid-template-columns: 1fr; } }

/* ---- v19: changing answers ---- */
.line-tool { background: none; border: 0; padding: 0 0 0 6px; font: 500 11px var(--sans); color: #a08a5c; opacity: 0.55; cursor: pointer; }
.paper li:hover .line-tool, .line-tool:focus { opacity: 1; text-decoration: underline; }
.ed-card { display: grid; gap: 14px; }
.ed-field { display: grid; gap: 10px; }
.ed-q { margin: 0; font: 500 16px/1.45 var(--sans); }
.ed-why { margin: -6px 0 0; }
.ed-follow { padding-left: 18px; border-left: 2px solid var(--border); }
.opt.sm { padding: 8px 14px; font-size: 14px; }
.ed-field .field { font-size: 15px; padding: 10px 14px; }

.btn.small { padding: 8px 16px; font-size: 14px; }
a.btn.primary { color: var(--on-accent); }


/* ---- v22: tailoring, skills, save for later ---- */
.tailor-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.tailor-bar label { color: var(--muted); font-size: 14px; }
.tailor-bar .field { width: auto; max-width: 100%; padding: 8px 12px; font-size: 14px; }
.tailor-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.tailor-note b { color: var(--text); font-weight: 500; }
.ats-card { margin-top: 14px; font-size: 14px; }
.ats-card p { margin: 0 0 8px; }
.ats-card .note { margin: 0 0 8px; }
.ats-notes { margin: 0 0 8px; padding-left: 18px; color: var(--muted); }
.ats-notes li { margin-bottom: 6px; }
.ats-notes a, .ats-card a { color: var(--accent); text-underline-offset: 2px; }
.src-label { color: var(--muted); font-size: 13px; }
.ats-check { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--text); }
.ats-fine { font-size: 12.5px; }
.ats-line { margin: 8px 0 0; }
.apply-tip { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.apply-tip b { color: var(--text); font-weight: 500; }
.apply-tip-check { color: var(--warn); }
.tailor-stats { display: block; margin-top: 6px; }
.paper .match-tag { font-size: 11px; color: #4d6b4d; background: #e8efe4; border-radius: 99px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.paper .skill.hit { font-weight: 600; }
.paper .skill-x { background: none; border: 0; color: #b3ada0; font-size: 13px; padding: 0 2px 0 3px; cursor: pointer; }
.paper .skill-x:hover { color: #9a5b1e; }
.skill-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.skill-tools .field { width: 180px; padding: 6px 10px; font-size: 13px; background: #fff; color: #1b1a17; border-color: #ddd6c8; }
.skill-tools .note { margin: 0; color: #7a766c; }
.skill-tools .btn.link { color: #8a6d3b; }
.skill-tools .btn.tiny { background: #fff; color: #1b1a17; border-color: #ddd6c8; }

/* ---- v26: sections, growth, outreach, practice, Spanish & voice ---- */
.subnav { display: flex; gap: 2px; padding: 8px var(--s5); border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--bg); scrollbar-width: none; }
.subtab { background: none; border: 0; color: var(--muted); padding: 5px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.subtab:hover { background: var(--surface-2); }
.subtab:hover { color: var(--text); }
.subtab.on { color: var(--text); background: var(--surface-2); }
.lang-switch { margin-right: 6px; }
@keyframes pulse { 50% { opacity: 0.3; } }
.learn { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.learn li { margin-bottom: 6px; }
.learn b { color: var(--text); font-weight: 500; }
.learn a { color: var(--accent); }
.gap-card .meter { margin: 10px 0 4px; }
.path-card .chips { margin-top: 10px; }
.script { font: 400 16px/1.6 var(--sans); margin: 6px 0 12px; }
.gap-out h4, .tips-h, .mock-fb h4 { margin: 0; font: 500 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.outline { margin: 0; padding: 10px 14px; background: var(--surface-2); border-radius: 8px; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; gap: 2px; }
.checks li.ok b { color: var(--good); font-weight: 500; }
.checks li.miss b { color: var(--warn); font-weight: 500; }
.checks span { color: var(--muted); font-size: 14px; }
.ref-lines { display: grid; gap: 6px; }
.ref-lines .tiny-check { white-space: normal; align-items: flex-start; font-size: 13px; }
.li-block textarea { font-size: 14px; line-height: 1.5; }
.li-block .role-head h3 .note { font-size: 13px; margin-left: 6px; }
.ok-nudge { color: var(--good); }
.note.civ { margin: 0; }
.note.civ b { color: var(--text); font-weight: 500; }

/* Phones: bigger tap targets in the interview, and simpler navigation */
@media (max-width: 640px) {
  .subnav { padding: 6px 12px; }
  .answers .opt { padding: 16px 18px; font-size: 16px; }
  .answers.two { grid-template-columns: 1fr 1fr; }
  .opt kbd { display: none; }
  .qfoot { flex-wrap: wrap; gap: 8px; }
  .qfoot .row { width: 100%; justify-content: space-between; }
  .field { font-size: 16px; } /* keeps phones from zooming in on inputs */
}
.es-only { display: none; }
.lang-es .es-only { display: block; }

/* ---- v31: licenses, preferences, fresh jobs, career ---- */
.cred-alert { border: 0; border-left: 2px solid var(--warn); color: var(--muted); }
.cred-alert b { color: var(--warn); font-weight: 500; }
.sugg-list { display: grid; gap: 2px; }
.sugg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sugg-row:last-child { border-bottom: 0; }
.cred-card .grid3 { margin-top: 8px; }
.cred-card label, .pref-card label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.paper ul.creds { margin-top: 4px; }
.pref-card h3 { margin: 0; }
.pref-q { margin: 6px 0 -4px; }
.posted-q { display: grid; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 10px; max-width: 360px; }
.posted-q .field { padding: 8px 12px; font-size: 14px; }
.age { font-size: 12px; color: var(--faint); }
.age.new { color: var(--good); }
.age.stale { color: var(--warn); }
.want-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.want-row .note { margin: 0 4px 0 0; }
.chip.bad { color: var(--danger); border-color: var(--danger-line); }
.stale-jobs { margin-top: 20px; }
.stale-jobs summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 0; }
.stale-jobs .job-card { opacity: 0.75; }
.win-card .role-head small { color: var(--faint); }
.win-text { margin: 6px 0 10px; font: 400 16px/1.55 var(--sans); }

/* ---- v32: four plans ---- */
.plans.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .plans.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans.four { grid-template-columns: 1fr; } }

.q-source { margin: 0; font-size: 12px; }
.q-source.library, .q-source.saved { color: var(--good); }
.q-source.closest { color: var(--faint); }

/* ---- v37: find jobs ---- */
.search-form .row { align-items: center; }
.result .want-row { margin-top: 10px; }

.credit { width: 100%; margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--faint); }

.tip-line { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--text); }
.tip-line b { color: var(--accent); font-weight: 500; }

/* Which job the questions are about */
.role-banner { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 18px 0 40px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.role-banner small { display: block; color: var(--faint); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.role-banner p { margin: 0; font-size: 17px; }
.role-banner p b { font-weight: 500; }
.role-banner p span, .role-banner > span { color: var(--muted); }
.role-banner > span { font-size: 13px; white-space: nowrap; }
.role-intro h2 b { color: var(--accent); font-weight: 500; }
.role-intro .done-line { color: var(--accent); margin: 18px 0 28px; }
.goal-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.goal-pick > span { color: var(--muted); margin-right: 4px; }
@media (max-width: 560px) { .role-banner { flex-direction: column; align-items: flex-start; } }

/* Adding and removing lines on the resume */
.paper-tip { margin: 18px 0 0; }
.line-x { background: none; border: 0; color: #a7afbd; font-size: 15px; line-height: 1; padding: 0 4px; margin-left: 4px; cursor: pointer; opacity: 0; }
.paper li:hover .line-x, .line-x:focus { opacity: 1; }
.line-x:hover { color: #b0563c; }
@media (hover: none) { .line-x { opacity: 1; } }
.job-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; }
.job-tools .add-line { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.job-tools .add-line .field { flex: 1; font-size: 14px; padding: 8px 12px; background: #fff; color: #1d2433; border-color: #c9d1de; }
.job-tools .own-note { width: 100%; margin: 4px 0 0; font-size: 12px; color: #6b7280; }
.removed-lines { font-size: 12px; color: #6b7280; margin: 0; }

/* Practicing an interview answer */
.prep-actions { margin-top: 10px; }
.prep-fb { margin-top: 14px; padding: 16px; background: var(--surface-2); border-radius: var(--radius); }
.follow-head { margin: 14px 0 8px; }
.follow-list { display: grid; gap: 8px; }
.btn.follow { justify-content: space-between; text-align: left; width: 100%; display: flex; gap: 10px; }
.btn.follow span { color: var(--accent); white-space: nowrap; }
.follow.open { border-left: 2px solid var(--accent); padding-left: 12px; }
.follow-plain { margin: 0 0 10px; padding-left: 18px; }

/* Saved jobs */
.empty-saved { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.empty-saved p { margin: 0; }
.empty-saved, .check-pointer { flex-wrap: wrap; }
.check-pointer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.ask-head { margin: 18px 0 4px; font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ask-group .pq:first-of-type { margin-top: 8px; }
.desc-ask { margin-top: 12px; display: grid; gap: 10px; }
.desc-ask .note { margin: 0; }
.fit-line { margin: 10px 0 4px; }
a.link { color: var(--accent); }

.es-doc { margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--text); }

.home-link { color: var(--muted); font-size: 14px; }
.home-link:hover { color: var(--accent); }

/* Accounts */
.screen.narrow { max-width: 460px; }
.acct-form { display: grid; gap: 14px; }
.acct-switch { margin-top: 12px; flex-wrap: wrap; }
.acct-captcha:empty { display: none; } /* the bot check takes no room unless it asks for a click */
.acct-msg { border-color: var(--accent); }
.save-nudge { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; border: 0; background: var(--accent-soft); }
.save-nudge div { flex: 1 1 260px; }

/* Resume check */
.qcheck { margin-top: 18px; }
.qcheck summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.qcheck summary::-webkit-details-marker { display: none; }
.qcheck summary span { color: var(--muted); font-size: 14px; }
.qcheck .checks { margin-top: 12px; }
.q-ex { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Career explorer */
.answers.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .answers.three { grid-template-columns: 1fr; } }
.ex-chips { flex-wrap: wrap; gap: 8px; }
.ex-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 18px; }
.ex-types div { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 4px; background: var(--surface); }
.ex-types span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .ex-types { grid-template-columns: 1fr; } }
.ex-career p { margin: 8px 0; }
.ex-why { list-style: none; padding: 0; margin: 10px 0 4px; color: var(--good); font-size: 14px; display: grid; gap: 2px; }
.ex-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.ex-facts div { display: grid; gap: 2px; align-content: start; border-top: 1px solid var(--line); padding-top: 10px; }
.ex-facts small { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ex-facts span { color: var(--muted); font-size: 13px; }
.ex-facts .warn-text { color: var(--danger); }
@media (max-width: 640px) { .ex-facts { grid-template-columns: 1fr; } }
.ex-day summary { cursor: pointer; color: var(--accent); }
.ex-day ul { margin: 8px 0; padding-left: 18px; }
.ex-hiring { margin: 12px 0; }
.ex-hiring ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.ex-hiring a { color: var(--text); }


/* Privacy policy and terms */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.legal h1 { font: 500 40px/1.15 var(--serif); margin: 4px 0 6px; }
.legal h2 { font: 500 24px var(--serif); margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }

/* AI polish */
/* A field that is optional (review screen) */
.opt-tag { font-weight: 400; color: var(--muted); font-size: 13px; }
/* Text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Preferences: must have, or nice to have (prefs.js) */
.pref-must { border: 0; padding: 0; margin: 8px 0 4px; display: grid; gap: 4px; }
/* Find jobs: no matches (search.js emptyResults) */
.sr-empty h3 { margin: 0 0 8px; font-size: var(--fs-md); }
.sr-widen { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.sr-widen li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.sr-coverage { font-size: 13px; }
/* Location boxes (places.js): the list of places under the box */
.place-holder { position: relative; }
.place-list { position: absolute; z-index: 30; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.place-list li { padding: 10px 12px; border-radius: 6px; cursor: pointer; font-weight: 400; color: var(--text); min-height: 24px; }
.place-list li[aria-selected="true"], .place-list li:hover { background: var(--accent-soft); }
.place-note { display: block; margin-top: 6px; font-weight: 400; }
.place-note:empty { display: none; }
.place-mean { margin: 2px 4px 2px 0; }
/* Writing the resume: progress, then the outcome (app.js writingPanel / writeOutcome) */
.writing-panel { margin: 16px 0; display: grid; gap: 12px; border-color: var(--accent-line); }
.writing-panel .wp-head { display: flex; align-items: center; gap: 12px; }
.writing-panel h3 { margin: 0; }
.writing-panel .coach-dots { margin: 0; }
.write-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.write-bar > div { height: 100%; background: var(--accent); border-radius: inherit; transition: width .9s linear; }
.write-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.write-steps li { padding-left: 26px; position: relative; }
.write-steps li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; }
.write-steps li.now { color: var(--text); font-weight: 600; }
.write-steps li.now::before { opacity: 1; background: var(--accent); border-color: var(--accent); }
.write-steps li.done { color: var(--text); }
.write-steps li.done::before { content: '✓'; border: 0; top: 0; left: 2px; width: auto; height: auto; opacity: 1; color: var(--good); font-weight: 700; }
.writing-panel .note { margin: 0; }
.writing-panel.compact { gap: 8px; }
.write-outcome { margin: 16px 0; display: grid; gap: 8px; }
.write-outcome h3 { margin: 0; outline: none; }
.write-outcome p { margin: 0; }
.write-outcome .row { margin-top: 6px; flex-wrap: wrap; }
.write-outcome.done { border-color: var(--good-line); background: var(--good-soft); }
.write-outcome.done .tick { color: var(--good); margin-right: 4px; }
.write-outcome.trouble { border-color: var(--warn-line); background: var(--warn-soft); }
@media (prefers-reduced-motion: reduce) { .write-bar > div { transition: none; } }
.polish-card { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin: 14px 0; }
.polish-card > div { display: grid; gap: 4px; flex: 1 1 320px; }
.polish-card span { color: var(--muted); font-size: 14px; }

.polish-card .switch { margin-right: 4px; }

/* Follow-up questions (strengthen.js) */
.fu-q { display: grid; gap: 8px; margin: 10px 0; }
.fu-q.done { border-color: var(--good-line); }
.fu-q.skipped { opacity: .6; }
.fu-opts { flex-wrap: wrap; gap: 8px; }
.fu-opts .chip { cursor: pointer; }
.fu-opts .chip.on { background: var(--accent-soft); color: var(--text); border-color: var(--accent-line); }
.fu-num { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.fu-hint { margin: 0; }
.fu-bottom { margin-top: 20px; gap: 10px; flex-wrap: wrap; }

/* Resume headline and core qualifications */
.paper .r-headline { font: 600 12px/1.3 inherit; letter-spacing: .12em; text-transform: uppercase; color: var(--head); margin-top: 4px; }

/* Shown on every screen while someone is trying the sample resume. */
.sample-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  max-width: 900px; margin: 16px auto 0; padding: 12px 16px; border: 0; border-radius: var(--radius); background: var(--accent-soft); color: var(--muted); }
.sample-bar b { color: var(--text); font-weight: 500; }
@media print { .sample-bar { display: none; } }

/* Career profile (profile.js) */
.pf-job h3 { margin: 0; }
.pf-facts { list-style: none; padding: 0; margin: 14px 0 0; }
.pf-fact { padding: 12px 0; border-top: 1px solid var(--line); }
.pf-fact > span:first-child { display: block; color: var(--text); }
.pf-src { display: block; margin-top: 2px; }
.pf-from summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 4px; }
.pf-from ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.pf-actions { justify-content: flex-start; gap: 6px; margin-top: 6px; }
.pf-removed > span:first-child { color: var(--faint); text-decoration: line-through; }
.pf-merge { justify-content: flex-start; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pf-merge select { max-width: 320px; }

/* Paste a job posting to tailor for, and Career's monthly count */
.paste-job { display: grid; gap: 10px; }
.paste-job .row { gap: 10px; justify-content: flex-start; }
.paste-job .row .field { flex: 1 1 200px; }
.link-row { flex-wrap: nowrap; gap: 10px; }
.link-row .field { flex: 1 1 auto; min-width: 0; font-size: 14px; padding: 10px 14px; }
.link-note { margin: 6px 0 12px; font-size: var(--fs-xs); }
.paste-job .link-note { margin: -4px 0 0; }
.from-sites { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; font-size: var(--fs-sm); }
.from-sites p { margin: 0 0 6px; }
.from-sites ol { margin: 0; padding-left: 20px; }
.from-sites li { margin: 3px 0; }
.paste-job .from-sites { margin: 0; }
.tailor-count { margin-left: 8px; }

/* Launch pricing */
.plans.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.credit-banner { border: 0; background: var(--accent-soft); display: grid; gap: 4px; margin: 18px 0; }
.credit-banner b { color: var(--text); font-weight: 500; }
.credit-price { color: var(--accent); margin: 6px 0 0; }
.access-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  max-width: 900px; margin: 16px auto 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.access-bar b { color: var(--text); font-weight: 500; }
@media print { .access-bar { display: none; } }

/* Interactive demo (demo.html, demo.js) */
.dm-ribbon { text-align: center; font-size: 13px; color: var(--muted); background: var(--accent-soft); border-bottom: 1px solid var(--border); padding: 8px 16px; }
.dm-match { padding: 0; overflow: hidden; }
.dm-match.open { padding-bottom: 16px; }
.dm-match > :not(.dm-match-head) { margin-left: 20px; margin-right: 20px; }
.dm-match-head { width: 100%; display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.dm-match-head small { display: block; color: var(--faint); margin-top: 2px; }
.dm-match-head b { font-weight: 500; }
.dm-tier { flex: none; font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); white-space: nowrap; }
.dm-strong { color: var(--good); border-color: var(--good-line); }
.dm-potential { color: var(--accent); border-color: var(--accent-line); }
.dm-stretch { color: var(--warn); border-color: var(--warn-line); }
.dm-reqs { list-style: none; padding: 0; margin: 8px 0 14px; }
.dm-req { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.dm-req b { font-weight: 500; }
.dm-mark { font-weight: 600; }
.dm-met .dm-mark { color: var(--good); }
.dm-unknown .dm-mark { color: var(--accent); }
.dm-not .dm-mark { color: var(--faint); }
.dm-changes ul { margin: 8px 0 12px; padding-left: 18px; color: var(--muted); }
.dm-new { animation: dm-glow 2.4s ease; }
@keyframes dm-glow { from { background: var(--accent-soft); } to { background: transparent; } }
.dm-resume-tools { gap: 10px; justify-content: flex-start; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.dm-resume-tools select { max-width: 320px; }
.dm-toggle { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.dm-resume .r-name { font: 500 26px var(--serif); }
.dm-resume .r-headline { margin: 14px 0 6px; letter-spacing: 0.06em; color: var(--accent); font-size: 13px; }
.dm-role { margin-top: 16px; }
.dm-role ul { margin: 6px 0 0; padding-left: 18px; }
.dm-role li { margin: 4px 0; }
.dm-was { font-size: 13px; color: var(--faint); }
.dm-proves { font-size: 11px; color: var(--good); border: 1px solid var(--good-line); border-radius: 99px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.dm-apps { padding: 0; overflow: hidden; }
.dm-apps select { min-width: 130px; }
.dm-cta { display: grid; gap: 8px; margin-top: 40px; }
.dm-cta .row { justify-content: flex-start; gap: 10px; }
@media (max-width: 640px) {
  .dm-match-head { flex-direction: column; align-items: flex-start; }
  .dm-stats .stat b { font-size: 30px; }
  .app-row { grid-template-columns: 1fr; }
}

/* 18+ and Terms confirmation (sign-up and pricing) */
.acct-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.acct-check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.acct-check a { color: var(--accent); }
.plan-adult { margin: 16px 0 4px; }
.legal h3 { font: 500 18px var(--serif); margin: 20px 0 6px; }

.consent-bar { display: grid; gap: 8px 16px; grid-template-columns: 1fr auto; align-items: center; max-width: 900px; margin: 16px auto 0;
  padding: 12px 16px; border: 0; border-radius: var(--radius); background: var(--accent-soft); }
.consent-bar .note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .consent-bar { grid-template-columns: 1fr; } }
@media print { .consent-bar { display: none; } }

/* Interview: the way out, and the "Strengthen my profile" summary */
.q-out { margin-top: var(--s4); text-align: center; }
.disc-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.strengthen-next { margin-top: var(--s4); }

/* Resume check: flagged lines can be fixed right there */
.q-fix { display: grid; gap: 6px; margin-top: 6px; }
.q-fix .q-ex { display: block; padding: 8px 10px; border: 1px dashed var(--border); border-radius: var(--r-sm); cursor: text; font-style: normal; color: var(--text); }
.q-fix .q-ex:focus { outline: none; border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.checks li .btn { margin-top: 8px; justify-self: start; }

/* ==========================================================================
   Dark theme (Ivy Night). Paper is the default everywhere. In the app (html[data-app])
   people can pick Dark, or Auto to follow their device (◐ in the top bar, saved in this browser).
   ========================================================================== */
html[data-app][data-theme="dark"] {
  --bg: #0f1813; --surface: #15211a; --surface-2: #1c2a22;
  --line: rgba(243, 236, 220, 0.09); --border: rgba(243, 236, 220, 0.17); --border-strong: rgba(243, 236, 220, 0.3);
  --text: #f1ebdd; --muted: #bcc6bc; --faint: #9eab9f;
  --accent: #d4b26f; --accent-hover: #e2c486; --accent-soft: rgba(212, 178, 111, 0.13); --accent-line: rgba(212, 178, 111, 0.38); --on-accent: #12261a;
  --gold: #d4b26f; --gold-soft: rgba(212, 178, 111, 0.14);
  --ivy: #9cc8a6; --good-soft: rgba(156, 200, 166, 0.11); --good-line: rgba(156, 200, 166, 0.32);
  --warn: #dcb07e; --warn-soft: rgba(220, 176, 126, 0.1); --warn-line: rgba(220, 176, 126, 0.35);
  --danger: #e8a596; --danger-soft: rgba(232, 165, 150, 0.1); --danger-line: rgba(232, 165, 150, 0.4);
  --focus: #e2c486;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-paper: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.3);
  --topbar-bg: rgba(15, 24, 19, 0.86);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-app][data-theme="auto"] {
  --bg: #0f1813; --surface: #15211a; --surface-2: #1c2a22;
  --line: rgba(243, 236, 220, 0.09); --border: rgba(243, 236, 220, 0.17); --border-strong: rgba(243, 236, 220, 0.3);
  --text: #f1ebdd; --muted: #bcc6bc; --faint: #9eab9f;
  --accent: #d4b26f; --accent-hover: #e2c486; --accent-soft: rgba(212, 178, 111, 0.13); --accent-line: rgba(212, 178, 111, 0.38); --on-accent: #12261a;
  --gold: #d4b26f; --gold-soft: rgba(212, 178, 111, 0.14);
  --ivy: #9cc8a6; --good-soft: rgba(156, 200, 166, 0.11); --good-line: rgba(156, 200, 166, 0.32);
  --warn: #dcb07e; --warn-soft: rgba(220, 176, 126, 0.1); --warn-line: rgba(220, 176, 126, 0.35);
  --danger: #e8a596; --danger-soft: rgba(232, 165, 150, 0.1); --danger-line: rgba(232, 165, 150, 0.4);
  --focus: #e2c486;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-paper: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.3);
  --topbar-bg: rgba(15, 24, 19, 0.86);
  color-scheme: dark;
  }
}
.theme-btn { background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 11px; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.theme-btn:hover { color: var(--text); border-color: var(--border); }

/* ---------- Keyboard focus: always visible ---------- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .opt:focus-visible, .chip:focus-visible, .tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field:focus-visible { outline: none; }

/* ==========================================================================
   Resume workspace. The document is the page; the tools sit quietly beside it
   as plain sections, not boxes. Phones: a Resume / Improve it switch.
   ========================================================================== */
main:has(.workspace) { max-width: 1280px; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.ws-head h2 { font-size: 26px; }
.ws-head .eyebrow { margin-bottom: 4px; }
.ws-head .row { gap: var(--s2); }
.ws-tabs { display: none; gap: 2px; margin-top: var(--s4); padding: 3px; border-radius: var(--radius); background: var(--surface-2); }
.ws-tabs button { flex: 1; background: none; border: 0; border-radius: var(--r-sm); padding: 8px 12px; color: var(--muted); font-weight: 500; font-size: var(--fs-md); }
.ws-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.ws-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: var(--s5); }
.ws-tools { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; display: grid; gap: 0; padding-right: 6px; scrollbar-width: thin; }
/* Every tool is a plain section with a hairline between them. */
.ws-tools > *, .ws-tools .card, .ws-tools .verified, .ws-tools .tailor-bar, .ws-tools .qcheck {
  margin: 0; padding: var(--s4) 0; background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line);
}
.ws-tools > :first-child { padding-top: 0; }
.ws-tools > :last-child { border-bottom: 0; }
.ws-tools h3 { font-size: var(--fs-md); }
.ws-tools p, .ws-tools .note, .ws-tools span { font-size: 14px; }
.ws-tools .next { flex-direction: column; align-items: flex-start; gap: var(--s3); }
.ws-tools .next p { margin: 4px 0 0; }
.ws-tools .tailor-bar { flex-direction: column; align-items: stretch; gap: var(--s2); }
.ws-tools .tailor-bar label { font-weight: 600; color: var(--text); font-size: var(--fs-md); }
.ws-tools .verified { flex-direction: column; align-items: flex-start; gap: var(--s2); }
.ws-tools .verified b { color: var(--text); font-weight: 600; font-size: var(--fs-md); }
.ws-tools .verified b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ivy); margin-right: 8px; vertical-align: 2px; }
.ws-tools .verified.has-warn b::before { background: var(--warn); }
.ws-tools .polish-card { flex-direction: column; align-items: flex-start; }
.ws-tools .qcheck summary b { font-size: var(--fs-md); }
.ws-tools .save-nudge { padding: var(--s3) var(--s4); background: var(--accent-soft); border: 0; border-radius: var(--radius); margin-bottom: var(--s4); }
.ws-links { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: -8px; }
.ws-doc .paper { margin-top: 0; }
.ws-doc .paper-tip { margin: 0 0 var(--s3); font-size: var(--fs-sm); }
@media (max-width: 1099px) {
  .ws-tabs { display: flex; }
  .ws-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .ws-tools { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .ws-grid[data-view="doc"] .ws-tools, .ws-grid[data-view="tools"] .ws-doc { display: none; }
}
@media print {
  .ws-grid { display: block; margin: 0; }
  .ws-grid .ws-doc { display: block !important; }
}

/* ==========================================================================
   Home: one next step, then a quiet summary on a single panel.
   ========================================================================== */
.subnav-head { font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); padding: 0 4px 0 16px; align-self: center; white-space: nowrap; }
.subnav-head:first-child { padding-left: 4px; }
.home .next-step { display: flex; justify-content: space-between; align-items: center; gap: var(--s5); margin-top: var(--s5); padding: var(--s5) 28px; }
.home .next-step h3 { font: 400 24px/1.25 var(--serif); letter-spacing: -0.01em; }
.home .next-step p { color: var(--muted); margin: 6px 0 0; max-width: 500px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.home-tile { display: grid; gap: 3px; align-content: start; margin: 0; padding: var(--s5); background: none; border: 0; border-radius: 0; }
.home-tile:nth-child(odd) { border-right: 1px solid var(--line); }
.home-tile:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.home-tile small { color: var(--faint); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; }
.home-tile b { font-weight: 600; font-size: var(--fs-base); margin-top: 2px; }
.home-tile .note { margin: 0; }
.home-tile .row { margin-top: var(--s3); gap: var(--s2); }
@media (max-width: 640px) {
  .home .next-step { flex-direction: column; align-items: flex-start; padding: var(--s5); }
  .home-grid { grid-template-columns: 1fr; }
  .home-tile:nth-child(odd) { border-right: 0; }
  .home-tile:not(:last-child) { border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Phones: the main sections in a bar at the bottom, the top bar kept small.
   ========================================================================== */
@media (max-width: 760px) {
  .topbar { flex-wrap: nowrap; height: 56px; padding: 0 var(--s4); gap: var(--s2); }
  .topbar .brand-name { font-size: 18px; }
  .topbar #nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0;
    display: flex; gap: 0; justify-content: space-around; overflow: visible;
    background: var(--topbar-bg); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .topbar #nav .tab { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; font-size: var(--fs-xs); line-height: 1.25; padding: 10px 2px; background: none; }
  .topbar #nav .tab.on { color: var(--accent); }
  .topbar #nav [data-go="pricing"] { display: none; } /* Pricing is on Home and in the footer */
  body:has(.topbar #nav .tab) { padding-bottom: 64px; }
  .toast { bottom: 84px; }
  main { padding: var(--s6) var(--s4) 80px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .ws-head .row .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .ws-head h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  * { transition: none !important; }
}
.brand-name { white-space: nowrap; }
/* Narrow phones: the top bar's controls and the five section tabs fit in 375px. */
@media (max-width: 430px) {
  .theme-btn .theme-word { display: none; }
  .theme-btn { padding: 3px 9px; }
  .topbar .lang-switch, .topbar .acct-btn { padding: 6px 7px; }
  .topbar #nav { box-sizing: border-box; width: 100%; }
  .topbar #nav .tab { position: relative; font-size: 11px; padding: 10px 1px; }
  .topbar #nav .tab .badge { position: absolute; top: 1px; right: 2px; margin: 0; min-width: 15px; font-size: 10px; line-height: 14px; padding: 0 3px; }
}


/* Career profile: a fact's actions appear when you point at it or tab to it (always on touch screens) */
@media (hover: hover) {
  .pf-fact .pf-actions { opacity: 0; transition: opacity 0.12s var(--ease); }
  .pf-fact:hover .pf-actions, .pf-fact:focus-within .pf-actions { opacity: 1; }
}
.pf-job { padding: 22px 24px; }
.pf-facts { margin-top: var(--s3); }
.pf-fact { padding: 14px 0; }
.pf-src { font-size: var(--fs-sm); color: var(--faint); }

/* Job results: compact rows on one panel, easy to scan and compare */
.job-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; margin-top: var(--s3); }
.job-row { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.job-row:last-child { border-bottom: 0; }
.job-row:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.job-row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.job-row-title h3 { font-size: var(--fs-base); }
.job-row-meta { margin: 3px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.job-row-reqs { display: flex; flex-wrap: wrap; gap: 6px; }
.job-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: -8px; }
.job-row-actions .btn:not(.ghost) { margin-left: 8px; }
.fit-pill { flex: none; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.fit-pill b { color: var(--text); font-weight: 600; }
.fit-pill.strong { background: var(--good-soft); }
.fit-pill.strong b { color: var(--good); }
.chip.ok { color: var(--good); background: var(--good-soft); }
.chip.ask { color: var(--warn); background: var(--warn-soft); }
@media (max-width: 640px) { .job-row-head { flex-direction: column; gap: 6px; } }
.chip.ok, .chip.ask, .chip.bad { border-color: transparent; }
.chip.bad { background: var(--danger-soft); }

/* Wider pages: pricing and other side-by-side layouts */
main:has(.wide) { max-width: 1000px; }
.plans { gap: var(--s4); }
.plan { padding: 24px; }
.plan h3 { font-size: var(--fs-lg); }
.plan ul { gap: 7px; }
.plan li { line-height: 1.45; }
.plan.pro { border-color: var(--accent-line); }
.plan .btn { width: 100%; }
/* Links inside text */
main p a, main .note a, main li a, .lede a, .acct-check a { color: var(--accent); text-underline-offset: 2px; }
main p a:hover, main .note a:hover { color: var(--accent-hover); }
/* Workspace tools column: everything wraps inside its 300px */
.ws-tools > * { min-width: 0; }
.ws-tools .btn { white-space: normal; text-align: center; }
.ws-tools .polish-card > div, .ws-tools .next > div { flex: none; width: 100%; }
.ws-tools .tailor-bar .field { width: 100%; }
/* Phones: the bottom bar lives inside the top bar's markup, and a blurred (backdrop-filter) parent
   would pin it to the top bar instead of the screen, so the top bar is solid here. */
@media (max-width: 760px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}

/* ==========================================================================
   Workspace shell (Editorial Paper). Navigation sits next to the brand; each
   kind of screen gets a width that suits it: focused (interview, forms),
   working (lists, profile, jobs), and the resume workspace.
   ========================================================================== */
.topbar { justify-content: flex-start; gap: var(--s2); }
.brand-mark { border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: italic 500 15px/1 var(--serif); }
.topbar .nav { margin: 0 0 0 var(--s5); }
.topbar .theme-btn { margin-left: auto; }
.tab.on { color: var(--accent); background: var(--accent-soft); }
.subnav { padding: 8px max(var(--s5), calc(50% - 560px)); gap: 4px; }
.subtab { white-space: nowrap; }
.subnav-group { display: flex; gap: 2px; align-items: center; }
.subnav .subnav-all { margin-left: auto; color: var(--accent); }

main { max-width: 880px; }
main[data-screen="interview"], main[data-screen="reading"], main[data-screen="overview"], main[data-screen="start"],
main[data-screen="account"], main[data-screen="welcome"], main[data-screen="answers"] { max-width: 760px; }
main[data-screen="home"], main[data-screen="resumes"], main[data-screen="profile"], main[data-screen="search"],
main[data-screen="jobs"], main[data-screen="applied"], main[data-screen="tools"], main[data-screen="explore"],
main[data-screen="bank"], main[data-screen="pricing"] { max-width: 1120px; }
.foot { max-width: 1120px; margin-top: -48px; }
.lede { max-width: 640px; }

/* Page heads: title and the screen's main action on one line */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.page-head h2 { font-size: 34px; }
.page-head .lede { margin-top: var(--s2); }

/* Small fixes */
.form label.tiny-check { display: flex; }
@media (hover: hover) {
  .pf-fact { position: relative; }
  .pf-fact .pf-actions { position: absolute; top: 8px; right: 0; background: var(--surface); padding-left: 8px; }
}
.pf-fact { padding: 12px 0; }

/* ---------- My resumes: documents you can open ---------- */
.rs-shared { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center; margin-top: var(--s5);
  padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.rs-shared b { font-weight: 600; }
.rs-shared p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); max-width: 640px; }
.rs-stats { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--muted); justify-items: start; }
.rs-stats b { color: var(--text); }
.rs-stats .btn { margin-top: 6px; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s5); margin-top: var(--s5); }
.rs-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); text-align: left; }
.rs-card.active { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-1); }
.rs-thumb { display: block; border: 0; padding: 22px 26px 0; background: var(--surface-2); cursor: pointer; height: 168px; overflow: hidden; }
.rs-paper { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 16px 18px; background: #fffdf8; color: #1d2433; border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 0 rgba(29, 42, 36, 0.05), 0 10px 24px -14px rgba(29, 42, 36, 0.35); font: 10.5px/1.4 Calibri, Carlito, Arial, sans-serif; transition: transform 0.2s var(--ease); }
.rs-thumb:hover .rs-paper { transform: translateY(-3px); }
.rs-paper b { font: 600 14px Georgia, serif; text-align: center; color: #23395b; }
.rs-paper i { text-align: center; color: #5b6475; font-style: normal; }
.rs-rule { height: 1px; background: #c9d1de; margin: 5px 0 3px; }
.rs-job { font-weight: 700; margin-top: 3px; }
.rs-line { color: #4a5160; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; position: relative; }
.rs-line::before { content: '•'; position: absolute; left: 0; }
.rs-body { padding: var(--s4) var(--s5) var(--s5); display: grid; gap: 6px; }
.rs-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.rs-top h3 { font: 400 21px/1.25 var(--serif); }
.rs-open { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.rs-meta { margin: 0; font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-meta .chip { font-size: 11.5px; }
.rs-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.rs-actions .ghost { margin-left: auto; }
.rs-new { align-items: center; justify-content: center; gap: 6px; min-height: 300px; padding: var(--s5); border: 1.5px dashed var(--border); background: transparent; box-shadow: none; color: var(--muted); text-align: center; cursor: pointer; }
.rs-new:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.rs-new b { font-weight: 600; color: var(--text); font-size: var(--fs-base); }
.rs-new span { font-size: var(--fs-sm); }
.rs-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1; background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.row-sub { display: block; font-size: var(--fs-xs); color: var(--faint); text-align: left !important; }
@media (max-width: 760px) { .rs-shared { grid-template-columns: 1fr; } .rs-grid { grid-template-columns: 1fr; } .rs-new { min-height: 140px; } }

/* ---------- Home ---------- */
.home-plan { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.home-plan b { color: var(--text); font-weight: 600; }
.next-label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.home .next-step { background: var(--surface); border-left: 3px solid var(--accent); }
.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.home-card { display: grid; gap: 4px; align-content: start; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-card small { color: var(--faint); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.home-card b { font: 400 21px/1.25 var(--serif); margin-top: 2px; }
.home-card .note { margin: 0; min-height: 44px; }
.home-card .row { margin-top: var(--s3); gap: 6px; }
.home-tools { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1000px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-cards { grid-template-columns: 1fr; } .home-card .note { min-height: 0; } }

/* ---------- Career tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s3); }
.tool-card { display: grid; gap: 4px; align-content: start; text-align: left; padding: var(--s4) var(--s5); min-height: 104px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 0.12s var(--ease), transform 0.12s var(--ease); }
.tool-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.tool-card b { font-weight: 600; font-size: var(--fs-md); }
.tool-card span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.tool-lock { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--gold); background: var(--gold-soft); border-radius: var(--r-pill); padding: 0 7px; vertical-align: 1px; }

/* ---------- Find jobs: filters beside the results ---------- */
.sr-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s5); align-items: start; margin-top: var(--s5); }
.sr-filters { position: sticky; top: 76px; margin: 0; }
.sr-filters .btn { width: 100%; }
.sr-help { margin: 0; font-size: var(--fs-xs); }
.sr-count { margin: 0 0 var(--s3); color: var(--muted); font-size: var(--fs-sm); }
.sr-count b { color: var(--text); }
.sr-results .job-list { margin-top: 0; }
.sr-more { margin-top: var(--s4); }
.sr-empty { margin-top: 0; }
.tool-card .tool-lock { color: var(--gold); }
@media (max-width: 860px) { .sr-layout { grid-template-columns: 1fr; } .sr-filters { position: static; } }

/* ---------- Public pages (free resume check, demo, legal): the homepage's header and paper ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.site-top .site-nav { display: flex; gap: 22px; margin-left: auto; margin-right: var(--s4); font-size: 14.5px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.public-main { max-width: 1120px; }
.checker-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s7); align-items: start; }
.checker-hero h1 { font-size: 52px; line-height: 1.04; letter-spacing: -0.025em; }
.checker-promise { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: 10px; color: var(--muted); }
.checker-promise li { position: relative; padding-left: 26px; }
.checker-promise li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--ivy); border-bottom: 2px solid var(--ivy); transform: rotate(-45deg); }
.checker-input { margin: 0; display: grid; gap: var(--s3); padding: var(--s5); box-shadow: var(--shadow-paper); }
.checker-input label { display: grid; gap: 2px; }
.checker-input .note { margin: 0; }
.checker #results { max-width: 880px; margin: var(--s7) auto 0; }
@media (max-width: 860px) {
  .checker-hero { grid-template-columns: 1fr; gap: var(--s5); }
  .checker-hero h1 { font-size: 38px; }
  .site-top .site-nav { display: none; }
  .site-top .site-login { margin-left: auto; }
}
.rs-paper > * { flex: none; }

/* ---------- Career profile: an index beside the facts ---------- */
.pf-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--s5); align-items: start; margin-top: var(--s5); }
.pf-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.pf-side h3.section { margin: var(--s5) 0 var(--s2); font-size: var(--fs-sm); }
.pf-side .card { margin: 0; padding: var(--s3) var(--s4); }
.pf-side .card .chips { margin-top: 0; padding-top: 0; border-top: 0; }
.pf-sum { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 12px; font-size: var(--fs-xs); color: var(--muted); justify-content: start; }
.pf-sum b { display: block; font: 400 22px/1.1 var(--serif); color: var(--text); }
.pf-index { display: grid; gap: 2px; margin-top: var(--s4); border-left: 2px solid var(--line); }
.pf-index button { display: grid; text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-left: -2px; border-left: 2px solid transparent; }
.pf-index button:hover { background: var(--surface-2); border-left-color: var(--accent); }
.pf-index b { font-weight: 600; font-size: var(--fs-sm); }
.pf-index span { font-size: var(--fs-xs); color: var(--faint); }
.pf-own { display: grid; gap: 6px; justify-items: start; }
.pf-own .note { margin: 0; font-size: var(--fs-xs); }
.pf-jobs .pf-job:first-child { margin-top: 0; }
.pf-jobs .pf-job { scroll-margin-top: 80px; }
.pf-src .chip { font-size: 11.5px; }
@media (max-width: 900px) { .pf-layout { grid-template-columns: 1fr; } .pf-side { position: static; max-height: none; } }
.rs-paper { text-align: left; }
.job-why { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.sr-order { margin: 0 0 var(--s3); font-size: var(--fs-xs); }
.chip i { font-style: normal; opacity: 0.75; font-size: 0.92em; }

/* Find jobs: a job's title opens its page; requirement chips you can answer */
.job-title-link { all: unset; cursor: pointer; font: inherit; color: var(--text); }
.job-title-link:hover, .job-title-link:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.job-title-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button.chip.ask { cursor: pointer; font: inherit; font-size: var(--fs-xs); }
button.chip.ask:hover { border-color: var(--warn); }
.chip-act { font-weight: 600; margin-left: 4px; text-decoration: underline; text-underline-offset: 2px; }
.chip-x { all: unset; cursor: pointer; margin-left: 6px; padding: 0 3px; font-weight: 700; line-height: 1; border-radius: 50%; }
.chip-x:hover, .chip-x:focus-visible { background: var(--good-line); }
.job-detail h2 { margin-top: 6px; }
.job-detail-actions { margin: 14px 0 20px; flex-wrap: wrap; align-items: center; }
.job-detail-fit .job-row-reqs { margin-top: 10px; }
.job-detail .posting { line-height: 1.6; }
.job-detail .posting h4 { margin: 18px 0 6px; font-size: var(--fs-base); }
.job-detail .posting h4:first-child { margin-top: 0; }
.job-detail .posting ul { margin: 6px 0 12px; padding-left: 20px; }
.job-detail .posting p { margin: 0 0 10px; }
.posting-src { margin-top: 18px; }
.chip.off .chip-x { display: inline-block; text-decoration: none; }
.chip-x.undo { font-weight: 600; font-size: var(--fs-xs); border-radius: var(--r-pill); padding: 0 6px; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* Career explorer (explore.js) */
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-block; font-size: var(--fs-xs); padding: 2px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); }
.tag.ready-now { background: var(--good-soft); color: var(--good); }
.tag.ready-soon { background: var(--warn-soft); color: var(--warn); }
.tag.ready-later { background: var(--accent-soft); color: var(--accent); }
.tag.hidden-gem { background: var(--accent-soft); color: var(--text); }
.ex-pick { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; cursor: pointer; }
.ex-career.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ex-headline { font-size: var(--fs-base); margin: 10px 0 6px; }
.ex-hard { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); }
.ex-hard b { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--warn); }
.ex-hard ul, .ex-heard ul { margin: 6px 0 0; padding-left: 18px; }
.ex-entry { margin: 12px 0 6px; }
.ex-transfer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.ex-actions { margin-top: 14px; flex-wrap: wrap; }
.ex-top-actions { margin: 4px 0 18px; flex-wrap: wrap; }
.ex-heard h4 { margin: 14px 0 4px; font-size: var(--fs-sm, 14px); }
.ex-heard-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ex-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ex-paths p { margin: 6px 0 0; color: var(--muted); }
.ex-deeper { display: flex; gap: 18px; align-items: center; justify-content: space-between; border-color: var(--accent); }
.ex-deeper p { margin: 6px 0 0; color: var(--muted); }
.ex-q h3 { margin: 4px 0 6px; }
.ex-q textarea { margin-top: 10px; width: 100%; }
.ex-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin: 18px 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.ex-spinner { width: 34px; height: 34px; margin: 24px 0; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: exspin 0.9s linear infinite; }
@keyframes exspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ex-spinner { animation: none; } }
.ex-jobs h4 { margin: 16px 0 2px; }
.ex-jobs ul { margin: 6px 0; padding-left: 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ex-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--fs-xs); }
.ex-table th, .ex-table td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.ex-table thead th { font-size: var(--fs-sm, 14px); }
.job-for { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.sr-careers { display: grid; gap: 6px; }
.sr-careers .row { flex-wrap: wrap; gap: 6px; }
.sr-tier { margin-top: 22px; }
@media (max-width: 700px) {
  .ex-heard-cols, .ex-paths { grid-template-columns: 1fr; }
  .ex-deeper { flex-direction: column; align-items: flex-start; }
}
.ex-progress { height: 10px; border-radius: var(--r-pill); background: var(--accent-soft); overflow: hidden; margin: 18px 0 14px; max-width: 560px; }
.ex-progress div { height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.9s linear; }
.ex-stages { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.ex-stages li { color: var(--faint); }
.ex-stages li.on { color: var(--text); font-weight: 600; }
.ex-stages li.done { color: var(--good); }
.ex-far { background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; margin: 8px 0; font-size: var(--fs-sm); }
.ex-job-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.ex-job-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.ex-job-meta { color: var(--muted); font-size: var(--fs-sm); }
.ex-jobs-career + .ex-jobs-career { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 6px; }
@media (prefers-reduced-motion: reduce) { .ex-progress div { transition: none; } }
.ex-busy { border-color: var(--warn); background: var(--warn-soft); } .ex-busy p { margin: 6px 0 12px; }

/* ---------- Ivy's interview (coach.js) ---------- */
.coach-progress { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; margin: 6px 0 4px; }
.coach-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: var(--fs-sm); }
.coach-top b { color: var(--accent); font-weight: 600; }
.coach-top span { color: var(--faint); }
.coach-jobs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.coach-job { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.25; color: var(--muted); max-width: 100%; }
.coach-job small { font-size: 11px; color: var(--faint); }
.coach-job.now { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.coach-job.done { border-color: var(--good-line); }
.coach-job.done small { color: var(--good); }
.coach-insight { display: flex; gap: 10px; align-items: baseline; margin: -18px 0 22px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 8px 8px 0; font-size: var(--fs-sm); color: var(--text); }
.coach-insight span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.coach-wait { text-align: center; padding: 34px 22px; margin-top: 22px; }
.coach-wait h3 { margin: 10px 0 6px; }
.coach-wait .row { justify-content: center; }
.coach-insight-text { max-width: 520px; margin: 8px auto 0; color: var(--muted); font-style: italic; }
.coach-dots { display: inline-flex; gap: 6px; }
.coach-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .3; animation: coach-dot 1.2s infinite ease-in-out; }
.coach-dots i:nth-child(2) { animation-delay: .2s; } .coach-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes coach-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .coach-dots i { animation: none; opacity: .6; } }
.coach-remaining { margin-top: 6px; font-size: var(--fs-sm); }
.discovered-card h4 { margin: 16px 0 6px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.discovered-card ul { margin: 0; padding-left: 20px; }
.discovered-card li { margin: 4px 0; }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dc-head h3 { margin: 0; }
.skill-groups { margin: 0 0 6px; }
.skill-group { margin: 0 0 4px; }
.skill-group b { font-weight: 600; }

/* ---------- Resume page, v2 (2026-11): calmer page, controls out of the way ---------- */
.paper { font: 14px/1.5 Calibri, Carlito, 'Segoe UI', Arial, sans-serif; padding: 0.75in 0.8in; }
.paper h1 { font-size: 30px; letter-spacing: 0.005em; }
.paper .r-headline { margin-top: 6px; font-size: 11.5px; letter-spacing: .14em; }
.paper .contact { margin-top: 8px; font-size: 12.5px; }
.paper h4 { margin: 22px 0 9px; padding-bottom: 4px; font-size: 11.5px; letter-spacing: .14em; border-bottom-color: #b9c3d3; }
.paper .r-head + h4 { margin-top: 18px; }
.paper .job { margin-bottom: 14px; }
.paper .job-head b { font-size: 14.5px; }
.paper .job-sub { margin-top: 1px; }
.paper ul { margin: 5px 0 0; padding-left: 18px; }
.paper li { margin-bottom: 4px; padding-left: 3px; line-height: 1.48; }
.paper li::marker { font-size: 0.85em; }
/* Core qualifications as a tidy grid instead of a run-on line */
.paper .core-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 18px; line-height: 1.45; }
.paper .core-line .sep { display: none; }
.paper .core-line .skill::before { content: '▪'; color: var(--head); font-size: 0.8em; margin-right: 7px; position: relative; top: -1px; }
@media (max-width: 760px) { .paper .core-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .paper .core-line { grid-template-columns: 1fr; } }
.paper .skill-group { margin: 0 0 5px; line-height: 1.5; }
.paper .skill-group b { color: var(--ink); }
.paper .edu .job-head b { font-weight: 600; font-size: 14px; }
/* Editing controls: hidden until the line is hovered or focused (always faintly there on touch screens) */
.paper .skill-x, .paper .line-tool, .paper .line-x { opacity: 0; transition: opacity .15s; }
.paper li:hover .line-tool, .paper li:focus-within .line-tool, .paper li:hover .line-x, .paper li:focus-within .line-x,
.paper .skill:hover .skill-x, .paper .skill-x:focus, .paper .line-tool:focus, .paper .line-x:focus { opacity: 1; }
.paper .line-tool { font-size: 11px; color: #8d7748; white-space: nowrap; padding-left: 8px; }
@media (hover: none) { .paper .line-tool, .paper .line-x, .paper .skill-x { opacity: .55; } }
.paper .job-tools { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.paper .job-tools .btn.link { font-size: 12px; color: #4d6b5a; }
@media (max-width: 640px) { .paper { padding: 26px 18px; font-size: 13.5px; } .paper h1 { font-size: 25px; } }
@media print { .paper { font-size: 10.5pt; } .paper .core-line { grid-template-columns: repeat(3, 1fr); } }
/* Line and skill controls float in the page margin on wide screens, so hidden ones never take up space */
@media (min-width: 761px) and (hover: hover) {
  .paper li { position: relative; }
  .paper li > .line-tool { position: absolute; left: 100%; top: 2px; margin-left: 4px; padding: 0; font-size: 10.5px; }
  .paper li > .line-x { position: absolute; right: 100%; top: 0; margin: 0 14px 0 0; padding: 0 2px; }
  .paper .skill { position: relative; }
  .paper .skill > .skill-x { position: absolute; left: 100%; top: -6px; padding: 0 1px; font-size: 12px; }
}
@media (max-width: 760px), (hover: none) { .paper .skill-group .skill-x, .paper .core-line .skill-x { display: none; } }

/* Brand logo (the crowned cat): replaces the old lettered mark. */
img.brand-logo { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0; background: none; object-fit: contain; flex: none; display: block; }
.ft-brand img.brand-logo { background: none; width: 30px; height: 30px; }
@media (max-width: 600px) { img.brand-logo { width: 28px; height: 28px; } }

/* Working in several tabs or on several devices (sync.js) */
.sync-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 16px auto 0; max-width: 900px; padding: 12px 16px; border: 1px solid var(--warn-line); border-radius: var(--radius);
  background: var(--warn-soft); color: var(--muted); line-height: 1.45; }
.sync-bar b { color: var(--text); font-weight: 600; display: block; }
.sync-bar .sync-where { display: inline-block; margin-right: 6px; font-weight: 500; color: var(--text); }
.sync-bar .row { gap: 8px; margin: 0; }
[inert] { opacity: .72; }
.rs-recovered { margin: 0 0 18px; }
.rs-recovered h3 { margin: 0 0 4px; }
.rs-rec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.rs-rec-row:first-of-type { border-top: 0; }
.sync-typed { margin-top: 8px; padding: 10px 12px; }
.sync-typed-text { white-space: pre-wrap; margin: 4px 0 8px; }
@media print { .sync-bar { display: none; } }
.access-bar a, .sync-bar a { color: var(--accent); }
/* Review screen: fields the reader wasn't sure about, and its notes */
.field.needs-check { border-color: var(--warn-line); background: var(--warn-soft); }
.needs-check-note { margin: 0 0 8px; color: var(--warn); }
.reader-notes ul { margin: 6px 0 0 18px; padding: 0; }
.review-edu .fix-row { grid-template-columns: 1.3fr 1.3fr .6fr auto; }
.review-edu .narrow input { min-width: 0; }
@media (max-width: 640px) { .review-edu .fix-row { grid-template-columns: 1fr auto; } }

/* Ivy 2.0 (experimental conversation, ivy2.js) */
.ivy2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ivy2-head h2 { margin: 4px 0; }
.ivy2-head .note { margin: 0; max-width: 60ch; }
/* (2026-11-26: the conversation alone, centered; what Ivy noted is reviewed in the summary before the resume is written) */
.ivy2-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 880px; margin: 0 auto; }
.ivy2-chat { display: grid; gap: 8px; min-width: 0; }
.ivy2-log { display: grid; gap: 14px; align-content: start; min-height: 320px; max-height: calc(100vh - 300px); overflow-y: auto; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ivy2-msg { display: grid; gap: 4px; max-width: 85%; }
.ivy2-msg.user { justify-self: end; }
.ivy2-who { font-size: 12px; color: var(--muted); font-weight: 600; }
.ivy2-msg.user .ivy2-who { text-align: right; }
.ivy2-bubble { padding: 10px 14px; border-radius: 12px; line-height: 1.5; background: var(--surface-2); color: var(--text); overflow-wrap: anywhere; }
.ivy2-msg.user .ivy2-bubble { background: var(--accent); color: #fff; }
.ivy2-msg.typing .ivy2-bubble { padding: 12px 16px; }
.ivy2-noted { font-size: 12px; color: var(--muted); }
.ivy2-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.ivy2-composer textarea { resize: vertical; min-height: 48px; }
.ivy2-hint { margin: 0; font-size: 13px; }
.ivy2-ready { margin: 0 0 12px; }
/* The summary before the resume is written (ivy2.js summaryPanel) */
.ivy2-summary { max-width: 880px; margin: 0 auto; display: grid; gap: 10px; }
.ivy2-summary h3 { margin: 0; }
.ivy2-summary h3:focus { outline: none; }
.ivy2-summary h4 { margin: 8px 0 0; font-size: var(--fs-md); }
.ivy2-summary > .note { margin: 0; }
.ivy2-summary ul.ivy2-sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ivy2-sum-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ivy2-sum-item.removed { opacity: .65; }
.ivy2-sum-item .struck { text-decoration: line-through; }
.ivy2-sum-item .btn { flex: none; }
.ivy2-sum-check { padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid var(--warn-line); }
.ivy2-sum-check ul { margin: 4px 0 0; padding-left: 18px; }
.ivy2-sum-actions { gap: 8px; flex-wrap: wrap; margin-top: 6px; }
/* Ivy 3.0 (test site only): tap-to-answer choices, claims not yet confirmed, what Ivy left off */
.ivy3-choices { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.ivy3-choices .note { flex-basis: 100%; margin: 0; }
.ivy3-claims, .ivy3-left { margin: 0 0 12px; }
.ivy3-claims ul, .ivy3-left ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ivy3-claims li small, .ivy3-left li small { color: var(--muted); }
.ivy3-claims .row, .ivy3-left .row { gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.tag.warn { color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); padding: 1px 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); }
@media (max-width: 760px) {
  .ivy2-grid { grid-template-columns: 1fr; }
  .ivy2-log { max-height: none; min-height: 240px; }
  .ivy2-msg { max-width: 100%; }
  .ivy2-composer { position: sticky; bottom: 64px; background: var(--bg); padding: 8px 0; }
}

/* Ivy 3.0 manual test mode (preview only): the tester's turns are always marked as theirs, never Ivy's AI */
.ivy3-manual { margin-top: 12px; display: grid; gap: 8px; border: 2px dashed #b7791f; }
.ivy3-manual textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.ivy3-manual .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ivy3-manual-banner { border-left: 4px solid #b7791f; margin: 8px 0; }
.ivy2-bubble.manual { border: 2px dashed #b7791f; }
.ivy3-checks { font-size: 13px; margin-top: 4px; }
.ivy3-checks code { font-weight: 600; }
.ivy3-checks li { margin: 4px 0; overflow-wrap: anywhere; }
.ivy3-prompt textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* The review screen's reading (2026-11-15): how it was read, doubts per job, details not in a job */
.reading-banner { margin: 0 0 12px; }
.reading-banner.ok { color: var(--good); }
.reading-notice { color: var(--text); }
.role-doubts { margin: 0 0 8px; color: var(--warn); }
.review-unplaced .unplaced-row { padding: 10px 0; border-top: 1px solid var(--line, var(--surface-2)); }
.review-unplaced .unplaced-row:first-of-type { border-top: 0; }
.review-unplaced .unplaced-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.review-unplaced .unplaced-head small { color: var(--muted); }
.review-unplaced .unplaced-missed { color: var(--warn); }
.review-unplaced textarea { width: 100%; }
