:root {
  --ink: #f3eee4;
  --muted: #aaa79f;
  --dim: #969891;
  --decorative: #72736f;
  --bg: #121413;
  --surface: #1a1d1b;
  --surface-2: #222622;
  --line: #333933;
  --acid: #d8ff66;
  --amber: #ffbf69;
  --red: #ff8275;
  --blue: #8dd7ff;
  --radius: 2px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% -15%, rgba(216, 255, 102, .09), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, select { font: inherit; }
.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; }

.masthead {
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-weight: 780; font-size: 14px; }
.brand-mark { color: var(--acid); margin-left: 2px; }
.masthead-meta { display: flex; align-items: center; gap: 16px; }
.local-badge { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.local-badge span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px rgba(216,255,102,.6); }
.workspace-switcher select { color: var(--ink); border: 1px solid var(--line); background: var(--surface); padding: 7px 28px 7px 10px; border-radius: var(--radius); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 100px; }
.eyebrow { margin: 0 0 12px; color: var(--acid); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 0; font-size: clamp(38px, 6vw, 76px); font-weight: 620; line-height: .98; letter-spacing: -.045em; }
h2 { letter-spacing: -.02em; }
.review-heading { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: end; margin-bottom: 56px; }
.review-note { margin: 0; color: var(--muted); font-size: 14px; }

