:root {
  color-scheme: light;
  --navy: #4d0815;
  --navy-2: #870f26;
  --ink: #343434;
  --muted: #666666;
  --teal: #870f26;
  --teal-dark: #4d0815;
  --teal-light: #fbd9df;
  --sky: #f2f2f2;
  --white: #fff;
  --surface: #f2f2f2;
  --line: #d7d7d7;
  --line-dark: #a1a1a1;
  --amber: #b97b00;
  --amber-light: #fff5da;
  --red: #cf2f26;
  --red-light: #fbd9df;
  --shadow: 0 18px 50px rgba(19, 51, 70, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #a1a1a1; outline-offset: 3px; }

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 17px clamp(22px, 5vw, 76px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 750; letter-spacing: .015em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .095em; text-transform: uppercase; }
.brand-symbol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 11px);
  grid-template-rows: repeat(2, 11px);
  gap: 3px;
  transform: rotate(-15deg);
}
.brand-symbol span { border-radius: 3px; background: var(--teal); }
.brand-symbol span:nth-child(2), .brand-symbol span:nth-child(3) { background: #f6a400; }
.brand-symbol span:nth-child(4) { background: var(--navy); }
.header-right { display: flex; align-items: center; gap: 22px; }
.header-divider { height: 25px; border-left: 1px solid var(--line); }
.portal-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }

.candidate-main { width: min(1320px, calc(100% - 56px)); margin: 0 auto; padding: 44px 0 70px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-light { color: #ffe6b0; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--navy); font-size: clamp(30px, 3.3vw, 48px); line-height: 1.13; letter-spacing: -.045em; }
h2 { color: var(--navy); font-size: 25px; line-height: 1.2; letter-spacing: -.028em; }
h3 { color: var(--navy); font-size: 17px; line-height: 1.3; letter-spacing: -.016em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
  gap: 26px;
  min-height: min(660px, calc(100vh - 200px));
}
.entry-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 570px;
  padding: clamp(35px, 4.6vw, 66px);
  border-radius: 22px;
  color: var(--white);
  background: radial-gradient(circle at 97% 12%, rgba(246, 164, 0, .16), transparent 31%), linear-gradient(138deg, #4d0815 4%, #870f26 55%, #4d0815 100%);
}
.entry-hero::before, .entry-hero::after {
  position: absolute;
  content: "";
  width: 300px;
  height: 300px;
  border: 1px solid rgba(166, 230, 219, .13);
  border-radius: 50%;
  pointer-events: none;
}
.entry-hero::before { top: -125px; right: -80px; box-shadow: 0 0 0 70px rgba(141, 214, 206, .045), 0 0 0 142px rgba(141, 214, 206, .027); }
.entry-hero::after { bottom: -225px; left: -100px; box-shadow: 0 0 0 75px rgba(141, 214, 206, .035); }
.entry-hero > * { position: relative; z-index: 1; }
.entry-hero h1 { max-width: 590px; margin: 0 0 20px; color: var(--white); font-size: clamp(39px, 4.3vw, 64px); }
.entry-hero .hero-subtitle { max-width: 530px; margin: 0; color: #fbd9df; font-size: 16px; line-height: 1.7; }
.hero-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 70px; color: #ffe6b0; font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.hero-topline .line { width: 35px; height: 1px; background: #f6a400; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 45px; }
.hero-fact { padding: 20px 0 0; border-top: 1px solid rgba(213, 239, 236, .26); }
.hero-fact strong { display: block; color: var(--white); font-size: 24px; line-height: 1.1; letter-spacing: -.04em; }
.hero-fact span { display: block; margin-top: 8px; color: #e1e1e1; font-size: 12px; }
.entry-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 3.7vw, 54px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.entry-panel h2 { margin-bottom: 9px; font-size: clamp(26px, 2.4vw, 34px); }
.entry-panel .panel-intro { margin-bottom: 29px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.panel-kicker { margin-bottom: 12px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.field { display: block; margin-bottom: 19px; }
.field label, .field-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea, .input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 106px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: #666666; box-shadow: 0 0 0 3px rgba(135, 15, 38, .13); }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background .16s, transform .16s, box-shadow .16s;
}
.btn:hover:not(:disabled) { background: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-secondary { border-color: var(--line-dark); background: var(--white); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: #f2f2f2; }
.btn-quiet { border-color: var(--line); background: #f2f2f2; color: var(--ink); }
.btn-quiet:hover:not(:disabled) { background: #f2f2f2; }
.btn-danger { background: var(--red); }
.btn-danger:hover:not(:disabled) { background: #9c303a; }
.btn-small { min-height: 35px; padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.btn-link { min-height: auto; padding: 2px; border: 0; background: transparent; color: var(--teal); }
.btn-link:hover:not(:disabled) { background: transparent; text-decoration: underline; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fine-print { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid #e1e1e1;
  border-radius: 11px;
  background: #f2f2f2;
  color: #343434;
  font-size: 12px;
  line-height: 1.55;
}
.notice::before { content: "i"; display: grid; flex: 0 0 18px; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 12px; font-weight: 800; line-height: 1; }
.notice-warning { border-color: #f0dbb6; background: var(--amber-light); color: #7a531d; }
.entry-panel .notice { margin-top: 20px; }
.notice-spaced { margin: 20px 0; }
.notice-top { margin-top: 20px; }
.load-error { max-width: 530px; margin: 70px auto; }
.identity-card { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f2f2f2; }
.avatar { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--teal-light); color: var(--teal); font-size: 16px; font-weight: 800; }
.identity-card strong, .identity-card span { display: block; }
.identity-card strong { font-size: 13px; }
.identity-card span { color: var(--muted); font-size: 11px; }
.status-illustration { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 23px; border-radius: 17px; background: var(--teal-light); color: var(--teal); font-size: 26px; }
.status-illustration.closed { background: var(--amber-light); color: var(--amber); }
.status-illustration.done { background: var(--sky); color: var(--teal); }
.pulse-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(135, 15, 38, .11); }

.exam-shell { position: relative; }
.exam-shell { -webkit-user-select: none; user-select: none; }
.exam-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.exam-topbar h1 { margin: 0; font-size: clamp(24px, 2.7vw, 35px); }
.exam-topbar .eyebrow { margin-bottom: 6px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.timer-card { display: flex; align-items: center; gap: 13px; min-width: 173px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 5px 15px rgba(20, 50, 70, .035); }
.timer-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-size: 19px; }
.timer-card small, .timer-card strong { display: block; }
.timer-card small { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.timer-card strong { color: var(--navy); font-size: 19px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.timer-card.urgent { border-color: #efc2c4; background: var(--red-light); }
.timer-card.urgent .timer-icon { background: #f9dfe1; color: var(--red); }
.timer-card.urgent strong { color: var(--red); }
.progress-strip { display: flex; align-items: center; gap: 15px; padding: 17px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.progress-strip .progress-caption { flex: 0 0 auto; color: var(--ink); font-size: 12px; font-weight: 700; }
.progress-native { flex: 1; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: #f2f2f2; appearance: none; }
.progress-native::-webkit-progress-bar { border-radius: 99px; background: #f2f2f2; }
.progress-native::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, #870f26, #a1a1a1); }
.progress-native::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, #870f26, #a1a1a1); }
.progress-track { height: 7px; flex: 1; overflow: hidden; border-radius: 99px; background: #f2f2f2; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #870f26, #a1a1a1); transition: width .25s; }
.progress-strip .progress-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.exam-grid { display: grid; grid-template-columns: minmax(0, 1fr) 296px; align-items: start; gap: 23px; margin-top: 23px; }
.question-card, .side-card, .admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 7px 24px rgba(19, 51, 70, .035);
}
.question-card { min-height: 522px; padding: clamp(28px, 3.4vw, 48px); }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.question-number { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-tag { display: inline-flex; align-items: center; max-width: 70%; min-height: 27px; padding: 4px 10px; border-radius: 7px; background: #f2f2f2; color: #666666; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.question-card h2 { max-width: 790px; margin: 0 0 27px; font-size: clamp(20px, 2.15vw, 27px); line-height: 1.45; letter-spacing: -.026em; white-space: pre-line; }
.option-list { display: grid; gap: 11px; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 15px 17px;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.option:hover:not(:disabled) { border-color: #a1a1a1; background: #f2f2f2; }
.option.selected { border-color: var(--teal); background: #f2f2f2; box-shadow: inset 0 0 0 1px var(--teal); }
.option-key { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-dark); border-radius: 8px; background: #f2f2f2; color: var(--muted); font-size: 12px; font-weight: 800; }
.option.selected .option-key { border-color: var(--teal); background: var(--teal); color: var(--white); }
.option-text { padding-top: 3px; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.save-status { color: var(--muted); font-size: 11px; }
.save-status.saved { color: var(--teal); }
.side-card { padding: 24px; }
.side-card h3 { margin-bottom: 5px; }
.side-card p { margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.question-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.map-button { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border: 1px solid var(--line-dark); border-radius: 8px; background: var(--white); color: var(--muted); font-size: 11px; font-weight: 750; }
.map-button:hover { border-color: var(--teal); color: var(--teal); }
.map-button.answered { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }
.map-button.current { border-color: var(--teal); background: var(--teal); color: var(--white); }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 17px 0 22px; color: var(--muted); font-size: 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-square { width: 10px; height: 10px; border: 1px solid var(--line-dark); border-radius: 3px; background: var(--white); }
.legend-square.answered { border-color: var(--teal); background: var(--teal-light); }
.side-divider { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
.exam-help { display: flex; gap: 10px; margin-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.exam-help-icon { flex: 0 0 auto; color: var(--teal); font-size: 16px; }
.paused-banner { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 22px; padding: 15px 18px; border: 1px solid #f0dba8; border-radius: 10px; background: var(--amber-light); color: #75521b; font-size: 12px; }
.paused-banner strong { display: block; font-size: 13px; }
.paused-banner span { display: block; margin-top: 2px; }

.exam-watermark { position: fixed; inset: 0; z-index: 20; display: none; overflow: hidden; pointer-events: none; }
.exam-active .exam-watermark { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; }
.exam-watermark span { width: 210px; color: #343434; font-size: 13px; font-weight: 750; line-height: 1.3; text-align: center; opacity: .075; transform: rotate(-24deg); }
.focus-shield { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: #4d0815; color: var(--white); }
.exam-obscured .focus-shield { display: grid; }
.focus-shield-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 35px; text-align: center; }
.focus-shield-card .shield-icon { margin-bottom: 13px; color: #d7d7d7; font-size: 51px; line-height: 1; }
.focus-shield-card strong { font-size: 23px; }
.focus-shield-card span:last-child { color: #e1e1e1; font-size: 14px; }
.exam-obscured .candidate-main, .exam-obscured .site-header { filter: blur(16px); }
.exam-obscured .exam-watermark { display: none; }

.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(430px, calc(100vw - 44px)); padding: 13px 18px; border-radius: 10px; background: var(--navy); color: var(--white); box-shadow: 0 14px 36px rgba(10, 29, 39, .25); font-size: 13px; font-weight: 650; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow-y: auto; padding: 22px; background: rgba(8, 30, 42, .62); backdrop-filter: blur(3px); }
.modal { width: min(520px, 100%); max-height: min(90vh, 880px); overflow: auto; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 24px 80px rgba(5, 24, 34, .25); }
.modal-wide { width: min(750px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.modal-header h2 { margin: 0; }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.icon-button { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); font-size: 19px; line-height: 1; }
.icon-button:hover { background: #f2f2f2; color: var(--ink); }
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 45vh; color: var(--muted); font-size: 13px; }
.spinner { width: 28px; height: 28px; margin-bottom: 13px; border: 3px solid #e1e1e1; border-top-color: var(--teal); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.admin-login { display: grid; grid-template-columns: 1fr minmax(380px, 460px); min-height: 100vh; }
.admin-login-info { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(35px, 6vw, 88px); background: linear-gradient(145deg, #4d0815 0%, #870f26 68%, #4d0815 100%); color: var(--white); }
.admin-login-info .brand { color: var(--white); }
.admin-login-info .brand small { color: #e1e1e1; }
.admin-login-info h1 { max-width: 660px; color: var(--white); font-size: clamp(42px, 5vw, 70px); }
.admin-login-info p { max-width: 550px; color: #e1e1e1; font-size: 16px; line-height: 1.75; }
.admin-login-info .tiny { color: #d7d7d7; }
.admin-login-form-wrap { display: grid; place-items: center; padding: 35px; background: var(--white); }
.admin-login-form { width: min(350px, 100%); }
.admin-login-form .panel-kicker { margin-bottom: 15px; }
.admin-login-form h2 { margin-bottom: 9px; font-size: 32px; }
.admin-login-form > p { margin-bottom: 30px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.admin-login-form .btn { margin-top: 4px; }

.admin-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 29px 19px; background: var(--navy); color: #e1e1e1; }
.admin-sidebar .brand { margin: 0 8px 46px; color: var(--white); }
.admin-sidebar .brand small { color: #d7d7d7; }
.nav-caption { margin: 0 13px 12px; color: #a1a1a1; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 10px 13px; border: 0; border-radius: 9px; background: transparent; color: #e1e1e1; font-size: 13px; font-weight: 650; text-align: left; }
.admin-nav button:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.admin-nav button.active { background: #343434; color: var(--white); }
.nav-icon { display: grid; place-items: center; width: 19px; color: #d7d7d7; font-size: 17px; line-height: 1; }
.sidebar-footer { margin-top: auto; padding: 20px 11px 0; border-top: 1px solid rgba(255, 255, 255, .13); color: #d7d7d7; font-size: 11px; line-height: 1.6; }
.sidebar-footer strong { display: block; color: #e1e1e1; font-size: 12px; }
.admin-workspace { min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 15px clamp(24px, 3.5vw, 48px); border-bottom: 1px solid var(--line); background: var(--white); }
.admin-topbar .breadcrumb { color: var(--muted); font-size: 12px; }
.admin-topbar .breadcrumb strong { color: var(--ink); }
.admin-topbar .button-row { flex-wrap: nowrap; }
.admin-content { width: min(1440px, 100%); margin: 0 auto; padding: 35px clamp(24px, 3.5vw, 48px) 70px; }
.admin-page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.admin-page-title h1 { margin-bottom: 7px; font-size: 31px; }
.admin-page-title p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-page-title .status-pill { margin-top: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 4px 10px; border: 1px solid #e1e1e1; border-radius: 99px; background: var(--teal-light); color: #067009; font-size: 10px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.waiting { border-color: #e1e1e1; background: #f2f2f2; color: #666666; }
.status-pill.paused { border-color: #f1ddba; background: var(--amber-light); color: var(--amber); }
.status-pill.closed { border-color: #efcbd0; background: var(--red-light); color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: 0 5px 18px rgba(19, 51, 70, .025); }
.stat-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .045em; }
.stat-card strong { display: block; margin: 7px 0 3px; color: var(--navy); font-size: 30px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-card small { color: #a1a1a1; font-size: 10px; }
.admin-two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: start; gap: 20px; margin-bottom: 20px; }
.admin-card { padding: 23px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.card-heading h2 { margin: 0 0 5px; font-size: 18px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.control-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.control-buttons .btn { min-width: 115px; }
.control-explainer { margin: 19px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.settings-grid .field { margin-bottom: 0; }
.card-subsection { margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.card-subsection h3 { margin-bottom: 12px; font-size: 13px; }
.time-adjust-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: end; gap: 8px; }
.time-adjust-row .field { margin: 0; }
.time-adjust-row .btn { min-height: 46px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 12px; border-bottom: 1px solid var(--line); color: #a1a1a1; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #f2f2f2; color: var(--ink); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f2f2f2; }
.table-name { font-weight: 750; }
.table-sub { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.table-action { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 750; }
.table-action:hover { text-decoration: underline; }
.result-score { color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.result-score.fail { color: var(--red); }
.result-score.pass { color: var(--teal); }
.empty-state { padding: 37px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.card-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-note { margin-top: 20px; }
.admin-note strong { display: block; margin-bottom: 2px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; }
.toolbar .input { max-width: 360px; }
.toolbar select { width: auto; min-width: 130px; }
.toolbar-count { margin-left: auto; color: var(--muted); font-size: 11px; }
.question-bank-list { display: grid; gap: 11px; }
.bank-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.bank-item.off { opacity: .65; }
.bank-item h3 { margin: 8px 0 9px; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: pre-line; }
.bank-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.mini-badge { display: inline-flex; padding: 4px 7px; border-radius: 5px; background: #f2f2f2; color: #666666; font-size: 10px; font-weight: 750; line-height: 1.2; }
.mini-badge.success { background: var(--teal-light); color: var(--teal); }
.mini-badge.warning { background: var(--amber-light); color: var(--amber); }
.mini-badge.danger { background: var(--red-light); color: var(--red); }
.option-editor-list { display: grid; gap: 9px; margin-bottom: 9px; }
.option-editor-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) 34px; align-items: center; gap: 9px; }
.option-editor-row > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: var(--teal-light); color: var(--teal); font-size: 11px; font-weight: 800; }
.option-editor-row input { min-height: 42px; }
.toggle-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 12px; }
.toggle-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--teal); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row small { margin-top: 2px; color: var(--muted); line-height: 1.5; }
.detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0 22px; }
.detail-summary > div { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f2f2f2; }
.detail-summary span, .detail-summary strong { display: block; }
.detail-summary span { color: var(--muted); font-size: 10px; }
.detail-summary strong { margin-top: 4px; color: var(--navy); font-size: 14px; }
.review-list { display: grid; gap: 11px; }
.review-item { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.review-item.correct { border-color: #e1e1e1; }
.review-item.incorrect { border-color: #efd1d3; }
.review-item h3 { margin: 7px 0 11px; font-size: 13px; line-height: 1.5; white-space: pre-line; }
.review-item .answer-line { margin: 3px 0; font-size: 11px; }
.review-item .answer-line strong { color: var(--ink); }

@media (max-width: 1150px) {
  .admin-two-col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .entry-grid { grid-template-columns: 1fr; }
  .entry-hero { min-height: 400px; }
  .hero-topline { margin-bottom: 35px; }
  .entry-panel { min-height: 450px; }
  .exam-grid { grid-template-columns: 1fr; }
  .question-card { min-height: 0; }
  .side-card { order: 2; }
  .question-map { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .admin-sidebar { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 680px) {
  .site-header { min-height: 70px; padding: 13px 18px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 9px; }
  .portal-label, .header-divider { display: none; }
  .candidate-main { width: calc(100% - 28px); padding: 17px 0 45px; }
  .entry-grid { gap: 14px; }
  .entry-hero { min-height: 360px; padding: 29px; }
  .entry-hero h1 { font-size: 39px; }
  .entry-hero .hero-subtitle { font-size: 13px; }
  .hero-facts { gap: 8px; }
  .hero-fact strong { font-size: 18px; }
  .hero-fact span { font-size: 10px; }
  .entry-panel { min-height: 0; padding: 30px 25px; }
  .exam-topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; }
  .timer-card { flex: 1; }
  .progress-strip { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .progress-native { flex-basis: 100%; order: 3; }
  .exam-grid { gap: 14px; margin-top: 14px; }
  .question-card, .side-card { padding: 20px; }
  .question-card h2 { font-size: 20px; }
  .question-map { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .question-footer { flex-wrap: wrap; }
  .question-footer .button-row { width: 100%; }
  .question-footer .button-row .btn { flex: 1; }
  .admin-login { grid-template-columns: 1fr; }
  .admin-login-info { min-height: 300px; padding: 30px; }
  .admin-login-info h1 { font-size: 39px; }
  .admin-login-info p { font-size: 13px; }
  .admin-login-form-wrap { min-height: 380px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; min-height: 0; padding: 16px; }
  .admin-sidebar .brand { margin: 0 0 16px; }
  .nav-caption, .sidebar-footer { display: none; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { flex: 0 0 auto; width: auto; padding: 9px 11px; }
  .admin-topbar { min-height: 58px; padding: 10px 16px; }
  .admin-content { padding: 23px 16px 45px; }
  .admin-page-title { align-items: flex-start; }
  .admin-page-title h1 { font-size: 25px; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 15px; }
  .stat-card strong { font-size: 24px; }
  .admin-card { padding: 17px; }
  .time-adjust-row { grid-template-columns: 1fr 1fr; }
  .time-adjust-row .btn { grid-column: 1 / -1; }
  .toolbar .input { max-width: 100%; }
  .toolbar-count { margin-left: 0; }
  .field-row, .settings-grid { grid-template-columns: 1fr; }
  .detail-summary { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
}
@media print {
  .applicant-page * { visibility: hidden !important; }
  .applicant-page::before { content: "Printing this assessment is disabled."; visibility: visible !important; display: block; padding: 30px; color: #000; }
}

.map-button.flagged {border:2px solid #b97b00;box-shadow:inset 0 -3px #f6a400;}

/* UNN corporate palette */
.brand strong {max-width: 430px; line-height:1.35;}
.entry-hero h1 {font-size:clamp(29px,3vw,44px);line-height:1.18;letter-spacing:-.025em;overflow-wrap:anywhere;}
.entry-hero {border-top:5px solid #f6a400;}
.brand-symbol span:nth-child(4) {background:#870f26;}
.admin-sidebar .brand-symbol span:nth-child(4) {background:#ffffff;}
.status-pill.open,.status-pill.active,.mini-badge.success {background:#b5ffb7;color:#043004;border-color:#067009;}
.result-score.pass,.save-status.saved {color:#067009;}
.option.selected {border-color:#870f26;background:#fbd9df;}
.option.selected .option-key {background:#870f26;color:#ffffff;}
.bank-item {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;}
.question-order {display:flex;align-items:center;justify-content:flex-end;gap:7px;grid-column:2;grid-row:1;}
.question-order strong {display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fbd9df;color:#870f26;font-size:13px;}
.bank-question-content {min-width:0;grid-column:1;grid-row:1 / span 2;}
.question-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;grid-column:2;grid-row:2;}
.written-mark-form {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;}
.written-mark-form input {width:120px;}
@media (max-width: 720px) {
  .bank-item {align-items:flex-start;}
  .bank-item {grid-template-columns:minmax(0,1fr);}
  .bank-question-content {grid-column:1;grid-row:1;}
  .question-order {grid-column:1;grid-row:2;width:100%;}
  .question-actions {grid-column:1;grid-row:3;width:100%;justify-content:flex-end;}
}
