/* Simulath Accounting Lab — dark shell (amber/gold accent, not purple/teal) */
:root {
  --bg: #070b12;
  --bg-panel: #0c131e;
  --bg-elevated: #121b29;
  --border: #1e2c3f;
  --text: #e7eef7;
  --text-dim: #8fa2b8;
  --text-faint: #546b82;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --warn: #fbbf24;
  --crit: #ff4d5e;
  --good: #34d399;
  --header-h: 44px;
  --disclaimer-h: 28px;
  --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; }

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

/* G-F / G3: hub upgrade bar (.sub-inner) — keep lab chrome above it */
body.simulath-has-upgrade-bar {
  padding-bottom: 72px;
}
body.simulath-has-upgrade-bar .mobile-dock {
  bottom: 72px;
}
/* Practice actions (above tutor): no sticky — sticky overlapped btnTutorAsk/tutorInput @1093×530 & 360 */
#tutorActions {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  margin-bottom: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
  flex-shrink: 0;
}
body.simulath-has-upgrade-bar .panel-practice .pb {
  padding-bottom: 12px;
  scroll-padding-bottom: 16px;
}
@media (max-width: 760px) {
  body.simulath-has-upgrade-bar {
    padding-bottom: 0 !important;
    padding-top: 96px !important;
  }
  body.simulath-has-upgrade-bar .mobile-dock {
    bottom: 0;
  }
  body.simulath-has-upgrade-bar .sitebar {
    z-index: 100000;
  }
}

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) 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: 45%;
}

.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: inline-flex;
  align-items: center;
  justify-content: 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: 0 4px;
}
.sb-logo img { display: block; width: 18px; height: 18px; }
.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);
}
.sb-lang select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  min-height: var(--touch);
  height: var(--touch);
  padding: 0 8px;
  border-radius: 4px;
  min-width: 112px;
}
.aula-slot { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.aula-slot .btn {
  min-width: var(--touch);
  min-height: var(--touch);
}

.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, #3d2a0c, #2a1c08);
  border-color: #8a5a12;
  color: var(--accent);
}
.btn.danger { background: #2a1216; border-color: #6b2430; color: var(--crit); }
.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, 1.2fr) minmax(280px, 0.9fr) minmax(260px, 0.8fr);
  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;
}
.instruments-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-alarms {
  min-height: 18px;
  font-size: 11px;
  color: var(--crit);
  flex-shrink: 0;
}

.company-banner {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(90deg, #12100a, #0c131e 60%);
  border: 1px solid #3a2e14;
  border-radius: 6px;
  padding: 8px 10px;
  flex-shrink: 0;
}
.company-banner strong {
  display: block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.company-meta {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.desk-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.3fr);
  gap: 8px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.docs-block, .journal-form-block {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
}

.block-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.doc-list {
  list-style: none;
  overflow: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-list li button {
  width: 100%;
  text-align: left;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  min-height: var(--touch);
  font-size: 11px;
  color: var(--text);
}
.doc-list li button.active { border-color: var(--accent); color: var(--accent); }
.doc-list .doc-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-2);
  display: block;
}
.doc-list .doc-label {
  color: var(--text-dim);
  font-size: 10px;
}

.entry-meta { margin-bottom: 4px; }
.lines-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.lines-table, .data-table, .chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.lines-table th, .lines-table td,
.data-table th, .data-table td,
.chart-table th, .chart-table td {
  border: 1px solid var(--border);
  padding: 3px 4px;
  text-align: left;
}
.lines-table th, .data-table th, .chart-table th {
  background: #0a1018;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 10px;
}
.lines-table input, .lines-table select {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 4px 6px;
  min-height: 32px;
}
.lines-table .amt { text-align: right; font-family: var(--mono); }
.entry-actions { margin-top: 4px; }
.entry-balance {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  margin-top: 4px;
  min-height: 16px;
}
.entry-balance.ok { color: var(--good); }
.entry-balance.bad { color: var(--crit); }

.journal-block {
  flex: 0 1 28%;
  min-height: 80px;
  max-height: 160px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  background: #080e16;
}
.table-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.table-scroll.compact { max-height: 120px; }
.data-table td.num, .chart-table td { text-align: right; font-family: var(--mono); }
.data-table td.num { font-size: 10px; }

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--text-dim);
  min-width: 0;
}
.field.full { grid-column: 1 / -1; }
.field label { letter-spacing: 0.04em; }
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  min-height: 36px;
  width: 100%;
}
.field textarea { min-height: 52px; resize: vertical; }
.field .hint { font-size: 10px; color: var(--text-faint); }

.checkrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  font-size: 12px;
}
.checkrow input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.checkrow label {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  flex: 1;
  cursor: pointer;
}

.mark-legend {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 6px;
}
.mark-table-wrap {
  max-height: 160px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.mark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.mark-table th,
.mark-table td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.mark-table .amt {
  text-align: right;
  font-family: var(--mono);
  white-space: nowrap;
}
.mark-table input.mark-line {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
  cursor: pointer;
}
.mark-table label {
  cursor: pointer;
  display: block;
  min-height: 22px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.action-row .btn { min-height: var(--touch); 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;
  white-space: pre-wrap;
}
.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; }
.feedback.crit { border-color: var(--warn); color: var(--warn); }

.tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tabs .btn {
  flex: 1;
  min-height: var(--touch);
  min-width: var(--touch);
  border-radius: 4px 4px 0 0;
  font-size: 10px;
}
.ex-select-wrap {
  display: none;
  margin-bottom: 8px;
}
.ex-select {
  width: 100%;
  min-height: var(--touch);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
}
.ex-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  background: var(--bg-panel);
}
.ex-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);
}
.ex-list li button.active { border-color: var(--accent); color: var(--accent); }
.ex-list li button .lock { color: var(--warn); font-size: 10px; float: right; }
.ex-brief {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 8px;
  position: relative;
  z-index: 0;
}
.score-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  margin-bottom: 6px;
}
.score-bar strong { color: var(--accent); }

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

.prof-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}
.prof-panel.show { display: block; }

.instr-section {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  background: #080e16;
  flex-shrink: 0;
}
.models-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}
.model-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  background: #080e16;
  min-width: 0;
}

.sem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 4px;
  font-family: var(--mono);
}
.sem-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.sem-ok .sem-dot { background: var(--good); box-shadow: 0 0 8px rgba(52, 211, 153, 0.45); }
.sem-bad .sem-dot { background: var(--crit); box-shadow: 0 0 8px rgba(255, 77, 94, 0.45); }
.sem-ok { color: var(--good); }
.sem-bad { color: var(--crit); }

.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  font-size: 11px;
}
.kv dt { color: var(--text-dim); }
.kv dd {
  font-family: var(--mono);
  text-align: right;
  color: var(--accent);
  margin: 0;
}

/* T-account: Debe | Haber */
.t-account {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-size: 11px;
}
.t-account .t-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-size: 10px;
  padding: 4px;
}
.t-account .t-title {
  padding: 4px 6px;
  font-family: var(--mono);
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.t-account .t-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 72px;
}
.t-account .t-debe {
  border-right: 2px solid var(--accent-2);
  padding: 4px 6px;
}
.t-account .t-haber { padding: 4px 6px; }
.t-account .t-line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 0;
  border-bottom: 1px dotted #1a2535;
}
.t-account .t-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  background: #0a1018;
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 6px;
  color: var(--text-dim);
}
.t-account .t-bal {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

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

.collapse-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  min-width: var(--touch);
  min-height: var(--touch);
  width: var(--touch);
  height: var(--touch);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.collapse-btn:hover { border-color: var(--border); color: var(--text); }

.tutor-ai {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  background: var(--bg-elevated);
  margin-bottom: 8px;
  position: relative;
  z-index: 0;
}
.tutor-ai h4 {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.tutor-ask-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
  margin-bottom: 6px;
}
.tutor-ai textarea,
.tutor-ask-grid textarea {
  width: 100%;
  min-height: 52px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  resize: vertical;
  margin-bottom: 0;
  min-width: 0;
}
.tutor-ask-grid #btnTutorAsk {
  min-height: var(--touch);
  min-width: var(--touch);
  white-space: normal;
  max-width: 9.5em;
  flex-shrink: 0;
  align-self: stretch;
}
.tutor-reply {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  min-height: 1.2em;
  margin-top: 6px;
  white-space: pre-wrap;
}

body.projector { font-size: 15px; }
body.projector .sb-title { font-size: 16px; }
body.projector .btn { min-height: 40px; font-size: 13px; }
body.projector .company-banner strong { font-size: 18px; }

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

