/* Meduvita exam-day focus mode — distinct from default practice/mock UI */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* View-state utilities (daily loop SPA) */
.hidden {
  display: none !important;
}

.active {
  display: block;
}

/* VR keyword scan (exam coaching) */
.blur-passage {
  filter: blur(4px);
  transition: filter 0.3s ease;
}

.vr-scan-mount-practice {
  margin-bottom: 0.65rem;
}

.unblurred-sentence {
  background-color: yellow;
  font-weight: bold;
}

.vr-scan-toolbar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  align-items: stretch;
}

.vr-scan-toolbar input {
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  outline: none;
}

.vr-scan-toolbar input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

#vr-unblur-btn {
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

#vr-unblur-btn:hover {
  filter: brightness(1.05);
}

.vr-passage-demo {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #1e293b;
}

.vr-scan-hint {
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 0.45rem;
  line-height: 1.45;
}

.ues-speed-coach-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 10060;
  max-width: 280px;
  padding: 0.65rem 0.9rem;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(13, 148, 136, 0.45);
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ues-speed-coach-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Daily Loop modal (dashboard) ── */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dl-modal.hidden {
  display: none !important;
}

.dl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.dl-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(88vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid #e2e8f0;
  padding: 1.25rem 1.35rem 1.35rem;
  font-family: 'Sora', system-ui, sans-serif;
}

.dl-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dl-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

#daily-loop-container .view-state {
  display: none;
}

#daily-loop-container .view-state.active {
  display: block;
}

.daily-loop-head {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0d9488;
  margin-bottom: 0.25rem;
}

.daily-loop-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
  padding-right: 2rem;
}

.daily-loop-sub {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.daily-loop-start-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.daily-loop-start-btn:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.dl-phase-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.dl-timer {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.6rem;
  color: #0f172a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  margin: 0.35rem 0;
}

.dl-timer.danger {
  color: #ef4444;
}

.dl-problem {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 0.85rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.dl-feedback {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.1em;
  margin-bottom: 0.5rem;
}

.dl-feedback.ok {
  color: #16a34a;
}

.dl-feedback.bad {
  color: #ef4444;
}

.dl-answer-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.dl-answer-input {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
}

.dl-answer-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.dl-answer-input:disabled {
  background: #f1f5f9;
  opacity: 0.85;
}

.dl-submit-btn {
  padding: 0.65rem 0.9rem;
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.dl-submit-btn:hover {
  background: #0f766e;
}

.dl-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dl-hint {
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
}

.dl-quiz-progress {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0d9488;
  margin-bottom: 0.5rem;
}

.dl-q-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.dl-finish-btn,
.dl-reset-btn {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.dl-finish-btn {
  background: #0d9488;
  color: #fff;
  margin-top: 0.25rem;
}

.dl-finish-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dl-debrief-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.dl-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.55rem;
  text-align: center;
}

.dl-stat-val {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: #0d9488;
}

.dl-stat-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 0.1rem;
}

.dl-debrief-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 0.85rem;
  margin-bottom: 0.55rem;
}

.dl-debrief-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.dl-debrief-card p,
.dl-debrief-card li {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.55;
}

.dl-reset-btn {
  background: #f1f5f9;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
}

.dl-launcher.hidden {
  display: none !important;
}

body.mv-exam-day-mode {
  --mv-teal: #0d9488;
  --mv-teal-light: #14b8a6;
  --mv-teal-pale: #f0fdfa;
  --mv-teal-mid: #ccfbf1;
  --mv-navy: #0f172a;
}

/* ── Practice screen ── */
body.mv-exam-day-mode #practiceScreen {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  background: var(--mv-teal-pale) !important;
}

body.mv-exam-day-mode #practiceScreen .exam-topbar {
  background: #ffffff !important;
  border-bottom: 3px solid var(--mv-teal) !important;
  padding: 0.75rem 1.25rem !important;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12) !important;
}

body.mv-exam-day-mode #practiceScreen .exam-logo {
  color: var(--mv-navy) !important;
  font-weight: 800 !important;
}

body.mv-exam-day-mode #practiceScreen .exam-logo span {
  color: var(--mv-teal) !important;
}

body.mv-exam-day-mode #practiceScreen .section-pill {
  background: var(--mv-teal) !important;
  border-color: var(--mv-teal) !important;
  color: #fff !important;
}

