/* Choice Chamber Behavior Lab (layout adapted from the finished Wave I enzyme-kinetics lab). Everything is scoped under .pl so site.css (loaded after this file) cannot collide. */
.pl {
  --pl-ink: #14263a; --pl-muted: #4b6075; --pl-paper: #eef4f7; --pl-card: #ffffff; --pl-line: #cfdce4;
  --pl-accent: #0d6670; --pl-accent-ink: #ffffff; --pl-sun: #e89a2c; --pl-soft: #f3f7f9; --pl-ok: #1f7a3d; --pl-no: #b3261e;
  --pl-shadow: 0 1px 2px rgba(16, 40, 60, .06), 0 8px 24px rgba(16, 40, 60, .07);
  color: var(--pl-ink); font: 16px/1.5 "Atkinson Hyperlegible", system-ui, sans-serif;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #dcebf3, var(--pl-paper) 70%);
  padding: 0 clamp(12px, 2vw, 28px) 56px; min-height: 70vh;
}
html[data-theme="dark"] .pl {
  --pl-ink: #e6eef3; --pl-muted: #aabdca; --pl-paper: #0f1b26; --pl-card: #172633; --pl-line: #33495a;
  --pl-accent: #3fb5a3; --pl-accent-ink: #062521; --pl-soft: #1d3040; --pl-ok: #7fdc9a; --pl-no: #ff9b93;
  --pl-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(--pl-paper) 70%);
}
.pl *, .pl *::before, .pl *::after { box-sizing: border-box; }
.pl [hidden] { display: none !important; }
.pl h1, .pl h2, .pl h3 { color: var(--pl-ink); font-family: inherit; }
.pl-eyebrow { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .08em; color: var(--pl-accent); }
.pl-muted { color: var(--pl-muted); }

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

/* buttons */
.pl .pl-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(--pl-line); background: var(--pl-card); color: var(--pl-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pl .pl-btn:hover { border-color: var(--pl-accent); }
.pl .pl-btn:disabled { opacity: .5; cursor: not-allowed; }
.pl .pl-btn--pri { background: var(--pl-accent); border-color: var(--pl-accent); color: var(--pl-accent-ink); }
.pl .pl-btn--ghost { background: transparent; }
.pl .pl-btn--small { min-height: 36px; padding: 6px 12px; margin-top: 6px; }
.pl button:focus-visible, .pl a:focus-visible, .pl input:focus-visible, .pl select:focus-visible, .pl textarea:focus-visible { outline: 3px solid #eaa33d; outline-offset: 2px; }

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

/* tabs */
#workspace { max-width: 1500px; margin: 0 auto; }
.pl-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; }
.pl-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(--pl-line); background: var(--pl-card); color: var(--pl-ink); cursor: pointer; }
.pl-tabs button.is-on { background: var(--pl-ink); color: var(--pl-card); border-color: var(--pl-ink); }

