/* Simulath Pharmacy Lab — dark shell (teal pharmacy #3db8a0, not purple) */
:root {
  --bg: #070b12;
  --bg-panel: #0c131e;
  --bg-elevated: #121b29;
  --border: #1e2c3f;
  --text: #e7eef7;
  --text-dim: #8fa2b8;
  --text-faint: #546b82;
  --accent: #3db8a0;
  --accent-2: #2a8f7c;
  --warn: #f5a623;
  --crit: #ff4d5e;
  --good: #34d399;
  --header-h: 44px;
  --disclaimer-h: 28px;
  --a11y-h: 32px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: system-ui, "Segoe UI", sans-serif;
  --touch: 44px;
}

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

[hidden] { display: none !important; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
  max-width: 100vw;
}

button, input, select, textarea { font-family: inherit; color: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.app {
  height: 100%;
  display: grid;
  grid-template-rows: var(--disclaimer-h) var(--header-h) var(--a11y-h) 1fr;
  min-width: 0;
  min-height: 0;
}

.disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 11px;
  color: var(--warn);
  background: #12100a;
  border-bottom: 1px solid #3a3218;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.disclaimer .role-note {
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46%;
  font-size: 10px;
}

.sitebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: #0b121c;
  border-bottom: 1px solid var(--border);
  min-width: 0;
  position: relative;
  z-index: 50;
}
.sb-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  flex-shrink: 0;
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 4px;
}
.sb-logo img { display: block; }
.sb-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sb-all {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.sb-sp { flex: 1; min-width: 4px; }
.sb-lang {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  min-width: var(--touch);
}
.sb-lang select,
.touch-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  min-height: var(--touch);
  height: var(--touch);
  padding: 0 8px;
  border-radius: 4px;
  min-width: 113px;
}
.aula-slot { display: flex; gap: 6px; flex-shrink: 0; }

.a11y-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 10px;
  font-size: 10px;
  color: var(--text-dim);
  background: #0f100c;
  border-bottom: 1px solid var(--border);
  min-height: var(--a11y-h);
}
.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-height: var(--touch);
  min-width: var(--touch);
  padding: 4px 6px;
}
.a11y-toggle input {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  flex-shrink: 0;
}
.touch-target {
  min-width: var(--touch) !important;
  min-height: var(--touch) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn:hover { border-color: var(--accent-2); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, #143d36, #0e2a24);
  border-color: #2a8f7c;
  color: var(--accent);
}
.btn.ghost { background: transparent; }
.btn.active { border-color: var(--accent); color: var(--accent); }
.btn.lock::after { content: " 🔒"; font-size: 10px; opacity: 0.85; }

.station {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.panel {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel:last-child { border-right: 0; }

.ph {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
  gap: 6px;
}
.ph .row { display: flex; gap: 4px; align-items: center; }
.pb {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.scene-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  min-height: 0;
}

.live-alarms {
  min-height: 18px;
  font-size: 11px;
  font-family: var(--mono);
  flex-shrink: 0;
}
.live-alarms:empty::before {
  content: attr(data-empty);
  color: var(--text-faint);
}

.scenario-banner {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(61, 184, 160, 0.14), transparent 55%),
    linear-gradient(90deg, #081410, #0c131e 70%);
  border: 1px solid #204a42;
  border-radius: 6px;
  padding: 6px 10px;
  flex-shrink: 0;
}
.scenario-banner strong {
  display: block;
  font-size: 13px;
  color: var(--accent);
}
.scenario-meta {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.rx-queue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-size: 12px;
}
.rx-queue-bar[hidden] { display: none !important; }
.rx-queue-bar strong { color: var(--accent); font-variant-numeric: tabular-nums; }

.instr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}
.instr-tabs .btn { min-height: var(--touch); font-size: 10px; padding: 0 8px; }

.instr-workspace {
  flex: 1 1 auto;
  min-height: 64px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  background: var(--bg-elevated);
}

.chart-wrap {
  position: relative;
  background: #05080e;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 88px;
}
.chart-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 72px;
  max-height: 200px;
}

.probe-display {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  text-align: center;
  padding: 4px 8px;
  background: #05080e;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-shadow: 0 0 10px rgba(61, 184, 160, 0.25);
}
.probe-display .unit { font-size: 12px; color: var(--text-dim); margin-left: 4px; }

.readings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  font-family: var(--mono);
  flex-shrink: 0;
}
.readings-table th, .readings-table td {
  border: 1px solid var(--border);
  padding: 3px 5px;
  text-align: right;
}
.readings-table th { text-align: left; background: var(--bg-elevated); color: var(--text-dim); }

.allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 4px;
}
.allergen-grid .cell {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  text-align: center;
  min-height: 36px;
}
.allergen-grid .cell.on { border-color: var(--warn); background: rgba(245, 166, 35, 0.12); }

.escandallo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11px;
}
.escandallo-form label { display: flex; flex-direction: column; gap: 2px; color: var(--text-dim); }
.escandallo-form input[type="number"],
.escandallo-form input[type="text"],
.escandallo-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  min-height: var(--touch);
}

