:root {
  --ink: #0f1b33;
  --ink-2: #33415c;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --brand: #0b3d91;
  --brand-2: #1557c0;
  --brand-soft: #e8f0fc;
  --accent: #0f9d74;
  --accent-soft: #e3f6ef;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --bad: #b91c1c;
  --bad-soft: #fde8e8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 4px 16px rgba(15, 27, 51, .06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 750; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Header */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.5px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav .who { font-size: 13px; color: var(--muted); margin-right: 6px; }

/* Buttons */
.btn { white-space: nowrap; appearance: none; border: 1px solid transparent; border-radius: 9px; padding: 10px 18px; font: 600 14px var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0b8763; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c7d2e0; background: #fbfcfe; }
.btn-danger { background: #fff; border-color: #f3c4c4; color: var(--bad); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .g2, .g3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; border: 1px solid #cfd8e3; border-radius: 9px; padding: 10px 12px; font: 14px var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(21, 87, 192, .15); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.check input { margin-top: 3px; }

/* Choice cards */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; border: 1.5px solid var(--line); border-radius: 11px; padding: 14px 14px 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #b8c6da; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { display: block; font-size: 15px; }
.choice span { font-size: 12.5px; color: var(--muted); }
.choice .flag { margin-bottom: 8px; display: inline-block; }
.choice.on { border-color: var(--brand); background: var(--brand-soft); }
.choices.bands { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
@media (max-width: 640px) { .choices.bands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role-group { margin: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.role-group:first-child { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; user-select: none; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; margin: 0 6px 6px 0; }
.tag-ok { background: var(--accent-soft); color: #08694d; }
.tag-miss { background: #f1f5f9; color: var(--ink-2); }
.tag-high { background: var(--bad-soft); color: var(--bad); }
.tag-medium { background: var(--warn-soft); color: var(--warn); }
.tag-low { background: #eef2f7; color: var(--ink-2); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-pending { background: var(--warn-soft); color: var(--warn); }
.pill-approved, .pill-active { background: var(--accent-soft); color: #08694d; }
.pill-rejected, .pill-suspended { background: var(--bad-soft); color: var(--bad); }
.pill-invited { background: var(--brand-soft); color: var(--brand); }

/* Landing */
.hero { background: radial-gradient(1200px 400px at 85% -10%, #dbe8fb 0, transparent 60%), linear-gradient(180deg, #fff, var(--bg)); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.section { padding: 56px 0; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 750; display: grid; place-items: center; margin-bottom: 12px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 27, 51, .12); padding: 22px; }
.mock .bar { height: 8px; border-radius: 6px; background: #edf2f7; margin: 8px 0; overflow: hidden; }
.mock .bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.soon { border: 1px dashed #b8c6da; border-radius: var(--radius); padding: 20px; background: #fbfcfe; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; background: #fff; }

/* Wizard */
.stepper { display: flex; gap: 0; margin: 28px 0 22px; counter-reset: s; }
.stepper .st { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; padding-right: 10px; }
.stepper .st::after { content: ""; flex: 1; height: 2px; background: var(--line); margin-left: 6px; }
.stepper .st:last-child::after { display: none; }
.stepper .dot { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.stepper .st.on { color: var(--ink); }
.stepper .st.on .dot { border-color: var(--brand); color: #fff; background: var(--brand); }
.stepper .st.done .dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.stepper .st.done::after { background: var(--accent); }
@media (max-width: 640px) { .stepper .st .lbl { display: none; } .stepper .st.on .lbl { display: inline; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
details.more { border: 1px solid var(--line); border-radius: 11px; padding: 0 16px; background: #fbfcfe; }
details.more summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: inline-block; width: 22px; color: var(--brand); font-weight: 800; }
details.more[open] summary::before { content: "–"; }

.drop { border: 2px dashed #b8c6da; border-radius: 14px; padding: 36px 20px; text-align: center; background: #fbfcfe; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.drag { border-color: var(--brand-2); background: var(--brand-soft); }
.drop .ico { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.tabs { display: inline-flex; background: #eef2f7; border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.filebox { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #fff; }

/* Scores */
.score-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
@media (max-width: 700px) { .score-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.ring { --v: 0; --c: var(--accent); width: 170px; height: 170px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), #e9eef5 0); display: grid; place-items: center; }
.ring > div { width: 136px; height: 136px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.ring b { font-size: 42px; font-weight: 800; line-height: 1; }
.ring span { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.meter { margin: 10px 0; }
.meter .top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.meter .track { height: 9px; background: #e9eef5; border-radius: 6px; overflow: hidden; margin-top: 5px; }
.meter .track i { display: block; height: 100%; border-radius: 6px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: start; }
.checks li:last-child { border-bottom: 0; }
.checks .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.ic.ok { background: var(--accent); } .ic.no { background: #e08a1e; }
.checks .pts { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.issue { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.issue .fix { margin-top: 6px; padding: 8px 10px; background: var(--accent-soft); border-radius: 8px; font-size: 13.5px; color: #08694d; }
.compare { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.compare .big { font-size: 34px; font-weight: 800; }
.arrow { font-size: 22px; color: var(--muted); }

/* CV editor + preview */
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .cv-layout { grid-template-columns: 1fr; } }
.cv-paper { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px 38px; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 13px; color: #111; line-height: 1.4; border-radius: 4px; }
.cv-paper h1 { font-size: 24px; margin: 0; letter-spacing: 0; font-weight: 700; color: #111; }
.cv-paper .hl { font-size: 13.5px; color: #333; margin: 2px 0 4px; font-weight: 600; }
.cv-paper .ct { font-size: 12px; color: #333; margin-bottom: 10px; }
.cv-paper h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1.2px solid #111; padding-bottom: 2px; margin: 14px 0 6px; color: #111; font-weight: 700; }
.cv-paper .it { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; margin-top: 7px; }
.cv-paper .it span { font-weight: 400; white-space: nowrap; }
.cv-paper .sub { font-style: italic; color: #333; }
.cv-paper ul { margin: 3px 0 4px 18px; padding: 0; }
.cv-paper li { margin: 1px 0; }
.cv-paper p { margin: 0 0 4px; }
.ph { background: #fff3c4; border-radius: 3px; padding: 0 2px; }
.editor .blk { border: 1px solid var(--line); border-radius: 11px; padding: 14px; margin-bottom: 12px; background: #fff; }
.editor .blk h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.editor .item { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.editor .item:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.editor .mini { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.editor textarea { min-height: 70px; font-size: 13.5px; }
.notes { background: var(--warn-soft); border: 1px solid #f6dcb0; border-radius: 11px; padding: 14px 18px; }
.notes ul { margin: 6px 0 0 18px; padding: 0; }

/* Admin */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.seat { display: flex; justify-content: space-between; align-items: center; }
.seat b { font-size: 26px; }
.keybox { font-family: Consolas, Menlo, monospace; font-size: 18px; letter-spacing: 1.5px; background: var(--brand-soft); padding: 10px 14px; border-radius: 9px; display: inline-block; }

/* Toast + loading */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 100; max-width: 92vw; }
.toast.err { background: var(--bad); }
.overlay { position: fixed; inset: 0; background: rgba(246, 248, 251, .86); display: grid; place-items: center; z-index: 90; backdrop-filter: blur(2px); }
.overlay .box { text-align: center; max-width: 360px; padding: 20px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #dbe4f0; border-top-color: var(--brand); animation: spin .9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 27, 51, .45); display: grid; place-items: center; z-index: 95; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 24px; max-width: 480px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }

/* Print: only the CV */
#print-area { display: none; }
@media print {
  body { background: #fff; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  #print-area .cv-paper { border: 0; box-shadow: none; padding: 0; font-size: 10.5pt; }
  #print-area .cv-paper h1 { font-size: 18pt; }
  #print-area .cv-paper h2 { font-size: 10.5pt; break-after: avoid; }
  #print-area .cv-paper .it { break-after: avoid; }
  #print-area .cv-paper li { break-inside: avoid; }
  .ph { background: none; }
}
@media (max-width: 640px) {
  .brand small, .nav .who { display: none; }
  .brand { font-size: 16px; white-space: nowrap; }
  .nav .btn { white-space: nowrap; padding: 6px 10px; }
  .card { padding: 18px; }
}

/* ===== Shared app header tabs ===== */
.apptabs { display: flex; gap: 4px; margin-right: auto; margin-left: 28px; }
.apptabs a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.apptabs a:hover { background: #f1f5f9; }
.apptabs a.on { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 860px) {
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; }
  .apptabs { order: 3; width: 100%; margin: 6px 0 0; overflow-x: auto; border-top: 1px solid var(--line); padding: 6px 0; }
}

/* Accessibility: visible keyboard focus */
.choice:focus-within { outline: 3px solid rgba(21, 87, 192, .35); outline-offset: 2px; }
button.chip { font: inherit; font-size: 13px; color: var(--ink); }
button.chip.on { color: #fff; }
a:focus-visible, button:focus-visible, .chip:focus-visible { outline: 3px solid rgba(21, 87, 192, .45); outline-offset: 2px; }

/* ===== Jobs ===== */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { font-size: 28px; display: block; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 12px; }
.job-top { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.job h3 { margin: 0 0 2px; font-size: 17px; }
.job .meta { font-size: 13.5px; color: var(--ink-2); }
.badge-score { min-width: 64px; text-align: center; border-radius: 12px; padding: 8px 10px; font-weight: 800; font-size: 22px; line-height: 1; }
.badge-score small { display: block; font-size: 10.5px; font-weight: 600; margin-top: 4px; letter-spacing: .02em; }
.s-ex { background: var(--accent-soft); color: #08694d; }
.s-good { background: var(--brand-soft); color: var(--brand); }
.s-ok { background: #f1f5f9; color: var(--ink-2); }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.trust span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.trust .t-ok { background: var(--accent-soft); color: #08694d; }
.trust .t-warn { background: var(--warn-soft); color: var(--warn); }
.why { margin: 6px 0 0 18px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.flags { font-size: 12.5px; color: var(--warn); margin-top: 6px; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { width: 40px; height: 22px; appearance: none; background: #cbd5e1; border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: left .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 21px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { font-size: 36px; margin-bottom: 8px; }

/* ===== Applications ===== */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pipe { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; cursor: pointer; text-align: left; font: inherit; }
.pipe b { font-size: 24px; display: block; }
.pipe span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pipe.on { border-color: var(--brand); background: var(--brand-soft); }
.app-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.app-row:hover { background: #fbfcfe; }
.app-row:last-child { border-bottom: 0; }
.st-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-saved { background: #f1f5f9; color: var(--ink-2); }
.st-applying { background: var(--warn-soft); color: var(--warn); }
.st-applied { background: var(--brand-soft); color: var(--brand); }
.st-screening, .st-assessment { background: #ede9fe; color: #5b21b6; }
.st-interview { background: #e0f2fe; color: #075985; }
.st-offer, .st-accepted { background: var(--accent-soft); color: #08694d; }
.st-rejected, .st-withdrawn { background: #f1f5f9; color: var(--muted); }
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 27, 51, .4); z-index: 80; display: flex; justify-content: flex-end; }
.drawer { background: var(--bg); width: min(720px, 100%); height: 100%; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer-head { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 22px; position: sticky; top: 0; z-index: 2; }
.drawer-body { padding: 18px 22px 40px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.timeline li.iv::before { border-color: #0284c7; background: #e0f2fe; }
.timeline .when { font-size: 12px; color: var(--muted); }
.guide { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 11px; padding: 16px 18px; }
.guide ol { margin: 6px 0 0 18px; padding: 0; }
.guide li { margin: 4px 0; font-size: 14px; }
.prep h4 { margin: 14px 0 6px; font-size: 14px; }
.prep .qa { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.prep .qa b { display: block; font-size: 13.5px; }
.prep .qa div { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.banner { border-radius: 11px; padding: 14px 16px; background: var(--warn-soft); border: 1px solid #f6dcb0; }
@media (max-width: 900px) { #layout { grid-template-columns: 1fr !important; } #alerts { position: static !important; order: 2; } }

/* Interview pack */
.pq { border: 1px solid var(--line); border-radius: 11px; background: #fff; margin-top: 10px; }
.pq summary { list-style: none; cursor: pointer; display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.pq summary::-webkit-details-marker { display: none; }
.pq-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.pq summary b { display: block; font-size: 14.5px; line-height: 1.4; }
.pq-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pq-body { padding: 0 14px 14px 52px; font-size: 14px; }
.pq-answer { background: var(--accent-soft); border-radius: 9px; padding: 10px 12px; color: #0b4f3a; white-space: pre-line; line-height: 1.55; }
.pq-body ul { margin: 4px 0 8px 18px; padding: 0; }
@media (max-width: 640px) { .pq-body { padding-left: 14px; } }

/* ---------- Final pass: country badge, Today, preferences, board, practice ---------- */
.cc { display: inline-block; font: 700 10.5px/1 var(--font); letter-spacing: .04em; color: var(--brand); background: var(--brand-soft); border: 1px solid #cfdcf5; border-radius: 5px; padding: 3px 5px; vertical-align: 1px; }
.choice .cc { font-size: 12px; padding: 4px 7px; }

.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 26px 0 18px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.action { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.action:last-child { border-bottom: 0; }
.action .ai { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--brand); background: var(--brand-soft); }
.action .ai.k-interview, .action .ai.k-offer { background: var(--accent-soft); color: #08694d; }
.action .ai.k-follow_up, .action .ai.k-confirm { background: var(--warn-soft); color: var(--warn); }
.action .body { flex: 1; min-width: 0; }
.action .body b { display: block; font-size: 14.5px; }
.goalbar { height: 10px; background: #edf1f7; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.goalbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; transition: width .4s; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.funnel div { text-align: center; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; }
.funnel b { display: block; font-size: 20px; color: var(--brand); }
.funnel span { font-size: 11.5px; color: var(--muted); }
.dx { border-left: 4px solid var(--brand); background: #f8fbff; border-radius: 8px; padding: 12px 14px; margin-top: 14px; }
.dx.warn { border-color: var(--warn); background: #fffaf2; }
.dx.good { border-color: var(--accent); background: #f3fbf8; }
.setup li { list-style: none; display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.setup ul { margin: 0; padding: 0; }
.setup .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; font-size: 12px; flex: none; }
.setup li.done .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.setup li.done a { color: var(--muted); text-decoration: line-through; }
.mentor-note { background: linear-gradient(135deg, #eef4ff, #f3fbf8); border: 1px solid #d6e3fb; }

.prefs { background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 4px; margin: 6px 0 16px; }
.prefs h3 { margin: 0 0 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg label { margin: 0; padding: 8px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; border-right: 1px solid var(--line); color: var(--ink-2); }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--brand); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: -2px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.filters select { width: auto; padding: 6px 10px; font-size: 13px; }
.job.focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.reason-grid button { text-align: left; }

.view-toggle { display: inline-flex; gap: 4px; }
.board { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.col { background: #f1f5f9; border-radius: 12px; padding: 10px; min-height: 160px; }
.col.over { background: var(--brand-soft); outline: 2px dashed var(--brand-2); }
.col h4 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; color: var(--ink-2); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; cursor: grab; font-size: 13px; box-shadow: 0 1px 2px rgba(15,27,51,.05); }
.kcard b { display: block; font-size: 13.5px; line-height: 1.3; }
.kcard .stuck { display: inline-block; margin-top: 6px; font-size: 11.5px; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 2px 6px; }
.kcard.dragging { opacity: .5; }

.practice { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.practice textarea { min-height: 90px; }
.fb { margin-top: 10px; border-radius: 10px; padding: 12px; background: #f8fafc; border: 1px solid var(--line); font-size: 13.5px; }
.fb .sc { font-size: 22px; font-weight: 800; }
.fb ul { margin: 4px 0 6px 18px; padding: 0; }
.tailor-meter { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.tailor-meter .big { font-size: 30px; font-weight: 800; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.mentor-drawer .stat b { font-size: 22px; }

@media (max-width: 900px) {
  .today-grid, #layout { grid-template-columns: 1fr !important; }
  #alerts { position: static !important; }
  .board { grid-template-columns: repeat(6, 78vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .reason-grid { grid-template-columns: 1fr; }
  .apptabs { overflow-x: auto; }
  .funnel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .apptabs { gap: 0; justify-content: space-between; }
  .apptabs a { padding: 8px 7px; font-size: 13px; }
}
