/* ============================================================
   CHEMISTRY PERFORMANCE EXPECTATION (PE) ADAPTIVE PRACTICE
   Single-question adaptive workstation, diagnostics, and anti-tamper receipt.
   Strict Zero Em-Dashes Invariant observed.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800;900&family=Spectral:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Surface & Base (Default Light Mode Palette) */
  --pe-bg: #f5f8fa;
  --pe-surface: #ffffff;
  --pe-card: #ffffff;
  --pe-card-hover: #f8fafc;
  --pe-border: #cbd5e1;
  --pe-border-soft: #e2e8f0;

  /* Typography */
  --pe-ink: #0f172a;
  --pe-ink-soft: #334155;
  --pe-ink-mute: #64748b;

  /* Accents */
  --pe-primary: #0284c7;
  --pe-primary-soft: rgba(2, 132, 199, 0.08);
  --pe-primary-ink: #ffffff;
  --pe-indigo: #4f46e5;
  --pe-indigo-soft: rgba(79, 70, 229, 0.08);
  --pe-good: #059669;
  --pe-good-soft: rgba(5, 150, 105, 0.08);
  --pe-good-ink: #ffffff;
  --pe-warn: #d97706;
  --pe-warn-soft: rgba(217, 119, 6, 0.08);
  --pe-error: #dc2626;
  --pe-error-soft: rgba(220, 38, 38, 0.08);

  /* Fonts */
  --font-display: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-serif: 'Spectral', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Standard Type Scale */
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
}

/* Dark Mode Palette */
:root.dark,
body.dark,
:root.theme-dark,
body.theme-dark {
  --pe-bg: #0c1219;
  --pe-surface: #131b24;
  --pe-card: #1a2430;
  --pe-card-hover: #223040;
  --pe-border: #263545;
  --pe-border-soft: #1c2733;

  --pe-ink: #f1f5f9;
  --pe-ink-soft: #cbd5e1;
  --pe-ink-mute: #7e90a5;

  --pe-primary: #38bdf8;
  --pe-primary-soft: rgba(56, 189, 248, 0.12);
  --pe-primary-ink: #0b1118;
  --pe-indigo: #818cf8;
  --pe-indigo-soft: rgba(129, 140, 248, 0.12);
  --pe-good: #34d399;
  --pe-good-soft: rgba(52, 211, 153, 0.12);
  --pe-good-ink: #0b1118;
  --pe-warn: #fbbf24;
  --pe-warn-soft: rgba(251, 191, 36, 0.12);
  --pe-error: #f87171;
  --pe-error-soft: rgba(248, 113, 113, 0.12);
}

/* Explicit Light Mode Override */
:root.light,
body.light,
:root.theme-light,
body.theme-light {
  --pe-bg: #f5f8fa;
  --pe-surface: #ffffff;
  --pe-card: #ffffff;
  --pe-card-hover: #f8fafc;
  --pe-border: #cbd5e1;
  --pe-border-soft: #e2e8f0;

  --pe-ink: #0f172a;
  --pe-ink-soft: #334155;
  --pe-ink-mute: #64748b;

  --pe-primary: #0284c7;
  --pe-primary-soft: rgba(2, 132, 199, 0.08);
  --pe-primary-ink: #ffffff;
  --pe-indigo: #4f46e5;
  --pe-indigo-soft: rgba(79, 70, 229, 0.08);
  --pe-good: #059669;
  --pe-good-soft: rgba(5, 150, 105, 0.08);
  --pe-good-ink: #ffffff;
  --pe-warn: #d97706;
  --pe-warn-soft: rgba(217, 119, 6, 0.08);
  --pe-error: #dc2626;
  --pe-error-soft: rgba(220, 38, 38, 0.08);
}

/* System Preference Fallback */
@media (prefers-color-scheme: dark) {
  :root:not(.light):not(.theme-light) {
    --pe-bg: #0c1219;
    --pe-surface: #131b24;
    --pe-card: #1a2430;
    --pe-card-hover: #223040;
    --pe-border: #263545;
    --pe-border-soft: #1c2733;

    --pe-ink: #f1f5f9;
    --pe-ink-soft: #cbd5e1;
    --pe-ink-mute: #7e90a5;

    --pe-primary: #38bdf8;
    --pe-primary-soft: rgba(56, 189, 248, 0.12);
    --pe-primary-ink: #0b1118;
    --pe-indigo: #818cf8;
    --pe-indigo-soft: rgba(129, 140, 248, 0.12);
    --pe-good: #34d399;
    --pe-good-soft: rgba(52, 211, 153, 0.12);
    --pe-good-ink: #0b1118;
    --pe-warn: #fbbf24;
    --pe-warn-soft: rgba(251, 191, 36, 0.12);
    --pe-error: #f87171;
    --pe-error-soft: rgba(248, 113, 113, 0.12);
  }
}

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

