/* Etzava Career prototype — built from Ruled Brand Direction + Design Tokens v1.1 (2026-08-08).
   The tokens below are the spec, verbatim. */
:root{
  /* surfaces */
  --surface:#FAF7F1; --surface-convene:#F0EAE0; --card:#FFFEFB; --line:rgba(50,42,45,.13);
  /* ink */
  --ink:#322A2D; --ink-soft:#6E6467; --table-voice:#7E7376;
  /* brand */
  --brand-plum:#4A3238; --brand-camel:#B98A54; --brand-terracotta:#A9553E; --interactive:#8A4F6D;
  --user-bubble:#EBE2D3; --input-sand:#F5EFE3; /* v0.2.2: pale user-sand for the entry box (JF ruling) */
  --you-voice:#A13B55; /* v0.4.36 (JF): the user's voice in the printed record — deep rose, deliberately far from the Etzava plum and unclaimed by any advisor */
  /* advisor accents (all >=4.66:1 on --surface) */
  --adv-mentor:#8A4F6D; --adv-realist:#54708E; --adv-practitioner:#B0552F;
  --adv-honest_friend:#876209; --adv-anchor:#597055; --adv-long_view:#2F6B6B;
  --adv-skeptic:#66568F; --adv-craft:#8A5A33; --adv-cfo:#31684F;
  /* type */
  --font-display:'Source Serif 4',serif; --font-ui:'Inter',system-ui,sans-serif;
  /* radii */
  --r-card:12px; --r-bubble:14px; --r-tile:10px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--surface);color:var(--ink);font-family:var(--font-ui);font-size:16px;line-height:1.55;transition:background .6s}
.hidden{display:none!important}

/* ——— gate ——— */
.gate{position:fixed;inset:0;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;z-index:50}
.gate-mark{width:84px;height:auto}
.gate-lockup{display:flex;flex-direction:column;align-items:center;margin-bottom:10px}
.gate input{font:inherit;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-tile);background:var(--card);width:220px;text-align:center}
.gate button{font:inherit;font-weight:600;padding:10px 26px;border:0;border-radius:var(--r-tile);background:var(--brand-plum);color:#fff;cursor:pointer}
.gate-err{color:var(--brand-terracotta);font-size:13px;min-height:18px}

/* ——— app frame ——— */
.app{display:flex;flex-direction:column;height:100dvh;max-width:1080px;margin:0 auto}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid var(--line);flex-shrink:0}
.lockup{display:flex;align-items:center;gap:10px}
/* v0.2.1: brand header 50% larger (JF ruling); header + bench stay pinned — only the thread scrolls */
.mark{width:50px;height:auto}
.lockup-text{display:flex;flex-direction:column;align-items:center;line-height:1.05}
/* v0.4.34 (JF note 3): the creed beside the lockup — Life's tagline dress (.brand .tag: quiet italic) */
.tagline{font-size:14px;font-style:italic;color:var(--brand-plum);opacity:.85;margin-left:10px;align-self:center}
.wordmark{font-family:var(--font-display);font-weight:700;font-size:30px;color:var(--brand-plum)}
.subbrand{font-size:13px;letter-spacing:.32em;color:var(--brand-camel);font-weight:600;text-indent:.32em}
.file-btn{font:inherit;font-size:13px;font-weight:600;display:flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--line);border-radius:var(--r-tile);background:var(--card);color:var(--ink);cursor:pointer}
/* v0.4.24 (JF): hover explainer on the career-file pill — plain text from data-tip,
   below the button, right-aligned; also shows on keyboard focus. No hover on touch
   devices — there the drawer itself explains, one tap away. */
.file-btn{position:relative}
.file-btn::after{content:attr(data-tip);position:absolute;top:calc(100% + 9px);right:0;width:310px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px 13px;font-size:12.5px;font-weight:400;line-height:1.5;color:var(--ink);text-align:left;white-space:normal;box-shadow:0 5px 16px rgba(50,42,45,.12);opacity:0;pointer-events:none;transition:opacity .15s ease .3s;z-index:40}
.file-btn:focus-visible::after{opacity:1}
@media(hover:hover){.file-btn:hover::after{opacity:1}} /* v0.4.95: an iPhone keeps :hover after a tap, which left the tip open over the page */
/* v0.4.32 (JF): the same hover explainer on the save controls — identical dress,
   opening upward (they live at the bottom edge of the drawer / thread) */
.tip-up{position:relative}
.tip-up::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 9px);left:0;width:310px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px 13px;font-size:12.5px;font-weight:400;line-height:1.5;color:var(--ink);text-align:left;white-space:normal;box-shadow:0 5px 16px rgba(50,42,45,.12);opacity:0;pointer-events:none;transition:opacity .15s ease .3s;z-index:60}
.tip-up:focus-visible::after{opacity:1}
@media(hover:hover){.tip-up:hover::after{opacity:1}}
/* v0.2.3: version tag rendered the way Etzava Life does (.vnum), in the footer as there */
.vnum{font-size:10.5px;color:var(--ink-soft);font-weight:400;letter-spacing:.05em;margin-left:10px;font-family:ui-monospace,Menlo,Consolas,monospace;opacity:.8}
/* v0.2.3: topbar right column — the pill, with the account line slot beneath it
   (Life's #acctline: "email · sign out"; empty and hidden until accounts exist) */
