@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");
:root {
  --navy: #061e29;
  --blue: #1d546d;
  --teal: #5f9598;
  --mist: #f3f4f4;
  --white: #fff;
  --ink: #10242d;
  --muted: #64767e;
  --line: #d9e3e6;
  --line2: #c4d1d5;
  --soft: #edf3f4;
  --success: #2f6f68;
  --danger: #a04b4b;
  --warning: #8a6a2f;
  --shadow: 0 14px 40px rgba(6, 30, 41, 0.08);
  --r: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Geist, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: -0.025em;
}
h1 {
  font-size: 36px;
  line-height: 1.12;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow,
.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--blue);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--blue);
  color: #fff;
}
.btn.primary:hover {
  background: var(--navy);
}
.btn.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line2);
}
.btn.secondary:hover {
  background: var(--soft);
  border-color: var(--teal);
}
.btn.full {
  width: 100%;
}
.btn.small-btn {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}
.alert {
  padding: 13px 15px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert.error {
  background: #fbefef;
  color: var(--danger);
  border-color: #edd0d0;
}
.alert.success {
  background: #edf6f4;
  color: var(--success);
  border-color: #cce4df;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 17px;
}
label span {
  font-weight: 400;
  color: var(--muted);
}
input,
textarea,
select {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 12px 13px;
  margin-top: 7px;
  outline: 0;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(95, 149, 152, 0.15);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
.form-stack {
  margin-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .form-actions {
  grid-column: 1/-1;
}
.gateway {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  place-items: center;
  padding: 28px;
}
.gateway-wrap {
  width: min(1050px, 100%);
}
.gateway-brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 22px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--teal);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.gateway-brand strong,
.auth-brand strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.gateway-brand span,
.auth-brand span {
  display: block;
  color: #a9bec5;
  font-size: 10px;
}
.gateway-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.gateway-copy,
.gateway-side {
  padding: 52px;
}
.gateway-copy h1 {
  font-size: 48px;
  margin: 7px 0 14px;
}
.gateway-rule {
  width: 70px;
  height: 4px;
  background: var(--teal);
  margin: 24px 0;
}
.portal-list {
  display: grid;
  gap: 11px;
  margin-top: 25px;
}
.portal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.portal-link:hover {
  background: var(--soft);
  border-color: var(--teal);
}
.portal-link strong {
  display: block;
  color: var(--navy);
}
.portal-link span {
  font-size: 12px;
  color: var(--muted);
}
.portal-arrow {
  font-size: 20px !important;
  color: var(--blue) !important;
}
.gateway-side {
  background: var(--mist);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gateway-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
}
.gateway-stats strong {
  display: block;
  font-size: 27px;
  color: var(--navy);
}
.auth-page {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-wrap {
  width: min(460px, 100%);
}
.auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}
.auth-card h1 {
  font-size: 40px;
  margin: 7px 0;
}
.login-help {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}
.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--mist);
}
.welcome-card {
  width: min(820px, 100%);
  padding: 0;
  overflow: hidden;
}
.welcome-hero {
  background: var(--navy);
  padding: 40px 42px;
  color: #fff;
}
.welcome-hero .eyebrow {
  color: #9fc4c6;
}
.welcome-hero h1 {
  color: #fff;
  font-size: 44px;
  margin: 8px 0 12px;
}
.welcome-hero p {
  color: #c7d8dc;
}
.welcome-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 25px;
  padding-top: 18px;
}
.welcome-meta .meta-label {
  color: #8eb3b8;
}
.welcome-meta strong {
  display: block;
  color: #fff;
  margin-top: 3px;
  font-size: 18px;
}
.welcome-body {
  padding: 34px 42px;
}
.intro-note {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
}
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 250px;
  background: var(--navy);
  color: #fff;
  padding: 20px 14px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 9px 30px;
}
.sidebar-brand strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.sidebar-brand span {
  display: block;
  color: #91aab2;
  font-size: 10px;
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-nav a,
.logout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #a9bdc3;
  font-size: 13px;
  font-weight: 600;
}
.side-nav a:hover,
.logout-link:hover {
  background: #103545;
  color: #fff;
}
.side-nav a.active {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 3px 0 var(--teal);
}
.side-nav span,
.logout-link span {
  width: 19px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #163744;
  padding-top: 15px;
}
.signed-in {
  padding: 0 10px 10px;
}
.signed-in small {
  display: block;
  color: #69828b;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.signed-in strong {
  font-size: 12px;
}
.admin-main {
  margin-left: 250px;
  flex: 1;
  min-width: 0;
}
.admin-top {
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-top strong {
  font-size: 14px;
  color: var(--navy);
}
.mobile-title {
  display: none;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.avatar.large {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.content {
  width: min(1480px, 100%);
  margin: auto;
  padding: 34px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head h1 {
  margin-bottom: 5px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  padding: 20px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.metric strong {
  display: block;
  color: var(--navy);
  font-size: 29px;
  margin-top: 8px;
}
.metric:nth-child(2),
.metric:nth-child(4) {
  border-top: 3px solid var(--teal);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-title h2 {
  margin-bottom: 3px;
}
.section-title p {
  margin: 0;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
td {
  font-size: 13px;
}
tbody tr:hover {
  background: #fafcfc;
}
.badge,
.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.badge {
  background: var(--soft);
  color: var(--blue);
}
.status.pending {
  background: #f7f2e5;
  color: var(--warning);
}
.status.progress {
  background: #eaf2f5;
  color: var(--blue);
}
.status.done,
.status.shortlisted {
  background: #eaf5f2;
  color: var(--success);
}
.status.rejected {
  background: #faeeee;
  color: var(--danger);
}
.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 8px;
  margin-bottom: 20px;
}
.filters input,
.filters select {
  margin: 0;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(420px, 1.2fr);
  gap: 20px;
}
.account-list {
  display: grid;
  gap: 8px;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.account-info {
  min-width: 0;
  flex: 1;
}
.account-info strong,
.account-info span,
.account-info small {
  display: block;
}
.account-info span {
  font-size: 12px;
  color: var(--muted);
}
.account-info small {
  font-size: 10px;
  color: #8c9aa0;
}
.account-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.account-actions form {
  margin: 0;
}
.current-tag {
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
  background: #eaf5f2;
  padding: 4px 7px;
  border-radius: 999px;
}
.candidate-body {
  background: var(--mist);
}
.candidate-topbar {
  height: 72px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 5px 18px rgba(6, 30, 41, 0.14);
}
.candidate-brand strong {
  display: block;
  font-size: 13px;
}
.candidate-brand span {
  display: block;
  font-size: 10px;
  color: #9fb5bc;
}
.candidate-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.candidate-user .small {
  color: #b9cbd0;
}
.save-state {
  font-size: 11px;
  color: #bfe0d9;
  min-width: 90px;
  text-align: right;
}
.candidate-layout {
  width: min(1280px, 100%);
  margin: auto;
  padding: 28px 24px 50px;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 26px;
}
.question-nav {
  position: sticky;
  top: 98px;
  align-self: start;
}
.question-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 12px;
}
.question-nav-head strong {
  font-size: 13px;
  color: var(--navy);
}
.question-nav-list {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 150px);
  overflow: auto;
}
.q-nav {
  display: grid;
  grid-template-columns: 42px 1fr 8px;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 11px;
  color: var(--muted);
}
.q-nav:hover {
  border-color: var(--teal);
}
.q-nav .num {
  font-family: "JetBrains Mono", monospace;
  color: var(--navy);
  font-size: 10px;
}
.q-nav .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-nav .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5d8;
}
.q-nav.active {
  border-color: var(--blue);
  background: #eaf2f5;
  box-shadow: 0 0 0 1px var(--blue);
}
.q-nav.active .num,
.q-nav.active .label {
  color: var(--blue);
  font-weight: 700;
}
.q-nav.answered .dot {
  background: var(--teal);
}
.candidate-main {
  min-width: 0;
}
.interview-overview {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 15px;
}
.interview-overview h1 {
  font-size: 34px;
  margin: 6px 0 3px;
}
.progress-track {
  height: 7px;
  background: #dce6e8;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-track > div {
  height: 100%;
  background: var(--teal);
}
.question-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.question-header {
  padding: 19px 24px;
  background: var(--navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.question-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #a9c3ca;
}
.category {
  display: inline-block;
  margin-top: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.question-header .small {
  color: #a9bec5;
}
.question-body {
  padding: 30px;
}
.question-body h2 {
  font-size: 23px;
  line-height: 1.45;
  max-width: 900px;
  margin-bottom: 25px;
}
.answer-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.answer-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.answer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--blue);
}
.choice-list {
  display: grid;
  gap: 11px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice label {
  margin: 0;
  padding: 15px 16px 15px 52px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  cursor: pointer;
}
.choice label:hover {
  border-color: var(--teal);
  background: #fbfdfd;
}
.choice-key {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}
.choice input:checked + label {
  border-color: var(--blue);
  background: #eaf2f5;
  box-shadow: 0 0 0 2px rgba(29, 84, 109, 0.08);
}
.choice input:checked + label .choice-key {
  background: var(--blue);
  color: #fff;
}
.choice input:focus-visible + label {
  box-shadow: 0 0 0 4px rgba(95, 149, 152, 0.18);
}
.question-footer {
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #fbfcfc;
}
.footer-actions {
  display: flex;
  gap: 8px;
}
.footer-hint {
  font-size: 11px;
  color: var(--muted);
}
.review-callout {
  margin-top: 16px;
  background: var(--navy);
  color: #d6e2e5;
  padding: 14px 16px;
  border-radius: 11px;
  font-size: 12px;
}
.review-callout strong {
  color: #fff;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.summary-stat {
  padding: 20px;
}
.summary-stat + .summary-stat {
  border-left: 1px solid var(--line);
}
.summary-stat strong {
  display: block;
  color: var(--navy);
  font-size: 27px;
  margin-top: 4px;
}
.review-list {
  display: grid;
  gap: 8px;
}
.review-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.review-item:hover {
  border-color: var(--teal);
}
.review-item .qnum {
  font-family: "JetBrains Mono", monospace;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.review-item h3 {
  margin: 0;
  font-size: 14px;
}
.review-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.answer-status {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
}
.answer-status.answered {
  background: #eaf5f2;
  color: var(--success);
}
.answer-status.unanswered {
  background: #f2f4f4;
  color: var(--muted);
}
.submit-card {
  margin-top: 18px;
  background: var(--navy);
  color: #d1dfe3;
  border-radius: 14px;
  padding: 24px;
}
.submit-card h2 {
  color: #fff;
}
.submit-card .btn {
  background: var(--teal);
  color: var(--navy);
}
.candidate-review-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.candidate-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.summary-cell {
  padding: 20px;
}
.summary-cell + .summary-cell {
  border-left: 1px solid var(--line);
}
.summary-cell span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}
.summary-cell strong {
  display: block;
  font-size: 22px;
  color: var(--navy);
  margin-top: 5px;
}
.review-question {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 7px 22px rgba(6, 30, 41, 0.05);
}
.review-question-main {
  padding: 27px;
  border-right: 1px solid var(--line);
}
.review-question-side {
  padding: 27px;
  background: #fbfcfc;
}
.review-question h2 {
  line-height: 1.5;
  font-size: 18px;
}
.answer-box {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  min-height: 64px;
}
.answer-box.selected {
  background: #eaf2f5;
  border-color: #bdd2d9;
}
.answer-box.correct {
  background: #eaf5f2;
  border-color: #c4e1db;
}
.choice-review {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.choice-review div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}
.choice-review .is-selected {
  border-color: var(--blue);
  background: #eaf2f5;
}
.choice-review .is-correct {
  border-color: var(--teal);
  background: #edf6f4;
}
.choice-review b {
  font-family: "JetBrains Mono", monospace;
  margin-right: 7px;
  color: var(--blue);
}
.eval-form {
  display: grid;
  gap: 12px;
}
.score-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: end;
}
.score-input {
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  text-align: center;
}
.final-card {
  margin-top: 18px;
}
.final-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
}
.final-grid .final-actions {
  grid-column: 1/-1;
}
.question-admin-grid {
  display: grid;
  grid-template-columns: minmax(350px, 0.9fr) minmax(500px, 1.1fr);
  gap: 20px;
}
.question-list {
  display: grid;
  gap: 8px;
  max-height: 740px;
  overflow: auto;
}
.question-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.question-row:hover {
  border-color: var(--teal);
}
.question-row .q-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
}
.question-row strong {
  font-size: 13px;
  display: block;
  color: var(--navy);
}
.question-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.question-row-actions {
  display: flex;
  gap: 5px;
}
.question-editor {
  position: sticky;
  top: 95px;
  align-self: start;
}
.code-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.option-editor {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: start;
}
.option-editor input:first-child {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}
.completion-card {
  width: min(650px, 100%);
  text-align: center;
  padding: 46px;
}
.check {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}
@media (max-width: 1150px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-question {
    grid-template-columns: 1fr;
  }
  .review-question-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .question-admin-grid {
    grid-template-columns: 1fr;
  }
  .question-editor {
    position: static;
  }
  .gateway-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .gateway-copy,
  .gateway-side {
    padding: 30px;
  }
  .gateway-copy h1 {
    font-size: 38px;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 10px;
  }
  .sidebar-brand {
    padding: 0;
  }
  .side-nav {
    display: none;
  }
  .sidebar-bottom {
    margin-left: auto;
    margin-top: 0;
    border: 0;
    padding: 0;
  }
  .signed-in {
    display: none;
  }
  .admin-shell {
    display: block;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-top {
    height: 60px;
    padding: 0 18px;
  }
  .content {
    padding: 22px 15px;
  }
  .top-user span:last-child {
    display: none;
  }
  .page-head,
  .candidate-review-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid,
  .account-grid,
  .filters {
    grid-template-columns: 1fr;
  }
  .candidate-topbar {
    height: 64px;
    padding: 0 16px;
  }
  .candidate-user .save-state {
    display: none;
  }
  .candidate-layout {
    display: block;
    padding: 18px 12px 36px;
  }
  .question-nav {
    position: static;
    margin-bottom: 14px;
  }
  .question-nav-list {
    display: flex;
    overflow: auto;
    max-height: none;
  }
  .q-nav {
    min-width: 48px;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .q-nav .label {
    display: none;
  }
  .interview-overview {
    align-items: flex-start;
  }
  .interview-overview h1 {
    font-size: 29px;
  }
  .question-body {
    padding: 23px 18px;
  }
  .question-body h2 {
    font-size: 20px;
  }
  .question-footer {
    padding: 14px 18px;
    align-items: stretch;
    flex-direction: column;
  }
  .footer-actions {
    width: 100%;
  }
  .footer-actions .btn {
    flex: 1;
  }
  .footer-hint {
    display: none;
  }
  .welcome-hero,
  .welcome-body {
    padding: 28px 24px;
  }
  .welcome-hero h1 {
    font-size: 35px;
  }
  .welcome-meta {
    grid-template-columns: 1fr;
  }
  .welcome-meta > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 10px;
  }
  .review-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .summary-grid,
  .candidate-summary {
    grid-template-columns: 1fr;
  }
  .summary-stat + .summary-stat,
  .summary-cell + .summary-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .review-item {
    grid-template-columns: 36px 1fr;
  }
  .review-item .answer-status {
    grid-column: 2;
    justify-self: start;
  }
  .final-grid,
  .score-row {
    grid-template-columns: 1fr;
  }
  .question-row {
    grid-template-columns: 32px 1fr;
  }
  .question-row-actions {
    grid-column: 2;
  }
  .auth-card {
    padding: 28px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Automatic MCQ result presentation */
.auto-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(6, 30, 41, 0.12);
}
.auto-result-card h2 {
  color: #fff;
  margin: 4px 0 4px;
  font-size: 23px;
}
.auto-result-card .eyebrow {
  color: #8fc0c3;
}
.auto-result-card .muted {
  color: #b6cbd0;
  margin: 0;
  max-width: 680px;
}
.auto-result-score {
  text-align: right;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 24px;
}
.auto-result-score strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
}
.auto-result-score span {
  display: block;
  color: #9fc0c5;
  font-size: 11px;
  margin-top: 7px;
}
.auto-result-stats {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 16px;
}
.auto-result-stats div {
  padding-right: 18px;
}
.auto-result-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  padding-left: 18px;
}
.auto-result-stats span {
  display: block;
  color: #9fb8be;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auto-result-stats strong {
  display: block;
  font-size: 20px;
  margin-top: 3px;
}
.result-good {
  color: #9bd0c3;
}
.result-bad {
  color: #e2a7a7;
}
.auto-check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}
.result-badge.correct {
  background: #e8f4f0;
  color: #2f6f68;
}
.result-badge.incorrect {
  background: #faeeee;
  color: #9a4b4b;
}
.result-badge.neutral {
  background: var(--soft);
  color: var(--muted);
}
@media (max-width: 800px) {
  .auto-result-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .auto-result-score {
    text-align: left;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    padding: 16px 0 0;
  }
  .auto-result-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .auto-result-stats div + div {
    border-left: 0;
    padding-left: 0;
  }
  .auto-result-stats div:nth-child(3),
  .auto-result-stats div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    padding-top: 12px;
  }
}