.order-board {
  display: grid;
  gap: 4px;
  font-size: 11px;
}
.order-board .ticket {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}

.kitchen-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.field-inline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: var(--text-dim);
  min-width: 0;
}
.field-inline select, .field-inline input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  min-height: 32px;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tabs .btn {
  flex: 1;
  min-height: 36px;
  border-radius: 4px 4px 0 0;
  font-size: 10px;
}

.panel-practice .pb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.exercise-select-wrap {
  display: none;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.exercise-select {
  width: 100%;
  min-height: var(--touch);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 8px;
  color: var(--text);
}
.exercise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
  flex: 0 1 auto;
  max-height: min(28vh, 160px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  background: var(--bg);
  min-height: 0;
}
.exercise-list li button {
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  min-height: var(--touch);
  font-size: 11px;
  color: var(--text);
}
.exercise-list li.active button,
.exercise-list li button.active { border-color: var(--accent); color: var(--accent); }
.exercise-list .ex-item.active button { border-color: var(--accent); color: var(--accent); }

.exercise-brief, .ex-brief {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 0;
  flex-shrink: 0;
  max-height: 4.2em;
  overflow: auto;
}

.score-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.score-bar strong { color: var(--accent); }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.action-row .btn { flex: 1 1 auto; }

.feedback {
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.4;
  display: none;
}
.feedback.show { display: block; }
.feedback.pass { border-color: var(--good); background: rgba(52, 211, 153, 0.08); color: var(--good); }
.feedback.fail { border-color: var(--crit); background: rgba(255, 77, 94, 0.08); color: #ffb0b8; }

.tutor-box {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  flex: 1;
}
.tutor-box h4 {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tutor-log {
  flex: 1;
  min-height: 48px;
  max-height: 100px;
  overflow: auto;
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px;
  background: var(--bg-elevated);
}
.tutor-box textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  min-height: 44px;
  resize: vertical;
}
.ai-note, .ai-disclaimer {
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.35;
}

.pro-cta {
  display: none;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--warn);
  border-radius: 6px;
  background: rgba(245, 166, 35, 0.08);
  font-size: 12px;
  color: var(--warn);
}
.pro-cta.show { display: block; }

.pro-lock {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
}
.pro-lock::after {
  content: " 🔒";
  font-size: 10px;
}

.sev-ok { color: var(--good); }
.sev-warn { color: var(--warn); }
.sev-crit { color: var(--crit); font-weight: 700; }

.collapse-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  min-width: var(--touch);
  min-height: var(--touch);
  font-size: 14px;
  border-radius: 4px;
}
.collapse-btn:hover { border-color: var(--border); }

.timer-badge {
  font-family: var(--mono);
  color: var(--warn);
  font-size: 12px;
}
.timer-badge.crit { color: var(--crit); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.72);
}
.modal[hidden] { display: none !important; }
.modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.modal-card h2 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--accent);
}
.solution-box {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dim);
  white-space: pre-wrap;
}
.attempts-box {
  margin-top: 8px;
  max-height: 140px;
  overflow: auto;
  font-size: 11px;
  font-family: var(--mono);
}

body.projector { font-size: 15px; }
body.projector .scenario-banner strong { font-size: 17px; }
body.projector .btn { min-height: 40px; font-size: 13px; }

body.panel-side-collapsed .panel-practice { display: none; }
body.panel-side-collapsed .station { grid-template-columns: 1fr; }