.top-right{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
/* v0.4.88 (JF's F16 ruling): "Start a new session" beside "Your career file" */
.top-actions{display:flex;align-items:center;gap:12px}
.new-session-top{font:inherit;font-size:12.5px;color:var(--ink-soft);background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(hover:hover){.new-session-top:hover{color:var(--ink)}}
.acctline{font-size:10.5px;color:var(--ink-soft);white-space:nowrap}
.acctline:empty{display:none}
.acctline a{color:var(--ink-soft);text-decoration:underline;cursor:pointer}
/* v0.2.3: slim footer, the version's home (Life's © line, compact for the app frame) */
/* S143 (JF item 2): links first, on one unbreakable line, UNDERLINED so they read as
   links; the © + version pair wraps onto its own line when the width runs out. */
.foot{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:16px;row-gap:2px;font-size:11px;color:var(--ink-soft);opacity:.85;padding:6px 16px calc(8px + env(safe-area-inset-bottom))}
.foot .foot-links{white-space:nowrap}
.foot .foot-meta{white-space:nowrap}
.foot a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media(hover:hover){.foot a:hover{color:var(--ink)}}

/* ——— bench ——— */
.bench{display:flex;gap:9px;padding:10px 16px 6px;overflow-x:auto;flex-shrink:0;justify-content:safe center}
/* v0.2.2: the disclosure line lives under the icons, above the framing bottom line of the bench */
.bench-note{text-align:center;font-style:italic;font-size:12.5px;color:var(--ink-soft);padding:0 16px 10px;border-bottom:1px solid var(--line);flex-shrink:0}
.tile{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:96px;padding:8px 6px;border-radius:var(--r-tile);border:1px solid transparent;background:none;cursor:pointer;font:inherit}
.tile .glyph{width:38px;height:38px;display:flex;align-items:center;justify-content:center}
.tile .glyph svg{width:32px;height:32px}
.tile .tname{font-size:15px;color:var(--ink-soft);white-space:nowrap}
.tile.on{background:var(--card);border-color:var(--line)}
.tile.on .tname{color:var(--ink);font-weight:600}
.tile.off{opacity:.42}
@media(hover:hover){.tile:hover{opacity:1}}

/* ——— conversation ———
   v0.1.3: the thread and the input box scroll together — the input sits right under
   the latest line instead of pinned to the bottom of the screen. */
.scrollwrap{flex:1;overflow-y:auto;display:flex;flex-direction:column}
.conv{padding:18px 16px 48px;display:flex;flex-direction:column;gap:16px} /* v0.4.93 (JF, 2026-10-03): about two to three lines of space below the last thing in the thread, so an ask never sits against the input box or the bottom */
.conv>*{flex-shrink:0}
.turn-advisor{max-width:85%} /* v0.4.22 (JF): was 92% — every speaker-side element now reserves the same 15% margin on its far side: advisor and Etzava turns stop short of the right edge, the user bubble stops short of the left */
.turn-head{display:flex;align-items:center;gap:7px;margin-bottom:4px}
.turn-head .glyph svg{width:16px;height:16px;display:block}
.turn-name{font-family:var(--font-display);font-weight:600;font-size:16px}
.turn-body{white-space:pre-wrap}
.turn-body p+p{margin-top:.7em}
.turn-cont{border-left:2px solid;padding-left:12px;margin-left:1px} /* continuation: no re-naming a continuing speaker */
.turn-user{align-self:flex-end;max-width:85%;background:var(--user-bubble);border-radius:var(--r-bubble);padding:10px 14px}
.turn-table{align-self:center;text-align:center;max-width:88%;font-size:13px;color:var(--table-voice)}
.turn-table .tbl-actions{margin-top:7px;display:flex;gap:8px;justify-content:center}
/* v0.1.3: Etzava speaking to the user reads as a message in the thread, not a caption */
.turn-etzava{align-self:flex-start;max-width:85%;background:var(--card);border:1px solid var(--line);border-radius:var(--r-bubble);padding:10px 14px;font-size:15px;color:var(--ink)}
.turn-etzava .b-para+.b-para{margin-top:.7em}
.turn-etzava .tbl-actions{margin-top:8px;display:flex;gap:8px;justify-content:flex-start}
.tbl-btn{font:inherit;font-size:12px;font-weight:600;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--interactive);cursor:pointer}
.tbl-btn.quiet{color:var(--ink-soft);font-weight:400}
.thinking{display:flex;align-items:center;gap:8px;color:var(--ink-soft);font-size:13px;scroll-margin-bottom:8px;padding-bottom:8px} /* S143 (item 17): kept fully in view while active; v0.4.91 (JF, 2026-09-30): about two to three lines of space below it, so it never sits against the bottom — v0.4.93: most of that space now comes from .conv's bottom padding, under every last element */
/* S143 (JF item 1): the scroll-down cue — floating at the lower right, above the
   footer; visible only while content continues below the fold. */
.scroll-cue{position:fixed;right:16px;bottom:calc(64px + env(safe-area-inset-bottom));z-index:25;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--interactive);font-size:17px;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(50,42,45,.18)}
@media(hover:hover){.scroll-cue:hover{background:var(--surface-convene)}}
.spinner{width:14px;height:14px;border:2px solid var(--line);border-top-color:var(--brand-camel);border-radius:50%;animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ——— cards (spine, panels) ——— */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:14px 16px;max-width:560px}
.spine-card .sc-head{font-size:12px;color:var(--ink-soft);margin-bottom:8px}
.spine-card .sc-row{display:flex;gap:8px;padding:4px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.spine-card .sc-row:last-of-type{border-bottom:0}
.spine-card .sc-k{color:var(--ink-soft);min-width:96px;flex-shrink:0}
.spine-card .sc-edit{display:block;margin:8px 0 0 auto;font-size:12px;color:var(--interactive);background:none;border:0;cursor:pointer;font-weight:600;padding:0}

.panel{max-width:640px}
.panel .p-title{font-size:13px;font-weight:600;margin-bottom:10px}
.panel .p-vintage{color:var(--ink-soft);font-weight:400}
.panel table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.panel th{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-soft);font-weight:600;text-align:right;padding:3px 0 5px 12px;border-bottom:1px solid var(--line)}
.panel th:first-child{text-align:left;padding-left:0}
.panel td{font-size:13px;text-align:right;padding:6px 0 2px 12px;border-bottom:1px solid var(--line)}
.panel td:first-child{text-align:left;padding-left:0;padding-right:10px}
.panel .dispersion{font-size:11px;color:var(--ink-soft)}
.panel .cost-label{color:var(--ink-soft)} /* v0.4.0: education-cost card label column */
/* W5: the setting pay card — stacked rows, left-aligned, readable on a phone */
.panel .p-lead,.rv-panel .p-lead{font-size:12.5px;color:var(--ink-soft);margin:-4px 0 8px;line-height:1.45}
.panel .setting-table td,.rv-panel .setting-table td{text-align:left;padding:8px 0 7px;line-height:1.45}
.panel .set-label,.rv-panel .set-label{font-size:12px;font-weight:600;color:var(--ink-soft);margin-bottom:2px}
.panel .set-value,.rv-panel .set-value{font-size:13.5px}
.panel .set-src,.rv-panel .set-src{font-size:11px;color:var(--ink-soft);margin-top:3px}
.panel .absence{font-size:12px;color:var(--ink-soft);font-style:italic;padding:7px 0 2px;border-bottom:1px solid var(--line)}
/* v0.4.4 (JF): the pin link always sits on its own line below the foot text, never beside it */
.panel .p-foot{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin-top:9px;font-size:11px;color:var(--ink-soft)}
.panel .pin-btn{font:inherit;font-size:11px;color:var(--interactive);background:none;border:0;cursor:pointer;font-weight:600;padding:0;align-self:flex-end;white-space:nowrap}
.panel .p-foot>span:last-child:not(:first-child){align-self:flex-end} /* the "Pinned" replacement keeps the same spot */