body.mv-exam-day-mode #practiceScreen .progress-track {
  background: var(--mv-teal-mid) !important;
}

body.mv-exam-day-mode #practiceScreen .progress-fill {
  background: linear-gradient(90deg, var(--mv-teal), var(--mv-teal-light)) !important;
}

body.mv-exam-day-mode #practiceScreen .progress-lbl {
  color: var(--mv-navy) !important;
  opacity: 0.7;
}

body.mv-exam-day-mode #practiceScreen .session-timer {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  background: var(--mv-teal) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 0.45rem 0.9rem !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

body.mv-exam-day-mode #practiceScreen .session-timer.warn {
  background: #d97706 !important;
  color: #fff !important;
}

body.mv-exam-day-mode #practiceScreen .session-timer.danger {
  background: #dc2626 !important;
  color: #fff !important;
  animation: ues-timer-pulse 1s ease-in-out infinite;
}

body.mv-exam-day-mode #practiceScreen .tb-btn {
  background: var(--mv-teal-pale) !important;
  border: 1px solid #99f6e4 !important;
  color: #0f766e !important;
}

body.mv-exam-day-mode #practiceScreen .tb-btn.calc {
  background: var(--mv-teal) !important;
  border-color: var(--mv-teal) !important;
  color: #fff !important;
}

body.mv-exam-day-mode #practiceScreen .q-bar {
  background: var(--mv-teal-mid) !important;
  height: 4px !important;
}

body.mv-exam-day-mode #practiceScreen .q-bar-fill {
  background: linear-gradient(90deg, var(--mv-teal), var(--mv-teal-light)) !important;
}

body.mv-exam-day-mode #practiceScreen .q-nav {
  background: #fff !important;
  border-bottom: 2px solid #99f6e4 !important;
  padding: 0.6rem 1.25rem !important;
}

body.mv-exam-day-mode #practiceScreen .q-dot {
  border-radius: 8px !important;
  border-color: #99f6e4 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body.mv-exam-day-mode #practiceScreen .q-dot.cur {
  background: var(--mv-teal) !important;
  border-color: var(--mv-teal) !important;
  color: #fff !important;
}

body.mv-exam-day-mode #practiceScreen .exam-body {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.15fr) minmax(300px, 1fr) !important;
  background: var(--mv-teal-pale) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.mv-exam-day-mode #practiceScreen .stimulus-panel {
  background: #fff !important;
  border-right: none !important;
  border-left: 5px solid var(--mv-teal) !important;
  box-shadow: 4px 0 24px rgba(13, 148, 136, 0.06);
}

body.mv-exam-day-mode #practiceScreen .stim-label {
  color: var(--mv-teal) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body.mv-exam-day-mode #practiceScreen .passage-text {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  line-height: 1.8 !important;
}

body.mv-exam-day-mode #practiceScreen .question-panel {
  background: var(--mv-teal-pale) !important;
}

body.mv-exam-day-mode #practiceScreen .q-text {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 1.05rem !important;
  color: var(--mv-navy) !important;
  border-bottom-color: #99f6e4 !important;
}

body.mv-exam-day-mode #practiceScreen .ans-opt {
  border-radius: 12px !important;
  border-color: #ccfbf1 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body.mv-exam-day-mode #practiceScreen .ans-opt:hover:not(.disabled) {
  border-color: var(--mv-teal) !important;
  background: #ecfdf5 !important;
}

body.mv-exam-day-mode #practiceScreen .ans-opt.sel {
  border-color: var(--mv-teal) !important;
  background: #ecfdf5 !important;
  box-shadow: 0 0 0 1px var(--mv-teal);
}

body.mv-exam-day-mode #practiceScreen .ans-letter {
  background: var(--mv-teal-pale) !important;
  color: var(--mv-teal) !important;
}

body.mv-exam-day-mode #practiceScreen .ans-opt.sel .ans-letter {
  background: var(--mv-teal) !important;
  color: #fff !important;
}

body.mv-exam-day-mode #practiceScreen .q-footer {
  background: #fff !important;
  border-top: 2px solid var(--mv-teal-mid) !important;
}

body.mv-exam-day-mode #practiceScreen .next-btn {
  background: linear-gradient(135deg, var(--mv-teal), var(--mv-teal-light)) !important;
}

