/* Greenhouse Effect & Climate Lab styles (structure shared with the Seasons & Sunlight Lab). */
.gh {
  --gh-ink: #14263a; --gh-muted: #4b6075; --gh-paper: #eef4f7; --gh-card: #ffffff; --gh-line: #cfdce4;
  --gh-accent: #0d6670; --gh-accent-ink: #ffffff; --gh-sun: #e89a2c; --gh-soft: #f3f7f9; --gh-ok: #1f7a3d; --gh-no: #b3261e;
  --gh-shadow: 0 1px 2px rgba(16, 40, 60, .06), 0 8px 24px rgba(16, 40, 60, .07);
  color: var(--gh-ink); font: 16px/1.5 "Atkinson Hyperlegible", system-ui, sans-serif;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #dcebf3, var(--gh-paper) 70%);
  padding: 0 clamp(12px, 2vw, 28px) 56px; min-height: 70vh;
}
html[data-theme="dark"] .gh {
  --gh-ink: #e6eef3; --gh-muted: #aabdca; --gh-paper: #0f1b26; --gh-card: #172633; --gh-line: #33495a;
  --gh-accent: #3fb5a3; --gh-accent-ink: #062521; --gh-soft: #1d3040; --gh-ok: #7fdc9a; --gh-no: #ff9b93;
  --gh-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #19324a, var(--gh-paper) 70%);
}
.gh *, .gh *::before, .gh *::after { box-sizing: border-box; }
.gh [hidden] { display: none !important; }
.gh h1, .gh h2, .gh h3 { color: var(--gh-ink); font-family: inherit; }
.gh-eyebrow { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .08em; color: var(--gh-accent); }
.gh-muted { color: var(--gh-muted); }

/* title bar */
.gh-bar { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0 8px; }
.gh-titles { flex: 1 1 260px; }
.gh-bar h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.gh-level { padding: 4px 12px; border-radius: 999px; background: var(--gh-soft); border: 1px solid var(--gh-line); font-weight: 700; }
.gh-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* buttons */
.gh .gh-btn { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--gh-line); background: var(--gh-card); color: var(--gh-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.gh .gh-btn:hover { border-color: var(--gh-accent); }
.gh .gh-btn:disabled { opacity: .5; cursor: not-allowed; }
.gh .gh-btn--pri { background: var(--gh-accent); border-color: var(--gh-accent); color: var(--gh-accent-ink); }
.gh .gh-btn--ghost { background: transparent; }
.gh .gh-btn--small { min-height: 36px; padding: 6px 12px; margin-top: 6px; }
.gh button:focus-visible, .gh a:focus-visible, .gh input:focus-visible, .gh select:focus-visible, .gh textarea:focus-visible { outline: 3px solid #eaa33d; outline-offset: 2px; }

/* level gate */
.gh-gate { max-width: 1500px; margin: 8px auto 0; padding: clamp(18px, 4vw, 48px); border-radius: 22px; background: linear-gradient(140deg, #071a30, #11405e 60%, #b9853d); }
.gh-gate-card { max-width: 860px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); border-radius: 18px; background: var(--gh-card); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.gh-gate-card h2 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0; }
.gh-gate-lede { font-size: 18px; color: var(--gh-muted); }
.gh-gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.gh-gate-grid button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--gh-line); border-radius: 14px; cursor: pointer; background: var(--gh-soft); color: var(--gh-ink); }
.gh-gate-grid button:hover, .gh-gate-grid button:focus-visible { border-color: var(--gh-accent); box-shadow: 0 0 0 3px rgba(13, 102, 112, .25); }
.gh-gate-grid button:disabled { opacity: .45; cursor: not-allowed; }
.gh-gate-grid b { font-size: 21px; }
.gh-gate-grid span { color: var(--gh-muted); }
.gh-gate-grid em { font-style: normal; font-weight: 700; color: var(--gh-accent); }

/* tabs */
#workspace { max-width: 1500px; margin: 0 auto; }
.gh-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; }
.gh-tabs button { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; white-space: nowrap; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--gh-line); background: var(--gh-card); color: var(--gh-ink); cursor: pointer; }
.gh-tabs button.is-on { background: var(--gh-ink); color: var(--gh-card); border-color: var(--gh-ink); }

