/* BISP Exam Portal — design tokens from the BISP "UI/UX spec for a rebuild" */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/static/fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --canvas: #F1F5F8;
  --surface: #FFFFFF;
  --ink: #0F2830;
  --text-2: #505D6B;
  --text-3: #637488;
  --text-4: #808E9D;
  --divider: #DFE6ED;
  --divider-2: #EBEFF3;
  --tag-border: rgba(174, 185, 198, .42);
  --primary: #0BC279;
  --primary-ink: #078a56;
  --success-tint: #CFF5DC;
  --success: #64DB9B;
  --danger: #FF7067;
  --danger-ink: #d6453b;
  --danger-tint: #FFDAD7;
  --teal: #014751;
  --amber-tint: #FFF1D1;
  --amber-ink: #8a5a00;
  --radius: 6px;
  --shadow: 0 2px 4px rgba(219, 229, 235, .5);
  --shadow-bar: 3px 4px 10px rgba(201, 216, 225, .34);
  --side: 214px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: var(--text-2); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font-size: 18px; font-weight: 600; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 10px; }
code { background: var(--canvas); padding: 1px 5px; border-radius: 4px; font-size: .92em; color: var(--ink); }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--text-4); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.qtext { white-space: pre-wrap; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.app.collapsed { --side: 72px; }
.side { background: var(--surface); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--divider-2); overflow: hidden; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 18px 18px 20px; min-height: 76px; color: var(--ink); text-decoration: none; }
.side .logo img { max-height: 38px; max-width: 160px; }
.side .logo .mark { width: 36px; height: 36px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.side .logo .txt { font-weight: 600; font-size: 14px; line-height: 1.2; }
.side .logo .txt small { display: block; color: var(--text-4); font-weight: 500; font-size: 11px; }
.side nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; flex: 1; overflow-y: auto; }
.side .navlabel { padding: 14px 10px 6px; }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; text-decoration: none; white-space: nowrap; }
.side a.nav:hover { background: var(--canvas); color: var(--ink); }
.side a.nav.on { background: var(--canvas); color: var(--ink); font-weight: 600; }
.side a.nav.on .ic { color: var(--primary); }
.side .foot { border-top: 1px solid var(--divider-2); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.side .foot button.nav, .side .foot a.nav { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius); color: var(--text-3); }
.side .foot .nav:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }
.app.collapsed .side .txt, .app.collapsed .side .navtext, .app.collapsed .side .navlabel { display: none; }
.app.collapsed .side .logo { justify-content: center; padding: 18px 0; }
.app.collapsed .side a.nav, .app.collapsed .side .foot .nav { justify-content: center; padding: 10px 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 28px 32px 56px; max-width: 1280px; width: 100%; }
.content.narrow { max-width: 860px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 .count { color: var(--text-4); font-weight: 500; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 12px; color: var(--text-4); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }

/* ---------- Test workspace shell ---------- */
.app.ws { grid-template-columns: 72px 248px minmax(0, 1fr); }
.app.ws .side .txt, .app.ws .side .navtext, .app.ws .side .navlabel { display: none; }
.app.ws .side .logo { justify-content: center; padding: 18px 0; }
.app.ws .side a.nav, .app.ws .side .foot .nav { justify-content: center; padding: 10px 0; }
.app.ws .side .collapse-btn { display: none; }
.tside { background: #E8EEF2; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.tside .back { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; padding: 4px 8px 12px; }
.tside .group { margin-top: 10px; }
.tside .group-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; }
.tside .prog { margin: 4px 10px 10px; }
.tside .prog .bar { height: 6px; background: #d5dee6; border-radius: 99px; overflow: hidden; }
.tside .prog .bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.tside .prog .small { display: flex; justify-content: space-between; margin-top: 4px; color: var(--text-3); }
.tside a.titem { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; text-decoration: none; }
.tside a.titem:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.tside a.titem.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.tside a.titem .done { margin-left: auto; color: var(--primary); }
.tside a.titem .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #c5d0da; }
.tside .activate { margin: 14px 10px 0; }
.topbar { background: var(--surface); height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--divider-2); position: sticky; top: 0; z-index: 5; }
.topbar .ttl { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .ttl small { color: var(--text-4); font-weight: 500; margin-left: 8px; font-size: 13px; }
.topbar .acts { display: flex; gap: 6px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card > .label:first-child, .card-head { margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card.flush > .card-head { padding: 20px 24px 0; }
.card.flush > .card-foot, .card-foot { padding: 14px 24px; border-top: 1px solid var(--divider-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .app, .app.ws { grid-template-columns: 1fr; } .side, .tside { position: static; height: auto; } .content { padding: 20px 16px; } }

/* stat cards */
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.stat .v { color: var(--ink); font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .c { font-size: 12px; color: var(--text-4); margin-top: 2px; }
.stat.warn .v { color: var(--amber-ink); }
.statrow { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.ministat { display: flex; gap: 12px; align-items: center; }
.ministat .ic { color: var(--text-4); }
.ministat b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ministat span { font-size: 12px; color: var(--text-4); }
.ring { flex: none; }

/* ---------- Test library cards ---------- */
.lib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .lib { grid-template-columns: 1fr; } }
.tcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 0; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; }
.tcard:hover { box-shadow: 0 4px 14px rgba(190, 206, 218, .6); }
.tcard .row1 { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-4); }
.tcard .row1 .sp { flex: 1; }
.tcard .ttl { display: block; color: var(--ink); font-size: 20px; font-weight: 600; margin: 12px 0 6px; text-decoration: none; line-height: 1.3; }
.tcard .ttl:hover { color: var(--teal); }
.tcard .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.tcard .desc { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 21px; margin-bottom: 16px; }
.tcard .foot { margin-top: auto; border-top: 1px solid var(--divider-2); display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 13px; }
.tcard .foot .score { display: flex; align-items: center; gap: 6px; color: var(--text-3); }
.tcard .foot .score b { color: var(--ink); font-size: 15px; }
.tcard .foot .vr { width: 1px; height: 18px; background: var(--divider); }
.tcard .foot .sp { flex: 1; }

/* ---------- Tags & pills ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--tag-border); border-radius: 5px; padding: 1px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-3); white-space: nowrap; background: var(--surface); }
.tag.active, .tag.open, .tag.live { color: var(--primary-ink); border-color: rgba(11, 194, 121, .45); }
.tag.draft, .tag.upcoming { color: var(--amber-ink); border-color: rgba(214, 150, 0, .4); }
.tag.archived, .tag.ended, .tag.closed { color: var(--text-4); }
.tag.danger { color: var(--danger-ink); border-color: rgba(255, 112, 103, .5); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-weight: 600; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.pass { background: var(--success-tint); color: #08744a; }
.pill.fail { background: var(--danger-tint); color: #b3342b; }
.pill.pending { background: var(--amber-tint); color: var(--amber-ink); }
.pill.neutral { background: var(--canvas); color: var(--text-2); }
.pill.live { background: #DDF0FA; color: #0b5b84; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--primary); background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(.96); text-decoration: none; }
.btn.outline { background: var(--surface); border-color: var(--divider); color: var(--ink); }
.btn.outline:hover { border-color: #c7d3dd; background: #fbfcfd; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--canvas); }
.btn.danger { background: var(--surface); border-color: var(--danger-tint); color: var(--danger-ink); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; }
.linkbtn.danger { color: var(--danger-ink); }
.inline { display: inline; margin: 0; }

/* kebab + split menus */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15, 40, 48, .16); min-width: 200px; padding: 6px 0; z-index: 20; }
.menu .pop a, .menu .pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; color: var(--ink); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.menu .pop a:hover, .menu .pop button:hover { background: var(--canvas); }
.menu .pop .danger { color: var(--danger-ink); }
.menu .pop form { margin: 0; }

/* ---------- Filter bar ---------- */
.filterbar { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-bar); display: flex; align-items: center; gap: 4px; padding: 6px 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filterbar .fl { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-right: 1px solid var(--divider-2); height: 36px; }
.filterbar .fl:last-of-type { border-right: 0; }
.filterbar .fl .label { font-size: 11px; }
.filterbar select, .filterbar input[type=search], .filterbar input[type=date] { border: 0; background: transparent; font: inherit; color: var(--ink); font-weight: 500; padding: 4px 2px; outline: none; width: auto; min-width: 0; height: auto; }
.filterbar input[type=search] { min-width: 220px; }
.filterbar .sp { flex: 1; }

/* ---------- Forms ---------- */
label { display: block; color: var(--ink); font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.help { font-size: 12px; color: var(--text-4); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=time], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--divider); border-radius: var(--radius); font: inherit; color: var(--ink); background: var(--surface);
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 194, 121, .15); }
input[type=file] { font: inherit; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.row > .field { flex: 1 1 200px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text-2); margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 2px; flex: none; }
.check b { color: var(--ink); font-weight: 500; display: block; }
.radio-group .check { padding: 10px 0; border-bottom: 1px solid var(--divider-2); margin: 0; }
.radio-group .check:last-child { border-bottom: 0; }
.formfoot { display: flex; gap: 10px; align-items: center; padding-top: 4px; }

