/* 딴짓 탐구실 · 조작은 큼직하게, 관찰은 또렷하게. */
.science-lab {
  --science-accent: #d8c7f3;
  --science-edge: #688078;
  --science-shadow: #c9d6bf;
  color: var(--ink, #253f50);
  min-width: 0;
  max-width: 100%;
}
.science-lab *, .science-teacher-preview * { min-width: 0; }
.science-lab [hidden] { display: none !important; }
.science-lab button { min-height: 46px; font-size: 14px; line-height: 1.5; }
.science-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 19px; }
.science-header h2 { margin: 0 0 7px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.3; }
.science-header p { margin: 0; max-width: 52em; color: #506570; font-size: 15px; line-height: 1.65; }
.science-header .eyebrow { color: #61517d; margin-bottom: 7px; }
.science-eyebrow { display: block; margin: 0 0 7px; color: #65517d; font-size: 11px; font-weight: 750; letter-spacing: .035em; line-height: 1.5; }
.science-lab-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; max-width: 100%; padding: 6px 11px; border: 1px solid #b5a1cb; border-radius: 999px; background: #ece2f6; color: #5c4774; font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.science-header img { width: 112px; height: 106px; object-fit: contain; flex: 0 0 auto; }
.science-topic-picker, .science-topic-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.science-topic-card, .teacher-design-dialog .science-topic-option {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px; min-height: 96px; padding: 13px 15px; border: 1.5px solid #98aa9b; border-radius: 19px;
  background: #fffefa; color: #294654; text-align: left; box-shadow: 0 3px 0 #d9e0cc;
  font-size: 15px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere;
  transition: transform .18s var(--spring, ease), background .18s, border-color .18s, box-shadow .18s;
  cursor: pointer;
}
.science-topic-card b, .science-topic-card strong, .science-topic-option b, .science-topic-option strong { font-size: 16px; font-weight: 800; line-height: 1.4; }
.science-topic-card small, .science-topic-option small, .science-topic-card span:not(.science-topic-icon) { font-size: 12px; font-weight: 500; line-height: 1.55; color: #53656d; }
.science-topic-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid #83998e; border-radius: 9px; background: #fffefa; margin-bottom: 4px; color: #4c6270; }
.science-topic-card:nth-child(1), .science-topic-option:nth-child(1) { --topic-color: #e5d9f5; --topic-shadow: #c4b3d8; }
.science-topic-card:nth-child(2), .science-topic-option:nth-child(2) { --topic-color: #d8ebfb; --topic-shadow: #a9c4d6; }
.science-topic-card:nth-child(3), .science-topic-option:nth-child(3) { --topic-color: #ffe8a6; --topic-shadow: #d8c07c; }
.science-topic-card:nth-child(4), .science-topic-option:nth-child(4) { --topic-color: #daf0d8; --topic-shadow: #b2c8a6; }
.science-topic-card.is-active, .science-topic-card[aria-pressed="true"], .teacher-design-dialog .science-topic-option:has(:checked), .teacher-design-dialog .science-topic-option.is-active {
  background: var(--topic-color, #e5d9f5); border-color: #657b6c; box-shadow: 0 4px 0 var(--topic-shadow, #c4b3d8);
}
.science-topic-card:active:not(:disabled), .teacher-design-dialog .science-topic-option:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--topic-shadow, #c4b3d8); }
.teacher-design-dialog .science-topic-options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.teacher-design-dialog fieldset.science-topic-options { border: 0; padding: 0; min-width: 0; }
.teacher-design-dialog .science-topic-options > legend.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.teacher-design-dialog label.science-topic-option:has(> input[type="radio"]), .teacher-design-dialog .science-topic-option { align-items: flex-start; flex-direction: column; min-height: 100px; padding-right: 36px; margin: 0; }
.teacher-design-dialog .science-topic-option > span { display: grid; gap: 5px; }
.teacher-design-dialog .science-topic-option > input[type="radio"] { position: absolute; top: 13px; right: 12px; width: 19px; height: 19px; margin: 0; }
.teacher-design-dialog .science-topic-option:focus-within { outline: 3px solid #416ba1; outline-offset: 3px; }
.science-teacher-preview { padding: 12px 0 4px; }
.science-teacher-preview > .badge { margin-bottom: 10px; }
.teacher-design-dialog [data-science-settings] { display: grid; gap: 13px; }
.teacher-design-dialog [data-science-settings][hidden] { display: none; }
.science-teacher-preview h4 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.science-teacher-preview p, .science-teacher-preview li { font-size: 13px; line-height: 1.7; color: #3c594d; }
.science-teacher-preview ul, .science-teacher-preview ol { margin: 12px 0; padding-left: 20px; }
.science-teacher-preview li + li { margin-top: 7px; }
.science-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.science-mode, .science-mode-switch, .science-segmented { display: flex; gap: 5px; padding: 5px; border: 1px solid #b8c8ae; border-radius: 17px; background: #eaf0e2; }
.science-mode button, .science-mode-switch button, .science-segmented button { min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 750; color: #516450; line-height: 1.4; }
.science-mode button.is-active, .science-mode button[aria-pressed="true"], .science-mode-switch button.is-active, .science-segmented button.is-active, .science-segmented button[aria-pressed="true"] { border-color: #839d7c; background: #fffefa; color: #2e4c3b; box-shadow: 0 2px 0 #c7d4b8; }
.science-toolbar > p, .science-toolbar > small { margin: 0; color: #556773; font-size: 13px; line-height: 1.5; }
.science-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(265px, .85fr); align-items: start; gap: 20px; }
.science-stage-panel, .science-control-panel, .science-mission, .science-notebook, .science-explainer { min-width: 0; border: 1.5px solid #a5b5a0; border-radius: 24px; background: #fffefa; padding: 20px; }
.science-stage-panel { background: #edf3ec; box-shadow: 0 5px 0 #cad8bf; border-color: #829b81; }
.science-stage-panel > h3, .science-control-panel > h3, .science-mission h3, .science-notebook h3, .science-explainer h3 { margin: 0 0 13px; font-size: 18px; font-weight: 800; line-height: 1.4; }
.science-stage-panel > p, .science-control-panel > p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; }
.science-diagram { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid #b4c2ae; border-radius: 18px; background: #fffef7; overflow: hidden; color: #304e5c; }
.science-diagram text { font-family: var(--ui-font, sans-serif); font-variant-numeric: tabular-nums; }
.science-sprite { pointer-events: none; overflow: visible; }
.science-sprite image { pointer-events: none; }
.science-header h2 .science-topic-art { display: inline-block; width: 38px; height: 36px; margin-right: 5px; vertical-align: -7px; object-fit: contain; }
.science-topic-card .science-topic-art { width: 42px; height: 32px; object-fit: contain; display: block; }
.science-topic-card > span:has(.science-topic-art) { display: grid; place-items: center; }
.science-svg-pole { fill: #2b4350; font-size: 34px; font-weight: 850; }
.science-svg-label { fill: #36515a; font-size: 25px; font-weight: 750; }
.science-svg-small { fill: #4a6167; font-size: 22px; font-weight: 600; }
.science-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin: 12px 0 0; font-size: 13px; color: #4a625c; line-height: 1.5; }
.science-legend span { display: inline-flex; align-items: center; gap: 6px; }
.science-legend i { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; }
.science-readout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin: 14px 0 0; padding: 13px 15px; border: 1px solid #b0c4a8; border-radius: 15px; background: #dceacd; color: #35543d; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.science-readout strong, .science-readout b { color: #284d38; font-weight: 800; }
.science-readout > p { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
.science-readout.is-success { background: #d4edcf; border-color: #7da779; }
.science-readout.is-retry { background: #fff0c4; border-color: #c1ad78; color: #645236; }
.science-control-panel { display: grid; gap: 16px; background: #fff7df; border-color: #c5b582; box-shadow: 0 4px 0 #e2d7b5; }
.science-control-panel > h3 { margin-bottom: 0; }
.science-field { display: block; margin: 0; font-size: 14px; font-weight: 750; line-height: 1.5; }
.science-field + .science-field { margin-top: 3px; }
.science-field > span, .science-field > .science-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-bottom: 5px; }
.science-field output, .science-field > strong { display: inline-block; padding: 3px 8px; border: 1px solid #c5b385; border-radius: 8px; background: #fffdf4; font-size: 15px; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.science-field [data-science-value] { display: inline-block; padding: 3px 8px; border: 1px solid #c5b385; border-radius: 8px; background: #fffdf4; font-size: 15px; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.science-field select { min-height: 48px; width: 100%; margin-top: 7px; font-size: 16px; border-color: #b9ad88; }
.science-field input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 46px; min-height: 46px; margin: 0; padding: 0; background: transparent; box-shadow: none; border: 0; cursor: pointer; touch-action: pan-y; }
.science-field input[type="range"]::-webkit-slider-runnable-track { height: 9px; border: 1px solid #a9b895; border-radius: 999px; background: #d9e5c6; }
.science-field input[type="range"]::-moz-range-track { height: 8px; border: 1px solid #a9b895; border-radius: 999px; background: #d9e5c6; }
.science-field input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 29px; height: 29px; margin-top: -11px; border: 2px solid #4a6a4d; border-radius: 50%; background: #ffe37a; box-shadow: 0 3px 0 #9aac81; }
.science-field input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 2px solid #4a6a4d; border-radius: 50%; background: #ffe37a; box-shadow: 0 3px 0 #9aac81; }
.science-field input[type="range"]:focus-visible { outline: 3px solid #416ba1; outline-offset: 1px; border-radius: 12px; }
.science-range-ends { display: flex; justify-content: space-between; gap: 8px; margin-top: -5px; color: #65715e; font-size: 12px; font-weight: 500; line-height: 1.5; }
.science-field small, .science-control-help { display: block; margin: 6px 0 0; color: #5d6554; font-size: 12px; font-weight: 450; line-height: 1.65; }
.science-switch { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 12px; border: 1px solid #b9c0a3; border-radius: 13px; background: #fffefa; cursor: pointer; font-size: 14px; font-weight: 700; }
.science-switch input { width: 21px; height: 21px; margin: 0; accent-color: #416c4a; flex: 0 0 auto; }
.science-buttons, .science-actions, .science-choice-row, .science-predictions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.science-buttons button, .science-choice-row button, .science-predictions button { flex: 1 1 110px; min-height: 46px; padding: 11px 14px; border: 1px solid #95ac8d; border-radius: 13px; background: #fffefa; box-shadow: 0 3px 0 #c6d4b7; color: #365443; font-size: 14px; font-weight: 750; line-height: 1.45; }
.science-buttons button.is-active, .science-buttons button[aria-pressed="true"], .science-choice-row button.is-active, .science-choice-row button[aria-pressed="true"], .science-predictions button.is-active, .science-predictions button[aria-pressed="true"] { border-color: #766990; background: #e5d9f5; box-shadow: 0 3px 0 #c8b6da; color: #4e406a; }
.science-buttons button:active:not(:disabled), .science-choice-row button:active:not(:disabled), .science-predictions button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #aebfa2; }
.science-actions .primary, .science-actions .secondary, .science-actions .ghost { min-height: 48px; }
.science-mission { margin: 22px 0 0; border-color: #ad9ac8; background: #f0e8fb; box-shadow: 0 4px 0 #d8cae9; }
.science-mission > header, .science-notebook > header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.science-mission > header h3, .science-notebook > header h3 { margin: 0; }
.science-mission p { color: #514567; font-size: 15px; line-height: 1.7; }
.science-mission > p, .science-mission-task { margin: 0 0 14px; }
.science-mission-stepper, .science-steps { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #5f5076; }
.science-mission-stepper span, .science-steps span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #c0add4; border-radius: 50%; background: #fffefa; font-weight: 750; }
.science-mission-stepper .is-active, .science-steps .is-active { background: #dbbef3; border-color: #8d73ad; color: #4c3767; }
.science-mission-stepper .is-success, .science-steps .is-success { background: #d8efcd; border-color: #8baa78; color: #365a38; }
.science-mission .science-predictions { margin: 13px 0 16px; }
.science-feedback { padding: 12px 15px; margin: 14px 0 0; border: 1px solid #b4aac3; border-radius: 14px; background: #fffefa; color: #514663; font-size: 14px; font-weight: 650; line-height: 1.7; overflow-wrap: anywhere; }
.science-feedback.is-success { background: #e0f0d8; border-color: #8ba67e; color: #31553a; }
.science-feedback.is-retry { background: #fff0d2; border-color: #c3a77a; color: #6d5032; }
.science-notebook { margin-top: 22px; border-color: #c0b48c; background: #fff5d9; }
.science-notebook > header small { font-size: 12px; color: #68664e; }
.science-note-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; }
.science-note-list li { padding: 12px 14px; border: 1px solid #d1caa7; border-radius: 14px; background: #fffefa; color: #435a57; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.science-note-list li strong, .science-note-list li b { display: block; font-size: 14px; margin-bottom: 3px; color: #365346; }
.science-note-empty { margin: 0; color: #666850; font-size: 14px; line-height: 1.7; }
.science-explainer { margin-top: 18px; padding: 16px 20px; border-color: #c2ccbb; background: #f1f5e9; }
.science-explainer > summary { min-height: 44px; display: flex; align-items: center; padding: 3px 0; gap: 8px; font-size: 15px; font-weight: 800; color: #385846; cursor: pointer; }
.science-explainer p, .science-explainer li { color: #4d6558; font-size: 14px; line-height: 1.8; }
.science-explainer > :last-child { margin-bottom: 0; }
.science-explainer[open] > summary { margin-bottom: 10px; }
.science-model-note { margin: 12px 0 0; color: #627165; font-size: 12px; line-height: 1.7; }
.science-status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #a4b798; border-radius: 999px; background: #fffefa; color: #486144; font-size: 12px; font-weight: 750; line-height: 1.5; }
.science-bulb-glow { transition: opacity .22s ease; }
.science-magnet-object { transition: transform .28s var(--ease-out, ease); }
.science-water-surface, .science-shadow { transition: opacity .22s ease, transform .22s ease; }
/* Exact module controls: every choice is a proper finger-sized button. */
.science-choice-group, .science-prediction-options { display: flex; align-items: stretch; flex-wrap: wrap; gap: 9px; }
.science-choice-group .science-choice, .science-prediction-options .science-choice { flex: 1 1 125px; min-height: 46px; padding: 11px 13px; border: 1px solid #95a989; border-radius: 13px; background: #fffefa; box-shadow: 0 3px 0 #c6d4b7; color: #365443; font-size: 14px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.science-choice-group .science-choice.is-active, .science-prediction-options .science-choice.is-active { border-color: #766990; background: #e5d9f5; box-shadow: 0 3px 0 #c8b6da; color: #4e406a; }
.science-choice-group .science-choice:active:not(:disabled), .science-prediction-options .science-choice:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #aebfa2; }
.science-controls { display: grid; gap: 18px; }
.science-control-panel > .science-section-heading, .science-control-panel > .science-controls, .science-control-panel > .science-control-lock { grid-column: 1 / -1; }
.science-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.science-section-heading h3 { margin: 0; font-size: 18px; font-weight: 800; }
.science-section-heading h3 small { color: #6a705a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.science-section-heading .science-eyebrow { margin-bottom: 5px; }
.science-field > .science-range-labels { display: flex; align-items: start; justify-content: space-between; gap: 9px; margin: -4px 0 0; color: #63705b; font-size: 12px; font-weight: 450; line-height: 1.5; }
.science-control-note { margin: 0; color: #5d6554; font-size: 12px; line-height: 1.75; }
.science-live-explanation { margin: 13px 0 0; color: #486358; font-size: 14px; font-weight: 500; line-height: 1.8; overflow-wrap: anywhere; }
.science-readout > span { font-size: 12px; font-weight: 550; }
.science-readout > strong { flex: 1 1 auto; text-align: right; font-size: 18px; }
.science-readout > strong b { display: inline; font-size: inherit; }
.science-readout > small { flex-basis: 100%; color: #486450; font-size: 12px; line-height: 1.65; }
.science-readout.is-lit { background: #ffeb9e; border-color: #b9a25b; color: #63511d; }
.science-readout.is-lit strong { color: #5f4d20; }
.science-phase-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.science-phase-strip span { padding: 7px 5px; text-align: center; border: 1px solid #b8c3b1; border-radius: 11px; background: #fffefa; color: #5d6c61; font-size: 12px; line-height: 1.5; }
.science-phase-strip span.is-active { background: #d8eaf5; color: #335e73; border-color: #8ca9bb; font-weight: 750; }
.science-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 12px 17px; border: 1px solid #253f50; border-radius: 14px; background: #253f50; color: #fffefa; box-shadow: 0 4px 0 #162b36; font-size: 14px; font-weight: 750; line-height: 1.5; }
.science-action.secondary { border-color: #9caa8c; background: #fffefa; color: #365443; box-shadow: 0 3px 0 #c4d0b7; }
.science-action:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #263f4c; }
.science-text-button { padding: 9px 11px; min-height: 44px; border: 1px solid #b7bea0; border-radius: 12px; background: #fffefa; color: #496046; font-size: 13px; font-weight: 650; line-height: 1.5; }
.science-mission-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.science-mission-top .science-eyebrow { margin: 0; }
.science-stepper { display: flex; align-items: center; gap: 6px; }
.science-stepper span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #b9a9cb; border-radius: 50%; background: #fffefa; color: #655276; font-size: 12px; font-weight: 750; }
.science-stepper span.is-current { border-color: #8b70aa; background: #d9bcf1; color: #4a3464; }
.science-stepper span.is-complete { border-color: #8aaa7a; background: #d4ecc7; color: #3b5c38; }
.science-mission .science-prediction-options { margin: 12px 0 15px; }
.science-mission .science-mission-instruction { margin: 0 0 14px; }
.science-mission .science-feedback { margin-bottom: 15px; }
.science-mission .science-action + .science-action { margin-left: 8px; }
.science-mission-footer { display: grid; grid-column: 1 / -1; gap: 12px; margin-top: 17px; padding-top: 17px; border-top: 1px solid #c8b8d9; }
.science-mission-footer .science-feedback { margin: 0; background: #f4eafc; }
.science-mission-footer .science-feedback.is-success { background: #e0f0d8; }
.science-mission-footer .science-feedback.is-retry { background: #fff0d2; }
.science-mission-footer .science-action { width: 100%; }
.science-mission + .science-layout { margin-top: 20px; }
.science-control-lock { padding: 11px 13px; margin: 0 0 14px; border: 1px dashed #b8a388; border-radius: 13px; background: #fff4dc; color: #6d573c; font-size: 13px; line-height: 1.6; }
.science-note-status { margin: 0 0 12px; color: #6a6a52; font-size: 13px; line-height: 1.7; }
.science-note-list li { display: grid; grid-template-columns: 25px minmax(0, 1fr) 44px; align-items: start; gap: 10px; }
.science-note-number { display: grid; place-items: center; width: 25px; height: 25px; margin-top: 3px; border: 1px solid #a9b79e; border-radius: 50%; background: #e5edd8; color: #52654b; font-size: 12px; font-weight: 750; }
.science-note-list li > div > span { display: block; color: #637367; font-size: 12px; line-height: 1.6; }
.science-note-list li > div > strong { margin: 4px 0 0; }
.science-note-delete { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid #cfb6a5; border-radius: 12px; background: #fff0e5; color: #805c47; font-size: 23px !important; line-height: 1; }
.science-note-list li.science-note-empty { display: block; padding: 15px; color: #6a6d51; font-size: 14px; line-height: 1.8; }
.science-notebook > .science-text-button { margin-top: 13px; }
@media (hover: hover) and (pointer: fine) {
  .science-topic-card:hover:not(:disabled), .teacher-design-dialog .science-topic-option:hover { transform: translateY(-2px); border-color: #6f8574; background: var(--topic-color, #edf2e7); box-shadow: 0 5px 0 var(--topic-shadow, #c4d1b8); }
  .science-buttons button:hover:not(:disabled), .science-choice-row button:hover:not(:disabled), .science-predictions button:hover:not(:disabled) { background: #e9f1dd; }
  .science-choice-group .science-choice:hover:not(:disabled), .science-prediction-options .science-choice:hover:not(:disabled) { background: #e9f1dd; }
  .science-action:hover:not(:disabled) { background: #345668; }
  .science-action.secondary:hover:not(:disabled), .science-text-button:hover:not(:disabled) { background: #edf3e2; }
}
@media (max-width: 1000px) {
  .teacher-shell .science-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .teacher-shell .science-control-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .teacher-shell .science-control-panel > h3, .teacher-shell .science-control-panel > p, .teacher-shell .science-control-panel > .science-actions, .teacher-shell .science-control-panel > .science-control-help { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .science-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .science-topic-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .science-control-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .science-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .science-controls > .science-control-note { grid-column: 1 / -1; }
  .science-control-panel > h3, .science-control-panel > p, .science-control-panel > .science-actions, .science-control-panel > .science-buttons, .science-control-panel > .science-control-help { grid-column: 1 / -1; }
  .science-stage-panel, .science-control-panel, .science-mission, .science-notebook { border-radius: 21px; padding: 17px; }
  .science-header { gap: 12px; }
  .science-header img { width: 88px; height: 88px; }
}
@media (max-width: 540px) {
  .science-header { display: grid; grid-template-columns: minmax(0, 1fr) 65px; align-items: flex-start; gap: 9px 11px; margin-bottom: 14px; }
  .science-header > div { grid-column: 1; }
  .science-header .science-header-art { grid-column: 2; grid-row: 1; }
  .science-lab-badge { grid-column: 1 / -1; justify-self: start; white-space: normal; padding: 5px 9px; font-size: 11px; }
  .science-header h2 { font-size: 25px; }
  .science-header p { font-size: 14px; }
  .science-header img { width: 65px; height: 65px; }
  .science-topic-picker { gap: 9px; margin-bottom: 17px; }
  .science-lab .science-topic-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 7px; row-gap: 3px; min-height: 78px; padding: 10px 11px; border-radius: 16px; }
  .science-topic-card > span { grid-column: 1; grid-row: 1; font-size: 19px !important; line-height: 1.35; }
  .science-topic-card .science-topic-art { width: 24px; height: 28px; }
  .science-topic-card > b { grid-column: 2; grid-row: 1; }
  .science-topic-card > small { grid-column: 1 / -1; grid-row: 2; }
  .science-topic-card b, .science-topic-card strong { font-size: 15px; }
  .science-topic-card small { font-size: 12px; }
  .science-toolbar { gap: 9px; margin-bottom: 14px; }
  .science-mode, .science-mode-switch, .science-segmented { flex: 1 1 auto; }
  .science-mode button, .science-mode-switch button, .science-segmented button { flex: 1; padding-inline: 12px; }
  .science-toolbar > p, .science-toolbar > small { width: 100%; font-size: 12px; }
  .science-stage-panel, .science-control-panel, .science-mission, .science-notebook { padding: 14px; border-radius: 19px; }
  .science-stage-panel > h3, .science-control-panel > h3, .science-mission h3, .science-notebook h3 { font-size: 17px; }
  .science-diagram { border-radius: 14px; }
  .science-control-panel, .teacher-shell .science-control-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .science-controls { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .science-readout > strong { font-size: 17px; }
  .science-section-heading h3 { font-size: 17px; }
  .science-note-list li { grid-template-columns: 22px minmax(0, 1fr) 44px; gap: 8px; }
  .science-note-number { width: 22px; height: 22px; font-size: 11px; }
  .science-notebook .science-section-heading > .science-action { flex: 1 1 auto; min-height: 46px; }
  .science-mission .science-action { width: 100%; }
  .science-mission .science-action + .science-action { margin: 12px 0 0; }
  .science-field { font-size: 14px; }
  .science-field select { margin-top: 6px; }
  .science-readout { padding: 11px 12px; font-size: 14px; }
  .science-legend { font-size: 12px; gap: 6px 10px; }
  .science-actions > button { flex: 1 1 125px; font-size: 14px; padding-inline: 10px; }
  .science-notebook, .science-mission { margin-top: 19px; }
  .science-note-list li { padding: 11px 12px; font-size: 13px; }
  .science-mission p { font-size: 14px; }
  .science-explainer { padding: 13px 14px; border-radius: 17px; }
  .science-explainer p, .science-explainer li { font-size: 13px; }
  .science-model-note { font-size: 11px; line-height: 1.8; }
  .teacher-design-dialog label.science-topic-option:has(> input[type="radio"]), .teacher-design-dialog .science-topic-option { min-height: 102px; padding: 12px 30px 12px 11px; }
  .teacher-design-dialog .science-topic-option b, .teacher-design-dialog .science-topic-option strong { font-size: 14px; }
  .teacher-design-dialog .science-topic-option small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .science-lab *, .science-topic-option { animation: none !important; transition: none !important; }
  .science-topic-card:hover:not(:disabled), .teacher-design-dialog .science-topic-option:hover { transform: none; }
}
