/* ==========================================================================
   CAT CPNS 2026 — Enhanced Distraction-Free & Anti-Scroll Focus Workspace
   - Maximized question & options visible in single viewport without scroll
   - Streamlined, clean navbar with essential info only + overflow menu
   - Quiet, balanced bottom bar with single clear primary CTA (Lanjut →)
   - Fully responsive across Mobile, Tablet, Laptop, Desktop, and Ultra-wide
   - High-contrast AAA accessibility compliance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@600;700;800&display=swap');

:root {
  /* Surfaces */
  --bg-app: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-hover: #F1F5F9;

  /* Typography */
  --text-main: #0F172A;
  --text-body: #1E293B;
  --text-secondary: #334155;
  --text-muted: #64748B;

  /* Borders & Focus */
  --border-soft: #E2E8F0;
  --border-subtle-hover: #94A3B8;
  --focus-outline: #1E40AF;
  --focus-halo: rgba(30, 64, 175, 0.18);

  /* Brand Accents */
  --primary: #1E40AF;
  --primary-hover: #1D4ED8;
  --primary-soft: #EFF6FF;
  --primary-text-on-soft: #1E3A8A;
  --primary-border: #1E40AF;

  /* Status Accents */
  --emerald-text: #065F46;
  --emerald-soft: #ECFDF5;
  --emerald-border: #10B981;

  --amber-text: #78350F;
  --amber-soft: #FEF3C7;
  --amber-active-bg: #FDE68A;
  --amber-border: #D97706;

  --rose-text: #991B1B;
  --rose-solid: #DC2626;
  --rose-solid-hover: #B91C1C;
  --rose-soft: #FEF2F2;
  --rose-border: #FCA5A5;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 28px -6px rgba(15, 23, 42, 0.16);

  /* Layout Constants */
  --header-height: 48px;
  --footer-height: 52px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Fits in desktop viewport without whole-page scroll */
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--text-main);
  color: var(--bg-card);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--focus-outline);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Offline Banner */
.offline-banner {
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  color: #92400E;
  padding: 5px 16px;
  font-size: 0.76rem;
  z-index: 45;
  flex-shrink: 0;
}
.offline-banner.hidden { display: none; }
.offline-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.offline-restore-btn {
  background: #B45309;
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==========================================================================
   1. STREAMLINED NAVBAR (Minimal Distraction, Essential Info Only)
   ========================================================================== */
.exam-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 18px;
  z-index: 40;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Left: Compact Brand */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.1;
}

/* Center: Mode Switcher + Slim Timer Pill */
.header-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-switcher-container {
  display: inline-flex;
  align-items: center;
  background: #E2E8F0;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
  flex-shrink: 0;
}

.mode-pill-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 120ms ease;
  line-height: 1;
}

.mode-pill-btn:hover {
  color: var(--text-main);
}

.mode-pill-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

#btn-mode-study.mode-pill-btn.active {
  color: #059669;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 150ms ease;
  flex-shrink: 0;
}

.timer-box.study-mode {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.timer-box.study-mode .timer-icon {
  color: #059669;
}

.timer-alert-tag.study-tag {
  background: #D1FAE5;
  color: #047857;
}

.timer-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.timer-digits {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.timer-alert-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}
.timer-alert-tag.hidden { display: none; }

.timer-box.warning-level-1 {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber-text);
}
.timer-box.warning-level-1 .timer-icon { color: var(--amber-text); }

.timer-box.warning-level-2 {
  background: var(--rose-soft);
  border-color: var(--rose-solid);
  color: var(--rose-text);
  animation: subtle-pulse 1.4s ease-in-out infinite;
}
.timer-box.warning-level-2 .timer-icon { color: var(--rose-text); }

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.98); }
}

/* Right: Daftar Soal Button + Overflow Menu Button */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 100ms ease;
}

.btn-header-ghost:hover,
.btn-header-ghost.active {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-subtle-hover);
}

