:root {
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #f8fafb; --border: #e2e7ec; --text: #14212b; --muted: #5c6b78;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #e3f4f1;
  --ok: #157f3b; --ok-soft: #e4f5e9; --warn: #9a5b00; --warn-soft: #fff3dc; --bad: #b42318; --bad-soft: #fdecea;
  --info: #1d4ed8; --info-soft: #e5edff; --focus: #2563eb; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 14px; --side: 248px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1418; --surface: #151f25; --surface-2: #1a262d; --border: #263640; --text: #e6edf2; --muted: #9aabb8;
    --brand: #2bb3a5; --brand-ink: #062a27; --brand-soft: #123532;
    --ok: #5fd08a; --ok-soft: #12301f; --warn: #f2b45a; --warn-soft: #33260f; --bad: #ff8a80; --bad-soft: #3a1714;
    --info: #7cb4ff; --info-soft: #14243a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0d1418; --surface: #151f25; --surface-2: #1a262d; --border: #263640; --text: #e6edf2; --muted: #9aabb8;
    --brand: #2bb3a5; --brand-ink: #062a27; --brand-soft: #123532;
    --ok: #5fd08a; --ok-soft: #12301f; --warn: #f2b45a; --warn-soft: #33260f; --bad: #ff8a80; --bad-soft: #3a1714;
    --info: #7cb4ff; --info-soft: #14243a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); line-height: 1.45; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.55rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; }
h3 { font-size: .98rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--side); flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  gap: 18px; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 8px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand);
  color: var(--brand-ink); font-weight: 800; font-size: .82rem; letter-spacing: -.02em; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-weight: 560; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-link .soon { margin-left: auto; font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .8rem; display: grid; gap: 8px; }