/* ——— input ——— */
.inputbar{display:flex;gap:10px;align-items:flex-end;padding:12px 16px calc(14px + env(safe-area-inset-bottom));flex-shrink:0;background:var(--surface);width:85%;margin-left:auto} /* v0.4.22 (JF): the user's box mirrors the system's — Etzava's bubbles stop 15% short of the right, so the input bar starts 15% in from the left (width + margin-left:auto keep it flush right) */
.inputbar textarea{flex:1;font:inherit;padding:11px 14px;border:1px solid var(--line);border-radius:var(--r-bubble);background:var(--input-sand);resize:none;max-height:150px;outline:none} /* v0.2.2: sand tint */
.inputbar textarea:focus{border-color:var(--interactive)}
.inputbar button{width:40px;height:40px;border:0;border-radius:50%;background:var(--interactive);color:#fff;font-size:18px;cursor:pointer;flex-shrink:0}
.inputbar button:disabled{opacity:.4}

/* ——— drawer ——— */
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,94vw);background:var(--card);border-left:1px solid var(--line);z-index:40;display:flex;flex-direction:column;box-shadow:-8px 0 30px rgba(50,42,45,.08)}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);font-weight:600}
.drawer-head button{font-size:14px;background:none;border:0;cursor:pointer;color:var(--ink-soft)}
.drawer-body{flex:1;overflow-y:auto;padding:6px 18px 18px}
.shelf{margin-top:16px}
.shelf h3{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-soft);margin-bottom:7px}
.shelf .empty{font-size:13px;color:var(--ink-soft);font-style:italic}
.shelf .item{font-size:13.5px;padding:6px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:8px}
.shelf .item .k{color:var(--ink-soft)}
.shelf .item button{font-size:11px;color:var(--interactive);background:none;border:0;cursor:pointer;flex-shrink:0}
.drawer-foot{padding:12px 18px;border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap} /* S135b: save + reset side by side */
.quiet-btn{font:inherit;font-size:12.5px;color:var(--ink-soft);background:none;border:1px solid var(--line);border-radius:var(--r-tile);padding:7px 12px;cursor:pointer}
/* v0.4.34 (JF note 4): the three foot controls read as a hierarchy — save filled,
   record outlined in the interactive color, new-session a bare quiet text control */
#save-file{background:var(--interactive);border-color:var(--interactive);color:#fff;font-weight:600}
#record-pdf{color:var(--interactive);border-color:var(--interactive);font-weight:600}
#reset-session{border-color:transparent;text-decoration:underline;text-underline-offset:3px}

/* ——— overlays ——— */
.overlay{position:fixed;inset:0;background:rgba(50,42,45,.25);z-index:30}
.advisor-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(380px,92vw);background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:20px;z-index:45}
.advisor-card .ac-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.advisor-card .ac-head .glyph svg{width:24px;height:24px;display:block}
.advisor-card .ac-name{font-family:var(--font-display);font-weight:700;font-size:19px}
.advisor-card .ac-body{font-size:13.5px;color:var(--ink);margin-bottom:14px}
.advisor-card .ac-actions{display:flex;gap:8px}