.menu-anchor {
  position: relative;
}

.btn-header-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 100ms ease;
}

.btn-header-icon:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-subtle-hover);
}

/* Overflow Dropdown Menu */
.header-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.header-menu.hidden { display: none; }

.menu-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  text-align: left;
  transition: background 100ms ease;
}
.menu-profile:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.candidate-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-profile-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.candidate-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-id {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.menu-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 0.72rem;
}

.net-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}
.net-status-pill.online { color: var(--emerald-text); }
.net-status-pill.offline { color: var(--amber-text); }
.net-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.autosave-status {
  color: var(--text-muted);
  font-weight: 600;
}
.autosave-status.synced { color: var(--emerald-text); }
.autosave-status.saving { color: var(--amber-text); }

.menu-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  width: 100%;
  text-align: left;
  transition: all 100ms ease;
}
.menu-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.menu-item-danger {
  color: var(--rose-solid);
}
.menu-item-danger:hover {
  background: var(--rose-soft);
  color: var(--rose-text);
}

/* ==========================================================================
   2. MAIN WORKSPACE (Maximized Vertical Fill & Responsive)
   ========================================================================== */
.workspace-container {
  flex: 1;
  min-height: 0; /* Critical for inner scrolling */
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

/* Question Card */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Review Banner Strip (Slim, Compact) */
.review-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: #FFFFFF;
  padding: 6px 16px;
  font-size: 0.78rem;
  border-bottom: 1px solid #3B82F6;
  flex-shrink: 0;
}
.review-banner-top.hidden { display: none; }

.review-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.review-lock-icon { font-size: 0.9rem; }
.review-banner-title { font-weight: 700; }

