/* Ausgeology · How will NSW keep the lights on?: styles for this lesson's models and its driving question board.
   The first blocks (the brief, number answers, the shared parts of the models) are carried over from the siltstone lesson. */

:root {
  --kl-coal: #4a4a46; --kl-gas: #e0702a; --kl-hydro: #2f6fbf; --kl-pump: #1d4f8f; --kl-wind: #3f8f2a; --kl-solar: #e3a600; --kl-roof: #f0cb4f;
  --kl-batt: #7a55d6; --kl-imp: #a7a59b; --kl-use: #1a2124; --kl-grid: #c0262d; --kl-short: #d03b3b;
  --kl-paper: #fdfdf9; --kl-cork: #c9a679; --kl-cork-2: #b8956a; --kl-ok: #15803d; --kl-no: #b91c1c;
  --kl-land: #eef0e2; --kl-other: #dfe3dc; --kl-sea: #d5e6f2; --kl-high: #c9b48e; --kl-alps: #a8906a; --kl-river: #3d7fc4;
  --fm-chem: #8a5a2b; --fm-therm: #c8452a; --fm-kin: #1f7a8c; --fm-gpe: #6a4fa3; --fm-elec: #c99400; --fm-lost: #7d858a;
  --kl-from: #a5481a; --kl-firm: #8a928e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kl-coal: #9a9a92; --kl-gas: #f08a46; --kl-hydro: #5b97e0; --kl-pump: #3d74c2; --kl-wind: #66b84e; --kl-solar: #e8b21e; --kl-roof: #f3d77a;
    --kl-batt: #9d83ea; --kl-imp: #6f7a7e; --kl-use: #eef2f0; --kl-grid: #ff6b6b; --kl-short: #ff6b6b;
    --kl-paper: #151c1f; --kl-cork: #5c4a33; --kl-cork-2: #4c3d2a; --kl-ok: #4ade80; --kl-no: #f87171;
    --kl-land: #253028; --kl-other: #1b2124; --kl-sea: #16283a; --kl-high: #5b4f3a; --kl-alps: #75644a; --kl-river: #6aa9e8;
    --fm-chem: #c79060; --fm-therm: #ef7a5e; --fm-kin: #5bbfd2; --fm-gpe: #a98ae0; --fm-elec: #e8be3a; --fm-lost: #9aa3a8;
    --kl-from: #ec8a52; --kl-firm: #5f6b70;
  }
}
:root[data-theme="dark"] {
  --kl-coal: #9a9a92; --kl-gas: #f08a46; --kl-hydro: #5b97e0; --kl-pump: #3d74c2; --kl-wind: #66b84e; --kl-solar: #e8b21e; --kl-roof: #f3d77a;
  --kl-batt: #9d83ea; --kl-imp: #6f7a7e; --kl-use: #eef2f0; --kl-grid: #ff6b6b; --kl-short: #ff6b6b;
  --kl-paper: #151c1f; --kl-cork: #5c4a33; --kl-cork-2: #4c3d2a; --kl-ok: #4ade80; --kl-no: #f87171;
  --kl-land: #253028; --kl-other: #1b2124; --kl-sea: #16283a; --kl-high: #5b4f3a; --kl-alps: #75644a; --kl-river: #6aa9e8;
  --fm-chem: #c79060; --fm-therm: #ef7a5e; --fm-kin: #5bbfd2; --fm-gpe: #a98ae0; --fm-elec: #e8be3a; --fm-lost: #9aa3a8;
  --kl-from: #ec8a52; --kl-firm: #5f6b70;
}

/* the syllabus quotes in the teacher notes */
blockquote.nesa { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); max-width: 72ch; }
blockquote.nesa p { margin: 0 0 6px; }
blockquote.nesa ul { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }

/* the brief and how the lesson works */
.wd-brief { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; padding: 16px 18px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ochre); }
.wd-brief > * { margin: 0; }
.wd-brief > .label { color: var(--ochre); }
.wd-brief ul { padding-left: 1.3em; display: grid; gap: 4px; }
.wd-cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wd-cycle > li { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wd-cycle h3 { font-size: 1.04rem; margin: 0; }
.wd-cycle p { margin: 0; font-size: 0.97rem; line-height: 1.5; }
.wd-cycle .small { color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 860px) { .wd-cycle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .wd-cycle { grid-template-columns: minmax(0, 1fr); } }
.key-idea p.kl-ki-body { font-size: 1rem; font-weight: 400; line-height: 1.55; }
.screen-head.kl-first { margin-top: 18px; padding-top: 22px; border-top: 2px solid var(--line); }
.kl-from { margin: 0 0 4px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kl-from); }

/* number answers */
.num { display: grid; gap: 8px; }
.num label { font-weight: 700; line-height: 1.4; }
.num-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.num-row input { width: 9.5em; max-width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 1.04rem; color: var(--ink); background: var(--surface); font-variant-numeric: tabular-nums; }
.num-row input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.num.is-right .num-row input { border-color: var(--good); }
.num.is-wrong .num-row input { border-color: var(--bad); }
.num-unit { color: var(--ink-2); }
.num .fb { margin: 0; }
.nums { display: grid; gap: 18px; max-width: 820px; }

