:root {
  --bg: #f7f7f8;
  --surface: #fff;
  --text: #0c0e12;
  --muted: #5f6470;
  --line: #e6e7eb;
  --line-strong: #d2d4da;
  --accent: #3355ff;
  --accent-ink: #1f3bc4;
  --accent-soft: #eef1ff;
  --ok: #157347;
  --ok-soft: #e7f5ed;
  --warn: #9a5b00;
  --warn-soft: #fff3df;
  --danger: #c22b2b;
  --danger-soft: #fdecec;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em }
h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700 }
h2 { font-size: 22px; font-weight: 650 }
h3 { font-size: 17px; font-weight: 600 }
p { margin: 0 0 1em }
a { color: var(--accent); text-decoration: none }
a:hover { text-decoration: underline }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px }
.wrap.narrow { max-width: 720px }
.wrap.wide { max-width: 1360px }
.section { padding-block: 48px }
.muted { color: var(--muted) }
.center { text-align: center }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch }
.fineprint { font-size: 13px; color: var(--muted) }
.back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 24px }
.back:hover { color: var(--text) }

/* Nav & footer */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line) }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); letter-spacing: -.01em }
.brand:hover { text-decoration: none }
.mark { display: block; width: 25px; height: 30px }
.brand-sub { color: var(--muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line-strong) }
.navlink { font-size: 14px; color: var(--muted) }
.navlink:hover { color: var(--text); text-decoration: none }
.foot { border-top: 1px solid var(--line); padding: 24px 0; margin-top: 32px; font-size: 13px; color: var(--muted) }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--text);
  background: var(--text); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: #262a33; text-decoration: none }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong) }
.btn.ghost:hover { background: var(--bg) }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px }
.btn.block { width: 100% }

/* Cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow) }
.form { display: grid; gap: 22px; margin-top: 28px }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0 }
.field > span, .field > legend { font-size: 14px; font-weight: 550; padding: 0 }
fieldset.field { display: block }
fieldset.field > legend { margin-bottom: 10px }
fieldset.field > input { margin-top: 10px }
.field em { font-style: normal; font-weight: 400; color: var(--muted) }
input:not([type=radio], [type=checkbox], [type=hidden]), select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:not([type=radio], [type=checkbox]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft) }
textarea { resize: vertical; min-height: 96px; line-height: 1.55 }
.counter { display: block; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums }
.error { color: var(--danger); font-size: 13px }
.alert { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 16px 0 0 }
.saved { background: var(--ok-soft); color: var(--ok); border-radius: 8px; padding: 6px 12px; font-size: 14px; margin: 0 }

.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  font-size: 14px; cursor: pointer; user-select: none; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--text) }
.chip:has(:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink) }
.chip input, .option input { margin: 0; accent-color: var(--accent) }

/* Landing */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(1000px 420px at 15% -20%, var(--accent-soft), transparent 70%), var(--surface) }
.hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; max-width: 22ch; margin-bottom: 16px }
.hero .lead { font-size: 17px; margin-bottom: 28px }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--text); color: #fff; font-size: 13px; vertical-align: middle }
.jobs { display: grid; gap: 12px; margin-top: 20px }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  color: inherit; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.job:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(16, 24, 40, .08); transform: translateY(-1px) }
.job h3 { font-size: 19px; margin-bottom: 6px }
.job p { color: var(--muted); margin-bottom: 14px }
.go { font-weight: 600; white-space: nowrap; color: var(--text) }
.meta { display: flex; flex-wrap: wrap; gap: 8px }
.tag { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted) }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 20px 0 0; counter-reset: step }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700 }
.steps p { color: var(--muted); margin: 0 }

/* Job page */
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start }
.prose h1 { margin-bottom: 14px }
.prose .lead { margin-top: 20px }
.prose h2 { font-size: 19px; margin-top: 36px }
.prose ul { padding-left: 20px; margin: 0 }
.prose li { margin-bottom: 8px }
.prose li::marker { color: var(--accent) }
.apply-card { position: sticky; top: 84px }

