/* Guided investigation controls: readable, keyboard accessible, offline. */
.lab-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.lab-switcher button { text-align: left; padding: 15px 19px; border: 1px solid #b9d4dd; background: #fff; border-radius: 12px; color: #254c60; }
.lab-switcher button[aria-pressed="true"] { background: #e9f6f7; border: 2px solid #227c89; padding: 14px 18px; }
.lab-switcher strong { display: block; font-size: 1rem; margin-bottom: 5px; }
.lab-switcher span { display: block; font-size: .8rem; line-height: 1.4; }
.booster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booster-card { border: 1px solid #bcd4df; border-radius: 9px; padding: 11px 5px; background: #f8fbfc; color: #254d60; }
.booster-card[aria-pressed="true"] { outline: 2px solid #388a9c; background: #eaf7fa; }
.booster-card strong, .booster-card small { display: block; }
.booster-card strong { font-size: .8rem; }
.booster-card small { margin-top: 5px; font-size: .9rem; font-weight: 800; }
.teacher-notes { margin-top: 20px; padding: 17px 21px; font-size: .83rem; line-height: 1.55; }
.teacher-notes summary { cursor: pointer; color: #3a5d6e; font-weight: 700; }
.teacher-notes p { margin: 13px 0 0; }
.build-note { margin: 14px 2px 0; font-size: .75rem; color: #476373; }
.investigation-panel { padding: 14px; margin-bottom: 18px; }
.mode-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 14px 18px; border: 2px solid #cbdde4; border-radius: 10px; background: #fff; color: #254c60; text-align: left; font-size: 1rem; font-weight: 800; }
.mode-tile > span:first-child { display: grid; gap: 3px; }
.mode-tile strong { font-size: .96rem; }
.mode-tile small { color: #537180; font-size: .76rem; font-weight: 600; line-height: 1.35; }
.mode-tile.recording-tile { border-color: #b88b2c; background: #fffaf0; }
.mode-tile.recording-tile[aria-pressed="true"] { border-color: #9b6812; background: #fff2d8; }
.mode-tile::after { content: ''; width: 20px; flex-shrink: 0; }
.mode-tile[aria-pressed="true"] { border-color: #176879; background: #e8f5f7; color: #10495c; }
.mode-tile[aria-pressed="true"]::after { content: '✓'; }
.mode-tile:hover:not(:disabled) { border-color: #176879; background: #f1f9fa; }
.mode-tile:disabled { opacity: .65; cursor: not-allowed; }
.topic-tiles { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dbe6eb; }
#activeRunLabel { margin: 14px 0; }
#activeRunSelect { display: block; width: 100%; min-height: 42px; margin-top: 6px; padding: 8px; border: 1px solid #b6cfd9; border-radius: 7px; background: #fff; color: #173e51; font-size: .84rem; }
.control-panel > .panel-heading, .results-panel > .panel-heading { margin-bottom: 14px; }
.investigation-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; }
.investigation-top > div { flex: 1 1 270px; }
.investigation-top label { flex: 1 1 220px; max-width: 370px; margin: 0; }
.investigation-top h2 { font-size: 1.05rem; }
.investigation-panel p { font-size: .87rem; margin: 12px 0 0; }
.investigation-panel select, .plan-panel select, #tableGroup, .graph-controls select { display: block; width: 100%; min-height: 42px; margin-top: 6px; padding: 8px; border: 1px solid #b6cfd9; border-radius: 7px; background: #fff; color: #173e51; font-size: .84rem; }
.constants-note { color: #284f5e; font-size: .79rem; line-height: 1.6; }
.constants-note:empty, .lock-reason:empty, .validation-message:empty, .plan-feedback:empty, #observationFeedback:empty { display: none; }
.investigation-goal { font-weight: 700; color: #234b62; }
.science-note { padding: 10px 13px; border-left: 3px solid #b77b15; background: #fffaec; color: #574420; border-radius: 0 6px 6px 0; }
.impact-model-context { font-size: .76rem; line-height: 1.5; }
.plan-panel { margin: 0 0 18px; padding: 13px; border: 1px solid #c1dbe2; border-radius: 10px; background: #f2f8fa; }
.plan-panel h3 { color: #234b62; }
.plan-summary { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #c7dde4; }
.plan-summary div { margin: 7px 0; }
.plan-summary dt { font-size: .72rem; color: #496777; }
.plan-summary dd { margin: 2px 0 0; font-size: .8rem; font-weight: 700; color: #254c60; line-height: 1.4; }
.plan-panel label { font-size: .79rem; }
.plan-panel select { font-size: .8rem; }
.plan-panel input[type="number"] { width: 100%; padding: 9px; margin-top: 6px; color: #173e51; border: 1px solid #b6cfd9; border-radius: 7px; background: #fff; }
.playback-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 0 16px 15px; }
.playback-controls button { font-size: .77rem; }
.suggested-settings { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.suggested-settings button { flex: 1; padding: 8px 4px; font-size: .76rem; color: #145361; background: #eef7f8; border: 1px solid #aacbd2; border-radius: 7px; }
.plan-panel button { margin-top: 14px; font-size: .8rem; }
.plan-feedback, .validation-message, #observationFeedback { color: #933b24; font-size: .79rem; line-height: 1.5; margin: 9px 0; }
.plan-feedback ul { padding-left: 18px; margin: 6px 0; }
.lock-reason { font-size: .76rem; line-height: 1.45; color: #3c596a; margin: 6px 0 13px; }
.lock-reason::before { content: '🔒 '; }
.control-panel :disabled, select:disabled { cursor: not-allowed; opacity: .72; }
.control-panel fieldset:disabled .object-card.selected { opacity: 1; }
input[type="range"]:disabled { accent-color: #667d87; }
[aria-invalid="true"] { border-color: #ad482d !important; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #c08820; outline-offset: 3px; }
.data-set-tag { display: block; font-size: .69rem; font-weight: 750; color: #285a71; min-width: 80px; }
.trial-warning { display: block; color: #923d26; font-size: .69rem; margin-top: 4px; }
#tableGroup { max-width: 380px; margin-bottom: 12px; }
.graph-controls { display: grid; grid-template-columns: minmax(130px, .75fr) 1fr 1fr; gap: 10px; margin: 12px 0; }
.graph-controls label { color: #355565; font-size: .78rem; font-weight: 750; }
.recording-cta { margin: 15px 0; padding: 15px; border: 2px solid #a97920; border-radius: 12px; background: linear-gradient(135deg, #fff8e7, #fffdf7); box-shadow: 0 6px 16px #8d651018; }
.recording-cta .section-kicker { margin: 0 0 4px; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.recording-cta h3 { margin: 0; color: #754a09; font-size: 1rem; }
.recording-cta p:not(.section-kicker) { margin: 7px 0 12px; color: #574220; font-size: .8rem; line-height: 1.45; }
.recording-cta .button { margin: 0; }
.driving-question { margin: 7px 0 0; max-width: 660px; padding: 9px 12px; border-left: 4px solid #b47c20; background: #fff9e9; color: #4e421e; border-radius: 0 8px 8px 0; font-weight: 750; line-height: 1.45; }
#graphExcluded { color: #754022; font-size: .78rem; line-height: 1.5; margin-top: 12px; }
#graphExcluded ul { padding-left: 18px; }
.evidence-tracker { max-width: 560px; }
.tracker-chip { white-space: normal; line-height: 1.45; }
#cerReadiness { padding: 9px 12px; background: #f0f7fa; border-radius: 8px; }
.section-kicker, .eyebrow { color: #11746f; }
@media (max-width: 760px) {
  .lab-switcher { grid-template-columns: 1fr; }
  .investigation-panel { padding: 16px; }
  .investigation-top label { max-width: none; }
  .graph-panel .section-row { flex-wrap: wrap; }
  .graph-controls { grid-template-columns: 1fr; }
  .plan-panel select, .investigation-panel select { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }
@media print { .investigation-panel, .plan-panel, .lab-switcher, .teacher-notes { display: none; } }
