/* Lookout: bright and airy. One light theme everywhere (no OS-dependent switching). One file, no framework. */
:root {
  color-scheme: light;
  --bg: #f5f8fb; --surface: #ffffff; --ink: #14213d; --muted: #66758c; --line: #e5eaf1; --soft: #eef2f7;
  --accent: #0b5a86; --accent-strong: #0a3a5c; --accent-ink: #0b5a86; --accent-soft: #e6f1f8; --on-accent: #ffffff;
  --signal: #1a7fb0; --warn: #b45309; --warn-soft: #fef3c7; --bad: #dc2626; --bad-soft: #fee2e2;
  --t-strong: #059669; --t-good: #0d9488; --t-fair: #d97706; --t-weak: #e11d48; --t-none: #94a3b8;
  --shadow: 0 1px 2px rgba(20, 33, 61, .04), 0 6px 20px -10px rgba(20, 33, 61, .12);
  --radius: 14px;
  --serif: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: var(--sans);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mast-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--ink); }
.brand .blip { fill: #f0a030; stroke: none; }
.topnav { display: flex; gap: 4px; align-self: stretch; }
.topnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); font-weight: 650; }
.topnav a:hover { color: var(--ink); text-decoration: none; }
.topnav a[aria-current] { color: var(--ink); }
.topnav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; border-radius: 3px 3px 0 0; background: var(--signal); }
.topnav .count { font-size: 11.5px; font-weight: 800; background: var(--signal); color: var(--on-accent); padding: 0 7px; border-radius: 999px; line-height: 18px; }
.mast-act { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.refresh { display: flex; align-items: center; gap: 12px; margin: 0; }
.refresh .when { font-size: 12.5px; color: var(--muted); }
details.me { position: relative; }
details.me > summary { list-style: none; cursor: pointer; }
details.me > summary::-webkit-details-marker { display: none; }
.avatar-me { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-family: var(--serif); }
details.me .menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 10px; z-index: 40; }
details.me .menu b { overflow: hidden; text-overflow: ellipsis; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 26px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.wrap.narrow { max-width: 900px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; line-height: 1.2; white-space: nowrap; color: var(--ink); }
.btn:hover { text-decoration: none; background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
form.inline { display: inline; margin: 0; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=search], .field input:not([type]), .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 3px 0; }
.check input, .radio input { accent-color: var(--accent-ink); width: 16px; height: 16px; }
.stack { display: grid; gap: 14px; }

/* ---------- cards and tags ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--soft); color: var(--muted); }
.tag.new { background: var(--signal); color: var(--on-accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.reqchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rq { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--soft); color: var(--muted); }
.rq .i { width: 12px; height: 12px; }
.rq.met { background: color-mix(in srgb, var(--signal) 16%, transparent); color: #047857; }
.rq.partial { background: var(--warn-soft); color: var(--warn); }
.rq.missing { background: var(--bad-soft); color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.progress { height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--signal); border-radius: 999px; }
.empty { text-align: center; padding: 52px 24px; display: grid; gap: 12px; justify-items: center; }
.empty h2 { font-size: 24px; } .empty p { color: var(--muted); max-width: 48ch; }
.empty .art { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); color: var(--ink); display: grid; place-items: center; background: repeating-radial-gradient(circle, transparent 0 9px, var(--line) 10px 11px); }
.empty .art .i { width: 26px; height: 26px; }

/* ---------- the briefing ---------- */
.briefing { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; padding: 30px 32px; background:
  repeating-radial-gradient(circle at 104% -30%, transparent 0 46px, color-mix(in srgb, var(--ink) 8%, transparent) 47px 48px), var(--surface); }
.briefing h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin: 6px 0 8px; }
.briefing .lede { color: var(--muted); }
.stats { display: flex; gap: 30px; margin-top: 22px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brief-side { display: grid; gap: 14px; align-content: center; font-size: 14px; position: relative; }
.brief-side .row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.brief-side .k { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.setup { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--signal) 70%, var(--line)); background: color-mix(in srgb, var(--signal) 10%, var(--surface)); }
.setup .progress { width: 120px; }

/* ---------- the pipeline ---------- */
.pipeline { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.stage { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 12px 34px 12px 26px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; margin-right: -14px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%); }
.stage:first-child { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); padding-left: 20px; border-radius: 10px 0 0 10px; }
.stage .n { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1; }
.stage:hover { text-decoration: none; background: var(--soft); color: var(--ink); }
.stage[aria-current] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.stage[aria-current] .n, .stage[aria-current] .lbl { color: var(--on-accent); }
.pipeline .aside { margin-left: auto; align-self: center; display: flex; gap: 6px; align-items: center; font-weight: 700; padding: 8px 12px; color: var(--muted); border-radius: 8px; }
.pipeline .aside:hover { color: var(--ink); background: var(--soft); text-decoration: none; }
.pipeline .aside[aria-current] { color: var(--ink); background: var(--soft); }
.pipeline .aside .n { font-family: var(--serif); color: var(--ink); }

/* ---------- feed layout ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.refine > form { display: grid; gap: 18px; }
.refine { position: sticky; top: 84px; display: grid; gap: 18px; padding: 20px; }
.refine fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 4px; }
.refine legend { padding: 0; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.refine select, .refine input[type=search] { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.refine .reset { font-size: 13px; }
.seg { display: grid; grid-auto-flow: column; background: var(--soft); border-radius: 8px; padding: 3px; gap: 2px; }
.seg label { text-align: center; padding: 6px 4px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--signal); }
.filter-toggle { display: none; }
.feed { display: grid; gap: 14px; min-width: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- job rows: the signal sits on the left ---------- */
.job { display: grid; grid-template-columns: 124px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.job:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
:where(.signal, .scorecard, .job) { --tone: var(--t-none); }
[data-tone=strong] { --tone: var(--t-strong); } [data-tone=good] { --tone: var(--t-good); } [data-tone=fair] { --tone: var(--t-fair); }
[data-tone=weak] { --tone: var(--t-weak); } [data-tone=none] { --tone: var(--t-none); }
.signal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; text-align: center; color: var(--tone);
  background: color-mix(in srgb, var(--tone) 9%, var(--surface)); border-right: 1px solid color-mix(in srgb, var(--tone) 24%, var(--line)); }
.signal:hover { text-decoration: none; }
.signal .num.word { font-size: 24px !important; letter-spacing: -.01em; }
.signal .num { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.signal .num small { font-size: 16px; font-weight: 600; margin-left: 1px; opacity: .8; }
.meter { display: flex; flex-direction: column-reverse; gap: 2px; }
.meter i { display: block; width: 40px; height: 4px; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent); }
.meter i.on { background: var(--tone); border-color: var(--tone); animation: rise .5s ease-out both; animation-delay: calc(var(--n) * 35ms); }
@keyframes rise { from { transform: scaleX(.15); opacity: 0; } }
.signal .word { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tone); }
.signal .sub { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.job .body { padding: 18px 22px 14px; min-width: 0; display: grid; gap: 12px; }
.job .top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
  background: hsl(var(--h, 30) 40% 16%); color: hsl(var(--h, 30) 85% 76%); border: 1px solid hsl(var(--h, 30) 40% 28%); }
.job h2 { font-size: 21px; line-height: 1.22; }
.job h2 a { color: var(--ink); }
.job h2 a:hover { color: var(--accent-ink); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 650; }
.meta span + span::before { content: "\00b7"; margin-right: 14px; color: var(--line); font-weight: 900; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.why { margin: 0; position: relative; padding-left: 20px; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.why::before { content: "\201C"; position: absolute; left: 0; top: -4px; font-size: 30px; line-height: 1; color: var(--tone, var(--t-none)); font-style: normal; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.act:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.act.on { color: var(--violet); } .act.on .i { fill: currentColor; }
.acts .go { margin-left: auto; display: flex; gap: 8px; }

/* ---------- job page: the match report sits left of the role ---------- */
.dossier { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
.report { position: sticky; top: 84px; display: grid; gap: 16px; }
.report .scorecard { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 28%, var(--line));
  background: color-mix(in srgb, var(--tone) 8%, var(--surface)); box-shadow: var(--shadow); }
.scorecard .num { font-family: var(--serif); font-size: 68px; font-weight: 600; line-height: .95; letter-spacing: -.04em; }
.scorecard .num small { font-size: 26px; margin-left: 2px; opacity: .8; }
.scorecard .meter { flex-direction: row; gap: 4px; }
.scorecard .meter i { flex: 1; width: auto; height: 10px; border-radius: 3px; }
.scorecard .word { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scorecard .sub { color: var(--muted); font-size: 13.5px; }
.list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.list li .i { margin-top: 3px; width: 16px; height: 16px; }
.list.good .i { color: var(--t-strong); } .list.gap .i { color: var(--t-fair); } .list.bad .i { color: var(--t-weak); } .list.next .i { color: var(--muted); }
.role { display: grid; gap: 20px; min-width: 0; }
.role .head { display: grid; gap: 16px; }
.role h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; }
.role .top { display: flex; gap: 16px; align-items: flex-start; }
.role .meta { font-size: 15px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.crumb:hover { color: var(--ink); text-decoration: none; }
.stagebar { display: inline-flex; padding: 3px; background: var(--soft); border-radius: 10px; gap: 2px; flex-wrap: wrap; }
.stagebar button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 700; color: var(--muted); cursor: pointer; }
.stagebar button:hover { color: var(--ink); }
.stagebar button.on { background: var(--accent); color: var(--on-accent); }
.desc { white-space: pre-wrap; line-height: 1.7; font-size: 15.5px; }
.desc-wrap.clamped { max-height: 360px; overflow: hidden; position: relative; }
.desc-wrap.clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 100px; background: linear-gradient(transparent, var(--surface)); }
.more-btn { margin-top: 12px; border: 0; background: none; padding: 0; font-weight: 800; color: var(--accent-ink); cursor: pointer; }

/* ---------- my search: a timeline ---------- */
.timeline { display: grid; gap: 18px; position: relative; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -22px; width: 2px; background: var(--line); }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; background: var(--surface); border: 2px solid var(--line); color: var(--muted); z-index: 1; }
.step.done .num { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.step .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.step .head h2 { font-size: 22px; }
.step .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--ink) 28%, var(--line)); border-radius: 12px; background: var(--soft); flex-wrap: wrap; }
.file .grow { flex: 1; min-width: 160px; }
.file input[type=file] { max-width: 100%; font-size: 13px; color: var(--muted); }
.file input[type=file]::file-selector-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; margin-right: 10px; }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 46px; cursor: text; }
.tagbox:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.tagbox .chip button { all: unset; cursor: pointer; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--muted); }
.tagbox .chip button:hover { background: var(--line); color: var(--ink); }
.tagbox input { flex: 1; min-width: 160px; border: 0; outline: none; background: transparent; padding: 4px 6px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); font-weight: 600; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.choice input { accent-color: var(--accent-ink); width: 17px; height: 17px; }