svg.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand-compact { display: none; padding: 0; }
.top-badge { margin-left: auto; }
.person-switch { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.person-btn { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 620; cursor: pointer;
  padding: 7px 14px; border-radius: 9px; display: flex; align-items: center; gap: 8px; }
.person-btn small { font-weight: 500; opacity: .85; }
.person-btn[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .74rem; font-weight: 750;
  background: var(--surface-2); color: var(--text); }
.person-btn[aria-selected="true"] .avatar { background: rgba(255, 255, 255, .25); color: inherit; }

.view { padding: 26px 28px 40px; max-width: 1180px; width: 100%; outline: none; display: grid; gap: 20px; align-content: start; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

.stat { display: grid; gap: 4px; text-decoration: none; transition: transform .12s ease; }
.stat:hover { transform: translateY(-1px); }
.stat .num { font-size: 2rem; font-weight: 760; letter-spacing: -.02em; }
.stat .lbl { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stat.ok .num { color: var(--ok); } .stat.warn .num { color: var(--warn); } .stat.bad .num { color: var(--bad); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 650; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { appearance: none; font: inherit; font-weight: 600; font-size: .85rem; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); padding: 7px 13px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip .count { font-variant-numeric: tabular-nums; opacity: .8; }
.search { margin-left: auto; min-width: 220px; flex: 1 1 220px; max-width: 320px; font: inherit; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }

.job-list { display: grid; gap: 12px; }
.job { padding: 0; overflow: hidden; }
.job-main { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 18px; }
.job-title { font-size: 1rem; font-weight: 680; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .86rem; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta svg.icon { width: 15px; height: 15px; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.job-reason { grid-column: 1 / -1; font-size: .88rem; }
.match { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.match-bar { width: 84px; height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.match-bar i { display: block; height: 100%; background: var(--brand); }
details.why { border-top: 1px solid var(--border); background: var(--surface-2); }
details.why summary { cursor: pointer; padding: 10px 18px; font-weight: 620; font-size: .86rem; color: var(--brand); list-style: none; display: flex; align-items: center; gap: 6px; }
details.why summary::-webkit-details-marker { display: none; }
details.why summary::after { content: "▾"; transition: transform .15s; }
details.why[open] summary::after { transform: rotate(180deg); }
.checks { list-style: none; margin: 0; padding: 0 18px 14px; display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: .88rem; }
.check b { font-weight: 640; }
.mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 800; margin-top: 1px; }
.mark.pass { background: var(--ok-soft); color: var(--ok); } .mark.fail { background: var(--bad-soft); color: var(--bad); } .mark.unclear { background: var(--warn-soft); color: var(--warn); }
.skills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.tag { font-size: .76rem; padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.tag.have { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); color: var(--ok); }

.mini-list { display: grid; gap: 10px; }
.mini { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; padding: 10px 12px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.mini small { display: block; color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stage { padding: 12px; border-radius: 12px; border: 1px dashed var(--border); color: var(--muted); display: grid; gap: 4px; font-size: .85rem; }
.stage strong { color: var(--text); }
a.stage { text-decoration: none; }
a.stage:hover { border-color: var(--muted); }
.stage.live { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }

.preview { position: relative; }
.preview-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.preview-banner p { color: var(--text); }
.preview-body { opacity: .55; pointer-events: none; user-select: none; display: grid; gap: 12px; }
.ghost-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: .86rem; }
.btn { appearance: none; font: inherit; font-weight: 650; border-radius: 10px; padding: 9px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn[disabled] { cursor: not-allowed; opacity: .7; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .9rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 560; min-width: 0; overflow-wrap: anywhere; }
.lead, .job-detail h1 { overflow-wrap: anywhere; }
.profile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.profile-head .avatar { flex: none; width: 44px; height: 44px; font-size: 1rem; background: var(--brand-soft); color: var(--brand); }
.empty { text-align: center; padding: 30px; color: var(--muted); }
.loading, .error { color: var(--muted); }
.error { color: var(--bad); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bottom-nav { display: none; }
.noscript { padding: 20px; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .brand-compact { display: flex; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .top-badge { display: none; }
  .person-switch { margin-left: auto; }
  .person-btn small { display: none; }
  .view { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat .num { font-size: 1.5rem; }
  .stat .lbl { font-size: .78rem; }
  .stat .lbl svg { display: none; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .job-main { grid-template-columns: 1fr; }
  .job-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .ghost-row { grid-template-columns: 1fr; }
  .bottom-nav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; z-index: 10; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
  .bottom-nav .nav-link { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: .66rem; font-weight: 620; text-align: center; border-radius: 10px; }
  .bottom-nav .nav-link .soon { display: none; }
  .bottom-nav .nav-link.is-preview { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- prototype: shared ---------- */
.pill-info { background: var(--info-soft); color: var(--info); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn svg.icon { width: 16px; height: 16px; }
.btn:hover:not([disabled]) { border-color: var(--muted); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover:not([disabled]) { filter: brightness(1.05); border-color: var(--brand); }
.btn-danger { color: var(--bad); }
.btn-quiet { background: transparent; }
.btn-small { padding: 6px 10px; font-size: .84rem; border-radius: 9px; }
.btn[disabled], .btn-primary[disabled] { opacity: .55; filter: grayscale(1); cursor: not-allowed; }
.input { width: 100%; overflow: hidden; min-height: 2.6em; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; resize: vertical; }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.proto-banner, .notice, .flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.proto-banner { background: var(--info-soft); color: var(--info); }
.proto-banner p, .notice p { color: var(--text); }
.notice-info { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.flash { border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.flash-ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--border)); color: var(--ok); }
.flash-bad { border-color: color-mix(in srgb, var(--bad) 50%, var(--border)); color: var(--bad); }
.session-wrap { display: grid; gap: 0; }
.session-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.session-who { display: inline-flex; gap: 8px; align-items: center; }
.session-actions { display: inline-flex; gap: 8px; }
.signin { margin-top: 8px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; }
.signin-people { display: flex; gap: 8px; flex-wrap: wrap; }
.person-pick { appearance: none; font: inherit; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.person-pick[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.signin-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pin { max-width: 160px; letter-spacing: .3em; }
.app-list { display: grid; gap: 8px; }
.app-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; }
a.app-row:hover { border-color: var(--muted); }
.app-row.selectable { cursor: pointer; justify-content: flex-start; }
.app-row.selectable input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.app-row-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.app-row-main small { color: var(--muted); }
.app-row-side { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.progress { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; max-width: 260px; }
.progress.wide { max-width: none; margin: 4px 0 12px; }
.progress i { display: block; height: 100%; background: var(--info); }
.job-detail .progress i, .progress.wide i { background: var(--brand); }

/* ---------- review ---------- */
.review-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
.review-side { display: grid; gap: 16px; }
.editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.fp-row { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 14px; }
.fp-row svg.icon { width: 16px; height: 16px; color: var(--brand); margin-top: 1px; }
.fp-row.pending svg.icon { color: var(--warn); }
h3.sub { display: flex; gap: 8px; align-items: center; margin: 16px 0 10px; font-size: .95rem; }
.cv-static { display: grid; gap: 10px; padding: 12px; border-radius: 10px; border: 1px dashed var(--border); margin-bottom: 4px; font-size: .9rem; }
.facts-used { margin: 4px 0 8px; font-size: .9rem; }
.facts-used summary { cursor: pointer; color: var(--brand); font-weight: 620; margin-bottom: 6px; }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- auto apply ---------- */
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--border); text-decoration: none; box-shadow: var(--shadow); }
.tile .num { font-size: 1.5rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.tile .lbl { font-size: .8rem; font-weight: 620; color: var(--muted); }
.tile-brand { border-top-color: var(--brand); } .tile-info { border-top-color: var(--info); } .tile-warn { border-top-color: var(--warn); }
.tile-ok { border-top-color: var(--ok); } .tile-bad { border-top-color: var(--bad); } .tile-neutral { border-top-color: var(--muted); }
.queue-controls { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.attention { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--border)); }
.attention-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.answer-box { display: grid; gap: 8px; }
.result-ok { border-top: 4px solid var(--ok); } .result-warn { border-top: 4px solid var(--warn); } .result-bad { border-top: 4px solid var(--bad); }
.results .app-row { align-items: flex-start; }
.detail { border: 2px solid var(--brand); }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--brand); font-weight: 620; margin-bottom: 6px; }
.back svg.icon { width: 16px; height: 16px; }
.confirm-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin: 6px 0; font-size: .9rem; }
.confirm-box p { color: var(--text); margin-top: 2px; }
.confirm-box.ok { background: var(--ok-soft); color: var(--ok); } .confirm-box.warn { background: var(--warn-soft); color: var(--warn); }
.confirm-box.muted { background: var(--surface-2); color: var(--muted); } .confirm-box.info { background: var(--info-soft); color: var(--info); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 8px 0 8px 14px; border-left: 2px solid var(--border); position: relative; font-size: .88rem; }
.tl::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.tl time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-ok::before { background: var(--ok); } .tl-warn::before { background: var(--warn); } .tl-bad::before { background: var(--bad); }

/* ---------- tracking ---------- */
.track-table { display: grid; gap: 6px; }
.track-row { display: grid; grid-template-columns: 2.2fr 1.4fr .9fr 1.2fr 1.2fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; }
.track-row small { display: block; color: var(--muted); }
.track-head { background: transparent; border: 0; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 0; padding-bottom: 0; }

/* ---------- jobs additions ---------- */
.job-title a { text-decoration: none; }
.job-title a:hover { text-decoration: underline; }
.job-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.lead { font-size: 1rem; margin: 6px 0 12px; }
.verdict { padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.verdict-eligible { background: var(--ok-soft); } .verdict-review { background: var(--warn-soft); } .verdict-excluded { background: var(--bad-soft); }
.big-score { font-size: 2rem; font-weight: 760; margin: 6px 0 2px; }
.skills.flat { padding: 0 0 10px; }
.nav-link.is-proto .soon { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, var(--border)); }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tiles, .tiles-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-row { grid-template-columns: 1fr auto; }
  .track-row > :nth-child(3), .track-row > :nth-child(4), .track-row > :nth-child(5) { display: none; }
  .track-head { display: none; }
  .app-row { flex-wrap: wrap; }
  .app-row-side { justify-content: flex-start; }
  .editor-actions { justify-content: stretch; }
  .editor-actions .btn { flex: 1 1 auto; }
  .results.grid-3 { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 2px; }
  .job-actions { justify-content: flex-start; }
}

/* ---------- M1 real job search ---------- */
.data-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.data-tab { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.data-tab small { color: var(--muted); }
.data-tab[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); }
.data-tab[aria-selected="true"] strong { color: var(--brand); }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: .9rem; }
.setting { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.mark.unset { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.filters-more { gap: 10px; }
.filter-field { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.select { width: auto; padding: 6px 10px; min-height: 0; }
.run { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 4px; }
.run-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.search-summary { display: grid; gap: 8px; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.mini-stats b { font-size: 1.1rem; }
dl.raw { display: grid; gap: 4px; margin: 6px 0 0; font-size: .8rem; }
.raw-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.raw-row dt { color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.raw-row dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; }
  .data-switch { grid-template-columns: 1fr; }
  .raw-row { grid-template-columns: 1fr; gap: 0; }
}

.card > h2 { margin-bottom: 12px; }

/* ---------- multi-source: import and sources ---------- */
.data-switch-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.data-switch-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
code.wrap { overflow-wrap: anywhere; word-break: break-all; font-size: 0.85em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.step { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 620; font-size: .88rem; }
.step-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; flex: none; }
.step.current { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.step.current .step-num, .step.done .step-num { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.step.done { color: var(--text); }
.advert-text { min-height: 220px; font-family: inherit; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.field-label .pill { margin-left: 6px; text-transform: none; letter-spacing: 0; }
.field-note { display: block; color: var(--warn); font-size: .8rem; }
.field-note.muted { color: var(--muted); }
pre.pasted { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; max-height: 420px; overflow: auto; }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.source-error { border-color: color-mix(in srgb, var(--bad) 50%, var(--border)); }
.source-disabled { opacity: .85; }
.source dl.facts { font-size: .86rem; }
@media (max-width: 1100px) { .data-switch-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .data-switch-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .source-list { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .data-switch-4, .data-switch-5 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source dl.facts { grid-template-columns: 1fr; gap: 2px; }
  .source dl.facts dd { margin-bottom: 8px; }
}

.form-grid { align-items: start; }

/* M2a/M2b */
.field-note.bad { color: var(--bad); }
.day-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.day { display: inline-flex; align-items: center; gap: 4px; }
fieldset.field { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }
.ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.field.narrow { max-width: 260px; }
.user-check { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, rgba(127,127,127,.25)); }
.flash-ok { background: var(--ok-soft); color: var(--ok); padding: 10px 12px; border-radius: 10px; }
.day input, .check-line input { width: 18px; height: 18px; accent-color: var(--brand); }
.ct .select { min-width: 110px; }

/* M3b */
.data-switch-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .data-switch-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .data-switch-6 { grid-template-columns: 1fr 1fr; } }
.section-title { font-size: 1.05rem; margin: 26px 0 6px; }
.next-step { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--text); text-decoration: none; margin: 8px 0 14px; }
.next-step .icon { color: var(--brand); flex: none; }
.pipeline-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1200px) { .pipeline-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pipeline-7 { grid-template-columns: 1fr 1fr; } }
.entries { display: grid; gap: 12px; margin-bottom: 10px; }
.entry { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.entry-row { grid-template-columns: 1fr auto auto; align-items: end; }
@media (max-width: 700px) { .entry-row { grid-template-columns: 1fr; } }
.compat { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0; grid-column: 1 / -1; }
.compat-item { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; }
.compat-item .mark { width: 20px; height: 20px; }
.reasons { grid-column: 1 / -1; }
.match .why h4.sub, .reasons h4.sub { margin: 10px 0 4px; font-size: .9rem; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.lead-list { display: grid; gap: 10px; }
.lead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.lead a { overflow-wrap: anywhere; }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles-4 { grid-template-columns: 1fr 1fr; } }
.tile small { display: block; margin-top: 4px; line-height: 1.3; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tagrow .tag { display: inline-flex; align-items: center; gap: 4px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 10px 0; flex-wrap: wrap; counter-reset: s; }
.stepper li { counter-increment: s; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.stepper li::before { content: counter(s) " · "; }
.stepper li.done { background: var(--ok-soft); color: var(--ok); }
.stepper li.now { background: var(--brand); color: var(--brand-ink); font-weight: 650; }
.app-card { display: block; text-decoration: none; color: inherit; }
textarea.doc { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.45; }
.process > p.small { margin-top: 12px; }
.why-body { padding: 0 18px 14px; }
.why-body ul.plain { padding-left: 18px; }
.grid-2 > div { display: grid; gap: 16px; align-content: start; }
.view > *, .grid > *, .card { min-width: 0; }
.table-wrap { max-width: 100%; }
@media (max-width: 700px) { .table { font-size: .8rem; } .table th, .table td { padding: 6px; } }
.questions li { margin: 4px 0; }

/* Stage 1 storage screens: the recovery code, shown once (existing tokens only). */
.recovery-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; letter-spacing: .06em; font-weight: 600; margin: 8px 0; padding: 10px 12px; background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; overflow-wrap: anywhere; user-select: all; }

/* Device-key screen for the optional public link */
.device-gate { max-width: 32rem; margin: 2rem auto; padding: 0 1rem; }
