/* Climate Data Analyst: the Mauna Loa field desk (window, analysis monitor, desk) on the left, the data-request work
 * order on the right. Fits the 1366×768 stage (~1066×628); stacks below 900 px. */
.cda-stage,.cda-example{--cda-ink:#13212b;--cda-muted:#4a5a66;--cda-panel:#ffffff;--cda-panel2:#f2f6f8;--cda-accent:#21576b;--cda-ok:#1f7a45;--cda-bad:#b42318;
  --cda-wall1:#d9e2e6;--cda-wall2:#c3d0d6;--cda-screen:#fbfdfe;--cda-plot:#f4f8fa;--cda-grid:#c7d3da;--cda-line:#0f6b8f;--cda-faint:#8fa3ae;--cda-trend:#7a5a12;
  --cda-band:#ffd16655;--cda-band-edge:#b7791f;--cda-peak:#c2410c;--cda-trough:#1d4ed8;--cda-up:#2f7d32;--cda-rel:#8a5a2b;--cda-key:#1f7a45;--cda-pill:#ffffffee;--cda-pill-edge:#33444d55;
  --cda-chip:#ffffff;--cda-chip-on:#21576b;--cda-chip-on-ink:#ffffff;--cda-future:#e9eef1}
[data-theme=dark] .cda-stage,[data-theme=dark] .cda-example{--cda-ink:#eef3f6;--cda-muted:#b5c3cc;--cda-panel:#16212a;--cda-panel2:#1d2a34;--cda-accent:#7cc3dc;--cda-ok:#5fd394;--cda-bad:#ff8a80;
  --cda-wall1:#1c2830;--cda-wall2:#141d23;--cda-screen:#0e1820;--cda-plot:#122029;--cda-grid:#2c3e4a;--cda-line:#6cc6ea;--cda-faint:#5d7584;--cda-trend:#e8c26b;
  --cda-band:#ffd16633;--cda-band-edge:#f0b54a;--cda-peak:#ff9a5c;--cda-trough:#8fb4ff;--cda-up:#7fd18a;--cda-rel:#e0a874;--cda-key:#5fd394;--cda-pill:#16222bee;--cda-pill-edge:#c5d3dc55;
  --cda-chip:#1d2a34;--cda-chip-on:#7cc3dc;--cda-chip-on-ink:#0d1b22;--cda-future:#1a2730}

.cda-stage{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:12px;padding:10px;overflow:hidden;color:var(--tlg-text,#172033);font-size:16px}

/* ── the field desk ── */
.cda-scene{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg,var(--cda-wall1),var(--cda-wall2));box-shadow:inset 0 0 0 2px #0f172a14}
.cda-window{position:relative;flex:none;height:64px;margin:8px 12px 0;border-radius:10px;overflow:hidden;border:5px solid #8a9aa3;box-shadow:inset 0 0 0 2px #ffffff55,0 3px 8px #0002}
[data-theme=dark] .cda-window{border-color:#3a4a54}
.cda-window-svg{display:block;width:100%;height:100%}
.cda-window-tag{position:absolute;left:8px;bottom:4px;padding:1px 8px;border-radius:999px;background:#0f1d27cc;color:#ffffff;font-size:16px;font-weight:700;line-height:1.35}
.cda-s-sky1{stop-color:#4d9bd1}.cda-s-sky2{stop-color:#cfe8f6}
.cda-s-rock1{stop-color:#5a4740}.cda-s-rock2{stop-color:#2f2522}
[data-theme=dark] .cda-s-sky1{stop-color:#0b1630}[data-theme=dark] .cda-s-sky2{stop-color:#263f66}
.cda-stars{fill:#ffffff;opacity:0}[data-theme=dark] .cda-stars{opacity:.9}
.cda-sun{fill:#fff3b0;stroke:#ffd166;stroke-width:3}[data-theme=dark] .cda-sun{fill:#e9edf5;stroke:#b8c4d6}
.cda-far{fill:#6f6a78;opacity:.6}
.cda-lava{fill:none;stroke:#1d1614;stroke-width:2;opacity:.45}
.cda-obs rect{fill:#f4f6f8;stroke:#7b8a93;stroke-width:1}.cda-dome{fill:#dfe6ec;stroke:#7b8a93}
.cda-tower{stroke:#f4f6f8;stroke-width:2.5;fill:none}.cda-intake{fill:#ffd166}
.cda-glass{fill:#ffffff;opacity:.06}.cda-mullion{stroke:#8a9aa3;stroke-width:5}[data-theme=dark] .cda-mullion{stroke:#3a4a54}

.cda-monitor{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:4px;margin:8px 12px 0;padding:8px 10px 6px;border-radius:14px;
  background:var(--cda-screen);border:6px solid #26323a;box-shadow:0 8px 20px #0f172a40;color:var(--cda-ink)}
.cda-toolbar{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;justify-content:space-between}
.cda-mon-title{margin:0;font-weight:800;font-size:16px;line-height:1.2;min-width:0}
.cda-tools{display:flex;flex-wrap:wrap;gap:6px 10px;margin-left:auto}
.cda-toggle{display:flex;align-items:center;gap:3px}
.cda-toggle-l{font-size:16px;font-weight:700;color:var(--cda-muted);margin-right:3px}
.cda-tg{min-height:34px;padding:2px 9px;border-radius:8px;border:2px solid var(--tlg-border-strong,#64748b);background:var(--cda-chip);color:var(--cda-ink);font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.cda-tg.is-on{background:var(--cda-chip-on);border-color:var(--cda-chip-on);color:var(--cda-chip-on-ink)}
.cda-tg:disabled{cursor:default;opacity:.75}
.cda-chart-host{position:relative;flex:1 1 auto;min-height:0;container-type:size;display:flex;align-items:center;justify-content:center}
.cda-chart{width:min(100cqw,calc(100cqh * 600 / 350));aspect-ratio:600/350}
.cda-svg{display:block;width:100%;height:100%;touch-action:manipulation;overflow:visible}
.cda-t{font-family:var(--tlg-font,system-ui,sans-serif);fill:var(--cda-ink);font-size:18px}
.cda-t--tick{font-size:18px;fill:var(--cda-muted);font-variant-numeric:tabular-nums}
.cda-t--axis{font-size:18px;font-weight:800}
.cda-t--val{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;paint-order:stroke;stroke:var(--cda-plot);stroke-width:5px}
.cda-t--trend{font-size:17px;font-style:italic;fill:var(--cda-trend);paint-order:stroke;stroke:var(--cda-plot);stroke-width:5px}
.cda-t--key{font-size:18px;font-weight:800;fill:var(--cda-key);paint-order:stroke;stroke:var(--cda-plot);stroke-width:5px}
.cda-t--leg{font-size:17px;font-weight:700}
.cda-t--mine{font-size:17px;font-weight:800;fill:var(--cda-bad);paint-order:stroke;stroke:var(--cda-plot);stroke-width:5px}
.cda-t--pill{font-size:17px;font-weight:800;fill:var(--cda-ink)}
.cda-plot{fill:var(--cda-plot);stroke:var(--cda-grid);stroke-width:1.5}
.cda-grid{stroke:var(--cda-grid);stroke-width:1}.cda-grid--zero{stroke:var(--cda-muted);stroke-width:2}
.cda-line{fill:none;stroke:var(--cda-line);stroke-width:3.5;stroke-linejoin:round;stroke-linecap:round}
.cda-line--faint{stroke:var(--cda-faint);stroke-width:2.5}
.cda-line--raw{stroke-width:3}
.cda-dot{fill:var(--cda-screen);stroke:var(--cda-line);stroke-width:3}
.cda-trendline{fill:none;stroke:var(--cda-trend);stroke-width:3;stroke-dasharray:9 6}
.cda-hit{fill:transparent;cursor:pointer}
.cda-hit:hover{fill:var(--cda-band)}
.cda-flag path{stroke-width:3;stroke-dasharray:4 5;fill:none}
.cda-flag--peak path{stroke:var(--cda-peak)}.cda-flag--trough path{stroke:var(--cda-trough)}
.cda-pill rect{fill:var(--cda-pill);stroke:var(--cda-pill-edge);stroke-width:1.5}
.cda-pill--peak rect{stroke:var(--cda-peak);stroke-width:2.5}.cda-pill--trough rect{stroke:var(--cda-trough);stroke-width:2.5}
.cda-flag.is-ok .cda-pill rect{stroke:var(--cda-ok);stroke-width:3}.cda-flag.is-bad .cda-pill rect{stroke:var(--cda-bad);stroke-width:3;stroke-dasharray:5 3}
.cda-pill--key rect{stroke:var(--cda-key);stroke-width:2.5}.cda-pill--key text{fill:var(--cda-key)}
.cda-pill--rate rect{fill:var(--cda-key);stroke:none}.cda-pill--rate text{fill:#ffffff}
[data-theme=dark] .cda-pill--rate text{fill:#0d1b22}
.cda-pill--band rect{stroke:var(--cda-band-edge);stroke-width:2}
.cda-pill--end rect{stroke:var(--cda-line);stroke-width:2}
.cda-keyring{fill:none;stroke:var(--cda-key);stroke-width:3.5}
.cda-guide{stroke:var(--cda-key);stroke-width:1.5;stroke-dasharray:3 4}
.cda-bracket{stroke:var(--cda-key);stroke-width:4;fill:none;stroke-linecap:round}
.cda-seg{fill:none;stroke-width:8;stroke-linecap:round;opacity:.35}
.cda-seg--up{stroke:var(--cda-up)}.cda-seg--rel{stroke:var(--cda-rel)}
.cda-flux path{fill:none;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.cda-flux--up path{stroke:var(--cda-up)}.cda-flux--rel path{stroke:var(--cda-rel)}
.cda-band{fill:var(--cda-band);stroke:var(--cda-band-edge);stroke-width:2}
.cda-band--bad{fill:none;stroke:var(--cda-bad);stroke-dasharray:6 4}
.cda-band--key{fill:none;stroke:var(--cda-key);stroke-width:3}
.cda-end-dot{fill:var(--cda-line);stroke:var(--cda-screen);stroke-width:2.5}
.cda-secant{stroke:var(--cda-key);stroke-width:4;stroke-linecap:round}
.cda-runrise{fill:none;stroke:var(--cda-key);stroke-width:2.5;stroke-dasharray:6 4}
.cda-mine{stroke:var(--cda-bad);stroke-width:3;stroke-dasharray:3 5;stroke-linecap:round}
.cda-future{fill:var(--cda-future);opacity:.85}
.cda-horizon{stroke:var(--cda-band-edge);stroke-width:3;stroke-dasharray:6 5}
.cda-proj{fill:none;stroke:var(--cda-key);stroke-width:4;stroke-dasharray:10 7;stroke-linecap:round}
.cda-keydot{fill:var(--cda-key);stroke:var(--cda-screen);stroke-width:2.5}
.cda-minedot{fill:none;stroke:var(--cda-bad);stroke-width:3.5}
.cda-banner{flex:none;padding:4px 10px;border-radius:10px;font-weight:800;font-size:16px;line-height:1.3;background:var(--cda-pill);border:3px solid var(--cda-key);color:var(--cda-ink);box-shadow:0 3px 10px #0003}

.cda-sheet{flex:none;display:flex;flex-direction:column;gap:3px}
.cda-sheet-note{margin:0;font-size:16px;color:var(--cda-muted);line-height:1.25}
.cda-ends{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:6px}
.cda-end{display:flex;flex-direction:column;padding:3px 8px;border-radius:8px;background:var(--cda-panel2);border:1px solid var(--cda-grid);font-size:16px;line-height:1.25;font-variant-numeric:tabular-nums}
.cda-end>b{font-size:17px}
.cda-end--note{justify-content:center}
.cda-table-wrap summary{cursor:pointer;font-weight:700;font-size:16px;min-height:26px}
.cda-table{border-collapse:collapse;font-size:16px;font-variant-numeric:tabular-nums;width:100%;margin-top:2px}
.cda-table caption{text-align:left;font-weight:700}
.cda-table th,.cda-table td{padding:1px 4px;border:1px solid var(--cda-grid);text-align:right}
.cda-table th[scope=row]{text-align:left}

.cda-desk{flex:none;height:30px;margin-top:-4px;background:linear-gradient(180deg,#9c7a55,#6e5236);box-shadow:inset 0 3px 0 #b8946b}
[data-theme=dark] .cda-desk{background:linear-gradient(180deg,#4d3c2b,#2d2219);box-shadow:inset 0 3px 0 #5d4935}
.cda-desk-svg{display:block;width:100%;height:40px;margin-top:-14px}
.cda-shadow{fill:#00000033}.cda-flask{fill:#d9eef7;stroke:#5c7d8c;stroke-width:1.5;opacity:.9}.cda-flask-neck{fill:#d9eef7;stroke:#5c7d8c}.cda-valve{fill:#c0392b}.cda-flask-tag{stroke:#21576b;stroke-width:3}
.cda-book{fill:#2f6b4f}.cda-book-lines{stroke:#ffffff88;stroke-width:1}.cda-mug{fill:#f2efe9;stroke:#8a7f70}.cda-mug-h{fill:none;stroke:#8a7f70;stroke-width:3}

/* ── the work order ── */
.cda-slip{min-width:0;min-height:0;display:flex;flex-direction:column;gap:7px;overflow:auto;padding:8px 12px;background:var(--cda-panel);border:2px solid var(--tlg-border,#cbd5e1);border-radius:16px;box-shadow:0 6px 16px #0f172a1f;color:var(--cda-ink)}
.cda-slip-kicker{margin:0;font-size:16px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--cda-accent)}
.cda-slip-title{margin:0;font-size:19px;line-height:1.2}
.cda-row{margin:0;padding:0;border:0;min-width:0}
.cda-row-l{display:flex;gap:8px;align-items:center;padding:0;font-weight:800;font-size:16px;line-height:1.2;margin-bottom:2px}
.cda-mark{font-size:18px}.cda-row.is-ok .cda-mark{color:var(--cda-ok)}.cda-row.is-bad .cda-mark{color:var(--cda-bad)}
.cda-dial{background:var(--cda-panel2);border:2px solid var(--tlg-border,#cbd5e1);border-radius:12px;padding:4px 10px 3px}
.cda-dial.is-ok{border-color:var(--cda-ok)}.cda-dial.is-bad{border-color:var(--cda-bad)}
.cda-dial-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.cda-dial-top .cda-row-l{margin:0}
.cda-dial-out{font-weight:800;font-size:17px;color:var(--cda-accent);font-variant-numeric:tabular-nums;text-align:right}
.cda-dial-row{display:flex;align-items:center;gap:8px}
.cda-range{flex:1;min-width:0;height:30px;accent-color:#f08c00;font-size:16px;margin:0}
.cda-range.is-unset{accent-color:#8a9aa3;opacity:.7}
.cda-step{flex:none;width:38px;height:34px;border-radius:10px;border:2px solid var(--tlg-border-strong,#64748b);background:var(--cda-panel);color:var(--cda-ink);font:inherit;font-size:22px;font-weight:800;line-height:1;cursor:pointer}
.cda-step:hover:not(:disabled){border-color:var(--cda-accent)}
.cda-ticks{display:flex;justify-content:space-between;padding:0 52px 0 54px;font-size:16px;line-height:1.1;color:var(--cda-muted);font-variant-numeric:tabular-nums}
.cda-ticks--peak,.cda-ticks--trough{padding:0 52px 0 51px}
.cda-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cda-num-box{display:flex;align-items:center;border:2px solid var(--tlg-border-strong,#64748b);border-radius:10px;background:var(--cda-chip);overflow:hidden}
.cda-num-box:focus-within{outline:3px solid var(--tlg-focus,#2563eb);outline-offset:2px}
.cda-input{flex:1;min-width:0;min-height:42px;border:0;padding:4px 8px;background:transparent;color:var(--cda-ink);font:inherit;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;outline:none}
.cda-input:disabled{opacity:1;color:var(--cda-ink)}
.cda-input.is-bad-num{background:#fde8e7}
.cda-unit{flex:none;padding:0 9px;align-self:stretch;display:flex;align-items:center;background:var(--cda-panel2);border-left:1px solid var(--tlg-border,#cbd5e1);font-size:16px;font-weight:700;color:var(--cda-muted)}
.cda-num.is-ok .cda-num-box{border-color:var(--cda-ok)}.cda-num.is-bad .cda-num-box{border-color:var(--cda-bad);border-style:dashed}
.cda-key{display:block;font-size:16px;font-weight:800;color:var(--cda-ok);margin-top:1px}
.cda-chips{display:grid;gap:5px}
.cda-chip{display:flex;align-items:center;gap:6px;min-height:44px;padding:3px 10px;border-radius:10px;border:2px solid var(--tlg-border-strong,#64748b);background:var(--cda-chip);color:var(--cda-ink);font:inherit;font-size:16px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer}
.cda-chip:hover:not(:disabled){border-color:var(--cda-accent)}
.cda-chip.is-on{background:var(--cda-chip-on);color:var(--cda-chip-on-ink);border-color:var(--cda-chip-on);box-shadow:inset 0 0 0 2px #ffffff55}
.cda-chip.is-on::after{content:'●';margin-left:auto;padding-left:6px;font-size:16px}
.cda-chip:disabled{cursor:default;opacity:1}
.cda-group.is-bad .cda-chip.is-on{background:var(--cda-bad);border-color:var(--cda-bad);color:#ffffff}
.cda-group.is-ok .cda-chip.is-on{background:var(--cda-ok);border-color:var(--cda-ok);color:#ffffff}
[data-theme=dark] .cda-group.is-ok .cda-chip.is-on,[data-theme=dark] .cda-group.is-bad .cda-chip.is-on{color:#0d1b22}
.cda-chip.is-key{border-style:dashed;border-color:var(--cda-ok);border-width:3px}
.cda-chip.is-key::after{content:'✓ key';margin-left:auto;padding-left:6px;font-size:16px;color:var(--cda-ok);white-space:nowrap}
.cda-about{margin-top:auto;padding:5px 10px;border:1px solid var(--tlg-border,#cbd5e1);border-radius:10px;font-size:16px}
.cda-about summary{cursor:pointer;min-height:26px;font-weight:700}
.cda-about p{margin:6px 0 0}
.cda-range:focus-visible,.cda-step:focus-visible,.cda-chip:focus-visible,.cda-tg:focus-visible,.cda-table-wrap summary:focus-visible,.cda-about summary:focus-visible{outline:3px solid var(--tlg-focus,#2563eb);outline-offset:2px}

.cda-example{max-width:640px;margin:0 auto;padding:8px;border-radius:14px;background:var(--cda-screen);color:var(--cda-ink);border:4px solid #26323a}

@media(max-width:900px){
  .cda-stage{position:static;grid-template-columns:1fr;overflow:visible}
  .cda-chart-host{container-type:inline-size}
  .cda-chart{width:100%}
  .cda-slip{overflow:visible}
}
@media(max-width:560px){.cda-ends{grid-template-columns:1fr 1fr}.cda-end--note{grid-column:1/-1}.cda-pair{grid-template-columns:1fr}.cda-window-tag{font-size:16px}}
@media(prefers-reduced-motion:reduce){.cda-stage *{transition:none;animation:none}}
.is-revealed .cda-sheet-note{display:none}