/* Completion + candidate review clarity */
.completion-card {
  width: min(680px, 100%);
  padding: 48px 46px;
}
.completion-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--mist);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(6, 30, 41, 0.12);
}
.completion-card h1 {
  font-size: 36px;
  margin: 7px 0 12px;
}
.completion-message {
  max-width: 540px;
  margin: 0 auto 24px;
}
.completion-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  overflow: hidden;
  margin-top: 22px;
}
.completion-status > div {
  padding: 15px 17px;
}
.completion-status > div + div {
  border-left: 1px solid var(--line);
}
.completion-status strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  margin-top: 4px;
}
.completion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}
.completion-note {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
}

.answer-overview {
  padding: 20px 22px;
  margin-bottom: 18px;
}
.answer-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.answer-overview-head h2 {
  margin: 3px 0 0;
  font-size: 19px;
}
.answer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #cbd5d8;
}
.legend-item.answered i {
  background: var(--teal);
}
.legend-item.unanswered i {
  background: #cbd5d8;
}
.legend-item.correct i {
  background: var(--success);
}
.legend-item.incorrect i {
  background: var(--danger);
}
.question-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 7px;
}
.question-status-pill {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  transition: 0.15s ease;
}
.question-status-pill:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(6, 30, 41, 0.08);
}
.question-status-pill span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--navy);
}
.question-status-pill strong {
  font-size: 15px;
}
.question-status-pill.answered {
  border-left: 3px solid var(--teal);
}
.question-status-pill.unanswered {
  border-left: 3px solid #cbd5d8;
  background: #fafbfb;
}
.question-status-pill.correct {
  border-color: #c9e1dc;
  background: #edf6f4;
}
.question-status-pill.correct strong {
  color: var(--success);
}
.question-status-pill.incorrect {
  border-color: #ecd1d1;
  background: #fcf1f1;
}
.question-status-pill.incorrect strong {
  color: var(--danger);
}
.answer-overview-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.answer-overview-footer strong {
  color: var(--navy);
}

