.test-clock{display:flex;align-items:center;justify-content:center;gap:18px;padding:16px;margin:12px 0;border:1px solid #42658b;border-radius:14px;background:#192b40;color:#f3f5f7;min-width:0}
.test-clock svg{width:132px;height:132px;flex:0 0 132px}.clock-face{fill:#111b29;stroke:#82bbff;stroke-width:2}.clock-ticks line{stroke:#8aaacb;stroke-width:1}.test-clock text{fill:#c9dcf2;font:9px system-ui}.clock-minute{stroke:#f3f5f7;stroke-width:4;stroke-linecap:round}.clock-second{stroke:#82bbff;stroke-width:2;stroke-linecap:round}.clock-pivot{fill:#82bbff}
.test-clock strong,.test-clock output,.test-clock small{display:block}.test-clock output{font:700 30px ui-monospace,monospace;font-variant-numeric:tabular-nums;color:#fff}.test-clock small,.test-clock .clock-status{font:12px/1.4 system-ui;color:#c0d1e4}.test-clock button{display:block;margin-top:10px;padding:10px 16px;min-height:44px;background:#2466cd;color:#fff;border:1px solid #82bbff;border-radius:9px;font:700 14px system-ui;cursor:pointer}.test-clock button:disabled{background:#20354e;cursor:default}.test-clock button:focus-visible{outline:3px solid #82bbff;outline-offset:3px}.clock-status{margin:6px 0 0}
#emergencyAdvanceButton,#neuroObserve,#hydrationAdvance,#cardioAdvance{display:none!important}
@media(max-width:420px){.test-clock{gap:10px;padding:10px}.test-clock svg{width:104px;height:104px;flex-basis:104px}}
/* Respiratory controls fit the actual panel width, including beside the monitor. */
#emergencyRespiratoryControls .oxygen-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
#emergencyRespiratoryControls .oxygen-control-grid>label:first-child{grid-column:1/-1}
#emergencyRespiratoryControls .oxygen-control-grid label{min-width:0;font-size:.875rem;gap:8px}
#emergencyRespiratoryControls .oxygen-control-grid select{width:100%;min-width:0;max-width:100%;height:auto;min-height:48px;font-size:1rem}
#emergencyRespiratoryControls .input-with-unit{display:flex;align-items:center;min-width:0;border:1px solid #56616e;border-radius:9px;background:#272b30;padding:0 10px;gap:6px}
#emergencyRespiratoryControls .input-with-unit input{width:100%;min-width:0;max-width:100%;padding:12px 0;border:0;background:transparent;font-size:1rem;box-shadow:none}
#emergencyRespiratoryControls .input-with-unit small{position:static;transform:none;flex:none;font-size:.8rem;max-width:none;color:#9bcaff}
#emergencyRespiratoryControls .input-with-unit:focus-within{outline:2px solid #82bbff;outline-offset:2px}
#emergencyRespiratoryControls .oxygen-action-row{display:flex;flex-direction:column;align-items:stretch;gap:16px}
#emergencyRespiratoryControls .oxygen-device-summary{min-width:0;overflow-wrap:anywhere}#emergencyRespiratoryControls .oxygen-device-summary strong{font-size:1rem;line-height:1.5}
#emergencyRespiratoryControls .oxygen-status{border:1px solid #42658b;border-left:4px solid #82bbff;padding:14px;border-radius:9px;font-size:.9rem;line-height:1.6}
@media(max-width:420px){#emergencyRespiratoryControls .oxygen-control-grid{grid-template-columns:1fr}}
#emergencyRespiratoryControls>.oxygen-status-label{grid-column:2;margin:8px 0 0;font-size:.85rem;font-weight:700;color:#c0d1e4}
@media(max-width:700px){#emergencyRespiratoryControls>.oxygen-status-label{grid-column:1}}

/* Scenario actions belong after the references, in normal document flow. */
.scenario-footer-actions { position: static; order: 7; display: flex; flex-wrap: wrap; gap: .65rem; width: 100%; min-width: 0; box-sizing: border-box; margin-top: 1rem; padding: 1rem 0; }
.simlaber-modern .scenario-footer-actions > button,
.simlaber-modern .scenario-footer-actions #emergencyBackToCatalog { position: static; inset: auto; margin: 0; width: auto; min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.fullscreen-control { display: flex; flex-direction: column; gap: .35rem; max-width: 22rem; }
#fullscreenStatus { font-size: .8rem; line-height: 1.4; }
#fullscreenStatus:empty { display: none; }
@media (max-width: 600px) {
  .scenario-footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .scenario-footer-actions > button, .scenario-footer-actions > a { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: .85rem !important; }
  .scenario-footer-actions > a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .35rem; }
}

/* Ventilator: one border and one focus ring for each value/unit control.
   Scoped overrides are required because the shared theme forces input borders. */
#emergencyRespiratoryControls .input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  gap: 12px;
}
#emergencyRespiratoryControls .input-with-unit > input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-align: left;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
#emergencyRespiratoryControls .input-with-unit > small {
  position: static;
  inset: auto;
  transform: none;
  white-space: nowrap;
  line-height: 1.4;
  pointer-events: none;
}

/* Legacy WordPress tube decoration must follow the simulator procedure state. */
body:not([data-simlab-confirmed-intubation="true"]) .sl-et-tube {
  display: none !important;
}

#emergencyVentilationPanel > .respiratory-tab-note { margin:0 0 16px; color:#c0d1e4; font-size:.875rem; line-height:1.5; }
#emergencyRespiratoryControls [hidden] { display:none!important; }
#dkaAssessment{margin:1rem 0;padding:1.25rem}#dkaAssessment form{display:grid;gap:.6rem;margin:1rem 0}#dkaAssessment .dka-exam-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:end}#dkaAssessment label{display:grid;gap:.3rem}#dkaAssessment input,#dkaAssessment select,#dkaAssessment textarea{max-width:100%;box-sizing:border-box}#dkaAssessmentFeedback{min-height:3em;padding:.75rem;border:1px solid #3c658a;border-radius:.5rem}#dkaClockAnchor+.test-clock{margin-bottom:1rem}
/* DKA: compact, readable procedure fields and independent infusion channels. */
#dkaAirwayControls {border-top:1px solid #465565;margin-top:1rem;padding-top:1rem}
#dkaAirwayControls form {margin-block:1rem;min-width:0}
#dkaAirwayControls input:not([type=checkbox]),#dkaAirwayControls select {width:100%;min-width:0}
#dkaAirwayPumps {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#dkaAirwayPumps form {padding:1rem;border:1px solid #465565;border-radius:12px;margin:0}
#dkaAirwayPumps label {display:block;margin-bottom:.5rem}
#dkaAirwayPumps button {margin:.25rem 0}
@media(max-width:700px){#dkaAirwayPumps{grid-template-columns:1fr}}