/* ── Mock exam screen ── */
body.mv-exam-day-mode #examView {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  background: var(--mv-teal-pale) !important;
}

body.mv-exam-day-mode #examView .exam-top {
  background: #fff !important;
  border-bottom: 3px solid var(--mv-teal) !important;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12) !important;
}

body.mv-exam-day-mode #examView .et-logo {
  color: var(--mv-navy) !important;
}

body.mv-exam-day-mode #examView .et-logo span {
  color: var(--mv-teal) !important;
}

body.mv-exam-day-mode #examView .et-info,
body.mv-exam-day-mode #examView .exam-prog {
  color: #475569 !important;
}

body.mv-exam-day-mode #examView .timer {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background: var(--mv-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.4rem 0.85rem !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

body.mv-exam-day-mode #examView .timer.warn {
  background: #d97706 !important;
}

body.mv-exam-day-mode #examView .timer.crit {
  background: #dc2626 !important;
  animation: ues-timer-pulse 1s ease-in-out infinite;
}

body.mv-exam-day-mode #examView .sec-strip {
  background: #fff !important;
  border-bottom: 2px solid var(--mv-teal-mid) !important;
}

body.mv-exam-day-mode #examView .qnav-wrap {
  background: #fff !important;
  border-bottom: 2px solid #99f6e4 !important;
}

body.mv-exam-day-mode #examView .qnav-dot {
  border-radius: 8px !important;
}

body.mv-exam-day-mode #examView .qnav-dot.cur {
  background: var(--mv-teal) !important;
  border-color: var(--mv-teal) !important;
  color: #fff !important;
}

body.mv-exam-day-mode #examView.exam-split-active {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  overflow: hidden !important;
}

body.mv-exam-day-mode #examView .exam-body.exam-split {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.15fr) minmax(300px, 1fr) !important;
  flex: 1 !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--mv-teal-pale) !important;
}

body.mv-exam-day-mode #examView .exam-body.exam-split .stimulus-panel {
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  background: #fff !important;
  border-right: 1px solid #99f6e4 !important;
  padding: 1.25rem 1.5rem !important;
}

body.mv-exam-day-mode #examView .exam-body.exam-split .question-panel {
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--mv-teal-pale) !important;
  min-height: 0 !important;
}

body.mv-exam-day-mode #examView .exam-body.exam-split .q-card {
  flex: 1 !important;
  margin: 1rem !important;
  border-left: none !important;
}

body.mv-exam-day-mode #examView .q-card,
body.mv-exam-day-mode #examView .passage {
  border-left: 5px solid var(--mv-teal) !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08) !important;
}

body.mv-exam-day-mode #examView .qopt {
  border-radius: 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body.mv-exam-day-mode #examView .qopt.sel {
  border-color: var(--mv-teal) !important;
  background: #ecfdf5 !important;
}

body.mv-exam-day-mode #examView .q-text {
  font-family: 'DM Serif Display', Georgia, serif !important;
}

body.mv-exam-day-mode #examView .end-btn,
body.mv-exam-day-mode #examView .tb-btn {
  background: var(--mv-teal-pale) !important;
  border: 1px solid #99f6e4 !important;
  color: #0f766e !important;
  border-radius: 8px !important;
}

body.mv-exam-day-mode #examView .calc-btn.show {
  background: var(--mv-teal) !important;
  border-color: var(--mv-teal) !important;
  color: #fff !important;
}

@keyframes ues-timer-pulse {
  50% { opacity: 0.75; transform: scale(0.98); }
}

/* Calculator — Meduvita branded */
body.mv-exam-day-mode .calc-overlay {
  align-items: flex-end !important;
  justify-content: center !important;
  padding-bottom: 1.25rem !important;
}

body.mv-exam-day-mode .calc-box {
  border: 2px solid var(--mv-teal) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(13, 148, 136, 0.25) !important;
  background: #fff !important;
}

body.mv-exam-day-mode .calc-title,
body.mv-exam-day-mode .calc-x {
  color: #64748b !important;
}

body.mv-exam-day-mode .calc-screen {
  background: #f1f5f9 !important;
}

body.mv-exam-day-mode .calc-expr {
  color: #64748b !important;
}

body.mv-exam-day-mode .calc-val {
  color: #0f172a !important;
}