body {
  background-color: var(--pe-bg);
  color: var(--pe-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOP NAVIGATION & STATION HEADER
   ============================================================ */
.station-header {
  background-color: var(--pe-surface);
  border-bottom: 1px solid var(--pe-border);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.station-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.station-badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--pe-primary-soft);
  color: var(--pe-primary);
  border: 1px solid var(--pe-primary);
  white-space: nowrap;
}

.station-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pe-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.seed-chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--pe-ink-mute);
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.seed-chip strong {
  color: var(--pe-ink-soft);
}

/* Theme Toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--pe-border);
  background: var(--pe-card);
  color: var(--pe-ink-mute);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--pe-primary);
  border-color: var(--pe-primary);
  background: var(--pe-card-hover);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

:root.dark .theme-toggle .moon,
body.dark .theme-toggle .moon,
:root.theme-dark .theme-toggle .moon,
body.theme-dark .theme-toggle .moon {
  display: none;
}

:root.dark .theme-toggle .sun,
body.dark .theme-toggle .sun,
:root.theme-dark .theme-toggle .sun,
body.theme-dark .theme-toggle .sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light):not(.theme-light) .theme-toggle .moon {
    display: none;
  }
  :root:not(.light):not(.theme-light) .theme-toggle .sun {
    display: block;
  }
}

/* Button styles */
.btn {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--pe-primary);
  color: var(--pe-primary-ink);
  border-color: var(--pe-primary);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background-color: var(--pe-card);
  color: var(--pe-ink-soft);
  border-color: var(--pe-border);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--pe-card-hover);
  color: var(--pe-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--pe-ink-mute);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--pe-ink);
  background: var(--pe-card);
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.workstation-container {
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* ============================================================
   PROGRESS & PHASE TRACKER
   ============================================================ */
.progress-panel {
  background-color: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pe-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phase-tag-adaptive {
  color: var(--pe-indigo);
}

.progress-stats {
  font-size: var(--text-xs);
  color: var(--pe-ink-mute);
  font-family: var(--font-mono);
}

.skill-chips-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--pe-card);
  border: 1px solid var(--pe-border-soft);
  color: var(--pe-ink-mute);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.skill-chip.active {
  border-color: var(--pe-primary);
  color: var(--pe-primary);
  background: var(--pe-primary-soft);
  box-shadow: 0 0 0 1px var(--pe-primary);
}

.skill-chip.mastered {
  border-color: var(--pe-good);
  color: var(--pe-good);
  background: var(--pe-good-soft);
}

.skill-chip.proficient {
  border-color: var(--pe-primary);
  color: var(--pe-primary);
  background: var(--pe-primary-soft);
}

.skill-chip.developing {
  border-color: var(--pe-warn);
  color: var(--pe-warn);
  background: var(--pe-warn-soft);
}

.skill-chip.needs-work {
  border-color: var(--pe-error);
  color: var(--pe-error);
  background: var(--pe-error-soft);
}

/* ============================================================
   FOCUS QUESTION WORKSTATION CARD
   ============================================================ */
.question-card {
  background-color: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.question-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--pe-border-soft);
  padding-bottom: 0.75rem;
}

.question-skill-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.skill-code-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-primary);
  background: var(--pe-primary-soft);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
}

.skill-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pe-ink);
}

.level-badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  color: var(--pe-ink-soft);
}

.stem-container {
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.6;
  color: var(--pe-ink);
}

.stem-container p {
  margin-bottom: 0.75rem;
}

.stem-container p:last-child {
  margin-bottom: 0;
}

