/* LUMIX S1II interactive page. Editorial technical look: warm grey, near-white panels, hairlines, one red. */
:root {
  --bg: #eceae6; --bg-2: #e2dfda; --panel: rgba(251, 250, 248, 0.94); --panel-solid: #fbfaf8;
  --ink: #16171a; --ink-2: #4f525a; --ink-3: #5c5f66; --line: rgba(22, 23, 26, 0.12); --line-2: rgba(22, 23, 26, 0.2);
  --accent: #d2161f; --accent-soft: rgba(210, 22, 31, 0.14);
  /* the studio site's typefaces (index.html loads them without blocking): Archivo for titles, labels and text, IBM Plex Mono
     for values (as tungstene.css); the system fonts until they arrive, or if they never do */
  --sans-sys: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono-sys: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Archivo", var(--sans-sys);
  --mono: "IBM Plex Mono", var(--mono-sys);
  --r: 10px; --pad: 16px; --gut: 20px;
  color-scheme: light;
}
/* the film keeps the system fonts: its frames never depend on the network (same images on every render, as delivered) */
html.film { --sans: var(--sans-sys); --mono: var(--mono-sys); }
/* IBM Plex Mono comes in 400 and 500 only: a heavier weight asked of it uses 500 instead of a smeared synthetic bold */
html { font-synthesis-weight: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 13px/1.4 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.mono, output, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.noscript { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; margin: 0; padding: 24px; background: var(--bg); text-align: center; font-size: 15px; }

/* ---------- layout (desktop) ---------- */
.app {
  position: fixed; inset: 0; pointer-events: none;
  display: grid; gap: 12px 18px; padding: var(--gut) var(--gut) 8px;
  grid-template-columns: minmax(236px, 272px) minmax(0, 1fr) minmax(264px, 304px);
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "head . lang" "read . info" "read . views" "opt opt mech" "foot foot foot";
}
.stage { position: fixed; inset: 0; pointer-events: auto; touch-action: none; }
.stage canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.panels { display: contents; }
.masthead, .prefs, .lang, .panel, .footer, .tabs { position: relative; z-index: 2; }
.panel { pointer-events: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px var(--pad); min-height: 0; }

.masthead { grid-area: head; pointer-events: none; }
.masthead h1 { margin: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 700; }
.mh-body { font-size: 26px; letter-spacing: -0.02em; line-height: 1.05; font-stretch: 88%; }
.mh-lens { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); }
.mh-intro { margin: 8px 0 0; max-width: 34ch; color: var(--ink-2); font-size: 12.5px; }

.prefs { grid-area: lang; justify-self: end; align-self: start; pointer-events: auto; display: flex; align-items: center; gap: 6px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); overflow: hidden; }
/* sound and theme switches: round icon buttons beside FR / EN (pressed = sound on, night theme) */
.pref-btn { display: grid; place-items: center; width: 34px; height: 26px; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--ink-2); cursor: pointer; }
.pref-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.pref-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pref-btn .spk { fill: currentColor; stroke: none; }
.pref-btn[aria-pressed="true"] .off, .pref-btn[aria-pressed="false"] .on { display: none; }
#btnTheme[aria-pressed="true"] .sun, #btnTheme[aria-pressed="false"] .moon { display: none; }
#btnTheme .moon { fill: currentColor; stroke: none; }
.lang button { border: 0; background: none; padding: 5px 11px; font: 600 11px var(--mono); letter-spacing: 0.08em; cursor: pointer; color: var(--ink-2); min-width: 40px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.p-readouts { grid-area: read; overflow: auto; display: flex; flex-direction: column; gap: 14px; align-self: start; max-height: 100%; }
.p-info { grid-area: info; overflow: auto; align-self: start; max-height: 100%; }
/* Scrolling panels show a soft shade at the edge where more content waits. The two covers scroll with the
   content (attachment local) and hide the matching shade once that end is reached. */
.p-readouts, .p-info, .panels { --cover: var(--panel-solid); --cover-0: rgba(251, 250, 248, 0); --shade: rgba(22, 23, 26, 0.1); --shade-0: rgba(22, 23, 26, 0); }
.p-readouts, .p-info {
  background:
    linear-gradient(var(--cover) 45%, var(--cover-0)) top / 100% 30px no-repeat local,
    linear-gradient(var(--cover-0), var(--cover) 55%) bottom / 100% 30px no-repeat local,
    linear-gradient(var(--shade), var(--shade-0)) top / 100% 12px no-repeat scroll,
    linear-gradient(var(--shade-0), var(--shade)) bottom / 100% 16px no-repeat scroll,
    var(--panel);
}
.p-views { grid-area: views; align-self: end; }
.p-optics { grid-area: opt; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, 190px); gap: 22px; padding: 12px 18px 8px; }
.p-mech { grid-area: mech; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: center; }
.footer { grid-area: foot; pointer-events: auto; font-size: 10.5px; color: var(--ink-3); }
.footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.footer p { margin: 0; text-wrap: pretty; flex: 0 1 auto; min-width: 0; }
/* the studio's site and booking link (full page only): discreet, at the end of the credit line */
.site-links { display: flex; gap: 14px; margin-left: auto; white-space: nowrap; }
.site-links a { position: relative; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.site-links a:hover { color: var(--ink); text-decoration-color: currentColor; }
.site-links a::before { content: ""; position: absolute; inset: -7px -5px; } /* a 24 px tall target */
.embed .site-links, .film .site-links, .uifilm .site-links { display: none; }
.tabs { display: none; }

/* ---------- readouts ---------- */
.ro-label, .kicker, .ctl-label { font-size: 10px; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.ro-label-2 { margin-top: 10px; }
.ro-big { font: 500 50px/1 var(--mono); letter-spacing: -0.05em; margin-top: 4px; }
.ro-big small { font-size: 15px; letter-spacing: 0; margin-left: 6px; color: var(--ink-2); }
.ro-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ro-val { font: 500 21px/1.15 var(--mono); letter-spacing: -0.02em; }
.ro-dof { font-size: 15px; letter-spacing: -0.01em; margin-top: 4px; }
.ro-note { font: 600 9px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-style: normal; margin-left: 6px; vertical-align: middle; border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 4px; }
/* angle of view: the CALCULÉ badge sits beside the value, or under it when the panel is narrow */
.ro-aov .ro-row { gap: 8px; }
.ro-aov .wedge { width: 84px; height: 46px; }
.ro-aov .ro-val { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 3px; min-width: 0; }
.ro-aov .ro-note { margin-left: 0; }
.nowrap { white-space: nowrap; }
.ro-sub { font-size: 11px; color: var(--ink-2); margin-top: 5px; line-height: 1.45; }
.ro + .ro { border-top: 1px solid var(--line); padding-top: 12px; }
.src { font-size: 10px; letter-spacing: 0.04em; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; white-space: nowrap; }
.src:hover { color: var(--accent); }
.wedge { width: 92px; height: 50px; flex: none; }
.wedge-fill { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; stroke-linejoin: round; }
.wedge-arc { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 2; }
.wedge-cam { fill: var(--ink); }
.iris { width: 62px; height: 62px; flex: none; }
.iris-ring { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.iris-blades { fill: #2a2c31; fill-rule: evenodd; }
.iris-edges { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 0.7; }
.dof { position: relative; height: 6px; margin: 8px 0 2px; border-radius: 3px; background: linear-gradient(90deg, var(--line) 0 100%); }
.dof i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 3px; background: var(--ink); transition: left .25s, width .25s; }
.dof b { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--accent); transition: left .25s; }

/* ---------- info panel ---------- */
.info-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.info-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.info-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 11px var(--mono); flex: none; }
.icon-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; line-height: 1; font-size: 12px; }
.info-hint { margin: 0 0 8px; color: var(--ink-2); font-size: 12px; }
.facts { margin: 0; }
.facts div { padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 10px; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.facts dd { margin: 3px 0 0; font-size: 13px; line-height: 1.35; }
.info-keys { margin: 10px 0 0; font-size: 10.5px; color: var(--ink-3); }
.hl { padding: 9px 0 2px; border-top: 1px solid var(--line); }
.hl-head { font-size: 10px; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2); }
.hl-hint { font: 500 10.5px var(--sans); letter-spacing: 0; text-transform: none; font-style: normal; color: var(--ink-3); white-space: nowrap; }
.hl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.hl-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 10px 4px 8px; min-height: 30px; cursor: pointer; font: 600 11px var(--mono); letter-spacing: 0.06em; }
.hl-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.hl-chip b { font-weight: 500; color: var(--ink-2); }
.hl-chip:hover { border-color: var(--ink); }
.hl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hl-chip[aria-pressed="true"] b { color: rgba(255, 255, 255, 0.75); }