body.high-contrast {
  --bg: #000;
  --bg-panel: #0a0a0a;
  --text: #fff;
  --border: #fff;
  --accent: #ffd080;
}
body.large-text { font-size: 15px; }
body.large-text .readings-table { font-size: 12px; }
body.dyslexia {
  font-family: "Segoe UI", Verdana, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
body.colorblind {
  --accent: #56b4e9;
  --good: #009e73;
  --crit: #d55e00;
  --warn: #e69f00;
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (max-height: 600px) {
  :root { --header-h: 40px; --disclaimer-h: 22px; --a11y-h: 28px; }
  .disclaimer { font-size: 10px; }
  .a11y-bar { font-size: 9px; gap: 4px 8px; }
  .ph { height: 24px; font-size: 9px; }
  .pb { padding: 6px; }
  .chart-wrap { min-height: 64px; }
  .chart-wrap canvas { max-height: 120px; }
  .probe-display { font-size: 18px; padding: 2px 6px; }
  /* Selector compacto: evita solape con el enunciado en Chromebook */
  .exercise-list { display: none; }
  .exercise-select-wrap { display: block; }
  .tutor-log { max-height: 64px; }
  .instr-workspace { min-height: 48px; }
  .panel-scene .pb { overflow: hidden; }
}

@media (max-height: 530px) {
  :root { --header-h: 36px; --disclaimer-h: 18px; --a11y-h: 0px; }
  .app { grid-template-rows: var(--disclaimer-h) var(--header-h) 1fr; }
  .a11y-bar { display: none; }
  .disclaimer .role-note { display: none; }
  .exercise-list { display: none; }
  .exercise-select-wrap { display: block; }
  .chart-wrap { min-height: 52px; }
  .chart-wrap canvas { max-height: 96px; }
  .tutor-box { display: none; }
  .kitchen-controls .btn { min-height: var(--touch); padding: 0 6px; font-size: 9px; }
  .readings-table { font-size: 9px; }
  .scenario-banner { padding: 4px 8px; }
  .scenario-banner strong { font-size: 11px; }
}

/* Barra de suscripción del sitio: en móvil queda arriba y tapa la cabecera.
   La movemos encima del dock (como ElectraLab) para que #sitebar y #lang queden usables. */
@media (max-width: 760px) {
  body.simulath-has-upgrade-bar #simulath-upgrade-bar {
    top: auto !important;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
    border-bottom: 0 !important;
    border-top: 1px solid rgba(59, 108, 255, 0.45) !important;
    max-height: 36vh !important;
    z-index: 55;
  }
  body.simulath-has-upgrade-bar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 720px) {
  .app { padding-bottom: 52px; }
  .station {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 42vh) minmax(0, 1fr);
  }
  body.mob-focus-scene .panel-practice { display: none; }
  body.mob-focus-scene .station { grid-template-rows: 1fr; }
  body.mob-focus-practice .panel-scene { display: none; }
  body.mob-focus-practice .station { grid-template-rows: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .sb-all { display: none; }
  .sb-title { font-size: 11px; max-width: 120px; }
  .btn, .exercise-list li button, .action-row .btn, .kitchen-controls .btn,
  .instr-tabs .btn, .touch-target, .touch-control, .a11y-toggle,
  .escandallo-form select, .escandallo-form input,
  .aula-slot .btn, .sb-lang, .sb-lang select, #lang {
    min-height: var(--touch) !important;
    min-width: var(--touch);
  }
  .a11y-toggle {
    min-height: var(--touch) !important;
    min-width: var(--touch) !important;
    padding: 6px 8px;
  }
  .a11y-toggle input {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .sb-logo { min-width: var(--touch); min-height: var(--touch); }
  .mobile-dock { display: flex !important; }
  .exercise-list { display: none; }
  .exercise-select-wrap { display: block; }
}

@media (max-width: 420px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .app {
    grid-template-rows: auto auto auto 1fr;
  }
  .station {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 38vh) minmax(0, 1fr);
  }
  .sitebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 6px;
    align-items: center;
    height: auto;
    min-height: var(--touch);
    padding: 4px 6px;
    overflow: visible;
  }
  .sb-logo { grid-column: 1; grid-row: 1; }
  .sb-logo span { display: none; }
  .sb-title {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    font-size: 11px;
  }
  .sb-lang {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    z-index: 60;
  }
  .sb-lang select,
  #lang {
    min-width: 72px;
    max-width: 104px;
    width: auto;
  }
  .aula-slot {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
  }
  .aula-slot .btn {
    flex: 1;
    padding: 0 6px;
    font-size: 10px;
    min-height: var(--touch);
  }
  .sb-all, .sb-sp { display: none; }
  .btn { min-height: var(--touch); }
  .escandallo-form { grid-template-columns: 1fr; }
  .instr-tabs .btn { flex: 1 1 45%; }
}

.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #0b121c;
  border-top: 1px solid var(--border);
  padding: 4px;
  gap: 4px;
}
.mobile-dock .btn { flex: 1; min-height: var(--touch); font-size: 10px; }

.situation-card {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-dim);
}
.situation-card strong { color: var(--text); font-weight: 600; }
.situation-card .sit-row { margin: 2px 0; }
.decision-panel {
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  background: rgba(61, 184, 160, 0.06);
  border-radius: 4px;
}
.decision-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.decision-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
}
.decision-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: var(--touch);
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
}
.decision-opt:hover { background: rgba(255, 255, 255, 0.04); }
.decision-opt input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
body.mode-decision-p02 #btnDispense,
body.mode-decision-p02 #btnShowAlert,
body.mode-decision-p02 #btnRefer,
body.mode-decision-p02 #btnRegisterAct,
body.mode-decision-p03 #fridgeProtocolBtns,
body.mode-decision-p04 #btnGuide,
body.mode-decision-p04 #btnLabel {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html.a11y-contrast {
  --bg: #000;
  --bg-panel: #0a0a0a;
  --text: #fff;
  --text-dim: #ddd;
  --border: #888;
  --accent: #5dffd0;
}
html.a11y-large { font-size: 18px; }
html.a11y-large .btn { min-height: 48px; font-size: 13px; }
html.a11y-dyslexia body {
  letter-spacing: 0.04em;
  line-height: 1.6;
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  text-align: left;
}
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 720px) {
  body.mob-practice .panel-scene { display: none; }
  body:not(.mob-practice) .panel-practice { display: none; }
  .station { grid-template-columns: 1fr; }
  body { padding-bottom: 52px; }
}