/* ——— v0.1.1: staged reveal + drawer inline editing ——— */
.conv>*{animation:reveal .35s ease both}
@keyframes reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.turn-body strong{font-weight:600}
/* v0.1.3: an advisor's question to the user is pulled out, never buried */
.turn-ask{margin-top:12px;background:var(--surface-convene);border-left:3px solid var(--brand-camel);border-radius:8px;padding:9px 13px}
.turn-name{cursor:pointer}
@media(hover:hover){.turn-name:hover{text-decoration:underline}}
.think-mark{width:20px;height:20px;animation:spin 1.8s linear infinite}
.shelf .item .edit-input{flex:1;min-width:0;font:inherit;font-size:13px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.shelf .item .mini-btn{font:inherit;font-size:11px;color:var(--ink-soft);background:none;border:1px solid var(--line);border-radius:6px;padding:4px 9px;cursor:pointer;flex-shrink:0}
.shelf .item .mini-btn.save{color:#fff;background:var(--interactive);border-color:var(--interactive);font-weight:600}

/* ——— v0.4.3 (S126h): chapter titles — large script headings written into the
   thread at each stage transition; they replace the stage bar. Face: Caveat,
   provisional pending JF's eye (a script face is new to tokens v1.1). ——— */
.chapter{align-self:center;text-align:center;padding:10px 0 2px;max-width:94%}
.chapter-text{font-family:'Caveat',cursive;font-weight:700;font-size:34px;line-height:1.15;color:var(--brand-plum);text-wrap:balance} /* S144b (JF note 1): every chapter title guards against orphaned words */
.chapter.ch-record{align-self:flex-start;width:100%;max-width:680px} /* v0.4.86 (S229, W8 item g): centred over the record's own 680-pixel column (the record is flush left), not the page's 1,080 */
.chapter.ch-record .chapter-text{font-size:42px} /* S135 (JF item 9): "Now we dig in!" a step larger; the title itself stays centered (item 10) */
/* the write-in: revealed left-to-right as if being written */
.chapter-text.write-in{display:inline-block;clip-path:inset(0 100% 0 0);animation:writein 1.6s ease-out .15s forwards}
@keyframes writein{to{clip-path:inset(0 -2% 0 0)}}
/* the convening shifts the surface (tokens v1.1 --surface-convene), and it stays for the record stage */
body.convened{background:var(--surface-convene)}
body.convened .inputbar{background:var(--surface-convene)}
/* S133 (JF ruling): the picture-complete line under the input box — quiet page
   register, visible only on the convened surface. */
/* S135 (JF item 11): .under-input is GONE — the standing picture-complete line merged
   into the post-record CTA bubble copy. */
/* S135b: career-file save/restore — the entry restore affordance and the close card's
   save control. */
.restore-offer{margin-top:-6px}
.restore-offer .restore-err{margin-top:7px;font-size:12.5px;font-style:italic;color:var(--ink-soft)}
.close-card .close-actions{margin-top:10px;display:flex;justify-content:flex-start}
/* S135 (JF item 8): the readiness gate — the pause between the opening statements and
   the record's map. A register of its own: display serif, a step up in size and weight. */
.record-gate{align-self:center;text-align:center;max-width:88%;padding:8px 0 2px}
.record-gate .rg-text{font-family:var(--font-display);font-size:18px;font-weight:600;line-height:1.45;color:var(--brand-plum)}
.record-gate .rg-actions{margin-top:10px;display:flex;gap:8px;justify-content:center}
.record-gate .rg-btn{font-size:13px;padding:8px 18px}

/* S142: the pass boundary card — sign-in + checkout at the convening. The record-gate's
   ceremony (centered, display serif head) in a framed card, since it carries controls.
   Dormant until the server emits passgate (CAREER_PASS_ENFORCE). */
.pass-gate{align-self:center;max-width:88%;width:420px;background:var(--card);border:1px solid var(--line);border-top:4px solid var(--brand-camel);border-radius:var(--r-card);padding:18px 20px 16px;text-align:center}
.pass-gate .pg-head{font-family:var(--font-display);font-size:18px;font-weight:600;line-height:1.4;color:var(--brand-plum)}
.pass-gate .pg-body{margin-top:8px;font-size:13.5px;line-height:1.55;color:var(--ink)}
.pass-gate .pg-form{margin-top:12px;display:flex;flex-direction:column;gap:8px;align-items:center}
.pass-gate .pg-input{font:inherit;font-size:14px;width:100%;max-width:300px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);text-align:center}
.pass-gate .pg-input:focus{outline:none;border-color:var(--brand-camel)}
.pass-gate .pg-btn{font-size:13px;padding:9px 20px}
.pass-gate .pg-sub{font-size:12px;color:var(--ink-soft)}
.pass-gate .pg-sub-pay{font-size:13px;font-weight:600;color:var(--ink)} /* v0.4.91 (JF): "Click above to get started. Checkout opens…" in bold */
.pass-gate .pg-err{margin-top:6px;font-size:12.5px;color:var(--brand-terracotta);min-height:1em}

/* ——— v0.3.0: the process register — explicit, prominent (JF: bigger, bolder) ——— */
.turn-process{align-self:center;max-width:94%;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--brand-camel);border-radius:var(--r-card);padding:14px 18px;text-align:left}
.turn-process .tp-head{font-family:var(--font-display);font-weight:700;font-size:17px;color:var(--brand-plum);margin-bottom:6px}
.turn-process .tp-text{font-size:16px;font-weight:600;line-height:1.5;color:var(--ink)}
.turn-process .tp-q{margin-top:10px;font-family:var(--font-display);font-size:17px;font-style:italic;color:var(--brand-plum);border-top:1px solid var(--line);padding-top:10px}
/* S126P: the convening roster — each advisor's why on its own row, in the advisor's color */
/* S127 (JF item 3): roster rows indented under the lead line, glyph before the name */
.turn-process .tp-cast{margin-top:10px;margin-left:20px}
.turn-process .tpc-row{display:flex;align-items:flex-start;gap:8px;font-size:15px;font-weight:400;line-height:1.5;padding:4px 0}
.turn-process .tpc-row .glyph{flex-shrink:0;margin-top:3px}
.turn-process .tpc-row .glyph svg{width:15px;height:15px;display:block}
.turn-process .tpc-text{min-width:0}
.turn-process .tpc-name{font-family:var(--font-display);font-weight:700;font-size:15.5px}
.turn-process .tp-tail{margin-top:10px;font-size:15px;font-weight:600;border-top:1px solid var(--line);padding-top:10px}
.close-card .close-text{font-weight:400;font-size:15px}