/* stage */
.pl-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.pl-scene { background: #0a1a30; border-radius: 16px; overflow: hidden; box-shadow: var(--pl-shadow); color: #eaf3f8; }
.pl-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); }
.pl-views { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-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; }
.pl-views button.is-on { background: #f3b54a; color: #1a1408; border-color: #f3b54a; }
.pl-transport { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pl-scene .pl-btn { background: #16304d; border-color: rgba(255, 255, 255, .2); color: #eef6fb; min-height: 40px; padding: 8px 12px; }
.pl-scene .pl-btn:hover { border-color: #f3b54a; }
.pl-speed { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pl-speed select, .pl-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; }
.pl-canvas-wrap { position: relative; }
#scene { display: block; width: 100%; touch-action: none; }
.pl-caption { margin: 0; padding: 10px 14px; background: #0d223b; color: #d6e6f1; border-top: 1px solid rgba(255, 255, 255, .08); min-height: 3.2em; }
.pl-controls { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 14px 12px; background: #10263f; }
.pl-ctl input[type=range] { margin: 0; }
.pl-ctl { display: flex; flex-direction: column; gap: 2px; font-weight: 700; min-width: 210px; flex: 1 1 210px; }
.pl-ctl input[type=range] { width: 100%; accent-color: #f3b54a; min-height: 28px; }
.pl-out { font-weight: 800; color: #ffd27a; margin-left: 6px; }
.pl-check { display: flex; align-items: center; gap: 8px; font-weight: 700; align-self: center; }
.pl-check input { width: 20px; height: 20px; accent-color: #f3b54a; }

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

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

/* CER */
.pl-cer { margin-top: 14px; }
.pl-cer-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pl-checklist { list-style: none; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--pl-soft); min-width: 280px; }
.pl-checklist li { padding: 2px 0; color: var(--pl-muted); }
.pl-checklist li.done { color: var(--pl-ok); font-weight: 700; }
.pl-cer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.pl-cer-grid label { display: flex; flex-direction: column; font-weight: 800; }
.pl-cer-grid small { font-weight: 500; color: var(--pl-muted); }
.pl-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(--pl-line); border-radius: 10px; background: var(--pl-card); color: var(--pl-ink); resize: vertical; }
.pl-turnin { margin-top: 12px; }

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

/* dialogs */
.pl-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"] .pl-dialog { background: #172633; color: #e6eef3; }
html[data-theme="dark"] .pl-dialog a { color: #8fd6f0; }
.pl-dialog::backdrop { background: rgba(6, 21, 37, .7); }
.pl-dialog h2 { margin-top: 0; }
.pl-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) {
  .pl-stage { grid-template-columns: minmax(0, 1fr); }
  .pl-metrics { grid-template-columns: repeat(3, 1fr); }
  .pl-work { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pl-gate-grid, .pl-cer-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-metrics { grid-template-columns: 1fr 1fr; }
  .pl-viewbar { flex-direction: column; align-items: stretch; }
  .pl-views button { flex: 1; }
  .pl-ctl { min-width: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pl * { transition: none !important; animation: none !important; } }
@media print { .pl-scene, .pl-tabs, .pl-actions, .pl-turnin { display: none !important; } }

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

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

/* ── Electrochemistry Lab additions ── */
.pl-gate { background: linear-gradient(140deg, #0d1a2e, #1d4f8a 50%, #c8763f); }
.pl-scene { background: #0b1722; }
.pl-zoom { top: 44px; bottom: auto; left: 10px; flex-direction: row; }
.pl-side { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.05fr); }
.pl-metrics { grid-template-columns: 1fr 1fr; }
.pl-metric b { font-size: 20px; white-space: normal; }
.pl-metric--t { border-left-color: #2f8fd8; }
.pl .pl-btn--go { background: #f3b54a; border-color: #f3b54a; color: #1a1408; }
.pl .pl-btn--go:hover { border-color: #fff; }
.pl .pl-btn[aria-pressed="true"] { background: #7ce0c3; border-color: #7ce0c3; color: #062521; }
.pl-pair { display: flex; gap: 6px; }
.pl-pair select { flex: 1; }
.pl-ctl 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; width: 100%; }
.pl-ctl--btn { justify-content: flex-end; min-width: 150px; flex: 0 1 auto; }
.pl-row--tight { margin: 0; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pl-label { margin: 8px 0 0; font-weight: 800; }
.pl-run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.pl-run .pl-readout { flex: 1 1 100%; }
.pl-q b { color: var(--pl-accent); }
.pl-choices + .pl-run { margin-top: 12px; }
.pl-fit { margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--pl-soft); border-left: 4px solid var(--pl-ok); font-weight: 700; }
.pl-compare { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--pl-line); border-radius: 10px; }
.pl-compare select { font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; border-radius: 8px; border: 1px solid var(--pl-line); background: var(--pl-card); color: var(--pl-ink); padding: 4px 6px; max-width: 100%; }
.pl-compare-out { margin: 6px 0 0; font-weight: 700; }
.pl-compare-out.no { color: var(--pl-no); } .pl-compare-out.ok { color: var(--pl-ok); }
.pl-seed { flex-direction: row; align-items: center; gap: 12px; }
.pl-seed b { font-size: 20px; color: #ffd27a; }
.pl dialog sub, .pl dialog sup { line-height: 0; }
html[data-theme="dark"] .pl-dialog sub { color: inherit; }
@media (max-width: 1100px) { .pl-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pl-side .pl-year { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pl-side { grid-template-columns: minmax(0, 1fr); } }

.pl-ctl--sel { min-width: 180px; }
.pl-views button { padding: 8px 12px; }
.pl-zoom { top: auto; bottom: 46px; left: auto; right: 12px; }
/* practice links (Pre-lab and the completion card) */
.pl-practice { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--pl-soft); border-left: 4px solid var(--pl-accent); }
.pl-practice span[aria-hidden] { font-size: 26px; line-height: 1; }
.pl-practice b { display: block; }
.pl-practice a { color: var(--pl-accent); font-weight: 800; }
.pl-toast { pointer-events: none; }   /* informational only: never blocks a tap on the scene below it */

/* ── Body Systems & Immune Response Lab additions ── */
.pl-ctl output { font-weight: 800; color: #ffd27a; font-variant-numeric: tabular-nums; }
.pl-ctl--chk { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.pl-ctl--chk input { width: 22px; height: 22px; accent-color: #f3b54a; }
.pl-ident { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--pl-line); border-radius: 10px; }
.pl-cands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 6px 0; max-height: 260px; overflow: auto; }
.pl-cands label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.pl-cands input { width: 20px; height: 20px; accent-color: var(--pl-accent); }
.pl-cands small { margin-left: auto; color: var(--pl-muted); font-variant-numeric: tabular-nums; }
.pl-graph { margin: 14px 0 0; }
.pl-graph canvas { display: block; width: 100%; border-radius: 10px; }
.pl-graph figcaption { margin-top: 4px; }
.pl-views button { white-space: nowrap; }

/* ── Body Systems lab specifics ── */
.pl-gate { background: linear-gradient(140deg, #2a0d1f, #7a1f3d 45%, #1f6f78); }
.pl-scene { background: #0b1722; }
.pl-graph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .pl-graph-grid { grid-template-columns: minmax(0, 1fr); } }
.pl-role { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; font-weight: 600; }
.pl-role select { font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 40px; border-radius: 8px; border: 1px solid var(--pl-line); background: var(--pl-card); color: var(--pl-ink); padding: 4px 6px; max-width: 100%; }
.pl-role span { font-weight: 800; min-height: 1em; }
.pl-ok { color: var(--pl-ok); } .pl-no { color: var(--pl-no); }
.pl-table { overflow-x: auto; }
.pl-table th { white-space: normal; min-width: 90px; }

/* ── Enzyme Kinetics Lab (layout shared with the Wave H labs) specifics ── */
.pl-gate { background: linear-gradient(140deg, #071d2b, #0f5c6e 48%, #3f8a4a); }
.pl-scene { background: #0b1722; }
.pl-series { margin: 8px 0; border: 1px solid var(--pl-line); border-radius: 10px; padding: 6px 10px; background: var(--pl-card); }
.pl-series summary { cursor: pointer; font-weight: 800; min-height: 32px; display: flex; align-items: center; }
.pl-series .pl-table { max-height: 360px; overflow: auto; }
@media (max-width: 640px) { .pl-zoom { bottom: 8px; } }
.pl-tests { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #0d223b; border-top: 1px solid rgba(255,255,255,.08); }
.pl-tests-label { font-weight: 800; color: #ffd27a; }
.pl-tests .pl-btn { background: #16304d; border-color: rgba(255,255,255,.2); color: #eef6fb; min-height: 40px; padding: 8px 12px; }
.pl-tests .pl-btn.is-done { background: #0f5446; border-color: #7ce0c3; }
.pl-tests .pl-btn.is-done::after { content: " ✓"; }
.pl-classify .pl-rowpick { min-height: 32px; }
.pl-eq { font-size: 18px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pl .pl-coef { width: 3.2em; min-height: 40px; font: 700 18px "Atkinson Hyperlegible", system-ui, sans-serif; text-align: center; border: 2px solid var(--pl-accent); border-radius: 8px; background: var(--pl-card); color: var(--pl-ink); }
.pl-compare input[type=text] { min-height: 40px; font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; border: 1px solid var(--pl-line); border-radius: 8px; padding: 4px 8px; background: var(--pl-card); color: var(--pl-ink); }
.pl-graph h3 { margin: 14px 0 6px; font-size: 18px; }

/* ══ Enzyme Kinetics Lab: its own layout (everything above is the shared Wave H lab sheet) ══ */
.pl-gate { background: linear-gradient(140deg, #0a1a2c, #1c4a7a 48%, #c9a23f); }
.pl-titles .pl-eyebrow { display: none; }
/* tap targets: 44 px everywhere */
.pl .pl-btn, .pl-bar .pl-btn, .pl-scene .pl-btn, .pl-modes button, .pl-tabs button, .pl .pl-varchip, .pl .pl-chip { min-height: 44px; }
.pl .pl-btn--small { min-height: 44px; }
.pl-scene select, .pl-speed select, .pl-controls select, .pl-ctl select, .pl-frame select, .pl-compare select { min-height: 44px; }
.pl-vocab .pl-term { min-height: 44px; }
.pl-pick summary, .pl-ch summary { min-height: 44px; display: flex; align-items: center; }
.pl-rowpick { min-height: 44px; align-items: center; padding: 2px 0; cursor: pointer; }
.pl-rowpick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--pl-accent); }
.pl-choice { min-height: 48px; }

/* start screen */
.pl-gate-card h2 { font-size: clamp(28px, 3.6vw, 40px); }
.pl-how { margin: 10px 0; padding-left: 26px; font-size: 18px; }
.pl-how li { padding: 2px 0; }
.pl-gate-note { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--pl-soft); border-left: 4px solid var(--pl-sun); }
.pl-gate-pick { margin: 16px 0 0; font-weight: 800; font-size: 18px; }
.pl-gate-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.pl-gate-grid button.is-first { border-color: var(--pl-accent); background: var(--pl-card); box-shadow: 0 0 0 3px rgba(13, 102, 112, .18); }
.pl-gate-grid em { order: -1; font-size: 16px; }
@media (max-width: 760px) { .pl-gate-grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* bench: scene on the left, coach and readouts on the right */
.pl-stage { grid-template-columns: minmax(0, 1fr) 350px; }
.pl-stage.pl-stage--solo { grid-template-columns: minmax(0, 1fr); }
.pl-side { display: flex; flex-direction: column; gap: 10px; }
.pl-side .pl-metrics { grid-template-columns: 1fr 1fr; }
.pl-scene canvas { display: block; width: 100%; }
.pl-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 0 8px; }
.pl-duo .pl-canvas-wrap { border-radius: 14px; overflow: hidden; }
.pl-controls { gap: 8px 22px; padding: 10px 14px 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pl-ctl { min-width: 230px; flex: 1 1 230px; max-width: 460px; color: #eaf3f8; }
.pl-ctl input[type=range] { min-height: 44px; }
.pl-ctl .pl-out { margin-left: 4px; }
.pl-viewbar { background: #10263f; border-bottom: 0; padding: 6px 14px 12px; justify-content: flex-start; gap: 10px 22px; }
.pl-check { min-height: 44px; color: #eaf3f8; cursor: pointer; }
.pl-check input { width: 22px; height: 22px; }
.pl-check input:disabled + span { opacity: .7; }
.pl .pl-btn--go { font-size: 18px; padding: 10px 20px; }
.pl-neuronkey { margin: 0; padding: 8px 14px 8px 38px; background: #0d2238; color: #eaf3f8; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 2px 30px; }
.pl-neuronkey li { padding: 1px 0; }
.pl-neuronkey .pl-nokey { list-style: none; grid-column: 1 / -1; margin-left: -24px; color: #c3d6e4; }
.pl-refrkey { margin: 0; padding: 8px 14px 0; color: #eaf3f8; }
.pl-sw { display: inline-block; width: 22px; height: 16px; vertical-align: -2px; border-radius: 3px; margin-right: 2px; border: 1px solid rgba(255, 255, 255, .5); }
.pl-sw--abs { background: repeating-linear-gradient(135deg, rgba(255, 110, 110, .9) 0 2px, rgba(255, 96, 96, .25) 2px 7px); }
.pl-sw--rel { background: radial-gradient(circle, rgba(255, 214, 130, .95) 1.5px, rgba(255, 196, 80, .2) 2px) 0 0 / 7px 7px; }
.pl-phasebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 4px; }
.pl-phasebar-label { font-weight: 800; color: #ffd27a; }
.pl-phases { display: flex; flex-wrap: wrap; gap: 6px; }
.pl .pl-phase { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: #16304d; color: #eef6fb; cursor: pointer; }
.pl .pl-phase:hover { border-color: #f3b54a; }
.pl .pl-phase:disabled { opacity: .55; cursor: not-allowed; }
.pl .pl-phase.is-on { background: #f3b54a; border-color: #f3b54a; color: #1a1408; }
.pl .pl-phase.is-on::before { content: "▶ "; }
.pl-scrub { display: flex; align-items: center; gap: 12px; padding: 2px 14px 6px; font-weight: 700; color: #eaf3f8; }
.pl-scrub input { flex: 1; min-width: 0; min-height: 44px; accent-color: #f3b54a; }
.pl-scrub output { min-width: 108px; text-align: right; font-variant-numeric: tabular-nums; color: #ffd27a; font-weight: 800; }
.pl-caption { min-height: 4.6em; }
/* coach */
.pl-next { font-size: 17px; }
.pl-row--rec { align-items: center; margin: 10px 0 4px; }
.pl-row--rec .pl-muted { flex: 1 1 140px; }
.pl-row--calc { align-items: center; }
.pl-row--calc label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pl-compare input[type=text] { font: 700 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; width: 96px; padding: 6px 8px; border-radius: 8px; border: 2px solid var(--pl-accent); background: var(--pl-card); color: var(--pl-ink); }
.pl-compare p { margin: 4px 0 6px; }
.pl-later { margin: 8px 0 0; }
.pl-metric b { font-size: 20px; white-space: normal; }
/* pre-lab sentence frames: one per line, the menu under its sentence on narrow screens */
.pl-frame { line-height: 1.5; display: grid; gap: 8px; }
.pl-frame-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pl-frame-row select { max-width: 100%; }
/* graphs */
.pl-keys { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.pl-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pl-key canvas { width: 26px; height: 22px; display: inline-block; }
.pl-graph { max-width: 760px; }
.pl-graph-grid .pl-graph { max-width: none; }
.pl-graph h3 { margin: 0 0 6px; }
/* test */
.pl-test-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; }
#benchTest { display: flex; flex-direction: column; gap: 14px; }
.pl-links a { color: var(--pl-accent); font-weight: 700; }
@media (max-width: 1100px) {
  .pl-stage { grid-template-columns: minmax(0, 1fr); }
  .pl-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 760px) {
  .pl-duo { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .pl-duo .pl-canvas-wrap { border-radius: 0; }
  .pl-side { grid-template-columns: minmax(0, 1fr); }
  .pl-viewbar { flex-direction: row; align-items: center; }
  .pl-ctl { flex-basis: 100%; max-width: none; }
}
@media print { .pl-gate, #benchTest { display: none !important; } }
.pl-msg { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--pl-soft); border-left: 4px solid var(--pl-accent); font-weight: 700; }
/* readouts sit under the scene; the coach has the side column to itself */
.pl-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pl-main .pl-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-side { display: flex; flex-direction: column; }
.pl-tabs { flex-wrap: wrap; overflow-x: visible; }
@media (max-width: 1100px) { .pl-side { display: flex; } }
@media (max-width: 760px) { .pl-main .pl-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-x { min-width: 44px; min-height: 44px; }
.pl-table { max-height: none; overflow-y: visible; }
.pl th { position: static; }
.pl-dialog h2 { overflow: hidden; min-height: 44px; display: flow-root; }
.pl-links { display: grid; gap: 6px; }
.pl-links a { display: block; min-height: 28px; }
.pl-frame, .pl-frame-row { min-width: 0; }
.pl-frame-row > * { min-width: 0; max-width: 100%; }
@media (max-width: 760px) { .pl-frame-row select { width: 100%; } }
#rowPick { max-height: 300px; }
/* the site's "Sign in to save your progress" chip docks here, in the page flow under the title row, so it never floats over the bench */
.pl-signin { max-width: 1500px; margin: 0 auto; }
.pl-signin:empty { display: none; }
.pl-signin .tlg-signin-note { margin: 0 0 8px; }

/* ══ Enzyme Kinetics Lab: bench, molecular view, analysis ══ */
.pl-gate { background: linear-gradient(140deg, #0b1d2e, #155a6b 48%, #d9a640); }
.pl-level { padding: 4px 12px; border-radius: 999px; background: var(--pl-soft); border: 1px solid var(--pl-line); font-weight: 700; }
.pl-scenehead { margin: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; color: #eaf3f8; background: #0d223b; }
.pl-scenehead span { color: #ffd27a; font-weight: 700; }
#bench { cursor: pointer; }
.pl-ctl--wide { max-width: none; flex: 1 1 100%; }
.pl-ctl-label { font-weight: 700; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.pl .pl-chip { appearance: none; font: 700 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; min-width: 52px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); background: #16304d; color: #eef6fb; cursor: pointer; }
.pl .pl-chip--wide { min-width: 120px; }
.pl .pl-chip[aria-pressed="true"] { background: #f3b54a; border-color: #f3b54a; color: #1a1408; }
.pl .pl-chip.done:not([aria-pressed="true"])::after { content: " ✓"; color: #7fdc9a; }
.pl .pl-chip:disabled { opacity: .55; cursor: not-allowed; }
.pl-transport { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl .pl-btn--go { background: #f3b54a; border-color: #f3b54a; color: #1a1408; }
.pl-scene .pl-btn:disabled { opacity: .5; }
.pl-molhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px 6px; color: #eaf3f8; border-top: 1px solid rgba(255,255,255,.1); }
.pl-molhead h3 { margin: 0; font-size: 18px; color: #eaf3f8; }
.pl-molhead small { font-weight: 500; color: #c3d6e4; }
.pl-molwrap { margin: 0 8px; border-radius: 12px; overflow: hidden; }
.pl-mollock { margin: 0; padding: 40px 18px; background: #07182b; color: #eaf3f8; text-align: center; font-weight: 700; }
.pl-molstat { margin: 0; padding: 8px 14px 0; color: #ffd27a; font-weight: 700; min-height: 2.6em; }
.pl-legend { list-style: none; margin: 0; padding: 8px 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; color: #eaf3f8; }
.pl-legend li { display: flex; align-items: center; gap: 8px; }
.pl-legend canvas { flex: none; }
.pl-year canvas { display: block; width: 100%; }
.pl-cards { list-style: none; padding: 0; display: grid; gap: 8px; }
.pl-cards li { border: 1px dashed var(--pl-line); border-radius: 10px; padding: 8px 10px; }
.pl-cards li span { display: block; color: var(--pl-muted); }
.pl-cards li.done { border-style: solid; border-color: var(--pl-ok); }
.pl-vocab { margin: 0; }
.pl-vocab dt { font-weight: 800; margin-top: 8px; color: var(--pl-accent); }
.pl-vocab dd { margin: 0 0 4px; }
.pl-eq { font-size: 20px; font-weight: 800; padding: 8px 12px; background: var(--pl-soft); border-radius: 10px; display: inline-block; }
.pl-plotpick .pl-btn[aria-pressed="true"] { background: var(--pl-accent); border-color: var(--pl-accent); color: var(--pl-accent-ink); }
.pl-fitlist { margin: 4px 0 0; padding-left: 22px; }
.pl-dx { border: 1px solid var(--pl-line); border-radius: 10px; margin: 8px 0; padding: 6px 12px 10px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pl-dx legend { font-weight: 800; }
.pl-dx label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.pl-dx select, .pl-compare select { min-height: 44px; }
.pl-compare h3 { margin: 0 0 4px; }
.pl-compare { padding: 12px 14px; border-style: solid; background: var(--pl-card); margin-top: 14px; }
.pl-row--calc label span { font-weight: 600; }
.pl-graph { margin: 14px 0 0; max-width: 820px; }
.pl-graph-grid { max-width: none; }
.pl-graph-grid .pl-graph { margin: 0; }
@media (max-width: 760px) { .pl-legend { grid-template-columns: minmax(0, 1fr); } .pl-molhead { padding: 10px 10px 6px; } }
#transport { background: #0d223b; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pl-batch { flex: 1 1 100%; color: #ffd27a; font-weight: 700; }
.pl-caption { border-top: 1px solid rgba(255,255,255,.08); }
.pl-practice { display: block; overflow-wrap: anywhere; }
.pl-practice b { display: inline; }
.pl-eq { max-width: 100%; overflow-wrap: anywhere; }

/* Productivity Lab additions */
.pl-locked { margin: 8px 0; padding: 14px; border: 2px dashed var(--pl-line); border-radius: 12px; color: var(--pl-muted); }
.pl .pl-chip small { font-size: 16px; font-weight: 600; opacity: .85; }
.pl-eq small { font-size: 16px; }
#sideKey .pl-keys { margin-top: 6px; }
#sideKey canvas, .pl-key canvas { display: inline-block; width: 26px; height: 22px; flex: 0 0 26px; }
.pl .pl-chip[aria-pressed="true"] small { color: inherit; opacity: 1; }

/* ── Choice Chamber Behavior Lab specifics ── */
.pl-gate { background: linear-gradient(140deg, #1d2a22, #3f5a3c 50%, #8a6a3a); }
.pl-scene { background: #22292f; }
.pl-bugfig { margin: 6px 0 12px; }
.pl-bugfig canvas { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--pl-line); }
.pl-pickrun { margin: 14px 0 0; }
.pl-pickrun select { font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; border-radius: 8px; border: 1px solid var(--pl-line); background: var(--pl-card); color: var(--pl-ink); padding: 4px 8px; }
.pl-chip.done::after { content: " ✓"; }
.pl-gate-card .pl-practice { margin-top: 10px; }
.pl-series { margin-top: 14px; }
.pl-series > summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
#exLLabel, #exRLabel { display: inline-block; margin-right: 6px; }