/* MCQ Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.option-card {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.option-card:hover:not(.locked) {
  background: var(--pe-card-hover);
  border-color: var(--pe-primary);
  transform: translateX(2px);
}

.option-card.selected:not(.locked) {
  background: var(--pe-primary-soft);
  border-color: var(--pe-primary);
  box-shadow: 0 0 0 1px var(--pe-primary);
}

.option-card.locked {
  cursor: default;
}

.option-card.correct {
  background: var(--pe-good-soft) !important;
  border-color: var(--pe-good) !important;
  color: var(--pe-ink);
}

.option-card.incorrect-selected {
  background: var(--pe-error-soft) !important;
  border-color: var(--pe-error) !important;
}

.option-key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  color: var(--pe-ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-card.selected .option-key {
  background: var(--pe-primary);
  color: var(--pe-primary-ink);
  border-color: var(--pe-primary);
}

.option-card.correct .option-key {
  background: var(--pe-good);
  color: var(--pe-good-ink);
  border-color: var(--pe-good);
}

.option-card.incorrect-selected .option-key {
  background: var(--pe-error);
  color: #ffffff;
  border-color: var(--pe-error);
}

.option-content {
  font-size: var(--text-sm);
  color: var(--pe-ink);
  line-height: 1.45;
  flex: 1;
}

/* Option Checkbox (Multi-Select) */
.multi-select-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.option-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  color: var(--pe-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 900;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.option-card.selected .option-checkbox {
  background: var(--pe-primary);
  border-color: var(--pe-primary);
  color: var(--pe-primary-ink);
}

.option-card.correct .option-checkbox {
  background: var(--pe-good);
  border-color: var(--pe-good);
  color: var(--pe-good-ink);
}

.option-card.incorrect-selected .option-checkbox {
  background: var(--pe-error);
  border-color: var(--pe-error);
  color: #ffffff;
}

/* Two-Tier Diagnostic */
.two-tier-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .two-tier-container {
    grid-template-columns: 1fr;
  }
}

.tier-block {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all var(--transition-base);
}

.tier-block.locked-tier {
  opacity: 0.62;
  background: var(--pe-bg);
  border-style: dashed;
  pointer-events: none;
  user-select: none;
}

.tier-locked-notice {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--pe-ink-mute);
  background: var(--pe-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--pe-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tier-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pe-primary);
}

.tier-prompt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pe-ink);
  line-height: 1.45;
  margin: 0;
}

.tier-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tier-option-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tier-option-card:hover:not(.locked) {
  border-color: var(--pe-primary);
  background: var(--pe-primary-soft);
}

.tier-option-card.selected {
  background: var(--pe-primary-soft);
  border-color: var(--pe-primary);
  box-shadow: 0 0 0 1px var(--pe-primary);
}

.tier-option-card.locked {
  cursor: default;
}

.tier-option-card.correct {
  background: var(--pe-good-soft) !important;
  border-color: var(--pe-good) !important;
}

.tier-option-card.incorrect-selected {
  background: var(--pe-error-soft) !important;
  border-color: var(--pe-error) !important;
}

.tier-opt-text {
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--pe-ink);
  line-height: 1.4;
  flex: 1;
}

/* Ranking Items */
.ranking-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ranking-prompt-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-primary);
  margin-bottom: 0.25rem;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.ranking-pos-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 900;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  color: var(--pe-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ranking-card-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pe-ink);
  flex: 1;
}

.ranking-card-actions {
  display: flex;
  gap: 0.25rem;
}

.rank-btn {
  padding: 0.25rem 0.6rem;
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
}

/* Categorize Matrix Table */
.categorize-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-x: auto;
}

.categorize-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-primary);
  margin-bottom: 0.25rem;
}

.categorize-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.categorize-table th {
  background: var(--pe-card);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pe-ink-soft);
  border-bottom: 1px solid var(--pe-border);
  text-align: left;
}

.categorize-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--pe-border-soft);
  vertical-align: middle;
}

.categorize-table tr:last-child td {
  border-bottom: none;
}

.cat-item-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pe-ink);
}

.cat-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-pill {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  color: var(--pe-ink-soft);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-pill:hover:not(:disabled) {
  border-color: var(--pe-primary);
  color: var(--pe-ink);
}

.cat-pill.selected {
  background: var(--pe-primary-soft);
  border-color: var(--pe-primary);
  color: var(--pe-primary);
  font-weight: 700;
}

.cat-pill.correct {
  background: var(--pe-good-soft) !important;
  border-color: var(--pe-good) !important;
  color: var(--pe-good) !important;
}

.cat-pill.incorrect-selected {
  background: var(--pe-error-soft) !important;
  border-color: var(--pe-error) !important;
  color: var(--pe-error) !important;
}

/* Numeric Quantitative Input */
.numeric-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.numeric-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pe-ink);
}