/* ——— v0.4.6 (S126L, JF item 6): the decision record — the payoff, staged like one.
   Script headline (chapter register), readable type with room to breathe, accent
   bars on agreements/disagreements, the hinge as the centerpiece, and numbered
   hinge questions in the Etzava Life register. No more terms-and-conditions. ——— */
/* ——— v0.4.28 (JF ruling): the decision record sheds its box — thread sections with
   script titles, each in its own color. The .decision-record card styles below stay
   for the leaning card, which keeps the record's old dress. ——— */
.dr2-title{align-self:flex-start;text-align:left;font-family:'Caveat',cursive;font-weight:700;font-size:30px;line-height:1.15;padding:8px 0 0;max-width:94%} /* S135 (JF item 9): the three section titles sit flush left with the thread */
.dr2-agree{color:var(--brand-camel)}
.dr2-differ{color:var(--brand-terracotta)}
.dr2-turns{color:var(--interactive)}
.dr2-block{align-self:flex-start;width:100%;max-width:680px;text-align:left} /* S135 (JF items 9-10): record content flush left with the thread, like every speaker */
.dr2-item{font-size:15px;line-height:1.5;padding:2px 0 2px 12px;border-left:3px solid;margin:7px 0}
.dr2-item.agree{border-left-color:var(--adv-anchor)}
.dr2-item.differ{border-left-color:var(--brand-terracotta)}
.dr2-item.plain{border-left:0;padding-left:0}
.dr2-hinge{font-family:var(--font-display);font-size:18px;font-weight:600;line-height:1.45;color:var(--brand-plum);text-align:center;background:var(--surface-convene);border-radius:var(--r-tile);padding:14px 18px}
.dr2-narr{font-size:14.5px;font-style:italic;color:var(--ink-soft);margin:10px 0 2px;line-height:1.5}
.dr2-if{color:var(--brand-camel);font-weight:600} /* S143 (JF item 16): the If carries its own color, so the capitalized condition reads as deliberate */
.dr2-question{display:flex;gap:12px;align-items:baseline;padding:6px 0}
.dr2-qnum{font-family:'Caveat',cursive;font-weight:700;font-size:25px;line-height:1;color:var(--brand-camel);flex-shrink:0}
.dr2-qtext{font-family:var(--font-display);font-size:16.5px;font-weight:600;line-height:1.5}
.dr2-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-camel);font-weight:700;margin:14px 0 4px}
/* ——— v0.4.29 (JF ruling): the decision record's formatted view — opened from the
   career file's Decisions shelf; Download PDF rides the browser's print path. ——— */
.record-view{position:fixed;inset:0;z-index:70;background:var(--surface);overflow-y:auto;outline:none}
.rv-inner{max-width:720px;margin:0 auto;padding:40px 26px 60px;display:flex;flex-direction:column}
.rv-brand{display:flex;align-items:center;gap:9px}
.rv-brand img{width:30px;height:30px}
.rv-brand .wordmark{font-family:var(--font-display);font-weight:700;font-size:21px;color:var(--brand-plum)}
.rv-brand .subbrand{font-size:11px;letter-spacing:.22em;color:var(--brand-camel);font-weight:700}
.rv-title{font-family:'Caveat',cursive;font-weight:700;font-size:40px;line-height:1.1;color:var(--brand-plum);margin:22px 0 2px;text-align:center}
.rv-date{text-align:center;font-size:12.5px;color:var(--ink-soft);margin-bottom:10px}
.rv-q{font-family:var(--font-display);font-style:italic;font-size:18px;line-height:1.5;text-align:center;margin:8px auto 6px;max-width:600px}
.rv-inner .dr2-title{align-self:center}
.rv-inner .dr2-block{align-self:center}
/* S135 (JF item 5): the full-conversation appendix in the record view / PDF */
.rv-thread{margin-top:6px}
.rvt-row{display:flex;gap:10px;font-size:12.5px;line-height:1.55;padding:5px 0;border-bottom:1px solid var(--line)}
.rvt-row:last-child{border-bottom:0}
.rvt-who{font-weight:600;color:var(--ink-soft);flex-shrink:0;min-width:92px}
.rvt-text{white-space:pre-wrap;min-width:0}
/* v0.4.36 (JF): the user's rows sit left-aligned with the rest, in their own voice —
   the script-face "You" label and semibold dialog, both in --you-voice */
