:root {
  /* Recruiters Desk */
  --brand: #0f766e; --brand-ink: #115e59; --brand-soft: #e6f4f2;
  --ink: #0b1220; --ink-2: #1e293b; --ink-3: #64748b; --line: #e3e7f0; --line-2: #eef1f7; --bg: #f6f7fb; --card: #fff;
  --online: #1d4ed8; --online-soft: #e7eeff; --offline: #b45309; --offline-soft: #fef3e2;
  --good: #047857; --good-soft: #e3f5ec; --bad: #be123c; --bad-soft: #fde7ec; --warn: #b45309; --warn-soft: #fef3e2; --muted-soft: #f0f2f7;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px -6px rgba(15,23,42,.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand-ink); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 17px; margin: 0 0 12px; } h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.boot { padding: 40px; color: var(--ink-3); }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.nav { display: flex; gap: 2px; flex: 1; align-items: center; flex-wrap: wrap; min-width: 0; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; white-space: nowrap; position: relative; }
.nav a:hover { background: var(--line-2); text-decoration: none; }
.nav a.on { color: var(--brand-ink); background: var(--brand-soft); }
.nav .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; text-align: center; line-height: 18px; }
.who { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.who .role { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: var(--muted-soft); color: var(--ink-2); font-weight: 600; }
main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 60px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* cards, grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; }
.facts div b { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-ink); }
.btn.danger { color: var(--bad); } .btn.sm { padding: 5px 10px; font-size: 13px; } .btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15,118,110,.25); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand); }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; }
.form { display: grid; gap: 12px; } .form.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); } .seg button.on { background: var(--ink); color: #fff; }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.t td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: #fafbfc; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t input, .t select { padding: 6px 8px; width: 100%; }
.scroll { overflow-x: auto; }

/* badges */
.b { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--muted-soft); color: var(--ink-2); }
.b.online { background: var(--online-soft); color: var(--online); } .b.offline { background: var(--offline-soft); color: var(--offline); }
.b.good, .b.submitted, .b.pass { background: var(--good-soft); color: var(--good); } .b.bad, .b.fail, .b.rejected { background: var(--bad-soft); color: var(--bad); }
.b.pending, .b.warn { background: var(--warn-soft); color: var(--warn); } .b.assigned { background: var(--brand-soft); color: var(--brand-ink); } .b.booked { background: var(--online-soft); color: var(--online); }
.b.cancelled { background: var(--muted-soft); color: var(--ink-3); text-decoration: line-through; }

