/* Light Science › Measurement and validation. Builds on site.css tokens and the dark application window
   (.app-window) of the twin studio and the strawberry time-lapse: ink ground, mint hairlines, lime only for the
   current step and the selected item. Shapes and text labels carry every distinction colour makes. */

/* ---------------------------------------------------------------- hero and index */
.mv-hero .ph-grid { align-items: end; }
.mv-hero .lead { max-width: 58ch; }
.mv-index { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.mv-index-k { margin: 0 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.mv-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mv-index a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--fg); text-decoration: none; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.mv-index a:hover { color: var(--fg); border-color: rgba(66, 211, 156, 0.55); background: rgba(66, 211, 156, 0.06); transform: translateX(3px); }
.mv-index .n { grid-row: span 3; font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--brand-mint); padding-top: 3px; }
.mv-index .q { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.mv-index .a { color: var(--fg-2); font-size: 0.9rem; line-height: 1.45; }
.mv-index .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .mv-index li { animation: rise 0.8s var(--ease) both; }
  .mv-index li:nth-child(2) { animation-delay: 90ms; }
  .mv-index li:nth-child(3) { animation-delay: 180ms; }
}
@media (max-width: 900px) { .mv-hero.has-media .ph-grid { grid-template-columns: 1fr; } }

/* tags on dark grounds */
.mv-hero .tag, .mv-win .tag { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #d5e2dc; }
.mv-hero .tag.simulated, .mv-win .tag.simulated { color: var(--brand-mint); }
.mv-hero .tag.measured, .section.surface .mv .tag.measured { color: #fff; }
.mv-hero .tag.concept, .section.surface .tag.concept { color: #c9b8ff; }
.section.surface .tag.literature { color: #a9bcff; }
.section.surface .tag.established { color: var(--brand-mint); }

/* ---------------------------------------------------------------- section furniture */
.mv-sec .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.mv-caveat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; font-weight: 650; color: var(--fg); }
.mv-caveat span:last-child { margin-left: 4px; }
.mv-method { margin-top: clamp(28px, 3.5vw, 44px); }
.mv-method h3 { margin-bottom: 14px; }
.mv-method dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.mv-method dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.mv-method dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.mv-method dd { margin: 0; color: var(--fg-2); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 860px) { .mv-method dl { grid-template-columns: 1fr; } }
.mv-all table { font-size: 0.88rem; }
.mv-all caption { caption-side: top; text-align: left; padding: 12px 16px 4px; font-size: 0.84rem; color: var(--fg-2); }
.mv-all th[scope='row'] { font-weight: 700; color: var(--fg); white-space: nowrap; font-size: 0.88rem; letter-spacing: 0; text-transform: none; background: none; }

/* ---------------------------------------------------------------- the player window */
.mv-win {
  --fg: #eef4f0; --fg-2: #b3c3bb; --fg-3: #8a9b93; --line: #22382f; --line-2: #2e463c;
  position: relative; isolation: isolate; margin: 0; color: var(--fg);
  background: radial-gradient(120% 90% at 85% 0%, rgba(15, 154, 108, 0.22) 0%, rgba(10, 24, 19, 0) 55%), var(--ink-1);
  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);
}
.mv-win::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: linear-gradient(#000, transparent 60%); mask-image: linear-gradient(#000, transparent 60%); }
.mv-win .aw-bar { height: 50px; gap: 14px; background: rgba(7, 18, 15, 0.6); }
.mv-win .aw-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mv-win .aw-badge { margin-left: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 0.6875rem; letter-spacing: 0.06em; white-space: nowrap; }
.mv-win .aw-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(216, 243, 106, 0.18); }
.mv-play { margin-left: auto; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; 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; }
.mv-play:hover { border-color: rgba(66, 211, 156, 0.6); background: rgba(15, 154, 108, 0.2); }
.mv-play svg { width: 14px; height: 14px; display: none; }
.mv-play[data-state='play'] .i-play, .mv-play[data-state='pause'] .i-pause, .mv-play[data-state='replay'] .i-replay, .mv-play:not([data-state]) .i-play { display: block; }
.mv-play:focus-visible, .mv-tab:focus-visible, .mv-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mv-play[hidden] + .aw-badge { margin-left: auto; }

/* step tabs */
.mv-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px 0; }
.mv-tab { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px 12px 0; min-height: 56px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--fg-3); font: inherit; font-size: 0.84rem; font-weight: 650; text-align: left; cursor: pointer; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.mv-tab > span { display: flex; align-items: center; gap: 10px; line-height: 1.25; min-width: 0; }
.mv-tab > span b { font-weight: inherit; min-width: 0; }
.mv-tab em { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.72rem; font-weight: 800; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.3s, color 0.3s; }
.mv-tab:hover { color: var(--fg); background: rgba(255, 255, 255, 0.03); }
.mv-tab.is-done { color: var(--fg-2); }
.mv-tab.is-done em { background: rgba(66, 211, 156, 0.16); color: var(--brand-mint); box-shadow: none; }
.mv-tab[aria-selected='true'] { color: #fff; background: rgba(255, 255, 255, 0.045); }
.mv-tab[aria-selected='true'] em { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(216, 243, 106, 0.16); }
.mv-tab i { display: block; height: 3px; margin: auto -12px 0; background: var(--line); overflow: hidden; }
.mv-tab i b { display: block; height: 100%; background: var(--brand-mint); transform-origin: left; transform: scaleX(0); }
.mv-tab[aria-selected='true'] i b { background: var(--accent); }

/* body: stage + side panel */
.mv-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding: 12px 16px 16px; align-items: stretch; }
.mv-stage { position: relative; min-width: 0; border-radius: 14px; overflow: hidden; background: radial-gradient(110% 90% at 80% 0%, #143a2d 0%, #0b1a15 55%, #07120f 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.mv-side { display: grid; min-width: 0; }
.mv-panel { grid-area: 1 / 1; min-width: 0; padding: 6px 4px 4px; }
.js .mv-win.is-live .mv-panel { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0s; }
.js .mv-win.is-live .mv-panel:not(.is-on) { visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s; }
.js .mv-win.is-live .mv-panel.is-pre { opacity: 0; transform: translateY(8px); transition: none; }
.mv-k { margin: 0 0 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.mv-h { margin: 0 0 8px; font-size: 1.32rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.18; color: #fff; }
.mv-p { margin: 0 0 14px; color: #b9cac2; line-height: 1.55; font-size: 0.95rem; }
html:not(.js) .mv-tabs, html:not(.js) .mv-play { display: none; }
html:not(.js) .mv-side { gap: 18px; }
html:not(.js) .mv-panel { grid-area: auto; }
html:not(.js) .mv-panel + .mv-panel { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* kpi tiles, facts, comparison table */
.mv-kpis { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mv-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mv-kpis > div { min-width: 0; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.mv-kpis dt { font-size: 0.6875rem; line-height: 1.3; color: #a9bbb3; }
.mv-kpis dd { margin: 3px 0 0; font-size: 1.12rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.mv-kpis dd small { font-size: 0.6875rem; font-weight: 600; color: #8a9b93; letter-spacing: 0; }
.mv-kpis.two { margin-top: 10px; }
.mv-facts { margin: 0 0 10px; display: grid; gap: 0; }
.mv-facts > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.86rem; }
.mv-facts dt { color: #8a9b93; }
.mv-facts dd { margin: 0; color: #eef4f0; font-weight: 650; }
.mv-cmp { width: 100%; border-collapse: collapse; font-size: 0.8rem; line-height: 1.4; }
.mv-cmp th, .mv-cmp td { padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; vertical-align: top; background: none; position: static; }
.mv-cmp thead th { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-mint); }
.mv-cmp tbody th { font-size: 0.78rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #eef4f0; width: 32%; }
.mv-cmp td { color: #b9cac2; }
.mv-cmp tbody tr:hover td { background: none; }
.mv-same { margin: 10px 0 0; font-size: 0.82rem; color: var(--brand-mint); }

/* controls */
.mv-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 32px; padding: 14px 16px 16px; background: #0b1a15; border-top: 1px solid rgba(255, 255, 255, 0.08); }
html:not(.js) .mv-foot .mv-ctl { display: none; }
.mv-ctl { min-width: 0; }
.mv-ctl-k { display: block; margin: 0 0 8px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8a9b93; }
.mv-segs { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-seg { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.mv-seg .seg-k { padding: 0 8px 0 9px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: var(--brand-mint); }
.mv-seg button { height: 36px; min-width: 44px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #cfdcd5; font: inherit; font-size: 0.84rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
.mv-seg button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.mv-seg button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.mv-hint { margin: 8px 0 0; max-width: 46ch; font-size: 0.78rem; color: #8a9b93; line-height: 1.45; }

/* ---------------------------------------------------------------- charts (SVG) */
.mv-chartbox { min-width: 0; }
.mv-chart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.mv-chart text { font-size: 12px; fill: #b3c3bb; }
.mv-chart .nm { fill: #dfe9e4; font-weight: 600; }
.mv-chart .val { fill: #eef4f0; font-weight: 700; font-variant-numeric: tabular-nums; }
.mv-chart .tick { fill: #8a9b93; font-size: 11px; font-variant-numeric: tabular-nums; }
.mv-chart .lbl { fill: #8a9b93; font-size: 11px; font-weight: 650; }
.mv-chart .lgd text { fill: #b3c3bb; font-size: 11.5px; font-weight: 650; }
.mv-chart .grid { stroke: rgba(255, 255, 255, 0.07); }
.mv-chart .zero { stroke: rgba(255, 255, 255, 0.32); }
.mv-chart .sep { stroke: rgba(255, 255, 255, 0.1); stroke-dasharray: 2 3; }
.mv-chart .band { fill: rgba(66, 211, 156, 0.13); }
.mv-chart .band-t { fill: var(--brand-mint); }
.mv-chart .rg { fill: #0b1a15; stroke: #eef4f0; stroke-width: 1.6; }
.mv-chart .dm { fill: var(--brand-mint); stroke: #07120f; stroke-width: 1; }
.mv-chart .mk-l { stroke: rgba(66, 211, 156, 0.55); stroke-width: 2; transform-origin: 0 0; transition: transform 0.9s var(--ease) calc(var(--i, 0) * 80ms); }
.mv-chart .mk { transform: translateX(var(--dx)); transition: transform 0.9s var(--ease) calc(var(--i, 0) * 80ms); }
.mv-chart .row.is-sel .nm, .mv-chart .row.is-sel .val { fill: var(--accent); font-weight: 800; }
.mv-chart .row.is-sel .dm { fill: var(--accent); }
.mv-chart .row.is-sel .rg { stroke: var(--accent); }
.is-pre .mv-chart .mk { transform: none; transition: none; }
.is-pre .mv-chart .mk-l { transform: scaleX(0); transition: none; }
.mv-chart .bar { fill: rgba(66, 211, 156, 0.78); transform-origin: 0 0; transition: transform 0.9s var(--ease) calc(var(--i, 0) * 200ms + 150ms); }
.mv-chart .row { --i: 0; }
.mv-chart .row .bar { transition-delay: calc(var(--i) * 200ms + 150ms); }
.mv-chart .bar.is-cal { fill: var(--accent); }
.is-pre .mv-chart .bar { transform: scaleX(0); transition: none; }
.mv-chart.bars .nm { font-size: 12.5px; }
.mv-chart .val.in { fill: #07120f; }

/* dot strip */
.strip .med { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.strip .med-t { fill: var(--accent); }
.strip .rng { stroke: rgba(255, 255, 255, 0.4); }
.strip .dist, .strip .ol-labels, .strip .after, .strip .sel-l { transition: opacity 0.6s var(--ease); }
.strip .dot { fill: var(--brand-mint); stroke: #07120f; stroke-width: 0.8; opacity: 0; transform: translateY(-40px); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), fill 0.4s; transition-delay: calc(var(--i) * 16ms); }
.strip.is-in .dot { opacity: 0.92; transform: none; }
.strip.is-out .dot { opacity: 0.22; transition-delay: 0s; }
.strip.is-out .dot.is-out { opacity: 1; fill: var(--accent); }
.strip .ol-labels { opacity: 0; }
.strip.is-out .ol-labels { opacity: 1; }
.strip .ol { fill: #fff; font-weight: 750; }
.strip .lead { stroke: rgba(216, 243, 106, 0.6); }
.strip .after { opacity: 0; fill: var(--accent); }
.strip.is-corr .dot { transform: translateX(var(--dx)); transition-delay: calc(var(--i) * 6ms); }
.strip.is-corr .dist { opacity: 0.12; }
.strip.is-corr .after { opacity: 1; }
.strip .dot.is-sel { fill: var(--accent); opacity: 1; }
.strip .sel-l circle { fill: none; stroke: var(--accent); stroke-width: 2; }
.strip .sel-l text { fill: #fff; font-weight: 800; paint-order: stroke; stroke: #07120f; stroke-width: 3px; }
.strip.is-corr .sel-l { opacity: 0; }

/* ---------------------------------------------------------------- 5a stage: engine map */
[data-player='calc'] .mv-stage { height: clamp(420px, 42vw, 560px); }
.mv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mv-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 0.86rem; color: #8a9b93; }
.mv-wait[hidden] { display: none; }
.mv-over { position: absolute; inset: 0; pointer-events: none; }
.mv-fc { position: absolute; top: 14px; right: 14px; width: min(270px, 44%); padding: 12px 14px; border-radius: 12px; background: rgba(9, 22, 17, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.78rem; }
.mv-fc .fc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #a9bbb3; font-size: 0.72rem; font-weight: 600; margin-bottom: 6px; }
.mv-fc .fc-chip { flex: none; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); }
.mv-fc .fc-val { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: #fff; }
.mv-fc .fc-val small { font-size: 0.72rem; font-weight: 600; color: #a9bbb3; margin-left: 5px; letter-spacing: 0; }
.mv-fc .fc-sub { color: #a9bbb3; margin-top: 4px; line-height: 1.4; }
.mv-fc .fc-sub b { color: #eef4f0; font-variant-numeric: tabular-nums; }
.mv-fc .fc-cmp { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mv-legend { position: absolute; left: 14px; bottom: 12px; width: min(260px, 50%); padding: 8px 12px 7px; border-radius: 10px; background: rgba(9, 22, 17, 0.86); border: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 0.6875rem; color: #a9bbb3; }
.mv-legend[hidden] { display: block !important; visibility: hidden; opacity: 0; }
.mv-legend { transition: opacity 0.5s var(--ease); }
.mv-legend .lg-t { display: block; font-weight: 700; color: #dfe9e4; margin-bottom: 5px; }
.mv-legend .lg-bar { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(16, 24, 30) 0%, rgb(21, 58, 66) 15%, rgb(24, 112, 96) 35%, rgb(62, 176, 120) 55%, rgb(170, 222, 140) 75%, rgb(232, 240, 186) 90%, rgb(252, 248, 232) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.mv-legend .lg-s { display: flex; justify-content: space-between; margin-top: 3px; font-variant-numeric: tabular-nums; }
.mv-stage:not(.is-ready) .mv-over { opacity: 0; }
.mv-pin { position: absolute; z-index: 3; width: 0; height: 0; opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.mv-pin.is-on { opacity: 1; }
.mv-pin i { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(7, 18, 15, 0.45); }
.mv-pin i::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(216, 243, 106, 0.6); }
.mv-pin b { position: absolute; left: 22px; top: -12px; padding: 4px 8px; border-radius: 6px; background: rgba(7, 18, 15, 0.88); border: 1px solid rgba(216, 243, 106, 0.45); color: #fff; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.mv-pin.flip b { left: auto; right: 22px; }
.mv-pin[data-pin='1'] b { top: auto; bottom: 22px; left: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .mv-pin.is-on i::after { animation: mv-pulse 2.2s var(--ease) infinite; }
}
@keyframes mv-pulse { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------------------------------------------------------------- 5b stage: charts */
[data-player='sun'] .mv-stage { display: grid; min-height: 430px; padding: 18px 18px 12px; }
.mv-scene { grid-area: 1 / 1; min-width: 0; align-self: center; }
.js .mv-win.is-live .mv-scene { transition: opacity 0.5s var(--ease), visibility 0s linear 0s; }
.js .mv-win.is-live .mv-scene:not(.is-on) { visibility: hidden; opacity: 0; transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s; }
html:not(.js) [data-player='sun'] .mv-stage { gap: 24px; }
html:not(.js) .mv-scene { grid-area: auto; }
.mv-prov { display: flex; flex-direction: column; }
.mv-prov select { min-width: 240px; height: 42px; padding: 0 36px 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: #0e1f19 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b3c3bb' stroke-width='1.5'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; color: #eef4f0; font: inherit; font-size: 0.92rem; -webkit-appearance: none; appearance: none; }
.mv-prov select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mv-prov select:disabled { opacity: 0.5; }
.mv-pcard { flex: 1 1 420px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(216, 243, 106, 0.3); font-size: 0.84rem; }
.mv-pcard .pc-name { margin: 0 0 6px; font-size: 1.05rem; color: #fff; }
.mv-pcard .pc-name span { margin-left: 6px; font-size: 0.8rem; color: #8a9b93; }
.mv-pcard .pc-k { margin: 10px 0 4px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-mint); }
.mv-pcard .pc-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.mv-pcard .pc-dl > div { padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.mv-pcard dt { font-size: 0.6875rem; color: #a9bbb3; line-height: 1.3; }
.mv-pcard dd { margin: 2px 0 0; font-weight: 750; font-size: 1rem; color: #fff; font-variant-numeric: tabular-nums; }
.mv-pcard dd small { font-weight: 600; font-size: 0.6875rem; color: #8a9b93; }
.mv-pcard .pc-note { margin: 8px 0 0; color: #d8e6df; font-size: 0.8rem; line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--accent); }

/* ---------------------------------------------------------------- 5c stage: canopy survey */
[data-player='survey'] .mv-stage { display: grid; grid-template-areas: 'map'; place-items: center; min-height: 440px; padding: 22px; }
.sv-map { grid-area: map; position: relative; width: 100%; aspect-ratio: var(--ar); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(66, 211, 156, 0.35), 0 20px 50px rgba(0, 0, 0, 0.45); }
.sv-map canvas, .sv-map .sv-plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv-crop { fill: none; stroke: rgba(66, 211, 156, 0.6); stroke-width: 0.8; }
.sv-path { fill: none; stroke: rgba(216, 243, 106, 0.4); stroke-width: 0.9; stroke-dasharray: 2 2.5; }
.sv-pt circle { fill: #0b1a15; stroke: #eef4f0; stroke-width: 0.9; transition: fill 0.3s, stroke 0.3s; }
.sv-pt.is-hit circle { fill: var(--accent); stroke: #07120f; }
.sv-sensor .halo { fill: rgba(216, 243, 106, 0.22); }
.sv-sensor .ring { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.sv-sensor .core { fill: #fff; }
.sv-sensor { transition: opacity 0.4s; }
.mv-win:not([data-step='0']) .sv-sensor, html:not(.js) .sv-sensor { opacity: 0; }
.sv-plan.is-static .sv-pt, .sv-plan.is-static .sv-path, .sv-plan.is-static .sv-sensor { display: none; }
.sv-night { position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 50%, rgba(8, 14, 40, 0) 40%, rgba(8, 14, 40, 0.7) 100%); mix-blend-mode: multiply; opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none; }
.sv-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 8px; background: rgba(7, 18, 15, 0.86); border: 1px solid rgba(216, 243, 106, 0.45); color: #fff; font-size: 0.76rem; font-weight: 700; opacity: 0; transform: translateY(-6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.sv-chip svg, .sv-day p svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.mv-win[data-step='1'] .sv-night { opacity: 1; }
.mv-win[data-step='1'] .sv-chip { opacity: 1; transform: none; }
.sv-day, .sv-spec, .sv-report { grid-area: map; position: absolute; right: 18px; top: 18px; z-index: 4; width: min(300px, 46%); padding: 12px 14px; border-radius: 12px; background: rgba(9, 22, 17, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #eef4f0; font-size: 0.78rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s; }
.mv-win[data-step='1'] .sv-day, .mv-win[data-step='2'] .sv-spec, .mv-win[data-step='3'] .sv-report { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease) 0.15s, transform 0.5s var(--ease) 0.15s, visibility 0s; }
.sv-day { top: auto; bottom: 18px; width: min(240px, 40%); }
.sv-day p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; }
.sv-curve { display: block; width: 100%; height: 34px; }
.sv-curve path { fill: none; stroke: #ffd27a; stroke-width: 1.6; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.6s var(--ease) 0.4s; }
.mv-win[data-step='1'] .sv-curve path { stroke-dashoffset: 0; }
.sv-t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.82rem; font-weight: 750; color: #fff; }
.sv-t svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.sv-bar { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #6a3fc4 0%, #4f6df5 14%, #3fa7d8 24%, #4fbf73 36%, #c8d84a 47%, #f2a93b 57%, #e0453b 70%, #a8324a 82%, #5a1626 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.sv-bar span { position: absolute; top: -5px; bottom: -5px; border: 1.5px solid #fff; border-radius: 4px; }
.sv-bar .fr { border-style: dashed; }
.sv-ticks { position: relative; height: 16px; margin-top: 6px; font-size: 0.6875rem; color: #8a9b93; font-variant-numeric: tabular-nums; }
.sv-ticks span { position: absolute; transform: translateX(-50%); }
.sv-spec ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.sv-spec li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.sv-spec li span { font-weight: 700; }
.sv-spec li.fr span::before, .sv-spec li.par span::before { content: ''; display: inline-block; width: 14px; height: 8px; margin-right: 7px; border: 1.5px solid #fff; border-radius: 2px; }
.sv-spec li.fr span::before { border-style: dashed; }
.sv-spec li i, .sv-report i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.sv-spec li small { color: #8a9b93; font-size: 0.6875rem; }
.sv-report { width: min(320px, 48%); }
.sv-report dl { margin: 0 0 8px; display: grid; gap: 5px; }
.sv-report dl > div { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 8px; }
.sv-report dt { color: #a9bbb3; font-size: 0.72rem; }
.sv-report dd { margin: 0; }
.sv-report table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.sv-report th, .sv-report td { padding: 5px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: none; position: static; text-align: left; color: #a9bbb3; font-size: 0.6875rem; letter-spacing: 0.04em; }
.sv-report td:first-child { width: 22px; font-variant-numeric: tabular-nums; }
.sv-report tbody tr:hover td { background: none; }
.sv-flag { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 700; color: #ffb3c6; font-size: 0.74rem; }
.sv-flag svg { width: 16px; height: 16px; flex: none; }
.sv-cap { position: absolute; left: 22px; bottom: 6px; margin: 0; font-size: 0.6875rem; color: #8a9b93; }
.mv-lgd { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8rem; color: #b3c3bb; }
.mv-lgd li { display: inline-flex; align-items: center; gap: 8px; }
.mv-lgd .sw { width: 16px; height: 12px; border-radius: 3px; flex: none; }
.mv-lgd .sw.crop { background: linear-gradient(90deg, rgb(62, 176, 120), rgb(232, 240, 186)); box-shadow: 0 0 0 1px rgba(66, 211, 156, 0.8); }
.mv-lgd .sw.path { background: repeating-linear-gradient(45deg, #0b1813 0 3px, rgba(238, 244, 240, 0.3) 3px 4.5px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.mv-lgd .sw.pt { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px #07120f, 0 0 0 2.5px rgba(216, 243, 106, 0.4); }

.mv-phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.mv-phases .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.mv-ph-n { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--chip); color: var(--chip-fg); }
.mv-ph-n svg { width: 24px; height: 24px; }
.mv-phases h3 { margin: 0; }
@media (max-width: 760px) { .mv-phases { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- uniformity, labels, data */
.mv-usplit { align-items: center; }
.mv-ucard { padding: 16px; border-radius: var(--r-xl); background: radial-gradient(120% 90% at 85% 0%, rgba(15, 154, 108, 0.2) 0%, rgba(10, 24, 19, 0) 55%), var(--ink-1); color: #eef4f0; border: 1px solid rgba(66, 211, 156, 0.16); box-shadow: var(--shadow-lg); }
.mv-ucard .fc-top { display: flex; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; font-size: 0.78rem; font-weight: 650; color: #a9bbb3; }
.mv-ucard .fc-chip { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.mv-ucard .mv-lgd { margin: 12px 2px; }
.mv-defs { margin: 20px 0 0; display: grid; gap: 0; }
.mv-defs > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.mv-defs dt { font-weight: 750; font-variant-numeric: tabular-nums; }
.mv-defs dd { margin: 0; color: var(--fg-2); }
.mv-usplit .note a { text-decoration: none; color: inherit; }
.mv-usplit .note a:hover { color: var(--link); text-decoration: underline; }
.mv-labs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mv-lab p { color: var(--fg); }
.mv-lab .mv-where { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg-2); }
.mv-lab { display: flex; flex-direction: column; }
.mv-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .mv-labs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mv-labs, .mv-data { grid-template-columns: 1fr; } .mv-kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mv-defs > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  .mv-body { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 960px) {
  .mv-body { grid-template-columns: 1fr; }
  .mv-side { padding: 2px 2px 0; }
  [data-player='calc'] .mv-stage { height: auto; display: flex; flex-direction: column; }
  [data-player='calc'] .mv-canvas { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 10; }
  [data-player='calc'] .mv-over { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 0 10px 10px; pointer-events: auto; }
  .mv-fc, .mv-legend { position: static; width: auto; }
  .mv-legend[hidden] { display: block !important; visibility: visible; opacity: 1; }
}
@media (max-width: 700px) {
  .mv-win { border-radius: 16px; }
  .mv-win .aw-bar { padding: 0 12px; gap: 10px; }
  .mv-win .aw-dots { display: none; }
  .mv-win .aw-title { font-size: 0.76rem; }
  .mv-tabs { display: flex; padding: 10px 10px 0; gap: 2px; }
  .mv-tab { flex: 0 0 auto; padding: 8px 8px 0; min-height: 48px; }
  .mv-tab[aria-selected='true'] { flex: 1 1 auto; }
  .mv-tab:not([aria-selected='true']) > span b { display: none; }
  .mv-tab i { margin: auto -8px 0; }
  .mv-body { padding: 10px 10px 12px; gap: 12px; }
  [data-player='calc'] .mv-canvas { aspect-ratio: 4 / 3; }
  [data-player='calc'] .mv-over { grid-template-columns: 1fr; }
  .mv-fc .fc-val { font-size: 1.4rem; }
  .mv-pin b { display: none; }
  [data-player='sun'] .mv-stage { min-height: 0; padding: 12px 8px 8px; }
  [data-player='survey'] .mv-stage { grid-template-areas: 'map' 'slot'; gap: 12px; min-height: 0; padding: 12px 10px 28px; }
  .sv-day, .sv-spec, .sv-report { grid-area: slot; position: relative; right: auto; top: auto; bottom: auto; width: 100%; }
  html.js .mv-win:not([data-step='1']) .sv-day, html.js .mv-win:not([data-step='2']) .sv-spec, html.js .mv-win:not([data-step='3']) .sv-report { display: none; }
  .sv-chip { font-size: 0.6875rem; padding: 4px 8px 4px 6px; }
  .sv-cap { left: 12px; bottom: 8px; }
  .mv-foot { padding: 12px; gap: 12px 20px; }
  .mv-seg button { padding: 0 9px; min-width: 42px; height: 40px; }
  .mv-prov, .mv-prov select { width: 100%; min-width: 0; }
  .mv-h { font-size: 1.18rem; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mv-chart .mk, .mv-chart .mk-l, .mv-chart .bar, .strip .dot, .mv-panel, .mv-scene, .sv-pt circle, .sv-day, .sv-spec, .sv-report, .sv-chip, .sv-night, .mv-pin, .mv-legend, .sv-curve path { transition: none !important; animation: none !important; }
}