.rvt-who.rvt-you{font-family:'Caveat',cursive;font-weight:700;font-size:17px;line-height:1.2;color:var(--you-voice)}
/* v0.4.37 (JF): the dialog matches the name's face — the whole You row speaks in script */
.rvt-row.rvt-user .rvt-text{font-family:'Caveat',cursive;font-weight:600;font-size:17px;line-height:1.25;color:var(--you-voice)}
/* v0.4.63 (S145, JF): a data card in the appendix prints as its formatted table — the
   thread card's own table rules, scoped here to the record row (no card box) */
.rvt-row.rvt-panel{break-inside:avoid;page-break-inside:avoid}
.rv-panel{flex:1;white-space:normal;overflow-x:auto}
.rv-panel .p-title{font-size:12.5px;font-weight:600;margin-bottom:6px}
.rv-panel .p-vintage{color:var(--ink-soft);font-weight:400}
.rv-panel table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.rv-panel th{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-soft);font-weight:600;text-align:right;padding:3px 0 4px 12px;border-bottom:1px solid var(--line)}
.rv-panel th:first-child{text-align:left;padding-left:0}
.rv-panel td{font-size:12.5px;text-align:right;padding:5px 0 2px 12px;border-bottom:1px solid var(--line)}
.rv-panel td:first-child{text-align:left;padding-left:0;padding-right:10px}
.rv-panel .dispersion{font-size:11px;color:var(--ink-soft)}
.rv-panel .cost-label{color:var(--ink-soft)}
.rv-panel .absence{font-size:11.5px;color:var(--ink-soft);font-style:italic;padding:6px 0 2px;border-bottom:1px solid var(--line)}
.rv-panel .p-foot{margin-top:7px;font-size:11px;color:var(--ink-soft)}
@media (max-width:600px){ /* on a phone the label sits above the table so all four columns fit */
  .rvt-row.rvt-panel{flex-direction:column;gap:2px}
  .rv-panel th{font-size:9.5px;padding-left:8px}
  .rv-panel td{font-size:12px;padding-left:8px}
  .rv-panel .dispersion{font-size:10.5px}
}
.record-view{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.rv-foot{margin-top:28px;text-align:center;font-size:12.5px;color:var(--ink-soft);font-style:italic;border-top:1px solid var(--line);padding-top:14px}
.rv-actions{display:flex;justify-content:center;gap:12px;margin-top:22px}
.rv-actions button{font:inherit;font-size:13.5px;font-weight:600;padding:9px 18px;border-radius:999px;cursor:pointer;min-width:170px}  /* v0.4.34 (JF note 6): equal size */
.rv-download{border:0;background:var(--interactive);color:#fff}
.btn-ghost{border:1px solid var(--line);background:var(--card);color:var(--ink)}
@media print{
  body.rv-open>*:not(.record-view){display:none!important}
  body.rv-open{background:#fff} /* v0.4.63: no sand band after the record's last page when backgrounds print */
  body.rv-open .record-view{position:static;overflow:visible;background:#fff}
  body.rv-open .rv-actions{display:none}
}
/* v0.4.28 (JF): Q&A with an individual advisor threads under their opening statement */
.adv-thread{margin:6px 0 0 10px;border-left:2px solid var(--line);padding-left:12px}
.adv-thread:empty{display:none}
.th-q{background:var(--user-bubble);border-radius:var(--r-bubble);padding:8px 12px;margin:8px 0 6px auto;max-width:85%;width:fit-content;font-size:14.5px}
.th-a{border-left:3px solid var(--line);padding:2px 0 2px 12px;margin:6px 0;font-size:15px;line-height:1.5}
.th-a p+p{margin-top:.7em}
/* S143 (JF item 15): Etzava's lines on a directed-ask turn live in the thread too —
   the quiet facilitation register, indented with the answer they follow. */
.th-note{font-size:13px;color:var(--table-voice);margin:8px 0 6px;white-space:pre-wrap}
.adv-thread .thinking{margin:6px 0;padding-bottom:0} /* v0.4.91: inside a thread the space below is not needed */
.decision-record{max-width:680px;border-left:0;border-top:4px solid var(--brand-plum);padding:20px 22px 16px}
/* S135 (JF item 13): the leaning summary sheds its box and title — plain thread content,
   flush left; the leaning line leads, then the two sides with their colored bars. */
.leaning-card{border:0;background:none;padding:2px 0 0;align-self:flex-start}
.leaning-card .dr-q{font-style:normal;font-family:var(--font-display);font-weight:600;font-size:17px}
.decision-record .dr-head{font-family:'Caveat',cursive;font-weight:700;font-size:31px;line-height:1.1;color:var(--brand-plum)}
.decision-record .dr-q{font-family:var(--font-display);font-style:italic;font-size:17px;line-height:1.45;margin:8px 0 4px}
.decision-record h4{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-camel);font-weight:700;margin:18px 0 7px}
.decision-record .dr-pos{font-size:15px;line-height:1.5;padding:5px 0}
.decision-record .dr-name{font-family:var(--font-display);font-weight:600}
/* S126M: the per-advisor entry — engaging an advisor starts right at their line */
/* S127 (JF item 9): the ask-an-advisor box now lives under each opening statement
   (.adv-ask, inside .turn-advisor); the shared .dr-ask styles carry both homes. */
.dr-ask{display:flex;gap:7px;margin:1px 0 10px}
.dr-ask input{flex:1;min-width:0;font:inherit;font-size:13.5px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--input-sand);outline:none}
.dr-ask input:focus{border-color:var(--interactive)}
.dr-ask button{width:30px;height:30px;border:0;border-radius:50%;background:var(--interactive);color:#fff;font-size:14px;cursor:pointer;flex-shrink:0;align-self:center}
.turn-advisor .adv-ask{margin:8px 0 2px;max-width:420px}
/* S127 (narrated-sections ruling): Etzava's plain we-voice lines inside the record */
.decision-record .dr-narr{font-size:14.5px;font-style:italic;color:var(--ink-soft);margin:16px 0 2px;line-height:1.5}
.decision-record .dr-item{font-size:15px;line-height:1.5;padding:5px 0}
.decision-record .dr-agree .dr-item,.decision-record .dr-differ .dr-item{padding:2px 0 2px 12px;border-left:3px solid;margin:7px 0}
.decision-record .dr-agree .dr-item{border-left-color:var(--adv-anchor)}
.decision-record .dr-differ .dr-item{border-left-color:var(--brand-terracotta)}
/* the hinge — the centerpiece */
.decision-record .dr-hinge{margin:20px -6px;background:var(--surface-convene);border-radius:var(--r-tile);padding:16px 18px;text-align:center}
.decision-record .dr-hinge-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-camel);font-weight:700;margin-bottom:6px}
.decision-record .dr-hinge-text{font-family:var(--font-display);font-size:18px;font-weight:600;line-height:1.45;color:var(--brand-plum)}
/* hinge questions — numbered, prominent, answerable right in the thread */
.decision-record .dr-question{display:flex;gap:12px;align-items:baseline;padding:6px 0}
.decision-record .dr-qnum{font-family:'Caveat',cursive;font-weight:700;font-size:25px;line-height:1;color:var(--brand-camel);flex-shrink:0}
.decision-record .dr-qtext{font-family:var(--font-display);font-size:16.5px;font-weight:600;line-height:1.5}
.decision-record .dr-saved{margin-top:14px;font-size:12.5px;color:var(--ink-soft);font-style:italic;border-top:1px solid var(--line);padding-top:10px}

/* ——— S144: THE MILESTONE CLOSE — the session's visual milestone. Chapter-register
   script title, the user's first words in their own bubble register, the engine's
   evidence rows, the hinge in its ruled dress, one line of recognition, the numbered
   questions, the controls, the way back, and the family creed as the final line. ——— */
.milestone{align-self:center;width:100%;max-width:680px;display:flex;flex-direction:column;text-align:center;gap:2px;padding-bottom:6px}
.milestone .ms-title{align-self:center;padding:8px 0 0}
.milestone .ms-title .chapter-text{text-wrap:balance} /* S144b (JF note 1): no orphaned words in the title */
.ms-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-camel);font-weight:700;margin:18px 0 6px}
.ms-quote{align-self:center;max-width:92%;background:var(--user-bubble);border-radius:var(--r-bubble);padding:12px 18px;font-size:15.5px;line-height:1.55;text-wrap:pretty}
/* S144b (JF note 3): each leaving-with item is a TITLE + BODY pair — quiet grey head
   (one step down from the camel section labels), body below, air between items. */