.numeric-control-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 320px;
}

.numeric-input-field {
  flex: 1;
  padding: 0.55rem 0.85rem;
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-sm);
  color: var(--pe-ink);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  outline: none;
  transition: border-color var(--transition-fast);
}

.numeric-input-field:focus {
  border-color: var(--pe-primary);
  box-shadow: 0 0 0 1px var(--pe-primary);
}

.numeric-input-field:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.numeric-unit-badge {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pe-ink-soft);
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

/* Name Gate Card */
.name-gate-card {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 600px;
  margin: 1.5rem auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.name-gate-card h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--pe-ink);
  margin: 0;
}

.name-gate-card p {
  font-size: var(--text-sm);
  color: var(--pe-ink-soft);
  line-height: 1.55;
  margin: 0;
}

.name-gate-form label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pe-ink-soft);
}

/* Action Footer */
.question-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.attempt-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attempt-dots {
  display: flex;
  gap: 0.35rem;
}

.attempt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pe-border);
}

.attempt-dot.used {
  background: var(--pe-warn);
}

.attempt-dot.failed {
  background: var(--pe-error);
}

.attempt-dot.success {
  background: var(--pe-good);
}

.attempt-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--pe-ink-mute);
}

/* Feedback Drawer / Callouts */
.feedback-box {
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-hint {
  background: var(--pe-warn-soft);
  border: 1px solid var(--pe-warn);
  border-left: 4px solid var(--pe-warn);
}

.feedback-hint-header {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-warn);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feedback-hint-body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--pe-ink);
  line-height: 1.6;
}

.feedback-solution {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-left: 4px solid var(--pe-primary);
}

.feedback-solution-header {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feedback-solution-body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--pe-ink);
  line-height: 1.6;
}

/* ============================================================
   INTERSTITIAL SCREEN (Diagnostic to Adaptive)
   ============================================================ */
.interstitial-card {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.interstitial-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.interstitial-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pe-primary);
}

.interstitial-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--pe-ink);
}

.interstitial-desc {
  font-size: var(--text-sm);
  color: var(--pe-ink-soft);
  line-height: 1.5;
}

.interstitial-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .interstitial-breakdown {
    grid-template-columns: 1fr;
  }
}

.breakdown-col {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.breakdown-col-header {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-col-header.good {
  color: var(--pe-good);
}

.breakdown-col-header.warn {
  color: var(--pe-warn);
}

.breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.breakdown-item {
  font-size: var(--text-xs);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--pe-surface);
  border: 1px solid var(--pe-border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   COMPLETION / STUDY REPORT VIEW (Screen)
   ============================================================ */
.report-screen {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-header-screen {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--pe-border-soft);
  padding-bottom: 1.25rem;
}

.report-title-screen h1 {
  font-size: var(--text-xl);
  font-weight: 800;
}

.report-title-screen p {
  font-size: var(--text-sm);
  color: var(--pe-ink-soft);
  margin-top: 0.25rem;
}

.report-actions {
  display: flex;
  gap: 0.6rem;
}

/* Screen Study Tips Section */
.report-study-tips {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.study-tips-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--pe-border-soft);
  padding-bottom: 0.75rem;
}

.study-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.85rem;
}

.study-tip-card {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 3px solid var(--pe-primary);
}

.study-tip-card.priority {
  border-left-color: #ef4444;
}

.study-tip-card.reinforce {
  border-left-color: #f59e0b;
}

.study-tip-card.mastery {
  border-left-color: #10b981;
}

.study-tip-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.study-tip-badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.study-tip-badge.priority {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.study-tip-badge.reinforce {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.study-tip-badge.mastery {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.study-tip-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-ink);
}

.study-tip-text {
  font-size: var(--text-xs);
  color: var(--pe-ink-soft);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.study-tip-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--text-2xs);
  color: var(--pe-ink-mute);
  font-family: var(--font-mono);
  border-top: 1px solid var(--pe-border-soft);
  padding-top: 0.4rem;
}

.study-tip-link {
  color: var(--pe-primary);
  text-decoration: none;
  font-weight: 600;
}

.study-tip-link:hover {
  text-decoration: underline;
}

/* ============================================================
   HUB / SELECTOR VIEW
   ============================================================ */
.hub-hero {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hub-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hub-hero p {
  max-width: 36rem;
  font-size: var(--text-sm);
  color: var(--pe-ink-soft);
}

.hub-student-bar {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hub-student-bar label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pe-ink-mute);
}

.hub-student-input {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  color: var(--pe-ink);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  flex: 1;
  min-width: 14rem;
}

.hub-student-input:focus {
  outline: none;
  border-color: var(--pe-primary);
  box-shadow: 0 0 0 1px var(--pe-primary);
}

.pe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.pe-card {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}

.pe-card:hover {
  border-color: var(--pe-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.pe-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pe-card-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pe-primary);
  background: var(--pe-primary-soft);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.pe-card-unit {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--pe-ink-mute);
}

.pe-card h2 {
  font-size: var(--text-md);
  font-weight: 800;
}

.pe-card p {
  font-size: var(--text-xs);
  color: var(--pe-ink-soft);
  line-height: 1.45;
  flex: 1;
}

.pe-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--pe-border-soft);
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--pe-ink-mute);
}