/* ---------- companies and activity ---------- */
.ledger { display: grid; }
.co-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; border-top: 1px solid var(--line); }
.co-row:first-child { border-top: 0; }
.co-row .name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.co-row .url { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-row.paused { opacity: .55; }
.co-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.co-row details { grid-column: 2 / -1; }
.co-row details form { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.status-ok { color: var(--t-strong); font-weight: 650; } .status-bad { color: var(--bad); font-weight: 650; }
.log { font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: #0b1119; color: #d7e3ee; padding: 16px; border-radius: 12px; max-height: 480px; overflow: auto; white-space: pre-wrap; }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth .hero { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; color: #f0e9d8; background: #0f1b2e; }
.auth .hero::before { content: ""; position: absolute; inset: -20%; background: repeating-radial-gradient(circle at 30% 70%, transparent 0 52px, rgba(240, 233, 216, .09) 53px 54px); }
.auth .hero::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #e9a23b; left: 58%; top: 34%; box-shadow: 0 0 0 8px rgba(233, 162, 59, .22), 0 0 0 22px rgba(233, 162, 59, .1); animation: ping 3s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(233, 162, 59, .5), 0 0 0 0 rgba(233, 162, 59, .25); } 100% { box-shadow: 0 0 0 26px rgba(233, 162, 59, 0), 0 0 0 54px rgba(233, 162, 59, 0); } }
.auth .hero > * { position: relative; z-index: 1; }
.auth .hero .brand { color: #f0e9d8; } .auth .hero .brand svg { color: #f0e9d8; }
.auth .hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; max-width: 14ch; }
.auth .hero p { color: #b6c0cf; max-width: 38ch; margin-top: 14px; font-size: 17px; }
.auth .formside { display: grid; place-items: center; padding: 32px; }
.auth form { width: min(380px, 100%); display: grid; gap: 18px; }
.auth form h2 { font-size: 30px; }

/* ---------- small screens ---------- */
.tabbar { display: none; }
@media (max-width: 1020px) {
  .briefing { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .refine { position: static; }
  .filter-toggle { display: inline-flex; }
  .js .refine:not(.open) { display: none; }
  .dossier { grid-template-columns: 1fr; }
  .report { position: static; }
  .report .scorecard { grid-template-columns: auto 1fr; align-items: center; gap: 8px 20px; }
  .report .scorecard .meter, .report .scorecard .word, .report .scorecard .sub { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topnav, .refresh .when { display: none; }
  .mast-in { padding: 8px 14px; gap: 12px; }
  .wrap { padding: 16px 14px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); min-height: 56px; }
  .tabbar a[aria-current] { color: var(--ink); box-shadow: inset 0 3px 0 var(--signal); }
  .tabbar a:hover { text-decoration: none; }
  .briefing { padding: 22px 20px; } .stats { gap: 20px; } .stat b { font-size: 30px; }
  .stage { padding: 10px 26px 10px 20px; } .stage .n { font-size: 20px; }
  .job { grid-template-columns: 1fr; }
  .signal { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--tone) 24%, var(--line)); }
  .signal .num { font-size: 30px; } .meter { flex-direction: row; } .meter i { width: 12px; height: 16px; } .signal .sub { display: none; } .signal .word { margin-left: auto; }
  .job .top { grid-template-columns: auto minmax(0, 1fr); } .job .flags { grid-column: 1 / -1; justify-content: flex-start; }
  .acts .go { margin-left: 0; width: 100%; } .acts .go .btn { flex: 1; }
  .act, .btn, .icon-btn { min-height: 44px; }
  .step { grid-template-columns: minmax(0, 1fr); } .step::before { display: none; } .step .num { width: 36px; height: 36px; font-size: 17px; }
  .co-row { grid-template-columns: 46px minmax(0, 1fr); } .co-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .auth { grid-template-columns: 1fr; } .auth .hero { padding: 32px 24px; min-height: 260px; } .auth .hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- progress ---------- */
.runbar { height: 3px; background: color-mix(in srgb, var(--signal) 18%, transparent); }
.runbar i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .6s ease; }
.pbar { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--signal)); border-radius: 999px; transition: width .35s ease; }
.pcard { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); display: grid; gap: 8px; }
.pwrap { margin-top: 12px; display: grid; gap: 6px; }

.refresh button[aria-busy] { opacity: .75; cursor: progress; }
.refresh button[aria-busy] .i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.runbar { height: 4px; }

