/* Light and plants page: leaf animation window, spectrum lab window, method notes. Builds on site.css tokens.
   Dark app windows on light sections, mint hairlines, lime only for the current step and controls on dark. */

/* ---------- hero ---------- */
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.lp-hero h1 { max-width: 18ch; }
.lp-hero .lead { max-width: 60ch; margin: 0; }
.lp-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.lp-parts a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: #eef4f0; text-decoration: none; font-weight: 650; font-size: 0.95rem; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.lp-parts a:hover { border-color: rgba(66, 211, 156, 0.55); background: rgba(15, 154, 108, 0.14); }
.lp-parts span { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; color: var(--brand-mint); }
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .lp-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-parts a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; font-size: 0.84rem; line-height: 1.25; }
}

/* ---------- animation window ---------- */
.lp-anim { margin: 0; }
.lp-win { position: relative; isolation: isolate; border-color: rgba(66, 211, 156, 0.16); box-shadow: 0 40px 90px -40px rgba(7, 18, 15, 0.8), 0 0 0 1px rgba(66, 211, 156, 0.08); }
.lp-win .aw-bar { gap: 14px; height: 48px; }
.lp-win .aw-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lp-count { margin-left: auto; display: inline-flex; align-items: baseline; gap: 2px; flex: none; font-variant-numeric: tabular-nums; font-size: 0.78rem; color: #8a9b93; }
.lp-count b { font-size: 0.95rem; font-weight: 800; color: var(--accent); }
.lp-count-n { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.14); color: #eef4f0; font-weight: 700; font-size: 0.82rem; }
.lp-anim.is-still .lp-count { display: none; }

.lp-view { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'bar' 'note' 'cards'; }

/* scene */
.lp-scene { grid-area: stage; position: relative; overflow: hidden; aspect-ratio: 16 / 10; isolation: isolate; background: radial-gradient(60% 70% at 50% 55%, #10241d 0%, #0b1814 55%, #07110e 100%); }
.lp-scene::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(rgba(66, 211, 156, 0.06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(66, 211, 156, 0.06) 1px, transparent 1px) 0 0 / 32px 32px; -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 20%, transparent 90%); mask-image: radial-gradient(70% 70% at 50% 45%, #000 20%, transparent 90%); }
.lp-plant { position: absolute; z-index: 1; left: 50%; top: 6%; height: 136%; aspect-ratio: 1; transform: translateX(-50%); -webkit-mask-image: radial-gradient(closest-side at 50% 42%, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 42%, #000 58%, transparent 100%); }
.lp-plant picture, .lp-plant img, .lp-plant video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.lp-plant img, .lp-plant video { filter: saturate(1.05) contrast(1.04) brightness(0.96); }
.lp-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.lp-video.is-on { opacity: 1; }
.lp-fx { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* luminaire: aluminium bar, LED strip on the underside, a faint beam in the colour of the lit channel */
.lp-lum { position: absolute; z-index: 2; left: 50%; top: 6%; width: min(40%, 520px); height: 18px; transform: translateX(-50%); }
.lp-bar-body { position: absolute; inset: 0; border-radius: 5px; background: linear-gradient(180deg, #e6eeeb 0%, #aab8b3 46%, #6f7d78 100%); box-shadow: 0 0 0 1px rgba(233, 245, 239, 0.28), 0 10px 24px rgba(0, 0, 0, 0.55); }
.lp-bar-body::after { content: ''; position: absolute; left: -6px; right: -6px; top: 6px; height: 3px; border-radius: 2px; background: #56635f; z-index: -1; }
.lp-leds { position: absolute; left: 3%; right: 3%; bottom: -4px; display: flex; justify-content: space-between; }
.lp-leds i { width: 6px; height: 6px; border-radius: 2px; background: #1b2723; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.lp-scene.on0 .lp-leds .ch0 { background: #c7d2ff; box-shadow: 0 0 6px 2px #4f6df5, 0 0 16px 4px rgba(79, 109, 245, 0.55); }
.lp-scene.on1 .lp-leds .ch1 { background: #d6f7e1; box-shadow: 0 0 6px 2px #4fbf73, 0 0 16px 4px rgba(79, 191, 115, 0.55); }
.lp-scene.on2 .lp-leds .ch2 { background: #ffd2cc; box-shadow: 0 0 6px 2px #e0453b, 0 0 16px 4px rgba(224, 69, 59, 0.55); }
.lp-scene.on3 .lp-leds .ch3 { background: #f2b7c4; box-shadow: 0 0 6px 2px #a8324a, 0 0 16px 4px rgba(168, 50, 74, 0.55); }
.lp-beam { position: absolute; left: -14%; right: -14%; top: 14px; height: 340%; pointer-events: none; opacity: 0; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, color-mix(in srgb, var(--beam, #8ea3ff) 42%, transparent) 0%, color-mix(in srgb, var(--beam, #8ea3ff) 10%, transparent) 55%, transparent 100%); transition: opacity 0.6s var(--ease), background 0.6s var(--ease); }
.lp-scene.is-lit .lp-beam { opacity: 0.7; }

/* control bar */
.lp-ctl { grid-area: bar; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding: 14px 18px 10px; background: #0b1a15; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.lp-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); color: #eef4f0; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.lp-btn:hover { border-color: rgba(66, 211, 156, 0.6); background: rgba(15, 154, 108, 0.2); }
.lp-btn:focus-visible, .lp-tick:focus-visible, .lp-tg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-btn svg { width: 16px; height: 16px; }
.lp-btn[hidden] { display: none; }
.lp-play { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lp-play:hover { background: #e6fa95; border-color: #e6fa95; color: var(--accent-ink); }
.lp-play svg { width: 14px; height: 14px; }
.lp-play .i-pause, .lp-anim.is-playing .lp-play .i-play { display: none; }
.lp-anim.is-playing .lp-play .i-pause { display: block; }
.lp-track { position: relative; }
.lp-rail { position: absolute; left: 0; right: 0; top: 21px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.lp-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-mint), var(--accent)); }
.lp-anim.is-still .lp-rail { display: none; }
.lp-ticks { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-tick { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 13px 2px 4px; border: 0; background: none; color: #7f938a; font: inherit; cursor: pointer; border-radius: 10px; }
.lp-tick i { width: 14px; height: 14px; border-radius: 50%; background: #0b1a15; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.lp-tick span { display: grid; gap: 1px; font-size: 0.78rem; font-weight: 650; line-height: 1.2; text-align: center; transition: color 0.3s; }
.lp-tick small { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; color: #5f7469; }
.lp-tick:hover span { color: #cfe0d8; }
.lp-tick.is-done i { background: color-mix(in srgb, var(--c) 70%, #0b1a15); box-shadow: none; }
.lp-tick.is-done span { color: #b3c3bb; }
.lp-tick.is-now i { background: var(--c); box-shadow: 0 0 0 4px #0b1a15, 0 0 0 7px color-mix(in srgb, var(--c) 35%, transparent), 0 0 18px var(--c); transform: scale(1.1); }
.lp-tick.is-now span { color: #fff; font-weight: 750; }
.lp-tick.is-now small { color: var(--accent); }
.lp-anim.is-still[data-show='all'] .lp-tick i { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.lp-anim.is-still[data-show='all'] .lp-tick span { color: #cfe0d8; }
.lp-anim.is-still .lp-ctl { grid-template-columns: minmax(0, 1fr); }

.lp-still-note { grid-area: note; display: none; margin: 0; padding: 0 18px 10px; background: #0b1a15; font-size: 0.78rem; color: #8a9b93; }
.lp-anim.is-still .lp-still-note { display: block; }

/* cards (stacked under the scene by default; float on the scene on wide screens) */
.lp-cards { grid-area: cards; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr); gap: 12px; padding: 16px 18px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); align-items: start; }
.lp-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lp-card { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.09); color: #eef4f0; font-size: 0.86rem; min-width: 0; }
.lp-lbl { margin: 0 0 10px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-mint); }
.lp-note { margin: 10px 0 0; font-size: 0.72rem; line-height: 1.35; color: #7f938a; }

.lp-beats { display: grid; }
.lp-beat { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s; }
.lp-beat.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 0.45s var(--ease) 0.2s, transform 0.45s var(--ease) 0.2s; }
.lp-k { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8a9b93; font-variant-numeric: tabular-nums; }
.lp-k i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.lp-h { margin: 0 0 6px; font-size: 1.24rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.18; color: #fff; }
.lp-p { margin: 0; color: #b9cac2; line-height: 1.5; }

.lp-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto minmax(44px, 1fr) 3.2em; align-items: center; gap: 8px 10px; font-size: 0.78rem; }
.lp-rows li { display: contents; }
.lp-rows li > * { transition: opacity 0.4s var(--ease); }
.lp-anim.is-playing .lp-rows li:not(.is-on):not(.is-done) > * { opacity: 0.35; }
.lp-rn { color: #cfe0d8; font-weight: 650; white-space: nowrap; }
.lp-rn small { font-family: var(--mono); font-size: 0.66rem; color: #6f857b; font-weight: 600; }
.lp-rb { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.lp-rb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.lp-rows b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 750; color: #fff; }
.lp-rows li.is-on .lp-rn { color: #fff; }

/* phytochrome card */
.lp-cycle { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-bottom: 12px; }
.lp-cycle svg { width: 100%; height: 44px; overflow: visible; }
.lp-cycle path { fill: none; stroke-width: 1.8; stroke-linecap: round; opacity: 0.35; transition: opacity 0.4s var(--ease), stroke-width 0.4s; }
.lp-cycle .lp-arc-r { stroke: #ff8a7e; }
.lp-cycle .lp-arc-f { stroke: #e0657f; stroke-dasharray: 4 4; }
.lp-pr, .lp-pfr { display: grid; place-items: center; min-width: 46px; height: 30px; padding: 0 10px; border-radius: 9px; font-weight: 800; font-size: 0.86rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); color: #cfe0d8; transition: border-color 0.4s, background-color 0.4s, color 0.4s; }
.lp-cyc-t { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; color: #7f938a; white-space: nowrap; transition: color 0.4s; }
.lp-cyc-r { top: -6px; }
.lp-cyc-f { bottom: -13px; }
.lp-pss-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.74rem; color: #a9bbb3; }
.lp-pss-val { position: relative; display: grid; justify-items: end; }
.lp-pss-val b { grid-area: 1 / 1; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.5s var(--ease); }
.lp-pss-track { position: relative; height: 12px; margin: 10px 0 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(224, 101, 127, 0.38), rgba(255, 138, 126, 0.38)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.lp-pss-day { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.35); }
.lp-pss-ghost { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #ff8a7e; opacity: 0; transition: opacity 0.4s; }
.lp-pss-arrow { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, #e0657f 0 4px, transparent 4px 7px); opacity: 0; transition: opacity 0.4s; }
.lp-pss-ptr { position: absolute; top: 50%; left: calc(var(--x, 0.87) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #0e1f19, 0 0 14px rgba(216, 243, 106, 0.55); opacity: 0; transition: left 2.2s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.4s var(--ease); }
.lp-pss-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.64rem; color: #6f857b; }
.lp-pss-key { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 4px; font-size: 0.72rem; line-height: 1.35; color: #a9bbb3; }
.lp-pss-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 6px; align-items: start; transition: color 0.4s, opacity 0.4s; }
.lp-pss-key b { white-space: nowrap; }
.lp-pss-key i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; }
.lp-pss-key .k-red i { border: 2px solid #ff8a7e; }
.lp-pss-key .k-lin i { background: var(--accent); }
.lp-pss-key .k-day i { width: 2px; height: 10px; margin: 2px 0 0 3px; border-radius: 0; background: rgba(255, 255, 255, 0.45); }
.lp-pss-key b { color: #fff; font-variant-numeric: tabular-nums; }
.lp-pss-idle { display: none; margin: 8px 0 0; font-size: 0.74rem; color: #7f938a; }
.lp-phy[data-state='idle'] .lp-pss-idle { display: block; }
/* states: idle (blue, green), red alone, red + far-red, all (still) */
.lp-phy[data-state='idle'] .lp-pss-val [data-pss='idle'] { opacity: 1; color: #6f857b; }
.lp-phy[data-state='idle'] .lp-pss-key li { opacity: 0.55; }
.lp-phy[data-state='red'] .lp-pss-val [data-pss='red'] { opacity: 1; }
.lp-phy[data-state='red'] .lp-arc-r, .lp-phy:is([data-state='linear'], [data-state='summary']) .lp-arc-f, .lp-phy[data-state='summary'] .lp-arc-r { opacity: 1; stroke-width: 2.4; }
.lp-phy[data-state='red'] .lp-pfr { border-color: #ff8a7e; background: rgba(224, 69, 59, 0.16); color: #fff; }
.lp-phy[data-state='red'] .lp-cyc-r, .lp-phy:is([data-state='linear'], [data-state='summary']) .lp-cyc-f { color: #fff; }
.lp-phy:is([data-state='linear'], [data-state='summary']) .lp-pr { border-color: #e0657f; background: rgba(168, 50, 74, 0.2); color: #fff; }
.lp-phy:is([data-state='red'], [data-state='linear'], [data-state='summary']) .lp-pss-ptr { opacity: 1; }
.lp-phy:is([data-state='linear'], [data-state='summary']) .lp-pss-val [data-pss='linear'] { opacity: 1; }
.lp-phy:is([data-state='linear'], [data-state='summary']) .lp-pss-ghost, .lp-phy:is([data-state='linear'], [data-state='summary']) .lp-pss-arrow { opacity: 1; }
.lp-phy[data-state='red'] .k-lin, .lp-phy[data-state='red'] .k-day { opacity: 0.55; }

.lp-anim figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--fg-3); max-width: 96ch; }

/* no JavaScript or reduced motion: every step listed, no timeline */
html:not(.js) .lp-ctl, html:not(.js) .lp-count { display: none; }
html:not(.js) .lp-beats, .lp-anim.is-still .lp-beats { gap: 14px; }
html:not(.js) .lp-beat, .lp-anim.is-still .lp-beat { grid-area: auto; visibility: visible; opacity: 1; transform: none; }
html:not(.js) .lp-beat + .lp-beat, .lp-anim.is-still .lp-beat + .lp-beat { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.lp-anim.is-still[data-show='one'] .lp-beat:not(.is-on) { opacity: 0.45; }
html:not(.js) .lp-phy .lp-pss-ptr, html:not(.js) .lp-phy .lp-pss-ghost, html:not(.js) .lp-phy .lp-pss-arrow { opacity: 1; }
html:not(.js) .lp-phy .lp-pss-ptr { left: calc(var(--x) * 100%); }

/* wide screens: cards float on the scene */
@media (min-width: 1101px) {
  .js .lp-anim:not(.is-still) .lp-view { grid-template-areas: 'stage' 'bar' 'note'; }
  .js .lp-anim:not(.is-still) .lp-scene { aspect-ratio: auto; height: clamp(560px, 46vw, 680px); }
  .js .lp-anim:not(.is-still) .lp-cards { grid-area: stage; position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px; border: 0; pointer-events: none; }
  .js .lp-anim:not(.is-still) .lp-cards > * { pointer-events: auto; }
  .js .lp-anim:not(.is-still) .lp-beats { width: 300px; }
  .js .lp-anim:not(.is-still) .lp-side { width: 300px; grid-template-columns: 1fr; }
  .js .lp-anim:not(.is-still) .lp-card { background: rgba(9, 22, 18, 0.72); border-color: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
  .js .lp-anim:not(.is-still) .lp-lum { width: min(36%, 480px); }
}
@media (min-width: 1101px) {
  .lp-anim.is-still .lp-scene, html:not(.js) .lp-scene { aspect-ratio: auto; height: clamp(480px, 40vw, 600px); }
}
@media (max-width: 1100px) {
  .lp-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lp-scene { aspect-ratio: 1 / 1; }
  .lp-lum { width: 78%; top: 6%; height: 14px; }
  .lp-leds i { width: 5px; height: 5px; }
  .lp-plant { top: 9%; height: 128%; }
  .lp-ctl { gap: 10px; padding: 12px 12px 8px; }
  .lp-tick { padding-top: 13px; }
  .lp-tick span { font-size: 0.72rem; }
  .lp-tick small { font-size: 0.62rem; }
  .lp-cards { padding: 12px; gap: 10px; }
  .lp-side { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lp-card { padding: 13px 14px; }
  .lp-h { font-size: 1.12rem; }
  .lp-win .aw-bar { height: 44px; padding: 0 12px; }
  .lp-count-n { display: none; }
}

/* ---------- spectrum lab window ---------- */
.lp-lab { color: #eef4f0; border-color: rgba(66, 211, 156, 0.16); box-shadow: 0 40px 90px -40px rgba(7, 18, 15, 0.7), 0 0 0 1px rgba(66, 211, 156, 0.08); }
.lp-lab .aw-bar { height: 48px; }
.lp-lab-body { display: grid; gap: 18px; padding: 20px; }
.lp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: start; }
.lp-field { display: grid; gap: 6px; min-width: 0; }
.lp-field-k { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8a9b93; }
.lp-field select { width: 100%; min-height: 46px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: #0d1d18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2342d39c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; color: #fff; font: inherit; font-size: 0.94rem; font-weight: 650; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.lp-field select:hover { border-color: rgba(66, 211, 156, 0.5); }
.lp-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-field select option, .lp-field select optgroup { background: #0d1d18; color: #eef4f0; }
.lp-field-s { font-size: 0.72rem; color: #8a9b93; min-height: 1.2em; }
.lp-swap { margin-top: 23px; }
.lp-swap:disabled { opacity: 0.35; cursor: default; }
.sw-a, .sw-b { display: inline-block; flex: none; width: 18px; height: 8px; border-radius: 2px; }
.sw-a { background: linear-gradient(90deg, #4f6df5, #4fbf73, #e0453b, #a8324a); }
.sw-b { height: 0; border-top: 2px dashed #eef4f0; border-radius: 0; vertical-align: middle; }

.lp-chart-box { padding: 14px 14px 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(255, 255, 255, 0.07); }
.lp-tgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.lp-tgs-k { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8a9b93; margin-right: 4px; }
.lp-tg { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #a9bbb3; font: inherit; font-size: 0.8rem; font-weight: 650; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.lp-tg i { width: 14px; height: 3px; border-radius: 2px; opacity: 0.45; }
.lp-tg[aria-pressed='true'] { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); color: #fff; }
.lp-tg[aria-pressed='true'] i { opacity: 1; }
.lp-tg:hover { border-color: rgba(66, 211, 156, 0.55); }
.ov-mccree { background: #42d39c; }
.ov-pr { background: #f29a52; }
.ov-pfr { background: #a99cf5; }
.ov-leaf { background: #d8f36a; }
.lp-chart { position: relative; min-height: 348px; touch-action: pan-y; }
.lp-chart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.lp-chart-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 0.86rem; color: #8a9b93; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 48px); border-radius: 10px; }
.lp-chart .bd0 { fill: rgba(255, 255, 255, 0.035); }
.lp-chart .bd1 { fill: rgba(255, 255, 255, 0.015); }
.lp-chart .bl { fill: #6f857b; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lp-chart .gl { stroke: rgba(255, 255, 255, 0.06); }
.lp-chart .ax { stroke: rgba(255, 255, 255, 0.22); }
.lp-chart .tk { fill: #7f938a; font-size: 10.5px; font-family: var(--mono); }
.lp-chart .yl { fill: #8a9b93; font-size: 11px; font-weight: 600; }
.lp-chart .br { fill: none; stroke: rgba(255, 255, 255, 0.3); }
.lp-chart .br.fr { stroke: #e0657f; }
.lp-chart .br.ep { stroke: rgba(66, 211, 156, 0.55); }
.lp-chart .bt { fill: #a9bbb3; font-size: 10.5px; font-weight: 700; }
.lp-chart .bt.ep { fill: var(--brand-mint); }
.lp-chart .area { opacity: 0.9; }
.lp-chart .la { fill: none; stroke: #fff; stroke-opacity: 0.75; stroke-width: 1.4; stroke-linejoin: round; }
.lp-chart .lb { fill: none; stroke: #eef4f0; stroke-width: 2; stroke-dasharray: 6 4; stroke-linejoin: round; }
.lp-chart .ov { fill: none; stroke-width: 2; stroke-linejoin: round; }
.lp-chart .cur { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }
.lp-chart .da { fill: #fff; }
.lp-chart .db { fill: #0b1a15; stroke: #fff; stroke-width: 1.5; }
.lp-chart .hit { fill: transparent; cursor: crosshair; }
.lp-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 3px; min-width: 180px; max-width: min(300px, 80%); padding: 9px 11px; border-radius: 10px; background: rgba(6, 16, 12, 0.94); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); font-size: 0.74rem; color: #cfe0d8; }
.lp-tip[hidden] { display: none; }
.lp-tip b { font-family: var(--mono); color: #fff; font-size: 0.8rem; }
.lp-tip span { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.lp-tip span i { width: 14px; height: 3px; border-radius: 2px; }
.lp-tip span i.sw-a { height: 6px; width: 14px; }
.lp-tip span i.sw-b { width: 14px; }
.lp-tip em { font-style: normal; font-variant-numeric: tabular-nums; color: #fff; font-weight: 700; }
.lp-hint { margin: 6px 0 0; font-size: 0.72rem; color: #6f857b; }

.lp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-m { min-width: 0; padding: 13px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); }
.lp-m.is-wide { grid-column: span 2; }
.lp-m-k { margin: 0 0 4px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8a9b93; }
.lp-m-k .nc { text-transform: none; letter-spacing: 0.02em; }
.lp-m-v { margin: 0; font-size: 1.42rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-m-v small { margin-left: 5px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0; color: #8a9b93; }
.lp-m.is-off .lp-m-v { font-size: 1.08rem; color: #ffc2cf; }
.lp-m-b { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; font-size: 0.8rem; font-weight: 650; color: #cfe0d8; font-variant-numeric: tabular-nums; }
.lp-m-s { margin: 8px 0 0; font-size: 0.72rem; line-height: 1.4; color: #8a9b93; }
.lp-m-bar { display: flex; gap: 2px; height: 8px; margin-top: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.lp-m-bar i { display: block; height: 100%; }
.lp-m-bar.is-b { height: 4px; margin-top: 5px; opacity: 0.6; }
.lp-m-gauge { position: relative; display: block; height: 6px; margin: 10px 0 2px; border-radius: 3px; background: linear-gradient(90deg, rgba(224, 101, 127, 0.35), rgba(255, 138, 126, 0.35)); }
.lp-m-gauge i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.lp-m-gauge .ga { background: var(--accent); box-shadow: 0 0 0 2px #10231c; z-index: 1; }
.lp-m-gauge .gb { border: 2px dashed #eef4f0; background: #10231c; }

.lp-look { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 18px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07); }
.lp-look-lead { margin: 0; font-size: 0.8rem; line-height: 1.45; color: #a9bbb3; }
.lp-look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-look-name { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; color: #fff; }
.lp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lp-tiles.is-one { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.lp-tile { margin: 0; }
.lp-tile svg { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.lp-tile figcaption { margin-top: 5px; font-size: 0.7rem; color: #8a9b93; }
.lp-look-note { margin: 8px 0 0; font-size: 0.72rem; line-height: 1.4; color: #ffc2cf; }
.lp-lab-note { margin: 0; font-size: 0.74rem; line-height: 1.45; color: #7f938a; }

/* table (built at build time; works without JavaScript) */
.lp-table-wrap { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.lp-table-wrap summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lp-table-wrap summary::-webkit-details-marker { display: none; }
.lp-table-wrap summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--brand); }
.lp-table-wrap[open] summary::after { content: '–'; }
.lp-table-scroll { overflow-x: auto; padding: 0 18px 16px; }
.lp-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.lp-table th, .lp-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.lp-table thead th { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--fg-3); vertical-align: bottom; }
.lp-table th:first-child { text-align: left; }
.lp-table tbody th { font-weight: 650; }
.lp-table tbody th small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--fg-3); }

@media (max-width: 980px) {
  .lp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-look { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lp-lab-body { padding: 14px 12px; gap: 14px; }
  .lp-pick { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-field-b { grid-column: 1 / -1; grid-row: 2; }
  .lp-swap { grid-column: 2; grid-row: 1; }
  .lp-chart-box { padding: 10px 8px 8px; }
  .lp-tgs { gap: 6px; }
  .lp-tgs-k { width: 100%; }
  .lp-tg { min-height: 32px; padding: 0 10px; font-size: 0.74rem; }
  .lp-chart { min-height: 286px; }
  .lp-m { padding: 11px 12px; }
  .lp-m-v { font-size: 1.2rem; }
  .lp-look-grid { grid-template-columns: 1fr; }
  .lp-tiles.is-one { max-width: 60%; }
}

/* ---------- method ---------- */
.lp-method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: lpm; }
.lp-method li { position: relative; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); counter-increment: lpm; }
.lp-method li::before { content: counter(lpm, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 0.74rem; font-weight: 700; color: var(--brand); }
.lp-method h4 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; }
.lp-method p { margin: 0; font-size: 0.92rem; color: var(--fg-2); }
.lp-refs { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 20px; background: var(--bg-2); }
.lp-refs summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.lp-refs summary::-webkit-details-marker { display: none; }
.lp-refs summary small { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--brand); padding: 2px 7px; border-radius: 6px; background: var(--brand-tint); }
.lp-refs summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; font-weight: 400; color: var(--brand); }
.lp-refs[open] summary::after { content: '–'; }
.lp-refs ol { margin: 0; padding: 0 0 18px 20px; display: grid; gap: 8px; font-size: 0.84rem; color: var(--fg-2); }
.lp-refs a { overflow-wrap: anywhere; }
@media (max-width: 980px) { .lp-method { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .lp-method { grid-template-columns: 1fr; gap: 10px; }
  .lp-method li { padding: 16px; }
}

/* ---------- next module ---------- */
.lp-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-next-card { position: relative; display: grid; gap: 4px; padding: 22px 56px 22px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.lp-next-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.lp-next-card svg { position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--brand); }
.lp-next-k { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.lp-next-t { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
.lp-next-s { font-size: 0.88rem; color: var(--fg-2); }
@media (max-width: 760px) { .lp-next { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- modules and part heads ---------- */
.lp-mod + .lp-mod { border-top: 1px solid var(--line); }
.lp-part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(16px, 4vw, 64px); align-items: end; margin: clamp(48px, 6vw, 84px) 0 clamp(18px, 2.4vw, 28px); }
.section-head + .lp-part { margin-top: 0; }
.lp-part-k { margin: 0 0 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow); }
.lp-part-h { margin: 0; font-size: clamp(1.3rem, 1.9vw, 1.65rem); font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.lp-part-p { margin: 0; color: var(--fg-2); font-size: 0.98rem; max-width: 62ch; }
.lp-method-block .lp-method { margin-top: 0; }
@media (max-width: 860px) { .lp-part { grid-template-columns: 1fr; gap: 8px; align-items: start; } }

/* shared form controls in the calculator windows */
.lp-calc { color: #eef4f0; border-color: rgba(66, 211, 156, 0.16); box-shadow: 0 40px 90px -40px rgba(7, 18, 15, 0.7), 0 0 0 1px rgba(66, 211, 156, 0.08); }
.lp-calc .aw-bar, .ld-anim .aw-bar, .lu-anim .aw-bar { height: 48px; }
.lp-calc select { width: 100%; min-height: 44px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: #0d1d18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2342d39c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; color: #fff; font: inherit; font-size: 0.92rem; font-weight: 650; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lp-calc select:focus-visible, .lp-calc input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-calc option { background: #0d1d18; color: #eef4f0; }
.lp-calc input[type='range'] { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lp-calc input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-mint), rgba(255, 255, 255, 0.14)); }
.lp-calc input[type='range']::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.lp-calc input[type='range']::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--brand-mint); }
.lp-calc input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #10231c, 0 0 0 7px rgba(216, 243, 106, 0.18); }
.lp-calc input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #10231c, 0 0 0 7px rgba(216, 243, 106, 0.18); }
.ld-field { display: grid; gap: 4px; min-width: 0; }
.ld-field .lp-field-k { justify-content: space-between; }
.ld-field output { font-size: 0.86rem; font-weight: 750; letter-spacing: 0; text-transform: none; color: #fff; font-variant-numeric: tabular-nums; }
.ld-num { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: #0d1d18; }
.ld-num input { width: 4.6em; border: 0; background: none; color: #fff; font: inherit; font-weight: 750; font-variant-numeric: tabular-nums; }
.ld-num.is-wide input { width: 100%; }
.ld-num em { font-style: normal; font-size: 0.72rem; color: #8a9b93; white-space: nowrap; }
.ld-note { margin: 6px 0 0; font-size: 0.74rem; line-height: 1.45; color: #8a9b93; }
.ld-tag { display: inline-block; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(216, 243, 106, 0.45); color: var(--accent); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ld-big { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.ld-big b { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ld-big small { font-size: 0.74rem; font-weight: 600; color: #a9bbb3; }

/* ---------- 1b daily light: animation ---------- */
.ld-time b { min-width: 3.2em; text-align: right; }
.ld-scene { aspect-ratio: 16 / 9; }
.ld-scene .lp-lum { top: 9%; }
.ld-scene .lp-beam { height: 470%; }
.ld-canopy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 26%; }
.ld-canopy svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-sensor { position: absolute; z-index: 2; left: 50%; bottom: 15%; width: clamp(34px, 4vw, 52px); transform: translateX(-50%); }
.ld-sensor svg { display: block; width: 100%; height: auto; overflow: visible; }
.ld-sensor .ld-dome { transition: fill 0.15s; }
.ld-sensor.is-hit .ld-dome { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 180, 200, 0.9)); }
.ld-sensor-l { position: absolute; left: 118%; top: 10%; white-space: nowrap; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #a9bbb3; }
.ld-ctl { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 16px 18px 12px; }
.ld-dayline { position: relative; padding-bottom: 18px; }
.ld-day-bar { position: relative; height: 14px; border-radius: 7px; background: #08140f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); overflow: hidden; }
.ld-day-bar i { position: absolute; top: 0; bottom: 0; }
.ld-day-bar .on { background: linear-gradient(90deg, #42d39c, #b9ec7a); opacity: 0.4; }
.ld-anim .ld-past { left: 0; width: calc(var(--day, 0) * 100%); background: rgba(255, 255, 255, 0.07); }
.ld-anim .ld-day-bar .on { opacity: 1; background: linear-gradient(90deg, #42d39c, #b9ec7a) 0 0 / calc(var(--litp, 0) * 100%) 100% no-repeat, rgba(66, 211, 156, 0.22); }
.ld-anim.is-still .ld-day-bar .on { background: linear-gradient(90deg, #42d39c, #b9ec7a); }
.ld-day-bar .nb { background: #ff5a8e; box-shadow: 0 0 12px rgba(255, 90, 142, 0.6); }
.ld-day-bar b { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(7, 18, 15, 0.55); }
.ld-head { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #0b1a15, 0 0 12px rgba(216, 243, 106, 0.6); }
.ld-day-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; font-family: var(--mono); font-size: 0.62rem; color: #7f938a; }
.ld-calc .ld-day-ticks { position: relative; margin-top: 4px; }
.ld-day-ticks span { position: absolute; transform: translateX(-50%); }
.ld-day-ticks span:first-child { transform: none; }
.ld-day-ticks span:last-child { transform: translateX(-100%); }
.ld-anim.is-still .ld-head { display: none; }
.ld-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ld-meter .ld-meter-s { margin: 6px 0 0; font-size: 0.72rem; color: #8a9b93; }
.ld-formula { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 0.74rem; color: #cfe0d8; opacity: 0.35; transition: opacity 0.6s var(--ease); }
.ld-anim.is-done .ld-formula, .ld-anim.is-still .ld-formula { opacity: 1; color: var(--accent); }
.ld-bucket { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.ld-tank { width: 96px; height: auto; display: block; overflow: visible; }
.ld-tank .ld-glass { fill: rgba(255, 255, 255, 0.04); stroke: rgba(233, 245, 239, 0.45); stroke-width: 1.4; }
.ld-tank .ld-liquid { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--f, 0)); }
.ld-anim.is-playing .ld-tank .ld-liquid { transition: transform 0.12s linear; }
.ld-tank .ld-band { fill: rgba(216, 243, 106, 0.12); }
.ld-tank .ld-band-l { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.ld-tank-ticks line { stroke: rgba(255, 255, 255, 0.3); }
.ld-tank-ticks text { fill: #8a9b93; font-size: 10px; font-family: var(--mono); }
.ld-target-s { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 0.74rem; color: #cfe0d8; }
.ld-target-s i { width: 14px; height: 0; border-top: 2px dashed var(--accent); }
@media (min-width: 1101px) {
  .js .ld-anim:not(.is-still) .ld-scene { aspect-ratio: auto; height: clamp(500px, 40vw, 600px); }
  .js .ld-anim:not(.is-still) .ld-cards > .ld-meter, .js .ld-anim:not(.is-still) .ld-cards > .ld-bucket { width: 300px; }
  .js .ld-anim:not(.is-still) .ld-scene .lp-lum { width: min(36%, 480px); }
}
@media (max-width: 760px) {
  .ld-scene { aspect-ratio: 4 / 3.4; }
  .ld-scene .lp-lum { width: 78%; }
  .ld-cards { grid-template-columns: minmax(0, 1fr); }
  .ld-sensor { bottom: 12%; }
  .ld-sensor-l { display: none; }
}

/* ---------- 1b calculator ---------- */
.ld-body { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr); gap: 18px; padding: 20px; }
.ld-in { display: grid; gap: 16px; align-content: start; }
.ld-range { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ld-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-content: start; }
.ld-out > * { min-width: 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); }
.ld-result { position: relative; }
.ld-result .ld-formula { opacity: 1; font-size: 0.72rem; }
.ld-status { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 750; background: rgba(255, 255, 255, 0.06); color: #cfe0d8; }
.ld-status[data-s='in'] { background: rgba(66, 211, 156, 0.16); color: var(--brand-mint); }
.ld-status[data-s='below'] { background: rgba(255, 176, 122, 0.14); color: #ffc79e; }
.ld-status[data-s='above'] { background: rgba(216, 243, 106, 0.12); color: var(--accent); }
.ld-target-k { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 0.74rem; font-weight: 700; color: #a9bbb3; }
.ld-target-v { margin: 0; font-size: 0.8rem; color: #a9bbb3; }
.ld-target-v b { font-size: 1.3rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ld-gauge { position: relative; height: 10px; margin: 12px 0 4px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); }
.ld-gauge-band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: rgba(66, 211, 156, 0.55); }
.ld-gauge-mark { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #10231c; transition: left 0.3s var(--ease); }
.ld-gauge-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; color: #7f938a; }
.ld-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.ld-facts div { min-width: 0; }
.ld-facts dt { font-size: 0.7rem; color: #8a9b93; line-height: 1.35; }
.ld-facts dd { margin: 2px 0 0; font-size: 0.98rem; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
.ld-day { grid-column: 1 / -1; }
.ld-day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; }
.ld-day-head .lp-m-k { margin: 0; }
.ld-day-on { font-size: 0.8rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ld-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 650; color: #cfe0d8; cursor: pointer; }
.ld-toggle input { width: 18px; height: 18px; accent-color: #ff5a8e; }
.ld-calc .ld-day-bar { height: 18px; border-radius: 9px; }
.ld-calc .ld-day-bar .on { opacity: 1; }
.ld-nb-text { display: none; margin: 10px 0 0; font-size: 0.76rem; line-height: 1.5; color: #cfe0d8; }
.ld-calc.has-nb .ld-nb-text { display: block; }
.ld-lux { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px 18px; align-items: start; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(255, 255, 255, 0.07); }
.ld-lux-head { display: flex; align-items: center; gap: 10px; }
.ld-lux-head .lp-lbl { margin: 0; }
.ld-lux-in { display: grid; gap: 10px; }
.ld-lux-out { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ld-lux-f { margin: 4px 0 0; font-size: 0.8rem; color: #cfe0d8; }
.ld-lux-out .lp-m-k { width: 100%; margin: 0; }
.ld-lux-out b { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ld-lux-out small { font-size: 0.74rem; color: #a9bbb3; }
.ld-gh { grid-column: 1 / -1; margin: 0; font-size: 0.76rem; color: #8a9b93; }
@media (max-width: 980px) {
  .ld-body { grid-template-columns: minmax(0, 1fr); }
  .ld-lux { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ld-lux-intro { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ld-body { padding: 14px 12px; gap: 14px; }
  .ld-out { grid-template-columns: minmax(0, 1fr); }
  .ld-lux { grid-template-columns: minmax(0, 1fr); padding: 14px 12px; }
  .ld-toggle { margin-left: 0; }
}

/* ---------- 1c uniformity ---------- */
.lu-view { display: grid; grid-template-areas: 'stage' 'bar' 'note' 'compare'; }
.lu-stage { grid-area: stage; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; padding: clamp(18px, 2.4vw, 30px); background: radial-gradient(70% 80% at 40% 40%, #10241d 0%, #0b1814 60%, #07110e 100%); }
.lu-map-box { position: relative; aspect-ratio: 12 / 9.6; border-radius: 14px; overflow: hidden; background: #0d1d18; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.lu-map { display: block; width: 100%; height: 100%; }
.lu-dim { position: absolute; font-family: var(--mono); font-size: 0.66rem; color: rgba(255, 255, 255, 0.75); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.lu-dim-x { left: 50%; bottom: 6px; transform: translateX(-50%); }
.lu-dim-y { left: 6px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.lu-busy { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.82rem; color: #8a9b93; background: #0d1d18; transition: opacity 0.4s; }
.lu-calc.is-ready .lu-busy { opacity: 0; pointer-events: none; }
.lu-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lu-kpi { min-width: 0; padding: 12px 14px; border-radius: 12px; background: rgba(9, 22, 18, 0.72); border: 1px solid rgba(255, 255, 255, 0.09); }
.lu-kpi > span { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8a9b93; }
.lu-kpi b { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.lu-kpi b small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0; color: #8a9b93; }
.lu-kpi.is-main, .lu-kpi.is-key { border-color: rgba(216, 243, 106, 0.4); }
.lu-kpi.is-key b { color: var(--accent); }
.lu-prof { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: rgba(9, 22, 18, 0.72); border: 1px solid rgba(255, 255, 255, 0.09); }
.lu-prof .lp-m-k { margin: 0 0 6px; }
.lu-profile { display: block; width: 100%; height: clamp(70px, 9vw, 150px); }
.lu-profile .pf-area { fill: rgba(66, 211, 156, 0.14); }
.lu-profile .pf-line { fill: none; stroke: var(--brand-mint); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.lu-profile .pf-avg { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.lu-ramp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; margin-top: 10px; font-family: var(--mono); font-size: 0.6rem; color: #7f938a; }
.lu-ramp i { grid-column: 1 / -1; height: 6px; border-radius: 3px; }
.lu-ramp .lu-ramp-t { text-align: center; font-family: var(--font); font-size: 0.66rem; }
.lu-ctl { grid-area: bar; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.lu-track { position: relative; padding-bottom: 16px; }
.lu-rail { position: absolute; left: calc(100% / 18); right: calc(100% / 18); top: 13px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.lu-thumb { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #0b1a15, 0 0 12px rgba(216, 243, 106, 0.55); }
.lu-ticks { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.lu-tick { width: 100%; padding: 26px 0 0; border: 0; background: none; font: inherit; cursor: pointer; color: #7f938a; }
.lu-tick span { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; }
.lu-tick.is-now span { color: #fff; font-weight: 800; }
.lu-tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.lu-track-k { position: absolute; right: 0; bottom: -2px; font-size: 0.62rem; color: #6f857b; }
.lu-compare { grid-area: compare; display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 0 18px 18px; }
.lu-anim.is-still .lu-compare, html:not(.js) .lu-compare { display: grid; }
.lu-anim.is-still .lu-stage .lu-map-box { display: none; }
.lu-anim.is-still .lu-stage { grid-template-columns: minmax(0, 1fr); }
.lu-anim.is-still .lu-read { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lu-still { margin: 0; }
.lu-still canvas { display: block; width: 100%; height: auto; aspect-ratio: 12 / 9.6; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.lu-still figcaption { display: grid; gap: 2px; margin-top: 8px; font-size: 0.76rem; color: #a9bbb3; }
.lu-still figcaption b { color: #fff; font-size: 0.86rem; }
.lu-anim .lp-still-note { grid-area: note; }
.lu-note { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--fg-3); }
.lu-note a { white-space: nowrap; font-weight: 700; }
.lu-calc .lu-note { margin: 0; color: #8a9b93; }
.lu-calc .lu-note a { color: var(--brand-mint); }
.lu-anim figcaption .lu-note { max-width: 96ch; }
.lu-calc-body { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.8fr); gap: 20px; padding: 20px; }
.lu-controls { display: grid; gap: 16px; align-content: start; }
.lu-ratio { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.78rem; color: #a9bbb3; }
.lu-ratio b { font-size: 1.1rem; color: #fff; font-variant-numeric: tabular-nums; }
.lu-calc-out { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-content: start; }
.lu-calc-out .lu-map-box { grid-row: span 2; }
.lu-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-content: start; }
.lu-stats .lu-kpi { padding: 10px 12px; }
.lu-stats .lu-kpi b { font-size: 1.2rem; }
.lu-calc-out .lu-prof { grid-column: 2; }
.lu-calc-out .lu-note { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .lu-calc-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lu-stage { grid-template-columns: minmax(0, 1fr); }
  .lu-calc-out { grid-template-columns: minmax(0, 1fr); }
  .lu-calc-out .lu-map-box { grid-row: auto; }
  .lu-calc-out .lu-prof { grid-column: 1; }
}
@media (max-width: 760px) {
  .lu-stage { padding: 12px; }
  .lu-read, .lu-anim.is-still .lu-read { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lu-kpi b { font-size: 1.2rem; }
  .lu-ticks li:nth-child(even) .lu-tick span { visibility: hidden; }
  .lu-compare { grid-template-columns: minmax(0, 1fr); padding: 0 12px 12px; }
  .lu-calc-body { padding: 14px 12px; gap: 14px; }
}
.lu-stats .lu-kpi.is-key { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .ld-bucket { grid-template-columns: 70px minmax(0, 1fr); }
  .ld-tank { width: 70px; }
  .ld-meter .ld-formula { font-size: 0.7rem; }
}

/* ---------- Units and metrics (under 1b, moved from the hub) ---------- */
.lp-units { margin-top: clamp(8px, 1vw, 16px); }
.u-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.u-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.u-tile:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.u-tile header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.u-abbr { font-size: clamp(1.6rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--fg); }
.u-tile[data-fr] .u-abbr { color: #8a2638; }
.u-unit { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: var(--brand-tint); color: var(--brand); white-space: nowrap; }
.u-tile[data-fr] .u-unit { background: #f7e7ea; color: #8a2638; }
.u-tile h4 { font-size: 1rem; font-weight: 700; margin: 6px 0 0; }
.u-tile p { margin: 0; color: var(--fg-2); font-size: 0.94rem; }
.u-tile footer { margin-top: auto; padding-top: 12px; display: grid; gap: 6px; }
.u-bar { position: relative; display: block; height: 6px; border-radius: 4px; overflow: hidden; background: linear-gradient(90deg, #4a2bb8 0%, #3e5cf0 16%, #2aa6d0 26%, #45c26b 36%, #d7d63a 47%, #f29a2b 55%, #e0453b 66%, #b02a40 76%, #6c1427 88%, #2a0a12 100%); }
.u-bar i { position: absolute; top: 0; bottom: 0; box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.74); }
.u-bar.is-none { background: var(--line); }
.u-band { font-family: var(--mono); font-size: 0.72rem; color: var(--fg-3); min-height: 1em; }
.u-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.u-foot p { margin: 0; color: var(--fg-2); font-size: 0.94rem; }
@media (max-width: 980px) { .u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .u-foot { grid-template-columns: 1fr; }
  .u-grid { gap: 10px; }
  .u-tile { padding: 14px 13px 12px; gap: 6px; }
  .u-tile header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .u-abbr { font-size: 1.35rem; }
  .u-unit { font-size: 0.66rem; padding: 3px 6px; white-space: normal; }
  .u-tile h4 { font-size: 0.86rem; margin-top: 2px; }
  .u-tile p { font-size: 0.8rem; line-height: 1.45; }
  .u-band { font-size: 0.62rem; }
}