/* stage */
.gh-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.gh-scene { background: #0a1a30; border-radius: 16px; overflow: hidden; box-shadow: var(--gh-shadow); color: #eaf3f8; }
.gh-viewbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px; background: #0d223b; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gh-views { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-views button { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #d7e7f2; cursor: pointer; }
.gh-views button.is-on { background: #f3b54a; color: #1a1408; border-color: #f3b54a; }
.gh-transport { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gh-scene .gh-btn { background: #16304d; border-color: rgba(255, 255, 255, .2); color: #eef6fb; min-height: 40px; padding: 8px 12px; }
.gh-scene .gh-btn:hover { border-color: #f3b54a; }
.gh-speed { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.gh-speed select, .gh-controls select { font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: #16304d; color: #eef6fb; padding: 6px 8px; }
.gh-canvas-wrap { position: relative; }
#scene { display: block; width: 100%; touch-action: none; }
.gh-caption { margin: 0; padding: 10px 14px; background: #0d223b; color: #d6e6f1; border-top: 1px solid rgba(255, 255, 255, .08); min-height: 3.2em; }
.gh-controls { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 14px 12px; background: #10263f; }
.gh-ctl input[type=range] { margin: 0; }
.gh-ctl { display: flex; flex-direction: column; gap: 2px; font-weight: 700; min-width: 210px; flex: 1 1 210px; }
.gh-ctl input[type=range] { width: 100%; accent-color: #f3b54a; min-height: 28px; }
.gh-out { font-weight: 800; color: #ffd27a; margin-left: 6px; }
.gh-check { display: flex; align-items: center; gap: 8px; font-weight: 700; align-self: center; }
.gh-check input { width: 20px; height: 20px; accent-color: #f3b54a; }

/* readouts */
.gh-readouts { display: flex; flex-direction: column; gap: 12px; }
.gh-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gh-metric { background: var(--gh-card); border: 1px solid var(--gh-line); border-left: 4px solid var(--gh-sun); border-radius: 12px; padding: 7px 10px; box-shadow: var(--gh-shadow); line-height: 1.3; }
.gh-metric--v { border-left-color: var(--gh-accent); }
.gh-metric span, .gh-metric small { display: block; font-size: 16px; color: var(--gh-muted); }
.gh-metric span { font-weight: 700; color: var(--gh-ink); }
.gh-metric b { display: block; font-size: 22px; line-height: 1.25; color: var(--gh-ink); white-space: nowrap; }
.gh-year { background: var(--gh-card); border: 1px solid var(--gh-line); border-radius: 12px; padding: 10px; box-shadow: var(--gh-shadow); }
.gh-year h3 { margin: 0 0 6px; font-size: 18px; }
.gh-year canvas, #labGraph { display: block; width: 100%; }

/* lab work */
.gh-work { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.4fr); gap: 14px; margin-top: 14px; }
.gh-panel { background: var(--gh-card); border: 1px solid var(--gh-line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--gh-shadow); }
.gh-panel h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.2; }
.gh-panel h3 { margin: 14px 0 6px; font-size: 18px; }
.gh-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gh-pred { border: 1px solid var(--gh-line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: var(--gh-soft); }
.gh-pred legend { font-weight: 700; padding: 0 4px; }
.gh-pred label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; cursor: pointer; }
.gh-pred input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gh-accent); }
.gh-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gh-cards li { border: 1px dashed var(--gh-line); border-radius: 10px; padding: 8px 10px; }
.gh-cards li span { display: block; color: var(--gh-muted); }
.gh-cards li.done { border-style: solid; border-color: var(--gh-ok); background: rgba(31, 122, 61, .08); }
.gh-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gh-steps li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gh-line); font-weight: 700; }
.gh-steps li.done { border-color: var(--gh-ok); color: var(--gh-ok); }
.gh-months { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.gh .gh-chip { appearance: none; font: 700 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; min-width: 56px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gh-line); background: var(--gh-soft); color: var(--gh-ink); cursor: pointer; }
.gh .gh-chip.done { border-color: var(--gh-ok); color: var(--gh-ok); }
.gh .gh-chip.is-on { outline: 2px solid var(--gh-sun); }
.gh-inline { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.gh-inline select { font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; border-radius: 8px; border: 1px solid var(--gh-line); background: var(--gh-card); color: var(--gh-ink); padding: 6px 8px; max-width: 100%; }
.gh-feedback { min-height: 1.5em; font-weight: 700; color: var(--gh-accent); margin: 8px 0 0; }
.gh-data-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gh-data-head h3 { margin: 2px 0 8px; font-size: 20px; }
.gh-table { overflow: auto; max-height: 290px; border: 1px solid var(--gh-line); border-radius: 10px; margin-bottom: 12px; }
.gh table { width: 100%; border-collapse: collapse; font-size: 16px; }
.gh th, .gh td { padding: 7px 10px; border-bottom: 1px solid var(--gh-line); text-align: right; white-space: nowrap; color: var(--gh-ink); }
.gh th:first-child, .gh td:first-child, .gh th:nth-child(2), .gh td:nth-child(2) { text-align: left; }
.gh th { position: sticky; top: 0; background: var(--gh-soft); font-weight: 800; }
.gh-empty { text-align: center !important; color: var(--gh-muted) !important; }

/* CER */
.gh-cer { margin-top: 14px; }
.gh-cer-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gh-checklist { list-style: none; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--gh-soft); min-width: 280px; }
.gh-checklist li { padding: 2px 0; color: var(--gh-muted); }
.gh-checklist li.done { color: var(--gh-ok); font-weight: 700; }
.gh-cer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.gh-cer-grid label { display: flex; flex-direction: column; font-weight: 800; }
.gh-cer-grid small { font-weight: 500; color: var(--gh-muted); }
.gh-cer-grid textarea { font: 16px/1.45 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 130px; padding: 10px; margin-top: 4px; border: 1px solid var(--gh-line); border-radius: 10px; background: var(--gh-card); color: var(--gh-ink); resize: vertical; }
.gh-turnin { margin-top: 12px; }

/* test */
.gh-test { margin-top: 14px; max-width: 980px; }
.gh-test-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gh-test-head h2 small { font-size: 18px; color: var(--gh-muted); }
.gh-progress { flex: 0 1 260px; height: 10px; background: var(--gh-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--gh-line); }
.gh-progress i { display: block; height: 100%; background: var(--gh-accent); }
.gh-tag { display: inline-block; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; background: #fff1d6; color: #6b4300; font-weight: 700; }
html[data-theme="dark"] .gh-tag { background: #4a3510; color: #ffe2a8; }
.gh-q { font-size: 19px; font-weight: 700; margin: 12px 0; }
.gh-run { margin-bottom: 10px; }
.gh-readout { margin: 8px 0 0; padding: 10px 12px; border-left: 4px solid var(--gh-sun); background: var(--gh-soft); border-radius: 8px; }
.gh-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.gh-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--gh-line); border-radius: 12px; cursor: pointer; background: var(--gh-card); }
.gh-choice input { position: absolute; opacity: 0; pointer-events: none; }
.gh-choice:focus-within { outline: 3px solid #eaa33d; outline-offset: 2px; }
.gh-choice.is-picked { border-color: var(--gh-accent); background: var(--gh-soft); }
.gh-choice.ok { border-color: var(--gh-ok); }
.gh-choice.no { border-color: var(--gh-no); }
.gh-choice em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 20px; }
.gh-choice.ok em { color: var(--gh-ok); } .gh-choice.no em { color: var(--gh-no); }
.gh-letter { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gh-soft); border: 1px solid var(--gh-line); }
.gh-choices:disabled .gh-choice { cursor: default; }
.gh-explain { padding: 10px 12px; border-radius: 10px; background: var(--gh-soft); }
.gh-explain.ok { border-left: 4px solid var(--gh-ok); } .gh-explain.no { border-left: 4px solid var(--gh-no); }
.gh-test-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.gh-test-nav .gh-btn--pri { margin-left: auto; }
.gh-review { padding-left: 22px; }
.gh-review li { margin: 8px 0; }
.gh-review li.ok > b { color: var(--gh-ok); } .gh-review li.no > b { color: var(--gh-no); }

/* dialogs */
.gh-dialog { max-width: 720px; border: 0; border-radius: 16px; padding: 22px 26px; color: #14263a; background: #fff; box-shadow: 0 20px 70px rgba(0, 0, 0, .4); font: 16px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif; }
html[data-theme="dark"] .gh-dialog { background: #172633; color: #e6eef3; }
html[data-theme="dark"] .gh-dialog a { color: #8fd6f0; }
.gh-dialog::backdrop { background: rgba(6, 21, 37, .7); }
.gh-dialog h2 { margin-top: 0; }
.gh-x { float: right; font-size: 28px; line-height: 1; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }

/* responsive */
@media (max-width: 1100px) {
  .gh-stage { grid-template-columns: minmax(0, 1fr); }
  .gh-metrics { grid-template-columns: repeat(3, 1fr); }
  .gh-work { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gh-gate-grid, .gh-cer-grid { grid-template-columns: minmax(0, 1fr); }
  .gh-metrics { grid-template-columns: 1fr 1fr; }
  .gh-viewbar { flex-direction: column; align-items: stretch; }
  .gh-views button { flex: 1; }
  .gh-ctl { min-width: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gh * { transition: none !important; animation: none !important; } }
@media print { .gh-scene, .gh-tabs, .gh-actions, .gh-turnin { display: none !important; } }

.gh small { font-size: 16px; }
.gh .gh-th-title { text-align: left !important; background: var(--gh-card); color: var(--gh-accent); font-weight: 800; position: static; }
.gh .gh-th-sub { position: static; }
.gh-caption { font-size: 16px; }

/* ── v3 structure: modes, tabs, coach, pre-lab, advanced, toast ── */
.gh-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 0 8px; }
.gh-modes-label { font-weight: 800; margin-right: 4px; }
.gh-modes button { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--gh-line); background: var(--gh-card); color: var(--gh-ink); cursor: pointer; }
.gh-modes button.is-on { border-color: var(--gh-accent); background: var(--gh-accent); color: var(--gh-accent-ink); }
.gh-modes-note { color: var(--gh-muted); }
.gh-tabs button.is-on { background: var(--gh-ink); color: var(--gh-card); border-color: var(--gh-ink); }
.gh-stage { grid-template-columns: minmax(0, 1fr) 350px; }
.gh-side { display: flex; flex-direction: column; gap: 10px; }
.gh-coach { background: var(--gh-card); border: 1px solid var(--gh-line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--gh-shadow); }
.gh-coach h2 { font-size: 18px; margin: 2px 0 6px; }
.gh-next { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--gh-soft); border-left: 4px solid var(--gh-sun); }
.gh-stepchecks { list-style: none; margin: 8px 0; padding: 0; }
.gh-stepchecks li { padding: 2px 0; color: var(--gh-muted); }
.gh-stepchecks li.done { color: var(--gh-ok); font-weight: 700; }
.gh-ch summary { cursor: pointer; font-weight: 800; padding: 4px 0; min-height: 32px; }
.gh-ice canvas { display: block; width: 100%; border-radius: 8px; margin: 6px 0; }
.gh-ice input[type=range] { width: 100%; accent-color: var(--gh-accent); }
.gh-zoom { position: absolute; left: 10px; bottom: 34px; display: flex; flex-direction: column; gap: 6px; }
.gh-zoom button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(10,26,48,.85); color: #fff; font: 800 20px/1 system-ui; cursor: pointer; }
.gh-adv { background: #0d223b; border-top: 1px solid rgba(255,255,255,.08); }
.gh-adv summary { cursor: pointer; padding: 10px 14px; font-weight: 800; color: #ffd27a; min-height: 44px; }
.gh-adv-grid { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 4px 14px 14px; }
.gh-adv-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 100%; }
.gh-adv .gh-metric { background: #16304d; border-color: rgba(255,255,255,.12); color: #eaf3f8; }
.gh-adv .gh-metric span, .gh-adv .gh-metric b, .gh-adv .gh-metric small { color: #eaf3f8; }
.gh-seed { display: flex; align-items: center; gap: 10px; }
.gh-seed b { font-size: 20px; color: #ffd27a; }
.gh-ctl small { font-weight: 500; color: #c3dce6; }
.gh-scene select { font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: #16304d; color: #eef6fb; padding: 6px 8px; }
.gh-flash { animation: slFlash 2.4s ease-out; border-radius: 10px; }
@keyframes slFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,184,0,0); } 15%, 55% { box-shadow: 0 0 0 5px #ffb800; } }
.gh-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(640px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 12px; background: #10253b; color: #fff; font-weight: 700; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
/* pre-lab */
.gh-prelab h3 { margin-top: 18px; }
.gh-qbox { padding: 12px 14px; border-radius: 12px; background: var(--gh-soft); border-left: 5px solid var(--gh-accent); margin: 10px 0; }
.gh-qbox small { display: block; color: var(--gh-muted); font-weight: 700; }
.gh-qbox b { font-size: 19px; }
.gh-prelab-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.gh-vocab { display: flex; flex-wrap: wrap; gap: 8px; }
.gh .gh-term { position: relative; appearance: none; font: inherit; color: var(--gh-accent); font-weight: 800; background: none; border: 0; border-bottom: 2px dotted currentColor; padding: 0 1px; cursor: help; }
.gh-vocab .gh-term { border: 1px solid var(--gh-line); border-radius: 999px; padding: 6px 12px; background: var(--gh-soft); min-height: 40px; }
.gh-tip { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, 80vw); padding: 10px 12px; border-radius: 10px; background: #10253b; color: #fff; font-weight: 500; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.gh-term:hover .gh-tip, .gh-term:focus .gh-tip, .gh-term:focus-visible .gh-tip { display: block; }
.gh-safety { padding-left: 0; list-style: none; }
.gh-safety li { padding: 6px 10px; margin: 6px 0; border-radius: 8px; background: #fff4d6; color: #5a3b00; }
html[data-theme="dark"] .gh-safety li { background: #3d2c0b; color: #ffe2a8; }
.gh-frame { line-height: 2.4; font-size: 17px; }
.gh-frame select { font: 700 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; border-radius: 8px; border: 2px solid var(--gh-accent); background: var(--gh-card); color: var(--gh-ink); padding: 4px 8px; }
.gh-because { display: flex; flex-direction: column; font-weight: 700; }
.gh-because textarea { font: 16px/1.45 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 80px; padding: 10px; margin-top: 4px; border: 1px solid var(--gh-line); border-radius: 10px; background: var(--gh-card); color: var(--gh-ink); }
.gh-varpool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px; border: 1px dashed var(--gh-line); border-radius: 12px; }
.gh-varbins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gh-varbin { min-height: 120px; padding: 8px; border: 2px solid var(--gh-line); border-radius: 12px; background: var(--gh-soft); display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; cursor: pointer; }
.gh-varbin h4 { flex: 1 1 100%; margin: 0 0 4px; }
.gh .gh-varchip { appearance: none; font: 700 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--gh-line); background: var(--gh-card); color: var(--gh-ink); cursor: pointer; }
.gh .gh-varchip.picked { border-color: var(--gh-sun); box-shadow: 0 0 0 3px rgba(232,154,44,.35); }
.gh .gh-varchip.right { border-color: var(--gh-ok); } .gh .gh-varchip.wrong { border-color: var(--gh-no); }
/* data + CER */
.gh-data h3 { margin: 14px 0 6px; font-size: 18px; }
#labGraph { margin-top: 14px; border-radius: 10px; }
.gh-pick { margin: 10px 0; border: 1px solid var(--gh-line); border-radius: 12px; padding: 8px 12px; }
.gh-pick summary { cursor: pointer; font-weight: 800; min-height: 32px; }
.gh-rowpick { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.gh-rowpick input { width: 18px; height: 18px; margin-top: 3px; }
#rowPick { max-height: 220px; overflow: auto; }
.gh-done { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(31,122,61,.10); border: 2px solid var(--gh-ok); }
.gh-more { position: relative; }
.gh-more summary { list-style: none; }
.gh-more summary::-webkit-details-marker { display: none; }
.gh-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--gh-card); border: 1px solid var(--gh-line); box-shadow: var(--gh-shadow); min-width: 240px; }
@media (max-width: 1100px) { .gh-prelab-grid { grid-template-columns: minmax(0, 1fr); } .gh-stage { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .gh-varbins { grid-template-columns: minmax(0, 1fr); } .gh-adv-metrics { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .tlg-header, .tlg-footer, .gh-bar .gh-actions, .gh-modes, .gh-tabs, #stageWrap, .gh-pick, .gh-turnin, .gh-toast, #testCard { display: none !important; }
  .gh { background: #fff; color: #000; }
  #tab-data, #tab-cer { display: block !important; box-shadow: none; }
}
/* compact header rows so the scene and its controls fit at 1366×768 */
.gh-titles .gh-eyebrow { display: none; }
.gh-bar { padding: 8px 0 6px; }
.gh-bar h1 { font-size: 26px; white-space: nowrap; }
.gh-bar .gh-btn { min-height: 40px; padding: 7px 12px; }
.gh-modes { padding: 0 0 6px; }
.gh-modes button, .gh-tabs button { min-height: 40px; padding: 7px 13px; }
.gh-tabs { padding: 0 0 8px; }
@media (max-width: 760px) { .gh-bar h1 { white-space: normal; } }
/* scene full width; coach, readouts and graph in a row underneath */
.gh-stage { grid-template-columns: minmax(0, 1fr); }
.gh-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: start; }
.gh-side .gh-metrics { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .gh-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .gh-side .gh-year { grid-column: 1 / -1; } }
@media (max-width: 760px) { .gh-side { grid-template-columns: minmax(0, 1fr); } }

/* Greenhouse Effect & Climate Lab additions */
.gh-row--wrap { flex-wrap: wrap; }
.gh-dec { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--gh-soft, rgba(120,160,200,.1)); margin: 8px 0; }
.gh-dec input[type=number] { font: inherit; font-size: 16px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--gh-line, #9ab); background: transparent; color: inherit; }
.gh-links a { white-space: nowrap; }
body.gh-printing .gh-stage, body.gh-printing .gh-tabs, body.gh-printing .gh-modes { display: none; }
#sideChart { display: block; width: 100%; }
.gh-coach, .gh-side > * { min-width: 0; }
.gh-cards li { overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
.gh-cards li select { max-width: 100%; }
@media (max-width: 640px) { .gh-zoom { bottom: auto; top: 96px; } }
/* the site's "Sign in to save your progress" note sits in the Investigation row (page flow), never over the scene */
.gh-signin:empty { display: none; }
.gh-signin { margin-left: auto; display: flex; }
.gh-signin .tlg-signin-note--inline { margin: 0; }
