/* OnboardIQ - single, uniform stylesheet. Neutral greys, one teal brand colour, amber highlight used sparingly. */
:root {
  /* Nauvi HR palette: cobalt with a saffron accent, cool neutrals tinted toward the cobalt */
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --border: #e2e5ee;
  --border-strong: #c9cedb;
  --text: #161b2b;
  --muted: #5c6478;
  --faint: #8a92a6;
  --accent: #2347d6;
  --accent-hover: #1b39b3;
  --accent-soft: #eaefff;
  --accent-line: #c7d3fb;
  --ink: #0f1630;
  --ink-2: #1a2244;
  --ink-text: #c7cde0;
  --ink-muted: #8f98b3;
  --amber: #f0a20a; /* saffron: used sparingly for attention and the active marker */
  --amber-soft: #fff4dc;
  --amber-ink: #3a2700;
  --ok: #17663f;
  --ok-soft: #e6f4ec;
  --warn: #7a4f00;
  --warn-soft: #fdf3dc;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info: #0e5f86;
  --info-soft: #e5f2f8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(15, 22, 48, .05);
  --shadow-lg: 0 16px 40px -12px rgba(15, 22, 48, .28);
  --h-ctl: 38px;   /* buttons and inputs */
  --h-ctl-sm: 32px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

/* Icons */
.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-lg { width: 20px; height: 20px; }

/* ── App shell ─────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex: none; background: var(--ink); color: var(--ink-text); border-right: 1px solid var(--ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-name { font-weight: 700; font-size: 15px; color: #fff; }
.brand-sub { font-size: 12px; color: var(--ink-muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { padding: 10px 8px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: var(--radius); color: var(--ink-text); font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.nav-foot { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: var(--ink-muted); }
.nav-foot .btn { background: transparent; color: var(--ink-text); border-color: rgba(255,255,255,.2); }
.nav-foot .btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-foot .who { font-weight: 600; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-foot form { margin-top: 8px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 20px 24px 40px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.banner { padding: 10px 24px; font-size: 13px; border-bottom: 1px solid var(--border); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.banner a { font-weight: 600; color: inherit; text-decoration: underline; }

/* ── Cards ─────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-b { padding: 16px; }
.card-f { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 12px; color: var(--faint); }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h-ctl); padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1; vertical-align: middle; flex: none; transition: background-color .12s, border-color .12s; }
.btn:focus-visible, .input:focus-visible, .select:focus-visible, .textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { color: var(--danger); border-color: #efc2bd; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { height: var(--h-ctl-sm); padding: 0 11px; font-size: 13px; }
.btn-sm .i { width: 15px; height: 15px; }
.btn-link { border: 0; background: none; padding: 0; height: auto; color: var(--accent); font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-block { width: 100%; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Forms ─────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; }
.c-full { grid-column: span 6; } .c-half { grid-column: span 3; } .c-third { grid-column: span 2; }
.field label, .label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.req::after { content: " *"; color: var(--danger); }
.input, .select, .textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff; font: inherit; color: var(--text); min-height: var(--h-ctl); }
.input, .select { height: var(--h-ctl); }
.textarea { min-height: 76px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[readonly], .input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); margin-top: 3px; }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-weight: 400 !important; }
.check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.section-heading { grid-column: span 6; font-weight: 600; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px; }
.section-heading:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 44px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--muted); }
.pw-toggle:hover { color: var(--text); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* ── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table td.right > .btn + .btn, .table td.right > .btn + form, .table td.right > form + .btn, .table td.right > form + form { margin-left: 6px; }
.table td.right > form { display: inline-flex; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.link-row { cursor: pointer; }
.table tr.link-row:hover td { background: var(--surface-2); }
.table .cell-main { font-weight: 600; }
.table .cell-sub { font-size: 12px; color: var(--muted); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }

/* ── Badges ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.b-neutral { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.s-invited { background: var(--info-soft); color: var(--info); }
.s-expired { background: var(--danger-soft); color: var(--danger); }
.s-submitted { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.s-returned { background: var(--warn-soft); color: var(--warn); }
.s-on_hold { background: var(--warn-soft); color: var(--warn); }
.s-joined { background: var(--ok-soft); color: var(--ok); }
.s-no_show, .s-revoked { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

/* ── Tabs ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .count { font-size: 12px; color: var(--faint); margin-left: 4px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 14px; font-size: 13px; color: var(--muted); background: var(--surface); }
.pills a.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pills a:hover { text-decoration: none; }

/* ── Alerts ────────────────────────────────────────────── */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); border: 1px solid; font-size: 13px; margin-bottom: 12px; }
.alert .i { margin-top: 2px; }
.alert-info { background: var(--info-soft); border-color: #c8d9eb; color: var(--info); }
.alert-success { background: var(--ok-soft); border-color: #bfdccb; color: var(--ok); }
.alert-warn { background: var(--warn-soft); border-color: #ecd7a9; color: var(--warn); }
.alert-error { background: var(--danger-soft); border-color: #ecc3bf; color: var(--danger); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ── Key-value ─────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.kv-item .k { font-size: 12px; color: var(--muted); }
.kv-item .v { font-weight: 500; word-break: break-word; }
.kv-item.changed .v { background: var(--warn-soft); border-radius: 3px; padding: 0 4px; margin-left: -4px; }
.tag-changed { font-size: 11px; color: var(--warn); font-weight: 600; margin-left: 4px; }
.sub-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.sub-block + .sub-block { margin-top: 10px; }
.sub-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 40px 12px; overflow-y: auto; }
.modal-back.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 560px; box-shadow: 0 12px 32px rgba(16, 24, 40, .2); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal-b { padding: 16px; }
.modal-f { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.icon-btn { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--muted); border-radius: 4px; line-height: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── Toast ─────────────────────────────────────────────── */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100% - 32px); }
.toast { background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); max-width: 420px; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--ok); }