body.mv-exam-day-mode .cb {
  border-radius: 10px !important;
  background: #f0fdfa !important;
  color: #0f172a !important;
  border: 1px solid #99f6e4 !important;
}

body.mv-exam-day-mode .cb:hover {
  background: #ccfbf1 !important;
}

body.mv-exam-day-mode .cb.op {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #7dd3fc !important;
}

body.mv-exam-day-mode .cb.eq {
  background: #0d9488 !important;
  color: #fff !important;
  border-color: #0d9488 !important;
}

body.mv-exam-day-mode .cb.cl {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

body.mv-exam-day-mode .cb.mem {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #6ee7b7 !important;
}

/* Shared components */
.ues-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
}

.ues-toolbar label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 600;
}

.ues-toolbar input { accent-color: #0d9488; }

.ues-toolbar-disclaimer {
  flex: 1 1 100%;
  font-size: 0.58rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.15rem 0 0;
  font-weight: 500;
}

.ues-panic-btn {
  margin-left: auto;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #fff;
  border: 1px solid #7f1d1d;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.ues-panic-btn:hover { filter: brightness(1.08); }

body.mv-exam-day-mode .ues-panic-btn {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  border-color: #0f766e !important;
}

.ues-section-strip {
  display: none;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: #fff;
  border-bottom: 2px solid #99f6e4;
  flex-shrink: 0;
}

body.mv-exam-day-mode .ues-section-strip { display: flex; }

.ues-section-tab {
  padding: 0.35rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #64748b;
  background: var(--mv-teal-pale, #f0fdfa);
  border: 1px solid #99f6e4;
  border-radius: 999px;
}

.ues-section-tab.active {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
}

.ues-exam-disclaimer {
  display: none;
  padding: 0.4rem 1rem;
  font-size: 0.6rem;
  line-height: 1.45;
  color: #0f766e;
  background: #ecfdf5;
  border-bottom: 1px solid #99f6e4;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body.mv-exam-day-mode .ues-exam-disclaimer { display: block; }

.ues-coach-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 520px;
  width: calc(100% - 1.5rem);
  background: #0f172a;
  color: #f8fafc;
  padding: 0.55rem 0.75rem 0.6rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  z-index: 10050;
  display: none;
  border: 1px solid rgba(13, 148, 136, 0.45);
  animation: ues-slide-up 0.35s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ues-coach-toast.show { display: block; }

.ues-coach-toast-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2dd4bf;
  margin-bottom: 0.2rem;
}

.ues-coach-toast p {
  font-size: 0.74rem;
  line-height: 1.4;
  margin: 0;
  color: rgba(248, 250, 252, 0.92);
}

.ues-coach-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.ues-coach-actions button {
  flex: 1;
  padding: 0.35rem;
  border-radius: 8px;
  border: none;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ues-coach-skip { background: #f59e0b; color: #1a1a1a; }
.ues-coach-flag { background: rgba(255, 255, 255, 0.15); color: #fff; }
.ues-coach-dismiss { background: transparent; color: rgba(255, 255, 255, 0.6); flex: 0; }

.ues-panic-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  visibility: hidden;
}

.ues-panic-overlay.show {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}

/* Selection / hub — never block setup clicks (practice + mock) */
body.ues-selection-mode .ues-panic-overlay,
body.ues-selection-mode .ues-coach-toast,
body.ues-selection-mode .ues-section-strip,
body.ues-selection-mode .ues-exam-disclaimer {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.ues-selection-mode #selectionScreen,
body.ues-selection-mode #hubView {
  position: relative;
  z-index: 5000;
  isolation: isolate;
}

body.ues-selection-mode #hubView .hero,
body.ues-selection-mode #hubView .start-btn,
body.ues-selection-mode #hubView button,
body.ues-selection-mode #hubView a {
  pointer-events: auto !important;
}

body.mv-practice-ready #selectionScreen,
body.mv-practice-ready #selectionScreen * {
  pointer-events: auto !important;
}

body.mv-practice-ready:not(.mv-practice-exam-active) .ues-panic-overlay,
body.mv-practice-ready:not(.mv-practice-exam-active) .ues-coach-toast:not(.show),
body.mv-practice-ready:not(.mv-practice-exam-active) #uesSectionStrip,
body.mv-practice-ready:not(.mv-practice-exam-active) .ues-exam-disclaimer {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.mv-fatigue-lock #selectionScreen,
body.mv-fatigue-lock #selectionScreen * {
  pointer-events: auto !important;
}

#mv-fatigue-modal {
  pointer-events: auto;
}

.ues-coach-toast:not(.show) {
  pointer-events: none !important;
  visibility: hidden !important;
}

.ues-panic-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ues-panic-card h2 {
  font-size: 1.1rem;
  color: #0d9488;
  margin-bottom: 0.35rem;
}

.ues-panic-card p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.ues-breathe-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s ease, border-color 0.8s ease;
}

.ues-breathe-ring.inhale { transform: scale(1.15); border-color: #0d9488; }
.ues-breathe-ring.hold { transform: scale(1.15); border-color: #14b8a6; }
.ues-breathe-ring.exhale { transform: scale(0.9); border-color: #64748b; }

.ues-breathe-phase {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.ues-panic-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.ues-panic-back-btn {
  display: inline-block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.ues-panic-back-btn:hover { filter: brightness(1.06); }

/* Test Day Simulator — navigation lag */
.simulated-lag {
  pointer-events: none;
  opacity: 0.7;
  cursor: wait !important;
}

body.ues-test-day-lag {
  cursor: wait;
}

.test-day-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  max-width: 420px;
}

.test-day-toggle-row label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  line-height: 1.45;
}

.test-day-toggle-row input {
  width: 1rem;
  height: 1rem;
  accent-color: #14b8a6;
  flex-shrink: 0;
}

.test-day-active-banner {
  display: none;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

body.ues-test-day-mode .test-day-active-banner {
  display: block;
}

/* Test Day — bottom distraction notification bar */
.ues-test-day-toast {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1205;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(520px, calc(100vw - 2rem));
  width: max-content;
  padding: 0.55rem 1rem 0.6rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, 110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.28s ease;
}

.ues-test-day-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.ues-test-day-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  font-size: 0.62rem;
  flex-shrink: 0;
}

.ues-test-day-toast-text {
  line-height: 1.45;
}

.ues-simplified-banner {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@keyframes ues-slide-up {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.ues-exam-hint {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Practice — confidence calibration */
.quiz-container .confidence-calibration {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.quiz-container .confidence-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.quiz-container .confidence-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.quiz-container .confidence-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.quiz-container .confidence-option input {
  accent-color: #0d9488;
}

.quiz-container .submit-answer-btn {
  display: block;
  width: 100%;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s, opacity 0.18s;
  margin-bottom: 0.25rem;
}

.quiz-container .submit-answer-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.quiz-container .submit-answer-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Cognitive fatigue intervention */
body.mv-fatigue-lock {
  overflow: hidden;
}

.mv-fatigue-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.88);
  pointer-events: auto;
}

.mv-fatigue-card {
  max-width: 440px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.mv-fatigue-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.mv-fatigue-card p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.mv-fatigue-countdown {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: #b45309;
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.mv-fatigue-dismiss {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s;
}

.mv-fatigue-dismiss:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mv-fatigue-dismiss:not(:disabled):hover {
  background: #1e293b;
}

/* Practice — Question DNA */
.question-dna-wrap {
  margin: 0.35rem 0 0.85rem;
}

.question-dna-trigger {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0d9488;
  cursor: pointer;
  border-bottom: 1px dashed rgba(13, 148, 136, 0.45);
  transition: color 0.15s;
}

.question-dna-trigger:hover {
  color: #0f766e;
}

.question-dna-panel {
  display: none;
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 8px;
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.5;
}

.question-dna-panel.open {
  display: block;
}

.question-dna-panel p {
  margin: 0 0 0.25rem;
}

.question-dna-panel p:last-child {
  margin-bottom: 0;
}

.question-dna-panel strong {
  color: #0f172a;
  font-weight: 700;
}

/* Mobile — override exam-day 2-column split (580px+ min width breaks phones) */
@media (max-width: 768px) {
  body.mv-exam-day-mode #practiceScreen .exam-body {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.mv-exam-day-mode #practiceScreen .stimulus-panel {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border-left: none !important;
    box-shadow: none !important;
  }

  body.mv-exam-day-mode #practiceScreen .question-panel {
    overflow: visible !important;
    height: auto !important;
  }
}
