/* Falcon Apply
   Two voices:
     Archivo         the product speaking (all interface)
     Source Serif 4  the person's own documents (resume, letter, quoted lines)
   Tokens below are the only colors, sizes and spaces the other style sheets use. */

:root {
  --paper: #ffffff;
  --desk: #f3f1ec;
  --line: #dedad2;
  --line-strong: #a8a296;
  --ink: #14161a;
  --ink-2: #3c4149;
  --ink-3: #666c75;
  --pen: #b8351f;
  --good: #2f6b47;
  --good-wash: #e8f1ea;
  --warn: #8a5a00;
  --warn-wash: #f6efdc;
  --pen-wash: #f8e9e5;
  --k-missing: #b8351f;
  --k-proof: #8a5a00;
  --k-verb: #1d4ed8;
  --k-vague: #6d28d9;
  --k-format: #0f6b6b;

  --t-12: .75rem;
  --t-13: .8125rem;
  --t-14: .875rem;
  --t-16: 1rem;
  --t-20: 1.25rem;
  --t-25: 1.5625rem;
  --t-31: 1.9375rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-8: 48px;
  --r: 8px;
  --ui: Archivo, "Helvetica Neue", Arial, sans-serif;
  --doc: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 var(--t-16)/1.5 var(--ui); }
[hidden] { display: none !important; }
button, input, textarea, select { font-family: inherit; }
.pane-body, .list-row, .gchip, .tab, .panel, .side { position: relative; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--k-verb); }
:focus-visible { outline: 2px solid var(--k-verb); outline-offset: 2px; }
.small { font-size: var(--t-13); color: var(--ink-3); }
.error { color: var(--pen); font-weight: 600; }
.acct-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6); }

