/* ===== Atmos Lab ===== */
:root {
  color-scheme: dark;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #070b14;
  --text: #eef2f8;
  --text-2: rgba(238, 242, 248, .78);
  --text-3: rgba(238, 242, 248, .58);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14);
  --panel: rgba(10, 14, 25, .76);
  --rail-bg: #0b111d;
  --raise: rgba(255, 255, 255, .045);
  --raise-2: rgba(255, 255, 255, .08);

  --sky: #8fd3ff;
  --violet: #b39bff;
  --amber: #ffc46b;
  --mint: #56dcae;
  --blue: #6cb8ff;
  --coral: #ff8f7e;
  --temp: #ff9a6b;
  --dew: #6cb8ff;
  --fog: #e6edf7;
  --good: #56dcae;
  --bad: #ff8f7e;

  --c: var(--sky); /* the current step's colour */
  --rail: clamp(380px, 33vw, 470px);
  --gutter: clamp(16px, 4vw, 56px);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --stage-h: 44dvh; /* the stage above the lesson on a phone */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.ic { flex: none; display: block; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; }

/* ===== The stage ===== */
#scene, .scene-fallback {
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100dvh;
  display: block;
}
.scene-fallback {
  z-index: -1;
  background: radial-gradient(120% 80% at 70% 20%, #2a4a74 0%, #13233e 45%, #070b14 100%);
}
.no-webgl #scene { display: none; }
.scene-shade {
  position: fixed; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, .62) 0%, rgba(7, 11, 20, .28) 38%, rgba(7, 11, 20, 0) 62%),
    linear-gradient(0deg, rgba(7, 11, 20, .5) 0%, rgba(7, 11, 20, 0) 30%);
  opacity: calc(1 - var(--scroll, 0) * .2);
}
.in-lesson .scene-shade {
  background: linear-gradient(0deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, 0) 32%);
}

.loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader svg { animation: breathe 2.4s ease-in-out infinite; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.94); } }

/* ===== Buttons and small parts ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--c); color: #06101d; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary.is-disabled { opacity: .38; cursor: not-allowed; filter: grayscale(.4); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.lang button {
  min-width: 40px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: none;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.pill-go { background: var(--u); color: #06101d; }
.pill-done { background: rgba(86, 220, 174, .14); color: var(--mint); }
.pill-soon { background: rgba(255, 255, 255, .06); color: var(--text-3); }

/* ===== Top bar (home) ===== */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 16px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
body:not(.in-lesson) .topbar { background: linear-gradient(rgba(7, 11, 20, calc(var(--scroll, 0) * .9)), rgba(7, 11, 20, calc(var(--scroll, 0) * .7))); backdrop-filter: blur(calc(var(--scroll, 0) * 14px)); }
.in-lesson .topbar { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 650; font-size: 17px; letter-spacing: -.015em; }
.top-nav { margin-left: auto; }
.top-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 14.5px; font-weight: 550; cursor: pointer;
}
.top-link:hover { color: var(--text); background: rgba(255, 255, 255, .07); }

/* ===== Home ===== */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 110px var(--gutter) 120px;
}
.hero-inner { max-width: 640px; animation: rise 1s var(--ease) both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--sky); }
.hero-title {
  margin-top: 14px;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; font-weight: 650; letter-spacing: -.032em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero-lead { margin-top: 20px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--text-2); text-shadow: 0 1px 16px rgba(0, 0, 0, .4); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { --c: var(--sky); }

.cover-cap {
  position: absolute; right: var(--gutter); bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 12px; border-radius: 14px;
  background: rgba(10, 14, 25, .5); border: 1px solid var(--line); backdrop-filter: blur(12px);
  font-size: 13px;
}
.cap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--u); box-shadow: 0 0 12px var(--u); }
.cap-text { display: flex; flex-direction: column; line-height: 1.3; }
.cap-lesson { font-weight: 600; }
.cap-where { color: var(--text-3); }
.cap-pips { display: flex; gap: 4px; margin-left: 4px; }
.cap-pips i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.cap-pips i.is-on { background: var(--text); }

.course {
  position: relative;
  background: linear-gradient(rgba(7, 11, 20, 0), rgba(7, 11, 20, .88) 140px, var(--bg) 320px);
  padding: 80px var(--gutter) 40px;
}
.course-inner { max-width: 1240px; margin: 0 auto; }
.section-title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 650; letter-spacing: -.028em; }
.section-lead { margin-top: 10px; max-width: 46em; color: var(--text-2); font-size: 17px; }

.how { margin-top: 36px; }
.how-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.how-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.how-steps li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center;
  padding: 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line);
}
.how-ic { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--c); background: color-mix(in oklab, var(--c) 14%, transparent); }
.how-name { font-weight: 650; font-size: 14.5px; color: var(--c); }
.how-text { font-size: 13px; line-height: 1.4; color: var(--text-2); }

.units { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.unit { border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line); overflow: hidden; }
.unit-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.unit-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--u); background: color-mix(in oklab, var(--u) 15%, transparent); }
.unit-n { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--u); }
.unit-title { font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.unit-lessons { padding: 6px; }
.lr {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
}
.lr.is-ready:hover { background: var(--raise-2); }
.lr.is-soon { opacity: .66; }
.lr-code { font-size: 14px; font-weight: 600; color: var(--u); font-variant-numeric: tabular-nums; }
.lr-text { display: flex; flex-direction: column; min-width: 0; }
.lr-title { font-weight: 600; font-size: 16px; }
.lr-q { font-size: 14px; color: var(--text-2); line-height: 1.4; }
.lr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lr-min { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }

.foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.credit { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-decoration: none; color: var(--text-3); }
.credit:hover { color: var(--text); }

/* ===== Lesson: stage + rail ===== */
.in-lesson #scene, .in-lesson .scene-fallback { width: calc(100vw - var(--rail)); }
.in-lesson .scene-shade { right: var(--rail); }
.lesson {
  position: fixed; inset: 0; z-index: 10;
  display: grid;
  grid-template-columns: 1fr var(--rail);
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "stage head" "stage body" "tools body" "tools nav";
  pointer-events: none;
}
.lesson::before {
  content: ''; grid-column: 2; grid-row: 1 / -1;
  background: var(--rail-bg); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6);
}
.lesson > * { pointer-events: auto; }
.ls-mark { position: fixed; left: 20px; top: 18px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(10, 14, 25, .45); backdrop-filter: blur(10px); }