/* S144c (JF notes 1+3): more air above each item, and the item heads take the
   terracotta — so Advisors heard / Published figures / Their map / What would most
   change the map each stand apart. The first item under a section label stays snug. */
.ms-item{display:flex;flex-direction:column;gap:3px;margin:20px 0 0;align-self:center;max-width:46em}
.ms-label + .ms-item{margin-top:4px}
.ms-h{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:var(--brand-terracotta);font-weight:700}
.ms-body{font-size:14.5px;line-height:1.55;text-wrap:pretty}
.ms-body.ms-q{font-family:var(--font-display);font-style:italic;font-size:15.5px}
.milestone .dr2-hinge{margin:6px auto 0;max-width:600px}
.ms-lead{margin:2px auto 8px;font-size:14.5px;line-height:1.55;color:var(--ink);max-width:40em;text-wrap:pretty} /* S144b (note 6): the one lead sentence into the questions */
.milestone .ms-questions{max-width:560px;margin:0 auto;text-align:left}
.ms-actions{justify-content:center;margin-top:50px;display:flex;gap:8px} /* S144g (JF): +~1.5 blank lines above the controls */
.ms-return{margin-top:12px;margin-bottom:4px;font-size:13.5px;line-height:1.5;color:var(--ink-soft);max-width:38em;align-self:center;text-wrap:pretty}