/* selector tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { position: relative; border: 1.5px solid var(--divider); border-radius: var(--radius); padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 500; color: var(--ink); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile .ic { color: var(--text-3); }
.tile small { color: var(--text-4); font-weight: 400; font-size: 12px; }
.tile:has(input:checked) { border-color: var(--primary); background: #EEFBF4; }
.tile:has(input:checked) .ic { color: var(--primary); }

/* callouts & snackbars */
.callout { display: flex; gap: 12px; background: var(--canvas); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; color: var(--text-2); }
.callout .ic { color: var(--text-3); margin-top: 1px; }
.callout b { color: var(--ink); display: block; margin-bottom: 2px; }
.callout.warn { background: var(--amber-tint); }
.callout.warn .ic, .callout.warn b { color: var(--amber-ink); }
.callout.bad { background: var(--danger-tint); }
.callout.bad .ic, .callout.bad b { color: #b3342b; }
.callout.ok { background: #E6F8EE; }
.callout.ok .ic, .callout.ok b { color: #08744a; }
.snack { position: fixed; left: 24px; bottom: 24px; z-index: 100; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 13px 18px; box-shadow: 0 8px 24px rgba(15, 40, 48, .25); max-width: 520px; display: flex; gap: 12px; align-items: center; animation: snackin .2s ease-out; }
.snack.bad { background: #b3342b; }
.snack.warn { background: #6b4a00; }
.snack button { background: none; border: 0; color: #9DEBC6; font: inherit; font-weight: 600; cursor: pointer; }
@keyframes snackin { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--divider); white-space: nowrap; background: var(--surface); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--divider-2); height: 46px; vertical-align: middle; color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #FAFCFD; }
.tbl td.strong, .tbl td .strong { color: var(--ink); font-weight: 500; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .chk { width: 40px; }
.tbl .clip { max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scroll-x { overflow-x: auto; }
.empty { padding: 48px 24px; text-align: center; color: var(--text-4); }
.empty .ic { color: #c5d0da; margin-bottom: 8px; }
.pager { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pager a, .pager span { min-width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--radius); color: var(--text-2); padding: 0 8px; }
.pager a:hover { background: var(--canvas); text-decoration: none; }
.pager .on { background: var(--canvas); color: var(--ink); font-weight: 600; }

/* bars & charts */
.bar { height: 8px; background: var(--divider-2); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.bar.mid i { background: #F2B63C; }
.bar.low i { background: var(--danger); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.kv dt { color: var(--text-4); }
.kv dd { margin: 0; color: var(--ink); }

/* question bank */
.qimg { max-width: 100%; max-height: 360px; border-radius: var(--radius); border: 1px solid var(--divider-2); margin: 8px 0; }
.opt-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.opt-row .letter { width: 22px; font-weight: 600; color: var(--text-4); text-align: center; }
.opt-row input[type=text] { flex: 1; }
.opt-row label.correct { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--text-3); white-space: nowrap; font-weight: 400; }
.opts { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.opts li { border: 1px solid var(--divider); border-radius: var(--radius); padding: 8px 12px; display: flex; gap: 10px; align-items: center; color: var(--ink); }
.opts li .pct { margin-left: auto; font-size: 12px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.opts li.right { border-color: #9fe0bd; background: #F0FBF5; }
.opts li.chosen { box-shadow: inset 3px 0 0 var(--teal); }
.opts li.chosen.wrong { border-color: #ffc2bd; background: #FFF5F4; box-shadow: inset 3px 0 0 var(--danger); }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { display: flex; gap: 14px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--divider-2); }
.item-list li .grow { flex: 1; min-width: 0; }
.item-list li form { margin: 0; }
.mover { display: flex; flex-direction: column; }
.mover button { background: none; border: 0; padding: 0; color: var(--text-4); cursor: pointer; line-height: 1; }
.mover button:hover { color: var(--ink); }
.mover button:disabled { opacity: .3; cursor: default; }

/* credential slips */
.slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.slip { border: 1px dashed #AEB9C6; border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.slip b { color: var(--ink); }

/* auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .box { width: 100%; max-width: 420px; }
.auth .brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; text-align: center; color: var(--ink); }
.auth .brand img { max-height: 64px; max-width: 220px; }
.auth .brand .mark { width: 52px; height: 52px; border-radius: 12px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.auth .card { padding: 30px 32px; }
.auth .btn { width: 100%; }
.tabs { display: flex; gap: 4px; background: var(--canvas); border-radius: var(--radius); padding: 4px; margin-bottom: 22px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 5px; color: var(--text-3); font-weight: 500; text-decoration: none; }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }

/* candidate pages (non-exam) */
.cand-top { background: var(--surface); height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--divider-2); }
.cand-top img { max-height: 36px; }
.cand-top .vr { width: 1px; height: 28px; background: var(--divider); }
.cand-top .ttl { flex: 1; color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; font-size: 14px; }
.cand-top form { margin: 0; }
.cand { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.result-hero { text-align: center; padding: 36px 24px; }
.result-hero .big { font-size: 48px; font-weight: 700; color: var(--ink); line-height: 1; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.verdict { display: inline-block; font-weight: 700; letter-spacing: .5px; padding: 6px 16px; border-radius: 99px; margin-top: 10px; }
.verdict.pass { background: var(--success-tint); color: #08744a; }
.verdict.fail { background: var(--danger-tint); color: #b3342b; }
.instructions { white-space: pre-wrap; color: var(--text-2); line-height: 1.65; }
.powered { text-align: center; color: var(--text-4); font-size: 12px; margin-top: 18px; }

@media print {
  .side, .tside, .topbar, .no-print, .snack, .filterbar, .page-head .actions { display: none !important; }
  .app, .app.ws { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid var(--divider-2); break-inside: avoid; }
  .content { padding: 0; max-width: none; }
}
/* layout refinements */
.tcard .foot > * { white-space: nowrap; }
.tcard .foot .tag { max-width: 42%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.btn.wrap { white-space: normal; height: auto; min-height: 32px; padding: 7px 12px; text-align: left; justify-content: flex-start; }