/* the models: shared pieces */
.lab.viz { margin: 4px 0 6px; }
.viz-lead { margin: 0; color: var(--ink-2); max-width: 72ch; }
.viz-read { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.5; max-width: 820px; }
.viz-read:empty { display: none; }
.wd-opt { min-height: 40px; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer; text-align: left; line-height: 1.25; }
.wd-opt:hover { border-color: var(--accent); }
.wd-opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wd-opt:focus-visible, .kl-chip:focus-visible, .kl-group:focus-visible, .kl-evcard:focus-visible, .kl-claim-h:focus-visible, .kl-note-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wd-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.kl-ctl-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.kl-ctl-row > .label { margin-right: 2px; }
.kl-ctl-wide .slider-row { flex: 1 1 320px; }
.kl-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.kl-side > * { margin: 0; }
.kl-side .slider-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.kl-side .slider-row .label { white-space: normal; line-height: 1.25; }
.kl-side .slider-row input { grid-column: 1 / -1; grid-row: 2; }
.slider-row output { font-weight: 700; font-variant-numeric: tabular-nums; }
.kl-two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .kl-two { grid-template-columns: minmax(0, 1fr); } }
.kl-fig { min-width: 0; display: grid; gap: 8px; }
.kl-svg { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--kl-paper); border: 1px solid var(--line); overflow: hidden; }
.kl-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.kl-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kl-swipe { display: none; margin: 0; font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 620px) { .kl-swipe { display: block; } .kl-scroll > svg { min-width: 600px; } .kl-scroll.kl-mapbox > svg { min-width: 560px; } .kl-scroll.kl-valleybox > svg { min-width: 720px; } }
.kl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px 12px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.kl-facts div { display: grid; gap: 1px; }
.kl-facts dt { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.kl-facts dd { margin: 0; font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kl-bad { color: var(--kl-no); font-weight: 700; }
.kl-good { color: var(--kl-ok); }
.kl-results { margin-top: 4px; }
.kl-tablebox { min-width: 0; overflow-x: auto; }
.kl-tablebox:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kl-tbl { border-collapse: collapse; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.kl-tbl caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
.kl-tbl th, .kl-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kl-tbl thead th { font-size: 0.8rem; color: var(--ink-2); }
.kl-empty { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.kl-minichart svg { max-width: 420px; }
.kl-legend .sw { border-radius: 4px; }
.kl-legend .sw.kl-sw-line { height: 3px; width: 20px; background: var(--kl-use); }
.kl-legend .sw.kl-sw-dash { height: 0; width: 22px; border-radius: 0; border-top: 2.5px dashed var(--kl-grid); background: none; }
.kl-legend .sw.kl-sw-curt { height: 0; width: 22px; border-radius: 0; border-top: 2px dotted var(--kl-solar); background: none; }
.kl-legend .sw.kl-sw-short { background: repeating-linear-gradient(45deg, var(--kl-short) 0 3px, transparent 3px 6px); border: 1px solid var(--kl-short); }
.kl-tablewrap { display: grid; gap: 6px; }
.kl-small { font-size: 0.9rem; color: var(--ink-2); }

/* text in the drawings */
.kl-t { font-family: var(--font-body); font-size: 13px; fill: var(--ink); }
.kl-ts { font-family: var(--font-body); font-size: 11.5px; fill: var(--ink-2); }
.kl-tb { font-weight: 700; }
.kl-mid { text-anchor: middle; }
.kl-end { text-anchor: end; }
.kl-it { font-style: italic; }
.kl-halo { paint-order: stroke; stroke: var(--kl-paper); stroke-width: 4px; stroke-linejoin: round; }
.kl-axis { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
.kl-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.kl-head { fill: var(--ink-2); }
.kl-head-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.kl-head-dot { fill: var(--kl-grid); stroke: var(--kl-paper); stroke-width: 2; }

/* the energy sources */
.f-coal { fill: var(--kl-coal); background: var(--kl-coal); }
.f-gas { fill: var(--kl-gas); background: var(--kl-gas); }
.f-hydro { fill: var(--kl-hydro); background: var(--kl-hydro); }
.f-pump { fill: var(--kl-pump); background: var(--kl-pump); }
.f-wind { fill: var(--kl-wind); background: var(--kl-wind); }
.f-solar { fill: var(--kl-solar); background: var(--kl-solar); }
.f-roof { fill: var(--kl-roof); background: var(--kl-roof); }
.f-batt { fill: var(--kl-batt); background: var(--kl-batt); }
.f-imp { fill: var(--kl-imp); background: var(--kl-imp); }
.kl-area { stroke: var(--kl-paper); stroke-width: 0.6; }
.kl-area.kl-neg { opacity: 0.55; }
.kl-curt { fill: none; stroke: var(--kl-solar); stroke-width: 2; stroke-dasharray: 2 3; }
.kl-useline { fill: none; stroke: var(--kl-use); stroke-width: 2.4; }
.kl-gridline { fill: none; stroke: var(--kl-grid); stroke-width: 2.4; stroke-dasharray: 7 5; }

/* screen 1: the scene above the day chart */
.kl-sun { fill: #ffd34d; stroke: #ffb300; stroke-width: 3; }
.kl-moon { fill: #f1f1e6; }
.kl-stars circle { fill: #fff; }
.kl-ground { fill: #9fb27b; }
:root[data-theme="dark"] .kl-ground { fill: #3c4a33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kl-ground { fill: #3c4a33; } }
.kl-bldg { fill: #8a8f94; stroke: #5d6368; stroke-width: 1; }
.kl-bldg2 { fill: #a0a5aa; stroke: #5d6368; }
.kl-chim { fill: #b6a99a; stroke: #6f6457; }
.kl-win { fill: #ffe7a3; }
.kl-puff { fill: #d9dadc; }
.kl-coalpile { fill: #2b2b2b; }
.kl-glow { fill: #ff9e45; filter: blur(3px); }
.kl-heat { fill: none; stroke: #f6b26b; stroke-width: 2; stroke-linecap: round; }
.kl-lake { fill: #4f93cf; }
.kl-dam { fill: #c8c3b8; stroke: #8b857a; }
.kl-flowline { fill: none; stroke: #8fd0ff; stroke-width: 4; stroke-dasharray: 10 6; stroke-linecap: round; }
.kl-flowline.is-up { stroke: #c2b5ff; }
.kl-tower { fill: #f2f4f5; stroke: #9aa3aa; stroke-width: 0.8; }
.kl-blade { fill: #fdfdfd; stroke: #9aa3aa; stroke-width: 0.7; }
.kl-hub { fill: #e5e8ea; stroke: #7d868d; }
.kl-panel { fill: #1e3a5f; stroke: #8aa2bf; stroke-width: 0.6; }
.kl-glint { fill: #cfe8ff; }
.kl-house { fill: #f2e5cf; stroke: #a08a6a; }
.kl-roofshape { fill: #b2533e; }
.kl-rpanel { fill: #1e3a5f; stroke: #cfe8ff; stroke-width: 0.5; }
.kl-battbox { fill: #e8e6f6; stroke: #6c5bb8; stroke-width: 1.5; }
.kl-battfill { fill: var(--kl-batt); }
.kl-battarrow, .kl-imparrow { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kl-pylon { fill: none; stroke: #6e7780; stroke-width: 1.6; }

/* screen 1: the closures timeline */
.kl-cb-rect { stroke: var(--kl-paper); stroke-width: 1.5; transition: opacity 0.4s ease, fill 0.4s ease; }
.kl-cb-0 .kl-cb-rect { fill: #5a5a55; } .kl-cb-1 .kl-cb-rect { fill: #6b6b65; } .kl-cb-2 .kl-cb-rect { fill: #7c7c76; } .kl-cb-3 .kl-cb-rect { fill: #4b4b47; } .kl-cb-4 .kl-cb-rect { fill: #8d8d87; }
.kl-cb-lab { fill: #fff; font-size: 12.5px; }
.kl-cb-gone { fill: var(--ink-2); font-weight: 700; }
.kl-cblock.is-closed .kl-cb-rect { opacity: 0.28; }
.kl-cblock.is-closed .kl-cb-lab { fill: var(--ink); }
.kl-peakline { fill: none; stroke: var(--kl-grid); stroke-width: 2.4; stroke-dasharray: 8 5; }
.kl-peaklab { fill: var(--kl-grid); }
.kl-histline { stroke: var(--ochre); stroke-width: 1.5; stroke-dasharray: 3 3; }
.kl-histdot { fill: var(--ochre); stroke: var(--kl-paper); stroke-width: 2; }
.kl-capbar { fill: var(--kl-solar); opacity: 0.9; }

/* screen 2: the four power stations */
.kl-scene { display: none; }
.kl-scene.is-on { display: inline; }
.kl-part { transition: opacity 0.3s ease, filter 0.3s ease; }
.kl-part.is-dim { opacity: 0.35; }
.kl-part.is-hl { filter: drop-shadow(0 0 6px var(--focus)); }
.kl-gencase { fill: #dfe3e6; stroke: #6e7780; stroke-width: 1.5; }
.kl-coilblk { fill: #c87533; }
.kl-magN { fill: #d6453d; } .kl-magS { fill: #2e6fd0; }
.kl-turbcase { fill: #c9cfd4; stroke: #6e7780; stroke-width: 1.2; }
.kl-hotcase { fill: #e8c2a0; }
.kl-ghost { fill: none; stroke-dasharray: 4 3; }
.kl-bladerow { stroke: #4b5560; stroke-width: 3; stroke-dasharray: 4 3; }
.kl-shaft { stroke: #59626b; stroke-width: 4; stroke-linecap: round; }
.kl-pipe { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.kl-pipeflow { fill: none; stroke-width: 3.5; stroke-dasharray: 8 10; stroke-linecap: round; stroke-linejoin: round; }
.kl-pipe.kl-conv { stroke: #6b6158; } .kl-pipeflow.kl-conv { stroke: #2b2b2b; stroke-width: 6; stroke-dasharray: 6 6; }
.kl-pipe.kl-steam { stroke: #e5a49a; } .kl-pipeflow.kl-steam { stroke: #fff4f0; }
.kl-pipe.kl-cool { stroke: #6aa7dc; } .kl-pipeflow.kl-cool { stroke: #e6f3ff; }
.kl-pipe.kl-warm { stroke: #d5938c; } .kl-pipeflow.kl-warm { stroke: #fbe3df; }
.kl-pipe.kl-water { stroke: #8fb9de; stroke-width: 6; } .kl-pipeflow.kl-water { stroke: #ffffff; stroke-width: 2; }
.kl-pipe.kl-exhaust { stroke: #d99a6c; stroke-width: 12; } .kl-pipeflow.kl-exhaust { stroke: #ffe1c9; }
.kl-wire { fill: none; stroke: #6e7780; stroke-width: 2; }
.kl-wirepulse { fill: none; stroke: var(--fm-elec); stroke-width: 3; stroke-dasharray: 3 14; stroke-linecap: round; }
.kl-flame { fill: #ff9a2e; stroke: #ffd36a; stroke-width: 1.5; }
.kl-tube { stroke: #9a5a3e; stroke-width: 3; }
.kl-drum { fill: #d2d7db; stroke: #6e7780; }
.kl-trans { fill: #9aa3aa; stroke: #59626b; }
.kl-cond { fill: #cfe3f3; stroke: #5b86ad; }
.kl-lakewater { fill: #5a9bd4; opacity: 0.85; }
.kl-burner { fill: #f3d7bd; stroke: #a36a3e; }
.kl-airstreak { stroke: #8fb0c8; stroke-width: 2; stroke-linecap: round; }
.kl-hrsg { fill: #e8e2da; stroke: #8b7d6b; stroke-width: 1.5; }
.kl-windstreak { fill: none; stroke: #8fb0c8; stroke-width: 2.2; stroke-linecap: round; }
.kl-nacelle { fill: #eef1f3; stroke: #7d868d; stroke-width: 1.5; }
.kl-gearbox { fill: #d9dde0; stroke: #6e7780; }
.kl-gear { fill: #b6bdc3; stroke: #59626b; }
.kl-tooth { stroke: #59626b; stroke-width: 2; }
.kl-blade-side { fill: #fbfbfb; stroke: #8a939a; stroke-width: 1; }
.kl-hill { fill: #a9b88b; }
.kl-penstock { fill: none; stroke: #8a939a; stroke-width: 12; stroke-linecap: round; }
.kl-drop { fill: #8fd0ff; }
.kl-runner { fill: #c9cfd4; stroke: #59626b; }
.kl-runblade { fill: none; stroke: #2f6fbf; stroke-width: 3; }
.kl-dimline { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.kl-plant .kl-ts { fill: #33404a; }
.kl-plant .kl-halo { stroke: rgba(253, 253, 249, 0.92); }
.kl-plant .kl-t { fill: #1f2933; }
.kl-plant.kl-svg { background: linear-gradient(#dcebf5, #f4f7f8 60%); }
.kl-chainbar { display: grid; gap: 6px; }
.kl-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.kl-chain li { position: relative; display: grid; gap: 1px; padding: 8px 12px 8px 10px; border-radius: 10px; border: 2px dashed var(--line); border-left-width: 6px; border-left-style: solid; background: var(--surface-2); min-width: 9.5em; transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.kl-chain li + li::before { content: ''; position: absolute; left: -18px; top: 50%; width: 12px; height: 2px; background: var(--ink-2); }
.kl-chain li + li::after { content: ''; position: absolute; left: -9px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 6px solid var(--ink-2); }
.kl-chain li b { font-size: 0.92rem; }
.kl-chain li span { font-size: 0.85rem; color: var(--ink-2); }
.kl-chain li.is-on { border-style: solid; background: var(--surface); }
.kl-chain li.is-now { box-shadow: 0 0 0 3px var(--focus); }
.kl-chain .fm-chem { border-color: var(--fm-chem); }
.kl-chain .fm-therm { border-color: var(--fm-therm); }
.kl-chain .fm-kin { border-color: var(--fm-kin); }
.kl-chain .fm-gpe { border-color: var(--fm-gpe); }
.kl-chain .fm-elec { border-color: var(--fm-elec); }
.kl-chain-loss { margin: 0; font-size: 0.9rem; }
.kl-chain-loss span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 2px dashed var(--fm-lost); color: var(--ink-2); background: var(--surface-2); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.kl-chain-loss span::before { content: '↘ '; }
.kl-chain-loss.is-on span { border-style: solid; color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px var(--focus); }

/* screen 2: the generator */
.kl-tap { fill: #a9b1b8; stroke: #59626b; }
.kl-wheelrim { fill: none; stroke: #7d6a52; stroke-width: 5; }
.kl-spoke { stroke: #9a8668; stroke-width: 2.5; }
.kl-cup { fill: none; stroke: #4f6f8f; stroke-width: 5; stroke-linecap: round; }
.kl-tank { fill: #9fc6e6; stroke: #5b86ad; }
.kl-ts.kl-tanklab { fill: #1f3b57; }
.kl-genbox { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 6 4; }
.kl-onmag { fill: #fff; }
.kl-fieldline { stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 5 4; }
.kl-fieldarrow { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.kl-coil { stroke: #b06a2c; stroke-width: 1.5; }
.kl-coil-front { fill: rgba(214, 140, 72, 0.32); }
.kl-coil-back { fill: rgba(150, 90, 40, 0.18); }
.kl-coilwire { fill: none; stroke: #c87533; stroke-width: 1.6; }
.kl-ring { fill: #d8b25a; stroke: #8b6d2a; }
.kl-bulbglow { fill: #ffd34d; filter: blur(8px); opacity: 0; }
.kl-bulb { fill: rgba(255, 255, 255, 0.55); stroke: #9aa3aa; stroke-width: 1.5; }
.kl-bulbbase { fill: #9aa3aa; }
.kl-filament { fill: none; stroke: #8a6d3b; stroke-width: 1.5; }
.kl-filament.is-on { stroke: #ff9a2e; }
.kl-osc svg { max-width: 520px; }
.kl-oscbg { fill: #0f2a1d; }
.kl-oscgrid { stroke: rgba(120, 220, 160, 0.18); stroke-width: 1; }
.kl-trace { fill: none; stroke: #6dff9e; stroke-width: 2.2; filter: drop-shadow(0 0 3px rgba(109, 255, 158, 0.7)); }
.kl-osctext { fill: #a8f5c4; }
.kl-pt { stroke: var(--kl-paper); stroke-width: 1.5; }
.kl-pt-a { fill: var(--viz-1); } .kl-pt-b { fill: var(--viz-2); } .kl-pt-c { fill: var(--viz-3); } .kl-pt-d { fill: var(--kl-batt); }
.kl-ptline { fill: none; stroke: var(--viz-1); stroke-width: 1.8; opacity: 0.6; }

/* screen 3: the solar cell bench */
.kl-bench { fill: #b08a5a; }
.kl-tick { stroke: var(--ink-2); stroke-width: 1.2; }
.kl-stand { fill: #7d868d; }
.kl-beam { fill: #ffe58a; }
.kl-ray { stroke: #ffd34d; stroke-width: 1.5; stroke-dasharray: 6 8; opacity: 0.85; }
.kl-lampshade { fill: #3d4852; }
.kl-lampbulb { fill: #fff3b0; stroke: #ffd34d; stroke-width: 3; }
.kl-pvcell { fill: #234b7a; stroke: #9cb6d6; stroke-width: 1; }
.kl-pvframe { fill: none; stroke: #c9cfd4; stroke-width: 3; }
.kl-shadecard { fill: #6e6a63; opacity: 0.95; }
.kl-heatwaves path { fill: none; stroke: #f08a46; stroke-width: 2; stroke-linecap: round; }
.kl-thermbulb { fill: #d6453d; } .kl-thermtube { fill: #f4f4f4; stroke: #8a939a; } .kl-thermfill { fill: #d6453d; }
.kl-meterbox { fill: #1d2428; stroke: #59626b; }
.kl-meterval { font-family: var(--font-mono); font-size: 22px; font-weight: 700; fill: #8ff0b0; }
.kl-meterlab { fill: #b9c4c9; }
.kl-resistor { fill: #e9d9b5; stroke: #8b7d6b; }
.kl-lockrow.is-locked input[type="range"] { opacity: 0.45; cursor: not-allowed; }
.kl-lockrow.is-locked output { font-weight: 600; }

/* screens 4 and 5: the maps */
.kl-mapsea { fill: var(--kl-sea); }
.kl-mapother { fill: var(--kl-other); }
.kl-mapland { fill: var(--kl-land); stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.kl-maplab { fill: var(--ink-2); letter-spacing: 0.08em; font-weight: 700; opacity: 0.8; }
.kl-layer { opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.kl-layer.is-on { opacity: 1; }
.kl-high { fill: var(--kl-high); opacity: 0.75; }
.kl-alps { fill: var(--kl-alps); }
.kl-highlab { fill: #6b5532; font-weight: 700; }
.kl-coalfield { fill: #2b2b2b; opacity: 0.55; }
.kl-coallab { fill: #1d1d1d; font-weight: 700; }
.kl-river { fill: none; stroke: var(--kl-river); stroke-width: 2.4; stroke-linejoin: round; }
.kl-lake { fill: var(--kl-river); }
.kl-riverlab { fill: var(--kl-river); font-style: italic; font-weight: 700; }
.kl-raindot { fill: var(--kl-river); opacity: 0.35; stroke: var(--kl-river); stroke-width: 1.5; }
.kl-rainlab { fill: var(--ink); font-weight: 700; }
.kl-city { fill: #c2410c; opacity: 0.55; stroke: #9a3412; stroke-width: 1; }
.kl-citylab { fill: var(--ink); font-weight: 700; }
.kl-tline { fill: none; stroke: #8b5cf6; stroke-width: 2.2; stroke-dasharray: 9 4; }
.kl-act { fill: var(--kl-other); stroke: var(--ink-2); stroke-width: 1; }
.kl-actlab { fill: var(--ink-2); font-size: 10px; }
.kl-mk { stroke: var(--kl-paper); stroke-width: 1.5; }
.kl-mk-closed { fill: var(--kl-paper); stroke: var(--kl-coal); stroke-width: 1.5; }
.kl-mk-x { stroke: var(--kl-coal); stroke-width: 1.6; }
.kl-mkray { stroke: var(--kl-solar); stroke-width: 1.6; }
.kl-mkg { cursor: pointer; }
.kl-mkg:focus { outline: none; }
.kl-mkg:focus-visible .kl-mkhit { stroke: var(--focus); stroke-width: 3; }
.kl-mkhit { fill: transparent; }
.kl-mkg:hover .kl-mkhit { fill: rgba(127, 127, 127, 0.15); }
.kl-selring { fill: none; stroke: var(--focus); stroke-width: 3; }
.kl-maprow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .kl-maprow { grid-template-columns: minmax(0, 1fr); } }
.kl-card { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.kl-card > * { margin: 0; }
.kl-card h4 { font-size: 1.1rem; }
.kl-card-k { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.kl-card-k .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.kl-why { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.kl-why > * { margin: 0; }
.kl-why-q { font-weight: 700; }
.kl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kl-chip { min-height: 36px; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 650; cursor: pointer; }
.kl-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.kl-chip.is-right { border-color: var(--good); background: var(--good-soft); }
.kl-chip.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.kl-chip.is-missed { border-style: dashed; border-color: var(--good); }
.kl-whyfb ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 0.95rem; }
.kl-whyfb .fb { margin: 0; }
.kl-whyfb .kl-no { color: var(--ink-2); }
.kl-kind[aria-pressed="false"] { opacity: 0.6; }
.kl-rezg { cursor: pointer; }
.kl-rez { fill: var(--kl-solar); fill-opacity: 0.35; stroke: var(--kl-solar); stroke-width: 2.5; transition: r 0.4s ease; }
.kl-rezg.is-sel .kl-rez { stroke: var(--focus); }
.kl-rezlab { fill: var(--ink); }
.kl-weights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.kl-wrow .slider-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.kl-wrow .slider-row input { grid-column: 1 / -1; grid-row: 2; }
.kl-wrow .slider-row .label { white-space: normal; }
.kl-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kl-rank li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) 70px 2.2em; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; }
.kl-rk-n { font-weight: 800; color: var(--ink-2); text-align: center; }
.kl-rk-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.kl-rk-bar i { display: block; height: 100%; width: var(--w); background: var(--kl-solar); border-radius: 999px; }
.kl-rk-s { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.kl-reztbl td.is-key { font-weight: 800; background: var(--accent-soft); }
.kl-reztbl tr.is-sel th { color: var(--accent); }
.kl-reztbl small { display: block; color: var(--ink-2); font-weight: 400; }
.kl-calc { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); max-width: 820px; }
.kl-calc > * { margin: 0; }
.kl-calc select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.kl-calc-out b { font-variant-numeric: tabular-nums; }

/* screen 6: the valley */
.kl-valley.kl-svg { background: #e6ead2; }
.kl-valley .kl-ts { fill: #33404a; }
.kl-valley .kl-halo { stroke: rgba(230, 234, 210, 0.95); }
.kl-vland { fill: #e6ead2; }
.kl-contour { fill: none; stroke: #b7b88f; stroke-width: 1; }
.kl-ridge { fill: none; stroke: #8b7d55; stroke-width: 3; stroke-dasharray: 2 5; stroke-linecap: round; }
.kl-creek { fill: none; stroke: #4f93cf; stroke-width: 3; }
.kl-gum { fill: #6f8f4a; }
.kl-road { fill: none; stroke: #9a9488; stroke-width: 5; }
.kl-town { fill: #c9b8a0; stroke: #8b7d6b; }
.kl-airstrip { fill: #b0aaa0; stroke: #7a746a; }
.kl-substn { fill: #c9cfd4; stroke: #59626b; }
.kl-zone { opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.kl-zone.is-on { opacity: 1; }
.kl-zonearea { fill-opacity: 0.32; stroke-width: 2; stroke-dasharray: 6 4; }
.kl-z-tc .kl-zonearea { fill: #b4501c; stroke: #8a3a12; } .kl-z-tc .kl-zonecreek { fill: none; stroke: #b4501c; stroke-width: 26; stroke-opacity: 0.25; }
.kl-z-land .kl-zonearea { fill: #8a6d2a; stroke: #6b521c; }
.kl-z-air .kl-zonearea { fill: #3d74c2; stroke: #1d4f8f; }
.kl-z-eco .kl-zonearea { fill: #2f7a3a; stroke: #1f5a28; }
.kl-stockroute { fill: none; stroke: #8b5cf6; stroke-width: 3; stroke-dasharray: 8 5; opacity: 0; transition: opacity 0.5s ease; }
.kl-stockroute.is-on, text.is-on { opacity: 1; }
.kl-valley text:not(.is-on) + .kl-x { opacity: 0; }
.kl-homeshape { fill: #f6efe2; stroke: #6b5532; stroke-width: 1.4; }
.kl-home.is-host .kl-homeshape { fill: #d9e8c6; }
.kl-noisering { fill: rgba(21, 128, 61, 0.12); stroke: #15803d; stroke-width: 1.5; }
.kl-home.is-loud .kl-noisering { fill: rgba(185, 28, 28, 0.18); stroke: #b91c1c; }
.kl-home.is-loud .kl-noiselab { fill: #b91c1c; font-weight: 700; }
.kl-turb { cursor: pointer; }
.kl-turb:focus { outline: none; }
.kl-turb:focus-visible .kl-tbhit { stroke: var(--focus); stroke-width: 3; }
.kl-tbhit { fill: rgba(255, 255, 255, 0.5); stroke: #59626b; stroke-width: 1; }
.kl-tbblade { fill: #ffffff; stroke: #59626b; stroke-width: 0.8; }
.kl-tbhub { fill: #59626b; }
.kl-tbx { stroke: #b91c1c; stroke-width: 2.2; display: none; }
.kl-turb.is-off .kl-tbblade, .kl-turb.is-off .kl-tbhub { opacity: 0.18; }
.kl-turb.is-off .kl-tbx { display: inline; }
.kl-turb.is-off .kl-tbhit { fill: rgba(255, 255, 255, 0.2); stroke-dasharray: 2 2; }
.kl-turb.is-clash .kl-tbhit { fill: rgba(185, 28, 28, 0.25); stroke: #b91c1c; stroke-width: 2; }
.kl-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.kl-group { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.kl-group span { font-size: 0.86rem; color: var(--ink-2); }
.kl-group[aria-pressed="true"] { border-color: var(--good); background: var(--good-soft); }
.kl-group[aria-pressed="true"] b::after { content: ' ✓'; color: var(--good); }
.kl-group:disabled { opacity: 0.5; cursor: not-allowed; }
.kl-said { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.kl-said > * { margin: 0; }
.kl-report { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); max-width: 820px; }
.kl-report > * { margin: 0; }

/* screen 7: stores and the week */
.kl-reservoir { fill: none; stroke: #6e7780; stroke-width: 2.5; }
.kl-waterfill { fill: var(--kl-hydro); opacity: 0.8; }
.kl-battfill2 { fill: var(--kl-batt); }
.kl-wave { fill: #8fc3f0; opacity: 0.85; }
.kl-outpipe-w { fill: #8fb9de; } .kl-outpipe-b { fill: #c4b5f5; }
.kl-outflow { stroke: #ffffff; stroke-dasharray: 6 6; }
.kl-clock { font-weight: 700; font-variant-numeric: tabular-nums; }
.kl-lull { fill: var(--kl-short); opacity: 0.07; }
.kl-shortarea { fill: var(--kl-short); fill-opacity: 0.55; stroke: var(--kl-short); stroke-width: 1; }
.kl-socline { fill: none; stroke-width: 2.4; }
.kl-socline.f-batt-s { stroke: var(--kl-batt); } .kl-socline.f-pump-s { stroke: var(--kl-pump); }

/* screen 8: uses */
.kl-useicon { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.kl-usebar { fill: var(--viz-1); }
.kl-usebar.is-home { fill: var(--viz-2); }
.kl-usebar.is-exp { fill: var(--viz-dim); }

/* screen 9: the Energy Security Target */
.kl-mixgrid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .kl-mixgrid { grid-template-columns: minmax(0, 1fr); } }
.kl-esthit { fill: transparent; cursor: pointer; }
.kl-estbase { fill: var(--kl-firm); }
.kl-estera { fill: var(--kl-coal); }
.kl-estadd { fill: var(--kl-wind); }
.kl-esttarget { stroke: var(--kl-grid); stroke-width: 3; }
.kl-estyr.is-sel .kl-esthit { fill: var(--accent-soft); opacity: 0.6; }
.kl-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.kl-gauge { padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); display: grid; gap: 4px; }
.kl-gauge > * { margin: 0; }
.kl-gauge.is-ok { border-color: var(--good); }
.kl-gauge.is-short { border-color: var(--bad); }
.kl-gbig { font-size: 1.25rem; font-weight: 800; }
.kl-gauge.is-ok .kl-gbig { color: var(--good); } .kl-gauge.is-short .kl-gbig { color: var(--bad); }

/* screen 10: claims and evidence */
.kl-evgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .kl-evgrid { grid-template-columns: minmax(0, 1fr); } }
.kl-claims { display: grid; gap: 8px; }
.kl-claim { border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.kl-claim.is-open { border-color: var(--accent); }
.kl-claim-h { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.kl-claim-n { flex: none; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.9rem; }
.kl-slots { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 6px; }
.kl-claim:not(.is-open) .kl-slots { display: none; }
.kl-slot { padding: 7px 10px; border-radius: 8px; border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 0.9rem; display: grid; gap: 4px; }
.kl-slot.is-full { border-style: solid; color: var(--ink); }
.kl-slot.is-fit { border-color: var(--good); background: var(--good-soft); }
.kl-slot.is-nofit { border-color: var(--bad); background: var(--bad-soft); }
.kl-slot .linkbtn { justify-self: start; font-size: 0.85rem; }
.kl-claim-fb { margin: 0 12px 10px; font-size: 0.92rem; font-weight: 650; }
.kl-claim-fb.is-right { color: var(--good); } .kl-claim-fb.is-wrong { color: var(--bad); }
.kl-claim:not(.is-open) .kl-claim-fb { display: none; }
.kl-cards { display: grid; gap: 8px; }
.kl-cards > .label { margin: 0; }
.kl-evcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 640px; overflow: auto; }
.kl-evcards.is-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
.kl-evcard { display: grid; gap: 3px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.92rem; line-height: 1.4; cursor: pointer; }
.kl-evcard:hover { border-color: var(--accent); }
.kl-evcard.is-used { border-color: var(--accent); background: var(--accent-soft); }
.kl-evs { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.kl-outline { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; max-width: 900px; }
.kl-outline > * { margin: 0; }
.kl-outline ol { padding-left: 1.3em; display: grid; gap: 6px; }

/* the driving question board */
.kl-board-wrap { display: grid; gap: 12px; }
.kl-board { position: relative; display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 6px solid #8a6a43;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px) 0 0 / 18px 18px, radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.08) 0 2px, transparent 3px) 0 0 / 23px 23px, linear-gradient(135deg, var(--kl-cork), var(--kl-cork-2)); }
.kl-dq { justify-self: center; text-align: center; padding: 10px 22px; border-radius: 6px; background: #fffdf5; color: #1f2933; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); transform: rotate(-0.6deg); }
.kl-dq p { margin: 2px 0 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; }
.kl-dq .label { color: #8a3a12; }
.kl-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .kl-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .kl-cols { grid-template-columns: minmax(0, 1fr); } }
.kl-col { display: grid; gap: 8px; align-content: start; }
.kl-col h4 { margin: 0; padding: 4px 10px; border-radius: 6px; background: rgba(255, 253, 245, 0.92); color: #1f2933; font-size: 0.92rem; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.kl-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kl-note { position: relative; display: grid; gap: 6px; padding: 14px 12px 10px; border-radius: 3px; color: #1f2933; background: #fff59d; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.22); transform: rotate(var(--tilt, 0deg)); }
.kl-note > * { margin: 0; }
.kl-c-make.kl-note, .kl-c-make i { background: #fff59d; }
.kl-c-where.kl-note, .kl-c-where i { background: #b9e6ff; }
.kl-c-who.kl-note, .kl-c-who i { background: #ffd1dc; }
.kl-c-steady.kl-note, .kl-c-steady i { background: #c8f2c2; }
.kl-c-need.kl-note, .kl-c-need i { background: #ffd8a8; }
.kl-note.is-loose { opacity: 0.62; box-shadow: none; border: 2px dashed rgba(31, 41, 51, 0.45); }
.kl-note.is-loose .kl-pin { display: none; }
.kl-pin { position: absolute; top: -6px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a80, #c62828); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35); }
.kl-note-q { font-weight: 700; line-height: 1.35; font-size: 0.95rem; }
.kl-note-who { font-size: 0.8rem; color: #4a565a; }
.kl-note .linkbtn { color: #1f5f8b; }
.kl-note-btn { justify-self: start; min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1.5px solid rgba(31, 41, 51, 0.5); background: rgba(255, 255, 255, 0.6); color: #1f2933; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.kl-note-btn[aria-pressed="true"] { background: #1f2933; color: #fff; border-color: #1f2933; }
.kl-note-l { font-size: 0.8rem; font-weight: 700; }
.kl-note textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(31, 41, 51, 0.35); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 0.92rem; background: rgba(255, 255, 255, 0.75); color: #1f2933; }
.kl-note-a { font-size: 0.9rem; line-height: 1.4; }
.kl-note-a .label { display: block; color: #4a565a; }
.kl-note-a.kl-open { color: #8a3a12; font-weight: 700; font-size: 0.85rem; }
.kl-stamp { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border: 2px solid #15803d; border-radius: 6px; color: #15803d; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(255, 255, 255, 0.7); }
.kl-note.is-done { outline: 2px solid rgba(21, 128, 61, 0.5); }
.kl-empty { font-size: 0.88rem; }
.kl-col .kl-empty { padding: 8px; border-radius: 6px; background: rgba(255, 253, 245, 0.6); color: #3b4650; text-align: center; }
.kl-board-foot { display: grid; gap: 10px; }
.kl-count { margin: 0; font-weight: 700; }
.kl-board .kl-count { padding: 6px 10px; border-radius: 6px; background: rgba(255, 253, 245, 0.85); color: #1f2933; justify-self: start; }
.kl-add { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); max-width: 760px; }
.kl-add textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--surface); color: var(--ink); }
.kl-add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kl-add select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.kl-add .fb { margin: 0; }
.kl-back { display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 5px solid #8a6a43; background: linear-gradient(135deg, var(--kl-cork), var(--kl-cork-2)); }
.kl-back-head { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 253, 245, 0.92); color: #1f2933; }
.kl-back-head > * { margin: 0; }
.kl-back-head .label { color: #8a3a12; }
.kl-back-head h3 { font-size: 1.1rem; }
.kl-back .kl-notes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kl-glance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.92rem; color: #3b4650; }
.kl-dots { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.kl-dots i { width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(31, 41, 51, 0.4); opacity: 0.5; }
.kl-dots i.is-done { opacity: 1; box-shadow: inset 0 0 0 2px #15803d; }
.kl-more { padding: 10px 12px; border-radius: 10px; background: rgba(255, 253, 245, 0.9); color: #1f2933; }
.kl-more summary { cursor: pointer; font-weight: 700; }
.kl-more .kl-add { background: transparent; padding: 10px 0 0; }
.kl-more .kl-add textarea, .kl-more .kl-add select { background: #fff; color: #1f2933; border-color: #9aa3aa; }
.kl-more .kl-add .label, .kl-more .kl-add label { color: #1f2933; }

/* ---------- movement, only for readers who haven't asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  .kl-note.kl-in { animation: kl-pin-in 0.5s cubic-bezier(.2, 1.3, .5, 1) both; }
  .kl-note.kl-flash, .kl-slot.kl-flash { animation: kl-stick 0.55s cubic-bezier(.2, 1.4, .5, 1); }
  .kl-stamp { animation: kl-stamp 0.4s ease-out both; }
  .kl-rank li { will-change: transform; }
  .kl-chain li.is-now { transform: translateY(-2px); }
}
@keyframes kl-pin-in { from { opacity: 0; transform: translateY(-14px) rotate(calc(var(--rot, 0deg) - 6deg)) scale(0.92); } to { opacity: 1; transform: rotate(var(--rot, 0deg)); } }
@keyframes kl-stick { 0% { transform: scale(1.08) rotate(calc(var(--rot, 0deg) + 3deg)); } 60% { transform: scale(0.98) rotate(var(--rot, 0deg)); } 100% { transform: rotate(var(--rot, 0deg)); } }
@keyframes kl-stamp { from { opacity: 0; transform: scale(1.8) rotate(-8deg); } to { opacity: 1; transform: rotate(-8deg); } }
.kl-note.is-loose.kl-flash { animation: none; }
.kl-eq { margin: 4px 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.kl-scenelab { fill: #ffffff; paint-order: stroke; stroke: rgba(10, 20, 30, 0.65); stroke-width: 3.5px; stroke-linejoin: round; }
.kl-cb-lab.is-out, .kl-cblock.is-closed .kl-cb-lab { fill: var(--ink); }
.kl-note { --rot: var(--tilt, 0deg); transform: rotate(var(--rot)); }
.kl-note.is-loose { --rot: 0deg; }
.kl-firebox { fill: #5a2b1a; stroke: #3d1d12; }
.kl-leader { stroke: var(--ink-2); stroke-width: 1; }
.kl-sinkarea { fill: var(--kl-batt); fill-opacity: 0.22; stroke: none; }
.kl-potline { fill: none; stroke: var(--kl-solar); stroke-width: 1.8; stroke-dasharray: 2 3; }
.kl-legend .sw.kl-sw-sink { background: var(--kl-batt); opacity: 0.35; }
.kl-legend .sw.kl-sw-base { background: var(--kl-firm); }
.kl-legend .sw.kl-sw-era { background: var(--kl-coal); }
.kl-legend .sw.kl-sw-add { background: var(--kl-wind); }
.kl-legend .sw.kl-sw-target { height: 3px; width: 20px; background: var(--kl-grid); }
.kl-mkw { stroke: var(--kl-paper); stroke-width: 0.6; }
.kl-routelab { opacity: 0; transition: opacity 0.5s ease; }
.kl-routelab.is-on { opacity: 1; }
.kl-shortarea { stroke: none; }
