:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #14213a;
  --muted: #67738d;
  --line: rgba(91, 108, 148, 0.16);
  --primary: #275df5;
  --primary-2: #5c7cff;
  --accent: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-lg: 0 28px 60px rgba(28, 46, 94, 0.12);
  --shadow-md: 0 18px 34px rgba(28, 46, 94, 0.08);
  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(39, 93, 245, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 20%),
    linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  overflow-wrap: break-word;
}

button,
input,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

img,
svg,
canvas,
video,
iframe {
  display: block;
  max-width: 100%;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.34;
}

.orb-a {
  top: -110px;
  left: -70px;
  width: 320px;
  height: 320px;
  background: #8db2ff;
}

.orb-b {
  right: -80px;
  top: 180px;
  width: 280px;
  height: 280px;
  background: #b7f0da;
}

.grid-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 88%);
}

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 40;
  display: grid;
  gap: 12px;
}

.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: var(--shadow-lg);
  animation: toastIn 240ms ease;
}

.toast.success {
  background: rgba(12, 113, 72, 0.96);
}

.toast.error {
  background: rgba(153, 27, 27, 0.95);
}

.toast.warning {
  background: rgba(146, 64, 14, 0.95);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-panel {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
}

.modal-panel h2,
.modal-panel p {
  margin: 0 0 12px;
}

.modal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 800;
}

.portal-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.panel-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.portal-header,
.preload-banner,
.hero-panel,
.loading-panel,
.exam-sidebar,
.exam-topbar,
.question-palette,
.question-card,
.navigation-bar,
.success-panel,
.site-footer {
  border-radius: var(--radius-2xl);
}

.portal-header,
.preload-banner,
.exam-topbar,
.navigation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.portal-header,
.preload-banner,
.hero-panel,
.loading-panel,
.question-palette,
.question-card,
.navigation-bar,
.success-panel,
.site-footer {
  padding: 30px;
}

.brand-row,
.header-badges,
.topbar-actions,
.social-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(20, 33, 58, 0.14);
}

.portal-logo-brand {
  height: clamp(45px, 4vw, 56px);
  flex: 0 0 auto;
}

.portal-logo-section {
  height: clamp(45px, 4vw, 52px);
  flex: 0 0 auto;
}

.portal-logo-result {
  height: clamp(52px, 5vw, 60px);
}

.portal-logo-footer {
  width: clamp(50px, 6vw, 70px);
  height: auto;
  flex: 0 0 auto;
}

.section-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.section-logo-text {
  color: var(--muted);
  font-weight: 700;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  border: 1px dashed rgba(39, 93, 245, 0.35);
  background:
    linear-gradient(135deg, rgba(39, 93, 245, 0.14), rgba(92, 124, 255, 0.08)),
    rgba(255, 255, 255, 0.66);
}

.portal-header h1,
.portal-header p,
.hero-copy h2,
.hero-copy p,
.section-heading h3,
.section-copy,
.summary-row strong,
.summary-row span,
.sidebar-card h3,
.sidebar-copy,
.question-card h3,
.success-panel h2,
.success-panel p,
.footer-grid h3,
.footer-grid h4,
.footer-grid p,
.footer-bottom p,
.helper-message {
  margin: 0;
}

.portal-header h1,
.hero-copy h2,
.section-heading h3,
.sidebar-card h3,
.question-card h3,
.success-panel h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.portal-header h1 {
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-header p,
.hero-copy p,
.section-copy,
.summary-row span,
.sidebar-copy,
.activity-list,
.helper-message,
.footer-links a,
.footer-grid p,
.footer-bottom p,
.preload-banner p {
  color: var(--muted);
}

.chip,
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 700;
}

.meta-badge.type {
  background: rgba(39, 93, 245, 0.08);
  color: var(--primary);
}

.meta-badge.subtle {
  color: var(--muted);
}

.status-ping {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.status-ping::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(16, 185, 129, 0.2);
  animation: pulse 1.8s infinite;
}

.portal-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.preload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hero-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.exam-summary-card,
.registration-form,
.sidebar-card,
.timer-card,
.question-progress-bar,
.option-card,
.success-badge,
.skeleton-card,
.skeleton-wide {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 255, 0.76));
}

.exam-summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.summary-row,
.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.field-group {
  display: grid;
  gap: 10px;
}

.email-action-row,
.otp-verification-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.email-action-btn {
  min-height: 54px;
  white-space: nowrap;
}