/* ---------- views and toggles ---------- */
.p-views .kicker + * { margin-top: 8px; }
.p-views .kicker:not(:first-child) { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 11px; cursor: pointer; font-size: 12px; min-height: 30px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tog { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 6px 9px; cursor: pointer; font-size: 12px; text-align: left; min-height: 32px; }
.tog i { width: 22px; height: 12px; border-radius: 6px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tog[aria-pressed="true"] i { background: var(--ink); }
.tog[aria-pressed="true"] i::after { transform: translateX(10px); }
.tog span { flex: 1; line-height: 1.15; } /* a long label ('Chemin de la lumière') wraps on narrow side columns */
.tog-row, .tog:last-child:nth-child(odd) { grid-column: 1 / -1; } /* the light path and the auto tour (and an odd last toggle) take the whole row: the label stays on one line */
kbd { font-size: 9.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; line-height: 14px; background: #fff; }

/* ---------- controls ---------- */
.ctl { min-width: 0; }
.ctl-label { display: flex; align-items: center; gap: 5px; }
.ctl-label output { margin-left: auto; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 2px 0 0; background: transparent; cursor: pointer; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.marks { position: relative; height: 20px; }
.mark { position: absolute; top: 0; transform: translateX(-50%); border: 0; background: none; padding: 2px 3px; font: 500 10.5px var(--mono); color: var(--ink-2); cursor: pointer; border-radius: 4px; }
.mark::before { content: ""; position: absolute; left: 50%; top: -3px; width: 1px; height: 4px; background: var(--line-2); }
.mark:hover, .mark.on { color: var(--ink); font-weight: 700; }
.mark.on::before { background: var(--accent); }
span.mark { cursor: default; }
.mark.tick { font-size: 0; width: 10px; height: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; margin-top: 6px; }
.seg button { border: 0; background: #fff; padding: 5px 14px; font: 600 12px var(--mono); letter-spacing: 0.06em; cursor: pointer; min-height: 30px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ctl-note { margin: 6px 0 0; font-size: 10.5px; line-height: 1.35; color: var(--ink-2); }
.btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 7px 10px; min-height: 38px; cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; }
.btn:hover { border-color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn kbd { margin-left: 2px; }
.btn-shutter { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-shutter:hover { border-color: #9e0f16; background: #bd131b; }
.btn-shutter kbd { background: transparent; color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.45); }
.btn-shutter .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.app.busy .btn-shutter { opacity: 0.7; }

/* ---------- markers and caption ---------- */
.markers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.app.lp-on .markers { display: none; } /* light path: the numbered markers would sit on the rays (one on the convergence point) */
/* A marker rests as a small dot and grows to show its number on hover, keyboard focus or selection.
   The button keeps its full size (the dot is scaled, so nothing moves) and ::before gives a 44 px target. */
.marker { --s: 0.55; position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 50%; background: none; color: transparent; font: 700 10px/1 var(--mono); display: grid; place-items: center; cursor: pointer; pointer-events: auto; transition: opacity .18s, color .15s, visibility 0s; will-change: transform; }
.marker::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; }
.marker::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; border: 2px solid #fff; background: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transform: scale(var(--s)); transition: transform .15s, background .15s; }
.marker:focus-visible, .marker.sel { --s: 1; color: #fff; }
@media (hover: hover) { .marker:hover { --s: 1; color: #fff; } }
/* hidden markers leave the tab order too (visibility switches once the fade is over) */
.marker.off, .app.no-labels .marker { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s, color .15s, visibility 0s .18s; }
.marker.sel::after { background: var(--accent); }
.marker .tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font: 600 11px var(--sans); padding: 4px 8px; border-radius: 5px; opacity: 0; pointer-events: none; transition: opacity .15s; }
@media (hover: hover) { .marker:hover .tip, .marker:focus-visible .tip { opacity: 1; } }
.caption { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(560px, calc(100% - 32px)); background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .25s; pointer-events: none; }
.caption.on { opacity: 1; }
.caption-tag { font: 700 9.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #ff6b70; }
.caption-tag:empty { display: none; }
.caption-bar { width: 54px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; flex: none; }
.caption-bar i { display: block; height: 100%; width: 0; background: #fff; }
.caption:not(.progress) .caption-bar { display: none; }

/* ---------- live view (Visée): panel block ---------- */
.p-lvslot { display: none; }
.lv { display: flex; flex-direction: column; gap: 6px; }
.lv-head { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.lv-head .ro-label { flex: 1; font-size: 10px; }
.lv-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 5px; }
.lv.mf .lv-badge { color: var(--accent); border-color: var(--accent); }
.lv-btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; }
.lv-btn svg { width: 13px; height: 13px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lv-btn:hover { border-color: var(--ink); }
.lv-frame { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; cursor: crosshair; background: radial-gradient(ellipse at 50% 40%, #2a2c31, #101114 75%); box-shadow: inset 0 0 0 1px rgba(22, 23, 26, 0.18); }
.lv.mf .lv-frame { cursor: default; }
.lv-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.lv:not(.ready) .lv-frame::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: rgba(255, 255, 255, 0.7); animation: lv-spin 0.9s linear infinite; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
.lv-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.lv-af { position: absolute; z-index: 1; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: linear-gradient(#fff, #fff) 0 0 / 7px 1.5px, linear-gradient(#fff, #fff) 0 0 / 1.5px 7px, linear-gradient(#fff, #fff) 100% 0 / 7px 1.5px, linear-gradient(#fff, #fff) 100% 0 / 1.5px 7px,
    linear-gradient(#fff, #fff) 0 100% / 7px 1.5px, linear-gradient(#fff, #fff) 0 100% / 1.5px 7px, linear-gradient(#fff, #fff) 100% 100% / 7px 1.5px, linear-gradient(#fff, #fff) 100% 100% / 1.5px 7px;
  background-repeat: no-repeat; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6)); }
.lv-away { position: absolute; inset: 0; display: none; place-items: center; padding: 8px; text-align: center; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.lv.away .lv-away { display: grid; }
.lv-hint { margin: 0; font-size: 10.5px; line-height: 1.35; color: var(--ink-3); transition: color .2s; }
.lv-hint.flash { color: var(--accent); }
.p-readouts .lv { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.p-readouts .lv + .ro, .lv-home + .ro { border-top: 0; padding-top: 0; }

/* ---------- live view enlarged (visitor), or shown by the tour and the film ---------- */
.lvx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.lvx-backdrop { position: absolute; inset: 0; background: rgba(236, 234, 230, 0.84); opacity: 0; pointer-events: none; }
.lvx[data-mode="user"] .lvx-backdrop { opacity: 1; pointer-events: auto; animation: lvx-fade .25s ease-out; }
.lvx-box { position: fixed; left: 0; top: 0; width: 0; height: 0; border-radius: 10px; overflow: hidden; background: #0d0e10;
  box-shadow: 0 18px 50px rgba(22, 23, 26, 0.28), 0 2px 8px rgba(22, 23, 26, 0.18), 0 0 0 1px rgba(22, 23, 26, 0.25); }
.lvx-box.from-lcd { border-radius: 4px; }
.lvx-box.flat { border-radius: 0; box-shadow: none; } /* film: on the rear screen, the whole frame, or one side of the split */
.lvx[data-fit="contain"] .lv-canvas { object-fit: contain; }
.film-9x16.split-on .lvx-frame { border-radius: 1.2vw; overflow: hidden; } /* the split panel is flat, the picture in it rounded */
.lvx[data-mode="user"] .lvx-box { pointer-events: auto; animation: lvx-pop .3s cubic-bezier(.2, .8, .2, 1); }
.lvx[data-mode="tour"] .lvx-box { pointer-events: auto; } /* a press on the tour's card stops the tour and never reaches a part behind it */
.lvx[data-mode="tour"] .lvx-frame { cursor: default; }
.lvx-frame { position: absolute; inset: 0; cursor: crosshair; }
.lvx.mf .lvx-frame { cursor: default; }
.lvx-frame .lv-af { width: 11%; }
.lvx-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(251, 250, 248, 0.92); }
.lvx:not([data-mode="user"]) .lvx-close { display: none; }
@keyframes lvx-fade { from { opacity: 0; } }
@keyframes lvx-pop { from { opacity: 0; transform: scale(0.94); } }

/* ---------- guided tour: button, lower third, quiet page while it runs ---------- */
.btn-tour { width: 100%; margin-bottom: 14px; background: var(--ink); border-color: var(--ink); color: #fff; justify-content: flex-start; padding-left: 14px; }
.btn-tour:hover { background: #2a2c31; border-color: #2a2c31; }
.btn-tour .play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn-tour[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.btn-tour[aria-pressed="true"] .play { width: 9px; height: 9px; border: 0; border-radius: 1px; background: currentColor; }
.btn-tour span[data-tour-label] { flex: 1; text-align: left; }
.btn-tour kbd { background: transparent; color: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.4); }
.touring .markers, .touring .caption { opacity: 0 !important; visibility: hidden; }
/* desktop: the panels step back while the tour runs (close-ups may pass under them); hover brings one back */
@media (min-width: 760px) and (min-height: 521px) {
  .app.touring .panel, .app.touring .masthead { opacity: 0.38; transition: opacity .45s; }
  .app.touring .panel:hover, .app.touring .panel:focus-within { opacity: 1; }
}
/* view in your room (AR, where the device supports it): under the tour button, and on phones a pill on the 3D stage */
.btn-ar { width: 100%; margin: -6px 0 14px; justify-content: flex-start; padding-left: 12px; }
.btn-ar svg, .ar-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.ar-pill { display: none; }
/* light path tag (the rays are schematic), in place of the illustrative tag (hidden meanwhile), and its note under it: what is
   computed and what is drawn, with the computed values of the current state */
.lp-tag { position: fixed; z-index: 44; left: calc(var(--lt-left, 0px) + 14px); top: calc(var(--lt-top, 0px) + 10px); pointer-events: none;
  font: 650 9.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(251, 250, 248, 0.88); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px 5px 9px; }
.lp-tag::before { content: ""; display: inline-block; width: 12px; height: 2px; margin-right: 7px; border-radius: 1px; background: linear-gradient(90deg, #ffd27a, #ff9e5e); vertical-align: 2px; }
.lp-note { position: fixed; z-index: 44; left: calc(var(--lt-left, 0px) + 14px); top: calc(var(--lt-top, 0px) + 40px); pointer-events: none;
  width: max-content; max-width: min(330px, calc(100vw - var(--lt-left, 0px) - var(--lt-right, 0px) - 28px));
  background: rgba(251, 250, 248, 0.9); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px 8px 10px;
  font-size: 11px; line-height: 1.4; color: var(--ink-2); }
.lp-note p { margin: 0; text-wrap: pretty; }
.lp-vals { margin-top: 5px !important; color: var(--ink); }
.lp-vals .ro-note { margin: 0 4px 0 0; }
.lp-vals b { font-weight: 500; white-space: nowrap; }
.lp-v { white-space: nowrap; }
.lp-sep { color: var(--ink-3); }
/* illustrative tag: the inner mechanisms on screen are an interpretation */
.illus { position: fixed; z-index: 44; left: calc(var(--lt-left, 0px) + 14px); top: calc(var(--lt-top, 0px) + 10px); pointer-events: none;
  font: 650 9.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(251, 250, 248, 0.88); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px 5px 9px; }
.illus::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.lt { --lt-d: 1; position: fixed; z-index: 45; left: calc(var(--lt-left, 0px) + 22px); bottom: calc(var(--lt-bottom, 0px) + 18px);
  display: flex; flex-direction: column; gap: 3px; max-width: min(600px, calc(100vw - var(--lt-left, 0px) - var(--lt-right, 0px) - 44px));
  padding: 10px 18px 11px 15px; border-left: 3px solid var(--accent); border-radius: 0 9px 9px 0; background: rgba(251, 250, 248, 0.93);
  box-shadow: 0 8px 28px rgba(22, 23, 26, 0.1); opacity: 0; pointer-events: none; transform: translateY(calc(var(--lt-d) * 12px)); }
.lt-k { font: 700 9.5px/1.2 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.lt-x { display: grid; font-size: 18px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; text-wrap: balance; }
.lt-x > span { grid-area: 1 / 1; }
.lt-s { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.lt-s:empty { display: none; }
/* film end card: wordmark, product line, address, and the legal line at the bottom (sizes follow the frame height) */
.endcard { position: absolute; z-index: 4; inset: 0; pointer-events: none; color: var(--ink); }
.ec-main { position: absolute; left: 0; right: 0; top: 63.5%; display: flex; flex-direction: column; align-items: center; text-align: center;
  transform: translateY(calc(var(--ec-d, 0) * 1.8vh)); }
.ec-brand { font-size: 6.6vh; font-weight: 750; letter-spacing: 0.32em; margin-right: -0.32em; line-height: 1; white-space: nowrap; }
.ec-line { font-size: 2.3vh; font-weight: 600; letter-spacing: 0.07em; color: var(--ink-2); }
.ec-line::before { content: ""; display: block; width: 3.4em; height: max(2px, 0.22vh); margin: 2.2vh auto 2vh; background: var(--accent); }
.ec-url { margin-top: 1.1vh; font: 500 2.1vh var(--mono); letter-spacing: 0.12em; color: var(--ink-2); }
.ec-legal { position: absolute; left: 6%; right: 6%; bottom: 3.6%; text-align: center; font-size: 1.6vh; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink-3); }

/* ---------- film (?film=16x9 | 9x16): no interface, the stage fills the frame, captions sized to the frame ---------- */
.film .masthead, .film .prefs, .film .lp-tag, .film .lp-note, .film .ar-pill, .film .tabs, .film .panels, .film .footer, .film .loader, .film .markers, .film .caption { display: none !important; }
.film .app { display: block !important; padding: 0 !important; }
.film .stage { position: fixed !important; inset: 0 !important; height: auto !important; flex: none !important; }
.film .stage canvas { cursor: default; }
.film .lt, .film .lvx-box, .film .endcard, .film .lvx-backdrop { transition: none !important; animation: none !important; }
.film:not(.film-captions) .lt { display: none !important; }
.film .lt { left: 5.5vw; bottom: 7.5vh; max-width: 60vw; gap: 0.35vw; padding: 1.05vw 1.8vw 1.15vw 1.5vw; border-left-width: 0.3vw; border-radius: 0 0.9vw 0.9vw 0; transform: translateY(calc(var(--lt-d) * 1.2vw)); }
.film.split-on .lt { max-width: 35vw; } /* inside the model part of the split (44 % of the width) */
.film.lv-screen .lt { bottom: 17vh; } /* the live view fills the frame: its readouts keep the bottom */
.film:not(.film-9x16).lv-screen .lt { left: auto; right: 4vw; max-width: 40vw; } /* 16:9: on the blurred background, clear of the clapperboard */
.film .illus { left: 3vw; top: 4.2vh; font-size: 1.45vh; padding: 0.75vh 1.3vh 0.75vh 1.15vh; border-width: max(1px, 0.1vh); }
.film .illus::before { width: 0.85vh; height: 0.85vh; margin-right: 0.9vh; vertical-align: 0.12vh; }
.film .lt-k { font-size: 0.95vw; }
.film .lt-x { font-size: 2vw; }
.film .lt-s { font-size: 1.2vw; }
.film .lvx-box { border-radius: 0.6vw; }
.film .lvx-box.flat { border-radius: 0; } /* the split panel, the full frame and the rear screen: square corners (no sliver at the frame edge) */
/* 9:16: every text inside the social safe area (14 % top, 22 % bottom, 15 % right) */
.film-9x16 .lt { left: 6vw; bottom: 23vh; max-width: 79vw; gap: 0.8vw; padding: 2.4vw 3.6vw 2.6vw 3.2vw; border-left-width: 0.7vw; border-radius: 0 2vw 2vw 0; transform: translateY(calc(var(--lt-d) * 2.6vw)); }
.film-9x16.split-on .lt, .film-9x16.lv-screen .lt { top: 14.5vh; bottom: auto; max-width: 79vw; }
/* 9:16 split: a more compact card, so the diaphragm and the camera keep their room between it and the live view panel */
.film-9x16.split-on .lt { gap: 0.5vw; padding: 1.9vw 3vw 2.1vw 2.8vw; }
.film-9x16.split-on .lt-k { font-size: 2.1vw; }
.film-9x16.split-on .lt-x { font-size: 4.1vw; }
.film-9x16.split-on .lt-s { font-size: 2.6vw; }
.film-9x16 .lt-k { font-size: 2.3vw; }
.film-9x16 .lt-x { font-size: 4.6vw; }
.film-9x16 .lt-s { font-size: 2.9vw; }
.film-9x16 .illus { left: 6vw; top: 15vh; font-size: 1.3vh; }
.film-9x16 .ec-main { top: 51%; left: 5%; right: 15%; }
.film-9x16 .ec-brand { font-size: 5vh; letter-spacing: 0.2em; margin-right: -0.2em; line-height: 1.04; }
.film-9x16 .ec-brand span { display: block; }
.film-9x16 .ec-line { font-size: 1.85vh; letter-spacing: 0.04em; }
.film-9x16 .ec-line::before { margin: 1.5vh auto 1.4vh; }
.film-9x16 .ec-url { font-size: 1.75vh; margin-top: 0.8vh; }
.film-9x16 .ec-legal { left: 7%; right: 17%; bottom: auto; top: 70.8%; font-size: 1.6vh; }
.film-9x16 .lvx-box { border-radius: 1.4vw; }


/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #f4f3f0 0%, var(--bg) 60%, var(--bg-2) 100%); transition: opacity .5s; }
.loader.done { opacity: 0; pointer-events: none; }
.loader-msg { margin: 14px 0 0; font-size: 13px; line-height: 1.5; max-width: 34em; opacity: .92; }
.loader-bar.stalled { opacity: .35; }
.loader-reload { margin-top: 10px; min-height: 36px; padding: 0 16px; border-radius: 3px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.loader-box { width: min(320px, calc(100% - 48px)); }
.loader-brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.loader-brand span { display: block; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); font-weight: 600; }
.loader-bar { height: 2px; background: var(--line-2); margin: 16px 0 8px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.loader-text { font-size: 11px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.loader.error .loader-bar { display: none; }

/* ---------- embed mode (?embed=1): the host page carries the title; the credit line stays ---------- */
.embed .masthead { display: none; }
/* ?embed=1&bg=transparent: no page background and no sky of its own (gradient, glow, scanlines, stars): the host page's sky shows
   through the frame; the model, its floor shadow and the panels stay */
html.bg-clear, html.bg-clear body, html.bg-clear .stage, html.bg-clear .loader { background: transparent !important; }
html.bg-clear .stage::before { display: none !important; }
/* its colour scheme is the host's (index.html): the scrollbars of the night panels keep night colours whatever it is */
html.bg-clear[data-theme="night"] { scrollbar-color: rgba(243, 239, 231, 0.28) transparent; }
/* desktop layout only (the negation of SHEET_MQ in src/ui.js): the readouts use the masthead's row */
@media (min-width: 1101px) and (min-height: 521px), (min-width: 760px) and (min-height: 521px) and (orientation: landscape) {
  .embed .app { grid-template-areas: "read . lang" "read . info" "read . views" "opt opt mech" "foot foot foot"; }
}

/* desktop: the live view sits on top of the readouts, which tighten a little to keep the column in view */
@media (min-width: 760px) { .p-readouts { gap: 12px; } .ro-big { font-size: 42px; } }
/* desktop up to 1080 px tall: the live view block as a compact row (the picture, its title and hint beside it), so
   the computed readouts below it (focus, depth of field) stay in view without scrolling */
@media (min-width: 760px) and (max-height: 1080px) {
  .p-readouts .lv { display: grid; grid-template-columns: minmax(0, 60%) minmax(0, 1fr); grid-template-areas: "frame head" "frame hint"; grid-template-rows: auto 1fr; column-gap: 10px; row-gap: 6px; align-items: start; }
  .p-readouts .lv-frame { grid-area: frame; }
  .p-readouts .lv-head { grid-area: head; flex-wrap: wrap; gap: 6px; }
  .p-readouts .lv-head .ro-label { flex: 1 0 100%; }
  .p-readouts .lv-hint { grid-area: hint; }
}
/* up to 900 px tall: focal length and aperture side by side, smaller diagrams */
@media (min-width: 760px) and (max-height: 900px) {
  .p-readouts { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 12px; align-content: start; }
  .p-readouts > .lv-home, .p-readouts > .ro-aov, .p-readouts > .ro-focus { grid-column: 1 / -1; }
  .p-readouts > .lv-home { order: 0; } .p-readouts > .ro-focal { order: 1; } .p-readouts > .ro-ap { order: 2; } .p-readouts > .ro-aov { order: 3; } .p-readouts > .ro-focus { order: 4; }
  .p-readouts > .ro-focal, .p-readouts > .ro-ap { border-top: 0; padding-top: 0; }
  .p-readouts > .ro-ap { border-left: 1px solid var(--line); padding-left: 12px; }
  /* aperture: the diaphragm drawing beside the value, the computed entrance pupil under both */
  .p-readouts > .ro-ap .ro-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; margin-top: 4px; }
  .p-readouts > .ro-ap .ro-row > div { display: contents; }
  .p-readouts > .ro-ap .iris { width: 34px; height: 34px; }
  .p-readouts > .ro-ap .ro-val { font-size: 19px; }
  .p-readouts > .ro-ap .ro-sub { grid-column: 1 / -1; font-size: 10.5px; margin-top: 2px; }
  .p-readouts > .ro-aov { border-top: 1px solid var(--line); padding-top: 9px; }
  .p-readouts .ro-big { font-size: 34px; }
  .ro-aov .wedge { width: 64px; height: 35px; }
  .ro-aov .ro-row { margin-top: 2px; }
  .p-readouts .ro-sub { margin-top: 3px; line-height: 1.38; }
  /* focus: its value on the label's line */
  .ro-focus > .ro-label:first-child { display: inline-block; margin-right: 10px; }
  .ro-focus > .ro-val:nth-child(2) { display: inline-block; font-size: 19px; }
  .ro-focus .ro-label-2 { margin-top: 6px; }
}
/* up to 780 px tall (1280 x 720, 1024 x 768): a smaller picture and tighter spacing */
@media (min-width: 760px) and (max-height: 780px) {
  .p-readouts { row-gap: 7px; padding-top: 10px; padding-bottom: 8px; }
  .p-readouts .lv { grid-template-columns: minmax(0, 52%) minmax(0, 1fr); padding-bottom: 8px; }
  .p-readouts .lv-hint { font-size: 10px; }
  .p-readouts > .ro-aov { padding-top: 7px; }
  .p-readouts > .ro-focus { padding-top: 7px; }
  .p-readouts .ro-sub { font-size: 10px; }
  .p-readouts .dof { margin: 6px 0 2px; }
  .p-readouts .ro-dof { font-size: 14px; margin-top: 2px; }
}
/* narrow side columns (up to 1180 px wide) on short screens: labels and values keep to one line */
@media (min-width: 760px) and (max-width: 1180px) and (max-height: 900px) {
  .p-readouts .ro-label { letter-spacing: 0.07em; font-size: 9.5px; }
  .p-readouts .ro-note { margin-left: 3px; padding: 1px 3px; letter-spacing: 0.05em; font-size: 8.5px; }
  .p-readouts .ro-dof { font-size: 12px; letter-spacing: -0.03em; }
  .p-readouts > .ro-ap { padding-left: 10px; }
  .p-readouts { row-gap: 6px; padding-bottom: 6px; }
  .p-readouts .lv-hint { line-height: 1.3; }
}
/* ---------- shorter desktop screens ---------- */
@media (min-width: 760px) and (max-height: 820px) {
  .app { gap: 10px 16px; padding-top: 16px; }
  .ro-big { font-size: 40px; }
  .p-readouts { gap: 10px; padding: 12px 14px; }
  .ro + .ro { padding-top: 9px; }
  .mh-intro { display: none; }
  .info-keys { display: none; }
}
@media (min-width: 760px) and (max-width: 1366px) { .mark.minor { font-size: 0; width: 10px; height: 14px; } }
/* slider labels that would touch a neighbour keep only their tick (set by layoutMarks in src/ui.js) */
.mark.crowd { font-size: 0; width: 10px; height: 14px; }
/* touch screens in the desktop layout (tablets held sideways): 44 px targets for the small buttons */
@media (pointer: coarse) { .lang button, .pref-btn { min-width: 44px; min-height: 44px; } .icon-btn { width: 44px; height: 44px; } }
@media (min-width: 760px) and (max-width: 1720px) { .btn kbd { display: none; } } /* keeps the release label whole (the keys are listed in the info panel) */
@media (min-width: 760px) and (max-width: 1180px) {
  .app { grid-template-columns: 232px minmax(0, 1fr) 262px; gap: 10px 14px; }
  .p-optics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
  .ctl-clutch { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
  .ctl-clutch .seg { margin-top: 0; flex: none; }
  .ctl-clutch .ctl-note { margin: 0; }
  .btn kbd { display: none; }
  .ro-row > * { min-width: 0; } /* the CALCULÉ badge wraps under its value instead of being clipped */
  .wedge, .ro-aov .wedge { width: 70px; height: 38px; }
  .iris { width: 50px; height: 50px; }
  .chip { padding: 4px 9px; min-height: 28px; font-size: 11.5px; }
  .tog { padding: 5px 7px; gap: 6px; font-size: 11.5px; min-height: 30px; }
}
/* desktop layout on short windows and embeds (1000x600 iframe): compact side panels so the info panel keeps
   room for its title and hint, the credit line included */
@media (min-width: 760px) and (min-height: 521px) and (max-height: 700px) {
  .app { gap: 8px 14px; padding-top: 12px; padding-bottom: 6px; grid-template-rows: auto minmax(84px, 1fr) auto auto auto; }
  .p-readouts { gap: 8px; padding: 10px 14px; }
  .ro + .ro { padding-top: 8px; }
  .ro-big { font-size: 34px; }
  .p-info { padding: 10px 14px; }
  .info-head { margin-bottom: 4px; }
  .info-head h2 { font-size: 15px; }
  .p-views { padding: 10px 14px; }
  .p-views .kicker + * { margin-top: 6px; }
  .p-views .kicker:not(:first-child) { margin-top: 10px; }
  .chips { gap: 5px; }
  .chip { padding: 3px 8px; min-height: 26px; font-size: 11px; }
  .toggles { gap: 4px; }
  .tog { padding: 3px 7px; min-height: 26px; font-size: 11.5px; } /* four rows since the light path has its own: as tight as the chips */
  .p-optics { padding-top: 10px; padding-bottom: 6px; }
  .footer { line-height: 1.25; }
  .btn-tour { min-height: 30px; margin-bottom: 8px; padding-top: 4px; padding-bottom: 4px; }
  .btn-tour kbd { display: none; }
}
/* up to 640 px tall (1000 x 600 page or embed), or 750 px on narrow side columns: the readouts drop the live view
   hint and the 'computed' notes of the aperture, angle of view and depth of field (the CALCULÉ badges stay, the
   official values and sources too), and tighten, so the whole column fits without scrolling */
@media (min-width: 760px) and (min-height: 521px) and (max-height: 640px), (min-width: 760px) and (max-width: 1180px) and (min-height: 521px) and (max-height: 750px) {
  .p-readouts .lv-hint, .p-readouts .ro-calc, .p-readouts .ro-focus .ro-sub { display: none; }
  .p-readouts .lv { grid-template-areas: "frame head" "frame head"; padding-bottom: 6px; }
  .p-readouts { row-gap: 5px; padding-top: 8px; padding-bottom: 6px; }
  .p-readouts .ro-big { font-size: 30px; }
  .p-readouts > .ro-aov, .p-readouts > .ro-focus { padding-top: 6px; }
  .p-readouts .dof { margin: 4px 0 1px; }
  .p-readouts .ro-sub { font-size: 9.5px; line-height: 1.3; margin-top: 2px; }
  .ro-aov .wedge { width: 56px; height: 30px; }
}

/* ---------- sheet layout: canvas on top, controls in a bottom sheet with tabs ----------
   Phones, portrait tablets and landscape phones (same query as SHEET_MQ in src/ui.js). */
@media (max-width: 759px), (max-width: 1100px) and (orientation: portrait), (max-height: 520px) {
  body { overflow: hidden; }
  .app { position: fixed; inset: 0; display: flex; flex-direction: column; padding: 0; gap: 0; pointer-events: auto; }
  .stage { position: relative; inset: auto; flex: 0 0 58svh; height: 58vh; height: 58svh; background: transparent; }
  .masthead { position: absolute; top: 12px; left: 16px; right: 196px; z-index: 3; }
  .mh-body { font-size: 19px; }
  .mh-lens { font-size: 11px; }
  .mh-intro { display: none; }
  .prefs { position: absolute; top: 10px; right: 12px; z-index: 3; }
  .lang button, .pref-btn { min-width: 44px; min-height: 44px; }
  .tabs { display: flex; flex: none; background: var(--panel-solid); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; margin-top: -16px; padding: 6px 8px 0; box-shadow: 0 -6px 18px rgba(22, 23, 26, 0.06); }
  .tabs::before { content: ""; position: absolute; top: 5px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .tabs button { flex: 1; border: 0; background: none; min-height: 46px; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; cursor: pointer; }
  .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
  .panels { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 6px 16px 12px; gap: 14px;
    background:
      linear-gradient(var(--cover) 45%, var(--cover-0)) top / 100% 30px no-repeat local,
      linear-gradient(var(--cover-0), var(--cover) 55%) bottom / 100% 30px no-repeat local,
      linear-gradient(var(--shade), var(--shade-0)) top / 100% 10px no-repeat scroll,
      linear-gradient(var(--shade-0), var(--shade)) bottom / 100% 16px no-repeat scroll,
      var(--panel-solid); }
  .panel { display: none; flex: none; align-self: stretch; background: none; border: 0; border-radius: 0; padding: 0; max-height: none; overflow: visible; }
  .icon-btn { width: 44px; height: 44px; }
  .app[data-tab="optics"] .panel[data-tab="optics"], .app[data-tab="mech"] .panel[data-tab="mech"],
  .app[data-tab="views"] .panel[data-tab="views"], .app[data-tab="info"] .panel[data-tab="info"] { display: block; }
  .app[data-tab="optics"] .panel.p-optics { display: grid; order: 1; }
  .app[data-tab="optics"] .panel.p-lvslot { display: block; order: 0; }
  .p-lvslot .lv { display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 1fr); grid-template-areas: "frame head" "frame hint"; column-gap: 12px; row-gap: 4px; align-items: start; padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
  .p-lvslot .lv-frame { grid-area: frame; }
  .p-lvslot .lv-head { grid-area: head; flex-wrap: wrap; }
  .p-lvslot .lv-hint { grid-area: hint; font-size: 11px; }
  .p-lvslot .lv-btn { width: 44px; height: 44px; border-radius: 10px; }
  .p-lvslot .lv-btn svg { width: 16px; height: 16px; }
  .btn-tour { min-height: 46px; }
  .lt { left: 12px; bottom: calc(var(--lt-bottom, 0px) + 12px); max-width: calc(100vw - 24px); padding: 8px 13px 9px 11px; }
  .lt-x { font-size: 15px; }
  .lt-s { font-size: 11.5px; }
  .app[data-tab="optics"] .panel.p-readouts { order: 2; display: grid; }
  .app[data-tab="mech"] .panel.p-mech { display: grid; }
  .p-optics { grid-template-columns: 1fr; gap: 6px; padding: 0; }
  .p-readouts { grid-template-columns: 1fr 1fr; gap: 12px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
  .ro + .ro { border-top: 0; padding-top: 0; }
  .ro-focus, .ro-aov { grid-column: 1 / -1; }
  .ro-big { font-size: 38px; }
  .p-mech { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 6px; }
  .btn, .chip, .tog, .seg button { min-height: 44px; }
  .btn { font-size: 13px; }
  .btn kbd, .ctl-label kbd, .tog kbd, .info-keys { display: none; }
  input[type="range"] { height: 40px; }
  input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -11px; }
  input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; }
  .marks { height: 30px; }
  .mark { padding: 6px 6px; font-size: 11px; min-width: 32px; }
  .ctl-clutch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
  .ctl-clutch .ctl-note { flex-basis: 100%; }
  .chip { padding: 8px 14px; font-size: 13px; }
  .toggles { grid-template-columns: 1fr 1fr; }
  .marker { --s: 0.5; width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 11px; }
  .marker::before { inset: -9px; }
  .caption { top: auto; bottom: 26px; font-size: 12px; padding: 7px 13px; }
  .footer { flex: none; background: var(--panel-solid); padding: 4px 16px calc(6px + env(safe-area-inset-bottom)); font-size: 9.5px; line-height: 1.3; border-top: 1px solid var(--line); }
  .hl-chip { min-height: 44px; padding: 6px 14px 6px 12px; font-size: 12px; }
  /* AR on the stage: under the switches, top right (the Vues tab holds the same button) */
  .ar-pill { position: absolute; z-index: 3; top: 62px; right: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--ink); font: 600 12px var(--sans); cursor: pointer; pointer-events: auto;
    box-shadow: 0 2px 10px rgba(22, 23, 26, 0.12); }
  .ar-pill::before { content: ""; position: absolute; inset: -5px 0; } /* a 44 px tall target */
  .ar-pill[hidden], .app.touring .ar-pill { display: none; }
  /* light path note: at the bottom of the stage (the model sits in the middle, the tag at the top) */
  .lp-note { top: auto; left: 12px; bottom: calc(var(--lt-bottom, 0px) + 8px); max-width: calc(100vw - 24px); padding: 7px 10px; font-size: 10.5px; }
  .app.touring ~ .lp-note { display: none; } /* the tour's own caption takes that place */
  /* guided tour: the sheet folds away, the stage takes its room (the tabs stay: a tap brings everything back) */
  .app.touring .panels { display: none; }
  .app.touring .stage { flex: 1 1 auto; height: auto; }
}
/* landscape phones: canvas on the left, the tabbed sheet on the right (freeRect in ui.js matches) */
@media (max-height: 520px) and (orientation: landscape) {
  .app { display: grid; grid-template-columns: minmax(0, 1fr) 42vw; grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "stage tabs" "stage panels" "foot foot"; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .stage { grid-area: stage; flex: none; height: auto; min-height: 0; }
  .tabs { grid-area: tabs; margin-top: 0; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); box-shadow: none; padding: 0 8px; }
  .tabs::before { display: none; }
  .tabs button { min-height: 44px; padding-top: 0; }
  .panels { grid-area: panels; border-left: 1px solid var(--line); padding-top: 10px; }
  .footer { grid-area: foot; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .masthead { right: calc(42vw + 212px); top: 10px; }
  .mh-body { font-size: 17px; }
  .prefs { right: calc(42vw + 10px); top: 8px; }
  .caption { bottom: 12px; max-width: calc(100% - 24px); }
  .ar-pill { top: 58px; }
  .lp-note { max-width: calc(58vw - 24px); }
  .app.touring { grid-template-columns: minmax(0, 1fr) 0; }
  .app.touring .tabs, .app.touring .panels { display: none; }
  .app.touring .masthead { right: 212px; }
  .app.touring .prefs { right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .caption, .marker, .marker::after, .loader, .dof i, .dof b, .lv-hint { transition: none; } .lvx-box, .lvx-backdrop { animation: none !important; } .lv:not(.ready) .lv-frame::before { animation: none; } }
.lv-home:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .lt, .ec-main { transform: none !important; } .app.touring .panel, .app.touring .masthead { transition: none; } }

/* ==========================================================================
   Night theme 'Californie 90' (html[data-theme="night"], the default): the look of kqalzstudios.com since 01/11/2026.
   End of day on the Pacific: night blue turning violet, a warm golden glow on the horizon, sun yellow accent #ffc857 in
   small doses and a few still stars behind the model (VHS scanlines removed on 02/11/2026 at Romain's request: a clean image), dark glass panels with hairlines.
   The product keeps its real colours (the LUMIX red stays on the camera). Colours from the site's tungstene.css.
   ========================================================================== */
html[data-theme="night"] {
  --bg: #080e1d; --bg-2: #0b1124; --panel: rgba(10, 15, 34, 0.86); --panel-solid: #0b1022;
  --ink: #f3efe7; --ink-2: #d4cfc5; --ink-3: #aaa69c; --line: rgba(243, 239, 231, 0.12); --line-2: rgba(243, 239, 231, 0.24);
  --accent: #ffc857; --accent-soft: rgba(255, 200, 87, 0.16); --night: #080e1d;
  --r: 4px;
  color-scheme: dark;
}
html[data-theme="night"] ::selection { background: var(--accent); color: var(--night); }
/* the sky behind the transparent canvas (main.js draws no background in the night page): night blue to violet, the golden
   horizon glow along the bottom of the stage; the darker corners of the tube and the stars on top of it */
html[data-theme="night"] .stage {
  isolation: isolate;
  background:
    radial-gradient(150% 62% at 50% 108%, rgba(255, 196, 108, 0.62) 0%, rgba(247, 152, 110, 0.28) 34%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(180deg, #07112b 0%, #0f1c44 38%, #222658 68%, #3f3060 100%);
}
html[data-theme="night"] .stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 110% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(circle at 6% 22%, rgba(255, 248, 235, 0.7) 0, rgba(255, 248, 235, 0.7) 0.61px, rgba(255, 248, 235, 0) 1.65px),
    radial-gradient(circle at 15% 34%, rgba(255, 248, 235, 0.5) 0, rgba(255, 248, 235, 0.5) 0.44px, rgba(255, 248, 235, 0) 1.2px),
    radial-gradient(circle at 25% 12%, rgba(255, 248, 235, 0.6) 0, rgba(255, 248, 235, 0.6) 0.5px, rgba(255, 248, 235, 0) 1.35px),
    radial-gradient(circle at 34% 27%, rgba(255, 248, 235, 0.45) 0, rgba(255, 248, 235, 0.45) 0.39px, rgba(255, 248, 235, 0) 1.05px),
    radial-gradient(circle at 44% 11%, rgba(255, 248, 235, 0.55) 0, rgba(255, 248, 235, 0.55) 0.55px, rgba(255, 248, 235, 0) 1.5px),
    radial-gradient(circle at 55% 19%, rgba(255, 248, 235, 0.5) 0, rgba(255, 248, 235, 0.5) 0.44px, rgba(255, 248, 235, 0) 1.2px),
    radial-gradient(circle at 63% 12%, rgba(255, 248, 235, 0.7) 0, rgba(255, 248, 235, 0.7) 0.61px, rgba(255, 248, 235, 0) 1.65px),
    radial-gradient(circle at 72% 30%, rgba(255, 248, 235, 0.4) 0, rgba(255, 248, 235, 0.4) 0.39px, rgba(255, 248, 235, 0) 1.05px),
    radial-gradient(circle at 80% 14%, rgba(255, 248, 235, 0.6) 0, rgba(255, 248, 235, 0.6) 0.5px, rgba(255, 248, 235, 0) 1.35px),
    radial-gradient(circle at 90% 24%, rgba(255, 248, 235, 0.55) 0, rgba(255, 248, 235, 0.55) 0.55px, rgba(255, 248, 235, 0) 1.5px),
    radial-gradient(circle at 96% 13%, rgba(255, 248, 235, 0.5) 0, rgba(255, 248, 235, 0.5) 0.44px, rgba(255, 248, 235, 0) 1.2px),
    radial-gradient(circle at 11% 42%, rgba(255, 248, 235, 0.35) 0, rgba(255, 248, 235, 0.35) 0.33px, rgba(255, 248, 235, 0) 0.9px),
    radial-gradient(circle at 86% 40%, rgba(255, 248, 235, 0.35) 0, rgba(255, 248, 235, 0.35) 0.33px, rgba(255, 248, 235, 0) 0.9px);
}
/* phones asking to save data: no stars (the sky and the darker corners stay) */
@media (max-width: 759px) and (prefers-reduced-data: reduce) {
  html[data-theme="night"] .stage::before { background: radial-gradient(130% 110% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.5) 100%); }
}
@media (max-width: 759px) {
  html[data-theme="night"].save-data .stage::before { background: radial-gradient(130% 110% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.5) 100%); }
}
/* dark glass panels, hairline borders, a short sun-yellow segment at the head of the rule (as on the site's sheets) */
html[data-theme="night"] .panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px rgba(2, 4, 12, 0.28); }
html[data-theme="night"] .p-readouts, html[data-theme="night"] .p-info, html[data-theme="night"] .panels {
  --cover: var(--panel-solid); --cover-0: rgba(11, 16, 34, 0); --shade: rgba(0, 0, 0, 0.45); --shade-0: rgba(0, 0, 0, 0); }
html[data-theme="night"] .p-views::before, html[data-theme="night"] .p-info::before {
  content: ""; position: absolute; left: var(--pad); top: -1px; width: 40px; height: 1px; background: var(--accent); }
html[data-theme="night"] .p-info { position: relative; }
html[data-theme="night"] .p-views { position: relative; }
/* buttons: transparent on the glass; the solid one (the tour) in bone like the site's main button; pressed in bone */
html[data-theme="night"] .chip, html[data-theme="night"] .tog, html[data-theme="night"] .btn, html[data-theme="night"] .seg button,
html[data-theme="night"] .hl-chip, html[data-theme="night"] .lv-btn, html[data-theme="night"] .icon-btn { background: rgba(243, 239, 231, 0.04); }
html[data-theme="night"] kbd { background: transparent; }
html[data-theme="night"] .chip, html[data-theme="night"] .btn, html[data-theme="night"] .seg, html[data-theme="night"] .hl-chip, html[data-theme="night"] .tog,
html[data-theme="night"] .lang, html[data-theme="night"] .pref-btn { border-radius: 3px; }
html[data-theme="night"] .lang button[aria-pressed="true"], html[data-theme="night"] .chip[aria-pressed="true"], html[data-theme="night"] .seg button[aria-pressed="true"],
html[data-theme="night"] .btn[aria-pressed="true"], html[data-theme="night"] .hl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--night); }
html[data-theme="night"] .hl-chip[aria-pressed="true"] b { color: rgba(8, 14, 29, 0.7); }
html[data-theme="night"] .tog i::after { background: var(--ink-2); }
html[data-theme="night"] .tog[aria-pressed="true"] i { background: var(--accent); }
html[data-theme="night"] .tog[aria-pressed="true"] i::after { background: var(--night); }
html[data-theme="night"] .tog[aria-pressed="true"] { border-color: rgba(255, 200, 87, 0.45); }
html[data-theme="night"] .btn-tour { background: var(--ink); border-color: var(--ink); color: var(--night); }
html[data-theme="night"] .btn-tour:hover { background: #fff; border-color: #fff; }
html[data-theme="night"] .btn-tour[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--night); }
html[data-theme="night"] .btn-tour kbd { color: rgba(8, 14, 29, 0.7); border-color: rgba(8, 14, 29, 0.35); }
/* the release: an outline button like the site's, the sun-yellow dot its only colour (the yellow stays in small doses) */
html[data-theme="night"] .btn-shutter { background: rgba(243, 239, 231, 0.04); border-color: var(--line-2); color: var(--ink); }
html[data-theme="night"] .btn-shutter:hover { background: rgba(243, 239, 231, 0.08); border-color: var(--ink); }
html[data-theme="night"] .btn-shutter .dot { background: var(--accent); box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.22); }
html[data-theme="night"] .btn-shutter kbd { color: var(--ink-3); border-color: var(--line-2); }
html[data-theme="night"] .pref-btn[aria-pressed="true"] { color: var(--accent); }
html[data-theme="night"] .info-num { color: var(--night); }
html[data-theme="night"] input[type="range"]::-webkit-slider-thumb { background: var(--night); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.12); }
html[data-theme="night"] input[type="range"]::-moz-range-thumb { background: var(--night); border-color: var(--ink); }
html[data-theme="night"] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p)); }
html[data-theme="night"] input[type="range"]::-moz-range-track { background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p)); }
html[data-theme="night"] .iris-blades { fill: #474d6c; }
html[data-theme="night"] .iris-edges { stroke: rgba(243, 239, 231, 0.4); }
html[data-theme="night"] .wedge-fill { fill: rgba(255, 200, 87, 0.14); }
/* markers: bone dots ringed in night blue on the black camera, the selected one in sun yellow */
html[data-theme="night"] .marker::after { border-color: var(--night); background: var(--ink); box-shadow: 0 0 0 1px rgba(243, 239, 231, 0.35), 0 1px 6px rgba(0, 0, 0, 0.5); }
html[data-theme="night"] .marker:focus-visible, html[data-theme="night"] .marker.sel { color: var(--night); }
@media (hover: hover) { html[data-theme="night"] .marker:hover { color: var(--night); } }
html[data-theme="night"] .marker.sel::after { background: var(--accent); }
html[data-theme="night"] .marker .tip { background: var(--ink); color: var(--night); }
/* captions, lower third, tags: dark glass, sun-yellow kicker */
html[data-theme="night"] .caption { background: rgba(8, 14, 29, 0.92); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
html[data-theme="night"] .caption-tag { color: var(--accent); }
html[data-theme="night"] .caption-bar i { background: var(--accent); }
html[data-theme="night"] .lt { background: rgba(9, 14, 32, 0.9); box-shadow: inset 0 0 0 1px var(--line), 0 8px 28px rgba(0, 0, 0, 0.35); }
html[data-theme="night"] .illus, html[data-theme="night"] .lp-tag { background: rgba(9, 14, 32, 0.88); }
html[data-theme="night"] .lp-note { background: rgba(9, 14, 32, 0.88); }
html[data-theme="night"] .ar-pill { background: rgba(9, 14, 32, 0.82); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
html[data-theme="night"] .lvx-backdrop { background: rgba(8, 14, 29, 0.86); }
html[data-theme="night"] .lvx-close { background: rgba(9, 14, 32, 0.92); }
html[data-theme="night"] .lvx-box { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(243, 239, 231, 0.16); }
html[data-theme="night"] .lv-frame { box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.12); }
html[data-theme="night"] .loader { background: radial-gradient(ellipse at 50% 45%, #18204a 0%, #0b1124 62%, #080e1d 100%); }
html[data-theme="night"] .tabs { box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35); }
/* sheet layout (phones): the panels are flat sections of the sheet, no rule segment on them */
@media (max-width: 759px), (max-width: 1100px) and (orientation: portrait), (max-height: 520px) {
  html[data-theme="night"] .p-views::before, html[data-theme="night"] .p-info::before { display: none; }
  html[data-theme="night"] .panel { box-shadow: none; }
}
html[data-theme="night"] .lvx-box { background: #060a17; } /* the film's split panel and the card behind the picture: night blue */
/* desktop layout: the credit line sits on the warm horizon glow; a strip of night glass keeps it readable (AA) */
@media (min-width: 1101px) and (min-height: 521px), (min-width: 760px) and (min-height: 521px) and (orientation: landscape) {
  html[data-theme="night"] .site-links { margin-right: -8px; padding: 2px 8px; border-radius: 3px; background: rgba(8, 14, 29, 0.84); }
  html[data-theme="night"] .footer p { display: inline-block; margin-left: -8px; padding: 2px 8px; border-radius: 3px; background: rgba(8, 14, 29, 0.84); }
}

/* ---------- UI film (?film=ui | ui-phone, src/showcase.js): scripted cursor and tap, click ripple, hover stand-ins, clean shots ---------- */
.fx-cursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 30px; height: 30px; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.5)); }
.fx-cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-touch { position: fixed; left: 0; top: 0; z-index: 9999; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: rgba(255, 255, 255, 0.26); border: 2px solid rgba(255, 255, 255, 0.78); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.fx-ripple { position: fixed; left: 0; top: 0; z-index: 9998; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none; opacity: 0;
  border: 2.5px solid #ffc857; box-shadow: 0 0 18px rgba(255, 200, 87, 0.5), inset 0 0 12px rgba(255, 200, 87, 0.3); will-change: transform, opacity; }
html.uifilm :focus-visible { outline: none !important; }
html.uifilm .stage canvas { cursor: default; }
/* no layer kept from an earlier raster scale (a marker's grow on hover would raster differently from one run to the next) */
html.uifilm .marker, html.uifilm .fx-cursor, html.uifilm .fx-touch, html.uifilm .fx-ripple { will-change: auto; }
/* the page's :hover looks, given by the script to the element under the synthetic cursor (same specificity as :hover) */
.pref-btn.fxh { color: var(--ink); border-color: var(--ink-2); }
.src.fxh { color: var(--accent); }
.hl-chip.fxh, .chip.fxh, .btn.fxh, .lv-btn.fxh { border-color: var(--ink); }
.mark.fxh { color: var(--ink); font-weight: 700; }
.btn-shutter.fxh { border-color: #9e0f16; background: #bd131b; }
.btn-tour.fxh { background: #2a2c31; border-color: #2a2c31; }
.marker.fxh { --s: 1; color: #fff; }
.marker.fxh .tip { opacity: 1; }
html[data-theme="night"] .btn-tour.fxh { background: #fff; border-color: #fff; }
html[data-theme="night"] .btn-shutter.fxh { background: rgba(243, 239, 231, 0.08); border-color: var(--ink); }
html[data-theme="night"] .marker.fxh { color: var(--night); }
/* clean shots (&clean=1): the 3D alone, full frame (the illustrative tags stay: they say the internals are interpreted) */
html.fx-clean .masthead, html.fx-clean .prefs, html.fx-clean .tabs, html.fx-clean .panels, html.fx-clean .footer, html.fx-clean .markers,
html.fx-clean .caption, html.fx-clean .ar-pill, html.fx-clean .lt, html.fx-clean .lvx, html.fx-clean .lp-note, html.fx-clean .loader { display: none !important; }
html.fx-clean .app { display: block !important; padding: 0 !important; }
html.fx-clean .stage { position: fixed !important; inset: 0 !important; height: auto !important; flex: none !important; }
.fx-arlabel { position: fixed; z-index: 9997; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); pointer-events: none;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.38); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* ?env=studio (branch studio-video, src/studio.js): the studio fills the frame behind the camera. Since 08/11 (11 h 30) a light room: by
   day the title, the intro and the footer keep the day theme's dark ink over a soft light shade in the top-left corner and along the
   bottom; by night the night theme's light ink over a soft dark shade (the legal line on a band of its own in both). The panels keep
   their own colours. Set by main.js once the studio is shown (html.env-studio). */
html.env-studio[data-theme="night"] .masthead { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7); }
html.env-studio[data-theme="day"] .masthead { text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85); }
html.env-studio .footer p { display: inline-block; margin-left: -8px; padding: 2px 8px; border-radius: 3px; background: rgba(6, 7, 9, 0.72); }
html.env-studio[data-theme="night"] .footer, html.env-studio[data-theme="night"] .footer p, html.env-studio[data-theme="night"] .footer a { color: rgba(243, 241, 236, 0.84); }
html.env-studio[data-theme="day"] .footer p { background: rgba(250, 249, 246, 0.82); }
html.env-studio .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(560px 330px at 0 0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 72px); }
html.env-studio[data-theme="day"] .stage::after {
  background: radial-gradient(560px 330px at 0 0, rgba(250, 249, 246, 0.62), rgba(250, 249, 246, 0) 100%),
    linear-gradient(to top, rgba(250, 249, 246, 0.5), rgba(250, 249, 246, 0) 72px); }
html.env-studio .masthead, html.env-studio .footer, html.env-studio .stage::after { transition: color .4s, opacity .4s; }
/* the studio switch in the top bar, next to the theme and the language: a pill, filled while the studio shows */
.pref-studio { width: auto; padding: 0 11px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.pref-studio[aria-pressed="true"], html[data-theme="night"] .pref-studio[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