/* ---------- shared pieces (page helpers build with these) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 40px;
  padding: 0 var(--s-4); border-radius: var(--r); border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink); font: 600 var(--t-14)/1.2 var(--ui);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--desk); }
.btn.primary, .btn.ink, .btn.pen { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover, .btn.ink:hover, .btn.pen:hover { background: var(--ink-2); }
.btn.quiet { border-color: var(--line-strong); }
.btn.danger { border-color: var(--pen); color: var(--pen); background: var(--paper); }
.btn.danger:hover { background: var(--pen-wash); }
.btn.big { min-height: 48px; font-size: var(--t-16); width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn .gain { color: var(--good); }
.btn.primary .gain { color: #bfe3cb; }
.linkish { background: none; border: 0; padding: 0; color: var(--k-verb); font: inherit; font-size: var(--t-14); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.card { background: transparent; border: 1px solid var(--line); border-radius: var(--r); }
.tag { display: inline-flex; align-items: center; gap: var(--s-1); padding: 1px var(--s-2); border-radius: 4px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: 600 var(--t-12)/1.5 var(--ui); white-space: nowrap; }
.tag.good { color: var(--good); background: var(--good-wash); border-color: transparent; }
.tag.warn { color: var(--warn); background: var(--warn-wash); border-color: transparent; }
.tag.pen { color: var(--pen); background: var(--pen-wash); border-color: transparent; }
.gain { color: var(--good); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pane-head { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-5); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.pane-head h2 { font-size: var(--t-16); letter-spacing: -0.01em; margin-right: auto; min-width: 0; }
.pane-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.list-row { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 40px; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); font: 400 var(--t-14)/1.3 var(--ui); text-align: left; cursor: pointer; }
.list-row:hover { background: var(--line); color: var(--ink); }
.list-row[aria-current="true"], .list-row.selected { background: var(--line); color: var(--ink); box-shadow: inset 2px 0 0 var(--ink); }
.list-row .lr-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-8) var(--s-5); }
.empty-h { font-weight: 800; font-size: var(--t-20); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lock-note { display: flex; flex-direction: column; gap: var(--s-3); max-width: 520px; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.lock-note h2, .lock-note h3 { font-size: var(--t-20); }
.lock-note p { color: var(--ink-2); }
.shimmer { display: block; border-radius: 4px; background: linear-gradient(90deg, var(--line) 0%, var(--desk) 50%, var(--line) 100%); background-size: 200% 100%; animation: fa-shimmer 1.2s linear infinite; }
@keyframes fa-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field label, .field .label { font-weight: 600; font-size: var(--t-14); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r); padding: var(--s-2) var(--s-3);
  font: 400 var(--t-16)/1.45 var(--ui); color: var(--ink); background: var(--paper);
}
.field input[type="text"], .field input[type="email"], .field input[type="url"] { min-height: 40px; }
.field textarea { resize: vertical; }

/* ---------- top bar ---------- */
.bar { position: relative; z-index: 5; display: flex; align-items: center; gap: var(--s-4); height: 56px; padding: 0 var(--s-5); background: var(--paper); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.mark { font-weight: 800; font-size: var(--t-20); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: var(--s-3); }
.mark span { color: var(--pen); }
.grow { flex: 1 1 auto; }
.tabs { display: flex; align-self: stretch; gap: var(--s-1); }
.tab { display: inline-flex; align-items: center; gap: var(--s-2); height: 100%; padding: 0 var(--s-3); border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font: 600 var(--t-14)/1 var(--ui); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:focus-visible { outline-offset: -4px; }
.tab-status, .tile-status { display: inline-flex; align-items: center; gap: var(--s-1); font: 600 var(--t-12)/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tab-status:empty { display: none; }
.tab-status.todo { min-width: 20px; justify-content: center; padding: 3px 6px; border-radius: 4px; background: var(--pen-wash); color: var(--pen); }
.tab-status.ok, .tile-status.ok { color: var(--good); }
.tile-status.todo { color: var(--pen); }
.lock-ic { fill: none; stroke: currentColor; stroke-width: 1.6; }
.lock-ic rect { fill: currentColor; stroke: none; }
.spin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink-2); animation: fa-spin 0.9s linear infinite; }
@keyframes fa-spin { to { transform: rotate(360deg); } }

.gchip { display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 var(--s-3) 0 var(--s-2); border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.gchip .ring-svg { width: 26px; height: 26px; }
.gchip .num { font: 800 var(--t-16)/1 var(--ui); font-variant-numeric: tabular-nums; min-width: 2ch; }
.gchip.busy .num::before { content: ""; display: inline-block; width: 2ch; height: 10px; border-radius: 3px; background: var(--desk); }
.ring-svg { transform: rotate(-90deg); display: block; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 3.5; }
.ring-fill { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 500ms ease; }
[data-tone="high"] .ring-fill { stroke: var(--good); }
[data-tone="mid"] .ring-fill { stroke: var(--warn); }
[data-tone="low"] .ring-fill { stroke: var(--pen); }
.busy .ring-fill { stroke-dasharray: 18 100; stroke: var(--line-strong); transition: none; }
.busy .ring-svg { animation: fa-spin 1.4s linear infinite; }

.banner { background: var(--warn-wash); border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--t-14); flex: 0 0 auto; }
.banner-in, .banner .wrap { padding: var(--s-2) var(--s-5); max-width: none; }

/* ---------- start ---------- */
.start { max-width: 1200px; margin: 0 auto; padding: var(--s-5) var(--s-6); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.pitch { display: flex; flex-direction: column; gap: var(--s-4); padding-top: var(--s-4); }
.pitch h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.02; }
.pitch h1 em { font-style: normal; color: var(--pen); }
.lead { font-size: var(--t-16); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.gets { list-style: none; margin: var(--s-2) 0 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.gets li { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-13); line-height: 1.3; color: var(--ink-3); }
.gets b { font-size: var(--t-14); color: var(--ink); font-weight: 700; }
.start-form { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.drop { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: var(--s-3); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: var(--t-14); }
.drop.over { border-color: var(--ink); background: var(--paper); }
.drop input { max-width: 100%; font: 400 var(--t-14) var(--ui); }
.using-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r); font-size: var(--t-14); }
.using-row b { overflow-wrap: anywhere; }
.promise { font-size: var(--t-12); line-height: 1.45; color: var(--ink-3); }
.wait { padding: var(--s-8) var(--s-5); display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; }
.wait-h { font-weight: 800; font-size: var(--t-25); letter-spacing: -0.02em; }

/* ---------- the workspace ----------
   On a wide screen the body never scrolls: the bar sits on top and each pane scrolls inside. */
body.in-work .site-foot { display: none; }
.work { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.work > * { display: none; min-height: 0; min-width: 0; }
/* The viewport lock: only on a screen at least 820 px wide and 600 px tall. A shorter or zoomed
   screen gets a normal page that scrolls, with the panes at their natural height. */
@media (min-width: 820px) and (min-height: 600px) {
  body.in-work { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  body.in-work main { flex: 1 1 auto; min-height: 0; }
  .work { height: 100%; grid-template-rows: minmax(0, 1fr); }
}
@media (max-height: 599px) {
  .pane-body { overflow: visible; }
  .work > * { overflow: visible !important; }
}
.work[data-tab="overview"] > #panel-overview,
.work[data-tab="resume"] > #panel-resume,
.work[data-tab="jobs"] > #panel-jobs,
.work[data-tab="letter"] > #panel-letter,
.work[data-tab="prep"] > #panel-prep { display: block; overflow: auto; }
.work[data-tab="fix"], .work[data-tab="tailor"] { grid-template-columns: minmax(0, 1fr) 380px; }
.work[data-tab="fix"] > #doc-pane, .work[data-tab="tailor"] > #doc-pane,
.work[data-tab="fix"] > #side-fix { display: flex; flex-direction: column; }
.work[data-tab="tailor"] > #side-tailor { display: block; overflow: auto; }
.side { background: var(--desk); border-left: 1px solid var(--line); }
.panel:focus { outline: none; }

/* ---------- Overview ---------- */
.ov { max-width: 1280px; margin: 0 auto; padding: var(--s-6) var(--s-6) var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-8); align-items: start; }
.ov-main { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.ov-job { font-size: var(--t-14); color: var(--ink-3); font-weight: 600; }
/* Said once, quietly: the upload was read as a resume but does not look like a typical one. */
.doc-warn { font-size: var(--t-13); color: var(--ink-3); border-left: 2px solid var(--line-strong); padding-left: var(--s-2); }
.ov-new { display: none; margin-left: var(--s-2); }
.verdict { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); max-width: 70ch; }
.verdict .tag { font-size: var(--t-13); padding: 2px var(--s-2); }
.verdict h1 { font-size: var(--t-31); line-height: 1.12; letter-spacing: -0.03em; width: 100%; }
.reasoning { color: var(--ink-2); font-size: var(--t-16); line-height: 1.5; }
.reasoning.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.verdict .linkish { margin-top: calc(-1 * var(--s-2)); }
.verdict.working .reasoning { color: var(--ink-3); }
.sh-head { height: 30px; width: 92%; margin-bottom: var(--s-2); }
.sh-head.short { width: 58%; margin-bottom: 0; }
.sh-line { height: 12px; width: 100%; margin: var(--s-1) 0; }
.sh-line.short { width: 60%; }
.sh-row { height: 32px; margin-bottom: var(--s-2); }
.ov-next { display: flex; gap: var(--s-3); }
.ov-next .btn { min-height: 44px; font-size: var(--t-16); padding: 0 var(--s-5); }

.reqs { display: flex; flex-direction: column; gap: var(--s-2); }
.reqs h2 { font-size: var(--t-16); letter-spacing: -0.01em; }
.rtable { width: 100%; border-collapse: collapse; font-size: var(--t-14); line-height: 1.35; }
.rtable th { text-align: left; font: 600 var(--t-12)/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--line-strong); }
.rtable td { padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable tbody tr:not(.r-more) { cursor: pointer; }
.rtable tbody tr:not(.r-more):hover { background: var(--line); }
.r-st { width: 76px; }
.r-req { width: 38%; }
.r-ev { color: var(--ink-2); }
.req-btn { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); padding: 0; border: 0; background: none; color: var(--ink); font: 600 var(--t-14)/1.35 var(--ui); text-align: left; cursor: pointer; }
.req-btn:hover span:first-child { text-decoration: underline; text-underline-offset: 2px; }
.req-btn[disabled] { cursor: default; }
.req-btn[disabled]:hover span:first-child { text-decoration: none; }
.tag.plus { font-weight: 500; color: var(--ink-3); padding: 0 6px; }
.r-more td { padding: 0 var(--s-3) var(--s-3) 88px; color: var(--ink); background: var(--warn-wash); }
.r-more td p { padding-top: var(--s-2); }

.ov-side { display: flex; flex-direction: column; gap: var(--s-4); }
.gcard { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.gcard-top { display: flex; flex-direction: column; gap: var(--s-3); }
.ring { position: relative; width: 96px; height: 96px; align-self: center; }
.ring .ring-svg { width: 100%; height: 100%; }
.ring .ring-track, .ring .ring-fill { stroke-width: 2.6; }
.ring .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 2.25rem/1 var(--ui); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.meters { display: flex; flex-direction: column; gap: var(--s-2); }
.meter { display: grid; grid-template-columns: 76px minmax(0, 1fr) 26px; gap: var(--s-3); align-items: center; font-size: var(--t-13); color: var(--ink-2); }
.meter .track { height: 6px; border-radius: 3px; background: var(--desk); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 3px; background: var(--pen); transition: width 400ms ease; }
.meter .fill.mid { background: var(--warn); }
.meter .fill.high { background: var(--good); }
.meter .n { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.gcard-gain { font-size: var(--t-14); color: var(--ink-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.tiles { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: var(--s-2) var(--s-4); border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.tile:first-child { border-top: 0; }
.tile:hover { background: var(--line); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.tile-top b { font-size: var(--t-14); font-weight: 700; }
.tile-desc { font-size: var(--t-13); color: var(--ink-3); line-height: 1.35; }
.absent { border: 1px solid var(--pen); border-radius: var(--r); padding: var(--s-3) var(--s-4); background: var(--pen-wash); display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--t-14); }
.absent h2 { font-size: var(--t-14); color: var(--pen); }

.ov-for { display: inline-flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-left: var(--s-2); font-weight: 400; }

/* ---------- resume mode: how the resume reads, before any job ----------
   The Overview's grid with the read on top, the score beside it, and the rest under the read.
   On a phone the score comes straight after the read. */
.rv { grid-template-areas: "top side" "rest side"; grid-template-rows: auto 1fr; row-gap: var(--s-5); }
.rv-top { grid-area: top; display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.rv-side { grid-area: side; }
.rv-rest { grid-area: rest; display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.rv-new { display: none; margin-left: var(--s-2); }
.rv-one { font-weight: 600; font-size: var(--t-20); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); width: 100%; }
.verdict.working .rv-one { display: flex; flex-direction: column; gap: var(--s-1); }
.rv-score-h { font-size: var(--t-14); letter-spacing: -0.01em; }
.rv-means { line-height: 1.4; }
.rv-glance, .rv-know { display: flex; flex-direction: column; gap: var(--s-2); max-width: 70ch; }
.rv-glance h2, .rv-know h2 { font-size: var(--t-16); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rv-glance-list { display: flex; flex-direction: column; margin-top: var(--s-1); border-top: 1px solid var(--line); }
.rv-row { border-radius: 0; border-bottom: 1px solid var(--line); font-family: var(--doc); font-size: var(--t-16); color: var(--ink); }
.rv-row::after { content: "Fix"; flex: 0 0 auto; font: 600 var(--t-13)/1 var(--ui); color: var(--k-verb); }
.rv-know-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.rv-know-list li { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: var(--t-14); color: var(--ink-2); }
.fix-back { font-size: var(--t-14); margin-bottom: calc(-1 * var(--s-2)); }

/* ---------- the Jobs tab ---------- */
.jobs-in { max-width: 760px; margin: 0 auto; padding: var(--s-6) var(--s-6) var(--s-8); display: flex; flex-direction: column; gap: var(--s-5); }
.jobs-head { display: flex; flex-direction: column; gap: var(--s-2); }
.jobs-head h1 { font-size: var(--t-31); letter-spacing: -0.03em; }
.jobs-back { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: var(--t-14); }

/* ---------- the resume paper (Fix and Tailor) ---------- */
#doc-pane { background: var(--desk); }
#doc-pane .pane-head { background: var(--desk); border-bottom-color: transparent; }
#doc-pane .pane-head h2 { font-weight: 600; color: var(--ink-2); font-size: var(--t-14); }
.pane-acts { display: inline-flex; align-items: center; gap: var(--s-2); flex: 0 0 auto; }
.pane-acts .acct-save-note { display: none; }
.pane-acts .btn { min-height: 34px; padding: 0 var(--s-3); font-size: var(--t-13); }
.figs-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font-size: var(--t-13); color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.figs-opt input { margin: 0; width: 16px; height: 16px; accent-color: var(--ink); }
.doc-msg { max-width: 760px; margin: 0 auto var(--s-2); font-size: var(--t-13); color: var(--good); font-weight: 600; }
.doc-msg.error { color: var(--pen); }
#doc-body { padding: 0 var(--s-5) var(--s-6); }
.doc-note { max-width: 760px; margin: var(--s-3) auto 0; }
.sheet { max-width: 760px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 56px 64px 64px; font: 400 1.0625rem/1.5 var(--doc); color: #16191d; }
.row { padding: 1px 0; border-radius: 2px; }
.ln { display: flex; gap: 0.55em; min-width: 0; }
.dot { flex: 0 0 auto; user-select: none; }
.txt { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; outline: none; border-radius: 2px; cursor: text; }
.txt:hover { background: #faf9f6; }
.txt:focus { background: #eef3ff; box-shadow: 0 0 0 3px #eef3ff; }
.row.name .txt { font: 700 var(--t-31)/1.15 var(--doc); letter-spacing: -0.01em; }
.row.contact { font-size: 0.9375rem; color: var(--ink-2); padding-bottom: var(--s-2); }
.row.head { padding-top: var(--s-4); padding-bottom: var(--s-1); }
.row.head .txt { font: 600 var(--t-13)/1.5 var(--ui); letter-spacing: 0.09em; text-transform: uppercase; }
.row.head .ln { border-bottom: 1px solid #16191d; padding-bottom: 2px; }
.row.role { padding-top: var(--s-2); }
.row.role + .row.role { padding-top: 0; }
.row.role .txt { font-weight: 600; }
.row.bullet .ln { padding-left: 0.35em; }
.row.centred .txt { text-align: center; }
/* An entry's date sits flush right on its line; it drops under the text on a phone. The
   separator typed before it ("|", ",", two spaces) is the gap, so it is not drawn. */
.row.dated .txt { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25em; }
.e-main { min-width: 0; }
.e-sep { display: none; }
.e-date { flex: 0 0 auto; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.txt b.fig { font-weight: 700; }
@media (max-width: 560px) {
  .row.dated .txt { display: block; }
  .e-date { display: block; white-space: normal; }
}
.txt.u { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.txt.u.missing { text-decoration-color: var(--k-missing); }
.txt.u.no_proof { text-decoration-color: var(--k-proof); text-decoration-style: dashed; }
.txt.u.weak_verb { text-decoration-color: var(--k-verb); text-decoration-style: dotted; }
.txt.u.vague, .txt.u.mirrors_jd { text-decoration-color: var(--k-vague); text-decoration-style: double; }
.txt.u.format { text-decoration-color: var(--k-format); text-decoration-style: wavy; }
.row.current .txt { background: var(--warn-wash); box-shadow: 0 0 0 3px var(--warn-wash), -6px 0 0 0 var(--ink); }
.row.flash .txt { animation: fa-flash 600ms ease-out 1; }
@keyframes fa-flash { from { background: #cfe8d7; box-shadow: 0 0 0 3px #cfe8d7; } to { background: transparent; box-shadow: 0 0 0 3px transparent; } }

/* ---------- the fix queue ---------- */
#side-fix .pane-head { padding: var(--s-2) var(--s-4); }
#side-fix .pane-head h2 { font-size: var(--t-20); font-variant-numeric: tabular-nums; }
#side-fix .pane-head .btn { min-height: 34px; padding: 0 var(--s-3); font-size: var(--t-13); }
#fix-body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-5); }
.fix-undo { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); background: var(--good-wash); color: var(--good); font-weight: 600; font-size: var(--t-14); }
.fcard { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); border-color: var(--line-strong); }
.fc-top { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.fc-where { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-12); color: var(--ink-3); }
.fc-top .gain { font-size: var(--t-14); }
.tag.kind { background: transparent; border-color: currentColor; }
.k-missing { color: var(--k-missing); } .k-no_proof { color: var(--k-proof); } .k-weak_verb { color: var(--k-verb); }
.k-vague, .k-mirrors_jd { color: var(--k-vague); } .k-format { color: var(--k-format); }
.fc-note { font-weight: 600; font-size: var(--t-16); line-height: 1.35; }
.fc-line { font: 400 1.0625rem/1.55 var(--doc); color: var(--ink); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.fc-line mark.ins { background: var(--good-wash); color: var(--good); font-weight: 600; border-radius: 2px; padding: 0 2px; }
.fc-blank input.blank { font: 600 var(--t-14)/1.2 var(--ui); padding: 3px 6px; margin: 0 2px; border: 1px solid var(--line-strong); border-bottom: 2px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); max-width: 100%; }
.fc-blank input.blank::placeholder { color: var(--ink-3); font-weight: 400; }
.fc-ask { font-weight: 600; font-size: var(--t-14); }
.fc-input { width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 var(--s-3); font: 400 var(--t-16) var(--ui); }
.fc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding-top: var(--s-1); }
/* The card for a figure: the question, the line with a place for the figure, the figures. */
.fc-q { font-size: var(--t-20); line-height: 1.25; letter-spacing: -0.01em; }
.fc-slot { font-size: var(--t-16); }
.fc-gap { display: inline-block; min-width: 2.4em; margin: 0 2px; padding: 0 4px; border-bottom: 2px solid var(--ink); text-align: center; font: 600 var(--t-14)/1.4 var(--ui); color: var(--ink-3); }
.fc-choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fc-choices .choice { min-height: 44px; min-width: 64px; padding: 0 var(--s-4); font-size: var(--t-16); font-weight: 600; font-variant-numeric: tabular-nums; border-color: var(--line-strong); }
.fc-choices .choice:hover { border-color: var(--ink); background: var(--desk); }
.fc-hint { margin-top: calc(-1 * var(--s-1)); }
.fc-other { display: flex; gap: var(--s-2); align-items: center; }
.fc-other .fc-num { flex: 0 1 180px; min-height: 44px; }
.fc-other .btn { min-height: 44px; }
.upnext-more { justify-content: center; color: var(--ink-2); font-size: var(--t-13); font-weight: 600; }
.upnext { display: flex; flex-direction: column; gap: var(--s-1); }
.upnext-h { display: flex; align-items: baseline; gap: var(--s-2); font-size: var(--t-13); color: var(--ink-3); font-weight: 600; letter-spacing: 0; padding: var(--s-3) var(--s-3) var(--s-1); }
.upnext-h:first-child { padding-top: 0; }
.upnext-n { font-variant-numeric: tabular-nums; font-weight: 400; }
.upnext-list { display: flex; flex-direction: column; }
.kdot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.shimmer-row { cursor: default; }
.shimmer-row:hover { background: none; }
.shimmer-row .sh-line { width: 80%; }

/* ---------- other views ---------- */
.account { max-width: 1200px; margin: 0 auto; padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); }
.site-foot { border-top: 1px solid var(--line); padding: var(--s-3) 0; font-size: var(--t-13); color: var(--ink-3); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.site-foot a { color: var(--ink-2); }

/* The page an email sign-in link opens */
.confirm { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.confirm-card { max-width: 520px; margin: 0 auto; padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.confirm-card h1 { font-size: var(--t-31); }
.confirm-card p { color: var(--ink-2); overflow-wrap: anywhere; }
.confirm-card form { margin-top: var(--s-2); }
.confirm-card .btn { width: 100%; min-height: 48px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .tab { padding: 0 var(--s-2); }
  .bar { gap: var(--s-2); padding: 0 var(--s-4); }
  .ov { gap: var(--s-6); padding: var(--s-5) var(--s-5) var(--s-4); grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1000px) {
  .start { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5); }
  .gets { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
@media (max-width: 1080px) and (min-width: 820px) {
  .work[data-tab="fix"], .work[data-tab="tailor"] { grid-template-columns: minmax(0, 1fr) 340px; }
  .sheet { padding: 40px 40px 48px; }
}
/* Under 820 px the tabs move to a bar at the bottom and the page scrolls as one column. */
@media (max-width: 819px) {
  body.in-work { height: auto; display: block; overflow: visible; padding-bottom: 64px; }
  .bar { padding: 0 var(--s-4); gap: var(--s-2); }
  .bar-new { display: none; }
  .tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 60px; padding: 0 var(--s-1) env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); gap: 0; }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 0 2px; border-bottom: 0; border-top: 2px solid transparent; font-size: var(--t-12); }
  .tab[aria-selected="true"] { border-top-color: var(--ink); }
  .tab-name { font-size: 0; }
  .tab-name::after { content: attr(data-short); font-size: var(--t-12); }
  .tab-status.todo { padding: 1px 5px; }
  .work { display: flex; flex-direction: column; height: auto; }
  .work > * { overflow: visible !important; }
  .work[data-tab="fix"] > #side-fix { order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .work[data-tab="tailor"] > #side-tailor { order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .pane-body { overflow: visible; }
  .ov { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) var(--s-4); }
  .ov-new, .rv-new { display: inline; }
  .rv { grid-template-areas: "top" "side" "rest"; grid-template-rows: none; }
  .rv-one { font-size: var(--t-16); }
  .rv-row { align-items: flex-start; }
  .rv-row .lr-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rv-row::after { padding-top: 3px; }
  .ov-for { display: flex; margin: var(--s-1) 0 0; }
  .jobs-in { padding: var(--s-5) var(--s-4) var(--s-6); }
  .jobs-head h1 { font-size: var(--t-25); }
  .verdict h1 { font-size: var(--t-25); }
  .ov-next .btn { width: 100%; white-space: normal; padding: var(--s-2) var(--s-4); }
  .r-req { width: auto; }
  .rtable thead { display: none; }
  .rtable tr:not(.r-more) { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--s-2); border-bottom: 1px solid var(--line); padding: var(--s-2) 0; }
  .rtable td { border: 0; padding: 0; }
  .rtable .r-ev { grid-column: 2; padding-top: 2px; font-size: var(--t-13); }
  .r-more td { padding: var(--s-2) var(--s-3); }
  .gcard-top { flex-direction: row; align-items: center; }
  .ring { width: 96px; height: 96px; flex: 0 0 auto; }
  .ring .num { font-size: 2.125rem; }
  .meters { flex: 1 1 auto; min-width: 0; }
  .meter { grid-template-columns: 64px minmax(0, 1fr) 24px; gap: var(--s-2); }
  #doc-pane .pane-head { flex-wrap: wrap; padding: var(--s-3) var(--s-4); }
  #doc-pane .pane-head h2 { flex: 1 1 100%; }
  .pane-acts { flex-wrap: wrap; flex: 1 1 100%; min-width: 0; }
  #doc-body { padding: 0 0 var(--s-5); }
  .doc-note, .doc-msg { padding: 0 var(--s-4); }
  .sheet { padding: var(--s-5) var(--s-4); border-left: 0; border-right: 0; font-size: 1rem; }
  .row.name .txt { font-size: var(--t-25); }
  .start { padding: var(--s-5) var(--s-4); }
  .pitch h1 { font-size: 2.125rem; }
  .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-form { padding: var(--s-4); }
  .account { padding: var(--s-5) var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- printing ----------
   Save as PDF prints only the resume, clean, with no marks. The prep sheet and the letter
   print on their own when their modules set body.print-prep or body.print-letter. */
@media print {
  @page { margin: 0.6in; }
  body, body.in-work { background: #fff; height: auto; display: block; overflow: visible; padding: 0; }
  .bar, .banner, .site-foot, dialog, .acct-banner { display: none !important; }
  .work, .work[data-tab] { display: block !important; height: auto; }
  .work > * { display: none !important; }
  body:not(.print-prep):not(.print-letter) .work > #doc-pane { display: block !important; background: #fff; }
  body:not(.print-prep):not(.print-letter) #doc-pane .pane-head, #doc-pane .doc-note, #doc-msg { display: none !important; }
  #doc-body { padding: 0; overflow: visible; }
  .sheet { border: 0; padding: 0; max-width: none; }
  .row { break-inside: avoid; }
  .txt, .txt.u { text-decoration: none !important; background: none !important; box-shadow: none !important; animation: none !important; }
  body.print-prep .work > #panel-prep { display: block !important; overflow: visible; }
  body.print-letter .work > #panel-letter { display: block !important; overflow: visible; }
}