/* ——— v0.3.0: the mobile pass (JF item 1) — back to the tokens-v1.1 phone frame ——— */
.panel{overflow-x:auto} /* a 5-column table may scroll inside its card rather than break the layout */
@media (max-width:600px){
  /* compact chrome: the pinned header + bench were eating ~a third of the screen */
  .tagline{display:none} /* v0.4.34: like Life, the tagline yields on phones */
  .topbar{padding:7px 12px}
  .mark{width:34px}
  .wordmark{font-size:21px}
  .subbrand{font-size:10px;letter-spacing:.26em;text-indent:.26em}
  .file-btn{font-size:12px;padding:5px 10px;gap:5px}
  .top-actions{gap:8px} .new-session-top{font-size:11.5px}
  .acctline{font-size:9.5px}
  .bench{gap:4px;padding:7px 10px 4px;justify-content:flex-start;-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
  .tile{min-width:64px;max-width:76px;padding:5px 4px;gap:2px}
  .tile .glyph{width:26px;height:26px}
  .tile .glyph svg{width:22px;height:22px}
  .tile .tname{font-size:10.5px;white-space:normal;line-height:1.15;text-align:center}
  .bench-note{font-size:11px;padding:0 12px 7px}
  .chapter-text{font-size:28px}
  .chapter.ch-record .chapter-text{font-size:34px} /* S135: dig-in keeps its step up on phones */
  .record-gate .rg-text{font-size:16.5px}
  .conv{padding:12px 10px 44px;gap:13px} /* v0.4.93 */
  .turn-user,.turn-etzava,.turn-advisor{max-width:92%} /* v0.4.22 (JF): advisor was 100% on phones — same far-side reserve for every speaker, mobile included */
  .card{padding:12px 12px}
  .panel .p-title{font-size:12.5px}
  .panel th{font-size:9.5px;padding-left:8px}
  .panel td{font-size:12px;padding-left:8px}
  .panel .dispersion{font-size:10.5px}
  .turn-process{padding:12px 14px}
  .turn-process .tp-text{font-size:15px}
  .turn-process .tp-q{font-size:15.5px}
  .dr2-title{font-size:26px}
  .dr2-item{font-size:14.5px}
  .dr2-hinge{font-size:16.5px;padding:12px 14px}
  .dr2-qtext{font-size:15.5px}
  .decision-record{padding:16px 14px 12px}
  .decision-record .dr-head{font-size:27px}
  .decision-record .dr-q{font-size:16px}
  .decision-record .dr-pos,.decision-record .dr-item{font-size:14.5px}
  .decision-record .dr-hinge{margin:16px -2px;padding:13px 14px}
  .decision-record .dr-hinge-text{font-size:16.5px}
  .decision-record .dr-qtext{font-size:15.5px}
  .inputbar{padding:10px 10px calc(12px + env(safe-area-inset-bottom));gap:8px;width:92%} /* v0.4.22: matches the 92% mobile bubble reserve */
  .inputbar textarea{padding:9px 12px}
  .foot{font-size:10px;padding:5px 10px calc(6px + env(safe-area-inset-bottom))}
  /* S144: the milestone on phones */
  .ms-quote{font-size:14.5px;padding:10px 14px}
  .ms-body{font-size:13.5px}
  .ms-body.ms-q{font-size:14.5px}
  .ms-lead{font-size:13.5px}
}

/* ——— S129: the entry screen and the ruled résumé affordance ———
   The entry copy is the PAGE introducing itself, not a turn — quieter than Etzava's
   bubble register, set apart above the opening chapter so it never reads as speech. */
.entry{align-self:center;max-width:640px;text-align:center;padding:6px 4px 2px}
.entry-line{font-size:14.5px;line-height:1.55;color:var(--ink-soft);margin:0 0 8px}
.entry-line:first-child{font-size:16px;color:var(--ink);font-weight:500}
.entry-line:last-child{margin-bottom:0}
/* v0.4.15: the quiet link to the "How Etzava works" page, under the entry copy */
.entry-how{margin:10px 0 0;font-size:13px}
.entry-how a{color:var(--interactive);font-weight:600;text-decoration:none}
@media(hover:hover){.entry-how a:hover{text-decoration:underline}}
/* v0.4.32 (JF note 4): the restore control is a link in the entry register now */
.restore-offer{margin:2px 0 0;text-align:center}
.restore-offer a{cursor:pointer}
/* the upload sits under the opener, in the quiet Table register (§3.1: "beside it") */
.resume-offer{padding-top:2px}
.resume-offer .resume-note{margin-top:6px;font-size:11.5px;color:var(--ink-soft);opacity:.9}
@media (max-width:600px){
  .entry{padding:2px 6px}
  .entry-line{font-size:13.5px}
  .entry-line:first-child{font-size:15px}
}
/* S130: the résumé row carries two controls (replace / remove) */
.shelf .item .rs-acts{display:flex;gap:10px;flex-shrink:0}

/* W4 (S221): the leaning card's one-line check, and Check again's answer */
.dr-check{font-size:14px;line-height:1.5;color:var(--ink);background:var(--surface-convene);border-radius:var(--r-tile);padding:8px 12px;margin:6px 0 4px}
.check-note{font-size:13px;color:var(--ink-soft);margin-top:6px}
.revise-row{align-self:flex-start}
.pay-confirming .pass-gate{display:none} /* W4 (S221): the pass card steps aside while a Stripe return is confirmed */

/* ——— v0.4.95 (2026-10-10, JF's rulings on the mobile cleanup list) ———
   No text ends on a single word: pretty on the page body, balance on headings, labels and
   buttons. Hover effects only on devices that hover (above). On phones: every advisor name on
   one line, so "Honest Friend" no longer makes its tile taller than the rest; a finger-sized
   target around "Start a new session" with the same look; the footer at 11px with room to tap. */
body{text-wrap:pretty}
h1,h2,h3,h4,label,button,.btn,th{text-wrap:balance}
@media (max-width:600px){
  .tile{max-width:88px}
  .tile .tname{white-space:nowrap}
  .bench{gap:10px} /* names on one line run wider; keep them apart */
  .new-session-top{padding:8px 2px;margin:-8px -2px}
  .foot{font-size:11px}
  .foot a{display:inline-block;padding:5px 0}
}
