:root { --ink:#173138; --muted:#597075; --paper:#f6f1e7; --panel:#fffdf8; --line:#d8ddd1; --teal:#0b6a69; --dark:#344c46; --pale:#d9b876; --focus:#e3522a; font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; color:var(--ink); background:#dce7e1; }
* { box-sizing:border-box; } body { margin:0; min-width:320px; background:radial-gradient(circle at 10% 2%, #eef7f1, transparent 31rem), #dce7e1; } button, select, input { font:inherit; } button { cursor:pointer; } button:focus-visible, select:focus-visible, input:focus-visible { outline:3px solid var(--focus); outline-offset:3px; } .app-shell { max-width:1180px; margin:auto; padding:clamp(1rem,3vw,3.2rem); }
.masthead { display:flex; justify-content:space-between; gap:2rem; align-items:start; padding:1rem 0 1.7rem; } h1,h2,p { margin-top:0; } h1 { font-size:clamp(2.2rem,5vw,4.6rem); line-height:.98; letter-spacing:-.06em; max-width:720px; margin:.35rem 0 .75rem; } h2 { font-size:1.15rem; margin:.2rem 0 0; } .lede { color:var(--muted); font-size:1.05rem; max-width:600px; margin-bottom:0; } .eyebrow { font-size:.69rem; font-weight:800; letter-spacing:.13em; color:#527270; margin:0; } .text-button,.copy-button { border:0; color:var(--teal); font-weight:750; background:transparent; text-decoration:underline; text-underline-offset:3px; padding:.4rem; } .model-notes { background:#e9f1eb; border-left:4px solid var(--teal); padding:1rem 1.1rem; line-height:1.48; margin-bottom:1rem; border-radius:0 .7rem .7rem 0; }
.question-card,.panel { background:var(--panel); border:1px solid rgba(29,65,59,.12); box-shadow:0 14px 38px rgba(29,65,59,.08); border-radius:1rem; } .question-card { padding:1.1rem 1.25rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; } .question-card h2 { font-size:1.25rem; max-width:660px; } .prediction-field { display:grid; gap:.4rem; color:var(--muted); font-size:.82rem; font-weight:700; min-width:220px; } select { background:#fff; border:1px solid var(--line); border-radius:.55rem; padding:.6rem; color:var(--ink); }
.workspace,.evidence-grid { display:grid; grid-template-columns:1.18fr .82fr; gap:1rem; margin-bottom:1rem; }.panel { padding:1.15rem; }.panel-heading { display:flex; justify-content:space-between; gap:1rem; align-items:start; margin-bottom:1rem; }
fieldset { border:0; padding:0 0 1.2rem; margin:0 0 1.2rem; border-bottom:1px solid var(--line); } fieldset:last-of-type { margin-bottom:1rem; } legend { font-size:.85rem; font-weight:800; margin-bottom:.7rem; }.segmented-control { display:grid; gap:.45rem; }.choice { text-align:left; border:1px solid var(--line); border-radius:.55rem; background:#fff; color:var(--ink); padding:.65rem .75rem; font-weight:750; }.choice.active { color:#fff; background:var(--teal); border-color:var(--teal); }.hint { font-size:.83rem; color:var(--muted); line-height:1.4; margin:.65rem 0 0; }.range-label { display:flex; justify-content:space-between; font-size:.85rem; font-weight:750; }.range-label output { color:var(--teal); } input[type=range] { accent-color:var(--teal); width:100%; margin-top:.7rem; }.run-controls { display:grid; grid-template-columns:1fr; gap:.55rem; }.primary-button,.secondary-button { min-height:2.75rem; border-radius:.6rem; font-weight:800; border:1px solid var(--teal); }.primary-button { color:white; background:var(--teal); }.secondary-button { color:var(--teal); background:#eff6f0; }.primary-button:disabled,.secondary-button:disabled { opacity:.6; cursor:wait; }.utility-controls { display:flex; flex-wrap:wrap; margin-top:.5rem; }.seed-readout { margin:1rem 0 0; color:var(--muted); font-size:.75rem; }.seed-readout code { color:var(--ink); }.copy-button { font-size:.75rem; }
.evidence-grid { grid-template-columns:.85fr 1.15fr; }.outcome-copy { min-height:4.5rem; line-height:1.46; color:var(--muted); }.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin:0; }.stat-row div { border-left:3px solid var(--line); padding-left:.55rem; }.stat-row dt { font-size:.72rem; color:var(--muted); font-weight:750; }.stat-row dd { margin:.1rem 0 0; font-size:1.55rem; font-weight:850; }.chart-panel { min-width:0; }.chart-panel svg { display:block; width:100%; overflow:visible; font-size:10px; fill:#657a76; }.grid line { stroke:#dce5dd; stroke-dasharray:3 4; }.line { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }.table-panel { margin-bottom:1rem; }.table-note { color:var(--muted); font-size:.82rem; margin:0; }.table-wrap { overflow-x:auto; }table { width:100%; border-collapse:collapse; min-width:560px; font-size:.86rem; }th,td { text-align:left; padding:.7rem .45rem; border-bottom:1px solid var(--line); }th { color:#58716c; font-size:.74rem; text-transform:uppercase; letter-spacing:.06em; } footer { color:#58716c; text-align:center; font-size:.78rem; padding:1rem; } .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media (max-width:760px) { .masthead,.question-card { display:block; }.masthead .text-button { margin-top:.8rem; }.prediction-field { margin-top:1rem; max-width:none; }.workspace,.evidence-grid { grid-template-columns:1fr; }.question-card { padding:1rem; }.panel { padding:1rem; } } @media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
.prediction-field small { font-weight:500; line-height:1.35; }.reflection { margin-top:1rem; background:#e9f1eb; border-radius:.65rem; padding:.8rem .9rem; }.reflection p:last-child { margin:.35rem 0 0; color:#395851; line-height:1.45; font-size:.9rem; }



/* ---------- Cell Operations Lab ---------- */

/* ---------- Star Life Cycle Lab ---------- */
:root { --lk-accent:#0b6a69; --lk-ink:#173138; }
.step-label { margin:.25rem 0 .55rem .2rem; }
.checks-panel { margin-bottom:1rem; }
.prediction-field select, .sort-table select { width:100%; max-width:100%; text-overflow:ellipsis; }
@media (max-width:760px) { .prediction-field { min-width:0; } }
.workspace { grid-template-columns:1.3fr .7fr; }
.scene-panel, .controls-panel, .outcome, .chart-panel { min-width:0; }
.scene-sub { margin:.25rem 0 0; color:var(--muted); font-size:.86rem; }
.time-badge { padding:.35rem .55rem; border-radius:999px; background:#e8efe9; color:#34524c; white-space:nowrap; font-size:.75rem; font-weight:800; }
.scene-wrap { position:relative; border-radius:.75rem; border:1px solid rgba(0,0,0,.08); background:#070b1c; overflow:hidden; }
.scene-scroll { overflow-x:auto; }
#scene { display:block; width:100%; height:auto; font-family:inherit; }
.scene-wrap .event-card { margin:0 .8rem .8rem; background:rgba(255,253,248,.92); border:1px solid rgba(26,56,52,.14); border-radius:.55rem; padding:.55rem .7rem; text-align:center; font-size:.82rem; font-weight:800; }
.readout text { font-size:17px; font-weight:850; fill:#f4f1ff; font-variant-numeric:tabular-nums; }
.scene-note { font-size:14px; font-weight:750; fill:#dfe6ff; }
.sun-ref text { font-size:12px; font-weight:750; fill:#ffe08a; }
.cap-tag rect { fill:#0b6a69; } .cap-tag text { fill:#fff; font-size:14px; font-weight:850; }
.sorter-star text { font-size:14px; font-weight:850; fill:#eef2ff; }
.stage-track { list-style:none; display:flex; flex-wrap:wrap; gap:.35rem; margin:.8rem 0 0; padding:0; counter-reset:stage; }
.stage-track[hidden] { display:none; }
.stage-track li { counter-increment:stage; font-size:.78rem; font-weight:800; color:#6d7f7c; background:#f1f4f1; border:1px dashed #c5d0cb; border-radius:999px; padding:.3rem .65rem; }
.stage-track li::before { content:counter(stage) ". "; }
.stage-track li.done { color:#173138; background:#e9f1eb; border-style:solid; border-color:#cfe0d6; }
.stage-track li.now { color:#fff; background:var(--teal); border-style:solid; border-color:var(--teal); }
.stage-track li.now .lk-term { color:#fff; text-decoration-color:#fff; }
.gauges-heading { font-size:.95rem; margin:1rem 0 .4rem; }
.readouts { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:.55rem .9rem; margin:0; }
.readouts div { border-left:3px solid var(--line); padding-left:.55rem; min-width:0; }
.readouts div.wide { grid-column:1 / -1; }
.readouts dt { font-size:.72rem; color:var(--muted); font-weight:750; }
.readouts dd { margin:.1rem 0 0; font-size:.98rem; font-weight:850; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.readouts div.wide dd { font-size:.88rem; font-weight:750; }
.swatch { display:inline-block; width:.8rem; height:.8rem; border-radius:50%; margin-right:.35rem; vertical-align:-1px; border:1px solid rgba(0,0,0,.25); }
.segmented-control.two { grid-template-columns:repeat(2, 1fr); }
.segmented-control.mass { grid-template-columns:repeat(4, 1fr); }
.segmented-control .choice { font-size:.82rem; padding:.5rem .55rem; }
.segmented-control.mass .choice { text-align:center; padding:.5rem .3rem; }
.choice:disabled { opacity:.6; cursor:not-allowed; }
.hint.small { font-size:.76rem; }
.run-controls .primary-button:disabled { cursor:not-allowed; }
.utility-controls .text-button { font-size:.85rem; }
.diag-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:.6rem; }
.diag-actions .secondary-button { padding:0 .9rem; }
.evidence-grid { grid-template-columns:.95fr 1.05fr; }
.sorter-mode .evidence-grid { grid-template-columns:1fr 1fr; }
.outcome-copy:focus { outline:none; }
.stat-row { grid-template-columns:repeat(3, 1fr); gap:.7rem .5rem; }
.stat-row[hidden] { display:none; }
.stat-row dd { font-size:1.05rem; font-variant-numeric:tabular-nums; }
.sort-table-wrap { max-height:none; }
.sort-table { min-width:520px; font-size:.84rem; }
.sort-table th, .sort-table td { padding:.45rem .4rem; vertical-align:middle; }
.sort-table tbody th { text-transform:none; letter-spacing:0; font-size:.86rem; color:var(--ink); }
.sort-table td:last-child { display:flex; align-items:center; gap:.35rem; min-width:9.5rem; }
.sort-table select { padding:.35rem; font-size:.82rem; }
.sort-table tr.active { background:#fff7df; }
.sort-table .mark { font-weight:900; } .mark.right { color:#1f7a4a; } .mark.wrong { color:#a3402a; }
.sort-table tr.why td { font-size:.8rem; line-height:1.4; padding-top:0; border-bottom:1px solid var(--line); }
.sort-table tr.why.right td { color:#1f7a4a; } .sort-table tr.why.wrong td { color:#a3402a; }
.chart-wrap { overflow-x:auto; }
.chart-panel svg { display:block; width:100%; min-width:470px; overflow:visible; font-size:11px; fill:#657a76; }
.chart-key { display:flex; flex-wrap:wrap; gap:.4rem 1rem; color:var(--muted); font-size:.78rem; font-weight:800; margin:0 0 .35rem; min-height:1rem; }
.key-this { color:#0b6a69; } .key-prev { color:#8a979a; } .key-sun { color:#b07d00; }
.plot-bg { fill:#101a33; }
.chart-panel .grid line { stroke:#2c3a5c; stroke-dasharray:3 4; }
.ms-band { fill:#5c7fbf; opacity:.35; } .ms-band.faint { opacity:.2; }
.region { fill:none; stroke:#8fa3c9; stroke-width:1.2; stroke-dasharray:4 4; opacity:.8; }
.region-label { fill:#dfe6ff; font-size:12px; font-weight:800; paint-order:stroke; stroke:#101a33; stroke-width:3px; }
.sun-mark circle { fill:none; stroke:#ffd23f; stroke-width:1.6; } .sun-mark .dot { fill:#ffd23f; stroke:none; }
.sun-mark text { fill:#ffd23f; font-size:11px; font-weight:800; }
.track { fill:none; stroke-width:2; stroke-linejoin:round; }
.track.this { stroke:#eaf0ff; opacity:.75; } .track.prev { stroke:#8a979a; stroke-dasharray:5 4; opacity:.7; }
.chart-point .mark { stroke:#0b1226; stroke-width:1; }
.chart-point.prev .mark { fill:#101a33; stroke:#8a979a; stroke-width:1.4; }
.chart-point.latest .mark { stroke:#fff; stroke-width:2; }
.chart-point.sort .mark { stroke:#fff; stroke-width:1; }
.pt-num { font-size:9px; font-weight:900; fill:#0b1226; pointer-events:none; }
.off-arrow { font-size:10px; fill:#ffd27a; pointer-events:none; }
.chart-point { cursor:pointer; } .chart-point:focus-visible { outline:none; } .chart-point:focus-visible .point-hit, .selected-point .point-hit { stroke:var(--focus); stroke-width:3; }
.axis-label { fill:#395851; font-size:11px; font-weight:800; }
.axes line { stroke:#58716c; pointer-events:none; } .grid, .ms-band, .region, .region-label, .sun-mark, .track { pointer-events:none; }
.chart-empty { font-size:13px; fill:#dfe6ff; font-weight:700; }
.chart-selection { min-height:2.6rem; margin:.45rem 0 0; color:#395851; font-size:.84rem; line-height:1.4; }
.table-panel { margin-bottom:1rem; }
.table-wrap { max-height:22rem; overflow:auto; border:1px solid var(--line); border-radius:.65rem; }
.table-wrap[hidden] { display:none; }
.table-wrap:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
table { min-width:760px; } table.narrow { min-width:0; } thead { position:sticky; top:0; z-index:1; background:var(--panel); }
td { font-variant-numeric:tabular-nums; } td.empty { color:var(--muted); text-align:center; }
.model-notes .lk-term, .hint .lk-term, .reflection .lk-term, .lede .lk-term, h2 .lk-term, legend .lk-term, .table-note .lk-term, .outcome-copy .lk-term, .stage-track .lk-term { font-weight:inherit; }
@media (max-width:1000px) { .workspace, .evidence-grid, .sorter-mode .evidence-grid { grid-template-columns:1fr; } }
@media (max-width:760px) { .masthead, .question-card { display:block; } .panel { padding:.9rem; } .readouts { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:420px) { .segmented-control.mass { grid-template-columns:repeat(3, 1fr); } .stat-row dd { font-size:.9rem; } }
@media (max-width:620px) { #scene { min-width:560px; } .table-panel .panel-heading, .chart-panel .panel-heading { display:block; } .table-note { margin-top:.4rem; } }
.scene-panel .panel-heading { flex-wrap:wrap; }
@media (max-width:620px) { .time-badge { white-space:normal; } }
@media (max-width:620px) {
  #scene { min-width:0; }
  #scene .readout, #scene .scene-note, #scene .sun-ref text { display:none; }
  #scene .sorter-star text { font-size:21px; }
  #scene .cap-tag text { font-size:22px; }
}

/* Decorative lab artwork beside the introduction. */
.masthead{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,360px);align-items:center;gap:1.25rem clamp(1.5rem,4vw,3.5rem)}
.masthead>div:first-child{min-width:0}
.masthead-art{grid-column:2;grid-row:1 / span 2;display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:1rem;box-shadow:0 16px 30px rgba(17,49,51,.13)}
.masthead>.lk-context-tools{grid-column:1;grid-row:2;justify-self:start}
@media(max-width:760px){.masthead{display:block}.masthead-art{width:min(100%,390px);margin:1.5rem 0 0}.masthead>.lk-context-tools{margin-top:1rem}}