.review-question.status-correct {
  border-left: 4px solid var(--success);
}
.review-question.status-incorrect {
  border-left: 4px solid var(--danger);
}
.review-question.status-unanswered {
  border-left: 4px solid #cbd5d8;
}
.review-question .answer-box.selected-correct {
  border-color: #b9d9d1;
  background: #edf6f4;
}
.review-question .answer-box.selected-incorrect {
  border-color: #e6c2c2;
  background: #fcf1f1;
}
.review-question .answer-box.selected-incorrect strong {
  color: var(--danger);
}
.review-question .unanswered-box {
  background: #fafbfb;
  border-style: dashed;
  color: var(--muted);
}
.review-question .unanswered-box strong {
  color: var(--muted);
}
@media (max-width: 800px) {
  .completion-card {
    padding: 36px 22px;
  }
  .completion-card h1 {
    font-size: 30px;
  }
  .completion-status {
    grid-template-columns: 1fr;
  }
  .completion-status > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .answer-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .answer-overview-footer {
    flex-direction: column;
  }
}

/* Candidate review filters */
.review-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  margin-bottom: 14px;
  position: sticky;
  top: 88px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
.review-filter-copy {
  min-width: 210px;
}
.review-filter-copy strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-top: 3px;
}
.review-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}
.review-filter {
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--navy);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}
.review-filter:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.review-filter span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 9px;
}
.review-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.review-filter.active span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.review-filter.correct-filter.active {
  background: var(--success);
  border-color: var(--success);
}
.review-filter.incorrect-filter.active {
  background: var(--danger);
  border-color: var(--danger);
}
.review-question.filter-hidden {
  display: none;
}
.review-filter-empty {
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
  margin-bottom: 14px;
}
.review-question.status-correct .review-question-main h2,
.review-question.status-incorrect .review-question-main h2,
.review-question.status-unanswered .review-question-main h2 {
  font-weight: 750;
}
.review-question.status-correct .auto-check-line .result-badge,
.review-question.status-incorrect .auto-check-line .result-badge,
.review-question.status-unanswered .auto-check-line .result-badge {
  font-weight: 900;
}
.review-question .choice-review .is-selected {
  font-weight: 800;
  border-radius: 8px;
}
.review-question .choice-review .is-selected b {
  font-weight: 900;
}
.review-question .choice-review .is-correct {
  font-weight: 750;
}