.field-message {
  margin: -2px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.field-message.error {
  color: var(--danger);
}

.field-message.success {
  color: #0f8f67;
}

.field-group input.input-error,
.answer-textarea.input-error,
.short-answer-input.input-error {
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.field-group input.input-success,
.answer-textarea.input-success,
.short-answer-input.input-success {
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.field-group input:read-only {
  background: rgba(236, 243, 255, 0.88);
  color: rgba(20, 33, 58, 0.78);
}

.field-group label {
  font-weight: 700;
}

.field-group input,
.answer-textarea,
.short-answer-input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.portal-header,
.preload-banner,
.hero-panel,
.registration-form,
.exam-layout,
.exam-main,
.question-palette,
.palette-container,
.question-card,
.answer-container,
.option-card,
.navigation-bar,
.success-panel,
.footer-grid,
.footer-links,
.modal-panel,
.exam-topbar,
.sidebar-card,
.timer-card {
  min-width: 0;
}

.field-group input:focus,
.answer-textarea:focus,
.short-answer-input:focus {
  border-color: rgba(39, 93, 245, 0.4);
  box-shadow: 0 0 0 4px rgba(39, 93, 245, 0.1);
}

.full-width {
  grid-column: 1 / -1;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.tertiary-btn,
.floating-submit {
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition), color var(--transition);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.tertiary-btn,
.floating-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 18px 30px rgba(39, 93, 245, 0.2);
}

.secondary-btn {
  background: rgba(39, 93, 245, 0.08);
  color: var(--primary);
}

.ghost-btn {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.tertiary-btn {
  background: rgba(20, 33, 58, 0.06);
  color: var(--text);
}

.floating-submit {
  background: linear-gradient(135deg, #ff6b6b, #7c4dff);
  color: #fff;
  box-shadow: 0 24px 44px rgba(124, 77, 255, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.tertiary-btn:hover,
.floating-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.tertiary-btn:disabled,
.floating-submit:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.primary-btn.loading .btn-spinner {
  display: inline-block;
}

.primary-btn.loading .btn-text {
  opacity: 0.82;
}

.helper-message {
  min-height: 24px;
}

.helper-message.error {
  color: var(--danger);
}

.helper-message.success {
  color: #0f8f67;
}

.helper-message.warning {
  color: #b45309;
}

.loading-panel {
  display: grid;
  gap: 20px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skeleton-card,
.skeleton-wide {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border-radius: var(--radius-xl);
}

.skeleton-wide {
  grid-column: 1 / -1;
  min-height: 80px;
}

.skeleton-wide.short {
  min-height: 56px;
}

.skeleton-card::after,
.skeleton-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96), transparent);
  animation: shimmer 1.2s infinite;
}

.exam-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.exam-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 22px;
}

.sticky-stack,
.exam-main {
  display: grid;
  gap: 18px;
}

.sidebar-card,
.timer-card {
  padding: 18px;
  border-radius: var(--radius-xl);
}

.timer-card {
  display: grid;
  place-items: center;
}

.timer-ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-track,
.timer-ring-progress {
  fill: none;
  stroke-width: 10;
}

.timer-ring-track {
  stroke: rgba(39, 93, 245, 0.1);
}

.timer-ring-progress {
  stroke: url(#gradient);
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset var(--transition);
}

.timer-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.timer-core span {
  color: var(--muted);
  font-size: 0.9rem;
}

.timer-core strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.progress-track {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(39, 93, 245, 0.1);
  overflow: hidden;
}

.progress-fill,
.question-progress-indicator {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: width var(--transition);
}

.activity-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.exam-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.palette-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 12px;
}

.palette-btn {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.palette-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.palette-btn.current {
  background: rgba(39, 93, 245, 0.12);
  border-color: rgba(39, 93, 245, 0.35);
}

.palette-btn.answered {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.26);
}

.palette-btn.review {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.26);
}

.question-card {
  position: relative;
  overflow: hidden;
}

.question-card.transitioning {
  animation: questionSlide 220ms ease;
}

.question-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.question-progress-bar {
  height: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  overflow: hidden;
}

.question-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.35;
}

.answer-container {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.option-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(39, 93, 245, 0.28);
  box-shadow: var(--shadow-md);
}

.option-card.selected {
  border-color: rgba(39, 93, 245, 0.35);
  background: rgba(39, 93, 245, 0.08);
}

.option-card input[type="radio"] {
  margin-top: 4px;
}

.option-pill {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(39, 93, 245, 0.08);
  color: var(--primary);
  font-weight: 800;
}

.option-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.answer-textarea {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
}

.short-answer-input {
  padding: 0 16px;
}

.floating-submit {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
}

.success-panel {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 420px;
  gap: 14px;
}

.success-badge {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
}

.success-badge svg {
  width: 72px;
  height: 72px;
}

.success-ring {
  fill: none;
  stroke: rgba(16, 185, 129, 0.22);
  stroke-width: 3;
}

.success-check {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.7s 0.1s forwards ease;
}

.site-footer {
  margin-bottom: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-row {
  flex-wrap: wrap;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(20, 33, 58, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes questionSlide {
  from {
    opacity: 0.5;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .hero-panel,
  .exam-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .exam-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .portal-shell {
    padding: 14px;
    gap: 14px;
  }

  .portal-header,
  .preload-banner,
  .hero-panel,
  .loading-panel,
  .question-palette,
  .question-card,
  .navigation-bar,
  .success-panel,
  .site-footer,
  .exam-sidebar {
    padding: 20px;
  }

  .portal-header,
  .preload-banner,
  .exam-topbar,
  .navigation-bar,
  .topbar-actions,
  .header-badges,
  .brand-row {
    flex-direction: column;
    align-items: stretch;
  }

  .registration-form,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .email-action-row,
  .otp-verification-group {
    grid-template-columns: 1fr;
  }

  .email-action-btn {
    width: 100%;
  }

  .floating-submit {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .timer-ring-wrap {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 359px) {
  .portal-shell {
    padding: 10px;
    gap: 10px;
  }

  .portal-header,
  .preload-banner,
  .hero-panel,
  .loading-panel,
  .question-palette,
  .question-card,
  .navigation-bar,
  .success-panel,
  .site-footer,
  .exam-sidebar,
  .exam-topbar {
    padding: 16px;
    border-radius: 22px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .portal-logo-brand,
  .portal-logo-section,
  .portal-logo-result,
  .portal-logo-footer {
    height: 48px;
  }

  .portal-logo-footer {
    width: auto;
  }
}

@media (max-width: 479px) {
  .toast-stack {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .portal-shell {
    padding: 12px;
    gap: 12px;
  }

  .portal-header,
  .preload-banner,
  .hero-panel,
  .loading-panel,
  .question-palette,
  .question-card,
  .navigation-bar,
  .success-panel,
  .site-footer,
  .exam-sidebar,
  .exam-topbar {
    padding: 18px;
  }

  .portal-header,
  .preload-banner,
  .hero-panel,
  .exam-topbar,
  .navigation-bar,
  .topbar-actions,
  .header-badges,
  .brand-row,
  .footer-brand {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel,
  .registration-form,
  .skeleton-grid,
  .exam-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-panel {
    padding: 18px;
  }

  .timer-ring-wrap {
    width: 128px;
    height: 128px;
  }

  .timer-core strong {
    font-size: 1.45rem;
  }

  .question-card h3 {
    font-size: clamp(1.1rem, 5.5vw, 1.35rem);
  }

  .palette-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .palette-btn {
    min-width: 52px;
    flex: 0 0 auto;
  }

  .option-card {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: start;
    padding: 14px;
  }

  .navigation-bar {
    position: sticky;
    bottom: 12px;
    z-index: 12;
    box-shadow: 0 18px 34px rgba(28, 46, 94, 0.16);
  }

  .navigation-bar .primary-btn,
  .navigation-bar .tertiary-btn,
  .topbar-actions .secondary-btn,
  .topbar-actions .ghost-btn,
  .registration-form .primary-btn,
  .registration-form .secondary-btn {
    width: 100%;
    min-height: 48px;
  }

  .success-panel {
    min-height: 320px;
    padding-bottom: 32px;
  }

  .floating-submit {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 52px;
  }
}

@media (min-width: 360px) and (max-width: 639px) {
  .portal-shell {
    padding: 14px;
    gap: 14px;
  }

  .portal-header,
  .preload-banner,
  .hero-panel,
  .loading-panel,
  .question-palette,
  .question-card,
  .navigation-bar,
  .success-panel,
  .site-footer,
  .exam-sidebar,
  .exam-topbar {
    padding: 20px;
  }

  .portal-header,
  .preload-banner,
  .hero-panel,
  .exam-topbar,
  .navigation-bar,
  .topbar-actions,
  .header-badges,
  .brand-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel,
  .registration-form,
  .skeleton-grid,
  .exam-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .exam-sidebar {
    position: static;
    order: 2;
  }

  .exam-main {
    order: 1;
  }

  .palette-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .palette-btn {
    flex: 0 0 auto;
    min-width: 56px;
  }

  .option-card {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .navigation-bar {
    position: sticky;
    bottom: 14px;
    z-index: 12;
  }

  .navigation-bar .primary-btn,
  .navigation-bar .tertiary-btn,
  .topbar-actions .secondary-btn,
  .topbar-actions .ghost-btn {
    width: 100%;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .navigation-bar {
    flex-direction: row;
    align-items: center;
  }

  .navigation-bar .primary-btn,
  .navigation-bar .tertiary-btn {
    width: auto;
    flex: 1 1 0;
  }

  .timer-ring-wrap {
    width: 144px;
    height: 144px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .registration-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .full-width {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .portal-shell {
    padding: 18px;
  }

  .hero-panel,
  .exam-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .exam-sidebar {
    position: static;
  }

  .registration-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .palette-container {
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  }

  .navigation-bar {
    position: sticky;
    bottom: 18px;
    z-index: 10;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .portal-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  .exam-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (min-width: 1280px) {
  .portal-shell {
    max-width: 1520px;
    margin: 0 auto;
  }

  .hero-copy h2 {
    font-size: clamp(2.3rem, 3vw, 3rem);
  }
}