/* Intro & questions */
.notes { display: grid; gap: 12px; margin: 28px 0 20px }
.note { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px }
.note p { margin: 4px 0 0; color: var(--muted) }
.note.accent { border-color: #cdd6ff; background: var(--accent-soft) }
.note.accent p { color: #2e3a66 }
.icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 17px }
.note.accent .icon { background: #fff; border-color: #cdd6ff; color: var(--accent) }

.q-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px }
.timer b { color: var(--text); font-variant-numeric: tabular-nums }
.timer.low b { color: var(--danger) }
progress { display: block; width: 100%; height: 6px; margin-bottom: 20px; border: 0; border-radius: 999px; background: var(--line); appearance: none }
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .3s }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px }
.question h1 { font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; margin-bottom: 18px }
.question textarea[rows="8"] { min-height: 200px }
.options { display: grid; gap: 10px; margin-bottom: 22px }
.option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--text) }
.option:has(:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) }
.option input { flex: none; width: 16px; height: 16px; margin-top: 3px }
.actions { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px }

.done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 24px auto; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 28px; font-weight: 700 }
.center .lead { margin-inline: auto }

/* Admin */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px }
.admin-head h1 { margin: 0 0 4px }
.admin-head p { margin: 0 }
.admin-tools { display: flex; gap: 8px }
.search input { width: 300px; height: 44px }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px }
.tabs a { padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap }
.tabs a:hover { color: var(--text); text-decoration: none }
.tabs a.active { color: var(--text); border-color: var(--text) }
.tabs span { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow) }
.table { width: 100%; border-collapse: collapse; font-size: 14px }
.table th { text-align: left; white-space: nowrap; padding: 12px 16px; background: #fbfbfc; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top }
.table tr:last-child td { border-bottom: 0 }
.table tbody tr:hover { background: #fafbff }
.table td small { display: block; color: var(--muted); font-size: 13px }
.table td.num small { display: inline }
.num { font-variant-numeric: tabular-nums; white-space: nowrap }
.warn { color: var(--warn); font-weight: 600 }
.empty { padding: 48px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: middle; white-space: nowrap }
.badge.submitted { background: var(--accent-soft); color: var(--accent-ink); border-color: #d4dcff }
.badge.shortlisted, .badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #c5e6d3 }
.badge.on_hold { background: var(--warn-soft); color: var(--warn); border-color: #f3dbad }
.badge.rejected { background: var(--danger-soft); color: var(--danger); border-color: #f4c8c8 }
.score { text-align: right }
.score strong { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1 }
.score small { font-size: 16px; color: var(--muted); font-weight: 500 }
.score span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start }
.detail-grid aside { display: grid; gap: 16px; position: sticky; top: 84px }
.detail-grid aside .card { padding: 22px }
.review { margin: 0; gap: 16px }
.review h3 { margin: 0 }
.answers { display: grid; gap: 16px }
.answer { padding: 24px }
.answer h3 { font-size: 16px; line-height: 1.45; letter-spacing: -.005em }
.answer-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; font-size: 12px; color: var(--muted) }
.answer-text { margin: 0; white-space: pre-wrap; word-break: break-word }
.label { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted) }
.choices { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px }
.choices li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 14px }
.choices li.picked { border-color: var(--accent); background: var(--accent-soft); color: var(--text) }
.choices b { font-weight: 600; font-variant-numeric: tabular-nums }
dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px }
dt { color: var(--muted) }
dd { margin: 0; word-break: break-word }

.admin-nav { display: flex; align-items: center; gap: 20px; font-size: 14px }
.admin-nav a { color: var(--muted) }
.admin-nav a:hover { color: var(--text); text-decoration: none }
.admin-nav form { margin: 0 }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer }
.linkbtn:hover { color: var(--text) }
.linkbtn.link { color: var(--accent) }
.linkbtn.link:hover { text-decoration: underline }
.linkbtn.danger { color: var(--danger) }
.banner { margin: 0 0 16px }
.right { text-align: right }
.login { max-width: 440px }
.login h1 { font-size: 28px; margin-bottom: 4px }
.login p { margin: 0 }