/* ---------- added jobs and outcomes ---------- */
.pipeline .add-job { margin-left: auto; align-self: center; }
.pipeline .add-job + .aside { margin-left: 8px; }
.flash.err { background: var(--bad); color: #fff; }
.outcomes { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.outcomes .act.on { color: var(--t-strong); font-weight: 800; }
.sumbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; padding: 14px 20px; }
.sumbar b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.sumbar span { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sumbar .btn { margin-left: auto; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.glance h3 { margin-bottom: 4px; }

/* ---------- cover letter ---------- */
.paper { max-width: 65ch; margin: 0 auto; padding: 32px 36px; background: #fffefb; color: #1c1b18; border: 1px solid #e4e0d6; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 8px 24px rgba(13, 27, 46, .08); font: 16px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif; overflow-wrap: anywhere; }
.paper p { margin: 0 0 1em; }
.paper .from { margin-bottom: 1.4em; color: #4a4740; font-size: 14.5px; line-height: 1.5; }
.paper .close { margin: 1.4em 0 0; }
.paper .sig { display: inline-block; margin-top: 1.6em; }

@media (max-width: 560px) { .paper { padding: 20px 18px; font-size: 15.5px; } }
.letter-ok { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 650; font-size: 14px; color: var(--accent-ink); }
.letter-warn { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.letter-warn h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.letter-warn ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; overflow-wrap: anywhere; }
.letter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.letter-more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.letter-more > summary, .letter-ins > summary { cursor: pointer; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; list-style: none; width: fit-content; }
.letter-more > summary::-webkit-details-marker, .letter-ins > summary::-webkit-details-marker { display: none; }
.letter-ins > summary { color: var(--accent-ink); font-size: 14px; }
.letter-more > summary:hover, .letter-ins > summary:hover { color: var(--ink); }
.letter-more > form, .letter-more > .letter-make { margin-top: 12px; }
.letter-ins .field { margin-top: 10px; }
#letter .field textarea { font-family: inherit; font-size: 14.5px; }
#letter #letter-body { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.6; }
#letter textarea.sr { height: 1px; }
#letter .btn.primary .i, #letter .btn .i { width: 16px; height: 16px; }
#letter a.btn:not(.primary) { color: var(--ink); }

/* ---------- tailored resume ---------- */
#resume-draft .btn .i { width: 16px; height: 16px; }
#resume-draft a.btn:not(.primary) { color: var(--ink); }
#resume-draft .field textarea { font-family: inherit; font-size: 14.5px; }
.rs-summary { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.rs-summary h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 4px; }
.rs-counts { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; }
.rs-counts b { color: var(--accent-ink); font-size: 19px; }
.rs-list > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--accent-ink); display: flex; align-items: center; gap: 8px; list-style: none; width: fit-content; }
.rs-list > summary::-webkit-details-marker { display: none; }
.rs-list > summary .i { width: 14px; height: 14px; transition: transform .15s; }
.rs-list[open] > summary .i { transform: rotate(90deg); }
.rs-list > summary:hover { color: var(--ink); }
.rs-changes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.rs-change { padding: 10px 12px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.rs-change[data-kind="removed"] { border-left-color: var(--warn); }
.rs-change[data-kind="reworded"] { border-left-color: var(--signal); }
.rs-change[data-kind="moved"] { border-left-color: var(--accent-ink); }
.rs-change > .tag { margin-bottom: 6px; }
.rs-change p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.rs-struck { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--warn); }
.rs-reason { margin-top: 6px !important; font-style: italic; }
.rs-diff { display: grid; gap: 6px; }
.rs-diff p { padding: 6px 10px; border-radius: 8px; }
.rs-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.rs-before { background: var(--bad-soft); color: var(--muted); }
.rs-before .rs-label { color: var(--bad); }
.rs-after { background: var(--accent-soft); color: var(--ink); }
.rs-after .rs-label { color: var(--accent-ink); }
.rs-draft-note { margin: 0 0 14px; padding-left: 12px; border-left: 3px solid var(--signal); font-size: 14.5px; }

/* ---------- v17: bright, airy, compact ---------- */
body { background: var(--bg); letter-spacing: -.003em; }
h1, h2 { font-weight: 650; letter-spacing: -.02em; }
.brand { font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.brand svg { width: 26px; height: 26px; color: var(--accent-strong); }
.brand .blip { fill: #f0a030; }
.mast { background: rgba(255, 255, 255, .85); }
.mast-in { min-height: 54px; padding: 6px 24px; gap: 24px; }
.topnav a[aria-current] { color: var(--accent-ink); }
.topnav a[aria-current]::after { bottom: -8px; background: var(--accent); }
.avatar-me { background: var(--accent-soft); color: var(--accent-ink); width: 32px; height: 32px; }
.wrap { padding: 18px 24px 72px; gap: 14px; }
.card { padding: 18px; }
.btn { border-radius: 10px; background: var(--surface); }
.btn:hover { border-color: #cbd5e1; background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.flash { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #b7ecd8; }
.flash.err { background: var(--bad-soft); color: var(--bad); border-color: #fecaca; }
.eyebrow, .stat span, .sumbar span, .brief-side .k { font-weight: 700; letter-spacing: .06em; font-size: 11px; }
.field input:focus, .field select:focus, .field textarea:focus, .tagbox:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.tag { border-radius: 6px; font-size: 11px; letter-spacing: .02em; text-transform: none; font-weight: 700; }
.tag.new { background: var(--accent-soft); color: var(--accent-ink); }
.tag.plain { background: var(--soft); color: var(--muted); font-weight: 600; }
.topnav .count { background: var(--accent); color: #fff; }
.progress > i, .runbar i { background: var(--accent); }
.pbar i { background: linear-gradient(90deg, var(--accent), #34d399); }
.log { background: #0f172a; }
.act.on { color: var(--bad); }
.stage[aria-current], .stagebar button.on { background: var(--accent); color: #fff; }

/* briefing: one slim strip */
.briefing { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 28px; padding: 16px 22px; align-items: center; background: linear-gradient(100deg, #e6f1f8, #eef6ff 70%, #fff); border-color: #cfe0ef; }
.briefing > div:first-child { display: contents; }
.briefing .eyebrow { display: none; }
.briefing h1 { font-size: clamp(19px, 2.2vw, 24px); margin: 0; line-height: 1.2; grid-column: 1; }
.briefing .lede { font-size: 14px; margin: 0; max-width: none; grid-column: 1; }
.stats { margin-top: 0; gap: 26px; grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
.stat b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--accent-ink); }
.brief-side { display: none; }

/* setup checklist: says exactly what's left */
.setup { display: grid; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid #fde68a; background: #fffbeb; }
.setup-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.setup .progress { width: 110px; background: #fde68a55; }
.setup .progress > i { background: #f59e0b; }
.setup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.setup li a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #fde68a; color: var(--ink); font-weight: 650; font-size: 13.5px; }
.setup li a:hover { text-decoration: none; border-color: #f59e0b; }
.setup li a .i { width: 14px; height: 14px; color: #d97706; }

/* tabs: simple pills */
.pipeline { gap: 6px; align-items: center; }
.stage { margin: 0; clip-path: none !important; border-radius: 999px !important; padding: 7px 16px !important; gap: 8px; border-color: var(--line); }
.stage .n { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.stage[aria-current] { box-shadow: 0 4px 14px -6px var(--accent); border-color: var(--accent); }
.stage[aria-current] .n { background: rgba(255, 255, 255, .25); color: #fff; }
.stage[aria-current] .lbl { color: #fff; }
.pipeline .aside .n { font-weight: 700; }

.layout { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.refine { top: 70px; padding: 16px; gap: 14px; }
.refine > form { gap: 14px; }
.refine select, .refine input[type=search] { background: var(--surface); }
.seg label:has(input:checked) { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 3px rgba(20, 33, 61, .14); }
.feed { gap: 12px; }

/* job cards: details on the left, score tile on the right */
.job { grid-template-columns: minmax(0, 1fr) 132px; }
.job:hover { transform: none; border-color: #bcd3e4; box-shadow: 0 10px 28px -14px rgba(11, 90, 134, .35); }
.job .body { padding: 16px 20px 12px; gap: 10px; }
.job .top { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.job .flags { justify-content: flex-start; margin-bottom: 4px; }
.job h2 { font-size: 20px; line-height: 1.25; }
.job h2 a { color: var(--ink); }
.job h2 a:hover { color: var(--accent-ink); text-decoration: none; }
.job .meta { margin-top: 2px; font-size: 14px; }
.facts { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 18px; font-size: 14px; color: var(--ink); }
.facts li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.facts .i { width: 16px; height: 16px; color: var(--muted); }
.facts .k-contract { color: var(--warn); font-weight: 700; }
.why { font-family: var(--sans); font-style: normal; font-size: 13.5px; line-height: 1.5; padding-left: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.why::before { display: none; }
.acts { padding-top: 8px; }
.act { padding: 6px 10px; font-size: 13.5px; }

/* score tile: percentage only, tinted by strength */
.signal { order: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px; margin: 10px; border-radius: 12px; border: 0;
  background: color-mix(in srgb, var(--tone) 10%, #fff); color: var(--tone); }
.signal .num { font-family: var(--sans); font-size: 38px; font-weight: 750; letter-spacing: -.04em; line-height: 1; text-shadow: none; }
.signal .num small { font-size: 16px; font-weight: 700; margin-left: 1px; }
.signal .cap { font-size: 12px; font-weight: 650; opacity: .8; }

.scorecard { display: grid; justify-items: center; gap: 2px; padding: 20px; background: color-mix(in srgb, var(--tone) 10%, #fff); border: 1px solid color-mix(in srgb, var(--tone) 22%, var(--line)); text-align: center; }
.scorecard .num { font-family: var(--sans); font-size: 60px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.scorecard .cap { font-size: 13px; font-weight: 650; opacity: .8; }
.report { top: 70px; }
.step.done .num { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.paper { background: #fffefb; color: #1c1b18; }
.paper .from { color: #4a4740; }
.auth .hero { background: linear-gradient(135deg, #e6f1f8, #dbeafe); color: var(--ink); }
.auth .hero::before { background: repeating-radial-gradient(circle at 30% 70%, transparent 0 52px, rgba(11, 90, 134, .14) 53px 54px); }
.auth .hero::after { background: var(--accent); }
.auth .hero .brand, .auth .hero .brand svg { color: var(--accent-ink); }
.auth .hero p { color: var(--muted); }

@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .briefing { grid-template-columns: 1fr; }
  .stats, .briefing h1, .briefing .lede { grid-column: 1; grid-row: auto; }
}
@media (max-width: 720px) {
  .mast-in { min-height: 48px; padding: 6px 12px; }
  .wrap { padding: 12px 12px 84px; gap: 10px; }
  .briefing { padding: 12px 14px; }
  .briefing .lede { display: none; }
  .stats { gap: 20px; } .stat b { font-size: 20px; }
  .setup { padding: 10px 12px; }
  .setup .progress { display: none; }
  .setup li a { font-size: 13px; padding: 5px 10px; }
  .pipeline { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .pipeline::-webkit-scrollbar { display: none; }
  .pipeline .add-job { display: none; }
  .pipeline .aside { margin-left: 0; }
  .stage { padding: 7px 14px !important; flex: none; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .signal { order: -1; flex-direction: row; justify-content: flex-start; gap: 8px; margin: 10px 12px 0; padding: 6px 12px; border-radius: 10px; align-self: start; width: fit-content; }
  .signal .num { font-size: 22px; } .signal .num small { font-size: 12px; } .signal .cap { font-size: 12px; }
  .job { display: flex; flex-direction: column; }
  .job .body { padding: 8px 14px 8px; }
  .job h2 { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; font-size: 13px; gap: 5px 12px; }
  .acts { flex-wrap: nowrap; gap: 2px; }
  .acts .act { font-size: 0; gap: 0; padding: 0; width: 40px; min-height: 40px; justify-content: center; }
  .acts .act .i { width: 19px; height: 19px; }
  .acts:has(.outcomes) { flex-wrap: wrap; }
  .outcomes { flex-wrap: wrap; border-left: 0; margin-left: 0; padding-left: 0; }
  .acts .outcomes .act { font-size: 12.5px; width: auto; padding: 5px 9px; }
  .acts .go { margin-left: auto; width: auto; } .acts .go .btn { flex: none; }
  .btn, .icon-btn { min-height: 40px; }
  .tabbar { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .tabbar a[aria-current] { color: var(--accent-ink); box-shadow: inset 0 2px 0 var(--accent); }
}

/* ---------- v18: calmer on phones ---------- */
@media (max-width: 720px) {
  .briefing { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
  .briefing h1 { font-size: 16px; }
  .stats { gap: 0; } .stat:not(:nth-child(2)), .stat span { display: none; } .stat b { font-size: 18px; }
  .setup { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
  .setup-head { flex: none; } .setup-head b { font-size: 13px; }
  .setup ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .setup li a { white-space: nowrap; padding: 4px 10px; font-size: 12.5px; }
  .filter-toggle { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
  .job { position: relative; }
  .signal { position: absolute; top: 12px; right: 12px; margin: 0; padding: 3px 10px; background: color-mix(in srgb, var(--tone) 12%, #fff); }
  .signal { flex-direction: row; align-items: baseline; gap: 6px; } .signal .cap { font-size: 11px; font-weight: 700; white-space: nowrap; } .signal .num { font-size: 18px; }
  .job .body { padding: 12px 14px 8px; }
  .job .top { padding-right: 140px; }
  .facts li:nth-child(n+4) { display: none; }
  .why { -webkit-line-clamp: 3; }
}
.wrap > * { min-width: 0; }
@media (max-width: 720px) { .setup { flex-direction: column; align-items: flex-start; gap: 6px; } .setup ul { max-width: 100%; } }
@media (max-width: 720px) { .briefing .stats { display: none; } }

/* ---------- v20: use the whole screen ---------- */
.mast-in, .wrap { max-width: none; }
.mast-in { padding-left: clamp(16px, 2vw, 32px); padding-right: clamp(16px, 2vw, 32px); }
.wrap { padding-left: clamp(16px, 2vw, 32px); padding-right: clamp(16px, 2vw, 32px); }
.wrap.narrow { max-width: 1100px; margin-left: 0; }
.layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
@media (min-width: 1021px) {
  .feed { grid-template-columns: repeat(auto-fill, minmax(620px, 1fr)); align-items: start; gap: 16px; }
  .feed > :not(.job) { grid-column: 1 / -1; }
}

/* ---------- v22: app shell like Jobright: left nav, one ranked list, filters on the right ---------- */
@media (min-width: 1021px) {
  body { padding-left: 224px; }
  .mast { position: fixed; left: 0; top: 0; bottom: 0; width: 224px; border-bottom: 0; border-right: 1px solid var(--line); background: #fff; backdrop-filter: none; display: flex; flex-direction: column; }
  .mast-in { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 14px; flex: 1; min-height: 0; max-width: none; }
  .brand { padding: 0 8px; }
  .topnav { flex-direction: column; align-self: stretch; gap: 2px; }
  .topnav a { padding: 10px 12px; border-radius: 10px; }
  .topnav a:hover { background: var(--soft); }
  .topnav a[aria-current] { background: var(--accent-soft); }
  .topnav a[aria-current]::after { display: none; }
  .topnav .count { margin-left: auto; }
  .mast-act { margin: auto 0 0; flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .refresh { flex-direction: column; align-items: stretch; gap: 8px; }
  .refresh .when { text-align: center; }
  .refresh .btn { width: 100%; min-height: 40px; }
  details.me .menu { right: auto; left: 0; top: auto; bottom: calc(100% + 8px); }
  .runbar { position: absolute; left: 0; right: 0; top: 0; }
  .wrap { padding: 22px clamp(20px, 2.4vw, 40px) 64px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .refine { order: 2; top: 22px; }
  .feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .job { grid-template-columns: minmax(0, 1fr) 150px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job h2 { font-size: 22px; }
  .signal .num { font-size: 44px; }
}

/* ---------- v24: phone and tablet fixes (must come last) ---------- */
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .feed { grid-template-columns: minmax(0, 1fr); }
  .topnav a { white-space: nowrap; }
  .refresh .when { display: none; }
  .facts li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .job .top { padding-right: 0; }
  .job .flags { padding-right: 76px; }
  .signal { top: 14px; right: 14px; }
  .why { overflow-wrap: anywhere; }
}
.facts .loc { min-width: 0; overflow-wrap: anywhere; }  /* a long place list wraps; it is never cut off with an ellipsis */

/* ---------- v25: setup checklist, same on every screen ---------- */
.checklist { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 14px 18px; display: grid; gap: 10px; }
.cl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-head .progress { width: 120px; background: #fde68a66; }
.cl-head .progress > i { background: #f59e0b; }
.cl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cl-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #fde68a99; }
.cl-steps li:first-child { border-top: 0; }
.cl-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #f59e0b; display: grid; place-items: center; }
.cl-steps .done .cl-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.cl-mark .i { width: 13px; height: 13px; stroke-width: 3; }
.cl-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cl-text small { color: var(--muted); font-size: 13px; }
.cl-steps .done .cl-text b { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: #cbd5e1; }
.cl-steps .btn { flex: none; background: #fff; border-color: #fcd34d; }
@media (max-width: 720px) {
  .checklist { padding: 12px 14px; }
  .cl-steps li { flex-wrap: wrap; }
  .cl-steps .btn { margin-left: 34px; }
}
@media (max-width: 720px) {
  .cl-text { flex: 1 1 calc(100% - 40px); }
  .cl-steps .btn { margin-left: 34px; min-height: 34px; padding: 5px 12px; }
  .cl-steps li { padding: 6px 0; gap: 8px 12px; }
  .cl-steps .done { padding: 3px 0; }
  .cl-text small { font-size: 12.5px; }
}

/* ---------- v26: unfinished steps are red, finished ones green ---------- */
.step.todo > .card { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.step.todo .num { border-color: var(--bad); color: var(--bad); background: #fff; }
.step.todo .choices, .step.todo .tagbox, .step.todo input[type=email] { outline: 2px solid var(--bad); outline-offset: 3px; border-radius: 10px; }
.step.todo .btn.primary { background: var(--bad); border-color: var(--bad); box-shadow: none; }
.step.todo .btn.primary:hover { background: #b91c1c; border-color: #b91c1c; }
.todo-note { display: flex; align-items: center; gap: 8px; color: var(--bad); font-size: 14px; margin-bottom: 12px; }
.todo-note .i { width: 16px; height: 16px; }
.cl-steps .todo .cl-mark { border-color: var(--bad); }

/* ---------- v27: report ---------- */
.wrap.report { max-width: 1100px; margin-left: 0; }
.rp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rp-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 4px 0; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rp-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.rp-tile b { display: block; font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; color: var(--accent-ink); }
.rp-tile b small { font-size: 16px; }
.rp-tile span { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 170px; }
.rp-bar { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; height: 100%; }
.rp-bar i { align-self: end; width: 100%; max-width: 38px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), #6ee7b7); }
.rp-bar .n { font-size: 12.5px; font-weight: 700; }
.rp-bar .l { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rp-outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rp-outcomes li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rp-outcomes li:first-child { border-top: 0; }
.rp-outcomes li b, .rp-outcomes li > span.muted { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--t-none); }
.dot.k-interview { background: var(--t-strong); } .dot.k-rejected { background: var(--t-weak); } .dot.k-no_response { background: #94a3b8; } .dot.k-none { background: var(--t-fair); }
.rp-table-wrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rp-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-table tr:last-child td { border-bottom: 0; }
.rp-out { font-weight: 700; font-size: 13px; }
.rp-out.k-interview, .rp-out.k-offer { color: var(--t-strong); } .rp-out.k-rejected { color: var(--t-weak); } .rp-out.k-none { color: var(--t-fair); } .rp-out.k-no_response { color: var(--muted); }
@media (max-width: 720px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } .rp-bars { height: 140px; gap: 4px; } .rp-bar .l { font-size: 9.5px; } .rp-tile b { font-size: 28px; } }
@media (max-width: 720px) { .tabbar { grid-template-columns: repeat(5, 1fr); } .tabbar a { font-size: 10.5px; } }
@media print {
  body { padding-left: 0 !important; background: #fff; }
  .mast, .tabbar, .no-print, .flash, .runbar { display: none !important; }
  .wrap { padding: 0; } .wrap.report { max-width: none; }
  .card, .rp-tile { box-shadow: none; break-inside: avoid; }
}

/* ---------- v29: one scroll only. Side columns scroll with the page, never on their own. ---------- */
.report, .refine { position: static; top: auto; max-height: none; overflow: visible; }

.pbar.indet { position: relative; }
.pbar.indet i { position: absolute; width: 35%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { left: -35%; } 100% { left: 100%; } }
.pcard.gen { margin: 0 0 14px; }

.nudge { border-color: #fcd34d; background: #fffbeb; }
.nudge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nudge-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #fde68a99; flex-wrap: wrap; }
.nudge-list li:first-child { border-top: 0; }


/* ---------- interview prep and skill gaps ---------- */
.prep-q { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.prep-q li { display: grid; gap: 4px; }
.prep-q p { margin: 2px 0 0; line-height: 1.55; }
.prep-q blockquote { margin: 4px 0 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--muted); }
.gap-themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gap-themes li { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.gap-themes li:first-child { border-top: 0; padding-top: 0; }
.gap-themes p { margin: 0; }


/* ---------- setup wizard ---------- */
.wiz { min-height: 100vh; max-width: 760px; margin: 0 auto; padding: 22px 20px 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.wiz-steps li { flex: 1; min-width: 0; }
.wiz-steps li > * { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.wiz-steps i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-family: var(--serif); background: var(--surface); border: 2px solid var(--line); }
.wiz-steps i .i { width: 16px; height: 16px; }
.wiz-steps b { font-weight: 700; white-space: nowrap; }
.wiz-steps li.now > * { color: var(--ink); }
.wiz-steps li.now i { border-color: var(--signal); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--ink); }
.wiz-steps li.done i { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wiz-steps li.done > a:hover i { background: var(--accent-strong); border-color: var(--accent-strong); }
.wiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(22px, 5vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wiz-card h1 { font-size: clamp(26px, 4.4vw, 34px); line-height: 1.15; margin: -6px 0 0; }
.wiz-card .lede { color: var(--muted); font-size: 16px; }
.wiz-card .read { padding: 12px 14px; border-left: 3px solid var(--signal); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: 14.5px; }
.wiz-card .read b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 2px; }
.wiz-card .file.big { min-width: 0; max-width: 100%; padding: 26px 20px; }
.wiz-card .hints .chip { background: transparent; border-style: dashed; color: var(--muted); }
.wiz-card .tune { display: grid; gap: 12px; }
.wiz-card .tune summary { cursor: pointer; font-weight: 700; color: var(--muted); font-size: 14px; }
.wiz-card .redraft { justify-self: start; margin-top: -6px; }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.wiz-nav.sticky { position: sticky; bottom: 0; background: linear-gradient(to top, var(--surface) 70%, transparent); padding: 14px 0 4px; margin-top: 4px; }
.co-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 6px 0; }
.co-tools input { flex: 1; min-width: 160px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.co-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.co-group legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.co-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); min-width: 0; }
.co-item:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.co-item input { accent-color: var(--accent-ink); width: 16px; height: 16px; flex: none; }
.co-item .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-summary { margin: 0; display: grid; gap: 2px; }
.wiz-summary > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wiz-summary dt { color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wiz-summary dd { margin: 0; font-weight: 600; min-width: 0; }
.wiz-summary a { font-size: 13px; }
.pcard.run { margin: 0; }
.expect { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.expect li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14.5px; }
.expect .i { margin-top: 2px; color: var(--ink); }
@media (max-width: 640px) {
  .wiz-steps b { display: none; }
  .wiz-summary > div { grid-template-columns: minmax(0, 1fr) auto; }
  .wiz-summary dt { grid-column: 1 / -1; }
}

/* ---------- welcome line on the Jobs page ---------- */
.hello { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--signal) 35%, var(--line)); }
.hello .i { color: var(--accent-ink); }

/* the wizard has no left nav, so undo the app shell offset */
body:has(.wiz) { padding-left: 0; }
.phases { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; color: var(--muted); font-weight: 700; font-size: 14px; }
.phases li { display: flex; align-items: center; gap: 8px; }
.phases i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; border: 2px solid var(--line); background: var(--surface); }
.phases li.now { color: var(--ink); } .phases li.now i { border-color: var(--signal); box-shadow: 0 0 0 3px var(--accent-soft); }
.phases li.done { color: var(--ink); } .phases li.done i { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* a progress bar under the status line, above the Refresh button (left nav on wide screens) */
.minibar { display: none; height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; border: 1px solid var(--line); }
.minibar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--signal)); border-radius: 999px; transition: width .6s ease; }
@media (min-width: 1021px) { .minibar:not([hidden]) { display: block; } .refresh .when { display: block; } .runbar { display: none; } }

.field input:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; opacity: .6; }

.betatag { display: inline-block; margin-bottom: 14px; padding: 3px 11px; border-radius: 999px; background: rgba(233, 162, 59, .2); color: #f2c27b; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.betafoot { text-align: center; color: var(--muted); font-size: 13px; margin: 28px 16px 90px; }
.auth.single { grid-template-columns: 1fr; }

.strength select { max-width: 280px; }
.rs-preview { margin: 0 0 16px; }
.rs-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rs-bar h3 { font-family: var(--serif); font-size: 17px; margin: 0; margin-right: auto; }
.rs-hl { position: absolute; opacity: 0; pointer-events: none; }
.rs-hl-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 650; color: var(--muted); }
.rs-hl-label::before { content: ""; width: 34px; height: 20px; border-radius: 999px; background: var(--line); transition: background .15s; }
.rs-hl:checked + .rs-hl-label::before { background: var(--signal); }
.rs-hl:focus-visible + .rs-hl-label::before { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.rs-paper { flex-basis: 100%; background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; max-height: 560px; overflow: auto; box-shadow: 0 6px 22px -14px rgba(0, 0, 0, .25); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.rs-paper p, .rs-paper h4 { margin: 0 0 6px; }
.rs-paper .p-head { margin-top: 16px; padding-bottom: 3px; border-bottom: 1px solid #d6d6d6; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--sans); }
.rs-paper .p-contact { color: #555; font-size: 13.5px; margin-bottom: 2px; }
.rs-paper .p-meta { font-weight: 700; margin-top: 8px; margin-bottom: 2px; }
.rs-paper .p-bullet { position: relative; padding-left: 18px; }
.rs-paper .p-bullet::before { content: "\2022"; position: absolute; left: 4px; }
.rs-paper .p-was { display: block; margin-top: 3px; font-size: 12.5px; color: #8a8a8a; }
.rs-paper .chg-removed { display: none; }
.rs-hl:checked ~ .rs-paper .chg-reworded { background: color-mix(in srgb, var(--signal) 16%, transparent); border-radius: 4px; box-shadow: -4px 0 0 var(--signal); }
.rs-hl:checked ~ .rs-paper .chg-moved { box-shadow: -4px 0 0 var(--accent-ink); }
.rs-hl:checked ~ .rs-paper .chg-removed { display: block; color: #a33; text-decoration: line-through; background: var(--bad-soft); border-radius: 4px; }
.rs-hl:not(:checked) ~ .rs-paper .p-was { display: none; }
.rs-key .k { display: inline-block; padding: 0 7px; border-radius: 4px; font-weight: 700; }
.rs-key .k-rw { background: color-mix(in srgb, var(--signal) 22%, transparent); }
.rs-key .k-mv { box-shadow: inset 3px 0 0 var(--accent-ink); }
.rs-key .k-del { background: var(--bad-soft); text-decoration: line-through; }
@media (max-width: 640px) { .rs-paper { padding: 18px 16px; } }

/* plans, credits, practice mode */
.credit-tag { display: inline-block; margin-left: 10px; font-size: 12.5px; font-weight: 650; color: var(--muted); vertical-align: middle; }
.credit-tag em { font-style: normal; color: var(--accent-ink); margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--signal) 16%, transparent); }
.menu-credits { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.credit-chip { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.credit-chip.low { background: color-mix(in srgb, var(--warn, #d97706) 22%, transparent); }
.upgrade { margin-left: 6px; }
@media (max-width: 640px) { .credit-chip { font-size: 11.5px; padding: 3px 8px; } .upgrade { display: none; } }
.chip-cr { font-size: 11.5px; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--signal) 18%, transparent); color: var(--accent-ink); white-space: nowrap; }
.plan-usage .usage-top { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.usage-big { display: grid; line-height: 1; }
.usage-big b { font-family: var(--serif); font-size: 56px; color: var(--accent-ink); }
.usage-big span { color: var(--muted); font-weight: 650; margin-top: 4px; }
.usage-side { flex: 1; min-width: 220px; display: grid; gap: 10px; }
.usage-side p { margin: 0; }
.meter { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--signal); border-radius: 999px; }
.usage-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.usage-list li { display: grid; grid-template-columns: 1fr auto 44px; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.usage-list b { text-align: right; }
.buy-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.buy-grid li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.buy-grid li:last-child { border-bottom: 0; }
.buy-grid li > div { display: grid; }
.buy-grid .i { width: 18px; height: 18px; color: var(--accent-ink); }
.buy-grid .cost { min-width: 34px; text-align: center; padding: 3px 10px; border-radius: 999px; background: var(--soft); font-weight: 800; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 4px 0 8px; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 16px; align-content: start; }
.plan-card.featured { border-color: var(--signal); box-shadow: 0 14px 34px -22px rgba(11, 90, 134, .6); background: linear-gradient(180deg, color-mix(in srgb, var(--signal) 6%, var(--surface)), var(--surface) 60%); }
.plan-card h3 { font-family: var(--serif); font-size: 24px; margin: 0; }
.plan-card .price { margin: 4px 0 2px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.plan-card .price span { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.plan-card .price s { font-size: 20px; color: var(--muted); font-weight: 650; }
.ribbon { position: absolute; top: -11px; right: 18px; padding: 3px 12px; border-radius: 999px; background: var(--signal); color: var(--on-accent); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.plan-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan-feat li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan-feat .i { width: 18px; height: 18px; color: var(--accent-ink); margin-top: 2px; }
.plan-feat .soon { color: var(--muted); }
.plan-feat .soon .i { color: var(--muted); }
.plan-feat em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--soft); margin-left: 4px; }
.plan-note { margin: 4px 2px 18px; }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 2px; color: var(--muted); }
.choice.instant { align-items: flex-start; }
.practice-bar { position: relative; }
.practice-on { position: absolute; opacity: 0; pointer-events: none; }
.practice-bar .rs-hl-label { margin-right: 10px; }
.practice-on:checked + .rs-hl-label::before { background: var(--signal); }
.practice-on:focus-visible + .rs-hl-label::before { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.practice-bar .answer { display: none; margin-top: 8px; }
.practice-on:checked ~ .prep-q .answer { display: block; }
.practice-on:checked ~ .prep-q .answer-open { display: none; }
.practice-bar .answer summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); font-size: 14px; }

/* job page: quick links to the AI tools, and the title/actions ahead of the long match report on small screens */
.quicknav { display: flex; gap: 8px; flex-wrap: wrap; }
.quicknav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 650; color: var(--ink); text-decoration: none; }
.quicknav a:hover { border-color: var(--signal); color: var(--accent-ink); }
.quicknav .i { width: 16px; height: 16px; color: var(--accent-ink); }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (max-width: 1020px) {
  .dossier { gap: 20px; }
  .role { display: contents; }
  .role > .head { order: 1; }
  .report { order: 2; }
  .role > :not(.head) { order: 3; }
}

/* info popup beside "How much to tailor" */
.strength-head { display: flex; align-items: center; gap: 8px; }
.info { position: relative; }
.info > summary { list-style: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: italic 700 13px/1 var(--serif, Georgia, serif); border: 1.5px solid var(--accent-ink); color: var(--accent-ink); user-select: none; }
.info > summary::-webkit-details-marker { display: none; }
.info > summary:hover, .info[open] > summary { background: var(--accent-ink); color: var(--surface); }
.info > summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.info-pop { position: absolute; z-index: 20; left: 0; top: 28px; width: min(440px, calc(100vw - 32px)); padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); font-size: 14px; }
.info-pop p { margin: 0 0 6px; }
.info-pop .info-t { font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.info-pop dl { margin: 0 0 12px; display: grid; gap: 4px; }
.info-pop dt { font-weight: 750; margin-top: 6px; }
.info-pop dt em { font-style: normal; font-size: 11.5px; font-weight: 750; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--signal) 18%, transparent); color: var(--accent-ink); margin-left: 6px; }
.info-pop dd { margin: 0; color: var(--muted); }
.info-pop ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }

.info-pop { max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.info-pop > .info-t:first-of-type { padding-right: 36px; }
.info-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.info-x:hover { background: var(--soft); color: var(--ink); }
.info-x:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
@media (max-width: 640px) {
  /* a bottom sheet on phones: full width, easy to reach, never clipped by the card it sits in */
  .info-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 78vh; padding: 18px 16px 20px; border-radius: 16px; font-size: 15px; box-shadow: 0 -10px 50px rgba(0, 0, 0, .35), 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .info > summary { width: 28px; height: 28px; font-size: 15px; }
  .info-x { top: 10px; right: 10px; width: 40px; height: 40px; }
}

/* ---------- v50: the job card, at every width ----------
   One reading order: match band, status, title, company, three aligned facts, aligned chips, actions. */
@media (min-width: 0px) {
  .job { display: flex; flex-direction: column; }
  .job > .signal { position: static; order: -1; width: auto; margin: 0; padding: 8px 14px; border-radius: 0; align-self: stretch;
                   flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px;
                   background: color-mix(in srgb, var(--tone) 12%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--tone) 22%, var(--line)); }
  .job > .signal .num { font-size: 26px; }
  .job > .signal .num small { font-size: 13px; }
  .job > .signal .cap { font-size: 13px; font-weight: 750; opacity: 1; }
  .job .body { padding: 12px 14px 10px; gap: 10px; }
  .job .top { display: block; padding: 0; }
  .job .flags { padding: 0; margin: 0 0 6px; gap: 6px 8px; justify-content: flex-start; align-items: center; }
  .job .flags .tag.plain { background: none; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .job .flags .tag.plain .direct { display: none; }
  .job h2 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
  .job .meta { margin-top: 4px; font-size: 15px; }
  .job .meta b { font-weight: 650; color: var(--ink); }
  .job .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 14px; padding-top: 10px; }
  .job .facts li:first-child { grid-column: 1 / -1; }
  .job .facts li:nth-child(n+4) { display: none; }
  .job .reqchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 0; }
  .job .rq { display: flex; align-items: flex-start; gap: 5px; padding: 5px 9px; border-radius: 10px; font-size: 12.5px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
  .job .rq .i { flex: none; margin-top: 2px; }
}

/* ---------- v51: the job card on a larger screen: no monogram, facts and chips on a grid ---------- */
.job .top { display: block; }
@media (min-width: 721px) {
  .job .flags { margin-bottom: 6px; align-items: center; }
  .job .flags .tag.plain { background: none; padding: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
  .job .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
  .job .facts li:first-child { grid-column: auto; }
  .job .facts li:nth-child(n+4) { display: flex; }
  .job .flags .tag.plain .direct { display: inline; }
  .job .reqchips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; margin-top: 0; }
  .job .rq { display: flex; align-items: flex-start; gap: 5px; padding: 5px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
  .job .rq .i { flex: none; margin-top: 2px; }
}

/* ---------- activity: freshness strip and run history ---------- */
.fresh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 18px 22px; }
.fresh-item { display: grid; gap: 3px; align-content: start; }
.fresh-item .k { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fresh-item b { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--accent-ink); line-height: 1.15; }
.runs { list-style: none; margin: 0; padding: 0; display: grid; }
.runs li { display: grid; grid-template-columns: 170px auto minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.runs li:first-child { border-top: 0; }
.runs .when { display: grid; font-weight: 650; }
.runs .what { margin: 0; color: var(--ink); line-height: 1.5; }
.runs .what b { font-weight: 750; }
.runs .ok { color: #047857; font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.runs .ok .i { width: 14px; height: 14px; }
.runs .bad { color: var(--warn); font-weight: 650; }
.logbox > summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.logbox > summary:hover { color: var(--ink); }
.logbox .log { margin-top: 12px; }
@media (max-width: 720px) {
  .fresh { grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 14px 16px; }
  .fresh-item b { font-size: 21px; }
  .fresh-item:nth-child(3) { grid-column: 1 / -1; }
  .runs li { grid-template-columns: minmax(0, 1fr) auto; }
  .runs .what { grid-column: 1 / -1; }
}

/* ---------- saved resumes ---------- */
.reslib { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.reslib .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reslib .head h3 { margin: 0; font-size: 16px; }
.reslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reslist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.reslist li.on { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, var(--surface)); }
.reslist .rn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.reslist .rn > span { display: grid; min-width: 0; }
.reslist .rn b { overflow-wrap: anywhere; }
.reslist .ra { display: flex; gap: 8px; }
.reslist form { margin: 0; }

/* ---------- v53: more contrast, deeper ink, one strong accent. Layout is unchanged. ---------- */
:root {
  --bg: #e9eef5; --ink: #0a1322; --muted: #4a5a73; --line: #d0d9e6; --soft: #e1e8f1;
  --accent: #0b5a86; --accent-strong: #0a3a5c; --accent-ink: #0a4a72; --accent-soft: #d8e8f3; --signal: #1a7fb0;
  --warn: #92400e; --warn-soft: #fde9a8; --bad: #b91c1c; --bad-soft: #fcd5d5;
  --shadow: 0 1px 2px rgba(10, 19, 34, .07), 0 12px 26px -16px rgba(10, 19, 34, .32);
  --deep: linear-gradient(120deg, #06182a 0%, #071f33 55%, #0a3a5c 100%);
}
[data-tone=strong] { --tone-hi: #4ade80; } [data-tone=good] { --tone-hi: #2dd4bf; } [data-tone=fair] { --tone-hi: #fbbf24; }
[data-tone=weak] { --tone-hi: #fb7185; } [data-tone=none] { --tone-hi: #94a3b8; }

/* the match band and the job page's score card: dark, so the number is the first thing you read */
.job > .signal, .scorecard, .report .scorecard { background: var(--deep); color: var(--tone-hi, #4ade80); border-color: #071f33; }
.job > .signal { border-bottom: 0; padding: 9px 16px; }
.job > .signal .num, .scorecard .num, .report .scorecard .num { color: #fff; font-weight: 800; }
.job > .signal .num { font-size: 28px; }
.job > .signal .num small, .scorecard .num small { color: var(--tone-hi, #4ade80); opacity: 1; }
.job > .signal .cap, .scorecard .cap, .scorecard .word { color: var(--tone-hi, #4ade80); opacity: 1; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 12px; }
.scorecard .sub { color: #a9c3ba; }

/* cards, titles, chips */
.job, .card { border-color: var(--line); }
.job { box-shadow: var(--shadow); }
.job h2 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.job .meta b { font-weight: 700; }
.job .facts { color: var(--ink); font-weight: 500; }
.job .facts .i { color: var(--muted); }
.rq { font-weight: 700; }
.rq.met { background: #c6f1da; color: #064e34; }
.rq.partial { background: #fde7a0; color: #78350f; }
.rq.missing { background: #fbcfcf; color: #8f1d1d; }
.tag.new { background: #c6f1da; color: #064e34; font-weight: 800; }

/* buttons */
.btn { border-color: #b4c2d6; font-weight: 700; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 8px 18px -10px var(--accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.acts .act { color: #3d4d66; }

/* the briefing: the page opens on a strong block instead of a pale wash */
.briefing { background: var(--deep); border-color: #071f33; color: #fff; }
.briefing h1 { color: #fff; }
.briefing .stat b { color: #4ade80; }
.briefing .stat span { color: #a9c3ba; }
.briefing .lede, .briefing .lede a { color: #cfe3dc; }

/* the side navigation: the page you are on is a solid block */
@media (min-width: 1021px) {
  .topnav a[aria-current] { background: var(--accent); color: #fff; }
  .topnav a[aria-current] .count { background: #fff; color: var(--accent-ink); }
}
.tabbar a[aria-current] { color: var(--accent-ink); }

/* lower matches: scored under the minimum, kept apart and quieter than the main list */
.lowhead { padding: 12px 16px; }
.lowhead p { margin: 0; color: var(--muted); }
.lowlist .job { opacity: .9; }

/* the strength toggle in the briefing: Strong (80+) and Good (the 70s) with their counts. It sits where
   the headline was, and the banner is dark, so it uses the same light tones as the rest of it. */
.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font-variant-numeric: tabular-nums; }
.tally .g { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 12.5px; line-height: 1.35; }
.tally .g:hover { text-decoration: none; border-color: rgba(255, 255, 255, .5); }
.tally .g b { font-weight: 800; color: #4ade80; }
.tally .g span { color: #a9c3ba; font-size: 11px; }
.tally .g i { font-style: normal; font-weight: 800; }
.tally .g.on { background: rgba(74, 222, 128, .2); border-color: #4ade80; }
.briefing .tally { grid-column: 1; justify-self: start; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* info popover next to the tabs: floats over the page, never pushes it */
.info { position: relative; margin-left: 4px; }
.info summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; color: var(--muted); }
.info summary::-webkit-details-marker { display: none; }
.info summary { width: auto; height: auto; }
.info-i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: #fff; font: italic 700 15px/1 Georgia, "Times New Roman", serif; box-shadow: 0 1px 3px rgba(37, 99, 235, .35); }
.info summary:hover .info-i, .info[open] .info-i { background: var(--accent-strong); }
.info .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(620px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #e2e8f0); box-shadow: 0 12px 32px rgba(15, 23, 42, .14); font-size: 13.5px; line-height: 1.5; }
.info .pop ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* flash messages float at the top instead of pushing the page down, and a click dismisses them */
.flash[data-fade] { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 60; width: max-content; max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 10px 28px rgba(15, 23, 42, .16); cursor: pointer; }

/* the strength selectors sit at the start of the tab row: a dark group in the old banner's green, so they read
   as a score filter rather than another stage. Same height as the stage pills. */
.bands { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--deep); margin-right: 8px; font-variant-numeric: tabular-nums; }
.bands .band { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; color: #cfe3dc; font-weight: 700; line-height: 20px; }
.bands .band:hover { text-decoration: none; background: rgba(255, 255, 255, .08); color: #fff; }
.bands .band b { font-weight: 800; color: #fff; }
.bands .band span { font-size: 11.5px; color: #8fb3a7; }
.bands .band i { font-style: normal; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 0 8px; }
.bands .band.on { background: #4ade80; color: #06281f; box-shadow: 0 4px 14px -6px #4ade80; }
.bands .band.on b, .bands .band.on span { color: #06281f; }
.bands .band.on i { background: rgba(6, 40, 31, .16); color: #06281f; }
.bands .band:nth-child(2).on { background: #a7f3d0; box-shadow: 0 4px 14px -6px #a7f3d0; }

/* what LookOut is tracking, just after Applied */
.tracked { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 6px 14px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--signal) 55%, var(--line)); background: color-mix(in srgb, var(--signal) 7%, var(--surface)); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tracked svg { width: 15px; height: 15px; color: var(--accent-ink); }
.tracked b { color: var(--ink); font-weight: 800; }
.tracked .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--signal); }
.tracked .small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); }
@media (max-width: 720px) { .bands { margin-right: 4px; flex: none; } .tracked { display: none; } }

/* the band labels: the range reads at the same size and line as the name and count */
.bands .band b, .bands .band span { line-height: 20px; }
.bands .band span { font-size: 12.5px; font-weight: 700; }
/* the info icon now sits mid-row, so its popover hangs from the row's right edge instead of the icon */
.pipeline { position: relative; }
.pipeline .info { position: static; margin-left: 8px; }
.pipeline .info .pop { right: 0; top: calc(100% + 8px); }
.bands .band { align-items: baseline; }  /* text sits on one line: name, range and count share a baseline */
.bands .band span { font-size: 13px; }
.row-end { display: inline-flex; align-items: center; }  /* the tracked pill and the info icon wrap together */
.countdown { font-variant-numeric: tabular-nums; }
/* Frequency gets the widest column so its times and the same-day link sit on the same line as "Once a day" */
@media (min-width: 721px) { .fresh { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 44px; } }
.fresh-item .inline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
/* the time and the same-day link stack in a narrow block beside "Once a day" instead of running across the card */
.fresh-item .inline { flex-wrap: nowrap; align-items: center; }
.fresh-item .inline .small { max-width: 170px; line-height: 1.3; }
@media (min-width: 721px) { .fresh { grid-template-columns: repeat(3, auto); justify-content: start; } }
.fresh .countdown { display: inline-block; min-width: 6.4em; }  /* room for "12h 59m 59s", so Frequency never moves */

/* "Saved" beside a settings card's heading, fading out after each background save */
.autosaved { margin-left: auto; margin-right: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); opacity: 0; transition: opacity .4s ease; }
.autosaved.on { opacity: 1; transition: none; }
.autosaved.bad { color: var(--bad); }

/* the tab row stays put while the listings scroll under it, like the navigation */
.pipeline { position: sticky; top: 0; z-index: 25; background: var(--bg); padding: 10px 0; margin: -10px 0; }
@media (min-width: 1021px) { .layout .refine { top: 76px; } }
@media (max-width: 1020px) { .pipeline { top: 48px; } }

/* phones: the whole tab row fits on one line without sideways scrolling */
@media (max-width: 720px) {
  .pipeline { gap: 5px; flex-wrap: nowrap; overflow-x: auto; }
  .bands { margin-right: 2px; padding: 2px; }
  .bands .band { padding: 6px 9px; gap: 5px; }
  .bands .band span { display: none; }  /* the 80+ and 70s ranges are in the info note and on each card */
  .stage { padding: 7px 10px !important; gap: 5px; font-size: 14px; }
  .pipeline .aside .lbl { display: none; }  /* Hidden keeps its icon and count */
  .pipeline .aside { padding: 8px 6px; }
}
@media (max-width: 720px) {  /* two rows: Strong | Good as one wide switch, then Saved, Applied, info and Hidden */
  .pipeline { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
  .bands { flex: 1 0 100%; margin: 0; }
  .bands .band { flex: 1; justify-content: center; padding: 8px 10px; }
  .bands .band span { display: inline; }
  .pipeline .aside { margin-left: auto; }
}
@media (max-width: 720px) { .pipeline .aside .lbl { display: inline; } }
.step, .card[id], section[id] { scroll-margin-top: 16px; }
@media (max-width: 1020px) { .step, .card[id], section[id] { scroll-margin-top: 64px; } }  /* links like #alerts land below the top bar */
@media (max-width: 720px) {
  .step .num { display: none; }  /* each card already says Saved or Not done yet; the numbered rail just costs a row */
  .step { gap: 0; }
}

/* tablets and narrow desktop windows keep the left navigation too; only phones get the top bar and bottom tabs */
@media (min-width: 721px) and (max-width: 1020px) {
  body { padding-left: 200px; }
  .mast { position: fixed; left: 0; top: 0; bottom: 0; width: 200px; border-bottom: 0; border-right: 1px solid var(--line); background: #fff; backdrop-filter: none; display: flex; flex-direction: column; }
  .mast-in { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 12px; flex: 1; min-height: 0; max-width: none; }
  .brand { padding: 0 8px; }
  .topnav { display: flex; flex-direction: column; align-self: stretch; gap: 2px; }
  .topnav a { padding: 10px 12px; border-radius: 10px; }
  .topnav a:hover { background: var(--soft); }
  .topnav a[aria-current] { background: var(--accent); color: #fff; }
  .topnav a[aria-current]::after { display: none; }
  .topnav a[aria-current] .count { background: #fff; color: var(--accent-ink); }
  .topnav .count { margin-left: auto; }
  .mast-act { margin: auto 0 0; flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .refresh { flex-direction: column; align-items: stretch; gap: 8px; }
  .refresh .btn { width: 100%; min-height: 40px; }
  details.me .menu { right: auto; left: 0; top: auto; bottom: calc(100% + 8px); }
  .runbar { position: absolute; left: 0; right: 0; top: 0; }
  .wrap { padding: 22px 20px 64px; }
  .pipeline { top: 0; }
  .step, .card[id], section[id] { scroll-margin-top: 16px; }
}

/* on a job you added: offer to watch its employer */
.watch-offer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--signal) 55%, var(--line)); background: color-mix(in srgb, var(--signal) 7%, var(--surface)); font-size: 14px; }
.watch-offer > svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }
.watch-offer > span { flex: 1 1 260px; min-width: 0; }
.watch-offer.muted { border-style: solid; background: var(--soft); border-color: var(--line); }

/* the AI services, credited on the sign-in page and at the foot of every page */
.betafoot { display: grid; gap: 8px; justify-items: center; }
.betafoot p { margin: 0; }

/* the filters panel stays put under the tab row while the listings scroll (the script sets "top"; on a short screen it
   pins with its bottom in view instead, so nothing in it is ever out of reach) */
@media (min-width: 1021px) { .layout .refine.pinned { position: sticky; align-self: start; } }

/* phones and tablets: iOS zooms into any field with text under 16px when it gets focus (the sign-in page focuses the
   email box on load), and the zoomed page then pans sideways. 16px fields never trigger it. */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
/* the sign-in page never pans sideways, whatever a phone browser does with its decorations */
.auth { overflow-x: clip; max-width: 100vw; }
html:has(.auth), body:has(.auth) { overflow-x: hidden; }

/* ---------- Companies: one line per company, columns that line up, nothing squeezed ---------- */
.co-head, .co-line { display: grid; grid-template-columns: minmax(150px, 1.2fr) 110px minmax(140px, .9fr) minmax(0, 1.6fr) auto; gap: 6px 16px; align-items: center; }
.co-head { padding: 0 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.co-line { padding: 9px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.co-line.paused { opacity: .55; }
.co-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-ats { font-size: 12px; color: var(--muted); font-weight: 700; }
.co-status, .co-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.co-link a { color: var(--muted); }
.co-link a:hover { color: var(--accent-ink); }
.co-status .status-bad { display: inline-flex; gap: 4px; align-items: center; }
.co-line .co-actions { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; }
.co-line .btn.sm { padding: 4px 10px; min-height: 30px; }
.co-edit { grid-column: 1 / -1; }
.co-edit:not([open]) { display: none; }
.co-edit form { margin: 8px 0 4px; padding: 14px; border-radius: 10px; background: var(--soft); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 12px; align-items: end; }
/* problems and the pool: name, what's going on, buttons */
.co-line.problem, .co-line.pool { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; }
.co-why { font-size: 13.5px; min-width: 0; }
@media (max-width: 1100px) {  /* narrower screens: drop the link column first */
  .co-head, .co-line { grid-template-columns: minmax(130px, 1.2fr) 100px minmax(120px, 1fr) auto; }
  .co-head span:nth-child(4), .co-line .co-link { display: none; }
}
@media (max-width: 720px) {  /* phones: name and status on one line, buttons under it */
  .co-head { display: none; }
  .co-line, .co-line.problem, .co-line.pool { grid-template-columns: minmax(0, 1fr) auto; }
  .co-line .co-ats { display: none; }
  .co-line .co-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .co-line.problem .co-why { grid-column: 1 / -1; }
}
.co-head, .co-line:not(.problem):not(.pool) { grid-template-columns: minmax(150px, 1.2fr) 110px minmax(140px, .9fr) minmax(0, 1.6fr) 252px; }
@media (max-width: 1100px) { .co-head, .co-line:not(.problem):not(.pool) { grid-template-columns: minmax(130px, 1.2fr) 100px minmax(120px, 1fr) 252px; } }
@media (max-width: 720px) { .co-line:not(.problem):not(.pool) { grid-template-columns: minmax(0, 1fr) auto; } }

/* privacy policy and account pages */
.policy h1 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.12; margin: 6px 0 8px; }
.policy h2 { font-size: 19px; margin: 26px 0 8px; }
.policy p, .policy li { line-height: 1.6; }
.policy ul { padding-left: 20px; display: grid; gap: 6px; }
.policy-page { padding-top: 28px; padding-bottom: 60px; }
.policy-page > .brand { display: inline-flex; margin-bottom: 18px; }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ===================== Palette E: Ocean blue (colours only; nothing else changes) =====================
   One brand colour across the public pages, the app and the emails: deep ocean blue, kept clearly apart from the green of the job sites
   this one could be mistaken for. Meaningful colours stay: must-have chips
   (met green, partial amber, missing red), warnings and errors, and the "emailed" success tick. */
:root {
  --bg: #f3f7fa;
  --accent: #0b5a86; --accent-strong: #0a3a5c; --accent-ink: #0a4a72; --accent-soft: #e6f1f8; --on-accent: #ffffff;
  --signal: #1a7fb0;
  --t-strong: #0b5a86; --t-good: #1a7fb0;
  --deep: linear-gradient(100deg, #071f33 0%, #0a3a5c 55%, #1a6fa3 100%);
}
[data-tone=strong] { --tone-hi: #a8dcf5; } [data-tone=good] { --tone-hi: #bcdcf0; }
.job > .signal, .scorecard, .report .scorecard { border-color: #071f33; color: var(--tone-hi, #a8dcf5); }
.job > .signal .num small, .scorecard .num small, .job > .signal .cap, .scorecard .cap, .scorecard .word { color: var(--tone-hi, #a8dcf5); }
.scorecard .sub { color: #bcdcf0; }
.tag.new { background: #e6f1f8; color: #0a3a5c; }
.pbar i { background: linear-gradient(90deg, var(--accent), #4aa9d6); }
.rp-bar i { background: linear-gradient(180deg, var(--accent), #a8dcf5); }
.job:hover { border-color: #bcd3e4; box-shadow: 0 10px 28px -14px rgba(11, 90, 134, .35); }
.auth .hero { background: linear-gradient(135deg, #e6f1f8, #dbeafe); }
.auth .hero::before { background: repeating-radial-gradient(circle at 30% 70%, transparent 0 52px, rgba(11, 90, 134, .14) 53px 54px); }
.plan-card.featured { box-shadow: 0 14px 34px -22px rgba(11, 90, 134, .6); }
.briefing { border-color: #071f33; }
.bands { background: #0a3a5c; }
.bands .band { color: #bcdcf0; }
.bands .band.on { background: #1a7fb0; color: #ffffff; box-shadow: 0 4px 14px -6px #1a7fb0; }
.bands .band.on b, .bands .band.on span { color: #ffffff; }
.bands .band.on i { background: rgba(255, 255, 255, .22); color: #ffffff; }
.bands .band:nth-child(2).on { background: #a8dcf5; box-shadow: 0 4px 14px -6px #a8dcf5; }
.bands .band:nth-child(2).on b, .bands .band:nth-child(2).on span, .bands .band:nth-child(2).on i { color: #071f33; }
.bands .band:nth-child(2).on i { background: rgba(7, 46, 53, .14); }

/* ===== Find your fit (entry accounts): big tap targets, friendly and uncluttered ===== */
.fit-form { display: grid; gap: 14px; }
.fit-form fieldset.q { border: 1px solid var(--line); padding: 16px 18px; margin: 0; min-width: 0; }
.fit-form legend { font-weight: 800; font-size: 17px; padding: 0 6px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; transition: background .12s, border-color .12s; }
.pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.pick input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.fit-form textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; }
.fit-form .optional summary { cursor: pointer; }
.fit-submit { display: flex; }
.btn.big { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.fith { font-size: 22px; margin: 8px 0 -2px; }
.fitsummary .lede { font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
.chip.strength { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; font-weight: 700; padding: 6px 12px; }
.fitcard { display: grid; gap: 10px; }
.fitcard header { display: flex; gap: 14px; align-items: flex-start; }
.fitcard h3 { margin: 0; font-size: 20px; }
.fitcard p { margin: 0; line-height: 1.55; }
.fitnum { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.fitjobs ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.fitcard .say { border-top: 1px solid var(--line); padding-top: 8px; }
.fitcard .say summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); }
.saytext { width: 100%; background: var(--soft); border: 0; border-radius: 10px; padding: 12px 14px; margin: 8px 0; font: inherit; resize: vertical; }
.more summary { cursor: pointer; }
.resumepaper { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin: 10px 0; line-height: 1.5; }
.resumepaper h4 { margin: 14px 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.resumepaper p { margin: 0 0 4px; } .resumepaper .rh { font-weight: 800; font-size: 17px; } .resumepaper ul { margin: 0 0 8px; padding-left: 20px; }
@media (max-width: 720px) { .fit-form fieldset.q { padding: 14px; } .picks { gap: 6px; } .fitcard header { gap: 10px; } .resumepaper { padding: 14px; } .fit-submit .btn { width: 100%; justify-content: center; } }

/* Find your fit: the 30 interest questions and the nine skills */
.ipitems { list-style: none; margin: 14px 0; padding: 0; }
.ipitem { padding: 12px 0; border-top: 1px solid var(--border, #e2e8f0); display: grid; gap: 8px; }
.ipitem:first-child { border-top: 0; }
.iptext { font-weight: 600; }
.ipscale { display: flex; flex-wrap: wrap; gap: 6px; }
.ipopt { position: relative; }
.ipopt input { position: absolute; opacity: 0; inset: 0; }
.ipopt span { display: inline-block; padding: 6px 10px; border: 1px solid var(--border, #cbd5e1); border-radius: 999px; font-size: 13px; cursor: pointer; }
.ipopt input:checked + span { background: var(--accent, #2563eb); color: #fff; border-color: transparent; }
.ipopt input:focus-visible + span { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
/* Find your fit: three ways to start */
.startpicks { display: grid; gap: 10px; margin-top: 14px; text-align: left; }
.startpick { display: grid; gap: 4px; padding: 14px 16px; border: 2px solid var(--border, #cbd5e1); border-radius: 14px; text-decoration: none; color: inherit; }
.startpick.primary { border-color: var(--accent, #2563eb); background: color-mix(in srgb, var(--accent, #2563eb) 7%, transparent); }
.fj-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.quiznudge { border-color: var(--accent, #2563eb); }
.routes { margin: 10px 0 4px; } .routes ul { margin: 4px 0 0; padding-left: 18px; } .routes li { margin: 2px 0; }
.resumeforrole { margin: 10px 0 4px; }
.startpick:hover { border-color: var(--accent, #2563eb); }
.startpick b { font-size: 18px; }
/* Find your fit: the open jobs list */
.fitjob { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0; }
.fitjob h3 { margin: 0 0 4px; font-size: 17px; }
.fj-filter { display: flex; gap: 8px; margin: 14px 0; }
.fj-filter input { flex: 1; }
.fj-roles .chip.on { background: var(--accent, #2563eb); color: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; }
/* Find your fit: one activity at a time */
.ipcard { text-align: center; padding: 8px 0 4px; }
.ipbar { height: 6px; border-radius: 999px; background: var(--border, #e2e8f0); overflow: hidden; margin-bottom: 14px; }
.ipbar span { display: block; height: 100%; width: 0; background: var(--accent, #2563eb); transition: width .25s; }
.ipq { font-size: clamp(22px, 4vw, 30px); font-weight: 700; line-height: 1.25; margin: 10px 0 20px; min-height: 2.5em; }
.ipbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ipbtn { padding: 16px 8px; border-radius: 14px; border: 2px solid var(--border, #cbd5e1); background: var(--surface, #fff); font-size: 17px; font-weight: 700; cursor: pointer; color: inherit; }
.ipbtn.like:hover, .ipbtn.like.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.ipbtn.meh:hover, .ipbtn.meh.on { background: #64748b; border-color: #64748b; color: #fff; }
.ipbtn.nope:hover, .ipbtn.nope.on { background: #dc2626; border-color: #dc2626; color: #fff; }
.ipback { margin-top: 14px; background: none; border: 0; color: var(--muted, #64748b); cursor: pointer; text-decoration: underline; }

/* "Find your fit": ways-in cards. A coloured edge per kind of program, a pill, facts in a grid, contact chips. */
.pathsbanner { margin: 26px 0 12px; padding: 22px 24px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(circle at 105% -20%, rgba(255,255,255,.12) 0 90px, transparent 91px), linear-gradient(135deg, var(--ink), #243b6b); box-shadow: var(--shadow); }
.pathsbanner .eyebrow { color: #9fb4e8; }
.pathsbanner h2 { margin: 4px 0 6px; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.15; color: #fff; }
.pathsbanner p { margin: 0; color: #dce5f8; max-width: none; }
.pathsbanner .eyebrow { margin: 0; }
.pathglance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.glance { --k: var(--accent); display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--k) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--k) 22%, var(--line)); border-top: 4px solid var(--k); color: var(--ink); }
.glance:hover { text-decoration: none; transform: translateY(-1px); }
.glance .gk { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--k); }
.glance b { font-size: 15px; line-height: 1.25; }
.pathcard { --k: var(--accent); border-left: 6px solid var(--k); display: grid; gap: 12px; scroll-margin-top: 90px; }
.pathcard.top { background: linear-gradient(180deg, color-mix(in srgb, var(--k) 5%, var(--surface)), var(--surface) 140px); }
.pathcard header { align-items: flex-start; }
.pathcard .fitnum { background: var(--k); }
.pathcard .ptitle { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pathcard h3 { margin: 0; font-size: 19px; text-transform: none; letter-spacing: 0; color: var(--ink); line-height: 1.25; }
.kindpill { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--k); background: color-mix(in srgb, var(--k) 13%, var(--surface)); }
.agebadge { flex: none; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 750; color: var(--ink); background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.pathcard .pwho { color: var(--ink); }
.pfacts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.pfacts:empty { display: none; }
.pfacts dt { font-weight: 800; color: var(--k); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.pfacts dd { margin: 0; }
.phow { display: grid; gap: 6px; }
.phowlabel { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.howlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.how { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; max-width: 100%; }
.how .hm { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--k); background: color-mix(in srgb, var(--k) 13%, var(--surface)); }
.pcheck { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); border-left: 4px solid #e0a800; color: #5b4300; }
.pathcard .pcheck b { color: #7a5a00; }
.k-paid-training { --k: #0b5a86; } .k-apprenticeship { --k: #1e3a8a; } .k-ease-in { --k: #0891b2; }
.k-business { --k: #6366f1; } .k-school { --k: #0e7490; } .k-board { --k: #64748b; }
/* the role cards get the same edge so the page reads as one design */
.fitcard:not(.pathcard) { border-left: 6px solid var(--accent); }
@media (max-width: 720px) { .pathglance { grid-template-columns: 1fr; } .pfacts { grid-template-columns: 1fr; gap: 2px; } .pfacts dd { margin-bottom: 8px; } .agebadge { display: none; }
  .pathsbanner { padding: 18px; } .pathcard { border-left-width: 5px; } }
.pb-note { margin-top: 8px !important; font-size: 13px; color: #b9c8ee !important; }
.estpay { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--k), color-mix(in srgb, var(--k) 55%, #0b1a3a)); }
.estpay .estbasis { justify-self: start; margin: 3px 0 2px; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; background: rgba(255,255,255,.2); color: #fff; }
.estpay .estbasis.published { background: #fff; color: var(--k); }
.estpay .estk { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.estpay .estnum { font-size: clamp(22px, 4.4vw, 30px); font-weight: 800; line-height: 1.1; }
.estpay .estnum small { font-size: 14px; font-weight: 650; opacity: .85; }
.estpay .estd { opacity: .92; line-height: 1.4; }
.estphases { list-style: none; margin: 6px 0 4px; padding: 0; padding-top: 6px; display: grid; grid-template-columns: max-content max-content; justify-content: start; gap: 4px 18px; border-top: 1px solid rgba(255,255,255,.25); }  /* each amount sits just after its label, the amounts lined up in one column */
.estphases li { display: contents; font-size: 14px; }
.estphases li > span, .estphases li > b { font-size: 14px; }
@media (max-width: 560px) { .estphases { grid-template-columns: minmax(0, 1fr); } .estphases li > b { margin: -2px 0 6px; } }
.estphases i { opacity: .8; font-style: normal; }
.wageline { padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.leadsto { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--k) 45%, var(--line)); }
.leadsto ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.leadsto li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--k) 8%, var(--surface)); }
.leadsto li span:first-of-type { color: var(--k); font-weight: 700; font-size: 14px; }
.leadsto p { margin: 0; }
.estphases .phtag { font-style: normal; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.18); }
.estphases .phtag.placement { background: #fff; color: var(--k); }
.estpay .notrain { justify-self: start; margin: 4px 0 2px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; background: #fff; color: var(--k); }
.prio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prio select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; }
.checked { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 560px) { .prio { grid-template-columns: 1fr; } }
.pillrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wherebadge { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.wb-virtual { background: #e6f1f8; border-color: #a9c9de; color: #0a3a5c; } .wb-hybrid { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.wb-online { background: #ecfccb; border-color: #bef264; color: #3f6212; } .wb-ask { background: #f1f5f9; color: var(--muted); font-weight: 700; }
.restrictedpill { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--warn-soft); color: #92400e; }
.farnote { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--bad-soft); color: #7f1d1d; border-left: 4px solid var(--bad); }
.pathcard:has(.farnote) { opacity: .88; }
.filterbar { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.filterhead { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.chipgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chipgroup .gl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.fchip { --k: var(--ink); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.fchip b { padding: 0 7px; border-radius: 999px; background: var(--soft); font-size: 12px; }
.fchip:hover { text-decoration: none; border-color: var(--k); }
.fchip[aria-pressed="true"] { background: var(--k); border-color: var(--k); color: #fff; } .fchip[aria-pressed="true"] b { background: rgba(255,255,255,.25); color: #fff; }
.jobslink { border-style: dashed; color: var(--accent-ink); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.matchchip { flex: none; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.m-strong { background: #d1fae5; color: #065f46; } .m-good { background: #e6f1f8; color: #0a3a5c; } .m-maybe { background: var(--soft); color: var(--muted); }
.pathcard header { flex-wrap: wrap; }
.filterbar { position: sticky; top: 8px; z-index: 20; box-shadow: 0 6px 18px -10px rgba(20, 33, 61, .35); }
.betterfit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; margin-bottom: 14px;
  border-left: 6px solid var(--accent); background: var(--accent-soft); }
.betterfit b { font-size: 16px; }
.fitlinks { display: grid; gap: 6px; margin: 0 0 12px; }
.fitlinks p { margin: 0; }
.pathnotes { margin: 0 0 10px; line-height: 1.5; }
@media (max-width: 720px) {
  .filterbar { top: 52px; padding: 8px 10px; }
  .filterbar .chipgroup { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .filterbar .fchip { flex: none; }
  .filterbar .gl { flex: none; }
  .filterbar .filterhead .muted { display: none; }
}
.prioq { border-left: 6px solid var(--accent); }
.priolist { counter-reset: prio; list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.prioitem { counter-increment: prio; display: grid; grid-template-columns: 44px 1fr auto; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--surface); cursor: grab; user-select: none; }
.prioitem:last-child { border-bottom: 0; }
.prioitem::before { content: counter(prio); display: grid; place-items: center; padding: 9px 0; font-weight: 700; font-size: 16px; background: var(--soft); color: var(--ink); border-right: 1px solid var(--line); }
.prioitem:hover { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.prioitem.dragging { opacity: .5; background: var(--accent-soft); }
.prioname { padding: 9px 14px; font-size: 16px; font-weight: 600; align-self: center; }
.prioname small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 1px; }
.prioarrows { display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.prioarrows button { width: 28px; height: 28px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font: inherit; line-height: 1; }
.prioarrows button:hover { border-color: var(--accent); color: var(--accent-ink); }

/* "Find your fit": either/or interest cards, one pair at a time */
.pairbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.pairbtn { padding: 22px 16px; min-height: 120px; border-radius: 14px; border: 2px solid var(--border, #cbd5e1); background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: clamp(17px, 2.6vw, 21px); font-weight: 650; line-height: 1.3; cursor: pointer; }
.pairbtn:hover, .pairbtn.on { background: var(--accent-soft); border-color: var(--accent); }
.pairitem { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.pairitems { list-style: none; padding: 0; margin: 10px 0 0; }
.pairopt { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .pairbtns, .pairitem { grid-template-columns: 1fr; } .pairbtn { min-height: 76px; padding: 16px 14px; } }

/* "Find your fit": the match score leads each card, like the job matches */
.fitscore { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 8px 10px; border-radius: 12px; line-height: 1; text-align: center; }
.fitscore b { font-size: 30px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fitscore b small { font-size: 14px; font-weight: 700; margin-left: 1px; }
.fitscore i { margin-top: 4px; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fchip small { font-size: 11px; font-weight: 600; opacity: .75; }
.band-strong { --k: #0b5a86; } .band-good { --k: #1a7fb0; } .band-maybe { --k: #64748b; }

/* "Anything you enjoy?": room to write, and it scrolls when someone has a lot to say */
.bigsay { width: 100%; min-height: 150px; max-height: 340px; overflow-y: auto; resize: vertical; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 16px; line-height: 1.5; }
.bigsay:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }

/* "Find your fit" cards share the careers card look (.job, .facts, .reqchips, .signal); only what is special to them is here */
.job.fitjob[hidden] { display: none; }
.fitjob { margin-bottom: 14px; }
.fitjob .body > p, .fitjob .body > dl, .fitjob .body > div:not(.top):not(.reqchips) { margin-top: 0; }
.fitjob .pwho { color: var(--muted); font-size: 14px; }
.fitjob .tag.warn { background: var(--warn-soft); color: var(--warn); }
.job.pathcard { border-left: 1px solid var(--line); display: grid; scroll-margin-top: 90px; }
.job.pathcard:hover { border-color: #bcd3e4; }

/* A refresh in progress: a slow red pulse (not a flash) on the label, a dot and the bar, so a page with "Not scored" rows is never mistaken for a broken one. */
@keyframes run-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes run-sheen { from { background-position: 0 0; } to { background-position: 28px 0; } }
.when.is-running { color: var(--bad); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; animation: run-pulse 1.9s ease-in-out infinite; }
.when.is-running::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; }
.minibar.is-running { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.minibar.is-running i, .runbar.is-running i {
  background: repeating-linear-gradient(115deg, var(--bad) 0 10px, color-mix(in srgb, var(--bad) 70%, #fff) 10px 20px);
  background-size: 28px 100%; animation: run-sheen .9s linear infinite;
}
.refresh { position: relative; }
.runnote { position: absolute; right: 0; top: calc(100% + 3px); font-size: 11.5px; color: var(--muted); white-space: nowrap; pointer-events: none; }
@media (max-width: 1020px) { .runnote { display: none; } }

/* Find-your-fit program cards are job cards: the match band on top, the details below, at every width.
   Two older rules (.pathcard display:grid, .fitjob display:flex with centred items) beat the job-card layout and left the
   details squeezed into a 150px column beside a full-width match panel. */
.job.fitjob.pathcard { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 14px; }
.job.fitjob.pathcard > .body { width: 100%; }

/* a small, always-visible way to report a problem or a bad match */
.feedback-fab { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.feedback-fab:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.feedback-fab .ico { width: 16px; height: 16px; }
@media (max-width: 760px) { .feedback-fab { display: none; } }
@media print { .feedback-fab { display: none; } }

/* "did you apply?" after the Apply button was used */
.applycheck { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; margin: 0 0 14px;
  border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); font-size: 14px; }
.applycheck .acbtns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.plain th { color: var(--muted); font-weight: 700; font-size: 12.5px; }
/* (thumbs up / down on a match was removed) */
.rate { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px; justify-content: center; }
.rate > .small { align-self: center; }
.rate .btn .ico { width: 16px; height: 16px; }
.ratedown { flex-basis: auto; }
.ratedown > summary { list-style: none; cursor: pointer; }
.ratedown > summary::-webkit-details-marker { display: none; }
.ratedown[open] { flex-basis: 100%; }
.ratedown[open] > summary { margin: 0 auto; display: flex; width: max-content; border-color: var(--accent); }
.ratedown form { margin-top: 10px; text-align: left; }

/* rating a match from a card; the "why" strip after a thumbs-down stays slim (two short rows on a phone) */
.ratecard { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ratecard .rate-lbl { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; white-space: nowrap; }
.ratecard .rated { display: inline-flex; align-items: center; padding: 6px 8px; color: var(--accent-ink); }
.ratecard .ico, .ratestrip .ico { width: 16px; height: 16px; }
.job.is-rated-down { padding: 0; min-height: 0; border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent), 0 0 20px 2px color-mix(in srgb, var(--accent) 55%, transparent); animation: ratepulse 1.3s ease-in-out 4; }
@keyframes ratepulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 8px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
  50% { box-shadow: 0 0 0 3px var(--accent), 0 0 30px 7px color-mix(in srgb, var(--accent) 75%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .job.is-rated-down { animation: none; } }
.ratestrip { display: flex; align-items: center; gap: 8px 10px; padding: 8px 12px; flex-wrap: wrap; }
.ratestrip .rs-msg { font-size: 13px; font-weight: 600; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ratestrip .rs-msg b { font-weight: 800; }
.ratestrip .rs-ask { align-self: center; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ratestrip .rs-end { display: inline-flex; gap: 6px; }
.ratestrip .rs-chips { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.ratestrip .rs-chips::-webkit-scrollbar { display: none; }
.ratestrip button { white-space: nowrap; font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ratestrip button:hover { border-color: var(--accent); color: var(--accent-ink); }
.ratestrip .rs-other { display: flex; gap: 6px; flex: 1 1 100%; }
.ratestrip .rs-text { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.ratestrip .rs-note { flex: 1 1 100%; font-size: 12px; color: var(--muted); }
.ratestrip .rs-undo { border-color: var(--accent); color: var(--accent-ink); }
@media (min-width: 761px) { .ratestrip .rs-chips { flex: 0 1 auto; order: 2; } .ratestrip .rs-msg { flex: 0 0 auto; } .ratestrip .rs-end { margin-left: auto; order: 3; } }
.ratecard .act.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

.feed .groupshelf { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.feed .groupshelf > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; padding: 8px 2px; }
.feed .groupshelf > summary::-webkit-details-marker { display: none; }
.feed .groupshelf > summary span { font-weight: 800; font-size: 16px; }
.feed .groupshelf > summary span::before { content: "\25B8  "; color: var(--muted); }
.feed .groupshelf[open] > summary span::before { content: "\25BE  "; }
.feed .groupshelf > summary b { margin-left: 6px; font-size: 12.5px; color: var(--muted); }
.feed .groupshelf > summary small { color: var(--muted); font-size: 12.5px; }
.feed .groupshelf > .pathcard { margin-top: 12px; }

.feed .groupindex { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 6px; }
.feed .groupindex li a { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13.5px; line-height: 1.35; }
.feed .groupindex li a:hover { border-color: var(--accent); text-decoration: none; }
.feed .groupindex li b { display: block; font-size: 14px; }
.feed .groupindex li span { color: var(--muted); }
.feed .groupshelf[open] .groupindex { display: none; }

/* ===================== Typography: the public pages' type, everywhere =====================
   Noto Sans for text, Noto Sans Display light for page titles and big figures, and small uppercase accent labels for the sections of a page
   (the same hierarchy as the sign-in page and the job detail pages there). Colours and layout are not touched. */
:root {
  --sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: var(--sans);
  --display: "Noto Sans Display", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --muted: #5b6770;
}
body { font-size: 15.5px; line-height: 1.6; }
h1 { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; }
h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.role h1 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.1; }
.rp-head h1, .wiz-card h1, .policy h1, .briefing h1 { font-weight: 300; }
.brand { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.card-title h2, .card header h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.stat b, .stage .n, .pipeline .aside .n { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; }
.eyebrow { font-weight: 700; letter-spacing: .09em; }
.role .meta, .role .sub { color: var(--muted); }
.card { box-shadow: none; }
.role .card { padding: 24px; }

/* ===================== Fonts, hosted here (Noto Sans and Noto Sans Display, SIL Open Font License: see fonts/OFL.txt) =====================
   Variable fonts, Latin letters (English and French). Without these the type falls back to the machine's own fonts. */
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/NotoSans-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Display"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/NotoSansDisplay-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* the two-word name stays on one line, a touch smaller on phones so the header's buttons keep their room */
.brand span, .brand { white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: 17px; gap: 7px; } .brand .brand-mark, .brand svg { width: 24px; height: 24px; } }
.lockco { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; }
.lockco .i { width: 14px; height: 14px; }
.brand .halo { opacity: 0; }