/* Chromebook heights — scene + instruments without vertical page scroll */
@media (max-height: 600px) {
  :root { --header-h: 40px; --disclaimer-h: 22px; }
  .disclaimer { font-size: 10px; }
  .company-banner { padding: 4px 8px; }
  .company-banner strong { font-size: 12px; }
  .ex-select-wrap { display: block; }
  .ex-list { display: none; }
  .journal-block { max-height: 110px; min-height: 64px; }
  .table-scroll.compact { max-height: 88px; }
  .pb { padding: 6px; }
  .canvas-wrap { min-height: 80px; }
  .canvas-wrap canvas { max-height: 100px; }
  .t-account .t-cols { min-height: 48px; }
  .tutor-ai { padding: 6px; }
  .tutor-ai textarea,
  .tutor-ask-grid textarea { min-height: 40px; }
  .tutor-ask-grid #btnTutorAsk { font-size: 10px; max-width: 7.5em; padding: 0 6px; }
}

@media (max-height: 530px) {
  :root { --header-h: 36px; --disclaimer-h: 18px; }
  .disclaimer { font-size: 9px; padding: 0 6px; }
  .disclaimer .role-note { display: none; }
  .ex-select-wrap { display: block; }
  .ex-list { display: none; }
  .journal-block { max-height: 80px; }
  .models-row { grid-template-columns: 1fr; }
  .desk-grid { grid-template-columns: 110px 1fr; }
  .canvas-wrap { min-height: 64px; }
  .canvas-wrap canvas { max-height: 80px; }
}

/* Mobile — scene stays reachable via dock; one primary panel at a time */
@media (max-width: 720px) {
  .app { padding-bottom: 52px; }
  .station {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 38vh) minmax(0, 1fr);
  }
  body.mob-focus-scene .station { grid-template-rows: 1fr; }
  body.mob-focus-scene .panel-practice,
  body.mob-focus-scene .panel-monitor { display: none !important; }
  body.mob-focus-practice .panel-scene { display: none !important; }
  body.mob-focus-practice .station { grid-template-rows: 1fr; }
  .panel-monitor { display: none; }
  body.show-monitor .panel-monitor { display: flex; }
  body.show-monitor .panel-practice,
  body.show-monitor .panel-scene { display: none !important; }
  body.show-monitor .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: 110px; }
  .btn, .doc-list li button, .ex-list li button, .action-row .btn {
    min-height: var(--touch);
  }
  .mobile-dock { display: flex !important; }
  .desk-grid { grid-template-columns: 1fr; }
  .docs-block { max-height: 120px; }
  .panel-scene .pb { overflow: auto; -webkit-overflow-scrolling: touch; }
  .journal-wrap { max-height: 140px; }
}

@media (max-width: 360px) {
  .tutor-ask-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .tutor-ask-grid #btnTutorAsk {
    max-width: none;
    width: 100%;
  }
  html, body { overflow-x: hidden; max-width: 100vw; }
  .sitebar { gap: 2px; padding: 0 4px; }
  .sb-logo span { display: none; }
  .sb-title { display: none; } /* G4: liberar sitio para #lang */
  .sb-all { display: none; }
  .sb-sp { display: none; }
  .aula-slot .sab-chip { display: none; } /* G4: chip largo del bridge; queda #btnAula */
  .sb-lang {
    flex-shrink: 0;
    margin-left: auto;
  }
  .sb-lang select {
    min-width: 64px;
    max-width: 78px;
    width: 78px;
    padding: 0 2px;
    font-size: 10px;
  }
  .sb-logo, .aula-slot .btn, .sb-lang select, .tabs .btn, .collapse-btn {
    min-width: var(--touch);
    min-height: var(--touch);
  }
  .aula-slot { gap: 2px; flex-shrink: 1; min-width: 0; }
  .aula-slot .btn { padding: 0 4px; font-size: 10px; max-width: 56px; overflow: hidden; }
  .controls-grid { grid-template-columns: 1fr; }
  .models-row { grid-template-columns: 1fr; }
  .station {
    grid-template-rows: minmax(200px, 40vh) minmax(0, 1fr);
  }
  .doc-list li button { font-size: 11px; text-align: left; }
  .ex-select-wrap { display: block; }
  .ex-list { display: none; }
}

.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); }

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

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

.tutor-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  background: var(--bg-elevated);
  margin-bottom: 8px;
}
.tutor-box h4 {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