.ls-head { grid-area: head; padding: 18px 26px 14px; border-bottom: 1px solid var(--line); }
.ls-top { display: flex; align-items: center; gap: 10px; }
.ls-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px 0 4px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 550; color: var(--text-2); }
.ls-back:hover { color: var(--text); background: var(--raise-2); }
.ls-code { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ls-title { margin-top: 10px; font-size: 24px; font-weight: 650; letter-spacing: -.022em; }
.ls-progress { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 5px; }
.ls-progress li { flex: 1; min-width: 0; }
.ls-progress a { display: block; padding: 6px 0 2px; text-decoration: none; }
.ls-progress a[aria-disabled="true"] { cursor: default; }
.ls-progress i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.ls-progress li.is-done i { background: color-mix(in oklab, var(--c) 55%, transparent); }
.ls-progress li.is-current i { background: var(--c); box-shadow: 0 0 10px color-mix(in oklab, var(--c) 60%, transparent); }
.ls-progress span { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-progress li.is-current span { color: var(--c); }

.ls-body { grid-area: body; overflow-y: auto; padding: 22px 26px 28px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.ls-body:focus { outline: none; }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--c); background: color-mix(in oklab, var(--c) 15%, transparent); }
.step-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.step-title { margin-top: 14px; font-size: 26px; line-height: 1.18; font-weight: 650; letter-spacing: -.024em; }
.step-content { margin-top: 14px; }
.step-content > p, .step-content > .ls-p { font-size: 16.5px; line-height: 1.62; color: var(--text-2); }
.step-content > p + p { margin-top: 12px; }
.step-content strong { color: var(--text); font-weight: 600; }
.ls-sub { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.ls-sub .ic { color: var(--c); }
.ls-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.ls-label .ic { color: var(--c); }

/* Spot illustrations: the step's colour for line and tint, fixed colours for sun, warm and cold air, cloud. */
.art { flex: none; display: block; color: var(--c); }
.art .al { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .af { fill: currentColor; opacity: .18; }
.art .al-f { fill: currentColor; }
.art .am { stroke: rgba(238, 242, 248, .4); stroke-width: 2; stroke-linecap: round; }
.art .aw { fill: #e8eef7; }
.art .awl { stroke: #e8eef7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .as { fill: var(--amber); }
.art .as-f { fill: var(--amber); opacity: .3; }
.art .asl { stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.art .ao { stroke: var(--temp); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .ao-f { fill: var(--temp); opacity: .35; }
.art .ab { stroke: var(--dew); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .abf { fill: var(--dew); opacity: .2; }
.art .ad { stroke-dasharray: 3.5 3.5; }

/* Key facts: three small cards in a row. */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.fact {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 12px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in oklab, var(--c) 9%, transparent), rgba(255, 255, 255, .025) 70%);
}
.fact .art { margin-bottom: 8px; }
.fact-value { font-size: 16px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.fact-label { font-size: 12.5px; line-height: 1.35; color: var(--text-3); }

/* What you'll find out. */
.findout { margin-top: 22px; }
.findout ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.findout li { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 12px; font-size: 15px; line-height: 1.4; color: var(--text); }
.findout li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.findout .art { padding: 3px; border-radius: 9px; background: color-mix(in oklab, var(--c) 10%, transparent); box-sizing: content-box; }

.callout { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); }
.callout p { font-size: 16px; line-height: 1.5; font-weight: 550; }
.callout-q { background: rgba(255, 196, 107, .1); border: 1px solid rgba(255, 196, 107, .22); color: var(--amber); }
.callout-q p { color: var(--text); }

.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.goals li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
.goals li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.goals.is-done li::before { width: 12px; height: 7px; left: 2px; top: .38em; border-radius: 0; background: none; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }

.term {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  margin-top: 20px; padding: 14px 16px; border-radius: var(--r-md);
  background: linear-gradient(150deg, color-mix(in oklab, var(--c) 10%, transparent), var(--raise) 60%); border: 1px solid var(--line);
}
.term-name { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.term-lead { margin-top: 6px; font-size: 15px; font-weight: 650; line-height: 1.4; color: var(--text); }
.term p:not(.term-name):not(.term-lead) { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

.ls-try, .ls-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.ls-try { color: var(--text); }
.ls-try .ic, .ls-note .ic { margin-top: 2px; color: var(--c); }
.ls-note { padding: 12px 14px; border-radius: var(--r-md); background: var(--raise); }
.ls-note.is-good { background: rgba(86, 220, 174, .1); color: var(--text); }
.ls-note.is-good .ic { color: var(--good); }
.ls-note.is-off { background: rgba(255, 196, 107, .1); color: var(--text); }
.ls-note.is-off .ic { color: var(--amber); }

/* Sliders */
.sl { padding: 12px 0 6px; }
.sl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sl-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.sl-label .ic { color: var(--c); }
.sl-value { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.sl input { --p: 50%; width: 100%; margin: 10px 0 0; height: 28px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sl input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c) var(--p), rgba(255, 255, 255, .14) var(--p)); }
.sl input::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c) var(--p), rgba(255, 255, 255, .14) var(--p)); }
.sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .4), 0 0 0 4px color-mix(in oklab, var(--c) 30%, transparent); }
.sl input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .4), 0 0 0 4px color-mix(in oklab, var(--c) 30%, transparent); }
.sl input:focus-visible { outline: none; }
.sl input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sky); }
.sl-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }

/* The rising-air diagram */
.pc-env { fill: none; stroke: rgba(238, 242, 248, .75); stroke-width: 2.2; stroke-linejoin: round; }
.pc-lid { fill: rgba(255, 196, 107, .14); }
.pc-lid-label { fill: var(--amber); font-size: 10.5px; font-weight: 600; }
.pc-cloud { opacity: .94; }
.pc-cape { fill: rgba(255, 154, 107, .28); }
.pc-tropo { stroke: rgba(195, 139, 255, .5); stroke-dasharray: 6 4; }
.pc-tropo-label { fill: var(--violet); font-size: 10.5px; font-weight: 600; }
.pc-anvil { fill: rgba(226, 232, 242, .85); }
.pc-base { stroke: rgba(240, 244, 250, .55); stroke-dasharray: 4 3; }
.pc-base-label { fill: var(--fog); font-size: 11px; font-weight: 650; }
.pc-top { stroke: rgba(255, 154, 107, .6); stroke-dasharray: 4 3; }
.pc-top-label { fill: var(--temp); font-size: 11px; font-weight: 600; }
.pc-lcl { stroke: rgba(108, 184, 255, .45); stroke-dasharray: 2 4; }
.pc-lcl-label { fill: var(--dew); font-size: 10.5px; font-weight: 600; }
.pc-note { fill: var(--text-2); font-size: 12px; }
.pc-bubble { fill: rgba(255, 154, 107, .25); stroke: var(--temp); stroke-width: 2; }
.pc-bubble.is-cloud { fill: rgba(240, 244, 250, .9); stroke: #fff; }
.lg.lg-env i { border-color: rgba(238, 242, 248, .75); }
.lg.lg-sunpath i { border-color: var(--amber); }
.lg.lg-ref i { border-color: rgba(238, 242, 248, .45); border-top-style: dashed; }
.lg.lg-warm i, .lg.lg-cold i { width: 12px; height: 10px; border: 0; border-radius: 2px; }
.lg.lg-warm i { background: rgba(255, 154, 107, .45); }
.lg.lg-cold i { background: rgba(108, 184, 255, .45); }
.lift { --c: var(--violet); padding: 0 14px 14px; }
.lift .sl { padding-top: 4px; }
.lift-ro { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }
.lift .vp-note { font-size: 13.5px; }

/* The column over Zermatt */
.cl-mtn { fill: rgba(150, 162, 182, .22); stroke: rgba(238, 242, 248, .35); stroke-width: 1; }
.cl-snow { fill: rgba(240, 244, 250, .75); }
.cl-place { fill: var(--text-2); font-size: 10.5px; font-weight: 600; }
.cl-warm { fill: rgba(255, 154, 107, .14); }
.cl-cold { fill: rgba(108, 184, 255, .16); }
.cl-zero { stroke: rgba(238, 242, 248, .35); stroke-dasharray: 3 3; }
.fl-layer { position: absolute; inset: 4px 8px 6px; width: calc(100% - 16px); height: auto; pointer-events: none; }
.fl-snow { stroke: #fff; stroke-width: 1.4; stroke-linecap: round; fill: none; }
.fl-wet { fill: rgba(220, 236, 255, .9); stroke: var(--dew); stroke-width: 1; }
.fl-drop { fill: var(--dew); }
.fl-pellet { fill: #f2f6fb; stroke: #9fc3e0; stroke-width: 1; }

/* The optics diagram */
.op-sky { fill: rgba(108, 160, 230, .14); }
.op-ground { fill: rgba(86, 160, 110, .12); }
.op-horizon { stroke: rgba(238, 242, 248, .4); }
.op-title { fill: var(--text-2); font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.op-sun { fill: var(--amber); }
.op-glow { fill: rgba(255, 196, 107, .18); }
.op-halo { fill: none; stroke: rgba(240, 244, 250, .7); stroke-width: 2.5; }
.op-halo-in { fill: none; stroke: rgba(255, 140, 110, .7); stroke-width: 1.5; }
.op-dog { fill: rgba(255, 220, 170, .9); }
.op-bow circle { fill: none; stroke-width: 1.8; opacity: .95; }
.op-bow2 circle { fill: none; stroke-width: 1.2; opacity: .35; }
.op-bow-ghost { fill: none; stroke: rgba(238, 242, 248, .25); stroke-dasharray: 3 4; }
.op-bow-under { fill: none; stroke: rgba(238, 242, 248, .18); stroke-dasharray: 2 4; }
.op-anti { fill: var(--c); }
.op-ray { stroke: rgba(238, 242, 248, .4); stroke-dasharray: 2 3; }
.op-label { fill: var(--text); font-size: 10.5px; font-weight: 600; }
.op-note { fill: var(--text-2); font-size: 10.5px; }

/* The sun's path and the beam */
.sp-path { fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linejoin: round; }
.sp-under { stroke-opacity: .3; stroke-dasharray: 3 3; }
.sp-ref { fill: none; stroke: rgba(238, 242, 248, .28); stroke-width: 1.4; stroke-dasharray: 4 4; }
.sp-dir { fill: var(--text-2); font-size: 10.5px; font-weight: 650; }
.sp-sun-down { fill: rgba(255, 196, 107, .35); }
.bm-beam { fill: rgba(255, 196, 107, .2); }
.bm-edge { stroke: rgba(255, 196, 107, .7); stroke-width: 1.5; }
.bm-sq { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .15); }
.bm-lit { fill: rgba(255, 196, 107, .55); stroke: rgba(255, 196, 107, .8); }
.bm-angle { fill: none; stroke: rgba(238, 242, 248, .6); stroke-width: 1.4; }

/* Wind */
.wd-curve { fill: none; stroke: var(--c); stroke-width: 2.6; }
.wd-drop { stroke: rgba(238, 242, 248, .35); stroke-dasharray: 3 3; }
.wd-dot { stroke: #0b111d; stroke-width: 2; }
.wd-bf { fill: #0b111d; font-size: 9.5px; font-weight: 700; opacity: .8; }
.wd-bf.is-on { opacity: 1; font-size: 10.5px; }
.wd-map { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .08); }
.wd-isobar { fill: none; stroke: rgba(238, 242, 248, .45); stroke-width: 1.4; }
.wd-h { fill: #6cb8ff; font-size: 24px; font-weight: 750; }
.wd-l { fill: #ff8f7e; font-size: 24px; font-weight: 750; }
.wd-arrow { stroke: var(--c); color: var(--c); stroke-width: 3.4; stroke-linecap: round; fill: none; }
.guess { margin-top: 16px; padding: 14px; border-radius: var(--r-md); background: color-mix(in oklab, var(--c) 9%, transparent); border: 1px solid color-mix(in oklab, var(--c) 22%, transparent); }
.guess-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guess-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 650; }
.guess-title .ic { color: var(--c); }
.guess-score { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.guess p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.guess-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.guess-row button { min-height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font-weight: 650; cursor: pointer; }
.guess-row button:hover { background: var(--raise-2); }
.guess .btn { margin-top: 12px; }
.is-guessing .readouts, .is-guessing #diagram, .is-guessing .ctl, .is-guessing .presets { filter: blur(6px); opacity: .5; pointer-events: none; }

/* The auroral oval */
.ov-bg { fill: rgba(10, 16, 34, .7); stroke: rgba(255, 255, 255, .08); }
.ov-day { fill: rgba(108, 160, 230, .1); }
.ov-ring { fill: none; stroke: rgba(238, 242, 248, .14); }
.ov-oval { fill: rgba(86, 220, 140, .3); stroke: rgba(86, 220, 140, .65); stroke-width: 1; }
.ov-in { fill: #56dc8c; }
.ov-out { fill: rgba(238, 242, 248, .6); }
.ov-in.is-main, .ov-out.is-main { stroke: #fff; stroke-width: 1.5; }
.ov-city { fill: var(--text-2); font-size: 9.5px; }
.ov-city.is-main { fill: var(--text); font-weight: 650; font-size: 10.5px; }

/* Field trips */
.globe-box { position: relative; width: 100%; height: 214px; border-radius: 12px; overflow: hidden; background: #060a14; }
.globe-box .maplibregl-ctrl-attrib, .globe-box .maplibregl-ctrl-attrib.maplibregl-compact-show { font-size: 9px; background: rgba(6, 10, 20, .75) !important; color: rgba(238, 242, 248, .6); }
.globe-box .maplibregl-ctrl-attrib a { color: rgba(238, 242, 248, .8); }
.globe-box .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.gl-flat { fill: #0a1222; } .gl-eq { stroke: rgba(255, 196, 107, .35); } .gl-route { fill: none; stroke: var(--mint); stroke-dasharray: 3 3; }
.gl-warm { fill: none; stroke: #ff8a5c; stroke-width: 2; } .gl-cold { fill: none; stroke: #5fb4ff; stroke-width: 2; }
.gl-lit { fill: var(--mint); } .gl-stop { fill: #e6edf7; } .gl-pin { fill: #ffc46b; stroke: #0b111d; stroke-width: 1.5; } .gl-tap { cursor: pointer; } .gl-here { fill: var(--mint); stroke: #0b111d; stroke-width: 1.5; }
.cg-title { margin-top: 2px; }
.cg { margin-top: 4px; }
.cg-bar { fill: rgba(108, 184, 255, .55); }
.cg-line { fill: none; stroke: var(--temp); stroke-width: 2.4; stroke-linejoin: round; }
.cg-dot { fill: var(--temp); }
.cg-now { fill: rgba(255, 255, 255, .06); }
.cg-zero { stroke: rgba(238, 242, 248, .3); stroke-dasharray: 3 3; }
.cg-t { fill: var(--temp); font-size: 10.5px; opacity: .85; }
.cg-p { fill: var(--dew); font-size: 10.5px; opacity: .85; }
.stop-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stop-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raise); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.stop-chip:hover { background: var(--raise-2); color: var(--text); }
.stop-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 12px; }
.stop-chip.is-seen .stop-n { background: color-mix(in oklab, var(--c) 25%, transparent); color: var(--c); }
.stop-chip.is-on { border-color: var(--c); color: var(--text); background: color-mix(in oklab, var(--c) 12%, transparent); }
.stop-chip.is-on .stop-n { background: var(--c); color: #06101d; }
.stop { margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: linear-gradient(160deg, color-mix(in oklab, var(--c) 9%, transparent), var(--raise) 60%); border: 1px solid var(--line); }
.stop-kicker { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.stop-name { margin-top: 6px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.stop-region { font-size: 14px; color: var(--text-3); }
.stop-zone { display: inline-flex; margin-top: 10px; height: 26px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: #06101d; background: var(--z); }
.stop > p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.stop-fact { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.stop-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.stop-nav .btn { min-height: 40px; font-size: 14px; }

/* Hadley cells */
.hc-loop { fill: none; stroke: rgba(238, 242, 248, .55); stroke-width: 1.8; stroke-linejoin: round; }
.hc-head { fill: rgba(238, 242, 248, .8); }
.hc-cloud { fill: rgba(232, 238, 247, .85); }
.hc-anvil { fill: none; stroke: rgba(232, 238, 247, .85); stroke-width: 5; stroke-linecap: round; }
.hc-rain { fill: none; stroke: var(--dew); stroke-width: 2.2; }
.hc-mark { stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 3 3; }
.hc-dot { fill: var(--c); stroke: #0b111d; stroke-width: 1.5; }

/* The vapour widget (key idea) */
.vapour { margin-top: 14px; padding: 6px 16px 16px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.vp-big { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.vp-num { font-size: 40px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--c); }
.vp-lab { font-size: 14px; color: var(--text-2); }
.vp-bars { margin-top: 10px; display: grid; gap: 10px; }
.vp-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13.5px; color: var(--text-2); transition: opacity .3s; }
.vp-row b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.vp-row.is-off { opacity: .4; }
.vp-bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.vp-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px; transition: width .15s; }
.vp-cap::after { background: rgba(255, 255, 255, .35); }
.vp-vap::after { background: var(--dew); }
.vp-drop::after { background: var(--fog); }
.vp-note { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text); }

/* Predict choices */
.choices { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 104px;
  padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--raise);
  text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.choice:hover { background: var(--raise-2); }
.choice.is-picked { border-color: var(--amber); background: rgba(255, 196, 107, .1); }
.choice-ic { display: flex; gap: 6px; color: var(--text-2); }
.choice.is-picked .choice-ic { color: var(--amber); }
.choice-label { font-size: 15px; font-weight: 600; line-height: 1.35; }

/* Lab controls in the rail */
.ctl { margin-top: 10px; }
.presets { margin-top: 16px; }
.preset-row { margin-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preset {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--raise); color: var(--text-2);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.preset .ic { display: inline-block; }
.preset:hover { background: var(--raise-2); color: var(--text); }
.preset.is-on { border-color: var(--mint); background: rgba(86, 220, 174, .12); color: var(--text); }
.preset span { line-height: 1.2; text-align: center; }
.result { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.result p:last-child { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--raise); }
.task-mark { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-2); color: #06101d; }
.task.is-done .task-mark { background: var(--mint); border-color: var(--mint); }
.task-text { font-size: 14.5px; font-weight: 550; line-height: 1.4; }
.task.is-done .task-text { color: var(--text-2); }
.task-note { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--mint); }

/* Explain */
.causes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.cause { display: grid; grid-template-columns: 52px 1fr; gap: 14px; }
.cause-art { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in oklab, var(--c) 11%, transparent); border: 1px solid color-mix(in oklab, var(--c) 18%, transparent); }
.cause h3 { font-size: 16px; font-weight: 650; line-height: 1.35; }
.cause p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kinds li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.kinds strong { color: var(--text); }

/* Quiz */
.qz + .qz { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.qz-kicker { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.qz-q { margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.qz-opts { margin-top: 12px; display: grid; gap: 7px; }
.qz-opt {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--raise);
  text-align: left; font-size: 15px; line-height: 1.35; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s;
}
.qz-opt:not(:disabled):hover { background: var(--raise-2); border-color: rgba(255, 255, 255, .25); }
.qz-opt:disabled { cursor: default; }
.qz-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); }
.qz-opt.is-correct { border-color: var(--good); background: rgba(86, 220, 174, .1); color: var(--text); }
.qz-opt.is-correct .ic { color: var(--good); }
.qz-opt.is-wrong { border-color: var(--bad); background: rgba(255, 143, 126, .1); }
.qz-opt.is-wrong .ic { color: var(--bad); }
.qz-opt.is-dim { opacity: .5; }
.qz-explain { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.qz-explain.is-correct strong { color: var(--good); }
.qz-explain.is-wrong strong { color: var(--bad); }
.score { margin-top: 24px; padding: 14px 16px; border-radius: var(--r-md); background: color-mix(in oklab, var(--c) 12%, transparent); font-weight: 600; font-size: 16px; }

/* Done */
.done-badge { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: #06101d; background: linear-gradient(160deg, var(--sky), var(--mint)); box-shadow: 0 12px 40px -10px rgba(86, 220, 174, .6); }
.done-score { margin-top: 18px; font-size: 18px; font-weight: 600; }
.done-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.done-actions .btn-primary { --c: var(--sky); }

.ls-nav { grid-area: nav; display: flex; justify-content: space-between; gap: 10px; padding: 14px 26px 18px; border-top: 1px solid var(--line); background: var(--rail-bg); }

/* The stage's tools */
.ls-tools { grid-area: tools; display: flex; align-items: flex-end; gap: 14px; padding: 0 18px 18px; pointer-events: none; min-width: 0; }
.ls-tools > * { pointer-events: auto; }
.lesson:not(.has-tools) .ls-tools { display: none; }
.panel {
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
}
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 14px 0; }
.panel-title { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.panel-note { padding: 0 14px 12px; font-size: 13px; line-height: 1.45; color: var(--text-2); max-width: 340px; }
.pf-card { flex: none; width: 340px; }
.pf-wrap { padding: 4px 8px 6px; }

.pf { display: block; width: 100%; height: auto; font-family: var(--font); }
.pf-grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.pf-axis { stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.pf-tick { fill: var(--text-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pf-temp { fill: none; stroke: var(--temp); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.pf-dew { fill: none; stroke: var(--dew); stroke-width: 2.4; stroke-dasharray: 6 4; stroke-linejoin: round; }
.pf-dot-temp { fill: var(--temp); stroke: #0b111d; stroke-width: 2; }
.pf-dot-dew { fill: var(--dew); stroke: #0b111d; stroke-width: 2; }
.pf-fog { fill: rgba(230, 237, 247, .16); }
.pf-fog-top { stroke: rgba(230, 237, 247, .5); stroke-dasharray: 3 3; }
.pf-fog-label { fill: var(--fog); font-size: 11px; font-weight: 600; }
.pf-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-2); }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg i { display: inline-block; width: 14px; height: 0; border-top: 2.5px solid; }
.lg-temp i { border-color: var(--temp); }
.lg-dew i { border-color: var(--dew); border-top-style: dashed; }
.lg-fog i { width: 12px; height: 10px; border: 0; border-radius: 2px; background: rgba(230, 237, 247, .3); }

.dock { flex: 1; min-width: 0; max-width: 760px; padding: 12px 14px 12px; }
.readouts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 0 2px 10px; }
.ro { display: flex; flex-direction: column; line-height: 1.2; }
.ro-lab { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.ro-val { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-clock { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ro-temp { color: var(--temp); }
.ro-dew { color: var(--dew); }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 650; background: rgba(255, 255, 255, .08); color: var(--text-2); }
.chip-haze { background: rgba(108, 184, 255, .14); color: var(--blue); }
.chip-mist { background: rgba(230, 237, 247, .16); color: var(--fog); }
.chip-fog { background: var(--fog); color: #0b111d; }
.chip-thermals { background: rgba(255, 154, 107, .16); color: var(--temp); }
.chip-cumulus { background: rgba(230, 237, 247, .2); color: var(--fog); }
.chip-towering { background: var(--fog); color: #0b111d; }
.chip-bow, .chip-both { background: linear-gradient(90deg, rgba(255, 106, 90, .3), rgba(255, 214, 74, .3), rgba(91, 227, 122, .3), rgba(90, 168, 255, .3)); color: var(--text); }
.chip-halo { background: rgba(143, 211, 255, .2); color: var(--sky); }
.chip-none { background: rgba(255, 255, 255, .08); color: var(--text-2); }
.chip-cb { background: rgba(230, 237, 247, .85); color: #0b111d; }
.chip-storm { background: var(--violet); color: #120a26; }
.chip-decay { background: rgba(179, 155, 255, .25); color: var(--violet); }
.chip-after { background: rgba(255, 196, 107, .18); color: var(--amber); }
.chip-overhead { background: #56dc8c; color: #062012; }
.chip-low { background: rgba(86, 220, 140, .22); color: #7fe8a8; }
.chip-bright { background: rgba(255, 196, 107, .18); color: var(--amber); }
.chip-cloudy { background: rgba(230, 237, 247, .16); color: var(--fog); }
.chip-up { background: rgba(255, 196, 107, .2); color: var(--amber); }
.chip-down { background: rgba(108, 140, 220, .2); color: #a9bdf0; }
.chip-midnight { background: var(--amber); color: #1a1206; }
.chip-polar { background: #2a3a6a; color: #c9d6ff; }

.tl { display: flex; align-items: center; gap: 12px; }
.tl-play {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--mint); color: #06101d; cursor: pointer; box-shadow: 0 6px 20px -6px rgba(86, 220, 174, .6);
}
.tl-play:hover { filter: brightness(1.08); }
.tl-track { position: relative; flex: 1; min-width: 0; height: 78px; border-radius: 10px; background: rgba(255, 255, 255, .04); cursor: ew-resize; touch-action: none; }
.tl-track:focus-visible { outline-offset: 2px; }
.tl-chart { position: absolute; left: 0; right: 0; top: 0; height: 60px; width: 100%; }
.tl-night { fill: rgba(0, 0, 0, .28); }
.tl-mist { fill: rgba(230, 237, 247, .1); }
.tl-fog { fill: rgba(230, 237, 247, .24); }
.tl-cloud { fill: rgba(230, 237, 247, .18); }
.tl-tower { fill: rgba(230, 237, 247, .32); }
.tl-storm { fill: rgba(179, 155, 255, .35); }
.tl-aurora { fill: rgba(86, 220, 140, .3); }
.tl-temp { fill: none; stroke: var(--temp); stroke-width: 2; }
.tl-dew { fill: none; stroke: var(--dew); stroke-width: 2; stroke-dasharray: 5 4; }
.tl-sunline { fill: none; stroke: var(--amber); stroke-width: 2; }
.tl-guide { fill: none; stroke: rgba(238, 242, 248, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.tl-bow { fill: rgba(195, 139, 255, .2); }
.tl-halo { fill: rgba(143, 211, 255, .2); }
.tl-both { fill: rgba(195, 139, 255, .32); }
.tl-marks { position: absolute; inset: 0; pointer-events: none; }
.tl-hour { position: absolute; bottom: 2px; transform: translateX(-50%); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-sun { position: absolute; top: 3px; transform: translateX(-50%); color: var(--amber); opacity: .9; }
.tl-cursor { position: absolute; top: 0; bottom: 16px; width: 0; border-left: 2px solid #fff; transform: translateX(-1px); pointer-events: none; }
.tl-cursor span { position: absolute; left: -7px; bottom: -7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(86, 220, 174, .5); }

/* ===== Narrower screens ===== */
@media (max-width: 1180px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .pf-card { width: 270px; }
  .ls-tools { gap: 10px; padding: 0 12px 12px; }
  .readouts { gap: 6px 16px; }
}
@media (max-width: 960px) {
  .units { grid-template-columns: 1fr; }
  .cover-cap { left: var(--gutter); right: auto; }
  /* The lesson: the stage on top, the rail below it as a sheet that scrolls. */
  .in-lesson #scene, .in-lesson .scene-fallback { width: 100vw; height: calc(var(--stage-h) + 22px); }
  .in-lesson .scene-shade { right: 0; bottom: auto; height: calc(var(--stage-h) + 22px); }
  .lesson {
    top: var(--stage-h);
    display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--rail-bg); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-2);
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .6);
    pointer-events: auto;
  }
  .lesson::before { display: none; }
  .ls-mark { left: 14px; top: 12px; }
  .ls-head { padding: 14px 18px 12px; }
  .ls-title { font-size: 21px; margin-top: 6px; }
  .ls-body { overflow: visible; padding: 18px 18px 8px; }
  .ls-tools { order: 1; flex-direction: column; align-items: stretch; padding: 12px 12px 0; }
  .ls-head { order: 0; }
  .ls-body { order: 2; }
  .ls-nav { order: 3; }
  .pf-card { width: auto; }
  .panel { background: rgba(255, 255, 255, .04); backdrop-filter: none; box-shadow: none; }
  .panel-note { max-width: none; }
  .dock { order: -1; max-width: none; }
  .ls-nav { position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .step-title { font-size: 23px; }
}
@media (max-width: 640px) {
  .how-steps { grid-template-columns: 1fr 1fr; }
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .scene-shade { background: linear-gradient(0deg, rgba(7, 11, 20, .78) 0%, rgba(7, 11, 20, .35) 45%, rgba(7, 11, 20, 0) 70%); }
  .top-link span { display: none; }
  .lr { grid-template-columns: 34px 1fr; }
  .lr-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .ls-progress span { display: none; }
  .ls-progress li.is-current span { display: block; overflow: visible; }
  .ro-clock { font-size: 22px; }
  .ro-val { font-size: 15px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choice { min-height: 96px; }
  .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Rain shadow: the cross-section over a mountain range */
.fo-sea { fill: rgba(108, 184, 255, .16); }
.fo-wet { fill: rgba(63, 207, 122, .2); }
.fo-dry { fill: rgba(255, 180, 94, .2); }
.fo-ridge { fill: none; stroke: rgba(238, 242, 248, .5); stroke-width: 1.5; stroke-linejoin: round; }
.fo-air { fill: none; stroke: rgba(238, 242, 248, .75); stroke-width: 1.6; stroke-dasharray: 5 4; }
.fo-cloud circle { fill: rgba(232, 238, 247, .9); }
.fo-rain line { stroke: var(--dew); stroke-width: 1.5; stroke-linecap: round; opacity: .85; }
.fo-badge rect { fill: rgba(11, 17, 29, .88); stroke: rgba(255, 154, 107, .55); stroke-width: 1; }
.fo-badge text { fill: var(--temp); font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.fo-badge.is-top rect { stroke: rgba(108, 184, 255, .6); }
.fo-badge.is-top text { fill: var(--dew); }
.fo-badge.is-warm rect { fill: rgba(255, 154, 107, .22); stroke: var(--temp); }
.fo-side { fill: #3fcf7a; font-size: 10.5px; font-weight: 650; }
.fo-side.is-dry { fill: #ffb45e; }

/* Snowlines: the mountain and the pole-to-pole chart */
.sn-rock { fill: rgba(179, 155, 255, .16); stroke: rgba(238, 242, 248, .45); stroke-width: 1.4; stroke-linejoin: round; }
.sn-snow { fill: #eef3fa; }
.sn-freeze { stroke: var(--dew); stroke-width: 1.4; stroke-dasharray: 4 4; }
.sn-freeze-label { fill: var(--dew); font-size: 10.5px; font-weight: 600; }
.sn-line { stroke: var(--violet); stroke-width: 2; }
.sn-line-label { fill: var(--violet); font-size: 11px; font-weight: 650; }
.sc-rock { fill: rgba(238, 242, 248, .1); stroke: rgba(238, 242, 248, .35); stroke-width: 1.2; stroke-linejoin: round; }
.sc-rock.is-here { fill: rgba(86, 220, 174, .18); stroke: var(--mint); stroke-width: 1.6; }
.sc-snow { fill: #eef3fa; }
.sc-curve { fill: none; stroke: var(--violet); stroke-width: 2; stroke-dasharray: 5 3; }
.sc-curve-label { fill: var(--violet); font-size: 10.5px; font-weight: 600; }
.sc-here { stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; }
.sc-label { fill: var(--mint); font-size: 11px; font-weight: 650; }
.sn-freeze-label, .sn-line-label, .fo .pc-base-label { paint-order: stroke; stroke: rgba(11, 17, 29, .85); stroke-width: 3px; stroke-linejoin: round; }
.lg.lg-cur-w i { border-color: #ff8a5c; border-top-width: 3px; } .lg.lg-cur-c i { border-color: #5fb4ff; border-top-width: 3px; }

/* ===== Phase 4: topic of the day, mixed quiz, notebook ===== */
.top-link { text-decoration: none; }
.top-link.is-on { color: var(--text); background: rgba(255, 255, 255, .09); }

.today {
  margin-top: 28px; max-width: 460px; padding: 14px 16px 14px; border-radius: 18px;
  background: rgba(10, 14, 25, .55); border: 1px solid var(--line-2); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 50px -26px rgba(0, 0, 0, .8);
}
.today:empty { display: none; }
.today-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.today-kicker { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.today-kicker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-loc { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text-2); font-size: 12.5px; font-weight: 550; cursor: pointer; }
.today-loc:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.today-loc:disabled { opacity: .6; cursor: progress; }
.today-now { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.today-now strong { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.today-now .ic { color: var(--sky); }
.today-now.is-wait { color: var(--text-3); }
.today-pick {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in oklab, var(--u) 10%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in oklab, var(--u) 35%, transparent);
  text-decoration: none; transition: background .2s;
}
.today-pick:hover { background: color-mix(in oklab, var(--u) 18%, rgba(255, 255, 255, .03)); }
.today-label { grid-column: 1; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--u); }
.today-title { grid-column: 1; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.today-why { grid-column: 1; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.today-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; background: var(--u); color: #06101d; font-size: 13.5px; font-weight: 650; }
.today-note { margin-top: 8px; font-size: 13px; color: var(--amber); }

.practice { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.practice-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--raise); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .2s;
}
.practice-card:hover { background: var(--raise-2); }
.practice-card > .ic { color: var(--text-3); }
.practice-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--u); background: color-mix(in oklab, var(--u) 15%, transparent); }
.practice-title { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.practice-text { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); line-height: 1.4; }

.review .ls-code { display: inline-flex; color: var(--c); }
.rv-progress li.is-right i { background: var(--mint); }
.rv-progress li.is-miss i { background: #ff6b5e; }
.rv-modes { grid-template-columns: 1fr; }
.rv-modes .choice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 0; padding: 14px 16px; }
.rv-modes .choice.is-picked { border-color: var(--c); background: color-mix(in oklab, var(--c) 12%, transparent); }
.rv-modes .choice.is-picked .choice-ic { color: var(--c); }
.rv-modes .choice:disabled { opacity: .45; cursor: not-allowed; }
.rv-count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rv-modes + .ls-note { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.rv-topic { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: color-mix(in oklab, var(--u) 12%, transparent); border: 1px solid color-mix(in oklab, var(--u) 35%, transparent); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.rv-topic i { width: 7px; height: 7px; border-radius: 50%; background: var(--u); }
.rv-topic:hover { background: color-mix(in oklab, var(--u) 22%, transparent); }
.rv-again { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-again .rv-topic { margin-bottom: 0; }

.notebook { position: relative; z-index: 1; }
.nb { min-height: 100dvh; padding: 110px var(--gutter) 40px; background: linear-gradient(rgba(7, 11, 20, .55), rgba(7, 11, 20, .9) 260px, var(--bg) 520px); }
.nb-inner { max-width: 1240px; margin: 0 auto; }
.nb-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.nb-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.nb-stat-ic { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--mint); background: rgba(86, 220, 174, .12); }
.nb-stat-val { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nb-stat-lab { font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.nb-h { display: flex; align-items: center; gap: 10px; margin-top: 44px; font-size: 22px; font-weight: 650; letter-spacing: -.018em; }
.nb-h .ic { color: var(--mint); }
.nb-sub { margin-top: 6px; color: var(--text-2); font-size: 15px; max-width: 46em; }
.sights { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sight { display: flex; flex-direction: column; padding: 14px 16px 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); color: var(--u); }
.sight:not(.is-made):not(.is-seen) .sight-art { opacity: .45; filter: grayscale(.6); }
.sight.is-made { border-color: color-mix(in oklab, var(--u) 40%, transparent); }
.sight-top { display: flex; align-items: center; gap: 12px; }
.sight-art { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in oklab, var(--u) 12%, transparent); }
.sight-name { font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.sight-look { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); flex: 1; }
.sight-status { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.nb-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.nb-chip:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.nb-chip.is-on { color: #06101d; background: var(--mint); border-color: var(--mint); }
.sight-log { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.nb-places { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.nb-globe { padding: 8px; }
.nb-globe .globe-box { height: 300px; }
.nb-trips { display: flex; flex-direction: column; gap: 8px; }
.nb-trip { display: grid; grid-template-columns: 1fr 120px 44px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 600; }
.nb-trip:hover { background: var(--raise-2); }
.nb-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.nb-bar i { display: block; height: 100%; border-radius: 6px; background: var(--u); }
.nb-trip-n { text-align: right; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.nb-units { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.nb-unit { padding: 12px 8px 8px; border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line); }
.nb-unit .unit-n { padding: 0 10px 6px; }
.nb-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14.5px; }
.nb-row:hover { background: var(--raise-2); }
.nb-row-title { font-weight: 600; min-width: 0; }
.nb-row-found { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nb-row-state { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.nb-row.is-done .nb-row-state { color: var(--mint); }
.nb-foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.nb-foot .btn-primary { --c: var(--sky); }
.nb-private { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.nb-clear { margin-left: auto; border: 0; background: none; color: var(--text-3); font-size: 13px; text-decoration: underline; cursor: pointer; }
.nb-clear:hover { color: #ff8f7e; }
@media (max-width: 1180px) {
  .nb-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .practice, .nb-units, .nb-places { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nb { padding-top: 84px; }
  .nb-stats { grid-template-columns: 1fr 1fr; }
  .today { margin-top: 20px; padding: 12px 14px; }
  .today-pick { grid-template-columns: 1fr; }
  .today-go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .nb-row { grid-template-columns: 36px 1fr auto; }
  .nb-row-found { display: none; }
  .nb-trip { grid-template-columns: 1fr 70px 40px; }
}
.top-nav { display: flex; align-items: center; gap: 2px; }
.brand-name { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar { gap: 10px; }
  .top-link { padding: 0 11px; }
}
@media (max-width: 480px) {
  .brand-name { display: none; }
}

/* ===== Presentation mode: the rail's text and the diagrams grow with the screen ===== */
.ls-present {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text-2); cursor: pointer;
}
.ls-present:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.ls-present .pr-off { display: none; }
.presenting .ls-present .pr-on { display: none; }
.presenting .ls-present .pr-off { display: contents; }
.presenting { --rail: calc(clamp(380px, 33vw, 470px) * var(--pz, 1)); }
.presenting .ls-head, .presenting .ls-body, .presenting .ls-nav { zoom: var(--pz, 1); }
.presenting .ls-tools > .panel:not(:has(.globe-box)) { zoom: var(--pz, 1); }
.presenting .pf-card:has(.globe-box) { width: calc(340px * var(--pz, 1)); }
.presenting .pf-card .globe-box { height: calc(214px * var(--pz, 1)); }
.presenting .ls-mark { opacity: .5; }
.presenting.pr-idle, .presenting.pr-idle * { cursor: none !important; }
.pr-hint {
  position: fixed; z-index: 40; bottom: 26px; left: calc((100vw - var(--rail)) / 2); transform: translateX(-50%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; max-width: min(860px, calc(100vw - var(--rail) - 40px));
  padding: 12px 18px; border-radius: 16px; background: rgba(10, 14, 25, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
  font-size: 15px; color: var(--text-2); animation: rise .35s var(--ease) both;
}
.pr-hint[hidden] { display: none; }
.pr-hint span { display: inline-flex; align-items: center; gap: 7px; }
.pr-hint .pr-title { color: var(--text); font-weight: 650; }
.pr-hint kbd { min-width: 28px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08); color: var(--text); font: 600 13px/1.3 var(--font); text-align: center; }
@media (max-width: 960px) {
  .ls-present { display: none; }
}

/* ===== A changing climate ===== */
.chip-hot { background: rgba(255, 107, 94, .2); color: #ff8f7e; }
.bu-band { fill: #ff9a6b; }
.bu-mol circle { fill: rgba(255, 196, 160, .75); }
.bu-sun { stroke: var(--amber); stroke-width: 7; stroke-linecap: round; opacity: .9; }
.bu-refl { stroke: var(--amber); stroke-width: 2.4; stroke-dasharray: 5 4; opacity: .8; }
.bu-head-s { fill: var(--amber); }
.bu-head-i { fill: var(--temp); }
.bu-ir { fill: none; stroke: var(--temp); stroke-linecap: round; }
.bu-label { fill: var(--text-2); font-size: 10.5px; font-weight: 600; }
.bu-label.is-sun { fill: var(--amber); }
.bu-ground { fill: #fff; font-size: 13px; font-weight: 650; paint-order: stroke; stroke: rgba(11, 17, 29, .35); stroke-width: 2px; }
.st-pick { fill: none; stroke: var(--text); stroke-width: 1.6; }
.st-2024 { fill: #a50f15; stroke: #fff; stroke-width: 1.5; }
.fi-ice { fill: #eef3fa; stroke: rgba(108, 184, 255, .7); stroke-width: .8; stroke-linejoin: round; }
.fi-open { fill: rgba(108, 184, 255, .08); stroke: rgba(108, 184, 255, .55); stroke-width: .8; stroke-dasharray: 2 2; stroke-linejoin: round; }
.fi-label { fill: var(--text-2); font-size: 10.5px; }
.al-sea { fill: #123a5c; }
.al-ice { fill: #eef3fa; }
.al-ray { stroke: var(--amber); stroke-width: 1.6; opacity: .75; }
.al-ray.is-back { stroke-dasharray: 3 3; opacity: .9; }
.al-heat { fill: var(--temp); opacity: .55; }
.al-label { fill: #0b111d; font-size: 11px; font-weight: 650; }
.al-label.is-sea { fill: var(--temp); }

/* ===== The cloud atlas ===== */
.at-card { width: 360px; }
.at-type { cursor: pointer; }
.at-type:focus { outline: none; }
.at-type:focus-visible .at-abbr, .at-type:hover .at-abbr { fill: var(--text); }
.at-cloud circle, .at-cloud ellipse, .at-cloud rect, .at-cloud path, .at-cloud.is-small circle, g.at-cloud > * { fill: rgba(232, 238, 247, .82); }
.at-cloud.is-grey, .at-cloud.is-grey > *, .at-type .is-grey { fill: rgba(176, 188, 204, .8); }
.at-cloud.is-dark { fill: rgba(130, 142, 160, .85); }
.at-wisp { fill: none; stroke: rgba(238, 242, 248, .85); stroke-width: 1.8; stroke-linecap: round; }
.at-veil { fill: rgba(238, 242, 248, .3); }
.at-rain { stroke: var(--dew); stroke-width: 1.2; opacity: .7; }
.at-level { stroke: rgba(255, 255, 255, .18); stroke-dasharray: 3 4; }
.at-abbr { fill: var(--text-2); font-size: 11px; font-weight: 650; paint-order: stroke; stroke: rgba(11, 17, 29, .85); stroke-width: 3px; }
.at-type.is-dim { opacity: .38; }
.at-type.is-sel .at-abbr { fill: var(--mint); font-size: 12px; }
.at-type.is-sel .at-wisp { stroke: #fff; stroke-width: 2.4; }
.at-type.is-sel > g > * { filter: drop-shadow(0 0 4px rgba(86, 220, 174, .7)); }
.at-heights { padding: 0 14px; font-size: 11.5px; color: var(--text-3); }
.at-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 10px 14px 0; }
.at-chip { min-height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font-size: 12.5px; font-weight: 650; cursor: pointer; }
.at-chip:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.at-chip.is-on { color: #06101d; background: var(--mint); border-color: var(--mint); }
.at-info { padding: 10px 14px 14px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.at-info p + p { margin-top: 6px; }
.at-name { color: var(--text); font-size: 15px; font-weight: 650; }
.at-name span { color: var(--text-3); font-size: 12px; font-weight: 500; }
.at-means { display: flex; gap: 7px; align-items: flex-start; color: var(--text); }
.at-means .ic { color: var(--amber); flex: none; margin-top: 2px; }
.at-note { font-size: 12.5px; color: var(--text-3); font-style: italic; }
.g-bar { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.g-score { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .at-card { width: auto; } }

/* ===== Fronts and lows ===== */
.fr-sea { fill: #0d1f33; }
.fr-land { fill: #1c2c22; }
.fr-shield { fill: rgba(220, 228, 240, .16); }
.fr-isobar { fill: none; stroke: rgba(238, 242, 248, .3); stroke-width: 1; }
.fr-wf { fill: none; stroke: #ff6b5e; stroke-width: 2.2; stroke-linejoin: round; }
.fr-cf { fill: none; stroke: #5fb4ff; stroke-width: 2.2; stroke-linejoin: round; }
.fr-wsym { fill: #ff6b5e; }
.fr-csym { fill: #5fb4ff; }
.fr-low { fill: #ff6b5e; font-size: 15px; font-weight: 750; }
.fr-track { stroke: rgba(238, 242, 248, .25); stroke-dasharray: 4 5; }
.fr-me { fill: var(--mint); stroke: #0b111d; stroke-width: 1.2; }
.fr-me-label { fill: var(--mint); font-size: 11px; font-weight: 650; paint-order: stroke; stroke: rgba(11, 17, 29, .85); stroke-width: 3px; }
.fr-air { fill: rgba(255, 154, 107, .1); }
.fr-coldair { fill: rgba(108, 184, 255, .2); }
.fr-cloud { fill: rgba(232, 238, 247, .85); }
.fr-cloud.is-dark { fill: rgba(140, 150, 166, .92); }
.fr-cloud.is-grey { fill: rgba(190, 200, 214, .85); }
.fr-cloud.is-veil { fill: rgba(238, 242, 248, .45); }
.fr-cloud.is-tall { fill: rgba(200, 208, 222, .9); }
.fr-wisp { fill: none; stroke: rgba(238, 242, 248, .85); stroke-width: 1.6; stroke-linecap: round; }
.fr-rain { stroke: var(--dew); stroke-width: 1; opacity: .7; }
.fr-rain.is-heavy { stroke-width: 1.6; opacity: .9; }
.fr-mass { fill: #9fcfff; font-size: 10.5px; font-weight: 650; paint-order: stroke; stroke: rgba(11, 17, 29, .7); stroke-width: 3px; }
.fr-mass.is-warm { fill: var(--temp); }

/* ===== Hurricanes ===== */
.hu-air { fill: rgba(108, 140, 190, .1); }
.hu-cloud { fill: rgba(220, 228, 240, .82); }
.hu-cloud.is-wall { fill: rgba(200, 210, 224, .95); }
.hu-cloud.is-small { fill: rgba(230, 236, 246, .7); }
.hu-out { fill: rgba(238, 242, 248, .55); }
.hu-eyeair { fill: rgba(108, 184, 255, .12); }
.hu-rain { stroke: var(--dew); stroke-width: 1; opacity: .75; }
.hu-head { fill: rgba(238, 242, 248, .85); }
.hu-flow, .hu-up, .hu-down { stroke: rgba(238, 242, 248, .8); stroke-width: 1.6; fill: none; }
.hu-up { stroke: var(--temp); }
.hu-down { stroke: var(--dew); stroke-dasharray: 3 3; }
.hu-label { fill: var(--text-2); font-size: 10.5px; font-weight: 650; paint-order: stroke; stroke: rgba(11, 17, 29, .8); stroke-width: 3px; }
.hu-label.is-hi { fill: var(--mint); font-size: 11.5px; }
.hu .is-dim { opacity: .35; }
.hu .is-hi .hu-cloud, .hu .hu-out.is-hi, .hu .is-hi .hu-eyeair { stroke: var(--mint); stroke-width: 1.6; }
.hu-island { fill: #c9b27a; stroke: #0b111d; stroke-width: 1; }
.hu-place { fill: var(--mint); font-size: 10.5px; font-weight: 650; }
@media (max-width: 960px) {
  .lesson.tools-after .ls-body { order: 1; }
  .lesson.tools-after .ls-tools { order: 2; }
}

/* ===== Sunsets, ice light, forecasting, extremes ===== */
.sc-v { fill: var(--text); font-size: 11px; font-weight: 650; }
.pa-air { fill: rgba(108, 160, 255, .35); }
.pa-earth { fill: #16261c; }
.pa-you { fill: var(--mint); stroke: #0b111d; stroke-width: 1.2; }
.pa-label { fill: var(--mint); font-size: 11px; font-weight: 650; }
.pa-track { fill: rgba(255, 255, 255, .08); }
.cr-head { fill: var(--amber); }
.cr-ice { fill: rgba(200, 228, 255, .28); stroke: rgba(220, 238, 255, .9); stroke-width: 1.4; stroke-linejoin: round; }
.cr-ice.is-small { stroke-width: 1; }
.cr-ray { stroke: var(--amber); stroke-width: 2; fill: none; }
.cr-ray.is-in { stroke-dasharray: 4 3; }
.cr-ray.is-out { stroke: #ff8a6b; }
.cr-straight { stroke: rgba(238, 242, 248, .35); stroke-dasharray: 3 4; fill: none; }
.cr-angle { stroke: var(--mint); stroke-width: 1.6; fill: none; }
.cr-label { fill: var(--text-2); font-size: 10.5px; font-weight: 600; }
.cr-label.is-hi { fill: var(--mint); font-size: 12px; }
.cr-post { fill: #5a6270; }
.cr-lamp { fill: #ffd27a; }
.cr-pillar { fill: rgba(255, 210, 122, .35); }
.cr-eye { fill: var(--mint); }
.cr-glint { stroke: #fff; stroke-width: 1.2; opacity: .85; }
.cr-strip { fill: rgba(255, 255, 255, .08); }
.cr-strip.is-on { fill: rgba(108, 184, 255, .45); }
.cr-mark { fill: var(--temp); }
.tl-strato { fill: rgba(179, 155, 255, .14); }
.bl-ozone { fill: rgba(179, 155, 255, .09); }
.bl-cloud { fill: rgba(232, 238, 247, .22); }
.bl-tropo { stroke: var(--violet); stroke-width: 1.4; stroke-dasharray: 5 4; }
.bl-note { fill: var(--text-3); font-size: 10px; font-weight: 600; }
.bl-note.is-tropo { fill: var(--violet); }
.bl-note.is-hi { fill: var(--temp); font-size: 11.5px; }
.bl-plane { fill: var(--text-2); }
.bl-faint { fill: none; stroke: rgba(238, 242, 248, .15); stroke-width: 1.2; }
.bl-balloon { fill: rgba(238, 242, 248, .9); stroke: rgba(11, 17, 29, .5); }
.bl-string { stroke: rgba(238, 242, 248, .6); }
.bl-sonde { fill: var(--amber); }
.bl-burst { fill: var(--temp); }
.bl-wind { stroke: var(--dew); stroke-width: 2; fill: none; }
.gm-card { width: 360px; }
.gm-frame { fill: none; stroke: rgba(255, 255, 255, .2); }
.gm-town { fill: #fff; stroke: #0b111d; stroke-width: 1.2; }
.gm-label { fill: #fff; font-size: 11px; font-weight: 650; paint-order: stroke; stroke: rgba(11, 17, 29, .85); stroke-width: 3px; }
.gm-scale { stroke: var(--text-2); stroke-width: 2; }
.pl-member { fill: none; stroke: rgba(255, 126, 182, .45); stroke-width: 1; }
.pl-control { fill: none; stroke: #fff; stroke-width: 1.8; }
.pl-cursor { stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pl-rain { fill: var(--dew); }
.fc-past { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(86, 220, 174, .08); border: 1px solid rgba(86, 220, 174, .3); font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.fc-past p + p { margin-top: 6px; }
.fc-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.fc-score { color: var(--mint); font-weight: 600; }
.fc-guess { margin-top: 16px; }
.fc-rain { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.fc-go { margin-top: 14px; }
.fc-compare { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-compare > div { padding: 12px 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.fc-big { font-size: 26px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.bc-then { fill: none; stroke: rgba(238, 242, 248, .55); stroke-width: 1.6; stroke-dasharray: 4 3; }
.bc-now { fill: rgba(255, 138, 92, .14); stroke: #ff8a5c; stroke-width: 2; }
.bc-tail0 { fill: rgba(238, 242, 248, .2); }
.bc-tail { fill: rgba(255, 90, 70, .55); }
.bc-line { stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 3 3; }
.bc-label { fill: var(--amber); font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: rgba(11, 17, 29, .8); stroke-width: 3px; }
.bc-label.is-then { fill: var(--text-2); }
.bc-label.is-now { fill: #ff8a5c; }
.bc-label.is-rec { fill: #ff6b5e; }
.bc-record { stroke: #ff6b5e; stroke-width: 1.4; }
.bc-dot { fill: #ff6b5e; stroke: #0b111d; stroke-width: 1.2; }
.bc-vap { fill: none; stroke: var(--dew); stroke-width: 2.2; }
.bc-vapfill { fill: rgba(108, 184, 255, .15); }
@media (max-width: 960px) { .gm-card { width: auto; } }
.pa-noon { stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-dasharray: 3 3; }
.hc-zone { fill: transparent; cursor: pointer; }
.hc-zone:hover { fill: rgba(86, 220, 174, .12); }
.hu [data-hit] { cursor: pointer; }
.hu [data-hit]:hover .hu-cloud, .hu [data-hit].hu-out:hover, .hu [data-hit]:hover .hu-eyeair { stroke: var(--mint); stroke-width: 1.4; }

/* ===== Quiz: new question kinds and results by part ===== */
.rv-topic.is-pic { gap: 6px; }
.rv-order { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-order li { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raise); font-size: 15px; }
.rv-order li.is-empty { border-style: dashed; background: none; }
.rv-order li.is-right { border-color: rgba(86, 220, 174, .6); background: rgba(86, 220, 174, .1); }
.rv-order li.is-miss { border-color: rgba(255, 107, 94, .5); background: rgba(255, 107, 94, .08); }
.rv-order li .ic { margin-left: auto; color: var(--mint); }
.rv-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.rv-was { margin-left: auto; font-size: 12.5px; color: #ff8f7e; }
.rv-pool { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.rv-item { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--c); background: color-mix(in oklab, var(--c) 12%, transparent); color: var(--text); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.rv-item:hover { background: color-mix(in oklab, var(--c) 22%, transparent); }
.rv-undo { margin-top: 12px; }
.rv-hint { margin-top: 10px; font-size: 13.5px; color: var(--text-3); }
.rv-est { margin-top: 16px; }
.rv-est-val { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.02em; color: var(--c); font-variant-numeric: tabular-nums; }
.rv-range { width: 100%; margin-top: 8px; accent-color: var(--c); }
.rv-lock { margin-top: 16px; }
.rv-scale { position: relative; margin: 44px 6px 6px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.rv-band { position: absolute; top: 0; height: 8px; border-radius: 8px; background: rgba(86, 220, 174, .45); }
.rv-pin { position: absolute; top: -6px; width: 3px; height: 20px; border-radius: 2px; transform: translateX(-50%); }
.rv-pin b { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 650; }
.rv-pin.is-yours { background: var(--c); }
.rv-pin.is-yours b { color: var(--c); }
.rv-pin.is-answer { background: var(--mint); }
.rv-pin.is-answer b { color: var(--mint); bottom: -26px; }
.rv-legend { margin-top: 30px; display: flex; gap: 16px; font-size: 12.5px; }
.rv-legend .is-yours { color: var(--c); }
.rv-legend .is-answer { color: var(--mint); }
.rv-tap { margin-top: 12px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.rv-tap [data-cloud] { cursor: pointer; }
.rv-parts, .nb-parts { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.nb-parts { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.rv-part { padding: 10px 12px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); }
.rv-part-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13.5px; }
.rv-part-name { font-weight: 600; color: var(--text); }
.rv-part-n { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-part .nb-bar { display: block; }
.rv-part .rv-again { margin-top: 10px; }
.rv-part .rv-topic { margin-bottom: 0; gap: 6px; }
@media (max-width: 960px) { .nb-parts { grid-template-columns: 1fr; } }

/* ===== The Weather Lab ===== */
.lab-where { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.lab-tabs { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lab-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.lab-tab:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.lab-tab.is-on { color: #06101d; background: var(--c); border-color: var(--c); }
.lab-here { padding: 12px 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.lab-here-name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 650; }
.lab-here-name .ic { color: var(--c); }
.lab-here-sub { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.lab-globe { margin-top: 12px; padding: 6px; }
.lab-globe .globe-box { height: 220px; }
.lab-search { width: 100%; margin-top: 12px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 14.5px; }
.lab-search:focus { outline: 2px solid color-mix(in oklab, var(--c) 60%, transparent); outline-offset: 1px; }
.lab-places { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 4px; }
.lab-place { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); color: var(--text); text-align: left; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.lab-place small { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.lab-place:hover { background: var(--raise-2); }
.lab-place.is-on { border-color: var(--c); background: color-mix(in oklab, var(--c) 12%, transparent); }
.lab .ls-label { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.lab-looks { grid-template-columns: repeat(3, 1fr); }
.lab-ro { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lab-cards { overflow-x: auto; flex-wrap: nowrap; align-items: flex-end; scrollbar-width: thin; }
.lab-card { flex: none; width: 320px; }
.lab-more { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--c); text-decoration: none; }
.lab-more:hover { text-decoration: underline; }
.lab-explain { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in oklab, var(--c) 9%, transparent); border: 1px solid color-mix(in oklab, var(--c) 30%, transparent); }
.lab-explain-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.lab-explain ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.lab-explain a { font-size: 12px; font-weight: 650; color: var(--c); text-decoration: none; padding: 1px 6px; border-radius: 999px; background: color-mix(in oklab, var(--c) 14%, transparent); }
.lab-big { display: flex; align-items: center; gap: 14px; padding: 8px 6px 4px; }
.lab-big .art { flex: none; color: var(--c); }
.lab .ls-nav .btn.is-on { border-color: var(--c); color: var(--c); }
@media (max-width: 960px) {
  .lab-cards { flex: none; flex-direction: row !important; overflow-x: auto; padding-bottom: 12px; }
  .lab-card { width: 300px; }
}
.lab-src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.lab-src-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text-2); font-size: 12.5px; font-weight: 650; text-align: center; cursor: pointer; }
.lab-src-b:hover { color: var(--text); background: var(--raise-2); }
.lab-src-b.is-on { color: var(--text); border-color: var(--c); background: color-mix(in oklab, var(--c) 14%, transparent); }
.lab-src-b.is-on .ic { color: var(--c); }
.lab-when { margin-top: 14px; }
.lab-play { margin-top: 14px; }
.lab-own { margin-top: 12px; }
/* The lab's challenges: the list, the one picked (pinned at the top of the rail) and a short note when one is done. */
.lab-tabs { grid-template-columns: repeat(4, 1fr); }
.lab-tab { padding: 0 4px; min-width: 0; }
.lab-tab .ic { display: none; } /* four tabs: the words alone fit */
.lab-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .lab-tab { font-size: 13px; } }
.lab-ch-lead { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.lab-ch-sum { --u: var(--c); margin: 12px 0 10px; display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.lab-ch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lab-ch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); color: var(--text); text-align: left; font-size: 13.5px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.lab-ch:hover { background: var(--raise-2); }
.lab-ch .art { color: var(--text-3); }
.lab-ch.is-done .art, .lab-ch-state .ic { color: var(--c); }
.lab-ch.is-on { border-color: var(--c); background: color-mix(in oklab, var(--c) 12%, transparent); }
.lab-goal { margin-bottom: 14px; padding: 12px 14px 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid color-mix(in oklab, var(--c) 45%, transparent); }
.lab-goal.is-won { background: color-mix(in oklab, var(--c) 12%, transparent); border-color: var(--c); }
.lab-goal-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.lab-goal-name { margin-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 17px; font-weight: 650; }
.lab-goal-name > .ic, .lab-goal-art .art { color: var(--c); }
.is-won .lab-goal-name { flex-wrap: nowrap; align-items: flex-start; }
.is-won .lab-goal-name > .ic { flex: none; margin-top: 3px; }
.lab-goal-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: var(--c); background: color-mix(in oklab, var(--c) 14%, transparent); }
.lab-goal-text { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
.lab-goal-nudge { margin-top: 8px; font-size: 14px; font-weight: 650; color: #ffc46b; }
.lab-goal-hint { margin-top: 8px; display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.lab-goal-hint .ic { flex: none; margin-top: 2px; color: #ffc46b; }
.lab-goal-sight { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.lab-goal-sight .art { flex: none; color: var(--c); }
.lab-goal-acts { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lab-goal-acts .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.lab-goal-acts .btn:disabled { opacity: .4; cursor: default; }
.lab-goal-all { font-size: 14px; font-weight: 650; color: var(--c); }
.lab-toast { position: fixed; z-index: 30; top: 20px; left: 76px; max-width: min(380px, calc(100vw - 92px)); display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--c); background: rgba(8, 16, 28, .92); backdrop-filter: blur(10px); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; animation: lab-toast-in .3s var(--ease); transition: opacity .5s, transform .5s; }
.lab-toast .ic { flex: none; color: var(--c); }
.lab-toast.is-out { opacity: 0; transform: translateY(-8px); }
@keyframes lab-toast-in { from { opacity: 0; transform: translateY(-8px); } }
.lab.in-goals { grid-template-areas: "stage head" "stage body" "tools body" "tools body"; } /* no bottom bar: the panel takes its row */
.lab.in-goals .ls-nav { display: none; }
.lab-ch-tools > .sl { margin-top: 2px; }
/* One challenge: back to the list, the goal with its live checklist, then the controls it needs. */
.lab-ch-back { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; margin: -4px 0 10px -6px; padding: 0 10px 0 4px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lab-ch-back:hover { color: var(--text); background: var(--raise-2); }
.lab-chk-head { margin-top: 12px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.lab-chk { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.lab-chk-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 14px; line-height: 1.35; color: var(--text-2); }
.lab-chk-row.is-ok { color: var(--text); background: color-mix(in oklab, var(--c) 10%, transparent); }
.lab-chk-box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); color: #06101d; }
.is-ok .lab-chk-box { border-color: var(--c); background: var(--c); }
.lab-chk-now { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.is-ok .lab-chk-now { color: var(--c); }
.lab-ch-tools { margin-top: 4px; }
.lab-ch-tools .ls-sub { margin-top: 20px; }
.lab-tool-label { margin-top: 14px; }
.lab-bar { width: 100%; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--c) 45%, transparent); background: var(--raise); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.lab-bar:hover { background: var(--raise-2); }
.lab-bar .ic { flex: none; color: var(--c); }
.lab-bar-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-bar-n { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--c); background: color-mix(in oklab, var(--c) 14%, transparent); }
.lab-bar.is-won { border-color: var(--c); background: color-mix(in oklab, var(--c) 12%, transparent); }
/* Idle on a wide screen: the rail and cards fade away and the scene fills the window (lab.js toggles body.lab-idle). */
.lab > :not(.lab-toast), .lab::before { transition: opacity .25s ease; }
.lab-idle .lab > *, .lab-idle .lab::before { opacity: 0; transition: opacity 1s ease; }
.in-lesson.lab-idle #scene, .in-lesson.lab-idle .scene-fallback { width: 100vw; }
.in-lesson.lab-idle .scene-shade { right: 0; }
#labSrc .today-now { margin-top: 16px; }
