:root {
      --primary: #2563eb;
      --primary-dark: #1e3a8a;
      --accent: #fde047;
      --ink: #0b1220;
      --muted: #5b667a;
      --bg: #eef2f9;
      --surface: #ffffff;
      --line: rgba(15, 23, 42, 0.08);
      --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
      --shadow-soft: 0 16px 35px rgba(15, 23, 42, 0.08);
      --theme-primary: var(--primary);
      --theme-primary-dark: var(--primary-dark);
      --theme-red: #d64545;
      --theme-green: #2f9e44;
      --theme-ink: var(--ink);
      --theme-muted: var(--muted);
      --theme-bg: var(--bg);
      --theme-surface: var(--surface);
      --theme-gold: var(--accent);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
      color: var(--ink);
      line-height: 1.55;
      background: radial-gradient(circle at 12% 16%, rgba(37, 99, 235, 0.12), transparent 46%),
                  radial-gradient(circle at 84% 16%, rgba(250, 204, 21, 0.16), transparent 41%),
                  radial-gradient(circle at 82% 86%, rgba(30, 58, 138, 0.1), transparent 45%),
                  var(--bg);
      min-height: 100vh;
      overflow-x: hidden;
    }

    a { color: inherit; }

    /* Utility helpers (replaces Tailwind CDN usage) */
    .hidden { display: none !important; }
    .flex { display: flex; }
    .inline-flex { display: inline-flex; }
    .items-center { align-items: center; }
    .justify-between { justify-content: space-between; }
    .gap-2 { gap: 8px; }
    .w-full { width: 100%; }
    .w-4 { width: 1rem; }
    .w-5 { width: 1.25rem; }
    .w-8 { width: 2rem; }
    .h-4 { height: 1rem; }
    .h-5 { height: 1.25rem; }
    .h-8 { height: 2rem; }
    .mt-2 { margin-top: 0.5rem; }
    .mt-3 { margin-top: 0.75rem; }
    .mt-4 { margin-top: 1rem; }
    .mt-5 { margin-top: 1.25rem; }
    .mt-6 { margin-top: 1.5rem; }
    .p-3 { padding: 0.75rem; }
    .rounded-xl { border-radius: 0.75rem; }
    .text-sm { font-size: 0.875rem; }
    .text-red-700 { color: #b91c1c; }
    .text-green-700 { color: #15803d; }
    .bg-red-50 { background-color: #fef2f2; }
    .bg-green-50 { background-color: #f0fdf4; }
    .border { border-width: 1px; border-style: solid; }
    .border-red-200 { border-color: #fecaca; }
    .border-green-200 { border-color: #bbf7d0; }
    .text-blue { color: #3b82f6; }
    .text-danger { color: #ef4444; }
    .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
    .space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
    .space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

    .decor-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }
    .blob {
      position: absolute;
      border-radius: 999px;
      filter: blur(3px);
      opacity: 0.7;
      animation: float 12s ease-in-out infinite;
    }
    .blob-1 { width: 280px; height: 280px; background: rgba(27, 79, 214, 0.18); top: 6%; left: 4%; }
    .blob-2 { width: 220px; height: 220px; background: rgba(214, 69, 69, 0.18); top: 12%; right: 10%; animation-delay: -3s; }
    .blob-3 { width: 200px; height: 200px; background: rgba(47, 158, 68, 0.16); bottom: 10%; right: 18%; animation-delay: -6s; }
    .pattern {
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(16, 24, 40, 0.05) 1px, transparent 1px),
                        linear-gradient(90deg, rgba(16, 24, 40, 0.05) 1px, transparent 1px);
      background-size: 56px 56px;
      opacity: 0.25;
    }

    .page {
      position: relative;
      min-height: 100vh;
    }

    .app-boot-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at top, rgba(226, 232, 255, 0.95), rgba(240, 249, 255, 0.96));
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .app-boot-overlay::before,
    .app-boot-overlay::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .app-boot-overlay::before {
      background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.25), transparent 45%),
                  radial-gradient(circle at 80% 15%, rgba(14, 165, 233, 0.25), transparent 45%),
                  radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.18), transparent 55%);
      opacity: 0.8;
      animation: appBootGlow 6s ease-in-out infinite;
    }
    .app-boot-overlay::after {
      background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
      mix-blend-mode: screen;
      opacity: 0.6;
    }
    @keyframes appBootGlow {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.04); }
    }
    .app-boot-scene {
      position: relative;
      display: grid;
      place-items: center;
      gap: 18px;
      padding: 18px;
      z-index: 1;
    }
    .app-boot-card {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 18px;
      padding: 20px 24px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
      color: #0f172a;
      font-weight: 600;
      font-size: 0.96rem;
      width: min(92vw, 440px);
      position: relative;
      overflow: hidden;
    }
    .app-boot-card::after {
      content: "";
      position: absolute;
      inset: auto -30% 0 -30%;
      height: 6px;
      background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.1));
      animation: appBootShine 2.8s ease-in-out infinite;
    }
    @keyframes appBootShine {
      0%, 100% { transform: translateX(-20%); opacity: 0.6; }
      50% { transform: translateX(20%); opacity: 1; }
    }
    .app-boot-hero {
      width: 120px;
      height: 120px;
      border-radius: 20px;
      display: grid;
      place-items: center;
      background: linear-gradient(140deg, #e0f2fe, #eef2ff);
      position: relative;
    }
    .app-boot-hero::after {
      content: "";
      position: absolute;
      inset: 10px;
      border-radius: 18px;
      box-shadow: 0 0 0 rgba(56, 189, 248, 0.4);
      opacity: 0.6;
      animation: appBootPulse 2.8s ease-in-out infinite;
    }
    .app-boot-orbit {
      position: absolute;
      inset: -10px;
      border-radius: 50%;
      border: 1px dashed rgba(59, 130, 246, 0.4);
      animation: appBootOrbit 6s linear infinite;
    }
    .app-boot-orbit-dot {
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #38bdf8;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
      top: -5px;
      left: 50%;
      transform: translateX(-50%);
    }
    .app-boot-orbit-dot:nth-child(2) {
      background: #a855f7;
      top: auto;
      bottom: -5px;
      left: 18%;
    }
    .app-boot-orbit-dot:nth-child(3) {
      background: #22c55e;
      top: 50%;
      left: auto;
      right: -5px;
      transform: translateY(-50%);
    }
    @keyframes appBootOrbit {
      to { transform: rotate(360deg); }
    }
    .app-boot-logo {
      width: 84px;
      height: 84px;
      border-radius: 18px;
      background: transparent;
      display: grid;
      place-items: center;
      box-shadow: none;
      animation: appBootFloat 2.6s ease-in-out infinite;
    }
    .app-boot-logo img {
      width: 66px;
      height: 66px;
      display: block;
    }
    @keyframes appBootFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }
    @keyframes appBootPulse {
      0%, 100% { box-shadow: 0 0 0 rgba(56, 189, 248, 0.35); }
      50% { box-shadow: 0 0 24px rgba(56, 189, 248, 0.55); }
    }
    .app-boot-copy {
      display: grid;
      gap: 6px;
    }
    .app-boot-title {
      font-family: "Fraunces", serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: #1e1b4b;
    }
    .app-boot-text {
      color: #1f2937;
      font-weight: 600;
    }
    .app-boot-progress {
      height: 8px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.25);
      overflow: hidden;
      position: relative;
      margin-top: 4px;
    }
    .app-boot-progress span {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, #38bdf8, #6366f1, #22c55e);
      animation: appBootLoad 1.6s ease-in-out infinite;
      transform-origin: left;
    }
    @keyframes appBootLoad {
      0% { transform: scaleX(0.2); opacity: 0.7; }
      50% { transform: scaleX(0.9); opacity: 1; }
      100% { transform: scaleX(0.4); opacity: 0.8; }
    }
    .app-boot-tip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.82rem;
      font-weight: 600;
      color: #1e293b;
      background: rgba(59, 130, 246, 0.08);
      padding: 6px 10px;
      border-radius: 999px;
      width: fit-content;
    }
    .app-boot-bubbles span {
      position: absolute;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(59, 130, 246, 0.25);
      animation: appBootBubble 5s ease-in-out infinite;
    }
    .app-boot-bubbles span:nth-child(1) { top: -6px; left: 18%; }
    .app-boot-bubbles span:nth-child(2) { top: 12px; right: 12%; animation-delay: -1.5s; }
    .app-boot-bubbles span:nth-child(3) { bottom: -4px; left: 12%; animation-delay: -2.5s; background: rgba(14, 165, 233, 0.25); }
    .app-boot-bubbles span:nth-child(4) { bottom: 18px; right: 20%; animation-delay: -3s; background: rgba(168, 85, 247, 0.25); }
    @keyframes appBootBubble {
      0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
      50% { transform: translateY(-12px) scale(1.1); opacity: 1; }
    }
    .app-boot-sparkles span {
      position: absolute;
      width: 10px;
      height: 10px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1));
      border-radius: 2px;
      transform: rotate(45deg);
      opacity: 0;
      animation: appBootSpark 3.6s ease-in-out infinite;
    }
    .app-boot-sparkles span:nth-child(1) { top: -8px; left: 42%; animation-delay: -0.8s; }
    .app-boot-sparkles span:nth-child(2) { top: 26px; right: 8%; animation-delay: -1.6s; }
    .app-boot-sparkles span:nth-child(3) { bottom: -6px; left: 28%; animation-delay: -2.2s; }
    .app-boot-sparkles span:nth-child(4) { bottom: 16px; right: 30%; animation-delay: -2.8s; }
    .app-boot-sparkles span:nth-child(5) { top: 8px; left: 10%; animation-delay: -3.2s; }
    @keyframes appBootSpark {
      0%, 100% { transform: scale(0.3) rotate(45deg); opacity: 0; }
      40% { opacity: 0.85; }
      60% { transform: scale(1) rotate(45deg); opacity: 1; }
    }
    @media (max-width: 600px) {
      .app-boot-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 16px;
        gap: 14px;
        width: min(88vw, 360px);
      }
      .app-boot-hero {
        width: 110px;
        height: 110px;
        margin: 0 auto;
      }
      .app-boot-logo {
        width: 76px;
        height: 76px;
      }
      .app-boot-logo img {
        width: 60px;
        height: 60px;
      }
      .app-boot-copy {
        justify-items: center;
      }
      .app-boot-tip {
        justify-content: center;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .app-boot-overlay::before,
      .app-boot-card::after,
      .app-boot-orbit,
      .app-boot-logo,
      .app-boot-progress span,
      .app-boot-bubbles span,
      .app-boot-sparkles span,
      .app-boot-hero::after {
        animation: none !important;
      }
    }
    html.is-booting body {
      overflow: hidden;
    }
    html.is-booting .app-boot-overlay {
      opacity: 1;
      visibility: visible;
      pointer-events: all;
    }

    .container {
      max-width: 1540px;
      margin: 0 auto;
    }
    @media (max-width: 1700px) {
      .container {
        padding: 0 32px !important;
      }
    }
    @media (max-width: 1200px) {
      .container {
        padding: 0 24px !important;
      }
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      padding: 8px 0;
      background: rgba(255, 255, 255, 0.86);
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .brand-logo {
      width: 60px;
      height: 60px;
      border-radius: 10px;
      background: var(--surface);
      border: 1px solid rgba(15, 23, 42, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-soft);
      overflow: hidden;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 3px 9px;
      border-radius: 999px;
      font-size: 9px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      background: rgba(27, 79, 214, 0.12);
      color: var(--primary);
      border: 1px solid rgba(27, 79, 214, 0.2);
      font-weight: 600;
    }
    .chip.chip-invert {
      background: rgba(255, 255, 255, 0.16);
      color: #ffffff;
      border-color: rgba(255, 255, 255, 0.2);
    }
    .brand-title {
      font-family: 'Fraunces', 'DM Serif Display', serif;
      font-size: 1.3rem;
      margin: 0;
      line-height: 1.15;
    }
    .brand-subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 0.78rem;
    }
    .header-meta {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .top-nav-tabs {
      display: none;
      align-items: center;
      gap: 8px;
    }
    .top-nav-btn {
      border: 1px solid rgba(255, 255, 255, 0.15);
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
      border-radius: 10px;
      padding: 8px 14px;
      font-size: 0.78rem;
      font-weight: 800;
      cursor: pointer;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all .2s ease;
    }
    .top-nav-icon {
      font-size: 0.95rem;
      line-height: 1;
    }
    .top-nav-label {
      line-height: 1;
    }
    .top-nav-btn:hover {
      background: rgba(255, 255, 255, 0.2);
    }
    .top-nav-btn.is-active {
      background: #ffffff;
      color: #1e3a8a;
      border-color: #ffffff;
    }
    .header-userbox {
      display: none;
      text-align: right;
      color: #ffffff;
      min-width: 130px;
      cursor: pointer;
      padding: 6px 10px;
      border-radius: 12px;
      transition: background 0.2s ease;
    }
    .header-userbox:hover {
      background: rgba(255, 255, 255, 0.12);
    }
    .header-userbox .name {
      font-size: 0.82rem;
      font-weight: 800;
      line-height: 1.2;
    }
    .header-userbox .nisn {
      margin-top: 2px;
      font-size: 0.66rem;
      font-weight: 700;
      color: #bfdbfe;
      line-height: 1.2;
    }

    .main-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
      gap: clamp(20px, 2.6vw, 38px);
      padding: clamp(18px, 2.2vw, 30px) 0 clamp(34px, 5vw, 74px);
      align-items: start;
    }
    .exam-focus .main-grid {
      grid-template-columns: 1fr;
    }
    .exam-focus .sidebar {
      display: none;
    }
    .exam-focus .panel {
      max-width: 1180px;
      margin: 0 auto;
    }
    .exam-focus .site-header,
    .exam-focus .brand,
    .exam-focus .chip,
    .exam-focus .brand-subtitle,
    .exam-focus .decor-layer {
      display: none;
    }
    .exam-focus body,
    body.exam-focus {
      background: #f7f9ff;
    }
    body.exam-focus .panel {
      max-width: 1180px;
    }
    body.exam-focus .question-card {
      box-shadow: none;
    }
    .panel {
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      display: grid;
      gap: 24px;
    }
    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 24px;
      padding: clamp(14px, 1.6vw, 18px) clamp(18px, 2vw, 24px);
      box-shadow: 0 20px 44px rgba(30, 58, 138, 0.24);
      position: relative;
      overflow: hidden;
    }
    .panel-head::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 4px;
      background: linear-gradient(90deg, #fde047 0%, #facc15 52%, #fef9c3 100%);
    }
    .panel-head-copy {
      display: grid;
      gap: 8px;
      min-width: 0;
    }
    .panel-head-meta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .eyebrow {
      font-size: 11px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.78);
      font-weight: 600;
    }
    .panel-head-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      color: #ffffff;
      font-size: 0.8rem;
      font-weight: 800;
      line-height: 1;
    }
    .panel-title {
      font-family: 'Fraunces', serif;
      font-size: clamp(1.45rem, 2vw, 1.85rem);
      margin: 0;
      line-height: 1.12;
    }
    .panel-subtitle {
      margin: 0;
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.95rem;
      max-width: 56ch;
    }
    .timer {
      position: fixed;
      right: 24px;
      bottom: 24px;
      z-index: 80;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border-radius: 18px;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(27, 79, 214, 0.14);
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
      color: var(--primary-dark);
      font-weight: 800;
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }
    .timer.timer-danger {
      border-color: rgba(239, 68, 68, 0.4);
      background: rgba(254, 242, 242, 0.96);
      color: #b91c1c;
      box-shadow: 0 16px 34px rgba(239, 68, 68, 0.2);
      animation: timerPulse 1s ease-in-out infinite;
    }
    .timer.timer-expired {
      border-color: rgba(148, 163, 184, 0.45);
      background: rgba(241, 245, 249, 0.95);
      color: #475569;
      box-shadow: 0 12px 26px rgba(100, 116, 139, 0.18);
      animation: none;
    }
    @keyframes timerPulse {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-1px); }
    }
    .timer::before {
      content: '⏱';
      font-family: inherit;
      font-size: 18px;
      line-height: 1;
      color: #0f766e;
    }

    .login-grid {
      margin-top: 0;
      display: grid;
      grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
      gap: 24px;
      align-items: start;
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 26px;
      padding: clamp(18px, 2vw, 28px);
      box-shadow: var(--shadow-soft);
    }
    .card.soft {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.86));
    }
    .card-auth {
      padding: clamp(22px, 2.2vw, 32px);
    }
    .card-checklist {
      padding: clamp(20px, 2vw, 30px);
      display: grid;
      gap: 12px;
      align-content: start;
      color: #ffffff;
      background: linear-gradient(145deg, rgba(30, 58, 138, 0.94), rgba(37, 99, 235, 0.84)),
        url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
      border-color: rgba(255, 255, 255, 0.16);
      box-shadow: 0 26px 48px rgba(30, 58, 138, 0.24);
    }
    .card-checklist .tag { color: rgba(255, 255, 255, 0.8); }
    .card-checklist .card-title { color: #ffffff; }
    .checklist-subtitle {
      margin: 4px 0 0;
      color: rgba(255, 255, 255, 0.84);
      font-size: 0.88rem;
      line-height: 1.5;
      font-weight: 600;
    }
    .checklist-warning {
      margin-top: 6px;
      border-radius: 12px;
      border: 1px solid #facc15;
      background: rgba(254, 240, 138, 0.96);
      color: #713f12;
      padding: 11px 12px;
      font-size: 0.83rem;
      font-weight: 700;
      line-height: 1.45;
    }
    .saving-overlay { display: none !important; }
    .toast-stack {
      position: fixed;
      top: 16px;
      right: 16px;
      z-index: 12000;
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: min(360px, calc(100vw - 24px));
      pointer-events: none;
    }
    .toast-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: start;
      gap: 12px;
      border-radius: 16px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-left: 6px solid #1d4ed8;
      background: #ffffff;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
      padding: 12px 14px;
      opacity: 0;
      transform: translateX(64px) scale(0.98);
      transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
      pointer-events: auto;
      position: relative;
      overflow: hidden;
    }
    .toast-item.show {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
    .toast-item.is-leaving {
      opacity: 0;
      transform: translateX(64px) scale(0.98);
    }
    .toast-item::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 3px;
      background: linear-gradient(90deg, rgba(29, 78, 216, 0.2), rgba(29, 78, 216, 0.65), rgba(29, 78, 216, 0.2));
      opacity: 0.6;
      animation: toastBar 3s linear infinite;
    }
    .toast-icon {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      margin-top: 2px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #1d4ed8;
      background: rgba(29, 78, 216, 0.16);
      position: relative;
    }
    .toast-icon::before {
      content: '';
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: currentColor;
      animation: toastPulse 1.2s ease-in-out infinite;
    }
    .toast-icon::after {
      content: '';
      position: absolute;
      inset: 2px;
      border-radius: 999px;
      border: 2px solid currentColor;
      opacity: 0.35;
      animation: toastRing 1.6s ease-in-out infinite;
    }
    @keyframes toastPulse {
      0%, 100% { transform: scale(0.85); opacity: 0.7; }
      50% { transform: scale(1); opacity: 1; }
    }
    @keyframes toastRing {
      0% { transform: scale(0.9); opacity: 0.2; }
      70% { transform: scale(1.15); opacity: 0.4; }
      100% { transform: scale(1.25); opacity: 0; }
    }
    .toast-body {
      color: var(--ink);
      font-size: 0.9rem;
      line-height: 1.5;
      font-weight: 700;
    }
    .toast-close {
      border: none;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 0.9rem;
      line-height: 1;
      padding: 1px 2px;
    }
    .toast-close:hover { color: var(--ink); }
    .toast-item.toast-success { border-left-color: #16a34a; }
    .toast-item.toast-success .toast-icon { color: #16a34a; background: rgba(22, 163, 74, 0.14); }
    .toast-item.toast-success::after { background: linear-gradient(90deg, rgba(22, 163, 74, 0.2), rgba(22, 163, 74, 0.7), rgba(22, 163, 74, 0.2)); }
    .toast-item.toast-warning { border-left-color: #ea580c; }
    .toast-item.toast-warning .toast-icon { color: #ea580c; background: rgba(234, 88, 12, 0.14); }
    .toast-item.toast-warning::after { background: linear-gradient(90deg, rgba(234, 88, 12, 0.2), rgba(234, 88, 12, 0.7), rgba(234, 88, 12, 0.2)); }
    .toast-item.toast-error { border-left-color: #dc2626; }
    .toast-item.toast-error .toast-icon { color: #dc2626; background: rgba(220, 38, 38, 0.14); }
    .toast-item.toast-error::after { background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.7), rgba(220, 38, 38, 0.2)); }
    .toast-item.toast-info { border-left-color: #1d4ed8; }
    .toast-item.toast-info .toast-icon { color: #1d4ed8; background: rgba(29, 78, 216, 0.14); }
    .toast-item.toast-info::after { background: linear-gradient(90deg, rgba(29, 78, 216, 0.2), rgba(29, 78, 216, 0.7), rgba(29, 78, 216, 0.2)); }
    @keyframes toastBar {
      0% { transform: translateX(-60%); }
      100% { transform: translateX(60%); }
    }
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.48);
      -webkit-backdrop-filter: blur(3px);
      backdrop-filter: blur(3px);
      display: flex;
      align-items: stretch;
      justify-content: flex-end;
      padding: 14px;
      z-index: 9500;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.26s ease, visibility 0s linear 0.26s;
    }
    .modal-backdrop.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.26s ease, visibility 0s linear;
    }
    .modal-backdrop.slider-bottom {
      align-items: flex-end;
      justify-content: center;
      padding: 0 14px 14px;
    }
    .modal-backdrop.slider-bottom .modal-card {
      width: min(96vw, 760px);
      border-radius: 22px;
      transform: translateY(100%);
    }
    #startGateModal.modal-backdrop.slider-bottom {
      align-items: center;
      justify-content: center;
      padding: 14px;
    }
    #startGateModal.modal-backdrop.slider-bottom .modal-card {
      width: min(96vw, 760px);
      max-height: calc(100vh - 28px);
      transform: translateY(20px);
    }
    .modal-backdrop.slider-right {
      align-items: stretch;
      justify-content: flex-end;
      padding: 14px;
    }
    .modal-backdrop.slider-right .modal-card {
      max-width: 460px;
      width: min(94vw, 460px);
      transform: translateX(100%);
    }
    .modal-backdrop.slider-left {
      align-items: stretch;
      justify-content: flex-start;
      padding: 0;
    }
    .modal-backdrop.slider-left .modal-card {
      width: min(92vw, 320px);
      max-width: 360px;
      height: 100vh;
      max-height: 100vh;
      border-radius: 0;
      border-top: 0;
      border-left: 0;
      border-bottom: 0;
      border-right: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
      overflow: auto;
      transform: translateX(-100%);
    }
    .modal-backdrop.centered {
      align-items: center;
      justify-content: center;
      padding: 14px;
    }
    .modal-backdrop.centered .modal-card {
      width: min(94vw, 680px);
      max-height: calc(100vh - 28px);
      border-radius: 18px;
      transform: translateY(16px) scale(0.98);
    }
    .modal-backdrop.centered.is-open .modal-card {
      transform: translateY(0) scale(1);
    }
    #logoutModal.modal-backdrop.slider-right {
      padding: 0;
      align-items: stretch;
      justify-content: flex-end;
    }
    #logoutModal.modal-backdrop.slider-right .modal-card {
      width: min(92vw, 320px);
      max-width: 320px;
      height: 100vh;
      max-height: 100vh;
      border-radius: 0;
      border-top: 0;
      border-right: 0;
      border-bottom: 0;
      border-left: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
      padding: 24px 18px;
      overflow: auto;
    }
    #logoutModal.modal-backdrop.centered {
      align-items: center;
      justify-content: center;
      padding: 14px;
    }
    #logoutModal.modal-backdrop.centered .modal-card {
      width: min(94vw, 460px);
      max-width: 460px;
      height: auto;
      max-height: calc(100vh - 28px);
      border-radius: 18px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
      padding: 18px;
      overflow: auto;
      transform: translateY(16px) scale(0.98);
    }
    #logoutModal.modal-backdrop.centered.is-open .modal-card {
      transform: translateY(0) scale(1);
    }
    .modal-card {
      width: min(94vw, 460px);
      max-height: calc(100vh - 28px);
      overflow: auto;
      background: #fff;
      border-radius: 16px;
      padding: 18px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
      border: 1px solid rgba(15, 23, 42, 0.08);
      transform: translateY(14px);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .modal-swipe-guide {
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      margin: -2px 0 12px;
      color: #1e3a8a;
      font-weight: 700;
      font-size: 0.86rem;
    }
    .modal-swipe-handle {
      width: 44px;
      height: 4px;
      border-radius: 999px;
      background: rgba(30, 58, 138, 0.25);
      position: relative;
      overflow: hidden;
    }
    .modal-swipe-handle::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.6), transparent);
      animation: swipeHandleShine 2.2s ease-in-out infinite;
    }
    .modal-swipe-hint {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(30, 58, 138, 0.08);
      padding: 6px 10px;
      border-radius: 999px;
    }
    .modal-swipe-hint i {
      animation: swipeArrow 1.4s ease-in-out infinite;
    }
    @keyframes swipeArrow {
      0%, 100% { transform: translateY(-2px); opacity: 0.75; }
      50% { transform: translateY(4px); opacity: 1; }
    }
    @keyframes swipeHandleShine {
      0%, 100% { transform: translateX(-50%); opacity: 0.4; }
      50% { transform: translateX(50%); opacity: 0.9; }
    }
    .modal-backdrop.is-open .modal-card {
      transform: translate(0, 0);
    }
    .modal-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .modal-body {
      color: var(--muted);
      font-size: 0.95rem;
      margin-bottom: 14px;
    }
    .modal-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }
    .lane-modal-card {
      width: min(92vw, 560px);
      padding: 22px;
    }
    .report-modal-card {
      width: min(92vw, 680px);
      padding: 22px;
      border-radius: 22px;
      background:
        radial-gradient(120% 120% at 0% 0%, rgba(251, 146, 60, 0.1) 0%, rgba(251, 146, 60, 0) 46%),
        linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
    }
    .start-gate-modal-card {
      width: min(92vw, 740px);
      padding: 22px;
      border-radius: 22px;
      background:
        radial-gradient(120% 120% at 0% 0%, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 46%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }
    .start-gate-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 700;
      color: #1e3a8a;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 999px;
      padding: 4px 10px;
      margin-bottom: 10px;
    }
    .start-gate-summary {
      margin-top: 12px;
      border-radius: 12px;
      border: 1px solid #bfdbfe;
      background: #eff6ff;
      color: #1d4ed8;
      padding: 10px 12px;
      font-size: 0.9rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      line-height: 1.4;
    }
    .start-gate-summary.warn {
      border-color: #fdba74;
      background: #fff7ed;
      color: #9a3412;
    }
    .start-gate-summary.fail {
      border-color: #fca5a5;
      background: #fef2f2;
      color: #991b1b;
    }
    .start-gate-resume-info {
      margin-top: 10px;
      border: 1px solid #fdba74;
      background: #fff7ed;
      color: #9a3412;
      border-radius: 14px;
      padding: 12px 14px;
      font-size: 0.98rem;
      font-weight: 800;
      line-height: 1.5;
      display: flex;
      gap: 10px;
      align-items: flex-start;
      box-shadow: 0 10px 22px rgba(124, 45, 18, 0.08);
    }
    .start-gate-resume-info i {
      font-size: 18px;
      line-height: 1;
      margin-top: 2px;
    }
    .start-gate-grid {
      margin-top: 12px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
      margin-bottom: 24px;
    }
    .start-gate-card {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      padding: 11px;
      display: grid;
      gap: 8px;
      align-content: start;
      min-height: 118px;
    }
    .start-gate-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }
    .start-gate-title {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 700;
      color: #64748b;
    }
    .start-gate-title-wrap {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }
    .start-gate-icon {
      width: 16px;
      height: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      line-height: 1;
      color: #2563eb;
      flex-shrink: 0;
    }
    .start-gate-summary-icon {
      width: 17px;
      height: 17px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 17px;
      line-height: 1;
      flex-shrink: 0;
    }
    .start-gate-badge {
      font-size: 0.68rem;
      font-weight: 700;
      border-radius: 999px;
      padding: 4px 8px;
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .start-gate-badge.icon-only {
      width: 28px;
      height: 28px;
      min-width: 28px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .start-gate-badge-icon {
      font-size: 15px;
      line-height: 1;
    }
    .start-gate-badge-spin {
      animation: startGateBadgeSpin 0.9s linear infinite;
    }
    @keyframes startGateBadgeSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    .start-gate-badge.pending {
      color: #1e3a8a;
      background: #eff6ff;
      border-color: #bfdbfe;
    }
    .start-gate-badge.pass {
      color: #166534;
      background: #ecfdf3;
      border-color: #86efac;
    }
    .start-gate-badge.warn {
      color: #9a3412;
      background: #fff7ed;
      border-color: #fdba74;
    }
    .start-gate-badge.fail {
      color: #991b1b;
      background: #fef2f2;
      border-color: #fca5a5;
    }
    .start-gate-text {
      font-size: 0.86rem;
      color: #334155;
      line-height: 1.45;
    }
    .start-gate-rules {
      margin-top: 10px;
      border: 1px solid #dbeafe;
      border-radius: 14px;
      background: #f8fbff;
      padding: 12px;
      display: grid;
      gap: 10px;
    }
    .start-gate-rule-item {
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 8px;
      font-size: 0.89rem;
      line-height: 1.5;
      color: #0f172a;
      font-weight: 600;
      align-items: start;
    }
    .start-gate-rule-icon {
      font-size: 17px;
      line-height: 1;
      margin-top: 2px;
    }
    .start-gate-rule-icon.text-blue { color: #2563eb; }
    .start-gate-rule-icon.text-danger { color: #dc2626; }
    .start-gate-agreements {
      margin-top: 10px;
      display: grid;
      gap: 8px;
    }
    .start-gate-agree-label {
      display: flex;
      align-items: center;
      gap: 10px;
      border-radius: 12px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      padding: 10px 11px;
      font-size: 0.87rem;
      color: #0f172a;
      font-weight: 700;
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }
    .start-gate-agree-label:hover {
      border-color: #93c5fd;
      background: #f8fbff;
    }
    .start-gate-agree-label input[type="checkbox"] {
      accent-color: #2563eb;
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
    .start-gate-modal-card .modal-actions {
      margin-top: 14px;
    }
    .report-modal-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    .report-modal-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 700;
      color: #9a3412;
      background: #fff7ed;
      border: 1px solid #fed7aa;
      border-radius: 999px;
      padding: 4px 10px;
    }
    .report-modal-alert {
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 10px;
      align-items: start;
      padding: 12px;
      border-radius: 14px;
      border: 1px solid #fed7aa;
      background: #fffaf3;
      margin-bottom: 12px;
    }
    .report-modal-alert-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #c2410c;
      background: #ffedd5;
    }
    .report-modal-alert-icon i {
      font-size: 18px;
      line-height: 1;
    }
    .report-modal-alert-text {
      color: #9a3412;
      font-size: 0.9rem;
      line-height: 1.45;
    }
    .issue-modal-card {
      width: min(92vw, 700px);
      padding: 24px;
      border-radius: 24px;
      background:
        radial-gradient(120% 120% at 0% 0%, rgba(251, 146, 60, 0.12) 0%, rgba(251, 146, 60, 0) 46%),
        linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
      border: 1px solid rgba(251, 146, 60, 0.28);
      box-shadow: 0 22px 52px rgba(15, 23, 42, 0.2);
    }
    .issue-modal-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 700;
      color: #9a3412;
      background: #fff7ed;
      border: 1px solid #fed7aa;
      border-radius: 999px;
      padding: 4px 10px;
      margin-bottom: 10px;
    }
    .issue-modal-alert {
      margin-top: 10px;
      margin-bottom: 14px;
      border-radius: 14px;
      border: 1px solid #fed7aa;
      background: #fff8ef;
      padding: 12px;
      color: #9a3412;
      font-size: 0.9rem;
      line-height: 1.45;
      font-weight: 600;
    }
    .issue-modal-current {
      margin-top: 10px;
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background: #f8fafc;
      color: #334155;
      padding: 10px 12px;
      font-size: 0.86rem;
      line-height: 1.4;
    }
    .lane-modal-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 700;
      color: #1e3a8a;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 999px;
      padding: 4px 10px;
      margin-bottom: 10px;
    }
    .lane-option-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 14px;
      margin-bottom: 14px;
    }
    .lane-option-btn {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      color: var(--ink);
      padding: 12px;
      text-align: left;
      cursor: pointer;
      transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .lane-option-head {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .lane-option-icon {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 9px;
      background: rgba(15, 23, 42, 0.08);
    }
    .lane-option-icon i {
      font-size: 16px;
      line-height: 1;
    }
    .lane-option-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(27, 79, 214, 0.38);
      box-shadow: 0 8px 20px rgba(27, 79, 214, 0.12);
    }
    .lane-option-btn .lane-option-label {
      display: block;
      font-size: 1rem;
      font-weight: 700;
    }
    .lane-option-btn .lane-option-sub {
      display: block;
      margin-top: 3px;
      font-size: 0.85rem;
      color: var(--muted);
    }
    .lane-option-btn.prestasi {
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      border-color: #93c5fd;
    }
    .lane-option-btn.prestasi .lane-option-icon {
      color: #1d4ed8;
      background: rgba(29, 78, 216, 0.15);
    }
    .lane-option-btn.mandiri {
      background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
      border-color: #86efac;
    }
    .lane-option-btn.mandiri .lane-option-icon {
      color: #15803d;
      background: rgba(22, 163, 74, 0.14);
    }
    @media (max-width: 768px) {
      .main-grid { grid-template-columns: 1fr; }
      .panel { gap: 16px; }
      .panel-head { border-radius: 20px; padding: 14px 16px; align-items: flex-start; }
      .panel-head-copy { gap: 6px; }
      .panel-head-meta { gap: 8px; }
      .exam-grid { grid-template-columns: 1fr; }
      .exam-head { flex-direction: column; align-items: flex-start; gap: 10px; }
      .exam-head-row { width: 100%; }
      .lane-actions .btn-primary,
      .lane-actions .btn-alert,
      .exam-actions .btn-primary,
      #submitBtn,
      #reportLaneBtnTop { width: 100%; justify-content: center; }
      .question-card { padding: 16px; }
      .profile-grid { grid-template-columns: 1fr; }
      .timer {
        right: 14px;
        left: 14px;
        bottom: 14px;
        width: auto;
        justify-content: center;
        text-align: center;
      }
      .lane-option-grid { grid-template-columns: 1fr; }
      .start-gate-grid { grid-template-columns: 1fr; }
      .modal-backdrop {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
      }
      .modal-card {
        width: 100%;
        max-height: min(88vh, 720px);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
      }
      .modal-backdrop.slider-right .modal-card,
      .modal-backdrop.slider-bottom .modal-card {
        width: 100%;
        max-height: min(88vh, 720px);
        border-radius: 20px 20px 0 0;
      }
      .modal-backdrop.centered {
        align-items: center;
        justify-content: center;
        padding: 14px;
      }
      .modal-backdrop.centered .modal-card {
        width: min(94vw, 680px);
        max-height: calc(100vh - 28px);
        border-radius: 18px;
        transform: translateY(16px) scale(0.98);
      }
      #startGateModal.modal-backdrop.slider-bottom {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
      }
      #startGateModal.modal-backdrop.slider-bottom .modal-card {
        width: 100%;
        max-height: min(88vh, 720px);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
      }
      #startGateModal.modal-backdrop.slider-bottom.is-open .modal-card {
        transform: translateY(0);
      }
      #startGateModal.modal-backdrop.slider-bottom.is-open .modal-swipe-guide {
        display: flex;
      }
      .report-modal-alert {
        grid-template-columns: 1fr;
      }
      .report-modal-alert-icon {
        width: 32px;
        height: 32px;
      }
    }
    .card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .tag {
      font-size: 11px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 600;
    }
    .card-title {
      font-size: 1.2rem;
      font-weight: 700;
      margin: 4px 0 0;
    }
    .badge {
      height: 40px;
      width: 40px;
      border-radius: 14px;
      background: rgba(37, 99, 235, 0.12);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
    }
    .helper {
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.55;
      margin-top: 6px;
    }
    .card-auth .helper {
      max-width: 30ch;
      margin-top: 8px;
    }
    .label {
      font-size: 0.85rem;
      color: var(--muted);
      font-weight: 600;
    }
    .muted {
      color: var(--muted);
    }
    .icon-primary {
      color: rgba(37, 99, 235, 0.7);
    }

    .input {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 16px;
      min-height: 52px;
      padding: 13px 14px;
      background: #fff;
      font-size: 1rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .input:focus {
      outline: none;
      border-color: rgba(37, 99, 235, 0.5);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }
    .input-group {
      position: relative;
    }
    .input-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
    }
    .input-pad-left { padding-left: 44px; }
    .input-pad-right { padding-right: 52px; }

    .password-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
      border-radius: 999px;
      width: 36px;
      height: 36px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }
    .password-toggle i {
      font-size: 18px;
      line-height: 1;
    }
    .password-toggle:hover {
      color: var(--primary);
      border-color: rgba(37, 99, 235, 0.4);
    }
    .password-toggle:focus-visible {
      outline: none;
      border-color: rgba(37, 99, 235, 0.5);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }
    .password-toggle.is-active {
      color: var(--primary);
      border-color: rgba(37, 99, 235, 0.4);
      background: rgba(37, 99, 235, 0.06);
    }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 16px;
      min-height: 50px;
      padding: 12px 16px;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
      box-shadow: 0 12px 24px rgba(30, 58, 138, 0.24);
    }
    .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }
    .btn-primary.is-submit {
      background: linear-gradient(180deg, #22c55e, #16a34a);
      box-shadow: 0 12px 24px rgba(22, 163, 74, 0.24);
    }
    .btn-primary.is-submit:hover {
      background: linear-gradient(180deg, #1fb455, #15803d);
      transform: translateY(-1px);
    }
    .btn-primary:disabled {
      cursor: not-allowed;
      opacity: 0.55;
      transform: none;
      box-shadow: none;
      background: #93c5fd;
    }
    .btn-with-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .btn-with-icon .btn-icon {
      width: 16px;
      height: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      line-height: 1;
      flex-shrink: 0;
    }
    .btn-secondary {
      background: #fff;
      color: var(--ink);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 9px 16px;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.2s ease, color 0.2s ease;
    }
    .btn-secondary:hover {
      color: var(--primary);
      border-color: rgba(37, 99, 235, 0.35);
    }
    .btn-alert {
      background: #fef3c7;
      color: #92400e;
      border: 1px solid rgba(245, 158, 11, 0.42);
      border-radius: 14px;
      padding: 12px 14px;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease;
    }
    .btn-alert:hover {
      background: #fde68a;
      border-color: rgba(217, 119, 6, 0.56);
    }
    .btn-alert:disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }
    .btn-alert.is-attention {
      animation: reportPulse 1.4s ease-in-out infinite;
      box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
    }
    @keyframes reportPulse {
      0%, 100% { box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12); }
      50% { box-shadow: 0 0 0 7px rgba(234, 88, 12, 0.08); }
    }
    .btn-alert.is-loading {
      cursor: wait;
      opacity: 0.92;
    }
    .btn-spinner {
      width: 15px;
      height: 15px;
      border-radius: 999px;
      border: 2px solid currentColor;
      border-right-color: transparent;
      display: inline-block;
      animation: spin 0.85s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .link {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    .link-with-icon {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .link-with-icon .btn-icon {
      width: 14px;
      height: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      line-height: 1;
      flex-shrink: 0;
    }
    .link:hover { text-decoration: underline; }

    .callout {
      background: linear-gradient(140deg, var(--primary), var(--primary-dark));
      color: #fff;
      border-radius: 30px;
      padding: clamp(20px, 2.2vw, 30px);
      box-shadow: var(--shadow);
    }
    .sidebar-label {
      font-size: 11px;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.7);
      font-weight: 600;
    }
    .sidebar-title {
      font-family: 'Fraunces', serif;
      font-size: 1.65rem;
      line-height: 1.2;
      margin-top: 6px;
    }
    .sidebar-title-desktop { display: inline; }
    .sidebar-title-mobile { display: none; }
    .sidebar-sub {
      margin-top: 6px;
      color: rgba(255,255,255,0.82);
      font-size: 0.92rem;
    }

    .profile-card {
      display: grid;
      gap: 16px;
      margin-top: 22px;
      padding: 18px;
      border-radius: 24px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
    }
    .profile-welcome {
      display: none;
    }
    .profile-header {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 14px;
      align-items: center;
    }
    .profile-avatar {
      width: 72px;
      height: 96px;
      aspect-ratio: 3 / 4;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.16) 100%);
      display: block;
      font-weight: 700;
      color: #fff;
      font-size: 1rem;
      border: 2px solid rgba(255,255,255,0.34);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
      overflow: hidden;
      position: relative;
      flex: 0 0 auto;
    }
    .profile-avatar img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center top;
      background: #ffffff;
      display: block;
      z-index: 2;
    }
    .profile-avatar img.hidden {
      display: none;
    }
    .profile-avatar .initials {
      position: absolute;
      inset: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
      color: #0f172a;
      font-size: 1.2rem;
      letter-spacing: 0.04em;
      z-index: 1;
    }
    .profile-avatar .initials.hidden {
      display: none;
    }
    .profile-avatar .profile-avatar-retry,
    .profile-slider-avatar .profile-avatar-retry {
      position: absolute;
      right: 6px;
      bottom: 6px;
      width: 26px;
      height: 26px;
      border-radius: 10px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      background: rgba(255,255,255,0.95);
      color: #0f172a;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      cursor: pointer;
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
      z-index: 3;
    }
    .profile-avatar .profile-avatar-retry.hidden,
    .profile-slider-avatar .profile-avatar-retry.hidden {
      display: none;
    }
    .profile-copy {
      min-width: 0;
    }
    .profile-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.14);
      color: rgba(255,255,255,0.9);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }
    .profile-title {
      font-size: 1.2rem;
      font-weight: 700;
      line-height: 1.2;
      margin: 8px 0 4px;
    }
    .profile-sub {
      font-size: 0.92rem;
      color: rgba(255,255,255,0.82);
      line-height: 1.5;
    }
    .profile-note {
      margin-top: 8px;
      font-size: 0.8rem;
      color: rgba(255,255,255,0.72);
      line-height: 1.45;
      font-weight: 600;
    }
    .profile-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 12px;
    }
    .profile-item {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 18px;
      padding: 12px 14px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .profile-item .label {
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.72);
      font-weight: 700;
    }
    .profile-label-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .profile-label-icon {
      width: 14px;
      height: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      line-height: 1;
      color: rgba(255,255,255,0.82);
      flex-shrink: 0;
    }
    .profile-item .value {
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      margin-top: 6px;
      word-break: break-word;
    }
    .mobile-welcome {
      display: none;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.2);
      margin-top: 12px;
    }
    .mobile-welcome .title {
      font-weight: 700;
      font-size: 1rem;
    }
    .mobile-welcome .sub {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.8);
      margin-top: 4px;
    }

    .profile-slider-card {
      background: #fff;
      border-radius: 20px 20px 0 0;
      padding: 0;
      overflow: hidden;
    }
    .profile-slider-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 20px 18px;
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
      background: #fff;
      border-radius: 20px 20px 0 0;
    }
    .profile-slider-body {
      padding: 18px;
    }
    .profile-slider-title {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--ink);
    }
    .profile-slider-close {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: #fff;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: 0.2s ease;
    }
    .profile-slider-close:hover {
      background: #f1f5f9;
    }
    .profile-slider-hero {
      text-align: center;
      margin-bottom: 18px;
    }
    .profile-slider-avatar {
      width: 90px;
      height: 120px;
      aspect-ratio: 3 / 4;
      border-radius: 24px;
      background: var(--brand-primary);
      color: #fff;
      font-size: 2.2rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 12px auto;
      transform: rotate(-5deg);
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
      position: relative;
      overflow: hidden;
    }
    .profile-slider-avatar img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center top;
      background: #ffffff;
    }
    .profile-slider-avatar img.hidden {
      display: none;
    }
    .profile-slider-avatar span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
      color: #0f172a;
      border: 1px solid rgba(15, 23, 42, 0.08);
    }
    .profile-slider-avatar span.hidden {
      display: none;
    }
    .profile-slider-name {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--ink);
    }
    .profile-slider-status {
      display: inline-block;
      margin-top: 10px;
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 0.78rem;
      font-weight: 800;
      color: #166534;
      background: #dcfce7;
      border: 1px solid #bbf7d0;
    }
    .profile-slider-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .profile-slider-item {
      background: #f8fafc;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      padding: 16px 16px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
      text-align: left;
    }
    .profile-slider-item span {
      display: block;
      font-size: 0.7rem;
      color: var(--muted);
      margin-bottom: 6px;
      text-transform: uppercase;
      font-weight: 800;
      letter-spacing: 0.08em;
    }
    .profile-slider-item strong {
      display: block;
      font-size: 0.96rem;
      color: var(--ink);
      font-weight: 800;
    }
    @media (max-width: 640px) {
      .profile-card {
        padding: 14px;
        border-radius: 20px;
      }
      .profile-header {
        grid-template-columns: 1fr;
        align-items: start;
      }
      .profile-grid { grid-template-columns: 1fr; }
    }

    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 20px;
      margin-bottom: 20px;
    }

    .info-list {
      margin: 14px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 12px;
      color: #334155;
      font-size: 0.95rem;
      line-height: 1.55;
    }
    .card-checklist .info-list {
      margin-top: 8px;
      gap: 14px;
      font-size: 0.9rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.95);
    }
    .info-list li::before {
      content: '✓';
      color: #1e3a8a;
      background: #fef08a;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.62rem;
      font-weight: 800;
      margin-right: 8px;
    }

    .sidebar-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .mini-card {
      border-radius: 22px;
      padding: 20px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 12px;
    }
    .mini-head {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .mini-icon {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      background: rgba(27, 79, 214, 0.12);
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .mini-icon i {
      font-size: 20px;
      line-height: 1;
    }
    .mini-title {
      font-weight: 700;
      color: var(--ink);
      font-size: 0.98rem;
    }
    .mini-text {
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.5;
    }
    .flow-card {
      margin-top: 16px;
      padding: 20px;
      border-radius: 24px;
      background: linear-gradient(135deg, #f7f9ff 0%, #eef3ff 100%);
      border: 1px solid rgba(27, 79, 214, 0.12);
    }
    .flow-steps {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin-top: 10px;
      font-size: 0.85rem;
      color: var(--muted);
      text-align: center;
    }
    .flow-step {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 38px;
      border-radius: 10px;
      border: 1px solid #cbd5e1;
      background: #f8fafc;
      color: #334155;
      font-weight: 700;
    }
    .flow-step-num {
      width: 20px;
      height: 20px;
      border-radius: 999px;
      background: #2563eb;
      color: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.68rem;
      font-weight: 800;
      line-height: 1;
      flex-shrink: 0;
    }
    .flow-step-text {
      line-height: 1;
      white-space: nowrap;
    }
    .flow-mobile {
      display: none;
      margin-top: 8px;
      text-align: center;
      font-size: 0.85rem;
      color: var(--muted);
    }
    .flow-bar {
      margin-top: 10px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
    }
    .flow-seg {
      height: 8px;
      border-radius: 999px;
      background: rgba(27, 79, 214, 0.2);
    }
    .flow-seg.active {
      background: rgba(27, 79, 214, 0.85);
    }

    .exam-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-top: 22px;
    }
    .exam-head-meta {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
    }
    .exam-head-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }
    .exam-head-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 12px;
      border-radius: 999px;
      background: #eef4ff;
      color: #1b4fd6;
      font-size: 0.8rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      white-space: nowrap;
    }
    .exam-head-badge--count {
      background: #fff3ea;
      color: #b45309;
    }
    .exam-head-title {
      margin: 0;
      font-size: clamp(1.26rem, 2.35vw, 1.72rem);
      line-height: 1.16;
      font-weight: 800;
      color: var(--ink);
    }
    .exam-head-subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 0.93rem;
      line-height: 1.48;
      font-weight: 600;
    }
    .exam-blocked {
      margin-top: 16px;
      border-left: 5px solid #1b4fd6;
    }
    .blocked-meta {
      margin-top: 14px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .blocked-item {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 12px;
      background: rgba(27, 79, 214, 0.03);
    }
    .blocked-item .label {
      font-size: 0.74rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 600;
    }
    .blocked-item .value {
      margin-top: 4px;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--ink);
    }
    .blocked-hint {
      margin-top: 12px;
      border-radius: 10px;
      border: 1px solid rgba(27, 79, 214, 0.2);
      background: #eff6ff;
      color: #1e3a8a;
      padding: 9px 11px;
      font-size: 0.86rem;
      font-weight: 600;
    }

    .exam-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
      margin-top: 18px;
    }

    .question-card {
      display: flex;
      flex-direction: column;
      gap: 18px;
      border-radius: 32px;
      border: 1px solid rgba(27, 79, 214, 0.12);
      padding: clamp(22px, 2.4vw, 34px);
      background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
      box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
      position: relative;
      overflow: hidden;
    }
    .question-card::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 4px;
      background: linear-gradient(90deg, #1b4fd6 0%, #4f7df2 55%, #ff8e7b 100%);
      opacity: 0.95;
    }
    .question-meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }
    .question-meta-group {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }
    .question-eyebrow,
    .question-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .question-eyebrow {
      background: #eef4ff;
      color: #1b4fd6;
    }
    .question-meta {
      background: #fff3ea;
      color: #b45309;
    }
    .question-meta-timer .timer {
      position: static;
      right: auto;
      bottom: auto;
      margin: 0;
      border-radius: 999px;
      padding: 10px 14px;
      background: #fff7ed;
      border: 1px solid #fdba74;
      color: #b45309;
      box-shadow: none;
      font-size: 0.9rem;
      font-weight: 800;
    }
    .question-meta-timer .timer::before {
      color: #f97316;
    }
    .question-meta-timer .timer-label {
      display: none;
    }
    .btn-report-question {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid rgba(239, 68, 68, 0.22);
      color: #b91c1c;
      background: #fff1f2;
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
      transition: all .2s ease;
    }
    .btn-report-question:hover {
      background: #ffe4e6;
      border-color: rgba(239, 68, 68, 0.35);
      transform: translateY(-1px);
    }
    .btn-report-question:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    .question-title {
      margin: 0;
      font-size: clamp(1.35rem, 2.4vw, 1.85rem);
      line-height: 1.18;
      font-weight: 800;
      color: #13284a;
    }
    .question-text {
      display: block;
      font-weight: 700;
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--ink);
      width: 100%;
      max-width: 100%;
      min-width: 0;
      margin-bottom: 0;
      text-align: left;
    }
    .question-helper {
      color: var(--muted);
      font-size: 0.96rem;
      line-height: 1.6;
      font-weight: 700;
      margin: 0;
    }
    .question-stem {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      min-height: 150px;
      padding: 20px 22px;
      border-radius: 26px;
      border: 1px solid rgba(27, 79, 214, 0.12);
      background:
        radial-gradient(circle at top right, rgba(79, 125, 242, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
      box-sizing: border-box;
    }
    .question-stem .question-text,
    .question-stem .question-helper {
      margin-left: 0;
      margin-right: 0;
    }
    .save-helper {
      margin-top: 12px;
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background: #f8fafc;
      color: #475569;
      padding: 9px 11px;
      font-size: 0.82rem;
      line-height: 1.4;
      font-weight: 600;
    }

    .option-list { display: grid; gap: 12px; }
    .question-shell {
      min-height: clamp(360px, 44vh, 470px);
    }
    .option-row {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      border: 1px solid var(--line);
      padding: 14px 15px;
      border-radius: 24px;
      background: #fff;
      cursor: pointer;
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }
    .option-row:hover {
      transform: translateY(-2px);
      border-color: rgba(27, 79, 214, 0.28);
      box-shadow: 0 16px 28px rgba(27, 79, 214, 0.12);
    }
    .option-row input {
      position: absolute;
      width: 0;
      height: 0;
      opacity: 0;
      pointer-events: none;
    }
    .option-row--selected {
      border-color: rgba(27, 79, 214, 0.28);
      background: linear-gradient(180deg, #fffef8 0%, #f8fbff 100%);
      box-shadow: 0 16px 30px rgba(27, 79, 214, 0.14);
    }
    .option-marker {
      width: 46px;
      height: 46px;
      border-radius: 18px;
      background: #fff6db;
      color: #8f5a00;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.04rem;
      font-weight: 800;
      box-shadow: inset 0 0 0 1px rgba(255, 190, 46, 0.28);
      flex: 0 0 auto;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .option-row--selected .option-marker {
      background: linear-gradient(180deg, #ffbe2e 0%, #f3a80f 100%);
      color: #5a3b00;
      box-shadow: 0 10px 18px rgba(255, 174, 13, 0.24);
      transform: scale(1.04);
    }
    .option-copy {
      display: block;
      flex: 1;
      color: #27446c;
      line-height: 1.65;
      font-weight: 700;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      padding-top: 3px;
      text-align: left;
    }
    .question-text > *,
    .option-copy > * {
      display: block;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box;
    }
    .option-row--selected .option-copy {
      color: #16325b;
    }
    .question-text :is(p, div, figure, table, pre, ul, ol, blockquote, section, article, span),
    .option-copy :is(p, div, figure, table, pre, ul, ol, blockquote, section, article, span) {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box;
      margin-left: 0 !important;
      margin-right: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      text-indent: 0 !important;
      text-align: left !important;
      float: none !important;
    }
    .question-text table,
    .option-copy table {
      display: block;
      overflow-x: auto;
      border-collapse: collapse;
    }
    .question-text img,
    .question-text iframe,
    .question-text video,
    .question-text audio,
    .option-copy img,
    .option-copy iframe,
    .option-copy video,
    .option-copy audio {
      max-width: 100% !important;
      height: auto !important;
    }
    .question-text *[style*="width"],
    .option-copy *[style*="width"] {
      max-width: 100% !important;
    }
    @media (max-width: 768px) {
      .question-shell {
        min-height: 300px;
      }
      .question-stem {
        min-height: 120px;
        padding: 16px;
      }
      .question-meta-row {
        align-items: flex-start;
      }
      .question-title {
        font-size: 1.18rem;
      }
    }

    .nav-grid {
      margin-top: 12px;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }
    .nav-btn {
      aspect-ratio: 1 / 1;
      min-height: 42px;
      width: 100%;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      font-weight: 800;
      font-size: 0.92rem;
      cursor: pointer;
      transition: all 0.2s ease, box-shadow 0.2s ease;
    }
    .nav-btn--answered {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
      box-shadow: 0 8px 16px rgba(30, 58, 138, 0.2);
    }
    .nav-btn--blank {
      border-color: #94a3b8;
      background: #f1f5f9;
      color: #475569;
      box-shadow: none;
      position: relative;
    }
    .nav-btn--blank::after {
      content: '○';
      position: absolute;
      inset: auto 5px 4px auto;
      font-size: 9px;
      line-height: 1;
      color: #94a3b8;
    }
    .nav-btn--active {
      border-color: #1d4ed8;
      color: #1d4ed8;
      background: #eff6ff;
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.24);
    }
    .nav-btn--locked {
      border-color: #fdba74;
      background: #fff7ed;
      color: #c2410c;
      cursor: not-allowed;
      position: relative;
      box-shadow: none;
    }
    .nav-btn--locked::after {
      content: '⛔';
      position: absolute;
      inset: auto 4px 3px auto;
      font-size: 9px;
      line-height: 1;
    }
    .nav-legend {
      margin-top: 12px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      font-size: 0.72rem;
      color: #64748b;
      font-weight: 700;
    }
    .nav-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .nav-legend-swatch {
      width: 14px;
      height: 14px;
      border-radius: 4px;
      border: 1px solid rgba(148, 163, 184, 0.42);
      background: #fff;
      flex: 0 0 auto;
    }
    .nav-legend-swatch.answered {
      background: var(--primary);
      border-color: var(--primary);
    }
    .nav-legend-swatch.current {
      background: #eff6ff;
      border-color: #1d4ed8;
    }
    .nav-legend-swatch.blank {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
    .nav-legend-swatch.locked {
      background: #fff7ed;
      border-color: #fdba74;
    }
    .security-shield {
      position: fixed;
      inset: 0;
      background:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.18), transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(14, 165, 233, 0.16), transparent 42%),
        linear-gradient(160deg, #0b1222 0%, #111c36 55%, #0b1222 100%);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      z-index: 12500;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, visibility .2s ease;
    }
    .security-shield.show {
      opacity: 1;
      visibility: visible;
    }
    .security-shield-card {
      width: min(92vw, 640px);
      border-radius: 26px;
      border: 1px solid rgba(148, 163, 184, 0.16);
      background: rgba(12, 18, 34, 0.6);
      color: #f8fafc;
      padding: 28px 26px;
      text-align: center;
      box-shadow: 0 26px 60px rgba(3, 7, 18, 0.55);
    }
    .security-shield-icon {
      width: 46px;
      height: 46px;
      margin: 0 auto 8px;
      border-radius: 16px;
      background: rgba(248, 250, 252, 0.08);
      color: #e2e8f0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
    }
    .security-shield-title {
      margin: 0;
      font-size: 1.35rem;
      font-weight: 800;
    }
    .security-shield-text {
      margin: 10px 0 0;
      color: #cbd5e1;
      font-size: 0.95rem;
      line-height: 1.7;
      font-weight: 600;
    }

    .exam-start-loading {
      position: fixed;
      inset: 0;
      background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.25), transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.22), transparent 42%),
        radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.2), transparent 40%),
        linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.92));
      -webkit-backdrop-filter: blur(18px);
      backdrop-filter: blur(18px);
      z-index: 12350;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .exam-start-loading::before,
    .exam-start-loading::after {
      content: '';
      position: absolute;
      width: 320px;
      height: 320px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 60%);
      filter: blur(10px);
      opacity: 0.55;
      animation: examLoadingFloat 8s ease-in-out infinite;
      pointer-events: none;
    }
    .exam-start-loading::before {
      top: 8%;
      left: 10%;
    }
    .exam-start-loading::after {
      bottom: 10%;
      right: 12%;
      animation-delay: -2.5s;
    }
    @keyframes examLoadingFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }
    .exam-start-loading.show {
      opacity: 1;
      visibility: visible;
    }
    .exam-start-loading-card {
      width: min(92vw, 520px);
      border-radius: 26px;
      padding: 28px 30px 26px;
      text-align: center;
      color: #0f172a;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(148, 163, 184, 0.22);
      box-shadow: 0 40px 80px rgba(10, 22, 56, 0.35);
      position: relative;
      overflow: hidden;
    }
    .exam-start-loading-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent 45%),
        linear-gradient(315deg, rgba(14, 165, 233, 0.08), transparent 55%);
      pointer-events: none;
    }
    .exam-start-loading-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 8px 14px;
      border-radius: 999px;
      background: #eef2ff;
      border: 1px solid rgba(59, 130, 246, 0.18);
      margin: 0 auto 14px;
    }
    .exam-start-loading-logo {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
    }
    .exam-start-loading-logo img {
      width: 22px;
      height: 22px;
      object-fit: contain;
    }
    .exam-start-loading-brand-title {
      font-weight: 800;
      font-size: 0.92rem;
      color: #1e293b;
    }
    .exam-start-loading-brand-sub {
      font-size: 0.68rem;
      color: #64748b;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .exam-start-loading-spinner {
      width: 64px;
      height: 64px;
      margin: 0 auto 14px;
      border-radius: 999px;
      border: 6px solid rgba(37, 99, 235, 0.16);
      border-top-color: #2563eb;
      animation: examStartSpin 0.9s linear infinite;
      box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
      position: relative;
    }
    .exam-start-loading-spinner::after {
      content: '';
      position: absolute;
      inset: 12px;
      border-radius: 999px;
      border: 3px solid rgba(14, 165, 233, 0.35);
      border-right-color: transparent;
      animation: examStartSpin 1.4s linear infinite reverse;
    }
    @keyframes examStartSpin {
      to { transform: rotate(360deg); }
    }
    .exam-start-loading-title {
      margin: 0 0 6px;
      font-size: 1.2rem;
      font-weight: 800;
      color: #0f172a;
    }
    .exam-start-loading-text {
      margin: 0;
      font-size: 0.96rem;
      color: #475569;
      font-weight: 600;
    }
    .exam-start-loading-bar {
      width: 100%;
      height: 10px;
      margin-top: 16px;
      border-radius: 999px;
      background: #e2e8f0;
      overflow: hidden;
      position: relative;
    }
    .exam-start-loading-bar span {
      position: absolute;
      left: -40%;
      top: 0;
      height: 100%;
      width: 40%;
      border-radius: 999px;
      background: linear-gradient(90deg, #60a5fa, #2563eb);
      animation: examLoadingBar 1.6s ease-in-out infinite;
    }
    @keyframes examLoadingBar {
      0% { transform: translateX(0); }
      100% { transform: translateX(250%); }
    }
    .exam-start-loading-dots {
      display: inline-flex;
      gap: 6px;
      margin-top: 10px;
    }
    .exam-start-loading-dots span {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #94a3b8;
      animation: examLoadingDots 1.2s ease-in-out infinite;
    }
    .exam-start-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
    .exam-start-loading-dots span:nth-child(3) { animation-delay: 0.3s; }
    @keyframes examLoadingDots {
      0%, 100% { transform: translateY(0); opacity: 0.6; }
      50% { transform: translateY(-4px); opacity: 1; }
    }
    .finish-screen {
      position: fixed;
      inset: 0;
      z-index: 12400;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(15, 23, 42, 0.72);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      opacity: 1;
      visibility: visible;
      transition: opacity .2s ease, visibility .2s ease;
    }
    .finish-screen.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .finish-screen-card {
      width: min(92vw, 560px);
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.25);
      background: #ffffff;
      padding: 24px;
      text-align: center;
      box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
    }
    .finish-screen-title {
      margin: 0;
      font-size: 1.36rem;
      font-weight: 800;
      color: #0f172a;
    }
    .finish-screen-text {
      margin: 10px 0 18px;
      color: #475569;
      font-size: 0.94rem;
      line-height: 1.55;
      font-weight: 600;
    }

    .status-card { margin-top: 12px; }

    .status-bar {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-top: 16px;
      padding: 10px;
      background: #f7f9ff;
      border: 1px solid rgba(27, 79, 214, 0.12);
      box-shadow: none;
      border-radius: 22px;
      width: fit-content;
      max-width: 100%;
    }
    .status-item {
      display: inline-flex;
      gap: 10px;
      align-items: center;
      padding: 10px 14px;
      border-radius: 18px;
      background: #ffffff;
      border: 1px solid var(--line);
      min-height: 0;
      flex: 0 0 auto;
      min-width: 0;
    }
    .status-icon {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(27, 79, 214, 0.12);
      color: var(--primary);
      position: relative;
      overflow: hidden;
    }
    .status-icon i {
      font-size: 20px;
      line-height: 1;
    }
    .status-item--connection .status-icon i {
      display: none;
    }
    .signal-bars {
      display: inline-flex;
      align-items: flex-end;
      gap: 3px;
      height: 16px;
    }
    .signal-bars span {
      width: 4px;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.22);
      transform-origin: bottom center;
      transition: background .2s ease, transform .2s ease, opacity .2s ease;
    }
    .signal-bars span:nth-child(1) { height: 5px; }
    .signal-bars span:nth-child(2) { height: 8px; }
    .signal-bars span:nth-child(3) { height: 11px; }
    .signal-bars span:nth-child(4) { height: 14px; }
    .status-item--connection.status-connection-normal .signal-bars span {
      background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
      animation: signalPulse 1.4s ease-in-out infinite;
    }
    .status-item--connection.status-connection-normal .signal-bars span:nth-child(2) { animation-delay: .12s; }
    .status-item--connection.status-connection-normal .signal-bars span:nth-child(3) { animation-delay: .24s; }
    .status-item--connection.status-connection-normal .signal-bars span:nth-child(4) { animation-delay: .36s; }
    .status-item--connection.status-connection-weak .signal-bars span:nth-child(1),
    .status-item--connection.status-connection-weak .signal-bars span:nth-child(2) {
      background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
      opacity: 1;
    }
    .status-item--connection.status-connection-weak .signal-bars span:nth-child(3),
    .status-item--connection.status-connection-weak .signal-bars span:nth-child(4) {
      background: rgba(245, 158, 11, 0.18);
      opacity: .5;
    }
    .status-item--connection.status-connection-offline .signal-bars span {
      background: rgba(148, 163, 184, 0.26);
      opacity: .4;
    }
    .status-item--connection.status-connection-offline .signal-bars span:nth-child(1) {
      background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
      opacity: 1;
    }
    .status-item--device.status-device-normal .status-icon,
    .status-item--server.status-server-online .status-icon,
    .status-item--battery.status-battery-normal .status-icon {
      background: rgba(27, 79, 214, 0.12);
      color: var(--primary);
    }
    .status-item--device.status-device-warning .status-icon,
    .status-item--server.status-server-slow .status-icon,
    .status-item--battery.status-battery-warning .status-icon {
      background: rgba(245, 158, 11, 0.16);
      color: #b45309;
    }
    .status-item--device.status-device-heavy .status-icon,
    .status-item--server.status-server-offline .status-icon,
    .status-item--battery.status-battery-heavy .status-icon {
      background: rgba(249, 115, 22, 0.14);
      color: #c2410c;
    }
    .status-item--battery.status-battery-charging .status-icon {
      background: rgba(16, 185, 129, 0.16);
      color: #15803d;
    }
    .status-item--device.status-device-warning,
    .status-item--server.status-server-slow,
    .status-item--battery.status-battery-warning {
      border-color: rgba(245, 158, 11, 0.18);
      background: #fffaf2;
    }
    .status-item--device.status-device-heavy,
    .status-item--server.status-server-offline,
    .status-item--battery.status-battery-heavy {
      border-color: rgba(249, 115, 22, 0.2);
      background: #fff7ed;
    }
    .status-item--battery.status-battery-charging {
      border-color: rgba(16, 185, 129, 0.22);
      background: #f0fdf4;
    }
    .status-item--device .status-icon::after,
    .status-item--server .status-icon::after,
    .status-item--battery .status-icon::after {
      content: '';
      position: absolute;
      inset: 7px;
      border-radius: 10px;
      border: 1px solid transparent;
      opacity: 0;
      pointer-events: none;
    }
    .status-item--device.status-device-normal .status-icon i,
    .status-item--server.status-server-online .status-icon i,
    .status-item--battery.status-battery-normal .status-icon i,
    .status-item--battery.status-battery-charging .status-icon i {
      animation: statusIconFloat 2.4s ease-in-out infinite;
    }
    .status-item--device.status-device-warning .status-icon i,
    .status-item--server.status-server-slow .status-icon i,
    .status-item--battery.status-battery-warning .status-icon i {
      animation: statusIconNudge 1.3s ease-in-out infinite;
    }
    .status-item--device.status-device-heavy .status-icon i,
    .status-item--server.status-server-offline .status-icon i,
    .status-item--battery.status-battery-heavy .status-icon i {
      animation: statusIconAlert 1.1s ease-in-out infinite;
    }
    .status-item--device.status-device-normal .status-icon::after,
    .status-item--server.status-server-online .status-icon::after,
    .status-item--battery.status-battery-normal .status-icon::after {
      border-color: rgba(37, 99, 235, 0.2);
      animation: statusRingPulse 2.4s ease-in-out infinite;
    }
    .status-item--battery.status-battery-charging .status-icon::after {
      border-color: rgba(16, 185, 129, 0.26);
      animation: statusRingPulse 1.5s ease-in-out infinite;
    }
    .status-item--device.status-device-warning .status-icon::after,
    .status-item--server.status-server-slow .status-icon::after,
    .status-item--battery.status-battery-warning .status-icon::after {
      border-color: rgba(217, 119, 6, 0.24);
      animation: statusRingPulse 1.4s ease-in-out infinite;
    }
    .status-item--device.status-device-heavy .status-icon::after,
    .status-item--server.status-server-offline .status-icon::after,
    .status-item--battery.status-battery-heavy .status-icon::after {
      border-color: rgba(234, 88, 12, 0.28);
      animation: statusRingAlert 1.05s ease-in-out infinite;
    }
    @keyframes statusIconFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-1px); }
    }
    @keyframes statusIconNudge {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }
    @keyframes statusIconAlert {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }
    @keyframes statusRingPulse {
      0%, 100% { opacity: 0.18; transform: scale(0.96); }
      50% { opacity: 0.42; transform: scale(1.03); }
    }
    @keyframes statusRingAlert {
      0%, 100% { opacity: 0.2; transform: scale(0.94); }
      50% { opacity: 0.55; transform: scale(1.06); }
    }
    @keyframes signalPulse {
      0%, 100% { transform: scaleY(.82); opacity: .7; }
      50% { transform: scaleY(1); opacity: 1; }
    }
    .status-label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--muted);
      font-weight: 600;
    }
    .status-value {
      font-weight: 700;
      color: var(--ink);
      margin-top: 2px;
      font-size: 0.94rem;
      line-height: 1.28;
      word-break: break-word;
    }
    .status-alert {
      margin-top: 10px;
      display: none;
      align-items: center;
      gap: 10px;
      justify-content: space-between;
      flex-wrap: wrap;
      padding: 11px 14px;
      border-radius: 16px;
      border: 1px solid #fdba74;
      background: #fff7ed;
      color: #9a3412;
      font-size: 0.9rem;
      font-weight: 700;
      line-height: 1.4;
    }
    .status-alert.show {
      display: flex;
    }
    .status-alert-copy {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .status-alert-icon {
      width: 32px;
      height: 32px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(249, 115, 22, 0.12);
      color: #c2410c;
      flex: 0 0 auto;
    }
    .status-alert-action {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border-radius: 14px;
      border: 1px solid rgba(194, 65, 12, 0.18);
      background: #ffffff;
      color: #9a3412;
      font-size: 0.86rem;
      font-weight: 800;
      cursor: pointer;
      transition: transform .16s ease, box-shadow .16s ease;
    }
    .status-alert-action:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(154, 52, 18, 0.12);
    }

    .lane-gate {
      margin-top: 16px;
      border: 1px solid #facc15;
      border-radius: 22px;
      padding: 20px;
      background: linear-gradient(145deg, #fef9c3 0%, #fde68a 100%);
      box-shadow: 0 14px 32px rgba(133, 77, 14, 0.12);
    }
    .lane-pill {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 0.78rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-weight: 700;
      border: 1px solid transparent;
    }
    .lane-pill--prestasi {
      color: #14532d;
      background: #ecfdf3;
      border-color: #86efac;
    }
    .lane-pill--mandiri {
      color: #854d0e;
      background: #fef3c7;
      border-color: #facc15;
    }
    .lane-headline {
      font-size: clamp(1.1rem, 2vw, 1.35rem);
      font-weight: 800;
      margin-top: 10px;
      line-height: 1.3;
    }
    .lane-note {
      margin-top: 8px;
      font-size: 0.9rem;
      color: #713f12;
    }
    .lane-disabled-hint {
      margin-top: 10px;
      border-radius: 12px;
      border: 1px solid #fed7aa;
      background: #fff7ed;
      color: #9a3412;
      padding: 10px 12px;
      font-size: 0.86rem;
      line-height: 1.45;
      font-weight: 600;
    }
    .lane-disabled-hint.hidden {
      display: none;
    }
    .intro-tab-nav {
      margin-top: 14px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .intro-tab-btn {
      border: 1px solid rgba(37, 99, 235, 0.22);
      background: #ffffff;
      color: #334155;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .intro-tab-btn:hover {
      border-color: rgba(37, 99, 235, 0.42);
      color: #1e3a8a;
    }
    .intro-tab-btn.is-active {
      background: #1e3a8a;
      color: #ffffff;
      border-color: #1e3a8a;
      box-shadow: 0 8px 18px rgba(30, 58, 138, 0.24);
    }
    .intro-tab-panel {
      margin-top: 14px;
    }
    .intro-tab-panel.hidden {
      display: none;
    }
    .intro-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 10px;
    }
    .intro-list li {
      position: relative;
      padding-left: 24px;
      color: #334155;
      font-size: 0.9rem;
      line-height: 1.52;
      font-weight: 600;
    }
    .intro-list li::before {
      content: '✓';
      position: absolute;
      left: 0;
      top: 2px;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #dbeafe;
      color: #1e3a8a;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.64rem;
      font-weight: 800;
    }
    .intro-help {
      border-radius: 12px;
      border: 1px solid #bfdbfe;
      background: #eff6ff;
      color: #1e3a8a;
      padding: 12px;
      font-size: 0.88rem;
      line-height: 1.48;
      font-weight: 700;
    }
    .preflight-panel {
      margin-top: 12px;
      border-radius: 14px;
      border: 1px solid rgba(15, 23, 42, 0.1);
      background: #f8fafc;
      padding: 12px;
    }
    .preflight-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
      flex-wrap: wrap;
    }
    .preflight-head-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .preflight-title {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #475569;
    }
    .preflight-badge {
      font-size: 0.72rem;
      font-weight: 700;
      border-radius: 999px;
      padding: 4px 10px;
      border: 1px solid transparent;
    }
    .preflight-badge.pending {
      color: #1e3a8a;
      background: #eff6ff;
      border-color: #bfdbfe;
    }
    .preflight-badge.ok {
      color: #166534;
      background: #ecfdf3;
      border-color: #86efac;
    }
    .preflight-badge.warn {
      color: #9a3412;
      background: #fff7ed;
      border-color: #fdba74;
    }
    .preflight-badge.fail {
      color: #991b1b;
      background: #fef2f2;
      border-color: #fca5a5;
    }
    .preflight-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 6px;
    }
    .preflight-item {
      font-size: 0.86rem;
      line-height: 1.45;
      color: #334155;
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    .preflight-item::before {
      content: '•';
      margin-top: 0;
      font-weight: 700;
      color: #64748b;
    }
    .preflight-item.warn::before { color: #c2410c; }
    .preflight-item.fail::before { color: #dc2626; }
    .preflight-item.loading::before { display: none; }
    .preflight-inline-spinner {
      width: 14px;
      height: 14px;
      border-radius: 999px;
      border: 2px solid #1d4ed8;
      border-right-color: transparent;
      display: inline-block;
      margin-top: 3px;
      flex-shrink: 0;
      animation: spin 0.8s linear infinite;
    }
    .preflight-running-text {
      color: #1e3a8a;
      font-weight: 600;
    }
    .preflight-retry {
      border: 1px solid rgba(27, 79, 214, 0.25);
      background: #fff;
      color: #1d4ed8;
      border-radius: 10px;
      padding: 5px 10px;
      font-size: 0.74rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .preflight-retry:hover {
      border-color: rgba(27, 79, 214, 0.42);
      background: #eff6ff;
    }
    .preflight-retry:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }
    .lane-verify {
      margin-top: 14px;
      display: grid;
      gap: 10px;
    }
    .lane-verify-title {
      font-size: 0.85rem;
      color: var(--muted);
      font-weight: 600;
    }
    .lane-choice-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .lane-choice {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 12px;
      background: #fff;
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      cursor: pointer;
    }
    .lane-choice input {
      accent-color: var(--primary);
    }
    .lane-alert {
      margin-top: 12px;
      border-radius: 12px;
      padding: 10px 12px;
      border: 1px solid #fdba74;
      background: #fff7ed;
      color: #9a3412;
      font-size: 0.86rem;
      font-weight: 600;
    }
    .lane-actions {
      margin-top: 14px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .start-rules {
      margin-top: 14px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .start-rule-card {
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 14px;
      background: #fff;
      padding: 12px 12px 11px;
      display: grid;
      gap: 8px;
      align-content: start;
    }
    .start-rule-head {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .start-rule-icon {
      width: 30px;
      height: 30px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(27, 79, 214, 0.12);
      color: var(--primary);
      flex-shrink: 0;
    }
    .start-rule-icon i {
      font-size: 16px;
      line-height: 1;
    }
    .start-rule-title {
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #475569;
      font-weight: 700;
    }
    .start-rule-text {
      color: #334155;
      font-size: 0.87rem;
      line-height: 1.45;
      margin: 0;
    }
    .login-prep-card {
      display: none;
      margin-top: 14px;
      border-radius: 18px;
      padding: 18px;
      border: 1px solid #facc15;
      background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
      color: #1f2937;
      box-shadow: 0 16px 32px rgba(133, 77, 14, 0.18);
    }
    .login-prep-title {
      margin: 0 0 10px;
      font-size: 1.7rem;
      font-weight: 800;
      color: #1e3a8a;
    }
    .login-prep-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 9px;
      font-size: 0.95rem;
      font-weight: 700;
    }
    .login-prep-list li {
      position: relative;
      padding-left: 23px;
    }
    .login-prep-list li::before {
      content: '✓';
      position: absolute;
      left: 0;
      top: 1px;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.62rem;
      font-weight: 800;
      background: #1e3a8a;
      color: #ffffff;
    }
    .login-prep-alert {
      margin-top: 10px;
      border-radius: 10px;
      border-left: 4px solid #dc2626;
      background: rgba(255, 255, 255, 0.68);
      padding: 9px 10px;
      font-size: 0.84rem;
      color: #7f1d1d;
      font-weight: 700;
    }
    .login-left-brand {
      display: none;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }
    .login-left-brand-logo {
      width: 60px;
      height: 60px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.14);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .login-left-brand-logo img {
      width: 60px;
      height: 60px;
      object-fit: contain;
      display: block;
    }
    .login-left-brand-copy {
      color: #ffffff;
      line-height: 1.2;
    }
    .login-left-brand-title {
      font-size: 2rem;
      font-weight: 800;
      margin: 0;
    }
    .login-left-brand-sub {
      margin: 2px 0 0;
      font-size: 1.55rem;
      font-weight: 600;
      color: #dbeafe;
    }
    .flow-login-grid {
      display: none;
      margin-top: 12px;
    }
    .flow-login-card {
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(0, 0, 0, 0.32);
      text-align: center;
      padding: 12px 8px;
      color: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .flow-login-icon {
      font-size: 1.1rem;
      line-height: 1;
      margin-bottom: 6px;
      display: block;
    }
    .flow-login-title {
      font-size: 0.92rem;
      font-weight: 800;
      margin: 0;
    }
    .flow-login-sub {
      margin: 2px 0 0;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.86);
      font-weight: 600;
    }
    .login-greeting-title {
      margin: 0;
      font-size: 2.1rem;
      line-height: 1.08;
      color: #0f172a;
      font-weight: 800;
    }
    .login-greeting-sub {
      margin: 8px 0 0;
      color: #64748b;
      font-size: 0.98rem;
      font-weight: 600;
      line-height: 1.4;
    }
    .login-info-box {
      margin-top: 14px;
      border-radius: 16px;
      background: #f1edba;
      border-left: 6px solid #facc15;
      padding: 16px 16px 15px;
      color: #713f12;
    }
    .login-info-box-title {
      margin: 0;
      font-size: 0.98rem;
      letter-spacing: 0.02em;
      font-weight: 800;
      text-transform: uppercase;
    }
    .login-info-box-text {
      margin: 8px 0 0;
      font-size: 0.95rem;
      line-height: 1.42;
      font-weight: 700;
    }
    .desktop-only { display: block; }
    .mobile-only { display: none !important; }
    .custom-accordion {
      background-color: #fff;
      border: 2px solid #e2e8f0;
      border-radius: 12px;
      overflow: hidden;
    }
    .accordion-login {
      background-color: #fff9c4;
      border-color: #facc15;
    }
    .custom-accordion summary {
      padding: 12px 16px;
      font-weight: 800;
      font-size: 0.75rem;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #0f172a;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }
    .accordion-login summary { color: #854d0e; }
    .custom-accordion summary::-webkit-details-marker { display: none; }
    .accordion-icon {
      font-size: 0.9rem;
      transition: transform .2s ease;
      line-height: 1;
      color: inherit;
    }
    .custom-accordion[open] summary .accordion-icon {
      transform: rotate(180deg);
    }
    .accordion-body {
      padding: 0 16px 12px;
      font-size: 0.9rem;
      line-height: 1.42;
      color: #334155;
      font-weight: 600;
    }
    .accordion-body-login-info {
      color: #713f12;
    }
    .accordion-checklist {
      list-style: none;
      margin: 6px 0 0;
      padding: 0;
      display: grid;
      gap: 8px;
      font-size: 0.88rem;
      color: #0f172a;
      font-weight: 700;
    }
    .accordion-checklist li {
      position: relative;
      padding-left: 22px;
    }
    .accordion-checklist li::before {
      content: '✓';
      position: absolute;
      left: 0;
      top: 1px;
      width: 15px;
      height: 15px;
      border-radius: 999px;
      background: #1e40af;
      color: #fff;
      font-size: 0.62rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
    }

    body.mode-login {
      background: #f8fafc;
      overflow-x: hidden;
      overflow-y: auto;
    }
    body.mode-login .decor-layer,
    body.mode-login .site-header,
    body.mode-login .panel-head,
    body.mode-login #examPanel,
    body.mode-login #savingOverlay {
      display: none !important;
    }
    body.mode-login .main-grid {
      max-width: 100%;
      margin: 0;
      min-height: 100%;
      grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
      gap: 0;
      padding: 0;
      align-items: stretch;
    }
    body.mode-login .sidebar {
      order: 1;
      min-height: 100%;
      padding: 32px;
      margin-top: 0;
      margin-bottom: 0;
      background:
        linear-gradient(145deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.87) 100%),
        url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    }
    body.mode-login .login-left-brand {
      display: flex;
    }
    body.mode-login .panel {
      order: 2;
      min-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background: #ffffff;
      background-image: radial-gradient(#dbe4f0 1px, transparent 1px);
      background-size: 18px 18px;
    }
    body.mode-login #loginPanel {
      margin: 0;
      display: block;
      width: 100%;
      max-width: 470px;
    }
    body.mode-login #loginPanel .card-checklist {
      display: none;
    }
    body.mode-login #loginPanel .card-auth {
      border-radius: 24px;
      border: 1px solid #dbe4f0;
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
      background: rgba(255, 255, 255, 0.96);
      padding: 28px;
    }
    body.mode-login #loginPanel .card-head .badge {
      display: none;
    }
    body.mode-login #loginPanel #loginContent .card-head {
      display: none;
    }
    body.mode-login #loginPanel .tag {
      color: #334155;
    }
    body.mode-login #loginPanel .card-title {
      font-size: 2.1rem;
      line-height: 1.1;
      color: #0f172a;
    }
    body.mode-login #loginPanel .helper {
      color: #64748b;
      font-weight: 600;
    }
    body.mode-login #loginPanel #loginContent > .helper {
      display: none;
    }
    body.mode-login #loginPanel .input {
      border-radius: 12px;
      border: 2px solid #e2e8f0;
      background: #f8fafc;
    }
    body.mode-login #loginPanel .btn-primary {
      border-radius: 12px;
      min-height: 54px;
      font-size: 1.02rem;
      font-weight: 800;
    }
    body.mode-login .callout {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.24);
      box-shadow: none;
      border-radius: 16px;
      color: #ffffff;
    }
    body.mode-login .callout .sidebar-title {
      font-size: 2.2rem;
      font-weight: 800;
    }
    body.mode-login .callout .sidebar-sub,
    body.mode-login .callout p {
      color: rgba(255, 255, 255, 0.86) !important;
    }
    body.mode-login #userBadge {
      display: none !important;
    }
    body.mode-login .sidebar-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    body.mode-login .mini-card {
      background: rgba(0, 0, 0, 0.3);
      border-color: rgba(255, 255, 255, 0.16);
      color: #ffffff;
      border-radius: 12px;
      padding: 12px 8px;
      text-align: center;
      gap: 6px;
    }
    body.mode-login .mini-head {
      justify-content: center;
    }
    body.mode-login .mini-icon {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.16);
      color: #fde047;
    }
    body.mode-login .mini-title {
      color: #ffffff;
      font-size: 0.9rem;
    }
    body.mode-login .mini-text {
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.8rem;
    }
    body.mode-login .flow-card {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.24);
      color: #ffffff;
      border-radius: 16px;
    }
    body.mode-login .flow-card .tag,
    body.mode-login .flow-card .card-title {
      color: #ffffff;
    }
    body.mode-login .flow-card .tag {
      letter-spacing: 0.08em;
      font-size: 1.7rem;
      text-transform: none;
      font-weight: 800;
    }
    body.mode-login .flow-card .card-title {
      display: none;
    }
    body.mode-login .flow-login-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    body.mode-login .flow-steps,
    body.mode-login .flow-mobile,
    body.mode-login .flow-bar {
      display: none !important;
    }
    body.mode-login #questionNavGrid,
    body.mode-login .nav-legend {
      display: none !important;
    }
    body.mode-login .login-prep-card {
      display: block;
    }

    body.mode-exam {
      background: #e0f2fe;
    }
    body.mode-exam .site-header {
      background: #1e3a8a;
      border-bottom: none;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    body.mode-exam .header-inner {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 14px;
    }
    body.mode-exam .top-nav-tabs {
      display: inline-flex;
      justify-self: center;
    }
    body.mode-exam .nav-legend {
      display: none !important;
    }
    body.mode-exam .header-userbox {
      display: block;
    }
    body.mode-exam .chip {
      background: rgba(255, 255, 255, 0.16);
      border-color: rgba(255, 255, 255, 0.22);
      color: #dbeafe;
    }
    body.mode-exam .brand-title,
    body.mode-exam .brand-subtitle {
      color: #ffffff;
    }
    body.mode-exam .main-grid {
      grid-template-columns: minmax(0, 1.64fr) minmax(0, 1.36fr);
      gap: 16px;
      padding: 18px 0 28px;
      align-items: stretch;
    }
    body.mode-exam .panel-head {
      display: none;
    }
    body.mode-exam #examPanel {
      margin-top: 0;
    }
    body.mode-exam #examIntro {
      border-radius: 12px;
      border-color: #cbd5e1;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
      background: #ffffff;
    }
    body.mode-exam .intro-tab-nav { display: none; }
    body.mode-exam .intro-tab-btn {
      border-radius: 10px;
      border-color: #cbd5e1;
      font-size: 0.72rem;
      padding: 7px 10px;
    }
    body.mode-exam .intro-tab-btn.is-active {
      background: #eff6ff;
      color: #1e3a8a;
      border-color: #bfdbfe;
      box-shadow: none;
    }
    body.mode-exam .lane-gate {
      border-radius: 10px;
      border: 1px solid #fde047;
      background: #fffbeb;
      box-shadow: none;
    }
    body.mode-exam .lane-headline {
      font-size: 1.2rem;
      color: #0f172a;
    }
    body.mode-exam .lane-note {
      color: #64748b;
    }
    body.mode-exam .status-bar {
      width: 100%;
      border-radius: 12px;
      border-color: #cbd5e1;
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
      padding: 10px;
    }
    body.mode-exam .status-item {
      border-radius: 10px;
      border-color: #cbd5e1;
      background: #f8fafc;
      padding: 9px 11px;
    }
    body.mode-exam #logoutBtn {
      background: #fee2e2;
      color: #dc2626;
      border-color: rgba(239, 68, 68, 0.25);
      border-radius: 10px;
      font-weight: 800;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
    }
    body.mode-exam #logoutBtn:hover {
      background: #fecaca;
      color: #b91c1c;
    }
    body.mode-exam .sidebar .callout {
      border-radius: 12px;
      background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
      border-color: transparent;
      box-shadow: 0 8px 22px rgba(30, 58, 138, 0.2);
    }
    body.mode-exam .callout .sidebar-title,
    body.mode-exam .callout .sidebar-sub,
    body.mode-exam .callout > p {
      display: none;
    }
    body.mode-exam .callout .sidebar-label {
      display: none;
    }
    body.mode-exam #userBadge {
      display: block !important;
      margin-top: 0;
      padding: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      gap: 10px;
    }
    body.mode-exam #userBadge .profile-welcome {
      display: block;
      color: #ffffff;
      font-size: clamp(1.16rem, 1.75vw, 1.45rem);
      font-weight: 500;
      line-height: 1.15;
      margin: 0 0 6px;
    }
    body.mode-exam #userBadge .profile-title {
      font-size: clamp(2rem, 3.1vw, 2.72rem);
      line-height: 1.05;
      margin: 0 0 10px;
      letter-spacing: -0.01em;
    }
    body.mode-exam #userBadge .profile-sub {
      display: none;
    }
    body.mode-exam #userBadge .profile-header {
      padding-bottom: 18px;
      margin-bottom: 4px;
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    }
    body.mode-exam #userBadge .profile-note {
      margin-top: 14px;
      padding: 10px 12px;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.22);
      color: rgba(255, 255, 255, 0.95);
    }
    body.mode-exam #userBadge .profile-grid {
      margin-top: 16px;
      gap: 12px;
    }
    body.mode-exam #userBadge .profile-item {
      padding: 14px 16px;
      border-color: rgba(255, 255, 255, 0.22);
    }
    body.mode-exam #userBadge .profile-note::before {
      content: '⚠ ';
      color: #fde047;
      font-weight: 700;
    }
    body.mode-exam .live-time-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border-radius: 12px;
      background: #0f172a;
      color: #ffffff;
      padding: 10px 14px;
      border: 1px solid #1e293b;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    }
    body.mode-exam .live-time-left {
      min-width: 0;
    }
    body.mode-exam .live-time-label {
      font-size: 0.72rem;
      color: #cbd5e1;
      font-weight: 700;
      line-height: 1.2;
    }
    body.mode-exam .live-time-date {
      margin-top: 2px;
      font-size: 0.86rem;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.2;
    }
    body.mode-exam .live-time-clock {
      font-family: 'Courier New', monospace;
      font-size: 1.75rem;
      letter-spacing: 0.05em;
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
    }
    body.mode-exam .sidebar-grid {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    body.mode-exam .mini-card {
      border-radius: 10px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
      padding: 14px;
    }
    body.mode-exam .login-prep-card {
      display: block;
      margin-top: 12px;
      border-radius: 12px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
      color: #0f172a;
      padding: 14px 16px 16px;
    }
    body.mode-exam .login-prep-title {
      margin: 0 0 10px;
      font-size: 2rem;
      line-height: 1.1;
      color: #0f172a;
    }
    body.mode-exam .login-prep-list {
      gap: 8px;
      font-size: 0.97rem;
      font-weight: 600;
    }
    body.mode-exam .login-prep-list li {
      padding-left: 24px;
    }
    body.mode-exam .login-prep-list li::before {
      top: 2px;
    }
    body.mode-exam .login-prep-alert {
      display: none;
    }
    body.mode-exam .flow-card {
      display: none;
      border-radius: 12px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
      margin-top: 0;
    }
    body.mode-exam .flow-steps {
      margin-top: 12px;
      gap: 10px;
    }
    body.mode-exam .flow-step {
      background: #f8fafc;
      border-color: #dbe4f0;
    }
    body.mode-exam .flow-bar {
      display: none;
    }
    body.mode-exam .flow-seg {
      background: #bfdbfe;
    }
    body.mode-exam .flow-seg.active {
      background: #2563eb;
    }
    body.mode-exam .nav-grid {
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }

    body.mode-exam-running .site-header {
      display: block !important;
      padding: 6px 0;
      background: #1e3a8a;
      border-bottom: none;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    body.mode-exam-running .header-inner {
      min-height: 64px;
      padding-top: 0;
      padding-bottom: 0;
      gap: 12px;
    }
    body.mode-exam-running #logoutBtn {
      display: none !important;
    }
    body.mode-exam-running .brand {
      display: flex !important;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex: 0 0 auto;
    }
    body.mode-exam-running .brand-logo {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: transparent;
      border: 0;
      box-shadow: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    body.mode-exam-running .brand-logo img {
      display: block;
      width: 42px;
      height: 42px;
      object-fit: contain;
    }
    body.mode-exam-running .brand-logo::after {
      content: none;
    }
    body.mode-exam-running .header-meta {
      gap: 0;
    }
    body.mode-exam-running .brand-title,
    body.mode-exam-running .brand-subtitle {
      color: #ffffff;
      line-height: 1.1;
    }
    body.mode-exam-running .brand-title {
      font-size: 1rem;
      font-weight: 700;
    }
    body.mode-exam-running .brand-subtitle {
      font-size: 0.76rem;
      color: #c7d5f3;
    }
    body.mode-exam-running .chip {
      display: inline-flex !important;
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.22);
      color: #dbeafe;
    }
    body.mode-exam-running .top-nav-tabs,
    body.mode-exam-running .header-userbox {
      display: none !important;
    }
    body.mode-exam-running .header-actions {
      display: none !important;
    }
    body.mode-exam-running .exam-run-tools {
      display: flex !important;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex: 1 1 auto;
      min-width: 0;
    }
    body.mode-exam-running .exam-run-status-head,
    body.mode-exam-running .exam-run-action-head {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    body.mode-exam-running .exam-run-status-chip {
      position: relative;
      display: grid;
      grid-template-columns: auto auto;
      grid-template-rows: auto auto;
      align-items: center;
      column-gap: 8px;
      row-gap: 1px;
      padding: 7px 12px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(15, 23, 42, 0.22);
      color: #ffffff;
      font-size: 0.76rem;
      line-height: 1;
      white-space: nowrap;
    }
    body.mode-exam-running .exam-run-status-chip i {
      grid-row: 1 / span 2;
      grid-column: 1;
      font-size: 0.92rem;
      color: #93c5fd;
    }
    body.mode-exam-running .exam-run-status-chip span {
      grid-row: 1;
      grid-column: 2;
      display: block;
      color: #cbd5e1;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      font-size: 0.62rem;
      line-height: 1.1;
    }
    body.mode-exam-running .exam-run-status-chip strong {
      grid-row: 2;
      grid-column: 2;
      display: block;
      color: #ffffff;
      font-weight: 800;
      text-transform: capitalize;
      font-size: 0.96rem;
      line-height: 1.15;
    }
    body.mode-exam-running .exam-run-head-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 34px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
      font-size: 0.8rem;
      font-weight: 700;
      transition: all .18s ease;
    }
    body.mode-exam-running .exam-run-head-btn:hover {
      background: rgba(255, 255, 255, 0.18);
    }
    body.mode-exam-running .exam-run-head-btn.icon-only {
      width: 34px;
      padding: 0;
      justify-content: center;
      gap: 0;
    }
    body.mode-exam-running .exam-run-head-btn.icon-only.is-active {
      background: #ffffff;
      color: #1e3a8a;
    }
    body.mode-exam-running .exam-run-global-timer {
      min-width: 108px;
      text-align: center;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid #334155;
      background: #0b1328;
      color: #ffffff;
      font-size: 0.98rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }
    body.mode-exam-running .exam-run-user-head {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-left: 2px;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 12px;
      transition: background 0.2s ease;
    }
    body.mode-exam-running .exam-run-user-head:hover {
      background: rgba(255, 255, 255, 0.12);
    }
    body.mode-exam-running .exam-run-user-copy {
      text-align: right;
      line-height: 1.1;
    }
    body.mode-exam-running .exam-run-user-copy .name {
      color: #ffffff;
      font-weight: 800;
      font-size: 0.86rem;
    }
    body.mode-exam-running .exam-run-user-copy .nisn {
      margin-top: 2px;
      color: #bfdbfe;
      font-size: 0.66rem;
      font-weight: 700;
    }
    body.mode-exam-running .exam-run-user-head .avatar {
      width: 30px;
      height: 30px;
      border-radius: 10px;
      background: #ffffff;
      color: #1e3a8a;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.82rem;
      font-weight: 800;
    }
    body.mode-exam-running .main-grid {
      grid-template-columns: 1fr;
      gap: 10px;
      padding: 12px 0 22px;
    }
    body.mode-exam-running .sidebar {
      display: none !important;
    }
    body.mode-exam-running .panel {
      max-width: 100%;
      gap: 10px;
    }
    body.mode-exam-running .panel-head {
      display: flex;
      border-radius: 12px;
      background: #1e3a8a;
      border: none;
      box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
      padding: 10px 14px;
      align-items: center;
      justify-content: space-between;
    }
    body.mode-exam-running .panel-head::before {
      display: none;
    }
    body.mode-exam-running .panel-subtitle {
      display: none;
    }
    body.mode-exam-running .eyebrow {
      color: #bfdbfe;
      font-size: 0.62rem;
    }
    body.mode-exam-running .panel-title {
      color: #ffffff;
      font-size: 1.02rem;
      font-weight: 800;
      margin-top: 2px;
    }
    body.mode-exam-running .panel-head-badge {
      background: rgba(255, 255, 255, 0.14);
      color: #ffffff;
      font-size: 0.72rem;
      padding: 7px 10px;
    }
    body.mode-exam-running .timer {
      position: static;
      right: auto;
      bottom: auto;
      border-radius: 999px;
      padding: 8px 13px;
      font-size: 0.86rem;
      background: #0f172a;
      border-color: #334155;
      color: #ffffff;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28);
      margin-left: auto;
    }
    body.mode-exam-running .timer::before {
      color: #60a5fa;
    }
    body.mode-exam-running .exam-head {
      margin-top: 0;
      padding: 10px 12px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    }
    body.mode-exam-running .exam-head-subtitle {
      margin-top: 6px;
      font-size: 0.96rem;
      color: #475569;
      font-weight: 600;
    }
    body.mode-exam-running .exam-head-title {
      font-size: 1.32rem;
      letter-spacing: -0.01em;
      line-height: 1.2;
    }
    body.mode-exam-running .exam-head-badge--count {
      font-size: 0.9rem;
      padding: 9px 12px;
      border-radius: 10px;
    }
    body.mode-exam-running #submitBtn {
      min-height: 44px;
      border-radius: 12px;
      padding: 10px 16px;
      font-size: 0.95rem;
    }
    body.mode-exam-running .status-bar {
      padding: 8px;
      gap: 8px;
      background: #ffffff;
    }
    body.mode-exam-running .status-bar .status-item {
      min-width: 0;
      padding: 9px 10px;
      border-radius: 10px;
      border: 1px solid #dbe4f0;
      box-shadow: none;
    }
    body.mode-exam-running .status-bar .status-label {
      font-size: 0.7rem;
      letter-spacing: 0.08em;
    }
    body.mode-exam-running .status-bar .status-value {
      font-size: 0.87rem;
    }
    body.mode-exam-running .question-card {
      border-radius: 0;
      border: none;
      box-shadow: none;
      padding: 0;
      background: transparent;
    }
    body.mode-exam-running .question-card::before {
      display: none;
    }
    body.mode-exam-running .question-shell {
      min-height: 0;
      width: 100%;
    }
    body.mode-exam-running .exam-run-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
      gap: 18px;
      align-items: start;
    }
    body.mode-exam-running .exam-run-question,
    body.mode-exam-running .exam-run-options {
      border-radius: 18px;
      border: 1px solid #dbe4f0;
      background: #ffffff;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
      padding: 16px;
    }
    body.mode-exam-running .exam-run-options {
      position: sticky;
      top: 8px;
    }
    body.mode-exam-running .options-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      padding: 0 0 12px;
      border-bottom: 1px solid #e2e8f0;
      font-size: 0.92rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
      font-weight: 800;
    }
    body.mode-exam-running .question-stem {
      margin-top: 14px;
      border-radius: 12px;
      border-color: #dbe4f0;
      min-height: 210px;
      background: #f8fafc;
      padding: 16px;
      box-shadow: none;
    }
    body.mode-exam-running .question-title,
    body.mode-exam-running .question-helper {
      display: none;
    }
    body.mode-exam-running .question-text {
      font-size: 1.03rem;
      line-height: 1.75;
      font-weight: 600;
    }
    body.mode-exam-running .question-meta-row {
      padding-bottom: 10px;
      border-bottom: 1px solid #e5e7eb;
      margin-bottom: 2px;
    }
    body.mode-exam-running .question-eyebrow,
    body.mode-exam-running .question-meta {
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 0.8rem;
      letter-spacing: 0.05em;
    }
    body.mode-exam-running .btn-report-question {
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 0.82rem;
      font-weight: 700;
      border-color: #dbe4f0;
      color: #64748b;
      background: #f8fafc;
    }
    body.mode-exam-running .btn-report-question:hover {
      border-color: #fecaca;
      color: #b91c1c;
      background: #fff1f2;
    }
    body.mode-exam-running .option-list {
      margin-top: 12px;
      gap: 10px;
    }
    body.mode-exam-running .option-row {
      border-radius: 12px;
      border-color: #dbe4f0;
      box-shadow: none;
      padding: 12px 14px;
    }
    body.mode-exam-running .option-row:hover {
      transform: none;
      box-shadow: none;
      border-color: #bfdbfe;
    }
    body.mode-exam-running .option-row--selected {
      background: #eff6ff;
      border-color: #93c5fd;
      box-shadow: none;
    }
    body.mode-exam-running .option-marker {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: #f1f5f9;
      color: #475569;
      box-shadow: none;
    }
    body.mode-exam-running .option-row--selected .option-marker {
      background: #1e3a8a;
      color: #ffffff;
      box-shadow: none;
      transform: none;
    }
    body.mode-exam-running .save-helper {
      display: none;
    }
    body.mode-exam-running .exam-actions {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 56;
      padding: 0 14px calc(10px + env(safe-area-inset-bottom));
      display: block;
      border-top: 1px solid #cbd5e1;
      background: rgba(255, 255, 255, 0.95);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.1);
    }
    body.mode-exam-running .exam-actions-inner {
      width: min(1250px, calc(100vw - 28px));
      margin: 0 auto;
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
    }
    body.mode-exam-running .exam-actions #nextBtn {
      min-width: 264px;
      min-height: 42px;
      justify-content: center;
      border-radius: 12px;
    }
    body.mode-exam-running .panel {
      padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
    .app-footer-bar {
      display: none;
      position: relative;
      min-height: 42px;
      padding: 10px 14px;
      text-align: center;
      font-size: 0.78rem;
      color: #64748b;
      font-weight: 700;
      line-height: 1.35;
      border-top: 1px solid #cbd5e1;
      background: #ffffff;
    }
    .app-footer-bar a {
      color: #1d4ed8;
      text-decoration: none;
      font-weight: 800;
    }
    .app-footer-bar a:hover {
      text-decoration: underline;
    }
    body.mode-login .app-footer-bar,
    body.mode-exam .app-footer-bar {
      display: block;
    }
    body.mode-exam-running .app-footer-bar {
      display: none !important;
    }
    body.mode-login .page,
    body.mode-exam .page {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    body.mode-login .main-grid,
    body.mode-exam .main-grid {
      flex: 1;
    }
    body.mode-login #liveTimeCard {
      display: none !important;
    }

    .reveal { animation: rise 0.7s ease both; }
    .reveal.delay-1 { animation-delay: 0.08s; }
    .reveal.delay-2 { animation-delay: 0.16s; }

    /* Reference visual sync (index/dashboard/ujian) */
    body {
      background:
        radial-gradient(circle at 8% 10%, rgba(191, 219, 254, 0.56), transparent 34%),
        radial-gradient(circle at 92% 14%, rgba(254, 240, 138, 0.52), transparent 34%),
        #e0f2fe;
    }
    .site-header {
      background: #1e3a8a;
      border-bottom: none;
      box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    .brand-logo {
      border: none;
      box-shadow: none;
      background: #ffffff;
    }
    .chip {
      background: rgba(255, 255, 255, 0.14);
      color: #dbeafe;
      border-color: rgba(255, 255, 255, 0.18);
    }
    .brand-title,
    .panel-title,
    .sidebar-title {
      font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
    }
    .brand-title {
      color: #ffffff;
      font-size: 1.08rem;
      font-weight: 800;
      letter-spacing: 0.01em;
    }
    .brand-subtitle {
      color: #bfdbfe;
      font-size: 0.72rem;
      font-weight: 600;
    }
    .panel-head {
      border-radius: 16px;
      background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
      box-shadow: 0 12px 30px rgba(30, 58, 138, 0.24);
    }
    .card {
      border-radius: 14px;
      border-color: #cbd5e1;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }
    .card-checklist {
      border-radius: 20px;
      border-color: rgba(255, 255, 255, 0.25);
    }
    .status-bar {
      border-radius: 12px;
      border-color: #cbd5e1;
      background: #f8fbff;
    }
    .status-item {
      border-radius: 10px;
    }
    .flow-card {
      border-radius: 14px;
      background: #f8fbff;
      border-color: #cbd5e1;
    }
    .question-card {
      border-radius: 18px;
      border-color: #dbe6fb;
      box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1);
    }
    .question-stem {
      border-radius: 16px;
      border-color: #dbe6fb;
    }
    .option-row {
      border-radius: 14px;
      border-color: #d8e2f3;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    }
    .option-marker {
      border-radius: 10px;
    }
    .timer {
      border-radius: 50px;
      background: #0f172a;
      border-color: #334155;
      color: #ffffff;
    }
    .timer::before {
      color: #60a5fa;
    }
    .timer.timer-danger {
      background: #fef2f2;
      color: #b91c1c;
      border-color: #fecaca;
    }
    .btn-secondary {
      border-radius: 10px;
    }
    .btn-primary {
      border-radius: 12px;
    }
    .modal-card {
      border-radius: 16px;
    }

    @keyframes rise {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

    @media (max-width: 1024px) {
      .exam-grid { grid-template-columns: 1fr; }
      .nav-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
      .site-header {
        padding: 6px 0;
      }
      .brand {
        gap: 10px;
      }
      .header-meta {
        gap: 0;
      }
      .chip,
      .brand-subtitle {
        display: none !important;
      }
      .brand-title {
        font-size: 1.06rem;
        line-height: 1.08;
      }
      .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
      }
      body.mode-exam .main-grid {
        gap: 14px;
        padding: 16px 0 24px;
      }
      body.mode-exam #userBadge .profile-header {
        gap: 12px;
      }
      body.mode-exam #userBadge .profile-welcome {
        font-size: 1.2rem;
        margin-bottom: 4px;
      }
      body.mode-exam #userBadge .profile-title {
        font-size: clamp(1.9rem, 4.2vw, 2.36rem);
        margin-bottom: 8px;
      }
      body.mode-exam-running .main-grid {
        padding: 10px 0 18px;
      }
      body.mode-exam-running .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      body.mode-exam-running .timer {
        margin-left: 0;
      }
      body.mode-exam-running .exam-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      body.mode-exam-running .exam-run-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }
      body.mode-exam-running .exam-run-status-head,
      body.mode-exam-running .exam-run-action-head {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
      }
      body.mode-exam-running .status-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      body.mode-exam-running .exam-run-layout {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      body.mode-exam-running .exam-run-options {
        position: static;
      }
    }

    /* Ensure fixed footer uses viewport (avoid transform containing block) */
    body.mode-exam-running .panel.reveal {
      animation: none !important;
      transform: none !important;
    }
    @media (min-width: 901px) and (max-width: 1120px) {
      body.mode-exam .main-grid {
        gap: 16px;
      }
    }
    @media (max-width: 900px) {
      .main-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 12px 0 30px;
      }
      .panel { order: 1; }
      .sidebar { order: 2; }
      .header-inner { flex-direction: row; align-items: center; }
      .header-meta { gap: 2px; }
      .brand { gap: 10px; }
      .brand-title { font-size: 1.1rem; }
      .brand-subtitle { display: none; }
      .chip { font-size: 8px; padding: 2px 8px; }
      .btn-secondary { padding: 7px 12px; }
      .header-actions .btn-secondary { width: auto; min-height: 38px; }
      .panel { gap: 12px; }
      .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px;
      }
      .panel-head-copy { width: 100%; }
      .panel-head-meta { width: 100%; }
      .eyebrow { font-size: 10px; letter-spacing: 0.22em; }
      .panel-head-badge { font-size: 0.74rem; padding: 7px 10px; }
      .panel-title { font-size: 1.36rem; margin: 0; }
      .panel-subtitle { font-size: 0.9rem; }
      .timer { padding: 7px 11px; font-size: 0.86rem; }
      .login-grid { margin-top: 16px; gap: 16px; }
      .card { padding: 17px; border-radius: 20px; }
      .card-auth { padding: 18px; }
      .card-checklist { padding: 18px; gap: 10px; }
      .helper { font-size: 0.9rem; }
      .card-auth .helper { max-width: none; }
      .input { min-height: 50px; font-size: 0.97rem; }
      .nav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
      .status-bar {
        display: flex;
        width: 100%;
        padding: 12px;
        gap: 10px;
      }
      .status-item { width: 100%; padding: 10px 12px; }
      .status-icon { width: 32px; height: 32px; }
      body.mode-exam-running .site-header {
        position: sticky;
        top: 0;
        transition: top 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
      }
      body.mode-exam-running.is-mobile-exam-header-float .site-header {
        position: fixed;
        transform: none;
        width: auto !important;
        max-width: none !important;
        background: rgba(30, 58, 138, 0.96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        z-index: 120;
      }
      body.mode-exam-running.is-mobile-exam-header-float .header-inner {
        padding-left: 8px;
        padding-right: 8px;
      }
      .blocked-meta { grid-template-columns: 1fr; }
      .lane-gate { padding: 14px; border-radius: 16px; }
      .lane-headline { font-size: 1.02rem; }
      .lane-choice-row { grid-template-columns: 1fr; }
      .lane-actions { grid-template-columns: 1fr; }
      .start-rules { grid-template-columns: 1fr; }
      .callout { padding: 18px; border-radius: 22px; }
      .sidebar-grid { gap: 12px; }
      .mini-card { padding: 16px; border-radius: 18px; }
      .flow-card { margin-top: 10px; padding: 14px; border-radius: 18px; }
      .exam-grid > div { display: flex; flex-direction: column; }
      #examIntro { order: 2; }
      #examBody { order: 1; }
      .sidebar-grid { grid-template-columns: 1fr; }
      .flow-steps { display: none; }
      .flow-mobile { display: block; }
      .profile-grid { grid-template-columns: 1fr; }
      .mobile-welcome { display: block; }
      .sidebar-title-desktop { display: none; }
      .sidebar-title-mobile { display: inline; }
      body.mode-login .login-left-brand-title {
        font-size: 1.35rem;
      }
      body.mode-login .login-left-brand-sub {
        font-size: 1rem;
      }
      body.mode-login .main-grid {
        display: block;
        padding: 0 0 20px;
      }
      body.mode-login .site-header {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 40;
      }
      body.mode-login .header-actions,
      body.mode-login .top-nav-tabs,
      body.mode-login .header-userbox,
      body.mode-login .chip {
        display: none !important;
      }
      body.mode-login .header-inner {
        padding: 12px 20px;
      }
      body.mode-login .brand-title {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
        font-weight: 800;
        font-size: 1.1rem;
        line-height: 1.1;
        color: #ffffff;
      }
      body.mode-login .brand-subtitle {
        display: block !important;
        margin-top: 2px;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.8);
      }
      body.mode-login .brand {
        gap: 12px;
      }
      body.mode-login .brand-logo {
        width: 35px;
        height: 35px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.4);
      }
      body.mode-login .brand-logo img {
        display: block;
        width: 23px;
        height: 23px;
        object-fit: contain;
      }
      body.mode-login .sidebar {
        display: none !important;
      }
      body.mode-login .panel {
        padding: 15px;
        min-height: calc(100vh - 78px);
        background: #f3f4f6;
        background-image: none;
      }
      body.mode-login #loginPanel {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
      }
      body.mode-login #loginPanel .card-auth {
        padding: 24px;
        border-radius: 24px;
        border-color: rgba(203, 213, 225, 0.9);
        box-shadow: none;
      }
      body.mode-login #loginPanel .card-title {
        font-size: 1.55rem;
      }
      body.mode-login #loginPanel .login-greeting-title {
        font-size: 2rem;
        letter-spacing: -0.02em;
      }
      body.mode-login #loginPanel .login-greeting-sub {
        font-size: 0.92rem;
      }
      body.mode-login #loginPanel .desktop-only { display: none !important; }
      body.mode-login #loginPanel .mobile-only {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
      }
      body.mode-login #loginPanel .login-info-box {
        padding: 12px;
        border-radius: 12px;
      }
      body.mode-login #loginPanel .login-info-box-title {
        font-size: 0.86rem;
      }
      body.mode-login #loginPanel .login-info-box-text {
        font-size: 0.86rem;
      }
      body.mode-login #loginPanel .helper {
        font-size: 0.82rem;
      }
      body.mode-login #loginPanel .label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #334155;
        font-weight: 700;
      }
      body.mode-login #loginPanel .input {
        min-height: 52px;
        border-width: 2px;
        border-radius: 12px;
        font-size: 0.94rem;
      }
      body.mode-login #loginPanel .password-toggle {
        width: 34px;
        height: 34px;
      }
      body.mode-login #loginPanel .login-help-left {
        display: none !important;
      }
      body.mode-login #loginPanel .login-help-right {
        margin-left: auto;
        background: transparent;
        border: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        appearance: none;
        -webkit-appearance: none;
      }
      body.mode-login .flow-login-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      body.mode-login .flow-login-card {
        padding: 10px 6px;
      }
      body.mode-login .flow-login-title {
        font-size: 0.84rem;
      }
      body.mode-login .flow-login-sub {
        font-size: 0.7rem;
      }
      body.mode-login .app-footer-bar {
        position: relative;
        min-height: 0;
        padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
        border-top: none;
        background: transparent;
      }
      body.mode-exam .site-header {
        position: sticky;
        top: 0;
      }
      body.mode-exam .page {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
      }
      body.mode-exam main.container.main-grid {
        padding-left: 32px;
        padding-right: 32px;
      }
      body.mode-exam .site-header .container.header-inner {
        padding-left: 32px;
        padding-right: 32px;
      }
      body.mode-exam .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px;
      }
      body.mode-exam .header-inner.reveal {
        animation: none !important;
        transform: none !important;
      }
      body.mode-exam .chip,
      body.mode-exam .header-userbox {
        display: none !important;
      }
      body.mode-exam .top-nav-tabs {
        position: fixed !important;
        left: 0;
        right: 0;
        top: auto !important;
        bottom: 0 !important;
        z-index: 55;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-top: 1px solid #cbd5e1;
        box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.08);
      }
      body.mode-exam .top-nav-btn {
        padding: 7px 4px;
        font-size: 0.64rem;
        border-radius: 8px;
        text-align: center;
        line-height: 1.1;
        background: transparent;
        color: #64748b;
        border-color: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
      }
      body.mode-exam .top-nav-btn .top-nav-icon {
        font-size: 1.04rem;
      }
      body.mode-exam .top-nav-btn .top-nav-label {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.01em;
      }
      body.mode-exam .top-nav-btn.is-active {
        background: #eff6ff;
        color: #1e3a8a;
        border-color: #bfdbfe;
      }
      body.mode-exam #logoutBtn {
        width: auto;
        height: auto;
        min-height: 38px;
        border-radius: 10px;
        padding: 8px 12px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
      }
      body.mode-exam #logoutBtn .btn-icon {
        margin: 0;
        font-size: 14px;
      }
      body.mode-exam #logoutBtn .btn-label {
        display: inline;
      }
      body.mode-exam-running #logoutBtn {
        display: none !important;
      }
      body.mode-exam .main-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 60px;
      }
      body.mode-exam #examIntro {
        padding: 14px;
      }
      body.mode-exam .app-footer-bar {
        display: none !important;
      }
      body.mode-exam .intro-tab-btn { display: none; }
      body.mode-exam .flow-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }
      body.mode-exam .lane-actions {
        grid-template-columns: 1fr;
      }
      body.mode-exam .status-bar {
        display: none;
      }
      body.mode-exam .status-bar:not(.hidden) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }
      body.mode-exam #userBadge .profile-welcome {
        font-size: 1.4rem;
      }
      body.mode-exam #userBadge .profile-title {
        font-size: 2.45rem;
      }
      body.mode-exam #userBadge .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 14px;
      }
      body.mode-exam #userBadge .profile-header {
        padding-bottom: 14px;
        margin-bottom: 2px;
      }
      body.mode-exam #userBadge .profile-note {
        margin-top: 12px;
      }
      body.mode-exam .flow-card {
        padding: 12px;
      }
      body.mode-exam .live-time-card {
        padding: 9px 10px;
      }
      body.mode-exam .live-time-clock {
        font-size: 1.15rem;
      }
      body.mode-exam .live-time-date {
        font-size: 0.74rem;
      }
      body.mode-exam-running .panel {
        gap: 10px;
      }
      body.mode-exam-running .panel-head {
        padding: 10px 12px;
      }
      body.mode-exam-running .panel-title {
        font-size: 0.95rem;
      }
      body.mode-exam-running .exam-head {
        padding: 10px;
      }
      body.mode-exam-running .exam-head-title {
        font-size: 1.1rem;
      }
      body.mode-exam-running .question-card {
        padding: 14px;
        border-radius: 14px;
      }
      body.mode-exam-running .question-card {
        padding: 14px !important;
        border-radius: 14px !important;
      }
      body.mode-exam-running .question-title {
        font-size: 1.08rem;
      }
      body.mode-exam-running .question-text {
        font-size: 1rem;
        line-height: 1.6;
      }
      body.mode-exam-running .exam-run-question,
      body.mode-exam-running .exam-run-options {
        padding: 16px !important;
      }
      body.mode-exam-running .brand-title {
        display: none;
      }
      body.mode-exam-running .header-meta {
        gap: 0;
      }
      body.mode-exam-running .exam-run-head-btn {
        width: 42px;
        height: 42px;
        border-radius: 999px;
      }
      body.mode-exam-running .top-nav-tabs,
      body.mode-exam-running .app-footer-bar {
        display: none !important;
      }
      body.mode-exam-running .exam-run-status-head {
        display: none;
      }
      body.mode-exam-running .exam-run-action-head {
        justify-content: space-between;
        gap: 6px;
      }
      body.mode-exam-running .exam-run-head-btn span {
        display: none;
      }
      body.mode-exam-running .exam-run-head-btn {
        width: 36px;
        height: 36px;
        justify-content: center;
        padding: 0;
      }
      body.mode-exam-running .exam-run-global-timer {
        min-width: 104px;
        font-size: 0.95rem;
        padding: 7px 9px;
      }
      body.mode-exam-running .exam-run-user-copy {
        display: none;
      }
      body.mode-exam-running .status-bar {
        grid-template-columns: 1fr;
      }
      body.mode-exam-running .status-bar .status-item {
        padding: 8px 10px;
      }
      body.mode-exam-running .option-row {
        padding: 10px 12px;
        gap: 10px;
      }
      body.mode-exam-running .option-marker {
        width: 34px;
        height: 34px;
      }
      body.mode-exam-running .exam-actions {
        padding-left: 10px;
        padding-right: 10px;
      }
      body.mode-exam-running .exam-actions-inner {
        width: 100%;
        min-height: 64px;
      }
      body.mode-exam-running .exam-actions #nextBtn {
        width: 100%;
        min-width: 0;
        min-height: 40px;
      }
      .exam-progress-modal-card {
        max-height: min(82vh, 680px);
      }
      .app-footer-bar {
        font-size: 0.7rem;
        padding: 8px 10px;
      }
      .toast-stack {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .reveal, .blob { animation: none; }
      .modal-swipe-handle::after,
      .modal-swipe-hint i {
        animation: none !important;
      }
    }

    #examProgressModal.modal-backdrop.slider-right {
      padding: 0;
      align-items: stretch;
      justify-content: flex-end;
    }
    #examProgressModal.modal-backdrop.slider-right .modal-card {
      width: min(92vw, 330px);
      max-width: 330px;
      height: 100vh;
      max-height: 100vh;
      border-radius: 0;
      border-top: 0;
      border-right: 0;
      border-bottom: 0;
      border-left: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
      padding: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .exam-progress-modal-card {
      max-height: none;
    }
    .exam-progress-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 20px 18px;
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
      flex-shrink: 0;
    }
    .exam-progress-head .modal-title {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--ink);
    }
    .exam-progress-close {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: #fff;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: 0.2s ease;
    }
    .exam-progress-close:hover {
      background: #f1f5f9;
    }
    .exam-progress-note {
      margin: 14px 18px 10px;
      padding: 10px 11px;
      border-radius: 10px;
      border: 1px solid rgba(147, 197, 253, 0.55);
      background: #eff6ff;
      color: #475569;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 0.9rem;
      line-height: 1.4;
      font-weight: 600;
      flex-shrink: 0;
    }
    .exam-progress-note i {
      color: #1d4ed8;
      font-size: 0.95rem;
      line-height: 1.4;
    }
    .exam-progress-legend {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 0 18px 8px;
      font-size: 0.86rem;
      color: #1e293b;
      font-weight: 700;
      flex-shrink: 0;
    }
    .exam-progress-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .exam-progress-content {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 0 18px 16px;
    }
    .exam-progress-modal-card .nav-grid {
      margin-top: 6px;
      max-height: none;
      overflow: visible;
      padding-right: 0;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      align-content: start;
    }
    .exam-progress-footer {
      border-top: 1px solid rgba(15, 23, 42, 0.08);
      padding: 10px 18px 14px;
      background: #fff;
      flex-shrink: 0;
      position: sticky;
      bottom: 0;
      z-index: 2;
    }
    @media (max-width: 900px) {
      .exam-progress-modal-card .nav-grid {
        max-height: calc(100vh - 250px);
      }
    }
    .exam-progress-submit {
      width: 100%;
      min-height: 44px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(180deg, #22c55e, #16a34a);
      color: #fff;
      box-shadow: 0 8px 16px rgba(22, 163, 74, 0.22);
      font-weight: 800;
      font-size: 0.98rem;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }
    .exam-progress-submit:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 20px rgba(22, 163, 74, 0.28);
      filter: brightness(1.02);
    }
    .exam-progress-submit:disabled {
      cursor: not-allowed;
      opacity: 0.62;
      transform: none;
      box-shadow: none;
      filter: none;
    }

    /* --- Final pass: align running exam view with referensi/ujian.html --- */
    body.mode-exam-running .chip {
      display: none !important;
    }
    body.mode-exam-running .panel-head,
    body.mode-exam-running .exam-head,
    body.mode-exam-running #examStatusBar,
    body.mode-exam-running #examStatusAlert,
    body.mode-exam-running #submitBtn {
      display: none !important;
    }
    body.mode-exam-running .main-grid {
      padding-top: 22px;
      gap: 0;
    }
    body.mode-exam-running .panel {
      padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
    body.mode-exam-running .question-card {
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      margin-top: 0;
    }
    @media (max-width: 900px) {
      body.mode-exam-running .site-header {
        position: sticky;
        top: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(30, 58, 138, 0.96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        z-index: 100;
      }
      body.mode-exam-running .main-grid {
        padding-top: 22px;
      }
    }
    body.mode-exam-running .exam-run-layout {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
      gap: 28px;
      align-items: flex-start;
    }
    body.mode-exam-running .exam-run-question,
    body.mode-exam-running .exam-run-options {
      border-radius: 20px;
      border: 1px solid #e2e8f0;
      box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.08);
      padding: 34px;
      background: #fff;
    }
    body.mode-exam-running .exam-run-options {
      top: 0;
    }
    body.mode-exam-running .question-stem {
      min-height: 260px;
      margin-top: 0;
      border-radius: 0;
      border: none;
      background: transparent;
      padding: 0;
    }
    body.mode-exam-running .question-text {
      font-size: 1.15rem;
      line-height: 1.75;
      font-weight: 500;
      color: #1f2937;
    }
    body.mode-exam-running .question-meta-row {
      border-bottom: 2px solid #f1f5f9;
      margin-bottom: 20px;
      padding-bottom: 18px;
    }
    body.mode-exam-running .option-list {
      margin-top: 16px;
      gap: 14px;
    }
    body.mode-exam-running .option-row {
      padding: 16px 18px;
      border-width: 2px;
      border-radius: 16px;
    }
    body.mode-exam-running .option-marker {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      font-size: 1rem;
    }
    body.mode-exam-running .exam-run-status-head {
      gap: 0;
      padding: 6px 16px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.24);
      border: 1px solid rgba(255, 255, 255, 0.12);
    }
    body.mode-exam-running .exam-run-status-chip {
      background: transparent;
      border: 0;
      border-right: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 0;
      padding: 0 18px 0 14px;
      min-height: 32px;
    }
    body.mode-exam-running .exam-run-status-chip:last-child {
      border-right: 0;
      padding-right: 0;
    }
    body.mode-exam-running .exam-run-status-chip span {
      font-size: 0.66rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    body.mode-exam-running .exam-run-status-chip strong {
      font-size: 0.82rem;
      text-transform: none;
    }
    body.mode-exam-running .exam-run-action-head {
      gap: 10px;
    }
    body.mode-exam-running .exam-run-head-btn {
      border-radius: 999px;
      min-height: 40px;
      padding: 8px 16px;
      font-size: 0.96rem;
      background: rgba(255, 255, 255, 0.1);
    }
    body.mode-exam-running .exam-run-head-btn.icon-only {
      width: 40px;
      min-height: 40px;
      padding: 0;
    }
    body.mode-exam-running .exam-run-global-timer {
      min-width: 138px;
      padding: 10px 16px;
      font-size: 1.02rem;
      border-radius: 999px;
      letter-spacing: 0.16em;
    }
    @media (max-width: 1280px) {
      body.mode-exam-running .exam-run-layout {
        gap: 18px;
      }
      body.mode-exam-running .exam-run-question,
      body.mode-exam-running .exam-run-options {
        padding: 22px;
      }
      body.mode-exam-running .exam-run-status-chip {
        padding-left: 10px;
        padding-right: 12px;
      }
      body.mode-exam-running .exam-run-head-btn {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 0.85rem;
      }
      body.mode-exam-running .exam-run-global-timer {
        min-width: 116px;
        font-size: 0.92rem;
        padding: 8px 10px;
      }
      body.mode-exam-running .exam-run-user-copy .name {
        font-size: 0.84rem;
      }
      body.mode-exam-running .exam-run-user-copy .nisn {
        font-size: 0.66rem;
      }
    }

    /* Running exam sync override: keep close to referensi/ujian.html proportions */
    body.mode-exam-running .container {
      max-width: 1220px;
      padding-left: clamp(14px, 2vw, 24px);
      padding-right: clamp(14px, 2vw, 24px);
    }
    body.mode-exam-running .main-grid {
      padding-top: 14px;
      padding-bottom: calc(104px + env(safe-area-inset-bottom));
      gap: 0;
    }
    body.mode-exam-running .panel {
      width: 100%;
      margin: 0 auto;
      padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    body.mode-exam-running .question-card {
      max-width: 1120px;
      margin: 0 auto;
    }
    body.mode-exam-running .exam-run-layout {
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 24px;
      align-items: start;
    }
    body.mode-exam-running .exam-run-question {
      padding: 24px 24px 18px;
    }
    body.mode-exam-running .exam-run-options {
      padding: 20px;
      position: sticky;
      top: 0;
    }
    body.mode-exam-running .question-stem {
      min-height: 0;
      margin-top: 8px;
      padding: 0;
      background: transparent;
      border: 0;
      border-radius: 0;
    }
    body.mode-exam-running .question-meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: nowrap;
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid #e2e8f0;
    }
    body.mode-exam-running .question-meta-group {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      min-width: 0;
    }
    body.mode-exam-running .btn-report-question {
      margin-left: auto;
      white-space: nowrap;
      flex-shrink: 0;
    }
    body.mode-exam-running .question-text {
      font-size: 1.02rem;
      line-height: 1.75;
    }
    body.mode-exam-running .option-list {
      margin-top: 12px;
      gap: 10px;
    }
    body.mode-exam-running .option-row {
      padding: 12px 14px;
      border-radius: 13px;
    }
    body.mode-exam-running .exam-actions {
      padding: 0 14px calc(10px + env(safe-area-inset-bottom));
    }
    body.mode-exam-running .exam-actions-inner {
      width: min(1220px, calc(100vw - 28px));
      min-height: 72px;
      justify-content: flex-end;
    }
    body.mode-exam-running .exam-actions #nextBtn {
      width: auto;
      min-width: 220px;
      max-width: 300px;
      min-height: 42px;
      border-radius: 12px;
    }

    @media (max-width: 1280px) {
      body.mode-exam-running .container {
        max-width: 1140px;
      }
      body.mode-exam-running .question-card {
        max-width: 1040px;
      }
      body.mode-exam-running .exam-run-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 18px;
      }
    }

    @media (max-width: 1024px) {
      body.mode-exam-running .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
      }
      body.mode-exam-running .question-card {
        max-width: 100%;
      }
      body.mode-exam-running .exam-run-layout {
        grid-template-columns: 1fr;
        gap: 14px;
      }
      body.mode-exam-running .exam-run-options {
        position: static;
      }
      body.mode-exam-running .question-meta-row {
        flex-wrap: wrap;
      }
      body.mode-exam-running .btn-report-question {
        margin-left: 0;
      }
      body.mode-exam-running .exam-actions-inner {
        width: 100%;
      }
      body.mode-exam-running .exam-actions #nextBtn {
        width: 100%;
        min-width: 0;
        max-width: none;
      }
    }

    /* Width stabilization for exam running (prevent shrink by content length) */
    body.mode-exam-running #examBody,
    body.mode-exam-running #questionWrap,
    body.mode-exam-running .question-shell,
    body.mode-exam-running .exam-run-layout,
    body.mode-exam-running .exam-run-question {
      width: 100%;
      min-width: 0;
    }
    body.mode-exam-running .question-card {
      width: 100%;
      max-width: none;
    }
    body.mode-exam-running .exam-run-layout {
      grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    }
    body.mode-exam-running .exam-run-question {
      min-width: 680px;
    }
    body.mode-exam-running .exam-actions-inner {
      width: min(100%, calc(1220px - 28px));
    }

    @media (max-width: 1280px) {
      body.mode-exam-running .exam-run-question {
        min-width: 0;
      }
      body.mode-exam-running .exam-run-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
      }
      body.mode-exam-running .exam-actions-inner {
        width: min(100%, calc(1140px - 28px));
      }
    }
    @media (max-width: 1024px) {
      body.mode-exam-running .exam-run-layout {
        grid-template-columns: 1fr;
      }
      body.mode-exam-running .exam-actions-inner {
        width: 100%;
      }
    }

    /* Final polish: header + footer sizing aligned to referensi */
    body.mode-exam-running .container {
      max-width: 1640px;
      padding-left: 40px;
      padding-right: 40px;
    }
    body.mode-exam-running .header-inner {
      padding-left: 40px;
      padding-right: 40px;
      gap: 14px;
    }
    body.mode-exam-running .exam-run-status-head {
      padding: 6px 14px;
      gap: 0;
    }
    body.mode-exam-running .exam-run-status-chip {
      padding: 0 14px 0 12px;
    }
    body.mode-exam-running .exam-run-status-chip strong {
      font-size: 0.92rem;
    }

    body.mode-exam-running .exam-actions {
      left: 0;
      right: 0;
      padding: 0 0 calc(10px + env(safe-area-inset-bottom));
      background: rgba(255, 255, 255, 0.9);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border-top: 1px solid #dbe4f0;
      box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
    }
    body.mode-exam-running .exam-actions-inner {
      width: calc(100vw - 80px);
      max-width: 1480px;
      min-height: 74px;
      margin: 0 auto;
      padding: 0 8px;
      justify-content: flex-end;
      gap: 10px;
    }
    body.mode-exam-running .exam-actions #nextBtn {
      min-width: 230px;
      border-radius: 12px;
    }

    @media (max-width: 1280px) {
      body.mode-exam-running .container {
        max-width: 1360px;
        padding-left: 28px;
        padding-right: 28px;
      }
      body.mode-exam-running .header-inner {
        padding-left: 28px;
        padding-right: 28px;
      }
      body.mode-exam-running .exam-actions-inner {
        width: calc(100vw - 56px);
      }
    }

    @media (max-width: 1024px) {
      body.mode-exam-running .container {
        padding-left: 16px;
        padding-right: 16px;
      }
      body.mode-exam-running .header-inner {
        padding-left: 16px;
        padding-right: 16px;
      }
      body.mode-exam-running .exam-run-status-head {
        gap: 0;
      }
      body.mode-exam-running .exam-run-status-chip {
        padding: 0 10px;
      }
      body.mode-exam-running .exam-actions-inner {
        width: calc(100vw - 32px);
        max-width: none;
        padding: 0;
      }
      body.mode-exam-running .exam-actions #nextBtn {
        width: 100%;
        min-width: 0;
        max-width: none;
      }
    }

    /* Header status chip parity with referensi */
    body.mode-exam-running .exam-run-status-chip {
      position: relative;
      display: grid;
      grid-template-columns: auto auto;
      grid-template-rows: auto auto;
      align-items: center;
      column-gap: 8px;
      row-gap: 1px;
      min-height: 34px;
    }
    body.mode-exam-running .exam-run-status-chip i {
      grid-row: 1 / span 2;
      grid-column: 1;
      font-size: 1rem;
    }
    body.mode-exam-running .exam-run-status-chip .signal-bars {
      grid-row: 1 / span 2;
      grid-column: 1;
      display: inline-flex;
      align-items: flex-end;
      gap: 3px;
      height: 16px;
    }
    body.mode-exam-running .exam-run-status-chip .signal-bars span {
      width: 4px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.5);
    }
    body.mode-exam-running .exam-run-status-chip .signal-bars span:nth-child(1) { height: 6px; }
    body.mode-exam-running .exam-run-status-chip .signal-bars span:nth-child(2) { height: 9px; }
    body.mode-exam-running .exam-run-status-chip .signal-bars span:nth-child(3) { height: 12px; }
    body.mode-exam-running .exam-run-status-chip .signal-bars span:nth-child(4) { height: 15px; }
    body.mode-exam-running .exam-run-status-chip--connection > i {
      display: none;
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-normal .signal-bars span {
      background: linear-gradient(180deg, #7cb7ff 0%, #3b82f6 100%);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(1),
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(2) {
      background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(3),
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(4) {
      background: rgba(251, 191, 36, 0.35);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-offline .signal-bars span {
      background: rgba(148, 163, 184, 0.35);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-offline .signal-bars span:nth-child(1) {
      background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
    }

    body.mode-exam-running .exam-run-status-chip--device i {
      color: #4ade80;
    }
    body.mode-exam-running .exam-run-status-chip--device.is-warning i {
      color: #fbbf24;
    }
    body.mode-exam-running .exam-run-status-chip--device.is-heavy i {
      color: #fb923c;
    }

    body.mode-exam-running .exam-run-status-chip--server i {
      color: #ffffff;
    }
    body.mode-exam-running .exam-run-status-chip--server.is-slow i {
      color: #fbbf24;
    }
    body.mode-exam-running .exam-run-status-chip--server.is-offline i {
      color: #fca5a5;
    }

    /* Final override: indikator header ujian 1:1 referensi */
    body.mode-exam-running .exam-run-status-head {
      gap: 20px;
      padding: 8px 24px;
      border-radius: 50px;
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    body.mode-exam-running .exam-run-status-chip {
      display: grid;
      grid-template-columns: auto auto;
      grid-template-rows: auto auto;
      align-items: center;
      column-gap: 10px;
      row-gap: 0;
      background: transparent;
      border: 0;
      border-right: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 0;
      padding: 0 20px 0 0;
    }
    body.mode-exam-running .exam-run-status-chip:last-child {
      border-right: 0;
      padding-right: 0;
    }
    body.mode-exam-running .exam-run-status-chip::before {
      content: '';
      position: absolute;
      inset: 6px 6px 6px 6px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(255, 255, 255, 0.04);
      opacity: 0;
      transition: opacity 0.2s ease;
      pointer-events: none;
    }
    body.mode-exam-running .exam-run-status-chip.is-active::before {
      opacity: 1;
    }
    body.mode-exam-running .exam-run-status-chip span {
      grid-row: 1;
      grid-column: 2;
      display: block;
      margin: 0;
      color: #cbd5e1;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      font-size: 0.65rem;
      font-weight: 800;
      line-height: 1;
      margin-bottom: -2px;
    }
    body.mode-exam-running .exam-run-status-chip strong {
      grid-row: 2;
      grid-column: 2;
      display: block;
      margin: 0;
      color: #ffffff;
      text-transform: none;
      font-size: 0.85rem;
      font-weight: 800;
      line-height: 1;
      margin-top: -2px;
    }
    body.mode-exam-running .exam-run-status-chip i {
      grid-row: 1 / span 2;
      grid-column: 1;
      font-size: 1.6rem;
      line-height: 1;
      color: #93c5fd;
    }

    body.mode-exam-running .exam-run-status-chip--connection > i {
      display: none !important;
    }
    body.mode-exam-running .exam-run-status-chip--connection .signal-bars {
      grid-row: 1 / span 2;
      grid-column: 1;
      display: inline-flex;
      align-items: flex-end;
      gap: 3px;
      height: 24px;
      margin-right: 1px;
    }
    body.mode-exam-running .exam-run-status-chip--connection .signal-bars span {
      width: 4px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.45);
    }
    body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(1) { height: 8px; }
    body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(2) { height: 12px; }
    body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(3) { height: 16px; }
    body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(4) { height: 20px; }
    body.mode-exam-running .exam-run-status-chip--connection.is-normal .signal-bars span {
      background: linear-gradient(180deg, #7cc5ff 0%, #4c8dff 100%);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(1),
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(2) {
      background: linear-gradient(180deg, #facc15 0%, #f59e0b 100%);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(3),
    body.mode-exam-running .exam-run-status-chip--connection.is-weak .signal-bars span:nth-child(4) {
      background: rgba(250, 204, 21, 0.34);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-offline .signal-bars span {
      background: rgba(148, 163, 184, 0.34);
    }
    body.mode-exam-running .exam-run-status-chip--connection.is-offline .signal-bars span:nth-child(1) {
      background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
    }

    body.mode-exam-running .exam-run-status-chip--device i {
      color: #4ade80;
    }
    body.mode-exam-running .exam-run-status-chip--device.is-warning i {
      color: #fbbf24;
    }
    body.mode-exam-running .exam-run-status-chip--device.is-heavy i {
      color: #fb923c;
    }

    body.mode-exam-running .exam-run-status-chip--server i {
      color: #f8fafc;
    }
    body.mode-exam-running .exam-run-status-chip--server.is-slow i {
      color: #fbbf24;
    }
    body.mode-exam-running .exam-run-status-chip--server.is-offline i {
      color: #fca5a5;
    }
    body.mode-exam-running .exam-run-status-chip--battery i {
      color: #93c5fd;
    }
    body.mode-exam-running .exam-run-status-chip--battery.is-warning i {
      color: #fbbf24;
    }
    body.mode-exam-running .exam-run-status-chip--battery.is-heavy i {
      color: #fb923c;
    }
    body.mode-exam-running .exam-run-status-chip--battery.is-charging i {
      color: #22c55e;
    }

    body.mode-exam-running .exam-run-status-chip.hidden {
      display: none !important;
    }
    body.mode-exam-running .exam-run-status-head.has-battery #examRunBatteryChip {
      border-right: 0;
      padding-right: 4px;
    }
    body.mode-exam-running .exam-run-status-head:not(.has-battery) #examRunServerChip {
      border-right: 0;
      padding-right: 4px;
    }

    @media (min-width: 1101px) {
      body.mode-exam-running .header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 16px;
      }
      body.mode-exam-running .brand {
        grid-column: 1;
      }
      body.mode-exam-running .exam-run-tools {
        display: contents !important;
      }
      body.mode-exam-running .exam-run-status-head {
        grid-column: 2;
        justify-self: center;
      }
      body.mode-exam-running .exam-run-action-head {
        grid-column: 3;
        justify-self: end;
      }
    }

    @media (max-width: 1100px) {
      body.mode-exam-running .exam-run-status-head {
        padding: 6px 12px;
      }
      body.mode-exam-running .exam-run-status-chip {
        padding: 0 14px 0 10px;
        min-height: 44px;
      }
      body.mode-exam-running .exam-run-status-chip span {
        font-size: 0.64rem;
      }
      body.mode-exam-running .exam-run-status-chip strong {
        font-size: 0.84rem;
      }
      body.mode-exam-running .exam-run-status-chip i {
        font-size: 1.1rem;
      }
      body.mode-exam-running .exam-run-status-chip--connection .signal-bars {
        gap: 3px;
        height: 14px;
      }
      body.mode-exam-running .exam-run-status-chip--connection .signal-bars span {
        width: 3px;
      }
      body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(1) { height: 4px; }
      body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(2) { height: 7px; }
      body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(3) { height: 10px; }
      body.mode-exam-running .exam-run-status-chip--connection .signal-bars span:nth-child(4) { height: 13px; }
    }

    /* Final override: footer tombol Selanjutnya mengikuti referensi ujian.html */
    body.mode-exam-running .exam-actions {
      position: fixed !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      z-index: 80 !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding: 0 !important;
      border-top: 1px solid #e2e8f0 !important;
      background: rgba(255, 255, 255, 0.9) !important;
      -webkit-backdrop-filter: blur(10px) !important;
      backdrop-filter: blur(10px) !important;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
    }
    body.mode-exam-running .exam-actions-inner {
      width: 100% !important;
      max-width: 1250px !important;
      height: 80px !important;
      margin: 0 auto !important;
      padding: 0 40px !important;
      justify-content: flex-end !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }
    body.mode-exam-running .exam-actions #nextBtn {
      min-width: 230px !important;
      max-width: 300px !important;
      width: auto !important;
      min-height: 48px !important;
      border-radius: 12px !important;
      padding: 14px 28px !important;
      box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2) !important;
    }
    body.mode-exam-running .panel {
      padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    }

    @media (max-width: 1024px) {
      body.mode-exam-running .exam-actions-inner {
        padding: 0 24px !important;
      }
    }

    @media (max-width: 700px) {
      body.mode-exam-running .exam-actions-inner {
        padding: 0 16px !important;
      }
      body.mode-exam-running .exam-actions #nextBtn {
        min-width: 0 !important;
      }
    }

    /* Fix: modal peringatan di atas persiapan ujian */
    .modal-backdrop.centered {
      z-index: 9800 !important;
    }