.opportunity-list { display: grid; gap: 18px; }
.opportunity-card { padding: clamp(24px, 4vw, 44px); background: linear-gradient(135deg, rgba(255,255,255,.025), transparent 60%), var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--acid); }
.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.recommendation, .strategy { font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.recommendation { color: var(--bg); background: var(--acid); padding: 6px 8px; }
.recommendation-high-value-stretch { background: var(--amber); }
.recommendation-interesting { color: var(--ink); background: #3e514a; }
.strategy { color: var(--muted); }
.opportunity-title { display: inline-flex; flex-direction: column; text-decoration: none; margin-bottom: 20px; }
.opportunity-title span { font-size: clamp(25px, 4vw, 42px); font-weight: 610; line-height: 1.08; letter-spacing: -.035em; }
.opportunity-title small, .company-name { margin-top: 7px; color: var(--acid); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 0; color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.facts span:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--decorative); }
.explanation { max-width: 880px; margin: 28px 0; color: #d2cfc7; white-space: pre-line; }
.explanation.long { font-size: 17px; line-height: 1.7; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-grid h2 { color: var(--muted); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.signal-grid p { margin: 9px 0 0; font-size: 13px; }
.signal-grid b { color: var(--acid); margin-right: 7px; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--dim); }

.card-actions { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-top: 28px; }
.card-actions form, .detail-actions form { display: flex; gap: 8px; align-items: center; }
button, .button-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--surface-2); text-decoration: none; cursor: pointer; font-weight: 650;
}
button:hover, button:focus-visible { border-color: var(--muted); }
.button-primary { color: #161a12; background: var(--acid); border-color: var(--acid); }
.detail-link { color: var(--muted); font-size: 13px; text-decoration-color: var(--dim); text-underline-offset: 4px; }
.skip-menu { position: relative; }
.skip-menu summary { list-style: none; cursor: pointer; padding: 9px 13px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 650; }
.skip-menu summary::-webkit-details-marker { display: none; }
.skip-menu > div { position: absolute; z-index: 2; left: 0; top: calc(100% + 8px); width: 250px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 20px 45px rgba(0,0,0,.45); }
.skip-menu label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.skip-menu select { width: 100%; padding: 8px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
.skip-menu button { width: 100%; margin-top: 10px; }

.empty-state { margin-top: 30px; min-height: 320px; padding: 52px; display: flex; flex-direction: column; justify-content: center; border: 1px dashed var(--line); background: rgba(255,255,255,.015); }
.empty-state h2 { margin-bottom: 8px; font-size: 30px; }
.empty-state p { max-width: 620px; color: var(--muted); }
.empty-mark { color: var(--acid); font-size: 76px; line-height: 1; font-weight: 700; }
.choose-workspace { max-width: 760px; }
.workspace-list { display: grid; gap: 10px; margin-top: 42px; }
.workspace-list a { display: flex; gap: 15px; align-items: center; padding: 18px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.workspace-list a span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--bg); background: var(--acid); font-weight: 800; }

.back-link { display: inline-block; margin-bottom: 36px; color: var(--muted); text-underline-offset: 4px; }
.detail-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.detail-hero h1 { font-size: clamp(36px, 5vw, 64px); }
.apply-link { flex: 0 0 auto; }
.detail-actions { padding: 20px 0; border-bottom: 1px solid var(--line); }
.honesty-panel { margin-top: 40px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-top: 3px solid var(--acid); background: var(--surface); }
.honesty-panel.honesty-blocked { border-top-color: var(--red); }
.honesty-heading { display: flex; justify-content: space-between; gap: 30px; align-items: start; margin-bottom: 28px; }
.honesty-heading h2 { margin-bottom: 0; font-size: 34px; }
.honesty-status { text-align: right; }
.honesty-status strong { display: block; color: var(--acid); text-transform: uppercase; font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.honesty-blocked .honesty-status strong { color: var(--red); }
.honesty-status span { color: var(--muted); font-size: 12px; }
.honesty-violation { display: grid; grid-template-columns: 70px 1fr; gap: 16px; margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--amber); background: var(--surface-2); }
.honesty-violation.severity-block { border-left-color: var(--red); }
.honesty-violation > span { color: var(--amber); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.honesty-violation.severity-block > span { color: var(--red); }
.honesty-violation b { font-size: 14px; }
.honesty-violation p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.honesty-violation blockquote { margin: 13px 0 0; padding-left: 14px; border-left: 2px solid var(--acid); color: var(--ink); font-size: 13px; }
.honesty-clear { color: var(--acid); }
.ats-suggestions { margin-top: 30px; }
.ats-suggestions h3 { color: var(--muted); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.ats-suggestions p { display: flex; gap: 10px; align-items: start; margin: 8px 0; font-size: 13px; }
.ats-suggestions span { color: var(--bg); background: var(--blue); padding: 2px 5px; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.material-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.material-links a { padding: 7px 10px; color: var(--muted); border: 1px solid var(--line); text-decoration: none; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.material-links a:hover { color: var(--ink); border-color: var(--muted); }
.evaluation-block { padding: 54px 0; border-bottom: 1px solid var(--line); }
.evaluation-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.evaluation-heading h2 { font-size: clamp(28px, 4vw, 48px); }
.score { color: var(--acid); font: 48px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 54px; background: var(--line); border: 1px solid var(--line); }
.dimension-grid > div { padding: 20px; background: var(--surface); }
.dimension-grid span { color: var(--muted); text-transform: capitalize; font-size: 12px; }
.dimension-grid b { float: right; color: var(--acid); font: 20px ui-monospace, SFMono-Regular, Menlo, monospace; }
.dimension-grid p { clear: both; margin: 16px 0 0; color: #cbc8c0; font-size: 13px; }
.evidence-table-wrap { overflow-x: auto; }
.evidence-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.evidence-table th { color: var(--muted); text-align: left; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.evidence-table th, .evidence-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.evidence-class { display: block; color: var(--acid); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.class-gap { color: var(--red); }
.class-adjacent { color: var(--amber); }
.evidence-table small { display: block; color: var(--muted); margin-top: 4px; }
.provenance { margin-top: 18px; color: var(--dim); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.evaluation-signals { margin: 30px 0 46px; }
.raw-evaluation { margin-top: 20px; border-top: 1px solid var(--line); }
.raw-evaluation summary { padding: 15px 0; cursor: pointer; color: var(--muted); font-size: 12px; }
.raw-evaluation pre { max-height: 420px; overflow: auto; white-space: pre-wrap; color: #c9c7c0; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.posting-copy { margin-top: 44px; border: 1px solid var(--line); }
.posting-copy summary { padding: 16px; cursor: pointer; color: var(--muted); }
.posting-copy pre { padding: 24px; max-height: 520px; overflow: auto; white-space: pre-wrap; color: #c9c7c0; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.action-result { min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
.action-result h2 { margin-bottom: 3px; }
.action-result .detail-link { margin-top: 18px; }
footer { padding: 22px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 20px; color: var(--dim); border-top: 1px solid var(--line); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 760px) {
  .masthead { height: auto; min-height: 72px; padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
  .masthead-meta { max-width: 100%; flex-wrap: wrap; gap: 12px; }
  .workspace-switcher { min-width: 0; max-width: 100%; }
  .workspace-switcher select { max-width: 100%; }
  .local-badge { display: none; }
  main { width: min(100% - 28px, 1180px); padding-top: 48px; }
  .review-heading, .signal-grid { grid-template-columns: 1fr; gap: 20px; }
  .review-note { max-width: 500px; }
  .opportunity-card { padding: 24px 20px; }
  .card-actions, .detail-hero { align-items: stretch; flex-direction: column; }
  .honesty-heading { flex-direction: column; }
  .honesty-status { text-align: left; }
  .honesty-violation { grid-template-columns: 1fr; }
  .card-actions form { flex-wrap: wrap; }
  .detail-link { padding: 8px 0; }
  .dimension-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .opportunity-card { animation: rise .36s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* ── Triage console (dashboard) ───────────────────────────────────────────
   Dense, keyboard-first decision surface. One row expanded at a time; the
   collapsed rows stay one line so the whole queue fits on one screen. */
.console { display: flex; flex-direction: column; gap: 18px; }

.statusbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid var(--line); background: var(--surface);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.statusbar b { color: var(--ink); font-size: 15px; margin-right: 5px; }
.stat-primary b { color: var(--acid); }
.statusbar .muted b { color: var(--dim); }
.keyhint { margin-left: auto; color: var(--dim); text-transform: none; letter-spacing: 0; }
.keyhint kbd {
  display: inline-block; padding: 1px 5px; margin: 0 1px; border: 1px solid var(--line);
  border-radius: 3px; background: var(--surface-2); color: var(--muted); font-size: 11px;
}

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row {
  border: 1px solid var(--line); border-left: 3px solid var(--dim);
  background: var(--surface); outline: none; transition: border-color .12s ease;
}
.row:focus-visible { border-color: var(--muted); }
.row.is-open { border-left-color: var(--acid); background: var(--surface-2); }

.row-head {
  display: grid; align-items: baseline; gap: 12px; padding: 11px 14px; cursor: pointer;
  grid-template-columns: 74px 34px minmax(0, 1.6fr) minmax(0, .8fr) auto auto;
}
.row-head > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em;
  text-align: center; padding: 4px 0; color: var(--bg); background: var(--dim);
}
.badge-must, .badge-strong { background: var(--acid); }
.badge-stretch { background: var(--amber); }
.badge-maybe { background: #3e514a; color: var(--ink); }
.badge-low, .badge-no { background: var(--surface-2); color: var(--dim); }
.row-score { color: var(--muted); font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.row-title { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.row-company { color: var(--acid); font-size: 14px; }
.row-comp, .row-meta {
  color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.row-meta { color: var(--dim); }

.row-body { display: none; padding: 0 14px 14px 14px; }
.row.is-open .row-body { display: block; }
.why { margin: 0 0 8px; color: #d2cfc7; font-size: 14px; line-height: 1.5; max-width: 78ch; }
.comp-note { margin: 0 0 12px; color: var(--amber); font-size: 13px; max-width: 78ch; }
.signals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-bottom: 14px; }
.sig { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sig li { font-size: 12.5px; color: #cbc8c0; padding-left: 16px; position: relative; }
.sig li::before { position: absolute; left: 0; font-weight: 700; }
.sig-plus li::before { content: "+"; color: var(--acid); }
.sig-minus li::before { content: "−"; color: var(--amber); }

.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act { min-height: 32px; padding: 0 13px; font-size: 13px; font-weight: 650; }
.act-yes { color: #161a12; background: var(--acid); border-color: var(--acid); }
.act-no:hover { border-color: var(--red); }
.reason {
  min-height: 32px; padding: 0 8px; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px;
}
.actions .detail { margin-left: auto; color: var(--muted); font-size: 12px; }

.clear-queue {
  padding: 34px; border: 1px dashed var(--line); background: rgba(255,255,255,.015);
  color: var(--muted);
}
.clear-queue b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 18px; }

.flight { border-top: 1px solid var(--line); padding-top: 16px; }
.flight h2 {
  margin: 0 0 10px; color: var(--muted);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em; text-transform: uppercase;
}
.flight ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.flight li {
  display: grid; align-items: baseline; gap: 12px; padding: 8px 10px;
  grid-template-columns: 88px minmax(0, 1.4fr) minmax(0, .7fr) 1fr auto;
  background: var(--surface); font-size: 13px;
}
.flight li > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstate {
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
}
.pstate-prepared, .pstate-offer { color: var(--acid); }
.pstate-applied, .pstate-responded, .pstate-interviewing { color: var(--amber); }
.pcompany { color: var(--muted); }
.pnext { color: var(--dim); font-size: 12px; }
.pblocked { color: var(--red); }
.pdays { color: var(--dim); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 860px) {
  .row-head { grid-template-columns: 68px auto 1fr; row-gap: 4px; }
  .row-company, .row-comp, .row-meta { grid-column: 2 / -1; }
  .signals { grid-template-columns: 1fr; }
  .keyhint { display: none; }
  .flight li { grid-template-columns: 1fr; row-gap: 2px; }
}

/* A decided row: collapsed, dimmed, stays in place so the queue doesn't reflow. */
.row-done { border-left-color: var(--dim); opacity: .55; }
.row-done .row-head { cursor: default; }
.badge-done { background: var(--dim); color: var(--bg); }

/* Tier disclosure: full inventory available, none of it demanding attention. */
.tier { border: 1px solid var(--line); background: var(--surface); }
.tier > summary {
  padding: 11px 14px; cursor: pointer; color: var(--muted);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em;
  text-transform: uppercase; list-style: none;
}
.tier > summary::-webkit-details-marker { display: none; }
.tier > summary::before { content: "▸ "; color: var(--dim); }
.tier[open] > summary::before { content: "▾ "; }
.tier > summary b { color: var(--ink); font-weight: 650; }
.tier > summary span { color: var(--acid); margin: 0 4px; }
.tier-quiet > summary b { color: var(--muted); }
.queue-sub { padding: 0 8px 8px; gap: 3px; }
.queue-sub .row { border-left-width: 2px; }
.wild-note { margin: 0 0 10px; color: var(--blue); font-size: 13px; max-width: 78ch; }
.funnel {
  list-style: none; margin: 0; padding: 4px 14px 14px; display: flex; flex-wrap: wrap;
  gap: 6px 22px; color: var(--dim); font-size: 12.5px;
}
.funnel b { color: var(--muted); font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── Detail page: second look, same discipline ───────────────────────────── */
.detail { display: flex; flex-direction: column; gap: 16px; }
.detail-bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: rgba(18,20,19,.94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); flex-wrap: wrap;
}
.detail-bar .back { color: var(--muted); font-size: 18px; text-decoration: none; }
.detail-id { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.detail-id b { font-size: 15px; font-weight: 650; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-id span { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase; overflow-wrap: anywhere; white-space: normal; line-height: 1.6; }
.detail-acts { display: flex; gap: 6px; }
.act-open { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  background: var(--surface-2); text-decoration: none; font-size: 13px; font-weight: 650; }
.detail-state { color: var(--dim); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase; letter-spacing: .1em; }

.eval { border: 1px solid var(--line); background: var(--surface); }
.eval-alt { opacity: .92; }
.eval-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.eval-head .badge { padding: 4px 8px; }
.eval-score { color: var(--acid); font: 22px ui-monospace, SFMono-Regular, Menlo, monospace; }
.eval-strategy { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase; letter-spacing: .1em; }
.eval-prov { margin-left: auto; color: var(--dim);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }

.eval-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr); }
.eval-main { padding: 18px 16px; min-width: 0; }
.eval-rail { padding: 18px 16px; border-left: 1px solid var(--line); background: rgba(0,0,0,.16); }
.eval-main h3, .eval-rail h3 {
  margin: 18px 0 8px; color: var(--muted);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em; text-transform: uppercase;
}
.eval-rail h3:first-child, .eval-main h3:first-child { margin-top: 0; }
.reasoning { color: #d2cfc7; font-size: 14.5px; line-height: 1.62; max-width: 76ch; }
.reasoning h4 { margin: 18px 0 6px; color: var(--muted);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em; text-transform: uppercase; }
.reasoning h4:first-child { margin-top: 0; }
.reasoning p { margin: 0 0 9px; }
.reasoning ul { margin: 0 0 10px; padding-left: 18px; }
.reasoning li { margin-bottom: 4px; }
.reasoning strong { color: var(--ink); font-weight: 650; }

.dims { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.dims li { display: grid; grid-template-columns: 1fr 62px 26px; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--muted); cursor: help; }
.dim-name { text-transform: capitalize; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.dim-bar { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: var(--acid); }
.dim-score { color: var(--ink); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right; }
.rail-note { margin: 0 0 10px; color: #cbc8c0; font-size: 12.5px; }
.pkg { color: var(--acid); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase; }
.pkg-blocked { color: var(--red); }
.viol { margin-bottom: 5px; border-left: 2px solid var(--amber); background: var(--surface); }
.viol summary { padding: 7px 9px; cursor: pointer; color: var(--amber); font-size: 11.5px; }
.viol.severity-block { border-left-color: var(--red); }
.viol.severity-block summary { color: var(--red); }
.viol.severity-ats { border-left-color: var(--blue); }
.viol.severity-ats summary { color: var(--blue); }
.viol p { margin: 0 9px 8px; color: #cbc8c0; font-size: 12.5px; }
.viol blockquote { margin: 0 9px 8px; padding-left: 9px; border-left: 2px solid var(--line);
  color: var(--acid); font-size: 12.5px; }
.viol .guide { color: var(--dim); font-style: italic; }
.material-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.material-links a { padding: 4px 8px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none; }
.ev-ids { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.raw-evaluation summary, .posting-copy summary { padding: 10px 16px; cursor: pointer;
  color: var(--dim); font-size: 12px; }
.raw-evaluation { border-top: 1px solid var(--line); }
.raw-evaluation pre { margin: 0; padding: 14px 16px; max-height: 400px; overflow: auto;
  white-space: pre-wrap; color: #b9b7b0; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 900px) {
  .eval-cols { grid-template-columns: 1fr; }
  .eval-rail { border-left: none; border-top: 1px solid var(--line); }
  .detail-bar { position: static; }
}

/* Reviewing is a quick action: the decision leads, the rest waits to be asked for. */
.more-reasoning { margin: 4px 0 14px; }
.more-reasoning summary { cursor: pointer; color: var(--dim);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
  text-transform: uppercase; }
.more-reasoning[open] summary { margin-bottom: 8px; }

/* Only TRANSFERABLE rows carry a note — the transferability argument is the product
   thesis. Everything else is class + evidence ids, which say it without prose. */
.why-transfers { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px;
  line-height: 1.4; }
.evidence-table td:first-child { max-width: 34ch; }

/* Held-back count: visible on purpose. Nothing is hidden, it is queued. */
.stat-waiting b { color: var(--amber); }

/* Posting age: an evergreen req looks identical to a fresh one until you show this. */
.age-stale { color: var(--amber); }

/* Backlog tiers: scanning is a spend decision, so show the size of each choice. */
.tiers { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 9px 14px;
  border: 1px solid var(--line); background: var(--surface); }
.tiers-label { color: var(--dim); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
.pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.pill b { color: var(--acid); font-size: 12px; }
.pill i { color: var(--dim); font-style: normal; }
.pill-old { opacity: .6; }
.pill-old b { color: var(--dim); }

/* A posting that vanished mid-preparation: the loudest thing in the strip, because
   the user is about to spend effort on a role that may no longer exist. */
.listing-gone { color: var(--red); font-weight: 650; }

/* ── Profile editor: the surface a friend meets first ─────────────────────── */
.notice { padding: 10px 14px; border: 1px solid var(--line); font-size: 13px; }
.notice-ok { border-left: 3px solid var(--acid); color: var(--ink); }
.notice-bad { border-left: 3px solid var(--red); color: var(--red); }
.blockers { padding: 14px; }
.blockers b { color: var(--amber); font-size: 13px; }
.blockers ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.blockers li { margin-bottom: 3px; }

.pform { border: 1px solid var(--line); background: var(--surface); padding: 18px; }
.pform h2 { margin: 0 0 4px; font-size: 20px; font-weight: 620; letter-spacing: -.02em; }
.pform h2 small { color: var(--dim); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.pform-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; max-width: 78ch;
  line-height: 1.55; }
.pform-note b { color: var(--acid); }
.fieldrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pform label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 190px;
  color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em; text-transform: uppercase; }
.pform label.wide { flex-basis: 100%; }
.pform input, .pform textarea, .pform select {
  padding: 8px 10px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); font: 14px/1.5 Inter, system-ui, sans-serif;
  text-transform: none; letter-spacing: 0;
}
.pform input:focus, .pform textarea:focus { outline: none; border-color: var(--acid); }
.pform textarea { resize: vertical; width: 100%; }

.evlist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end;
  padding: 12px; background: var(--surface-2); border-left: 3px solid var(--dim); }
.ev-approved { border-left-color: var(--acid); }
.ev-draft { border-left-color: var(--amber); }
.ev-empty { display: block; color: var(--muted); font-size: 13px; border-left-color: var(--line); }
.ev-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.ev-id { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ev-state { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); }
.ev-approved .ev-state { color: var(--acid); }
.ev-draft .ev-state { color: var(--amber); }
.ev-claim { width: 100%; margin-bottom: 6px; font-weight: 600; }
.ev-detail { margin-bottom: 8px; }
.ev-add { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line); }
.ev-add input, .ev-add textarea { width: 100%; }
.rolelist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 5px;
  font-size: 14px; }
.rolelist .muted { font-size: 12px; }
.navlink { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.navlink:hover { color: var(--acid); }
.nav-session { margin: 0; }
button.navlink { min-height: 0; padding: 0; border: 0; background: none; font-weight: inherit; }
.dim-note { color: var(--dim); font-size: 11.5px; margin-top: 8px; }
.ev-todo { color: var(--amber); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em; text-transform: uppercase; }
.pathline { color: var(--blue); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase; letter-spacing: .06em; }

/* Learning panel: proposals live where decisions are made, never applied silently. */
.learning { padding: 4px 14px 14px; }
.proposal { margin-top: 10px; padding: 12px; background: var(--surface-2);
  border-left: 3px solid var(--amber); }
.proposal-head { font-size: 14px; margin-bottom: 6px; }
.proposal-delta { color: var(--acid); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-left: 8px; }
.proposal p { margin: 0 0 6px; color: #cbc8c0; font-size: 13px; }
.proposal-caveat { color: var(--amber) !important; font-size: 12.5px !important; }
.proposal code { display: inline-block; padding: 4px 8px; background: var(--bg);
  border: 1px solid var(--line); color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.rolelist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rolelist li > details { flex: 1 1 auto; min-width: 0; }
.rolelist details > summary { cursor: pointer; padding: 6px 0; }
.rolelist details form { margin-top: 12px; }
.evidence-picker { display: grid; gap: 5px; max-height: 210px; overflow: auto;
  margin: 10px 0 12px; padding: 10px; border: 1px solid var(--line); background: var(--bg); }
.evidence-picker label { display: grid; grid-template-columns: auto 1fr; align-items: start;
  gap: 8px; font-size: 12px; color: var(--text); }
.evidence-picker input { width: auto; margin-top: 2px; }
.inline-del button { min-height: 26px; padding: 0 9px; font-size: 12px; }
.newuser { margin-top: 28px; max-width: 620px; }
.srclist { flex-direction: column; align-items: flex-start; }
.src-from { color: var(--dim); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.proposal-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mergefield { padding: 5px 8px; font-size: 12px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink); }

/* Background jobs: long actions must be visible, not a frozen tab. */
.jobbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--surface); }
.job-running { border-left-color: var(--blue); }
.job-done { border-left-color: var(--acid); }
.job-failed { border-left-color: var(--red); }
/* Finished, but it produced something that must not be used. Not a failure of
   the job, so not red — but never the colour that means ready. */
.job-attention { border-left-color: var(--amber); }
.job-state { font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.job-done .job-state { color: var(--acid); }
.job-failed .job-state { color: var(--red); }
.job-attention .job-state { color: var(--amber); }
.job-label { font-size: 14px; font-weight: 600; }
.job-secs { color: var(--dim); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.job-msg { color: var(--muted); font-size: 13px; margin-left: auto; }
.pillform { display: inline; }
.pill-action { cursor: pointer; border-radius: 999px; min-height: 0; }
.pill-action:hover { border-color: var(--acid); }
.tiers-note { color: var(--dim); font-size: 11px; margin-left: 4px; }

/* --- separate searches, separate rankings (T-22) ------------------------------
   Two strategies are two searches, not two views of one list. The heading exists so
   a decision is always made in the context of the objective that produced the row —
   without it, top picks from searches with different objectives look like one ranking
   the user is expected to reconcile. */
.track + .track { margin-top: 26px; }
.track-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px 7px; border-left: 2px solid var(--acid); background: var(--surface); }
.track-head h2 { margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.track-objective { margin: 0; color: var(--muted); font-size: 12px; flex: 1 1 320px; }
.track-counts { color: var(--dim); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Outcome reporting sits on the in-flight row itself: recording what happened has to
   be as cheap as the decision that started it, or the feedback loop stays theoretical. */
.outcome-actions { display: inline-flex; gap: 5px; flex-wrap: wrap; margin-left: 8px; }
.outcome-actions .act { padding: 2px 8px; font-size: 11px; }

/* --- fill-for-review: every value one keystroke from its box --------------------- */
.filllist { list-style: none; margin: 12px 0 0; padding: 0; }
.fillrow { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px;
  align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.fillhead { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap; }
.fillname { color: var(--dim); font-size: 10px; }
.fillwhy { color: var(--dim); font-size: 11px; margin: 2px 0 4px; }
.fillvalue { width: 100%; background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.fillcopy { align-self: start; min-width: 84px; }
/* Copied rows recede so the eye lands on what is still to do, without hiding
   anything — a value you copied wrongly must remain findable. */
.fillrow.is-copied { opacity: .5; }
.fillrow.is-copied .fillvalue { border-style: dashed; }

/* Where a claim came from, kept beside the claim rather than in a tooltip. */
.provenance { margin: 4px 0 0; color: var(--dim); font-size: 11px; }
.provenance code { color: var(--decorative); }

/* --- guided first run ---------------------------------------------------------- */
.wizsteps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px;
  padding: 0; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.wizsteps li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); }
.wizsteps li a { color: var(--dim); text-decoration: none; }
.wizsteps li.is-done a { color: var(--muted); }
.wizsteps li.is-current { border-color: var(--acid); background: var(--surface-2); }
.wizsteps li.is-current a { color: var(--acid); }
.ev-detail-label { display: block; margin: 12px 0 2px; }
.ev-detail-label textarea { width: 100%; margin-top: 4px; }

/* Onboarding readiness. Four states that become true at different moments, so each
   carries its own word rather than a shared bar: "not yet" is a next step, not a
   failure, and it is never louder than the line explaining what is missing. */
.rstate {
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em;
  text-transform: uppercase; margin-right: 8px;
}
.rstate-yes { color: var(--acid); }
.rstate-no { color: var(--amber); }
.rstate-opt { color: var(--dim); }
.pform-sub {
  margin: 18px 0 6px; color: var(--muted);
  font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em;
}
.pform-sub small { color: var(--dim); font-weight: 400; margin-left: 6px; }
/* One line per statement. `.funnel` wraps short chips into a row, which runs two
   different sentences together as soon as the text is a sentence rather than a count. */
.rlist { list-style: none; margin: 0; padding: 4px 0 10px; color: var(--dim); font-size: 13px; }
.rlist li { padding: 3px 0; max-width: 92ch; }
.rlist b { color: var(--muted); font-weight: 600; }

/* A search nothing can feed. Loud enough to notice, because an empty queue every day
   otherwise reads as "the market has nothing for you" — a conclusion the data does not
   support and the user has no way to check. */
.starved {
  margin: 10px 14px 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
  background: var(--surface-2); font-size: 13px; color: var(--muted);
}
.starved b { color: var(--ink); }
.starved p { margin: 8px 0 0; max-width: 88ch; }
.starved-firms span {
  display: inline-block; margin: 4px 6px 0 0; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--dim);
}
.starved-why { margin: 10px 0 0; padding-left: 18px; color: var(--dim); }
.starved-why li { padding: 3px 0; max-width: 88ch; }
.starved-why b { color: var(--muted); font-weight: 600; }

/* Getting a stale queue back. The price sits on the button because this is a spend
   decision, and the sentence explaining the price gets its own line rather than
   trailing off the end of one. */
.refresh-all { margin: 10px 0 4px; }
.refresh-all .act i { font-style: normal; font-weight: 400; opacity: .75; }
.refresh-note {
  display: block; margin: 6px 0 0; max-width: 84ch;
  color: var(--dim); font-size: 12.5px;
}

/* Sign-in and invitation. One column, because a page with two fields on it should not
   look like a dashboard with the dashboard missing. */
.console-narrow { max-width: 46rem; }

/* A secret shown once. Big, monospaced and selectable, because the alternative is
   someone transcribing it by eye and blaming the extension. */
.credential-once { display: block; }
.credential {
  display: block; margin: 8px 0; padding: 9px 11px; user-select: all;
  border: 1px solid var(--line); background: var(--bg); color: var(--acid);
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all;
}
.inline-form { display: inline; margin-left: 8px; }
.act-quiet { padding: 1px 8px; font-size: 11px; }