/* Completion finish animation */
.completion-page {
  background:#1d546d42;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.completion-card {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: completionCardIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s
    forwards;
}
.completion-icon {
  position: relative;
  transform: scale(0.7);
  opacity: 0;
  animation: completionIconIn 0.48s cubic-bezier(0.2, 1.35, 0.3, 1) 0.25s
    forwards;
}
.completion-check {
  display: block;
  transform: scale(0.3) rotate(-12deg);
  opacity: 0;
  animation: completionCheckIn 0.38s ease-out 0.52s forwards;
}
.completion-status {
  opacity: 0;
  transform: translateY(7px);
  animation: completionStatusIn 0.4s ease-out 0.72s forwards;
}
.completion-note {
  opacity: 0;
  animation: completionFadeIn 0.35s ease-out 0.88s forwards;
}
.completion-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
.completion-confetti::before,
.completion-confetti::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  box-shadow:
    -170px 10px 0 #5f9598,
    170px 4px 0 #1d546d,
    -125px 70px 0 #2f6f68,
    125px 65px 0 #a04b4b,
    -75px -20px 0 #5f9598,
    80px -30px 0 #1d546d,
    -205px 90px 0 #2f6f68,
    205px 85px 0 #a04b4b;
  opacity: 0;
  animation: confettiBurst 0.95s ease-out 0.48s forwards;
}
.completion-confetti::after {
  transform: rotate(18deg) scale(0.75);
  animation-delay: 0.58s;
}
@keyframes completionCardIn {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes completionIconIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes completionCheckIn {
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes completionStatusIn {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes completionFadeIn {
  to {
    opacity: 1;
  }
}
@keyframes confettiBurst {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(115px) scale(1) rotate(45deg);
  }
}
@media (max-width: 800px) {
  .review-filters {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }
  .review-filter-buttons {
    justify-content: flex-start;
  }
  .review-filter {
    flex: 1 1 auto;
  }
  .completion-confetti {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .completion-card,
  .completion-icon,
  .completion-check,
  .completion-status,
  .completion-note {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .completion-confetti {
    display: none;
  }
}

/* =========================================================
   Interview question readability / mixed question types
   ========================================================= */
.question-text {
  font-size: 23px;
  line-height: 1.55;
  max-width: 920px;
  margin: 0 0 24px;
  color: var(--ink);
  white-space: normal;
}
.question-type-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d6e5e8;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 9px;
}
.code-label {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.question-code,
.code-editor {
  box-sizing: border-box;
  width: 100%;
  font-family: "JetBrains Mono", Consolas, "Cascadia Code", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
  tab-size: 4;
  white-space: pre;
}
.question-code {
  margin: 0 0 25px;
  padding: 19px 20px;
  overflow-x: auto;
  border-radius: 12px;
  background: #071f2b;
  color: #f4f8f9;
  border: 1px solid #173b4b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.code-answer,
.code-editor {
  font-family: "JetBrains Mono", Consolas, "Cascadia Code", "Courier New", monospace;
  white-space: pre;
}
.written-answer {
  width: 100%;
  min-height: 220px;
  box-sizing: border-box;
  resize: vertical;
  padding: 16px 17px;
  border: 1px solid var(--line2);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
}
.written-answer:focus,
.question-editor textarea:focus,
.question-editor input:focus,
.question-editor select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(95,149,152,.12);
}
.question-editor #codeFields {
  display: grid;
  gap: 14px;
}
.question-editor .code-editor {
  min-height: 190px;
  padding: 14px 15px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #071f2b;
  color: #fff;
  resize: vertical;
}
.question-row-inactive {
  opacity: .55;
}

/* Admin review: preserve programming code and candidate written answers. */
.admin-review-code {
  margin: 12px 0 18px;
  padding: 15px 16px;
  overflow-x: auto;
  background: #071f2b;
  color: #fff;
  border-radius: 10px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}
.admin-written-answer {
  margin: 0;
  padding: 14px 16px;
  background: #f7fafb;
  border: 1px solid var(--line2);
  border-radius: 10px;
  white-space: pre-wrap;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .question-text {
    font-size: 20px;
  }
  .question-code,
  .admin-review-code,
  .code-editor {
    font-size: 13px;
    padding: 14px;
  }
  .question-type-badge {
    display: none;
  }
}