/* ── Auth pages ────────────────────────────────────────── */
.auth { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box.wide { max-width: 620px; }
.auth-brand { font-weight: 700; color: var(--accent); font-size: 18px; margin-bottom: 16px; text-align: center; }
.auth-foot { text-align: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
.otp-input { font-size: 22px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }

/* ── Candidate form ────────────────────────────────────── */
.cand-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px; }
.cand-head .inner, .cand-wrap { max-width: 920px; margin: 0 auto; }
.cand-wrap { padding: 16px; }
.progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; background: var(--accent); transition: width .2s; }
.steps { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 12px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps button { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 4px 10px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.steps button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.steps button.done { color: var(--ok); }
.steps button.err { color: var(--danger); border-color: #ecc3bf; }
.steps button.locked { opacity: .6; }
.step { display: none; }
.step.active { display: block; }
.row-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.row-card .row-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.upload { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); flex-wrap: wrap; }
.upload.ok { border-style: solid; border-color: #bfdccb; background: var(--ok-soft); }
.upload .u-title { font-weight: 500; }
.upload .u-file { font-size: 12px; color: var(--muted); word-break: break-all; }
.upload.ok .u-file { color: var(--ok); }
.upload input[type=file] { display: none; }
.doc-list > .upload + .upload { margin-top: 8px; }
.locked-note { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.correction { border-left: 3px solid var(--warn); background: var(--warn-soft); padding: 8px 12px; margin-bottom: 12px; font-size: 13px; color: var(--warn); }
.step-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
.save-state { font-size: 12px; color: var(--faint); }

/* Verification */
.verify-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.preview-frame { width: 100%; height: 75vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.v-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.v-item + .v-item { margin-top: 8px; }
.v-item .v-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.v-item .v-label { font-weight: 600; }
.v-item .v-detail { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; flex: none; }
.seg label { padding: 4px 9px; font-size: 12px; cursor: pointer; border-left: 1px solid var(--border-strong); margin: 0; font-weight: 500; color: var(--muted); }
.seg label:first-child { border-left: 0; }
.seg input { display: none; }
.seg input:checked + span { color: inherit; }
.seg label.on-verified { background: var(--ok-soft); color: var(--ok); }
.seg label.on-discrepancy { background: var(--danger-soft); color: var(--danger); }
.seg label.on-na { background: var(--surface-2); color: var(--text); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.timeline .t-when { font-size: 12px; color: var(--faint); }

.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 150px; }

/* Print */
@media print {
  .sidebar, .topbar, .no-print, .banner { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .verify-layout { grid-template-columns: 1fr; }
  .preview-frame { height: 60vh; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 24px rgba(0, 0, 0, .15); }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .35); z-index: 80; display: none; }
  .scrim.open { display: block; }
  .topbar { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px 0 6px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
  .topbar .icon-btn { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 10px; }
  .topbar .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
  .topbar .t-title { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 12px 12px 32px; }
  .banner { padding: 8px 12px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --h-ctl: 44px; --h-ctl-sm: 40px; }
  body { font-size: 15px; }
  .input, .select, .textarea { font-size: 16px; }
  .btn-sm { font-size: 14px; padding: 0 14px; }
  .nav a { min-height: 44px; }
  .pills a { min-height: 40px; }
  .page-head .actions-bar > .btn { flex: 1 1 auto; }
  .card-f .btn, .modal-f .btn { flex: 1 1 auto; }
  .table td.right { white-space: normal; }
  table.table.stack-sm td.right { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; padding-top: 8px; }
  table.table.stack-sm td.right > .btn + .btn, table.table.stack-sm td.right > .btn + form, table.table.stack-sm td.right > form + .btn, table.table.stack-sm td.right > form + form { margin-left: 0; }
  h1 { font-size: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .c-full, .c-half, .c-third, .section-heading { grid-column: span 1; }
  .card-h, .card-b { padding: 12px; }
  .card-f { padding: 10px 12px; }
  .kv { grid-template-columns: 1fr; gap: 8px; }
  .modal-back { padding: 12px 8px; }
  .modal-b, .modal-h, .modal-f { padding-left: 12px; padding-right: 12px; }
  .cand-wrap { padding: 10px; }
  .cand-head { padding: 10px 12px; }
  .table th, .table td { padding: 8px 10px; }
  .auth { padding: 24px 10px; }
  .page-head .actions-bar { width: 100%; }
  .filters .field { min-width: 0; flex: 1 1 140px; }
  .v-item .v-head { flex-direction: column; }
  /* stacked table rows on small screens */
  table.table.stack-sm thead { display: none; }
  table.table.stack-sm, table.table.stack-sm tbody, table.table.stack-sm tr, table.table.stack-sm td { display: block; width: 100%; }
  table.table.stack-sm tr { border-bottom: 1px solid var(--border); padding: 12px; }
  table.table.stack-sm td { border: 0; padding: 2px 0; }
  table.table.stack-sm td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; }
}
.verify-layout > .card { margin-top: 0; }
@media (min-width: 1101px) { .verify-layout > .card:first-child { position: sticky; top: 16px; } }
/* PDF viewer */
.pdf-scroll { max-height: 70vh; overflow-y: auto; background: #e9ebef; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.pdf-page { background: #fff; margin: 0 auto 8px; box-shadow: 0 1px 3px rgba(0,0,0,.15); max-width: 1000px; }
.pdf-page canvas { width: 100%; height: 100%; display: block; }
.pdf-status { font-size: 12px; color: var(--muted); }
.policy-doc { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px 48px; border: 1px solid var(--border); font-size: 14px; line-height: 1.6; }
.policy-doc h2, .policy-doc h3, .policy-doc h4 { margin: 16px 0 8px; }
.policy-doc table { border-collapse: collapse; } .policy-doc td, .policy-doc th { border: 1px solid #ccc; padding: 4px 8px; }
.policy-stamp { text-align: right; font-size: 12px; color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 16px; }
.sign-block { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.sign-line { border-top: 1px solid #333; padding-top: 6px; font-size: 13px; }
@media (max-width: 640px) { .policy-doc { padding: 16px; } .pdf-scroll { max-height: 65vh; padding: 4px; } }
@media print {
  .pdf-scroll { max-height: none; overflow: visible; border: 0; background: none; padding: 0; }
  .pdf-page { box-shadow: none; margin: 0; page-break-after: always; break-after: page; max-width: none; }
  .policy-doc { border: 0; padding: 0; max-width: none; }
}
.stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.table th.right, .table td.right { text-align: right; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stats.stats-4, .stats.stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.test-banner { background: var(--amber); color: var(--amber-ink); text-align: center; font-size: 12px; font-weight: 600; padding: 4px 8px; letter-spacing: .2px; }
.test-box { border: 1px dashed var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-bottom: 12px; word-break: break-all; }
.test-box .code { font-size: 22px; font-weight: 700; letter-spacing: 4px; color: var(--text); }
@media print { .test-banner { display: none; } }
.policy-legal h2 { font-size: 15px; margin: 20px 0 6px; }
.policy-legal p, .policy-legal li { line-height: 1.65; }
.policy-legal ul { padding-left: 20px; }
.mirrored .input, .mirrored .select { background: var(--surface-2); color: var(--muted); }

.ta-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(16,24,40,.12); max-height: 260px; overflow-y: auto; margin-top: 2px; }
.ta-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; font: inherit; cursor: pointer; color: var(--text); }
.ta-list button:hover, .ta-list button:focus { background: var(--accent-soft); }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 10px; padding: 1px 8px; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.lock-note strong { color: var(--text); }
.brand-logo { max-height: 44px; max-width: 168px; display: block; margin-bottom: 4px; background: #fff; padding: 6px 8px; border-radius: 8px; }

.v-item .btn-link { display: inline-flex; align-items: center; gap: 4px; }
.v-item .btn-link .i { width: 14px; height: 14px; }

/* NDA on the client's letterhead */
.policy-logo { margin-bottom: 12px; } .policy-logo img { max-height: 56px; max-width: 220px; }
.lh-doc { position: relative; width: 210mm; max-width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--border); font-size: 14px; line-height: 1.6; overflow: hidden; }
.lh-bg { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; }
.lh-table { position: relative; width: 100%; border-collapse: collapse; }
.lh-table > thead td, .lh-table > tfoot td, .lh-table > tbody > tr > td { padding: 0; border: 0; }
.lh-top { height: var(--lh-top, 40mm); } .lh-bottom { height: var(--lh-bottom, 30mm); }
.lh-body { padding: 0 18mm; }
.lh-body table { border-collapse: collapse; } .lh-body td, .lh-body th { border: 1px solid #ccc; padding: 4px 8px; }
@media (max-width: 640px) { .lh-body { padding: 0 16px; } .lh-top { height: calc(var(--lh-top, 40mm) * 0.45); } .lh-bottom { height: calc(var(--lh-bottom, 30mm) * 0.45); } }
@media print {
  .lh-doc { width: 210mm; border: 0; overflow: visible; }
  .lh-bg { position: fixed; top: 0; left: 0; width: 210mm; height: 297mm; object-fit: fill; }
  .lh-top { height: var(--lh-top, 40mm) !important; } .lh-bottom { height: var(--lh-bottom, 30mm) !important; }
  .lh-body { padding: 0 18mm !important; }
}

/* Brand mark */
.logo-mark { width: 28px; height: 28px; flex: none; display: block; }
.brand-row { display: flex; align-items: center; gap: 9px; }
.brand-row .brand-name { font-weight: 700; letter-spacing: -.2px; color: #fff; }
.auth-brand .brand-name, .cand-head .brand-name { color: var(--ink); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-brand .logo-mark { width: 34px; height: 34px; }
.topbar .logo-mark { width: 24px; height: 24px; }

/* Menu count */
.nav-count { margin-left: auto; background: var(--amber); color: var(--amber-ink); font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; line-height: 18px; }

/* Help panel (client support) */
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 22px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(35,71,214,.55); }
.help-fab:hover { background: var(--accent-hover); }
.help-fab .i { width: 18px; height: 18px; }
.help-dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--amber); color: #3d2a00; font-size: 11px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.help-panel { position: fixed; right: 18px; bottom: 74px; z-index: 61; width: 390px; max-width: calc(100vw - 24px); height: min(620px, calc(100vh - 100px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.help-panel[hidden] { display: none; }
.help-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; background: var(--ink); color: #fff; }
.help-h .icon-btn { color: #fff; }
.help-h .icon-btn:hover { background: rgba(255,255,255,.1); }
.help-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.help-ht strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-ht span { font-size: 12px; color: #b8cccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-b { flex: 1; overflow: auto; display: flex; flex-direction: column; background: var(--surface-2); }
.help-pad { padding: 14px; }
.help-new { width: 100%; justify-content: center; }
.help-list { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.help-item { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font: inherit; color: inherit; }
.help-item:hover { border-color: var(--accent); }
.help-item.unread { border-left: 3px solid var(--amber); }
.help-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.help-num { font-size: 12px; color: var(--faint); font-weight: 600; }
.help-subj { font-weight: 600; color: var(--text); }
.help-item.unread .help-subj::after { content: ' \2022 new reply'; color: #8a5a00; font-weight: 600; font-size: 12px; }
.help-meta { font-size: 12px; color: var(--muted); }
.help-st { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 8px; }
.st-open { background: var(--warn-soft); color: var(--warn); }
.st-answered { background: var(--accent-soft); color: var(--accent); }
.st-closed { background: #eef0f2; color: var(--muted); }
.help-empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.help-empty strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.help-form .field { margin-bottom: 12px; }
.help-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.help-chip input { position: absolute; opacity: 0; pointer-events: none; }
.help-chip span { display: inline-block; border: 1px solid var(--border); border-radius: 16px; padding: 4px 11px; font-size: 13px; background: #fff; cursor: pointer; }
.help-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.help-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-attach { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--border-strong); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--muted); cursor: pointer; background: #fff; margin-bottom: 6px; }
.help-attach input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.help-attach .i { width: 16px; height: 16px; flex: none; }
.help-attach.sm { border: 0; padding: 6px; margin: 0; background: none; }
.help-thread { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 85%; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; }
.bub.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bub.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bub-by { font-size: 11px; opacity: .75; margin-bottom: 2px; }
.bub-t { white-space: normal; word-wrap: break-word; }
.bub-file { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: inherit; text-decoration: underline; }
.bub-file .i { width: 13px; height: 13px; }
.help-closed { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--border); background: #fff; font-size: 13px; }
.help-compose { border-top: 1px solid var(--border); background: #fff; padding: 10px; }
.help-compose .textarea { min-height: 44px; resize: none; }
.help-compose-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
@media (max-width: 640px) {
  .help-fab { right: 12px; bottom: 12px; }
  .help-panel { inset: 0; width: auto; max-width: none; height: auto; border-radius: 0; border: 0; }
  body.help-open .help-fab { display: none; }
}
@media print { .help-fab, .help-panel { display: none !important; } }
/* Team ticket view */
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ticket-main { display: flex; flex-direction: column; }
.ticket-thread { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 62vh; overflow: auto; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.tmsg { max-width: 82%; border-radius: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); }
.tmsg.client { align-self: flex-start; border-bottom-left-radius: 4px; }
.tmsg.team { align-self: flex-end; background: var(--accent-soft); border-color: #cfe5e2; border-bottom-right-radius: 4px; }
.tmsg.note { align-self: center; max-width: 92%; background: #fff8e6; border: 1px dashed #e8c66a; }
.tmsg-by { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.tmsg-t { white-space: pre-wrap; word-wrap: break-word; }
.tmsg-file { display: inline-flex; gap: 5px; align-items: center; margin-top: 6px; font-size: 12px; }
.tmsg-file .i { width: 13px; height: 13px; }
.ticket-reply { padding: 14px 16px; }
.ticket-reply.is-note .textarea { background: #fffbef; border-color: #e8c66a; }
.seg-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.seg-tabs input { position: absolute; opacity: 0; }
.seg-tabs span { display: inline-block; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.seg-tabs input:checked + span { background: var(--accent); color: #fff; }
@media (max-width: 900px) { .ticket-layout { grid-template-columns: 1fr; } .tmsg { max-width: 92%; } }
/* Induction video */
.ind-video { width: 100%; max-height: 70vh; background: #000; border-radius: 8px; display: block; }
.ind-video-wrap { position: relative; }
.video-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.video-meter .bar, .upload-progress .bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.video-meter .bar span, .upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.upload-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

/* NDA pages (A4, laid out by ndapage.js) */
.nda-viewport { overflow: hidden; }
.nda-pages { width: 210mm; opacity: 0; transition: opacity .2s; }
.nda-pages.ready { opacity: 1; }
.nda-page { position: relative; width: 210mm; height: 297mm; background: #fff; margin: 0 0 18px; box-shadow: 0 1px 4px rgba(0,0,0,.12), 0 0 0 1px var(--border); overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 11pt; line-height: 1.5; color: #111; }
.nda-bg { position: absolute; inset: 0; width: 210mm; height: 297mm; object-fit: fill; pointer-events: none; user-select: none; }
.nda-logo { position: absolute; top: 8mm; left: 18mm; max-height: 12mm; max-width: 60mm; }
.nda-area { position: absolute; display: flex; flex-direction: column; }
.nda-flow { flex: 0 0 auto; overflow: hidden; display: flex; flex-direction: column; }
.nda-flow > * { margin: 0 0 3mm; }
.nda-flow h1, .nda-flow h2, .nda-flow h3, .nda-flow h4 { font-size: 12.5pt; margin: 2mm 0 2mm; font-family: inherit; color: #111; }
.nda-flow ul, .nda-flow ol { padding-left: 7mm; }
.nda-flow .nda-li { margin: 0 0 1.5mm; }
.nda-flow .nda-nobullet { list-style: none; }
.nda-flow table { border-collapse: collapse; } .nda-flow td, .nda-flow th { border: 1px solid #999; padding: 1mm 2mm; }
.nda-gap { flex: 1 1 0; min-height: 0; margin: 0 !important; background: linear-gradient(to top right, transparent calc(50% - .5px), #9aa3a6 50%, transparent calc(50% + .5px)); border: 1px solid #c6cdcf; }
.nda-foot { flex: none; }
.nda-marker { text-align: center; font-size: 9.5pt; letter-spacing: .02em; color: #333; font-family: Arial, sans-serif; padding-top: 1mm; }
.nda-signspace { height: 4.5em; }
.nda-sign { display: flex; justify-content: flex-end; }
.nda-sign span { display: inline-block; min-width: 60mm; border-top: 1px solid #111; text-align: center; padding-top: 1mm; font-size: 9.5pt; font-family: Arial, sans-serif; }
.nda-sign-meta { display: flex; justify-content: space-between; gap: 6mm; margin-top: 4mm; font-size: 9.5pt; font-family: Arial, sans-serif; }
.nda-blank { flex: 1 1 auto; min-height: 0; margin-top: 4mm; position: relative; border: 1px solid #c6cdcf; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top right, transparent calc(50% - .5px), #9aa3a6 50%, transparent calc(50% + .5px)); }
.nda-blank span { background: #fff; padding: 1mm 3mm; font-size: 9pt; color: #555; font-family: Arial, sans-serif; font-style: italic; }
.nda-ref { flex: none; margin-top: 2mm; padding-top: 1.5mm; border-top: 1px solid #ccc; display: flex; justify-content: space-between; gap: 4mm; font-size: 7.5pt; color: #444; font-family: Arial, sans-serif; }
@media print {
  body { background: #fff; }
  .nda-shell { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .nda-viewport { overflow: visible; height: auto !important; }
  .nda-pages { transform: none !important; }
  .nda-page { margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .nda-page:last-child { break-after: auto; page-break-after: auto; }
  .content.nda-shell { padding: 0; }
}
.u-limit { font-size: 11px; color: var(--faint); margin-top: 2px; }
.photo-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.photo-box { width: 84px; height: 104px; flex: none; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-box .i { width: 32px; height: 32px; color: var(--faint); }
@media (max-width: 640px) { .photo-box { width: 64px; height: 80px; } }
.action-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
.head-with-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-photo { width: 40px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }

/* Joining form (A4, compact, for audits) */
.jf-tools { max-width: 210mm; margin: 16px auto 10px; display: flex; gap: 12px; align-items: center; padding: 0 12px; }
.jf { width: 210mm; max-width: 100%; margin: 0 auto 40px; background: #fff; padding: 12mm 12mm 16mm; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-family: Arial, Helvetica, sans-serif; font-size: 8.6pt; line-height: 1.35; color: #111; }
.jf h2 { font-size: 9.2pt; margin: 9px 0 4px; padding: 2px 6px; background: #eef1fb; border-left: 3px solid var(--accent); color: #0f1630; break-after: avoid; }
.jf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid #0f1630; padding-bottom: 8px; }
.jf-co { display: flex; gap: 10px; align-items: center; }
.jf-logo { max-height: 14mm; max-width: 45mm; }
.jf-coname { font-size: 14pt; font-weight: 700; color: #0f1630; }
.jf-coaddr { font-size: 8pt; color: #444; }
.jf-photo { width: 26mm; height: 32mm; border: 1px solid #999; display: grid; place-items: center; overflow: hidden; flex: none; }
.jf-photo img { width: 100%; height: 100%; object-fit: cover; }
.jf-photo span { color: #999; font-size: 8pt; }
.jf-title { text-align: center; font-size: 12.5pt; letter-spacing: .08em; text-transform: uppercase; margin: 8px 0 8px; color: #0f1630; }
.jf-t { width: 100%; border-collapse: collapse; margin-bottom: 4px; break-inside: avoid; }
.jf-t th, .jf-t td { border: 1px solid #bbb; padding: 2.5px 5px; vertical-align: top; text-align: left; }
.jf-kv th { width: 17%; background: #f5f7f7; font-weight: 600; }
.jf-grid thead th { background: #f5f7f7; font-weight: 600; }
.jf-key td { width: 25%; } .jf-key b { display: block; font-size: 7.4pt; color: #555; font-weight: 600; }
.jf-mute { color: #555; }
.jf-small { font-size: 8.2pt; margin: 3px 0; }
.jf-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; break-inside: avoid; }
.jf-checks { list-style: none; margin: 0; padding: 0; columns: 1; }
.jf-checks li { padding: 1.5px 0; }
.jf-box { display: inline-grid; place-items: center; width: 10px; height: 10px; border: 1px solid #333; margin-right: 5px; font-size: 8px; line-height: 1; vertical-align: -1px; }
.jf-box.on { background: #0f1630; color: #fff; border-color: #0f1630; }
.jf-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 12px; break-inside: avoid; }
.jf-ag { font-weight: 700; font-size: 7.6pt; text-transform: uppercase; color: #555; margin-bottom: 2px; }
.jf-act { padding: 1px 0; }
.jf-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14mm; margin-top: 14mm; break-inside: avoid; }
.jf-signs div { border-top: 1px solid #111; padding-top: 3px; display: flex; flex-direction: column; }
.jf-signs em { font-style: normal; color: #555; font-size: 7.8pt; }
.jf-end { display: flex; justify-content: space-between; gap: 8px; margin-top: 8mm; padding-top: 3px; border-top: 1px solid #ccc; font-size: 7pt; color: #555; }
@media (max-width: 760px) { .jf { padding: 12px; font-size: 8pt; } .jf-cols, .jf-actions { grid-template-columns: 1fr 1fr; } }
@media print {
  @page { size: A4; margin: 10mm; }
  .jf { width: auto; margin: 0; padding: 0; box-shadow: none; }
}
.banner.survey { background: #fff8e6; color: #5a3b00; border-bottom: 1px solid #f0dca6; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner.survey .i { color: #c98a00; }
/* Star rating input */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; color: #d4d9dc; }
.stars label .i { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5b942; }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.stars.sm label .i { width: 22px; height: 22px; }
.nps { display: flex; gap: 4px; flex-wrap: wrap; }
.nps input { position: absolute; opacity: 0; }
.nps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 13px; background: #fff; }
.nps input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.logo-tile { width: 140px; height: 64px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 8px; }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.star-row { color: #f5b942; letter-spacing: 1px; }
/* Dashboard */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 > .card, .grid-2 > .card + .card { margin: 0; }
.card + .grid-2 { margin-top: 16px; }
.grid-2 { margin-bottom: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.bar-cell { position: relative; height: 22px; background: var(--surface-2); border-radius: 4px; min-width: 160px; }
.bar-cell span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); border-radius: 4px; }
.bar-cell em { position: relative; font-style: normal; font-size: 12px; padding-left: 8px; line-height: 22px; font-weight: 600; }
.count-pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; font-size: 12px; }
.stat-link { color: inherit; text-decoration: none !important; display: block; }
.text-danger { color: var(--danger); }
.steps-list { margin: 0; padding-left: 20px; } .steps-list li { margin-bottom: 14px; }

/* HR letters */
.steps-list li.done { color: var(--muted); }
.steps-list li.done strong::after { content: " \2713"; color: var(--ok); }
.input-addon { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); }
.input-group .input-addon + .input { margin-left: -8px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group .input-addon { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.letter-editor { min-height: 360px; max-height: 65vh; overflow: auto; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
.letter-editor h3 { font-size: 16px; margin: 12px 0 6px; }
.sig-pad { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: #fff; touch-action: none; display: block; cursor: crosshair; }
.sig-thumb { height: 48px; max-width: 160px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 8px; }
.pdf-scroll { max-height: 70vh; overflow-y: auto; background: var(--surface-2); }
.pdf-frame { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; max-height: 78vh; overflow-y: auto; }
@font-face { font-family: "NauviSign"; src: url("/static/vendor/fonts/Chorus.ttf") format("truetype"); font-display: swap; }
.sig-preview { font-family: "NauviSign", cursive; font-size: 34px; color: #1f3a5f; min-height: 52px; border-bottom: 1px solid #333; padding: 2px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.verify-status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.verify-status.ok { background: var(--ok-soft, #e8f5ee); border-color: #b8dcc6; }
.verify-status.bad { background: var(--danger-soft, #fdecec); border-color: #f0c0c0; }
.verify-status.wait { background: var(--warn-soft); border-color: #ecd7a9; }
.verify-status .i { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.cert63 { max-width: 800px; margin: 0 auto; padding: 24px; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.55; color: #111; }
.cert63 h1 { font-size: 18px; text-align: center; margin: 0 0 4px; } .cert63 h2 { font-size: 15px; margin: 18px 0 6px; }
.cert63 table { width: 100%; border-collapse: collapse; margin: 8px 0; } .cert63 td { border: 1px solid #999; padding: 6px 8px; vertical-align: top; } .cert63 td:first-child { width: 36%; font-weight: 600; }
.cert63 .blank { border-bottom: 1px solid #333; display: inline-block; min-width: 220px; height: 1.2em; }
@media print { .cert63 .no-print { display: none; } .cert63 { padding: 0; } }
.c-wide { grid-column: span 4; } .c-side { grid-column: span 2; min-width: 0; }
.stack > .card + .card { margin-top: 16px; }
@media (max-width: 1100px) { .c-wide, .c-side { grid-column: span 6; } }
@media (max-width: 640px) { .c-wide, .c-side { grid-column: span 1; } .pdf-frame { padding: 4px; max-height: none; } }

/* Two-step sign-in */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.btn-danger-outline { color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-soft); }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.recovery-codes span { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; text-align: center; font-size: 14px; letter-spacing: .04em; }
.twostep-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.qr-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; width: 220px; max-width: 100%; box-sizing: border-box; }
.qr-box svg { display: block; width: 100%; height: auto; }
.key-text { word-break: break-all; }
@media (max-width: 640px) { .twostep-setup { grid-template-columns: minmax(0, 1fr); } .qr-box { margin: 0 auto; } }
.notice-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--muted); line-height: 1.55; }
