/* Ausgeology · Where did life begin?: styles for this lesson's models and its evidence diagram.
   The first blocks (the brief, number answers, the shared parts of the models, movement) are carried over from the igneous rocks lesson. */

:root {
  --wl-a: #9a4b06; --wl-a-soft: rgba(217, 119, 6, 0.14); --wl-b: #1d4ed8; --wl-b-soft: rgba(29, 78, 216, 0.12);
  --wl-strong: #14532d; --wl-sup: #15803d; --wl-none: #6b7280; --wl-con: #b91c1c;
  --wl-paper: #fdfdf9; --wl-thing: #5b6b70;
  --wl-sky1: #c9a27a; --wl-sky2: #8b6f5a; --wl-land: #5d4a3c; --wl-land2: #44372d; --wl-pool: #4f8fa3; --wl-pool2: #2f6c80;
  --wl-sea1: #2c6e96; --wl-sea2: #0d2c46; --wl-floor: #3d342d; --wl-floor2: #2a231e; --wl-magma: #e8590c; --wl-hot: #ffb703;
  --wl-pil1: #b8572f; --wl-pil2: #8e3b1f; --wl-pil3: #d58a5a; --wl-spin: #c9b46a; --wl-water: #2f80c1; --wl-water2: #1f5f99; --wl-sand: #d8b88a; --wl-palm: #5f7f4a;
  --wl-glass: #e9f1f5; --wl-glass-line: #6b8794; --wl-carb: #e8e2d5;
  --wl-tree: #5b6b70; --wl-bac: #2f6f9f; --wl-arc: #b45309; --wl-euk: #2f7d4a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wl-a: #fbbf24; --wl-a-soft: rgba(251, 191, 36, 0.14); --wl-b: #8fb2ff; --wl-b-soft: rgba(143, 178, 255, 0.14);
    --wl-strong: #86efac; --wl-sup: #4ade80; --wl-none: #9ca3af; --wl-con: #f87171;
    --wl-paper: #151c1f; --wl-thing: #8e9ea3; --wl-glass: #22313a; --wl-glass-line: #9db8c4; --wl-carb: #c9c2b2; --wl-tree: #9fb0b5;
    --wl-bac: #7fb3dc; --wl-arc: #f0a35a; --wl-euk: #7cc994;
  }
}
:root[data-theme="dark"] {
  --wl-a: #fbbf24; --wl-a-soft: rgba(251, 191, 36, 0.14); --wl-b: #8fb2ff; --wl-b-soft: rgba(143, 178, 255, 0.14);
  --wl-strong: #86efac; --wl-sup: #4ade80; --wl-none: #9ca3af; --wl-con: #f87171;
  --wl-paper: #151c1f; --wl-thing: #8e9ea3; --wl-glass: #22313a; --wl-glass-line: #9db8c4; --wl-carb: #c9c2b2; --wl-tree: #9fb0b5;
  --wl-bac: #7fb3dc; --wl-arc: #f0a35a; --wl-euk: #7cc994;
}

/* the syllabus quotes in the teacher notes */
blockquote.scsa { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); max-width: 72ch; }
blockquote.scsa p { margin: 0 0 6px; }
blockquote.scsa 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); max-width: 860px; }
.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.wl-ki-body { font-size: 1rem; font-weight: 400; line-height: 1.55; }
.screen-head.wl-first { margin-top: 18px; padding-top: 22px; border-top: 2px solid var(--line); }