/* calendar */
.cal { display: grid; grid-template-columns: 74px repeat(6, minmax(130px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.cal > div { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-height: 86px; padding: 6px; }
.cal .ch { min-height: 0; background: #fafbfc; font-weight: 600; font-size: 12.5px; padding: 8px; }
.cal .ch.today { color: var(--brand-ink); }
.cal .hr { font-size: 12px; color: var(--ink-3); font-weight: 600; background: #fafbfc; }
.cal .closed { background: repeating-linear-gradient(135deg, #f6f7f9, #f6f7f9 6px, #eef0f4 6px, #eef0f4 12px); }
.cal .past { background: #fcfcfd; }
.seats { display: flex; gap: 4px; margin-bottom: 4px; font-size: 11px; font-weight: 600; }
.seats span { padding: 1px 6px; border-radius: 5px; }
.seats .on { background: var(--online-soft); color: var(--online); } .seats .off { background: var(--offline-soft); color: var(--offline); } .seats .full { background: var(--bad-soft); color: var(--bad); }
.chip { display: block; padding: 5px 7px; border-radius: 7px; margin-top: 4px; font-size: 12px; line-height: 1.3; border-left: 3px solid var(--online); background: var(--online-soft); color: var(--ink); cursor: pointer; }
.chip.Offline { border-left-color: var(--offline); background: var(--offline-soft); }
.chip.st-cancelled, .chip.st-rejected { opacity: .5; text-decoration: line-through; } .chip.st-pending { border-left-style: dashed; }
.chip.st-submitted::after { content: " ✓"; color: var(--good); font-weight: 700; }
.chip:hover { filter: brightness(.97); text-decoration: none; }
.chip b { font-weight: 600; }

/* booking grid */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.day { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 12px; text-align: center; cursor: pointer; min-width: 78px; font: inherit; }
.day b { display: block; font-size: 18px; } .day span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }
.day.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); } .day:disabled { opacity: .45; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 8px; align-items: stretch; }
.slots .lab { display: flex; align-items: center; font-weight: 600; }
.seat { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 10px; font: inherit; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.seat .m { font-weight: 600; } .seat .l { font-size: 12.5px; color: var(--ink-3); }
.seat.Online .m { color: var(--online); } .seat.Offline .m { color: var(--offline); }
.seat.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15,118,110,.2); }
.seat:disabled { cursor: not-allowed; background: #f6f7f9; } .seat:disabled .m { color: var(--ink-3); }
.meter { height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-top: 6px; width: 90px; }
.meter i { display: block; height: 100%; background: var(--ink-3); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; } .tile .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.tile.good .n { color: var(--good); } .tile.bad .n { color: var(--bad); } .tile.accent .n { color: var(--brand-ink); }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line-2); min-width: 80px; }
.bar i { display: block; height: 100%; } .bar .p { background: var(--good); } .bar .f { background: var(--bad); }

/* notices */
.note { padding: 10px 14px; border-radius: 9px; background: var(--muted-soft); color: var(--ink-2); margin-bottom: 14px; }
.note.warn { background: var(--warn-soft); color: #7a4504; } .note.bad { background: var(--bad-soft); color: var(--bad); } .note.good { background: var(--good-soft); color: var(--good); } .note.info { background: var(--online-soft); color: #1e40af; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 420px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.toast.bad { background: var(--bad); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand-ink); border-bottom-color: var(--brand); } .tabs a:hover { text-decoration: none; color: var(--ink); }
pre.code { background: #10141c; color: #e6e9ef; padding: 14px; border-radius: 9px; overflow: auto; font-size: 12px; max-height: 360px; }
details > summary { cursor: pointer; font-weight: 600; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(16,20,28,.45); display: grid; place-items: center; z-index: 90; padding: 20px; }
.modal { background: #fff; border-radius: 12px; padding: 20px; width: min(520px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.signin .card { width: min(420px, 100%); padding: 28px; }
.signin .brand { font-size: 20px; margin-bottom: 4px; }
.sso { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
.demo-users { display: grid; gap: 6px; }
.demo-users button { justify-content: space-between; }

/* preview banner */
.pv { position: relative; z-index: 30; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 7px 20px; background: #10141c; color: #e6e9ef; font-size: 13px; }
.pv select { padding: 4px 8px; font-size: 13px; } .pv b { color: #fff; }
@media print { .top, .pv, .btn { display: none !important; } }

/* inside Trainer Desk */
.back-td { color: var(--ink-2); font-weight: 600; white-space: nowrap; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.back-td:hover { background: var(--line-2); text-decoration: none; }
.brand .logo { background: linear-gradient(135deg, #0f766e, #0e7490); }
/* administrator's role switch */
.role-switch select { font-size: 12px; font-weight: 600; padding: 3px 6px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acting { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 9px 14px; border-radius: 10px; background: var(--warn-soft, #fff4e0); color: var(--warn, #9a5b00); font-size: 13.5px; font-weight: 500; }
.danger-link { color: var(--bad); }
/* header menu: four items, the rest under "More" */
.more { position: relative; }
.more-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.more-btn:hover, .more.open .more-btn { background: var(--line-2); }
.more-btn.on { color: var(--brand-ink); background: var(--brand-soft); }
.more-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.more.open .more-btn svg { transform: rotate(180deg); }
.more-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 210px; padding: 6px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .28); }
.more.open .more-menu { display: grid; gap: 2px; }
.nav .more-menu a.item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; }
/* narrow screens: the menu gets its own row under the header, and "More" opens full width under it */
@media (max-width: 900px) {
  .top { height: auto; flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
  .top .nav { order: 3; flex: 1 1 100%; gap: 2px 0; }
  .top .who { margin-left: auto; gap: 8px; }
  .nav a, .more-btn { padding: 7px 10px; }
  .more { position: static; }
  .more-menu { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 4px); min-width: 0; }
}
@media (max-width: 560px) {
  .who > span:first-child { display: none; }      /* the name; the role and Sign out stay */
  .back-td { padding: 5px 8px; font-size: 13px; }
}

/* ---------- the candidate's KC page (take.html) ---------- */
body.take { background: var(--bg); }
.tk-center { min-height: 100vh; display: grid; place-items: center; padding: 20px; box-sizing: border-box; }
.tk-card { width: min(440px, 100%); padding: 26px; }
.tk-card.wide { width: min(820px, 100%); }
.tk-card .form { margin: 14px 0; }
.tk-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 14px; }
.tk-brand .logo { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.tk-check { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin: 16px 0; align-items: start; }
.tk-cam { position: relative; background: #0b1220; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.tk-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.tk-cam-off { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; font-size: 13px; }
.tk-cam.pip { position: fixed; right: 16px; bottom: 16px; width: 168px; z-index: 40; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tk-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #fff; }
.tk-dot.ok { background: #22c55e; }
.tk-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.tk-list li { color: var(--ink-3); } .tk-list li.ok { color: var(--good); font-weight: 600; } .tk-list li.wait { color: var(--ink-2); }
.tk-meter { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; margin-left: 6px; overflow: hidden; }
.tk-meter i { display: block; height: 100%; background: var(--good); transition: width .1s; }
.tk-rules { padding-left: 18px; display: grid; gap: 6px; margin: 0 0 14px; }
.tk-agree { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 14px; }
.tk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.tk-top .tk-brand { margin: 0; }
.tk-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; } .tk-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-timer { font: 700 20px/1 ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; } .tk-timer.low { color: var(--bad); }
.tk-warn { position: sticky; top: 57px; z-index: 19; background: var(--warn-soft); color: #7a4504; font-weight: 600; text-align: center; padding: 9px 16px; border-bottom: 1px solid #f5d9a8; }
.tk-main { max-width: 820px; margin: 0 auto; padding: 22px 20px 200px; }
.tk-q h2 { font-size: 18px; margin: 8px 0 16px; line-height: 1.4; }
.kq-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.tk-nav { margin-top: 16px; justify-content: space-between; }
.tk-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.tk-grid button { width: 36px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.tk-grid button.done { background: var(--brand-soft); border-color: #a7d8d1; color: var(--brand-ink); font-weight: 600; }
.tk-grid button.cur { outline: 2px solid var(--brand); outline-offset: 1px; }
.tk-score { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 10px; margin: 12px 0; }
.tk-score b { font-size: 30px; } .tk-score.pass { background: var(--good-soft); color: var(--good); } .tk-score.fail { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 700px) { .tk-check { grid-template-columns: 1fr; } .tk-cam.pip { width: 104px; right: 10px; bottom: 10px; } .tk-top { padding: 8px 12px; gap: 10px; } .tk-top .tk-brand { display: none; } }

/* ---------- online KC on the session page ---------- */
.okc-code { font: 700 26px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.okc-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.okc-ev { display: grid; grid-template-columns: 70px 1fr auto; gap: 4px 10px; font-size: 12.5px; margin: 8px 0; align-items: center; }
.okc-ev img { width: 120px; border-radius: 6px; display: block; cursor: zoom-in; }
.okc-big img { width: 100%; border-radius: 8px; }
.modal.wide { width: min(760px, 100%); }
.prules input[type=number] { width: 70px; padding: 6px 8px; }
.prules input[type=checkbox] { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .prules thead { display: none; }
  .prules, .prules tbody, .prules tr, .prules td { display: block; width: auto; }
  .prules tr { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
  .prules td { border: 0; padding: 0; }
  .prules td:first-child { grid-column: 1 / -1; }
  .prules td:nth-child(2)::before { content: 'Watch'; font-size: 12px; color: var(--ink-3); margin-right: 6px; }
  .prules td:nth-child(2) { display: flex; align-items: center; }
  .prules td:nth-child(3)::before { content: 'Counts after: '; font-size: 12px; color: var(--ink-3); }
  .prules td:nth-child(4) { grid-column: 1 / -1; }
  .prules td:nth-child(4)::before { content: 'Ends the KC after: '; font-size: 12px; color: var(--ink-3); }
}


.pv-bar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;background:#1d2433;color:#fff;font:13px/1.4 Inter,system-ui,sans-serif;padding:8px 16px}
.pv-bar select{margin-left:6px;font:inherit;padding:3px 6px;border-radius:6px;border:0}
.pv-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1d2433;color:#fff;padding:10px 16px;border-radius:8px;font:14px Inter,system-ui,sans-serif;z-index:99}
.pv-modal{position:fixed;inset:0;background:rgba(0,0,0,.35);display:grid;place-items:center;z-index:98}
.pv-card{background:#fff;border-radius:12px;padding:20px;width:min(560px,92vw);font:14px Inter,system-ui,sans-serif}
.pv-card textarea{width:100%;height:220px;margin:8px 0;font:12px ui-monospace,monospace}
/* ---------- Recruiters Desk ---------- */
button.tile { font: inherit; text-align: left; cursor: pointer; color: inherit; }
.tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.tile .small { margin-top: 2px; }
.card.past { opacity: .88; }
.t tfoot td { border-top: 1px solid var(--line); background: #fafbfc; }
.modal { max-height: calc(100vh - 40px); overflow: auto; }
.modal .kq-opt { margin: 0; }
.modal .grid2 { gap: 12px; }
.tk-q .kq-pick span { flex: 1; }

.kq-opts { display: grid; gap: 8px; margin-top: 10px; }
.kq-pick { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: #fff; }
.kq-pick input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.kq-pick:hover { background: #fafbfc; }
.kq-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.kq-opt { display: flex; align-items: center; gap: 8px; }
.kq-opt input[type=radio] { width: 18px; height: 18px; accent-color: var(--good); flex: none; margin: 0; }
.kq-opt input:not([type=radio]) { flex: 1; }
.warn-text { color: var(--warn); }
.probs { margin: 6px 0 0; padding-left: 18px; max-height: 40vh; overflow: auto; }

/* candidate photos (passport size, 35 × 45) */
.photo { display: inline-grid; place-items: center; width: 36px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--muted-soft); color: var(--ink-3); font-weight: 700; font-size: 12px; border: 1px solid var(--line); flex: none; }
.photo.lg { width: 112px; height: 144px; font-size: 26px; border-radius: 10px; }
.cand-card { display: flex; gap: 20px; align-items: flex-start; }
.cand-form { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.photo-pick { display: grid; gap: 8px; justify-items: start; }
.photo-frame { width: 140px; height: 180px; border: 2px dashed #cfd4dc; border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 8px; background: #fafbfc; overflow: hidden; }
.photo-frame:has(img) { padding: 0; border-style: solid; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick label.btn { cursor: pointer; }
@media (max-width: 640px) { .cand-form { grid-template-columns: 1fr; } .cand-card { flex-direction: column; } }

/* code to share, identity */
.codebox { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border-radius: 10px; background: var(--brand-soft); }
.idbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.idbox tr.muted td { color: var(--ink-3); }
.idpics { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.idpic { margin: 0; width: 210px; } .idpic img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.idpic figcaption { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.idpic-none { height: 120px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-3); font-size: 12px; }
.photo-frame { position: relative; }
.photo-check { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(15,23,42,.75); color: #fff; font-size: 11.5px; border-radius: 6px; padding: 3px 6px; }
.photo-check.ok { background: rgba(4,120,87,.85); }
.b.fail.sm { font-size: 11px; }
/* candidate page steps */
.tk-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; flex-wrap: wrap; }
.tk-steps li { counter-increment: s; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--muted-soft); }
.tk-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-right: 6px; font-size: 11px; }
.tk-steps li.on { background: var(--brand-soft); color: var(--brand-ink); } .tk-steps li.done { color: var(--good); } .tk-steps li.done::before { content: '✓'; }
.tk-code { font: 600 20px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .25em; }
.tk-id { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; margin-top: 12px; }
.tk-aadhaar { aspect-ratio: 86 / 54; border: 2px dashed #cfd4dc; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); background: #fafbfc; overflow: hidden; font-size: 13px; }
.tk-aadhaar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.tk-id label.btn { cursor: pointer; }
@media (max-width: 700px) { .tk-id { grid-template-columns: 1fr; } }