.review-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-print-report-top,
.btn-reopen-score {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 100ms ease;
}
.btn-print-report-top {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-print-report-top:hover { background: rgba(255, 255, 255, 0.25); }

.btn-reopen-score {
  background: #FFFFFF;
  color: #1E3A8A;
}
.btn-reopen-score:hover { background: #EFF6FF; }

/* Single Compact Meta Bar */
.card-top-bar {
  padding: 7px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.question-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.badge-qnum {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}
.qnum-total {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.badge-subtest {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.badge-subtest.twk { background: var(--primary-soft); color: var(--primary-text-on-soft); }
.badge-subtest.tiu { background: var(--emerald-soft); color: var(--emerald-text); }
.badge-subtest.tkp { background: var(--amber-soft); color: var(--amber-text); }

.topic-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.badge-flagged-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--amber-soft);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-flagged-active.hidden { display: none; }

.answer-state-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.answer-state-chip.answered {
  color: var(--emerald-text);
  font-weight: 700;
}

/* ==========================================================================
   3. CARD BODY & ANTI-SCROLL CONTENT LAYOUT
   ========================================================================== */
.card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Question Stem: Clean, Highly Legible, Moderate Height */
.question-stem {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-body);
  font-weight: 500;
  text-align: left;
  flex-shrink: 0;
}

/* Anti-CLS Media Viewport */
.media-box {
  border: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  flex-shrink: 0;
}
.media-box.hidden { display: none; }
.media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.btn-replay-skeleton {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
}
.media-viewport {
  position: relative;
  width: 100%;
  height: 160px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.skeleton-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.skeleton-overlay.hidden { display: none; }
@keyframes skeleton-wave {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==========================================================================
   4. ANSWER OPTIONS: Compact, Ergonomic & Single-View Optimized
   ========================================================================== */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.option-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-button {
  min-height: 40px;
  flex: 1;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 70ms ease, border-color 70ms ease, box-shadow 70ms ease;
}

.option-button:hover:not(:disabled):not(.selected) {
  border-color: #CBD5E1;
  background: var(--bg-subtle);
}

.option-button.selected {
  border: 2px solid var(--primary-border);
  background: var(--primary-soft);
  box-shadow: 0 1px 4px rgba(30, 64, 175, 0.12);
}

.option-button.eliminated {
  opacity: 0.42;
  background: var(--bg-subtle);
}
.option-button.eliminated .option-label {
  text-decoration: line-through;
  color: var(--text-muted);
}
.option-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Option Letter Badge */
.option-key {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 70ms ease;
}

.option-button.selected .option-key {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
}

.option-label {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.42;
  color: var(--text-body);
  font-weight: 400;
}

.option-button.selected .option-label {
  font-weight: 700;
  color: var(--primary-text-on-soft);
}

/* Option Elimination Button (Pure '✕', zero visual noise) */
.btn-eliminate-opt {
  width: 26px;
  height: 26px;
  border: none !important;
  background: transparent !important;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 100ms ease, color 100ms ease;
}

.option-wrapper:hover .btn-eliminate-opt {
  opacity: 0.85;
  color: var(--text-secondary);
}

.btn-eliminate-opt.active {
  opacity: 1;
  color: var(--rose-solid);
  font-weight: 800;
}

/* Helper Footer Row */
.helper-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 2px;
  flex-shrink: 0;
}

/* Shortcut Tooltip Widget (Bottom Left - Icon + Label default, Hover for Tooltip) */
.shortcut-widget {
  position: fixed;
  bottom: calc(var(--footer-height) + 12px);
  left: 20px;
  z-index: 30;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.shortcut-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 140ms ease;
}

.shortcut-badge-pill:hover,
.shortcut-widget:hover .shortcut-badge-pill,
.shortcut-widget.force-visible .shortcut-badge-pill {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.16);
  transform: translateY(-1px);
}

.shortcut-badge-icon {
  font-size: 0.82rem;
}

.shortcut-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.72rem;
  color: var(--text-body);
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.shortcut-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: #FFFFFF transparent transparent transparent;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.08));
}

.shortcut-widget:hover .shortcut-tooltip,
.shortcut-widget:focus-within .shortcut-tooltip,
.shortcut-widget.force-visible .shortcut-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.shortcut-tooltip kbd {
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.shortcut-dot {
  color: var(--border-subtle-hover);
}

.btn-retry-study {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 120ms ease;
}
.btn-retry-study:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}
.btn-retry-study.hidden { display: none; }

.btn-clear-choice {
  color: var(--rose-text);
  font-weight: 600;
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
}
.btn-clear-choice.hidden { display: none; }

/* ==========================================================================
   5. REVIEW MODE STYLES & EXPLANATIONS
   ========================================================================== */
.option-button.review-mode {
  cursor: default;
}

.option-button.correct-user-pick {
  background: #F0FDF4;
  border: 2px solid #22C55E;
}
.option-button.correct-user-pick .option-key {
  background: #22C55E;
  border-color: #22C55E;
  color: #FFFFFF;
}
.option-button.correct-user-pick .option-label {
  color: #14532D;
  font-weight: 700;
}

.option-button.correct-key-target {
  background: #F0FDF4;
  border: 2px solid #86EFAC;
}
.option-button.correct-key-target .option-key {
  background: #16A34A;
  border-color: #16A34A;
  color: #FFFFFF;
}
.option-button.correct-key-target .option-label {
  color: #14532D;
  font-weight: 600;
}

.option-button.wrong-user-pick {
  background: #FEF2F2;
  border: 2px solid #EF4444;
}
.option-button.wrong-user-pick .option-key {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
}
.option-button.wrong-user-pick .option-label {
  color: #7F1D1D;
  font-weight: 600;
}

.option-button.max-score-opt {
  background: #F0FDF4;
  border: 2px solid #22C55E;
}
.option-button.max-score-opt .option-key {
  background: #22C55E;
  border-color: #22C55E;
  color: #FFFFFF;
}

.option-button.selected-review {
  background: #EFF6FF;
  border: 2px solid #3B82F6;
}
.option-button.selected-review .option-key {
  background: #1E40AF;
  border-color: #1E40AF;
  color: #FFFFFF;
}

.review-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.review-tag.correct-tag { background: #DCFCE7; color: #15803D; }
.review-tag.key-tag { background: #DCFCE7; color: #15803D; }
.review-tag.wrong-tag { background: #FEE2E2; color: #B91C1C; }
.review-tag.max-tag { background: #DCFCE7; color: #15803D; }
.review-tag.user-tag { background: #DBEAFE; color: #1E40AF; }
.review-tag.score-tag { background: #F1F5F9; color: #475569; }

/* Explanation Box in Review */
.review-explanation-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.review-explanation-box.hidden { display: none; }

.explanation-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #1E40AF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.explanation-heading {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0 8px;
}
.explanation-key-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 0.84rem;
}
.key-banner-label { font-weight: 700; color: #1E3A8A; }
.key-banner-val { font-weight: 800; color: #1E40AF; }

.tkp-breakdown-card {
  margin-bottom: 10px;
}
.tkp-breakdown-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.tkp-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.tkp-score-item {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tkp-score-item.best { border-color: #86EFAC; background: #F0FDF4; }
.tkp-score-item.user-choice { border-color: #93C5FD; background: #EFF6FF; }
.tkp-item-letter { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }
.tkp-item-score { font-size: 0.86rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.tkp-score-item.best .tkp-item-score { color: #15803D; }
.tkp-item-tag { font-size: 0.62rem; font-weight: 800; padding: 1px 5px; border-radius: 999px; }
.tkp-item-tag.best-tag { background: #DCFCE7; color: #15803D; }

.explanation-content-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.explanation-prose {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #1E293B;
}

/* ==========================================================================
   6. SIDEBAR: DAFTAR SOAL (Responsive Drawer & Grid)
   ========================================================================== */
/* Slide-Over Drawer: Always Overlay (Never in Document Flow) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

body.drawer-open .sidebar-backdrop {
  display: block;
}

.nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 88vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border-soft);
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.16);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

body.drawer-open .nav-sidebar {
  transform: translateX(0);
}

.sidebar-top {
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}
.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-pct {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}
.btn-hide-sidebar {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-hide-sidebar:hover { background: var(--bg-hover); color: var(--text-main); }

.progress-track {
  height: 5px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}
.progress-fill-answered { background: #10B981; transition: width 150ms ease; }
.progress-fill-flagged { background: #F59E0B; transition: width 150ms ease; }

.status-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.counter-pill {
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 80ms ease;
}
.counter-pill strong { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; }
.counter-pill.answered { color: var(--emerald-text); border-color: #A7F3D0; }
.counter-pill.flagged { color: var(--amber-text); border-color: #FDE68A; }
.counter-pill.unanswered { color: var(--text-muted); }
.counter-pill[aria-pressed="true"] { outline: 2px solid var(--primary); }

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.cat-tab {
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  border: 1px solid transparent;
  transition: all 80ms ease;
}
.cat-tab:hover { background: #FFFFFF; }
.cat-tab.active {
  background: #FFFFFF;
  border-color: var(--border-soft);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quick-jump-box {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.quick-jump-row {
  display: flex;
  gap: 6px;
}
.quick-jump-input {
  flex: 1;
  padding: 4px 8px;
  font-size: 0.74rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
}
.quick-jump-input:focus { border-color: var(--primary); }
.btn-quick-jump {
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #FFFFFF;
}

.number-grid {
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  overflow-y: auto;
  flex: 1;
}

.grid-num-btn {
  position: relative;
  height: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--border-soft);
  background: #FFFFFF;
  color: var(--text-secondary);
  transition: all 70ms ease;
}
.grid-num-btn:hover { border-color: var(--primary); color: var(--primary); }

.grid-num-btn.state-unanswered { background: var(--bg-subtle); color: var(--text-muted); }
.grid-num-btn.state-answered {
  background: var(--emerald-soft);
  border-color: #6EE7B7;
  color: var(--emerald-text);
}
.grid-num-btn.state-flagged {
  background: var(--amber-soft);
  border-color: #FCD34D;
  color: var(--amber-text);
}
.grid-num-btn.is-current {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  font-weight: 800;
}
.grid-corner-badge {
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 0.6rem;
  line-height: 1;
}

/* Grid in Review Mode */
.grid-num-btn.state-review-correct { background: #F0FDF4; border-color: #86EFAC; color: #166534; }
.grid-num-btn.state-review-wrong { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.grid-num-btn.state-review-unanswered { background: var(--bg-subtle); border-color: var(--border-soft); color: #94A3B8; }
.grid-num-btn.state-review-tkp { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

.sidebar-legend {
  padding: 6px 12px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.legend-item { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-soft); }
.legend-dot.is-current { background: var(--primary); }
.legend-dot.is-answered { background: #10B981; }
.legend-dot.is-flagged { background: #F59E0B; }

/* ==========================================================================
   7. FOCUSED BOTTOM BAR (Single Primary CTA: Lanjut →)
   ========================================================================== */
.fixed-bottom-bar {
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-soft);
  padding: 0;
  z-index: 35;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.fixed-bottom-inner {
  width: 100%;
  max-width: 960px; /* Aligned with .workspace-container form width */
  margin: 0 auto;
  padding: 0 18px; /* Aligned with .workspace-container padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-nav-secondary {
  height: 44px;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}
.btn-nav-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-subtle-hover);
}
.btn-nav-secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-flag-toggle {
  height: 44px;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid #FCD34D;
  background: var(--amber-soft);
  color: var(--amber-text);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}
.btn-flag-toggle:hover {
  background: #FDE68A;
  border-color: #F59E0B;
}
.btn-flag-toggle.active {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #D97706;
}

.btn-nav-primary {
  height: 44px;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.90rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
  cursor: pointer;
  transition: all 120ms ease;
}
.btn-nav-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop)
   ========================================================================== */
@media (max-width: 1179px) {
  .workspace-container {
    padding: 8px 12px;
  }
  .fixed-bottom-inner {
    padding: 0 12px;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  body {
    overflow-y: auto; /* Allow natural scroll on short smartphone screens */
    height: auto;
    min-height: 100%;
  }

  .shortcut-widget {
    display: none !important;
  }

  .mode-pill-prefix {
    display: none;
  }

  .mode-pill-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .workspace-container {
    overflow: visible;
    padding: 8px 10px 68px; /* Space for bottom bar */
  }

  .question-card {
    height: auto;
    overflow: visible;
  }

  .card-body {
    overflow: visible;
    padding: 12px 14px;
  }

  .fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .fixed-bottom-inner {
    padding: 0 10px;
    gap: 8px;
  }

  .btn-nav-secondary,
  .btn-flag-toggle,
  .btn-nav-primary {
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .btn-nav-secondary { flex: 1; }
  .btn-flag-toggle { flex: 1; }
  .btn-nav-primary { flex: 1.25; }

  .hide-sm {
    display: none !important;
  }

  .topic-chip {
    max-width: 180px;
  }

  .brand-subtitle {
    display: none;
  }
}

/* Floating Inspector (Hidden completely as requested) */
.floating-inspector {
  display: none !important;
}

/* Non-blocking feedback toast */
.toast-notification {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.inspector-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.45;
  transition: opacity 120ms ease;
}
.inspector-toggle-pill:hover { opacity: 0.95; }
.inspector-drawer {
  margin-bottom: 6px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 290px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inspector-drawer.hidden { display: none; }
.inspector-drawer-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.sim-btn {
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid #334155;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: left;
}
.sim-btn:hover { background: #334155; }
.sim-btn.span-2 { grid-column: span 2; }

/* ==========================================================================
   9. MODALS (Evaluation, Confirm, Candidate Profile)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-backdrop.hidden { display: none; }

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-eval-card {
  max-width: 600px !important;
}

.score-summary-box {
  text-align: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 14px;
  border: 1.5px solid #BFDBFE;
}

.score-summary-title {
  font-size: 0.72rem;
  color: #1E3A8A;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.score-summary-number {
  font-size: 2.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.05;
  margin: 2px 0 6px;
}

.eval-pg-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.eval-pg-badge.passed {
  background: #DCFCE7;
  color: #15803D;
  border: 1.5px solid #86EFAC;
}
.eval-pg-badge.failed {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1.5px solid #FCA5A5;
}
.eval-pg-badge.pending {
  background: #F1F5F9;
  color: #475569;
}

/* 3 Subtests Grid */
.modal-recap-enhanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.recap-subtest {
  padding: 10px 8px;
  text-align: center;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card);
}
.recap-subtest.passed-subtest {
  border-color: #86EFAC;
  background: #F0FDF4;
}
.recap-subtest.failed-subtest {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.subtest-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.subtest-name-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
}
.pg-mini-badge {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #334155;
}
.pg-mini-badge.passed { background: #DCFCE7; color: #15803D; }
.pg-mini-badge.failed { background: #FEE2E2; color: #B91C1C; }

.recap-num {
  font-size: 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

.subtest-target-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.subtest-stat-detail {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px dashed var(--border-soft);
}

.eval-feedback-box {
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  text-align: left;
}
.feedback-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}
.feedback-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.modal-actions-eval {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-print-report {
  width: 100%;
  padding: 10px 14px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-print-report:hover { background: #1E293B; }
.modal-actions-subrow {
  display: flex;
  gap: 8px;
}
.modal-actions-subrow > button { flex: 1; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.btn-danger-solid {
  min-height: 40px;
  background: var(--rose-solid);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
}
.btn-danger-solid:hover { background: var(--rose-solid-hover); }

.modal-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-main);
  background: var(--bg-card);
  outline: none;
  font-family: inherit;
}
.modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--focus-halo);
}

/* ==========================================================================
   10. PRINT STYLING (@media print) — Official Report Layout
   ========================================================================== */
.print-report-container { display: none; }

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
  }

  header, main, nav, .floating-inspector, .modal-backdrop, .offline-banner, .skip-link {
    display: none !important;
  }

  .print-report-container {
    display: block !important;
    padding: 20px;
    font-family: 'Times New Roman', Times, serif;
    color: #000000;
    line-height: 1.4;
  }

  .print-header {
    text-align: center;
    border-bottom: 3px double #000;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .print-header h1 { font-size: 14pt; font-weight: bold; text-transform: uppercase; margin: 0 0 3px; }
  .print-header h2 { font-size: 12pt; font-weight: bold; text-transform: uppercase; margin: 0 0 3px; }
  .print-header p { font-size: 9.5pt; margin: 0; }

  .print-meta-table { width: 100%; margin-bottom: 14px; font-size: 10pt; border-collapse: collapse; }
  .print-meta-table td { padding: 3px 5px; vertical-align: top; }

  .print-score-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 10pt; }
  .print-score-table th, .print-score-table td { border: 1px solid #000; padding: 5px 7px; text-align: center; }
  .print-score-table th { background: #f2f2f2 !important; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .print-status-box {
    border: 2px solid #000;
    padding: 8px;
    text-align: center;
    font-size: 11pt;
    font-weight: bold;
    margin: 14px 0;
  }

  .print-grid-summary { width: 100%; margin-top: 14px; font-size: 8pt; border-collapse: collapse; }
  .print-grid-summary td { border: 1px solid #999; padding: 2px; text-align: center; }

  .print-footer-signature {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 10pt;
  }
}