/* 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; }
.chk { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 650; cursor: pointer; min-height: 40px; line-height: 1.4; padding: 4px 0; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 2px; }

/* 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; }
.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.3; }
.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 { outline: 3px solid var(--focus); outline-offset: 2px; }
.wd-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-ctl { display: grid; gap: 10px; align-content: start; min-width: 0; }
.wl-ctl .slider-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.wl-ctl .slider-row .label { white-space: normal; line-height: 1.25; }
.wl-ctl .slider-row input { grid-column: 1 / -1; grid-row: 2; }
.wl-ctl .slider-row output { font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-q { margin: 0; font-weight: 750; }
.wl-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .wl-split { grid-template-columns: minmax(0, 1fr); } }
.wl-fig { display: grid; gap: 8px; min-width: 0; }
.wl-fig svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.wl-fig .wl-cap { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.wl-fig.wl-chart svg { max-width: 760px; }
.wl-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.wl-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wl-swipe { display: none; margin: 0; font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 620px) { .wl-swipe { display: block; } }
@media (max-width: 620px) { .wl-scroll > svg { min-width: 560px; } .wl-scroll.wl-mapbox > svg { min-width: 470px; } .wl-scroll.wl-wide2 > svg { min-width: 520px; } }
.wl-fig.wl-wide2 svg { max-width: 680px; }
.wl-fig.wl-gaugebox svg { max-width: 300px; }
.wl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 12px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.wl-facts div { display: grid; gap: 1px; }
.wl-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); }
.wl-facts dd { margin: 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-sub { margin: 6px 0 0; font-size: 1.02rem; }

.wl-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.wl-fs legend { font-weight: 700; line-height: 1.4; padding: 0; margin-bottom: 6px; }
.wl-checklist { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.wl-checklist .chk { font-weight: 600; }


/* ---------- models: shared ---------- */
.wl-ctl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-ctl-row .label { margin-right: 4px; }
.wl-play { min-width: 8.5em; }
.wl-svg { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--wl-paper); border: 1px solid var(--line); }
.wl-lab-t { font-family: var(--font-body, inherit); font-size: 13px; fill: var(--ink); }
.wl-lab-s { font-size: 11.5px; fill: var(--ink-2); }
.wl-lab-b { font-weight: 700; }
.wl-halo { paint-order: stroke; stroke: var(--wl-paper); stroke-width: 4px; stroke-linejoin: round; }
.wl-axis { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
.wl-grid-l { stroke: var(--line); stroke-width: 1; fill: none; }
.wl-head { fill: var(--ink-2); }
.wl-bar-bg { fill: var(--surface-2); stroke: var(--line); }
.wl-out { font-variant-numeric: tabular-nums; font-weight: 700; }
.wl-two { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .wl-two { grid-template-columns: minmax(0, 1fr); } }
.wl-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.wl-side > * { margin: 0; }
.wl-pane { width: 100%; max-width: 300px; aspect-ratio: 1; display: block; border-radius: 50%; box-shadow: 0 0 0 6px #6b5a3a, 0 0 0 7px #d8c48e, 0 8px 18px rgba(0, 0, 0, 0.35); background: #111; margin: 8px auto; }
.wl-place-btns { display: grid; gap: 6px; }
.wl-place-btns .wd-opt { width: 100%; }
.wl-result { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.5; }
.wl-result b { font-weight: 750; }


/* ---------- movement, only for readers who haven't asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  .wl-m-dash { animation: wl-dash 1.4s linear infinite; }
  .wl-m-rise { animation: wl-rise 2.6s ease-in infinite; transform-box: fill-box; }
  .wl-m-fall { animation: wl-fall 2.2s ease-in infinite; transform-box: fill-box; }
  .wl-m-glow { animation: wl-glow 2.4s ease-in-out infinite; }
  .wl-m-ring { animation: wl-ring 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .wl-m-bob { animation: wl-bob 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .wl-m-shim { animation: wl-shim 1.6s ease-in-out infinite; }
  .wl-smp.is-new { animation: wl-pop 0.45s cubic-bezier(.2, 1.4, .5, 1) both; }
  .wl-mcard.is-in { animation: wl-slide 0.4s ease-out both; }
  .wl-chip.is-new { animation: wl-pop 0.35s ease-out both; }
}
@keyframes wl-dash { to { stroke-dashoffset: -36; } }
@keyframes wl-rise { 0% { transform: translateY(10px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes wl-fall { 0% { transform: translateY(-10px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes wl-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes wl-ring { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes wl-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(3px) rotate(1deg); } }
@keyframes wl-shim { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
@keyframes wl-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes wl-slide { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .wl-minbar .wl-fill, .wl-ebar .wl-fill { transition: width 0.6s ease; }
  .wl-esteps li { transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
}
.wl-minbar .wl-fill { display: block; }
.viz-read:empty, .wl-result:empty { display: none; }
.wl-fs.wl-checklist legend { float: left; width: 100%; margin-bottom: 6px; }
.wl-fs.wl-checklist legend + * { clear: both; }
.wl-wall .wl-spec-box svg.wl-labels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wl-wlab { font-size: 34px; font-weight: 800; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: 7px; stroke-linejoin: round; }
.wl-sbox { min-width: 0; }
@media (max-width: 620px) { .wl-sbox.wl-scroll > svg { min-width: 560px; } }


/* ---------- this lesson's pieces ---------- */
.key-idea p.wl-ki-body { font-size: 1rem; font-weight: 400; line-height: 1.55; }
.screen-head.wl-first { margin-top: 18px; padding-top: 22px; border-top: 2px solid var(--line); }
.wl-ctl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.wl-ctl .chk { margin-top: 4px; }
.wl-on-dark { fill: #f1f5f9; }
.wl-lab-s.wl-on-dark { fill: #cbd5e1; }
/* scenes painted with their own light colours keep dark labels in both themes */
.wl-fixed .wl-lab-t { fill: #1f2933; }
.wl-fixed .wl-lab-s { fill: #3b4650; }
.wl-fixed .wl-halo { stroke: rgba(255, 255, 255, 0.85); }
.wl-fixed .wl-axis { stroke: #4b5563; }
.wl-fixed .wl-on-dark, .wl-fixed .wl-lab-t.wl-on-dark { fill: #f1f5f9; }
.wl-fixed .wl-lab-s.wl-on-dark { fill: #cbd5e1; }
.wl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* the links between evidence and models */
.wl-link-line { fill: none; stroke-width: 3; stroke-linecap: round; }
.wl-link-strong .wl-link-line { stroke: var(--wl-strong); stroke-width: 3.4; }
.wl-link-sup .wl-link-line { stroke: var(--wl-sup); }
.wl-link-none .wl-link-line { stroke: var(--wl-none); stroke-dasharray: 2 7; stroke-width: 3; }
.wl-link-con .wl-link-line { stroke: var(--wl-con); }
.wl-link-head { stroke: none; }
.wl-link-strong .wl-link-head { fill: var(--wl-strong); }
.wl-link-sup .wl-link-head { fill: var(--wl-sup); }
.wl-link-con .wl-link-head { fill: var(--wl-con); }
.wl-link-x { stroke: var(--wl-con); stroke-width: 3.4; stroke-linecap: round; fill: none; }
.wl-mbox { stroke-width: 2.5; }
.wl-mbox-a { fill: var(--wl-a-soft); stroke: var(--wl-a); }
.wl-mbox-b { fill: var(--wl-b-soft); stroke: var(--wl-b); }
.wl-ebox { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }

/* an evidence card */
.wl-ev { display: block; }
.wl-ev-card { display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ochre, var(--accent)); }
.wl-ev-head { display: flex; gap: 12px; align-items: center; }
.wl-ev-head .label, .wl-ev-head h3 { margin: 0; }
.wl-ev-head h3 { font-size: 1.12rem; }
.wl-ev-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-weight: 800; }
.wl-ev-text { margin: 0; max-width: 78ch; line-height: 1.55; }
.wl-ev-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: center; }
@media (max-width: 760px) { .wl-ev-body { grid-template-columns: minmax(0, 1fr); } }
.wl-ev-rows { display: grid; gap: 10px; }
.wl-ev-row { border: 0; margin: 0; padding: 10px 12px; border-radius: 12px; min-width: 0; }
.wl-ev-row legend { padding: 0; margin-bottom: 6px; font-weight: 600; line-height: 1.35; float: left; width: 100%; }
.wl-ev-row legend + * { clear: both; }
.wl-ev-a { background: var(--wl-a-soft); }
.wl-ev-b { background: var(--wl-b-soft); }
.wl-ev-a legend b { color: var(--wl-a); }
.wl-ev-b legend b { color: var(--wl-b); }
.wl-ev-mini svg.wl-mini { max-width: 300px; margin: 0 auto; background: var(--wl-paper); }
.wl-ev .note { display: grid; gap: 6px; }
.wl-ev .note textarea { width: 100%; }
.wl-ev-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wl-ev-status { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.wl-ev-geo { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.wl-ev-geo > * { margin: 0; }
.wl-geo-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.wl-geo-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.wl-geo-tag.is-same { background: rgba(21, 128, 61, 0.14); color: var(--wl-strong); }
.wl-geo-tag.is-diff { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }

/* the balance */
.wl-bal-bg { fill: var(--wl-paper); }
.wl-bal-post { fill: var(--wl-thing); }
.wl-bal-beam { fill: var(--ink-2); }
.wl-bal-pin { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.wl-bal-str { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.wl-bal-pan { stroke-width: 2; }
.wl-pan-a { fill: var(--wl-a-soft); stroke: var(--wl-a); }
.wl-pan-b { fill: var(--wl-b-soft); stroke: var(--wl-b); }
.wl-bal-wt.wl-pan-a { fill: var(--wl-a); }
.wl-bal-wt.wl-pan-b { fill: var(--wl-b); }
.wl-bal-ghost rect { fill: none; stroke: var(--ink-2); stroke-dasharray: 4 4; stroke-width: 1.5; opacity: 0.6; }
.wl-plaus .wl-pl-a .label { color: var(--wl-a); }
.wl-plaus .wl-pl-b .label { color: var(--wl-b); }
.wl-plaus input[type="range"] { width: 100%; }

/* screen 1 */
.wl-scene .wl-sc-a, .wl-scene .wl-sc-b { transition: opacity 0.4s ease; }
.wl-scene.is-a .wl-sc-b, .wl-scene.is-b .wl-sc-a { opacity: 0.25; }
.wl-sc-cloud circle { fill: #4f4a4a; }
.wl-sc-drop { stroke: #c7d6de; stroke-width: 1.4; opacity: 0.7; }
.wl-bolt { fill: #fff6c2; stroke: #ffe066; stroke-width: 2; }
.wl-flash { fill: #fff8d6; }
.wl-sc-ripple { fill: none; stroke: #d4eef5; stroke-width: 1.5; }
.wl-sc-steam { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 3; stroke-linecap: round; }
.wl-sc-shim { fill: none; stroke: rgba(255, 190, 120, 0.5); stroke-width: 2; }
.wl-sc-tag { font-size: 15px; }
.wl-sc-div { stroke: var(--wl-paper); stroke-width: 4; }

/* screen 2 */
.wl-pil-storm circle { fill: #6b7380; }
.wl-pil-storm-base { fill: #555c66; }
.wl-pil-shine { stroke: rgba(230, 244, 252, 0.8); stroke-width: 2; stroke-linecap: round; }
.wl-pil-spin { fill: none; stroke: #9a8a4a; stroke-width: 2; stroke-linecap: round; }
.wl-pil-water { fill: #3f86bd; opacity: 0.88; }
.wl-pil-flow { stroke: rgba(225, 240, 250, 0.85); stroke-width: 2; stroke-linecap: round; }
.wl-pil-reed { fill: none; stroke: #5f7f4a; stroke-width: 2.2; stroke-linecap: round; }
.wl-pil-fish { transition: opacity 0.6s ease; }
.wl-pil-fish.is-gone { opacity: 0; }
.wl-pil-plants { transition: opacity 0.6s ease, filter 0.6s ease; }
.wl-pil-plants.is-dry { opacity: 0.25; }
.wl-pil-plants.is-wilt { filter: grayscale(0.7) brightness(0.88); }

/* screen 3 */
.wl-tube { fill: none; stroke: var(--wl-glass-line); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }
.wl-tube-thick { stroke-width: 12; }
.wl-glass { fill: var(--wl-glass); stroke: var(--wl-glass-line); stroke-width: 3; opacity: 0.95; }
.wl-water { fill: #8fc3dc; opacity: 0.85; }
.wl-bub { fill: #fff; }
.wl-vap { fill: #9fd0e6; }
.wl-gas { fill: #d9c27a; }
.wl-mol { fill: #7a8f9a; }
.wl-electrode { stroke: #555; stroke-width: 6; stroke-linecap: round; }
.wl-sparkline { fill: none; stroke: #fff2a8; stroke-width: 3.5; filter: drop-shadow(0 0 4px #ffd84d); }
.wl-jacket { fill: rgba(143, 195, 220, 0.35); stroke: var(--wl-glass-line); stroke-width: 2.5; }
.wl-coolarrow { stroke: #2f80c1; stroke-width: 3; }
.wl-drip { fill: #8fc3dc; }
.wl-trapliq { fill: none; stroke-width: 8; stroke-linecap: round; }
.wl-flowhead { fill: var(--wl-glass-line); opacity: 0.8; }
.wl-coolhead { fill: #2f80c1; }
.wl-nozzle { fill: var(--wl-glass-line); }
.wl-term { fill: #3a3a3a; stroke: var(--wl-glass-line); stroke-width: 2; }
.wl-sparkglow { fill: #fff6c2; filter: blur(6px); }
.wl-dropper { fill: var(--wl-glass); stroke: var(--wl-glass-line); stroke-width: 2; }
.wl-dropper-bulb { fill: #7a4f2a; }
.wl-dropbead { fill: #9a6b3a; }
.wl-meter { fill: var(--accent); }

/* screen 4 */
.wl-floor-line { fill: none; stroke: #6b5c50; stroke-width: 3; }
.wl-crack { fill: none; stroke: #20201f; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.wl-crack-up { stroke: #4a2414; stroke-width: 9; }
.wl-crack-lc { stroke: #2f3a26; stroke-width: 8; }
.wl-serp path { fill: none; stroke: #6f7f52; stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
.wl-lc-spire { fill: #ece6d9; stroke: #b5ad9c; stroke-width: 2; stroke-linejoin: round; }
.wl-lc-back { fill: #d8d1c1; }
.wl-lc-ledge { fill: #e3ddce; stroke: #b5ad9c; stroke-width: 1.5; stroke-linejoin: round; }
.wl-lc-crease { fill: none; stroke: #c8c0ae; stroke-width: 1.5; stroke-linecap: round; }
.wl-probe-rod { stroke: #e5e7eb; stroke-width: 3; }
.wl-probe-tip { fill: #facc15; stroke: #111; stroke-width: 2; }
.wl-probe-lab { fill: rgba(255, 255, 255, 0.92); stroke: #111; stroke-width: 1; }
.wl-probe .wl-lab-t { fill: #111; }
.wl-zoombox { margin-top: 4px; }
.wl-pore { fill: rgba(255, 255, 255, 0.05); stroke: #e8e2d5; stroke-width: 3.5; stroke-linejoin: round; }
.wl-proton { font-family: var(--font-body, inherit); font-size: 11px; font-weight: 700; fill: #fca5a5; }

/* screen 5 */
.wl-lava { fill: #e8590c; }
.wl-on-dark-axis line { stroke: #cbd5e1; stroke-width: 1.5; }
.wl-cr { transition: opacity 0.8s ease, filter 0.8s ease; }
.wl-cr.is-dead { opacity: 0.1; filter: grayscale(1); }
.wl-plume { transform-box: fill-box; transform-origin: 50% 100%; }
.wl-tline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wl-tline li { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); font-size: 0.88rem; font-weight: 700; color: var(--ink-2); border: 2px solid transparent; }
.wl-tline li.is-on { border-color: var(--accent); color: var(--ink); background: var(--surface); }
.wl-tline li.is-past { color: var(--ink); }

/* screen 6 */
.wl-spr-water { fill: rgba(120, 180, 220, 0.18); stroke: rgba(80, 120, 150, 0.6); stroke-width: 2; }
.wl-spr-flow { stroke: rgba(255, 255, 255, 0.75); stroke-width: 2; stroke-linecap: round; }
.wl-spr-edge { fill: #e9dfc4; stroke: #b9a77f; stroke-width: 3; }
.wl-spr-pool { fill: #3f8fc1; }
.wl-dry-water { fill: rgba(110, 175, 214, 0.75); }
.wl-dry-sheen { stroke: rgba(255, 255, 255, 0.8); stroke-width: 2; stroke-linecap: round; }
.wl-dry-rock { fill: #cfc3a4; stroke: #a8996f; stroke-width: 2; stroke-linejoin: round; }
.wl-dry-grit { fill: #b5a67f; }
.wl-dry-link { stroke: #92400e; stroke-width: 4; stroke-linecap: round; }
.wl-spr-src { fill: #efe3c2; }
.wl-mono { fill: #b45309; stroke: #78350f; stroke-width: 1.5; transition: fill 0.4s ease; }
.wl-mono.is-joined { fill: #d97706; }
.wl-membrane { fill: rgba(255, 255, 255, 0.12); stroke: #7c3aed; stroke-width: 4; }

/* the microscope */
.wl-scope { display: grid; gap: 6px; min-width: 0; }
.wl-scope-box { position: relative; overflow: hidden; border-radius: 12px; background: #111; cursor: none; touch-action: pan-y; }
.wl-scope-box:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wl-scope-img { position: absolute; left: 0; top: 0; display: block; filter: brightness(0.82); }
.wl-scope-lens { position: absolute; left: 0; top: 0; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55)); will-change: transform; }
.wl-scope-read { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); min-height: 2.8em; }

/* screen 7 */
.wl-map-sea { fill: #b9d9ea; }
.wl-map-land { fill: #e2c79e; stroke: #b08a5a; stroke-width: 2; }
.wl-map-craton { fill: rgba(184, 87, 47, 0.28); stroke: #b8572f; stroke-width: 2; stroke-dasharray: 5 4; }
.wl-map-town { fill: #374151; }
.wl-pin { cursor: pointer; }
.wl-pin-dot { fill: #6b7280; stroke: #fff; stroke-width: 2; }
.wl-pin-ring { fill: none; stroke: transparent; stroke-width: 2.5; pointer-events: none; }
.wl-pin.is-on .wl-pin-dot { fill: var(--accent); }
.wl-pin.is-on .wl-pin-ring { stroke: var(--accent); }
.wl-tmark circle { fill: #9ca3af; }
.wl-tmark .wl-lab-s { fill: var(--ink-2); }
.wl-tmark.is-on circle { fill: var(--accent); }
.wl-tmark.is-on .wl-lab-s { fill: var(--ink); }
.wl-tlead { stroke: var(--ink-2); stroke-width: 1; opacity: 0.45; }
.wl-tmark.is-on .wl-tlead { stroke: var(--accent); opacity: 1; }

/* screen 8 */
.wl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wl-checks li { display: grid; gap: 4px; }
.wl-chkbtn { width: 100%; text-align: left; }
.wl-chkres { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.94rem; line-height: 1.45; }
.wl-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; margin-right: 4px; color: #fff; }
.wl-mark-y { background: var(--wl-sup); }
.wl-mark-n { background: var(--wl-con); }
.wl-mark-q { background: var(--wl-none); }
svg.wl-jar { max-width: 620px; justify-self: center; }
.wl-jar-bg { fill: var(--wl-paper); }
.wl-jar-glass { fill: none; stroke: var(--wl-glass-line); stroke-width: 4; }
.wl-jar-liquid { fill: rgba(143, 195, 220, 0.3); }
.wl-jar-lead { fill: none; stroke: var(--ink-2); stroke-width: 1; opacity: 0.7; }
.wl-seed { fill: #3b82f6; }
.wl-gtube { fill: none; stroke: #a3542f; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.wl-gtube-in { fill: none; stroke: rgba(220, 238, 246, 0.9); stroke-width: 4; stroke-linecap: round; }

/* screen 9 */
.wl-branch { fill: none; stroke: var(--wl-tree); stroke-width: 4; stroke-linecap: round; }
.wl-branch-faint { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.wl-br-bac { stroke: var(--wl-bac); } .wl-br-arc { stroke: var(--wl-arc); } .wl-br-euk { stroke: var(--wl-euk); }
.wl-tl-bac { fill: var(--wl-bac); } .wl-tl-arc { fill: var(--wl-arc); } .wl-tl-euk { fill: var(--wl-euk); }
.wl-pulse { fill: #fff; stroke-width: 2.5; } .wl-pulse-bac { stroke: var(--wl-bac); } .wl-pulse-arc { stroke: var(--wl-arc); } .wl-pulse-euk { stroke: var(--wl-euk); }
.wl-branch-side { fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-dasharray: 4 5; }
.wl-branch-end { fill: var(--ink-2); }
.wl-tree-side { transition: opacity 0.6s ease; }
.wl-tree-now { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.wl-anc { fill: var(--accent); }
.wl-luca-dot { fill: var(--wl-thing); transition: fill 0.4s ease; }
.wl-luca-glow { fill: transparent; }
.wl-luca.is-on .wl-luca-dot { fill: var(--accent); }
.wl-luca.is-on .wl-luca-glow { fill: var(--accent-soft); }
.wl-chip-bg { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }

/* screen 10 */
.wl-mel .wl-mel-ev { cursor: pointer; }
.wl-mel .wl-mel-ev:focus { outline: none; }
.wl-mel .wl-mel-ev:hover .wl-ebox { stroke: var(--accent); stroke-width: 2.5; }
.wl-mel .wl-mel-ev:focus-visible .wl-ebox { stroke: var(--focus); stroke-width: 4; }
.wl-mel .wl-mel-ev.is-on .wl-ebox { stroke: var(--accent); stroke-width: 3; fill: var(--surface-2); }
.wl-mel .wl-mel-ev.is-on:focus-visible .wl-ebox { stroke: var(--focus); stroke-width: 4; }
.wl-ev-dot { fill: var(--ink); }
.wl-ev-dott { fill: var(--surface); }
.wl-mel-mt { font-size: 16px; }
.wl-mel-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; color: var(--ink-2); }
.wl-key-i { display: inline-flex; align-items: center; gap: 6px; }
.wl-mel-notes { margin-top: 6px; }
@media (max-width: 620px) { .wl-scroll.wl-sbox > svg.wl-mel { min-width: 600px; } }