/* Email verification */
input.code { font-size: 28px; font-weight: 600; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; height: 64px }
.verify-help { display: grid; gap: 12px; margin-top: 20px; font-size: 14px }
.verify-help form { margin: 0 }
summary { cursor: pointer; color: var(--accent); width: fit-content }
.inline-form { display: flex; gap: 8px; margin-top: 10px }
.inline-form .btn { flex: none }

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr }
  .detail-grid aside { position: static; order: -1 }
}
@media (max-width: 860px) {
  .job-grid { grid-template-columns: 1fr; gap: 32px }
  .apply-card { position: static }
  .steps { grid-template-columns: 1fr }
}
@media (max-width: 640px) {
  .section { padding-block: 32px }
  .hero { padding: 56px 0 48px }
  .card { padding: 20px }
  .grid2 { grid-template-columns: 1fr }
  .job { flex-direction: column; align-items: flex-start; padding: 20px }
  .admin-tools { width: 100% }
  .search { flex: 1 }
  .search input { width: 100% }
  .brand-sub { display: none }
}

/* Admin "cockpit" theme (myactionboard.com/home pattern): near-black canvas, hairline panels,
   mono labels, beam-yellow accent. Re-points the tokens above, so admin markup needs no dark: variants. */
.dash {
  --bg: #08080a; --surface: #0f0f12; --text: #f7f7f8; --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .07); --line-strong: rgba(255, 255, 255, .12);
  --accent: #ffd100; --accent-ink: #ffde47; --accent-soft: rgba(255, 209, 0, .1);
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .1); --warn: #fb923c; --warn-soft: rgba(251, 146, 60, .1);
  --danger: #fb7185; --danger-soft: rgba(251, 113, 133, .1); --shadow: none;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark; color: #d4d4d8;
  font-family: Switzer, Inter, system-ui, sans-serif; font-feature-settings: normal;
}
.dash ::selection { background: var(--accent); color: #08080a }
.dash h1, .dash h2, .dash h3, .dash strong { color: var(--text) }
.dash .nav { background: rgba(8, 8, 10, .8) }
.dash .btn { background: var(--accent); border-color: var(--accent); color: #0f0f12 }
.dash .btn:hover { background: var(--accent-ink) }
.dash .btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong) }
.dash .btn.ghost:hover { background: rgba(255, 255, 255, .04) }
.dash input:not([type=radio], [type=checkbox], [type=hidden]), .dash select, .dash textarea { background: #08080a }
.dash .option { background: transparent }
.dash .table th, .dash .label, .dash .eyebrow, .dash .kpi span, .dash .tabs span, .dash .answer-head {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.dash .table th { background: transparent }
.dash .table tbody tr:hover { background: rgba(255, 255, 255, .025) }
.dash .table a, .dash .table a strong { color: var(--text) }
.dash .table a:hover strong { color: var(--accent) }
.dash .tabs a.active { border-color: var(--accent) }
.dash .tabs span { background: transparent; letter-spacing: .04em }
.dash .badge { border-color: transparent }
.dash .badge::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: currentColor }
.dash .badge.draft { background: rgba(255, 255, 255, .05) }
.dash .empty { background: transparent }
.dash .foot { color: #71717a }

.dash .eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted) }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft) }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px }
.kpi { display: grid; gap: 6px; padding: 20px 22px; border-left: 1px solid var(--line) }
.kpi:first-child { border-left: 0 }
.kpi strong { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums }
.kpi:nth-child(3) strong { color: var(--accent) }
.kpi small { color: #71717a; font-size: 12px }
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .kpi { border-left: 0; border-top: 1px solid var(--line) }
  .kpi:nth-child(-n+2) { border-top: 0 }
  .kpi:nth-child(even) { border-left: 1px solid var(--line) }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1 }
}