/* ============================================================
   CLICKABLE VOCABULARY TERMS & GLOSSARY TOOLTIPS
   ============================================================ */
.pe-term {
  border-bottom: 1.5px dotted var(--pe-primary);
  cursor: help;
  color: inherit;
  font-weight: inherit;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  border-radius: 2px;
  padding: 0 1px;
}

.pe-term:hover,
.pe-term:focus-visible {
  color: var(--pe-primary);
  background-color: var(--pe-primary-soft);
  outline: none;
}

.pe-glossary-tooltip {
  position: absolute;
  z-index: 1000;
  max-width: 320px;
  min-width: 200px;
  background: var(--pe-card);
  border: 1px solid var(--pe-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--pe-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.pe-glossary-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pe-glossary-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--pe-border-soft);
  padding-bottom: 0.3rem;
}

.pe-glossary-term {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--pe-primary);
}

.pe-glossary-badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pe-ink-mute);
}

.pe-glossary-def {
  margin: 0 0 0.4rem 0;
  color: var(--pe-ink-soft);
  line-height: 1.4;
}

.pe-glossary-ex {
  font-style: italic;
  font-size: var(--text-2xs);
  color: var(--pe-ink-mute);
  background: var(--pe-bg);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--pe-primary);
}

/* Scorecard Outcome Badges (Screen & Print) */
.tag-mastered {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-2xs);
  color: var(--pe-good);
  background: var(--pe-good-soft);
  border: 1px solid var(--pe-good);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.tag-proficient {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-2xs);
  color: var(--pe-primary);
  background: var(--pe-primary-soft);
  border: 1px solid var(--pe-primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.tag-developing {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-2xs);
  color: var(--pe-warn);
  background: var(--pe-warn-soft);
  border: 1px solid var(--pe-warn);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.tag-needs-work {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-2xs);
  color: var(--pe-error);
  background: var(--pe-error-soft);
  border: 1px solid var(--pe-error);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ============================================================
   STUDY REPORT SHEET: PRINT STYLING (@media print)
   Single-page A4 certified authenticity receipt.
   ============================================================ */
#studyReportSheet {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 8mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 8pt !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .station-header,
  .progress-panel,
  .question-card,
  .interstitial-card,
  .report-screen,
  .hub-hero,
  .hub-student-bar,
  .pe-grid,
  .btn {
    display: none !important;
  }

  .workstation-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #studyReportSheet {
    display: block !important;
    width: 100% !important;
    max-height: 282mm !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    overflow: hidden !important;
  }

  .print-receipt-header {
    border-bottom: 1.5pt solid #000;
    padding-bottom: 5pt;
    margin-bottom: 6pt;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10pt;
  }

  .print-title-area h2 {
    font-size: 13pt;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
  }

  .print-title-area p {
    font-size: 8pt;
    color: #333;
    margin: 2pt 0 0 0;
  }

  .print-header-center {
    text-align: center;
    border: 1pt solid #000;
    padding: 4pt 8pt;
    border-radius: 3pt;
    background-color: #f8fafc;
  }

  .print-big-score {
    font-size: 13pt;
    font-weight: 900;
    line-height: 1;
  }

  .print-attempt-pill {
    font-size: 7.5pt;
    font-family: var(--font-mono);
    margin-top: 2pt;
    color: #222;
  }

  .print-seal-container {
    display: flex;
    align-items: center;
    gap: 6pt;
    border: 1pt solid #000;
    padding: 3pt 6pt;
    border-radius: 3pt;
  }

  .print-qr-code {
    width: 50px;
    height: 50px;
  }

  .print-seal-meta {
    font-family: var(--font-mono);
    font-size: 7pt;
    text-align: right;
  }

  .print-seal-code {
    font-size: 9pt;
    font-weight: 900;
    letter-spacing: 0.05em;
  }

  /* Scorecard Table */
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8pt;
    font-size: 7.5pt;
  }

  .print-table th,
  .print-table td {
    border: 0.5pt solid #888;
    padding: 3.5pt 5pt;
    text-align: left;
  }

  .print-table th {
    background-color: #f1f5f9;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 7pt;
    font-family: var(--font-mono);
  }

  .tag-mastered {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 6.5pt;
    color: #065f46;
    background: #d1fae5;
    padding: 1pt 4pt;
    border-radius: 2pt;
    display: inline-block;
  }

  .tag-needs-work {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 6.5pt;
    color: #991b1b;
    background: #fee2e2;
    padding: 1pt 4pt;
    border-radius: 2pt;
    display: inline-block;
  }

  .print-section-title {
    font-size: 8.5pt;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin: 6pt 0 3pt 0;
    border-bottom: 0.5pt solid #999;
    padding-bottom: 1.5pt;
  }

  /* Study Recommendations Box */
  .print-study-tips-box {
    border: 0.5pt solid #94a3b8;
    background: #f8fafc;
    border-radius: 2.5pt;
    padding: 3pt 5pt;
    margin-bottom: 6pt;
    display: flex;
    flex-direction: column;
    gap: 2.5pt;
    page-break-inside: avoid;
  }

  .print-study-tip-row {
    font-size: 6.5pt;
    line-height: 1.25;
    display: flex;
    gap: 4pt;
    align-items: baseline;
  }

  .print-tip-code {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 6pt;
    color: #1e40af;
    background: #dbeafe;
    padding: 0.5pt 2.5pt;
    border-radius: 1.5pt;
    white-space: nowrap;
  }

  .print-tip-body {
    color: #1e293b;
  }

  .print-tip-body strong {
    font-weight: 800;
  }

  .print-tip-body em {
    color: #475569;
    font-style: italic;
  }

  /* Compact Audit Table */
  .print-audit-table {
    margin-bottom: 4pt;
    font-size: 6.5pt;
  }

  .print-audit-table th,
  .print-audit-table td {
    padding: 2pt 4pt;
  }

  .print-footer-notice {
    margin-top: 6pt;
    padding-top: 3pt;
    border-top: 0.5pt solid #ccc;
    font-family: var(--font-mono);
    font-size: 5.5pt;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8pt;
  }

  .print-verify-link {
    font-family: var(--font-mono);
    font-size: 5pt;
    color: #333;
    word-break: break-all;
    line-height: 1.15;
    margin-top: 2.5pt;
    max-width: 170px;
    text-align: right;
  }

  .print-verify-link a,
  .print-footer-notice a {
    color: inherit;
    text-decoration: underline;
  }
}

/* ============================================================
   SAVED RECEIPTS HISTORY (Hub Panel)
   ============================================================ */
.receipts-history-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--radius-lg);
}

.receipts-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.receipts-history-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--pe-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.receipts-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.receipt-history-card {
  padding: 1rem;
  background: var(--pe-card);
  border: 1px solid var(--pe-border-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.receipt-history-card:hover {
  border-color: var(--pe-primary);
  transform: translateY(-1px);
}

.receipt-history-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--pe-ink-mute);
}

.receipt-history-name {
  font-weight: 700;
  color: var(--pe-ink);
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-history-pe {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--pe-primary);
  font-size: var(--text-xs);
}

.receipt-history-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--pe-border-soft);
}

.receipt-history-seal {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--pe-ink-mute);
}

/* Exit Warning Modal / Banner */
.receipt-exit-alert {
  background: var(--pe-warn-soft);
  border: 1px solid var(--pe-warn);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-sans);
}

.receipt-exit-alert-text {
  font-size: var(--text-sm);
  color: var(--pe-ink);
  line-height: 1.45;
}

.receipt-exit-alert-text strong {
  color: var(--pe-warn);
}

