/* Hylē v4 · home — Compose (DIRECTION-R2 §1): one-line app head, the composer first, live jobs beside it,
   the study you were in with its real figure, then flat rows. No card in card; one field moment (the running row edge). */

/* ---------- Head ---------- */
/* The system live rule's sheen (::after, left → 100%) widens the document; clip it here until the system does (SYSTEM-REQUESTS). */
.app { overflow-x: clip; }
.home-head { padding: 16px 0 18px; }
.hm-units svg { width: 14px; height: 14px; }

/* ---------- Section heads (flat, no boxes) ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 8px 10px; border-bottom: 1px solid var(--hairline); }
.sec-title { font-size: var(--fs-ui); font-weight: 600; color: var(--ink); letter-spacing: var(--ls-ui); }
.sec-meta { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sec-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); font-weight: 500; color: var(--accent-ink); }
.sec-link svg { width: 14px; height: 14px; transition: transform var(--d-2) var(--ease-out); }
.sec-link:hover svg { transform: translateX(2px); }

/* ---------- Composer ---------- */
.home-top { align-items: start; gap: 32px; }
.home-composer form { padding: 22px 22px 14px 26px; }
.home-composer textarea { display: block; width: 100%; min-height: 60px; max-height: 240px; resize: none; border: 0; background: transparent; padding: 2px 0; font-size: var(--fs-heading); line-height: 1.45; letter-spacing: var(--ls-heading); color: var(--ink); }
.home-composer textarea::placeholder { color: var(--ink-3); transition: color var(--d-3); }
.home-composer textarea.is-previewing::placeholder { color: var(--accent-ink); }
.home-composer textarea:focus-visible { outline: none; }
.composer-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.composer-opts { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.composer-opts .select.compact .select-trigger { width: auto; background: var(--sunken); border-color: transparent; box-shadow: none; }
.composer-opts .select.compact .select-trigger:hover { background: var(--sunken-2); }
.composer-opts .chev-lead { width: 15px; height: 15px; color: var(--ink-2); }
.opt-field .listbox { width: 260px; }
.opt-depth .listbox { width: 268px; }
.opt-2 { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; }
.opt-2 b { font-weight: 600; }
.opt-2 span { font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); }
.option:has(.opt-2) { min-height: 52px; align-items: center; }
.sources-btn { min-height: var(--ctl-md); border-radius: var(--r-md); background: var(--sunken); border-color: transparent; color: var(--ink); font-size: var(--fs-ui); }
.sources-btn:hover { background: var(--sunken-2); border-color: transparent; }
.sources-btn svg { width: 15px; height: 15px; color: var(--ink-2); }
.sources-menu { left: auto; right: 0; bottom: calc(100% + 8px); width: 300px; transform-origin: bottom right; }
.src-row { display: flex; width: 100%; min-height: 40px; padding: 0 10px; border-radius: var(--r-sm); }
.src-row:hover { background: var(--sunken); }
.composer-start { flex: none; border-radius: var(--r-md); gap: 10px; }
.kbd-pair { display: inline-flex; gap: 3px; }
.composer-start .kbd { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; }
.arrow-up { width: 16px; height: 16px; transition: transform var(--d-3) var(--ease-out); }
.composer-start:hover .arrow-up { transform: translateY(-2px); }
.starters { flex-wrap: nowrap; gap: 6px; padding: 12px 22px 14px 26px; overflow: hidden; }
.starters > * { flex: none; }
.starters-label { margin-right: 6px; font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- Running now (beside the composer) ---------- */
.home-live { min-width: 0; padding-top: 6px; }
.job-list .job { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; padding: 14px 8px 14px 12px; }
.job .dot { align-self: start; margin-top: 7px; }
.job-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-title:hover { text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.job-stage { color: var(--accent-ink); font-weight: 500; }
.job-pct { align-self: start; padding-top: 1px; font-weight: 600; color: var(--ink); }
.job-bar { grid-column: 2 / -1; height: 4px; }
.job.is-queued .list-row-meta .t-mono { color: var(--ink-3); }
.job.is-new { background: var(--accent-tint); }
.job.is-done .job-bar > span { background: var(--success); }
.job.is-failed .job-bar > span { background: var(--danger); }
.job.is-failed .job-stage { color: var(--danger); }
.home-lower:has(.home-cited[hidden]) { grid-template-columns: minmax(0, 1fr); }
.job .alert { grid-column: 2 / -1; font-size: var(--fs-small); padding: 10px 12px; }
.job .job-acts { grid-column: 2 / -1; display: flex; gap: 8px; }
.jobs-empty { padding: 16px 8px; }

/* ---------- Resume: the study you were in, with its real figure ---------- */
.resume { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; margin-top: 36px; padding: 30px 32px 28px; border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--e-1); }
.resume-copy { display: flex; flex-direction: column; min-width: 0; }
.resume-kicker { display: flex; align-items: center; gap: 8px; font-size: var(--fs-ui); color: var(--ink-2); }
.resume-kicker a { font-weight: 600; color: var(--ink); }
.resume-kicker a:hover { text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.resume-claim { margin-top: 14px; font-size: var(--fs-heading); line-height: 1.42; letter-spacing: var(--ls-heading); font-weight: 500; color: var(--ink); text-wrap: pretty; }
.resume-claim .cite { vertical-align: 2px; }
.resume-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: var(--fs-small); color: var(--ink-2); }
.resume-facts li { display: inline-flex; align-items: center; gap: 6px; }
.resume-facts svg { width: 14px; height: 14px; color: var(--ink-3); }
.resume-facts .gap, .resume-facts .gap svg { color: var(--warning); }
.resume-gap { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 12px 14px; border: 1.5px dashed var(--warning-line); border-radius: var(--r-md); background: rgba(225,145,54,.05); font-size: var(--fs-desc); line-height: var(--lh-desc); color: var(--ink-2); }
.resume-gap svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--warning); }
.resume-gap span:first-of-type { flex: 1; }
.resume-gap b { font-weight: 600; color: var(--ink); margin-right: 4px; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.resume-actions .btn { border-radius: var(--r-md); }

/* Forest plot: HTML marks positioned on the ratio axis (0.45 → 1.30), so labels stay at reading size at any width. */
.fp { --x0: .45; --span: .85; --lab: 120px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fp-cap { display: flex; flex-direction: column; gap: 4px; }
.fp-cap b { font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }
.fp-plot { position: relative; }
.fp-grid { position: absolute; left: var(--lab); right: 12px; top: 0; height: 176px; pointer-events: none; }
.fp-grid span { position: absolute; top: 0; bottom: 0; left: calc((var(--x) - var(--x0)) / var(--span) * 100%); width: 1px; background: var(--hairline); }
.fp-grid .is-null { width: 0; background: none; border-left: 1.5px dashed var(--ink-4); }
.fp-rows { position: relative; display: flex; flex-direction: column; }
.fp-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; height: 44px; padding-right: 12px; border-radius: var(--r-sm); text-align: left; transition: background var(--d-2); -webkit-tap-highlight-color: transparent; }
.fp-row:hover, .fp-row.is-on, .fp-row:focus-visible { background: rgba(20,20,19,.04); }
.fp-label { padding-left: 10px; font-size: var(--fs-ui); color: var(--ink); white-space: nowrap; }
.fp-track { position: relative; height: 100%; }
.fp-ci { position: absolute; top: 50%; height: 2px; margin-top: -1px; left: calc((var(--l) - var(--x0)) / var(--span) * 100%); width: calc((var(--h) - var(--l)) / var(--span) * 100%); background: var(--success); border-radius: 1px; transform-origin: calc((var(--v) - var(--l)) / (var(--h) - var(--l)) * 100%) 50%; }
.fp-ci::before, .fp-ci::after { content: ""; position: absolute; top: -5px; width: 2px; height: 12px; border-radius: 1px; background: inherit; }
.fp-ci::before { left: 0; } .fp-ci::after { right: 0; }
.fp-pt { position: absolute; top: 50%; left: calc((var(--v) - var(--x0)) / var(--span) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 2px; background: var(--success); box-shadow: 0 0 0 2.5px var(--raised); transform: rotate(45deg); transition: transform var(--d-3) var(--ease-out); }
.fp-row:hover .fp-pt, .fp-row.is-on .fp-pt { transform: rotate(45deg) scale(1.25); }
.fp-row.is-gap .fp-ci { background: repeating-linear-gradient(90deg, var(--brand-orange) 0 6px, transparent 6px 10px); }
.fp-row.is-gap .fp-ci::before, .fp-row.is-gap .fp-ci::after { background: var(--brand-orange); }
.fp-row.is-gap .fp-pt { background: var(--brand-orange); }
.fp-axis { position: relative; height: 20px; margin: 8px 12px 0 var(--lab); }
.fp-axis span { position: absolute; top: 0; left: calc((var(--x) - var(--x0)) / var(--span) * 100%); transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-3); white-space: nowrap; }
.fp-dir { position: relative; height: 20px; margin: 4px 12px 0 var(--lab); font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.fp-dir span { position: absolute; top: 0; }
.fp-dir span:first-child { right: calc(100% - (1 - var(--x0)) / var(--span) * 100% + 10px); }
.fp-dir span:last-child { left: calc((1 - var(--x0)) / var(--span) * 100% + 10px); }
.fp-read { min-height: 44px; padding: 10px 12px; border-radius: var(--r-md); background: var(--sunken); font-size: var(--fs-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fp-read b { font-weight: 600; color: var(--ink); }
.fp-read .gap-txt { color: var(--warning); font-weight: 500; }

/* ---------- Lower: recent + cited ---------- */
.home-lower { margin-top: 40px; gap: 32px; }
.home-recent, .home-cited { min-width: 0; }
.hr-row .dot, .cited .cite { align-self: center; }
.hr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hr-row .list-row-meta { gap: 14px; }
.hr-field { width: 120px; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.hr-when { width: 72px; text-align: right; }
.hr-row .badge { min-width: 60px; justify-content: center; }
a.list-row:hover .list-row-title { text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.cited .list-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.cited svg { width: 15px; height: 15px; color: var(--ink-3); }
.recent-empty { padding: 36px 16px 24px; }
.recent-empty .t-title { margin-top: 6px; }

/* ---------- States ---------- */
.is-loading-state [data-reveal] { visibility: visible !important; }
.sk-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 80px; align-items: center; gap: 16px; min-height: 64px; padding: 12px 8px; border-bottom: 1px solid var(--hairline); }
.sk-col { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 1180px) {
  .home-top, .home-lower { gap: 28px; }
  .resume { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .home-head { padding: 4px 0 12px; }
  .home-head .app-head-meta .hm-units { display: none; }
  .home-composer form { padding: 14px 14px 12px 16px; }
  .home-composer textarea { font-size: var(--fs-body); line-height: 1.5; min-height: 48px; }
  .composer-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "field field depth" "src go go"; gap: 8px 6px; margin-top: 10px; }
  .composer-opts { display: contents; }
  .opt-field { grid-area: field; min-width: 0; } .opt-depth { grid-area: depth; }
  .composer-opts .select.compact .select-trigger { width: 100%; }
  .opt-depth .chev-lead { display: none; }
  .composer-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sources-btn { grid-area: src; min-width: 56px; min-height: 44px; padding: 0 12px; justify-content: center; gap: 6px; }
  .sources-btn .src-word { display: none; }
  .sources-menu { left: 0; right: auto; width: min(300px, calc(100vw - 48px)); transform-origin: bottom left; }
  .composer-start { grid-area: go; justify-content: center; min-height: 44px; }
  .kbd-pair { display: none; }
  .starters { flex-wrap: nowrap; overflow-x: auto; padding: 8px 16px 10px; scrollbar-width: none; scroll-snap-type: x proximity;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .starters::-webkit-scrollbar { display: none; }
  .starters > * { flex: none; scroll-snap-align: start; }
  .starters-label { display: none; }
  .home-top { gap: 0; }
  .home-live { margin-top: 28px; padding-top: 0; }
  .resume { margin-top: 28px; padding: 20px 16px 18px; gap: 22px; }
  .resume-claim { font-size: var(--fs-lead); margin-top: 10px; }
  .resume-actions { padding-top: 18px; }
  .resume-actions .btn { flex: 1 1 auto; }
  .fp { --lab: 104px; }
  .fp-label { font-size: var(--fs-small); padding-left: 6px; }
  .fp-row { padding-right: 8px; } .fp-grid { right: 8px; } .fp-axis, .fp-dir { margin-right: 8px; }
  .home-lower { margin-top: 28px; gap: 28px; }
  .hr-field { display: none; }
  .hr-row .list-row-meta { gap: 10px; }
  .hr-when { width: auto; text-align: left; }
  .sec-head { padding: 0 0 10px; }
  .job-list .job { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 10px; padding-right: 0; }
  .job-list .job .list-row-meta { grid-column: auto; }
  .jobs-empty { padding: 14px 0; }
  /* 44px hit areas without moving the layout */
  .job-title { display: flex; align-items: center; min-height: 44px; margin: -10px 0; }
  .resume-kicker a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
  .sec-link { min-height: 44px; margin: -12px 0; }
}

/* =====================================================================================================
   Round 4B · home: one column of decreasing weight. The composer (raised) → running jobs as one quiet strip under it →
   Continue, the study you were in with its sources and its figure (the page's object) → recent research.
   ===================================================================================================== */
.home-top { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.home-composer { box-shadow: var(--e-2); transition: box-shadow var(--d-3) var(--ease-out); }
.home-composer:focus-within { box-shadow: var(--e-2), 0 0 0 1.5px var(--accent); }
/* Running now: a strip, label left, one cell per job */
.home-live { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: start; gap: 0 24px; margin-top: 14px; padding: 14px 4px 12px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hl-head { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.hl-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.hl-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.hl-sub { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hl-link { margin-top: 2px; align-self: flex-start; }
.home-live .job-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
.home-live .jobs-empty { grid-column: 2; padding: 4px 0; }
.job-list .job { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; min-height: 0; padding: 0 0 4px 12px; border-bottom: 0; }
.job-list .job:hover { background: transparent; }
.job-list .job.is-running::before { top: 2px; bottom: 6px; }
.job .dot { margin-top: 7px; }
.job-bar { grid-column: 2 / -1; height: 4px; }
/* Continue */
.resume { margin-top: 28px; padding: 28px 32px 26px; box-shadow: var(--e-1); }
.resume-kicker { flex-wrap: wrap; }
.resume-run { margin-left: auto; color: var(--ink-3); }
.resume-src { display: flex; flex-direction: column; margin-top: 20px; border-top: 1px solid var(--hairline); }
.resume-src li { border-bottom: 1px solid var(--hairline); }
.resume-src a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px; color: var(--ink); transition: background var(--d-2); }
.resume-src a:hover { background: rgba(20,20,19,.025); }
.resume-src a:hover b { text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.rsrc-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rsrc-t b { font-size: var(--fs-ui); font-weight: 600; }
.rsrc-t > span { display: inline-flex; align-items: flex-start; gap: 6px; font-size: var(--fs-small); color: var(--ink-2); }
.resume-src > li > a > svg { width: 15px; height: 15px; color: var(--ink-3); }
.resume-src .is-reading .rsrc-t > span { color: var(--accent-ink); }
.resume-src .is-gap .rsrc-t > span { color: var(--warning); }
.resume-src .is-gap .rsrc-t svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.resume-actions { padding-top: 22px; }
/* Recent research: full width; a ready study leads with its own figure, drafts say what they are */
.home-lower { margin-top: 40px; }
.hr-row { grid-template-columns: 88px minmax(0, 1fr) auto; min-height: 76px; }
.hr-mark { display: grid; place-items: center; width: 88px; height: 56px; color: var(--ink-3); }
.hr-mark svg { width: 18px; height: 18px; }
.hr-mark .cf-svg { width: auto; height: auto; }
.hr-fig { border-radius: 8px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); }
.hr-kind { min-width: 72px; color: var(--ink-2); }
.hr-row .badge { min-width: 72px; }

@media (max-width: 1180px) {
  .home-live { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hl-head { flex-direction: row; align-items: baseline; gap: 12px; }
  .hl-link { margin: 0 0 0 auto; }
}
/* Phone: task first — ask, then continue, then what is running, then the rest */
@media (max-width: 640px) {
  .home { display: flex; flex-direction: column; }
  .home-top { display: contents; }
  .home-head { order: 0; } .home-composer { order: 1; } .resume { order: 2; } .home-live { order: 3; } .home-lower { order: 4; }
  .home-live { margin-top: 28px; padding: 14px 0 12px; }
  .hl-sub { display: none; }
  .home-live .job-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sources-btn .src-word { display: inline; }
  .composer-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .starters { flex-wrap: wrap; overflow: visible; -webkit-mask: none; mask: none; gap: 8px; padding: 10px 14px 14px; }
  .starters .chip-more { display: none; }
  .resume { margin-top: 20px; }
  .resume-kicker .resume-run, .resume-kicker .rk-sep { display: none; }
  .resume-kicker a { flex-basis: 100%; }
  .resume-src a { min-height: 56px; }
  .hr-row { grid-template-columns: 64px minmax(0, 1fr); }
  .hr-mark { width: 64px; height: 44px; }
  .hr-fig .cf-svg { width: 58px; height: auto; }
}

.home-live .job-list { align-items: start; }
.hr-mark[data-f="bio"] { color: var(--field-bio); } .hr-mark[data-f="quant"] { color: var(--field-quant); } .hr-mark[data-f="policy"] { color: var(--field-policy); }

/* =====================================================================================================
   Audit-fix B · home: landing-grade objects on the paper field. Every card leads with a real figure (the study's own
   rows) or a drawn specimen of the figure its template plans; field glyphs replace bare dots; one card token throughout.
   ===================================================================================================== */
.home-head { padding: 14px 0 18px; }
.home-head .app-head-title { flex-direction: column; align-items: flex-start; gap: 6px; }
.home-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hm-units { display: none; align-items: center; gap: 8px; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: var(--fs-small); }
.hm-units b { font-weight: 600; color: var(--ink); }
.hm-track { position: relative; width: 64px; height: 4px; border-radius: 4px; background: #e6e2d8; overflow: hidden; }
.hm-track > span { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange)); }
@media (max-width: 1024px) { .hm-units { display: inline-flex; } .home-head .app-head-meta .hm-units { display: inline-flex; } }

/* Composer */
.home-composer { border-radius: 18px; box-shadow: 0 1px 2px rgba(20,20,19,.04), 0 14px 34px -18px rgba(11,24,48,.24), 0 0 0 1px rgba(20,20,19,.08); }
.home-composer:focus-within { box-shadow: 0 1px 2px rgba(20,20,19,.04), 0 14px 34px -18px rgba(11,24,48,.24), 0 0 0 1px rgba(16,108,202,.45), 0 0 0 4px var(--accent-tint); }
.composer-opts .select.compact .select-trigger, .sources-btn { height: 36px; min-height: 36px; font-size: var(--fs-small); font-weight: 500; }
.composer-start { height: 40px; padding: 0 14px 0 16px; font-weight: 600; transition: background var(--d-2), color var(--d-2), box-shadow var(--d-2); }
.composer-start[aria-disabled="true"] { background: #e9e6dd; color: #57534b; box-shadow: none; cursor: not-allowed; opacity: 1; pointer-events: auto; }
.composer-start[aria-disabled="true"] .kbd { background: rgba(20,20,19,.06); color: #57534b; border-color: rgba(20,20,19,.1); }
.composer-start[aria-disabled="true"]:hover { background: #e3dfd4; }

/* Starters: three worked templates, each with its lead figure */
.starters { display: block; padding: 14px 20px 18px; border-top: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(243,241,234,.55), rgba(243,241,234,.15)); border-radius: 0 0 18px 18px; overflow: visible; }
.starters-label { margin: 0 0 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.starter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .8fr); gap: 10px; }
.starter { --fg: var(--ink-2); display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 68px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--raised); box-shadow: 0 1px 2px rgba(20,20,19,.05), 0 0 0 1px rgba(20,20,19,.07); transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-3); }
.starter[data-f="bio"] { --fg: var(--field-bio); } .starter[data-f="quant"] { --fg: var(--field-quant); } .starter[data-f="policy"] { --fg: var(--field-policy); }
.starter:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,20,19,.05), 0 12px 26px -14px rgba(11,24,48,.28), 0 0 0 1px color-mix(in srgb, var(--fg) 35%, transparent); }
.starter:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.starter-fig { display: block; height: 52px; padding: 3px 4px; border-radius: 9px; background: color-mix(in srgb, var(--fg) 9%, #fbfaf6); }
.starter-fig .spx { height: 100%; aspect-ratio: auto; }
.starter-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.starter-t b { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); }
.starter-t > span { font-size: 12px; line-height: 16px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.starter-all { grid-template-columns: 40px minmax(0, 1fr) auto; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(20,20,19,.1); }
.starter-all-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, rgba(18,117,216,.14), rgba(225,145,54,.16)); color: var(--ink); }
.starter-all-ic svg { width: 18px; height: 18px; }
.starter-go { width: 16px; height: 16px; color: var(--ink-2); transition: transform var(--d-2); }
.starter-all:hover .starter-go { transform: translateX(3px); }

/* Running now: its own tinted surface; identical cells */
.home-live { grid-template-columns: 180px minmax(0, 1fr); gap: 0 28px; margin-top: 18px; padding: 16px 20px 14px; border: 0; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62)); box-shadow: 0 0 0 1px rgba(20,20,19,.07), 0 6px 18px -12px rgba(11,24,48,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hl-title { font-size: 12px; letter-spacing: .08em; color: var(--accent-ink); }
.hl-title::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); animation: hl-pulse 1.8s ease-in-out infinite; }
@keyframes hl-pulse { 50% { box-shadow: 0 0 0 6px rgba(18,117,216,.04); } }
@media (prefers-reduced-motion: reduce) { .hl-title::before { animation: none; } }
.hl-sub { font-size: var(--fs-small); color: var(--ink-2); }
.home-live .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.job-list .job { grid-template-columns: 32px minmax(0, 1fr) 56px; column-gap: 12px; row-gap: 6px; padding: 0; align-items: start; }
.job-list .job.is-running::before { display: none; }
.job .field-glyph, .job-ic { --s: 32px; margin-top: 1px; }
.job-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--sunken); color: var(--ink-2); }
.job-ic svg { width: 16px; height: 16px; }
.job-title-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.job-title-row .job-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.job-id { flex: none; font-size: 11px; color: var(--ink-3); }
.job .list-row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 18px; padding-bottom: 1px; }
.job.is-queued .job-title { color: var(--ink-2); font-weight: 500; }
.job-pct { justify-self: end; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.job-q { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--sunken); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.job-bar, .job-track { grid-column: 2 / -1; height: 4px; }
.job-bar { background: #e6e2d8; border-radius: 4px; }
.job-track { margin-top: 2px; border-top: 1.5px dashed #d8d3c6; height: 0; }

/* Continue */
.resume { position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 1px 2px rgba(20,20,19,.04), 0 18px 40px -22px rgba(11,24,48,.26), 0 0 0 1px rgba(20,20,19,.07); }
.resume::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--field-bio), color-mix(in srgb, var(--field-bio) 30%, transparent)); }
.resume-claim { font-family: var(--font-display); font-size: 26px; line-height: 1.28; letter-spacing: -.016em; font-weight: 500; max-width: 30ch; }
.resume-claim .cite { font-family: var(--font-mono); vertical-align: .18em; }
.fp { --est: 116px; }
.fp-plot { padding: 12px 0 10px; border-radius: 14px; background: #f6f4ee; }
.fp-grid { top: 12px; right: calc(var(--est) + 12px); }
.fp-row { grid-template-columns: var(--lab) minmax(0, 1fr) var(--est); padding-right: 12px; }
.fp-row:hover, .fp-row.is-on, .fp-row:focus-visible { background: rgba(15,123,108,.08); }
.fp-plot:has(.fp-row.is-on) .fp-row:not(.is-on) { opacity: .45; }
.fp-row { transition: background var(--d-2), opacity var(--d-2); }
.fp-est { justify-self: end; font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-est span { color: var(--ink-3); }
.fp-axis, .fp-dir, .fp-axis-t { margin-right: calc(var(--est) + 12px); }
.fp-axis span { color: var(--ink-2); }
.fp-grid .is-null { border-left: 1.5px dashed rgba(20,20,19,.55); }
.fp-axis-t { margin-left: var(--lab); margin-top: 2px; text-align: center; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.fp-toggle { display: none; }
.resume-src .rsrc-t > span { color: #6b675f; }
.resume-src .is-reading a { box-shadow: inset 2px 0 0 var(--accent); padding-left: 10px; }
.resume-src .is-reading .rsrc-t > span { color: var(--ink-2); }
.resume-src .is-reading .rsrc-t > span::before { content: "Last read · "; color: var(--accent-ink); font-weight: 600; }
.resume-src .is-gap a { background: #fbf6ec; padding-left: 10px; border-radius: 8px; }
.resume-src .is-gap .rsrc-t > span { color: #6b3e0a; font-weight: 500; }
.nw { white-space: nowrap; }

/* Recent research: figure cards */
.home-lower { margin-top: 44px; }
.home-recent .sec-head { align-items: center; padding: 0 2px 14px; border-bottom: 0; }
.home-recent .sec-title { font-family: var(--font-display); font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.014em; }
.hr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hr-card { --fg: var(--ink-2); display: flex; flex-direction: column; height: 100%; border-radius: 16px; background: var(--raised); box-shadow: var(--e-1); overflow: hidden; color: var(--ink); transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-3); }
.hr-card[data-f="bio"] { --fg: var(--field-bio); } .hr-card[data-f="quant"] { --fg: var(--field-quant); } .hr-card[data-f="policy"] { --fg: var(--field-policy); }
.hr-card:hover { transform: translateY(-2px); box-shadow: var(--e-3); }
.hr-card:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.hr-prev { position: relative; display: block; height: 148px; padding: 12px 12px 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 9%, #fbfaf6), color-mix(in srgb, var(--fg) 3%, #fbfaf6)); border-bottom: 1px solid rgba(20,20,19,.05); }
.hr-prev > .hr-fig, .hr-prev > .hr-spx { display: block; width: 100%; height: 100%; border-radius: 10px; background: var(--raised); box-shadow: 0 0 0 1px rgba(20,20,19,.05); overflow: hidden; }
.hr-prev > .hr-fig .cf-svg { display: block; width: 100%; height: 100%; }
.hr-spx .spx { height: 100%; aspect-ratio: auto; }
.hr-prev.is-planned > .hr-spx { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 30%, transparent); }
.hr-prev.is-planned .spx-svg { opacity: .62; filter: saturate(.75); }
.hr-tag { position: absolute; left: 12px; bottom: 7px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: color-mix(in srgb, var(--fg) 65%, var(--ink)); }
.hr-tag svg { width: 13px; height: 13px; }
.hr-prev.is-fig .hr-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-2); }
.hr-doc { position: relative; display: flex; flex-direction: column; gap: 9px; width: 62%; height: 100%; margin: 0 auto; padding: 14px 16px; border-radius: 6px 6px 0 0; background: var(--raised); box-shadow: 0 0 0 1px rgba(20,20,19,.06), 0 8px 18px -12px rgba(11,24,48,.25); }
.hr-doc b { width: 55%; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 55%, #fff); }
.hr-doc i { height: 4px; border-radius: 4px; background: #e6e2d8; }
.hr-doc i.s { width: 70%; }
.hr-tbl { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2px; width: 76%; height: 100%; margin: 0 auto; padding: 8px; border-radius: 8px; background: var(--raised); box-shadow: 0 0 0 1px rgba(20,20,19,.06); }
.hr-tbl span { border-radius: 2px; background: #efece4; }
.hr-tbl span:nth-child(-n+4) { background: color-mix(in srgb, var(--fg) 22%, #fff); }
.hr-tbl span:nth-child(4n+2):not(:nth-child(-n+4)) { background: color-mix(in srgb, var(--fg) 12%, #fff); }
.hr-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 16px 14px; }
.hr-top { display: flex; align-items: center; gap: 8px; }
.hr-top .field-glyph { --s: 26px; border-radius: 8px; }
.hr-field { flex: 1; min-width: 0; font-size: var(--fs-small); color: var(--ink-2); width: auto; text-align: left; overflow: visible; }
.hr-top .badge { min-width: 0; }
.hr-title { font-size: var(--fs-row); line-height: 22px; font-weight: 600; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 1px; }
.hr-sub { font-size: var(--fs-small); line-height: 18px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 1px; }
.hr-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hr-foot .t-mono { font-size: 11px; }
.hr-card:hover .hr-title { text-decoration: none; }
.hr-more { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; height: 100%; min-height: 220px; padding: 20px; border-radius: 16px; border: 1.5px dashed rgba(20,20,19,.16); color: var(--ink); transition: background var(--d-2), border-color var(--d-2); }
.hr-more:hover { background: rgba(255,255,255,.6); border-color: rgba(20,20,19,.3); }
.hr-more b { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.014em; }
.hr-more > span:not(.hr-more-stack) { font-size: var(--fs-small); color: var(--ink-2); }
.hr-more > svg { width: 18px; height: 18px; margin-top: 6px; transition: transform var(--d-2); }
.hr-more:hover > svg { transform: translateX(3px); }
.hr-more-stack { position: relative; width: 84px; height: 56px; margin-bottom: auto; }
.hr-more-stack span { position: absolute; width: 64px; height: 44px; border-radius: 8px; background: var(--raised); box-shadow: 0 0 0 1px rgba(20,20,19,.08), 0 6px 14px -10px rgba(11,24,48,.3); }
.hr-more-stack span:nth-child(1) { left: 0; top: 12px; transform: rotate(-6deg); background: color-mix(in srgb, var(--field-policy) 10%, #fff); }
.hr-more-stack span:nth-child(2) { left: 10px; top: 6px; transform: rotate(2deg); background: color-mix(in srgb, var(--field-quant) 10%, #fff); }
.hr-more-stack span:nth-child(3) { left: 20px; top: 0; transform: rotate(8deg); background: color-mix(in srgb, var(--field-bio) 10%, #fff); }
.hr-sk { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; border-radius: 16px; background: var(--raised); box-shadow: var(--e-1); overflow: hidden; }
.hr-sk .sk-line { margin: 0 16px; }
.hr-sk-prev { height: 148px; border-radius: 0; }

@media (max-width: 1180px) {
  .starter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .starter-all { display: none; }
  .hr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-live .job-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .home-head { padding: 6px 0 12px; }
  .home-eyebrow { flex-wrap: wrap; gap: 6px 12px; }
  .composer-opts .select.compact .select-trigger, .sources-btn { height: 44px; min-height: 44px; font-size: 14px; }
  .composer-start { height: 44px; }
  .starters { padding: 12px 0 14px; }
  .starters-label { margin-left: 16px; }
  .starter-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 2px 16px 4px; scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .starter-row::-webkit-scrollbar { display: none; }
  .starter { flex: 0 0 236px; scroll-snap-align: start; grid-template-columns: 72px minmax(0, 1fr); }
  .starter-all { display: grid; flex-basis: 214px; }
  .starters-label { display: block; }
  .starter:hover { transform: none; }
  .home-live { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 14px 12px; }
  .home-live .hl-link { min-height: 44px; margin: -12px 0 -12px auto; }
  .job-title-row { flex-wrap: wrap; row-gap: 0; }
  .job-title-row .job-title { white-space: normal; overflow: visible; }
  /* Continue folds to: identity, claim, source chips, one Resume; the figure opens from its own row */
  .resume { padding: 20px 16px 16px; }
  .resume-claim { font-size: 20px; line-height: 1.32; }
  .resume-src { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 14px; border-top: 0; }
  .resume-src li { border-bottom: 0; }
  .resume-src a { display: inline-flex; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border-radius: var(--r-pill); background: var(--sunken); }
  .resume-src .rsrc-t > span, .resume-src > li > a > svg { display: none; }
  .resume-src .rsrc-t b { font-size: 13px; font-weight: 500; white-space: nowrap; }
  .resume-src .is-gap a { background: var(--warning-tint); }
  .resume-src .is-gap .rsrc-t b { color: var(--warning); }
  .resume-s2 { display: none; }
  .resume-actions { padding-top: 14px; }
  .resume-actions .btn { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .fp-toggle { display: grid; grid-template-columns: 76px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 14px; padding: 6px 10px 6px 6px; border-radius: 12px; background: #f6f4ee; text-align: left; }
  .fp-toggle-fig { display: block; width: 76px; height: 52px; padding: 2px; border-radius: 8px; background: var(--raised); }
  .fp-toggle-fig .cf-svg { width: 72px; height: 48px; }
  .fp-toggle-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .fp-toggle-t b { font-size: 14px; font-weight: 600; }
  .fp-toggle-t span { font-size: 12px; color: var(--ink-2); }
  .fp-toggle > svg { width: 18px; height: 18px; color: var(--ink-2); transition: transform var(--d-3); }
  .fp-toggle[aria-expanded="true"] > svg { transform: rotate(180deg); }
  .resume .fp { display: none; }
  .resume.is-fig-open .fp { display: flex; }
  .fp { --lab: 92px; --est: 0px; }
  .fp-est { display: none; }
  .fp-row { grid-template-columns: var(--lab) minmax(0, 1fr); }
  .fp-axis span { font-size: 11px; }
  .fp-read { font-size: 13px; }
  /* recent: compact rows with a figure tile */
  .home-recent .sec-title { font-size: 19px; }
  .hr-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: 16px; background: var(--raised); box-shadow: var(--e-1); overflow: hidden; }
  .hr-grid > li + li { border-top: 1px solid var(--hairline); }
  .hr-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 14px 14px 12px; border-radius: 0; box-shadow: none; background: transparent; }
  .hr-card:hover { transform: none; box-shadow: none; background: rgba(20,20,19,.025); }
  .hr-prev { width: 64px; height: 48px; padding: 3px; border-radius: 10px; border: 0; margin-top: 2px; }
  .hr-prev > .hr-fig, .hr-prev > .hr-spx { border-radius: 7px; }
  .hr-tag { display: none; }
  .hr-doc { width: 70%; padding: 6px 6px; gap: 4px; } .hr-doc b { height: 4px; } .hr-doc i { height: 2px; }
  .hr-tbl { width: 90%; padding: 3px; gap: 1px; }
  .hr-body { padding: 0; gap: 3px; }
  .hr-top { order: 3; } .hr-top .field-glyph { display: none; }
  .hr-title { order: 1; font-size: 15px; line-height: 20px; }
  .hr-sub { order: 2; -webkit-line-clamp: 1; }
  .hr-foot { display: none; }
  .hr-top .hr-field::after { content: " · " attr(data-when); }
  .hr-more-li { border-top: 1px solid var(--hairline); }
  .hr-more { flex-direction: row; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border: 0; border-radius: 0; }
  .hr-more-stack, .hr-more > span:not(.hr-more-stack) { display: none; }
  .hr-more b { font-family: inherit; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
  .hr-more > svg { margin: 0; color: var(--accent-ink); }
}



/* =====================================================================================================
   Founder review 10-09 · home (score 8, no pins; vision audit + FIX-LIST B5).
   One desk, then the rail. The desk is the page's one bold move: the example papers lie on it as small pages that tilt and
   light when they are on the desk. What to check, the question and the depth sit under them; the only exit is the plan
   board. The rail keeps what is running and the latest result's four verdicts, so the first screen shows an outcome.
   Designed at 1920×1080 first (column grows to 1600), then 1440×900 (two columns hold) and 390×844 (one column).
   ===================================================================================================== */
.app-main.home { max-width: clamp(1180px, 84vw, 1600px); }
@media (min-width: 1600px) { .app-main.home { padding-left: 56px; padding-right: 56px; } }

/* Head: greeting left; the example balance in credits on the right */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 10px 0 22px; }
.home-head .app-head-title { min-width: 0; }
.has-rail-result .home-head .v31-jump { display: none; }
.home-balance { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px 6px 16px; border: 1px solid transparent; border-radius: 14px; color: var(--ink);
  background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--edge-rest) border-box; box-shadow: 0 6px 14px -12px rgba(11,24,48,.35); transition: box-shadow var(--d-3) var(--ease-out), background var(--d-3); }
.home-balance:hover { background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--edge-lit) border-box; box-shadow: 0 10px 22px -14px rgba(11,24,48,.4); }
.home-balance:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hb-n { font-family: var(--font-display); font-size: var(--fs-heading); line-height: 1; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hb-t { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.hb-t b { font-size: var(--fs-small); font-weight: 600; }
.hb-t span { font-size: 12px; color: var(--ink-2); }
.home-balance > svg { width: 16px; height: 16px; color: var(--ink-2); }

/* First screen: desk + rail */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: start; gap: 24px; }
@media (min-width: 1600px) { .home-top { grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; } }

/* The desk */
.home-desk { container-type: inline-size; border-radius: 22px; box-shadow: 0 1px 2px rgba(20,20,19,.04), 0 22px 48px -28px rgba(11,24,48,.32), 0 0 0 1px rgba(20,20,19,.06); }
.home-desk::before { background: var(--edge-rest); opacity: .7; }
.home-desk:focus-within::before { background: var(--edge-lit); opacity: 1; }
.home-desk form { padding: 26px 30px 24px; }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.desk-title { font-family: var(--font-display); font-size: var(--fs-heading); line-height: 1.2; font-weight: 500; letter-spacing: -.014em; color: var(--ink); }
.desk-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--sunken); }
.desk-mode button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); transition: background var(--d-2), color var(--d-2), box-shadow var(--d-2); }
.desk-mode button svg { width: 15px; height: 15px; }
.desk-mode button:hover { color: var(--ink); }
.desk-mode button[aria-checked="true"] { background: var(--raised); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20,20,19,.08), 0 0 0 1px rgba(20,20,19,.06); }
.desk-mode button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.desk-block { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.desk-label { display: block; float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: var(--fs-ui); line-height: 1.4; font-weight: 600; color: var(--ink); }
.desk-label + * { clear: both; }
.desk-sub { margin-left: 10px; font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); }

/* Papers on the desk: small pages with a folded corner; on the desk they tilt, lift and take the lit edge */
.tray { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@container (min-width: 700px) { .tray { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dpaper { --sh: var(--ink-4); position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 86px; padding: 12px 40px 12px 14px;
  border: 1px solid transparent; border-radius: 14px; background: linear-gradient(var(--sunken), var(--sunken)) padding-box, linear-gradient(var(--sunken), var(--sunken)) border-box; cursor: pointer;
  transition: background var(--d-3), box-shadow var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-out); }
.dpaper[data-k="p1"] { --sh: var(--brand-blue); } .dpaper[data-k="p2"] { --sh: var(--brand-orange); } .dpaper[data-k="csv"] { --sh: var(--success); }
.dpaper input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dpaper:hover { background: linear-gradient(var(--sunken-2), var(--sunken-2)) padding-box, linear-gradient(var(--sunken-2), var(--sunken-2)) border-box; }
.dpaper:has(input:checked) { background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--edge-rest) border-box; box-shadow: 0 12px 26px -18px rgba(11,24,48,.42); transform: translateY(-1px); }
.dpaper:has(input:checked):hover { background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--edge-lit) border-box; }
.dpaper:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dpaper-page { position: relative; display: flex; flex-direction: column; gap: 4px; width: 46px; height: 60px; padding: 15px 7px 6px; border-radius: 3px 10px 3px 3px; background: #fff;
  box-shadow: 0 0 0 1px rgba(20,20,19,.1), 0 5px 10px -6px rgba(11,24,48,.4); opacity: .6; filter: grayscale(.7); transition: transform var(--d-4) var(--ease-out), opacity var(--d-3), filter var(--d-3); }
.dpaper-page::before { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 0 0 0 3px; background: linear-gradient(225deg, var(--paper) 50%, #e4e0d4 50%); }
.dpaper-page::after { content: ""; position: absolute; top: 7px; left: 7px; width: 52%; height: 3px; border-radius: 2px; background: var(--sh); }
.dpaper-page i { display: block; height: 2px; border-radius: 2px; background: #e2ded2; }
.dpaper-page i:nth-child(3n) { width: 68%; }
.dpaper.is-csv .dpaper-page { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 6px; gap: 3px; }
.dpaper.is-csv .dpaper-page i { width: auto; height: 6px; border-radius: 1px; }
.dpaper.is-csv .dpaper-page i:nth-child(-n+3) { background: color-mix(in srgb, var(--sh) 30%, #fff); }
.dpaper:has(input:checked) .dpaper-page { opacity: 1; filter: none; transform: rotate(-4deg) translateY(-1px); }
.dpaper-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dpaper-t b { font-size: var(--fs-ui); line-height: 1.3; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.dpaper-t > span { font-size: var(--fs-small); line-height: 1.35; color: var(--ink-2); }
.dpaper-tick { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--hairline-strong); color: transparent; transition: background var(--d-2), box-shadow var(--d-2); }
.dpaper-tick svg { width: 13px; height: 13px; stroke-width: 3; }
.dpaper:has(input:checked) .dpaper-tick { background: var(--brand-mark); box-shadow: none; color: #fff; }

/* What to check: four answers, one pressed (chip language from the shared system) */
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: inline-flex; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-pill); background: linear-gradient(var(--sunken), var(--sunken)) padding-box, linear-gradient(var(--sunken), var(--sunken)) border-box; font-size: var(--fs-ui); font-weight: 500; color: var(--ink); transition: background var(--d-2), color var(--d-2); }
.pick:hover span { background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--edge-rest) border-box; }
.pick input:checked + span { background: var(--brand-mark) padding-box, var(--brand-mark) border-box; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Question */
.desk-q textarea { display: block; width: 100%; min-height: 72px; max-height: 220px; resize: none; padding: 13px 16px; border: 0; border-radius: 12px; background: var(--sunken); font-size: var(--fs-row); line-height: 1.5; color: var(--ink); transition: background var(--d-2), box-shadow var(--d-2); }
.desk-q textarea::placeholder { color: var(--ink-3); }
.desk-q textarea.is-previewing::placeholder { color: var(--accent-ink); }
.desk-q textarea:hover { background: var(--sunken-2); }
.desk-q textarea:focus-visible { outline: none; background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-tint); }
.home-desk[data-mode="question"] .desk-q textarea { min-height: 148px; font-size: var(--fs-lead); }

/* Depth: one segmented control, credits shown as credits */
.depth-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 4px; border-radius: 14px; background: var(--sunken); }
.depth { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 56px; padding: 6px 14px; border-radius: 10px; cursor: pointer; transition: background var(--d-2), box-shadow var(--d-2); }
.depth input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.depth:hover { background: rgba(255,255,255,.55); }
.depth-n { font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }
.depth-c { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.depth-c b { font-weight: 600; color: var(--ink); }
.depth:has(input:checked) { background: var(--raised); box-shadow: 0 1px 2px rgba(20,20,19,.06), 0 0 0 1px rgba(20,20,19,.06), 0 8px 16px -12px rgba(11,24,48,.4); }
.depth:has(input:checked) .depth-n { color: var(--accent-ink); }
.depth:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Foot: what will be planned, what happens next, the one exit */
.desk-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.desk-next { min-width: 0; }
.desk-sum { font-size: var(--fs-ui); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.desk-note { margin-top: 2px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.desk-error { margin-top: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--danger); }
.home-desk .composer-start { flex: none; height: 48px; padding: 0 16px 0 22px; font-size: var(--fs-ui); }

/* The rail */
.home-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-rail .home-live { display: block; margin: 0; padding: 18px 20px 16px; }
.home-rail .hl-head { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 14px; padding: 0; }
.home-rail .hl-title { font-size: var(--fs-ui); letter-spacing: 0; text-transform: none; color: var(--ink); }
.home-rail .hl-link { margin: 0 0 0 auto; }
.home-rail .home-live .job-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.home-rail .home-live .jobs-empty { padding: 0; }
.rail-result { padding: 18px 20px 12px; border-radius: 16px; background: var(--raised); box-shadow: 0 0 0 1px rgba(20,20,19,.07), 0 10px 26px -18px rgba(11,24,48,.3); }
.rr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rr-title { font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }
.rr-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.rr-name { display: inline-block; margin-top: 10px; font-family: var(--font-display); font-size: var(--fs-heading); line-height: 1.2; font-weight: 500; letter-spacing: -.014em; color: var(--ink); }
.rr-name:hover { text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 4px; }
.rr-meta { margin-top: 4px; font-size: var(--fs-small); color: var(--ink-2); }
.rr-meta .t-mono { font-size: 12px; }
.rr-list { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--hairline); }
.rr-v { --vc: var(--ink-3); display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "id claim claim" "id label conf"; align-items: center; gap: 6px 10px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.rr-v.is-sup { --vc: var(--success); } .rr-v.is-not { --vc: var(--danger); } .rr-v.is-known { --vc: var(--accent-ink); } .rr-v.is-insuf { --vc: var(--warning); }
.rr-id { grid-area: id; align-self: start; padding: 2px 0; border-radius: 6px; background: var(--sunken); font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-align: center; color: var(--ink); }
.rr-claim { grid-area: claim; font-size: var(--fs-small); line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 1px; }
.rr-label { grid-area: label; display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); font-weight: 600; color: var(--vc); }
.rr-label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.rr-conf { grid-area: conf; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rr-bar { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--sunken-2); overflow: hidden; }
.rr-bar > span { display: block; width: var(--c); height: 100%; border-radius: inherit; background: var(--vc); }
.rr-conf.is-abstain { padding: 1px 8px; border-radius: var(--r-pill); background: var(--warning-tint); color: var(--warning); font-weight: 500; }
.rr-note { margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.rr-open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); }
.rr-open svg { width: 15px; height: 15px; transition: transform var(--d-2); }
.rr-open:hover svg { transform: translateY(2px); }

/* Templates under the first screen */
.home-starters { margin-top: 28px; }
.hs-title { margin: 0 0 12px 2px; font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }

/* The latest result preview below: a clear section start */
body[data-page="home"] [data-v31-root="results"] { margin-top: 40px; }

@media (max-width: 1180px) {
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .home-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 640px) {
  .home-head { flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px 0 16px; }
  .home-head .app-head-title { flex: 1 1 100%; }
  .home-balance { min-height: 48px; }
  .home-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-rail { display: flex; }
  .home-desk { border-radius: 18px; }
  .home-desk form { padding: 20px 16px 18px; }
  .desk-head { gap: 12px; }
  .desk-mode { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .desk-mode button { justify-content: center; min-height: 44px; }
  .desk-block { margin-top: 20px; }
  .desk-sub { display: block; margin: 2px 0 0; }
  .dpaper { min-height: 76px; }
  .pick span { min-height: 44px; padding: 0 14px; }
  .depth { padding: 6px 10px; }
  .desk-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .home-desk .composer-start { width: 100%; justify-content: center; }
  .home-rail .home-live, .rail-result { padding: 16px 16px 12px; }
  .home-rail .hl-link { min-height: 44px; margin: -12px 0 -12px auto; }
  .home-starters .starter-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; overflow: visible; padding: 0; -webkit-mask: none; mask: none; }
  .home-starters .starter, .home-starters .starter-all { display: grid; flex: none; }
  body[data-page="home"] [data-v31-root="results"] { margin-top: 28px; }
}

/* Mid-width desks (1440 and tablets): the page sits above its title so three cards stay readable side by side */
@container (min-width: 700px) and (max-width: 979px) {
  .dpaper { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 14px 14px; }
  .dpaper-page { width: 40px; height: 52px; padding-top: 13px; gap: 3px; }
}
.home-eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }

/* Tap size for the result name (44px hit area, layout unchanged) */
.rr-name { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -9px; }
.rr-head + .rr-name { margin-top: 1px; }
/* The pinned result below the first screen: its title in the display face, sentence case like everything else on Home */
body[data-page="home"] .v31-result-head h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.014em; }
body[data-page="home"] .v31-result-head h2::first-letter { text-transform: uppercase; }
/* The credit offer runs the full Home column (it was centred on the 1200 public container) */
body[data-page="home"] .container.cp-offer { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }

/* inkclip: rail job titles and starter subtitles wrap instead of clipping */
.home-rail .job-title-row { flex-wrap: wrap; row-gap: 0; }
.home-rail .job-title-row .job-title { white-space: normal; overflow: visible; text-overflow: clip; }
.home-starters .starter-t > span { display: block; overflow: visible; -webkit-line-clamp: unset; }

/* Phone: the balance sits beside the date, so the desk starts one row higher; running jobs keep their place above the result */
.home-rail .home-live { order: 0; }
@media (max-width: 640px) {
  .home-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
  .home-head .app-head-title { display: contents; }
  .home-head .home-eyebrow { grid-column: 1; grid-row: 1; }
  .home-head h1 { grid-column: 1 / -1; grid-row: 2; }
  .home-head .v31-jump { grid-column: 1 / -1; }
  .home-balance { grid-column: 2; grid-row: 1; min-height: 44px; padding: 4px 8px 4px 12px; gap: 8px; border-radius: 12px; }
  .home-balance .hb-n { font-size: var(--fs-heading); }
}
