/*
 * Saturn 3D Model - HUD, stage and article. ASCII only.
 * Palette and type are fixed by CONTRACT.md. Saturn HUD: pale gold / butterscotch chrome and warm sand text on
 * near-black, one cool pale-teal accent reserved for selection and the highlight.
 * Text always sits on a solid container (4.5:1 or better); black text goes on gold and teal fills;
 * gold fills are reserved for active or primary states; headers are dark bars with a gold rule.
 * Everything is uppercase except the article body, the tooltips, the control hints and the ring tilt sentence.
 * Animations are slow, low-contrast transform/opacity only (plus the one-off boot reveal and the info-card wipe).
 * prefers-reduced-motion switches every decorative animation off at the bottom of this file.
 */
:root {
	--s3d-black: #000; --s3d-ink: #0c0a07; --s3d-panel: #1a150d; --s3d-line: #352c1e;
	--s3d-white: #f3ead8; --s3d-red: #e5896b; --s3d-steel: #cdb990; --s3d-accent: #e6c26b;
	--s3d-sun: #ffe9b8; --s3d-cool: #8fe0e6;
	--s3d-display: "Chakra Petch", "Arial Narrow", sans-serif;
	--s3d-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
	--s3d-dim: #b5a687;
	--s3d-chip: #080604;
	--s3d-edge: #5a4c33;
	--s3d-hover: #261e12;
	--s3d-accent-hi: #f5dc9c;
	--s3d-cool-hi: #c3f3f6;
	--s3d-rim: #9b8a68;
	--s3d-grid: #4a3e2a;
	--s3d-bar-h: 150px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--s3d-black); scroll-behavior: auto; }
body.s3d-body {
	margin: 0; background: var(--s3d-ink); color: var(--s3d-white);
	font-family: var(--s3d-mono); -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--s3d-cool); outline-offset: 2px; }
.s3d-ic { flex: none; display: block; }

/* ------------------------------------------------------------------ stage */
.s3d-stage {
	position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
	background: var(--s3d-black); isolation: isolate;
}
.s3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.s3d-canvas {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1;
	opacity: 0; touch-action: none; cursor: grab;
}
.s3d-canvas:active { cursor: grabbing; }
.s3d-canvas:focus-visible { outline-offset: -5px; }
.s3d-stage.is-ready .s3d-canvas { opacity: 1; animation: s3d-reveal 1.3s cubic-bezier(.65, 0, .25, 1) both; }
.s3d-stage.is-nogl .s3d-canvas { opacity: 1; animation: none; cursor: default; pointer-events: none; }
.s3d-stage.is-nogl .s3d-poster { display: block; }
.s3d-stage::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: radial-gradient(ellipse at 50% 46%, transparent 62%, rgba(0, 0, 0, .4) 100%);
}
.s3d-noscript {
	position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 14px 16px; z-index: 7;
	background: var(--s3d-chip); color: var(--s3d-white); border-left: 4px solid var(--s3d-accent);
	font: 700 13px/1.6 var(--s3d-mono); text-transform: uppercase; letter-spacing: .04em;
}

/* ------------------------------------------------------------------ brand (server rendered) */
.s3d-brand {
	position: absolute; z-index: 4; left: 16px; top: 16px; width: 344px;
	padding: 10px 14px 12px; background: var(--s3d-chip); border-left: 4px solid var(--s3d-accent);
	box-shadow: 0 0 0 1px var(--s3d-line);
}
.s3d-home {
	display: inline-block; color: var(--s3d-steel); font: 700 12px/1.4 var(--s3d-mono); letter-spacing: .08em;
	text-transform: uppercase; text-decoration: none; padding-bottom: 2px;
}
.s3d-home:hover { color: var(--s3d-accent); }
.s3d-title {
	margin: 2px 0 4px; font: 700 34px/1.05 var(--s3d-display); letter-spacing: .03em; text-transform: uppercase;
	color: var(--s3d-white);
}
.s3d-sub {
	margin: 0; font: 400 12px/1.5 var(--s3d-mono); letter-spacing: .03em; text-transform: uppercase;
	color: var(--s3d-dim); max-width: 310px;
}

/* ------------------------------------------------------------------ hud shell */
.s3d-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; visibility: hidden; }
.s3d-stage.is-ready .s3d-hud { visibility: visible; }
.s3d-panel, .s3d-search, .s3d-tabs { pointer-events: auto; }
/* panels sit above the selection reticle and markers (z-index 2-3 inside the labels layer) */
.s3d-layers, .s3d-info, .s3d-rpanel, .s3d-bar { z-index: 4; }

.s3d-panel {
	position: absolute; background-color: var(--s3d-ink); color: var(--s3d-white);
	background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
	border: 1px solid var(--s3d-line);
}
.s3d-panel::before {
	content: ""; position: absolute; inset: -4px; pointer-events: none; z-index: 2;
	background:
		linear-gradient(var(--s3d-accent), var(--s3d-accent)) 0 0 / 14px 2px no-repeat,
		linear-gradient(var(--s3d-accent), var(--s3d-accent)) 0 0 / 2px 14px no-repeat,
		linear-gradient(var(--s3d-edge), var(--s3d-edge)) 100% 100% / 14px 2px no-repeat,
		linear-gradient(var(--s3d-edge), var(--s3d-edge)) 100% 100% / 2px 14px no-repeat;
}

.s3d-stage.is-ready .s3d-layers { animation: s3d-in-l .7s .3s ease-out both; }
.s3d-stage.is-ready .s3d-bar { animation: s3d-in-b .7s .4s ease-out both; }
.s3d-stage.is-ready .s3d-search { animation: s3d-in-s .6s .5s ease-out both; }

/* ------------------------------------------------------------------ reticle */
.s3d-reticle {
	position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
	pointer-events: none; opacity: .34;
}
.s3d-reticle svg { display: block; overflow: visible; }
.s3d-ret-a { stroke: var(--s3d-accent); animation: s3d-spin 140s linear infinite; }
.s3d-ret-b { stroke: var(--s3d-steel); animation: s3d-spin 90s linear infinite reverse; }
.s3d-ret-c { stroke: var(--s3d-white); }
.s3d-hud.is-modelonly .s3d-reticle { display: none; }

/* ------------------------------------------------------------------ shared bits */
.s3d-k { font: 700 11px/1.3 var(--s3d-mono); letter-spacing: .06em; color: var(--s3d-steel); text-transform: uppercase; }
.s3d-v { font: 700 16px/1.3 var(--s3d-mono); color: var(--s3d-white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s3d-k__s { display: none; }
.s3d-hl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.s3d-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; overflow: hidden;
	height: 38px; padding: 0 14px; margin: 0; cursor: pointer; text-decoration: none; text-transform: uppercase;
	font: 700 13px/1 var(--s3d-display); letter-spacing: .06em;
	color: var(--s3d-white); background: var(--s3d-chip); border: 1px solid var(--s3d-rim); border-radius: 0;
	transition: background-color .15s, border-color .15s;
}
.s3d-btn::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--s3d-accent);
	transform: scaleX(0); transform-origin: left center; transition: transform .25s ease-out;
}
.s3d-btn:hover:not(:disabled) { background: var(--s3d-hover); border-color: var(--s3d-accent); }
.s3d-btn:hover::after { transform: scaleX(1); }
.s3d-btn:active { transform: translateY(1px); }
.s3d-btn[aria-pressed="true"] { color: var(--s3d-black); background: var(--s3d-accent); border-color: var(--s3d-accent); }
.s3d-btn[aria-pressed="true"]:hover { background: var(--s3d-accent-hi); }
.s3d-btn--s { height: 34px; padding: 0 10px; gap: 5px; }
.s3d-btn--go { color: var(--s3d-black); background: var(--s3d-accent); border-color: var(--s3d-accent); }
.s3d-btn--go:hover:not(:disabled) { background: var(--s3d-accent-hi); border-color: var(--s3d-accent-hi); }
.s3d-btn--x:hover:not(:disabled) { border-color: var(--s3d-red); }
.s3d-btn:disabled { color: var(--s3d-white); background: var(--s3d-line); border-color: var(--s3d-line); cursor: not-allowed; }

.s3d-ph {
	display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px 0 12px;
	background: var(--s3d-panel); color: var(--s3d-accent); border-bottom: 1px solid var(--s3d-accent);
}
.s3d-ph__t { margin: 0; font: 700 14px/1 var(--s3d-display); letter-spacing: .1em; text-transform: uppercase; }
.s3d-ph__n { margin-left: auto; font: 700 12px/1 var(--s3d-mono); letter-spacing: .04em; color: var(--s3d-white); }
.s3d-ph .s3d-btn { margin-left: 4px; height: 28px; padding: 0 9px; }

.s3d-chip {
	display: inline-block; padding: 5px 8px; font: 700 11px/1.2 var(--s3d-mono); letter-spacing: .06em; text-transform: uppercase;
	color: var(--s3d-white); background: var(--s3d-chip); border: 1px solid var(--s3d-rim);
}
.s3d-chip--type { color: var(--s3d-steel); border-color: var(--s3d-steel); }
.s3d-chip--cat { color: var(--s3d-accent); border-color: var(--s3d-accent); }

/* ------------------------------------------------------------------ layers panel */
.s3d-layers {
	left: 16px; top: 172px; width: 272px; max-height: calc(100% - 172px - var(--s3d-bar-h) - 30px);
	display: flex; flex-direction: column;
}
.s3d-all {
	display: grid; grid-template-columns: 20px 1fr auto auto; align-items: center; gap: 9px; width: 100%; height: 44px; margin: 0;
	padding: 0 8px 0 12px; border: 0; border-bottom: 1px solid var(--s3d-line); border-radius: 0; background: var(--s3d-chip);
	color: var(--s3d-white); text-align: left; cursor: pointer; font: 700 13px/1 var(--s3d-display); letter-spacing: .06em; text-transform: uppercase;
}
.s3d-all:hover { background: var(--s3d-hover); }
.s3d-all:focus-visible { outline-offset: -3px; }
.s3d-all__c { font: 700 12px/1 var(--s3d-mono); color: var(--s3d-steel); font-variant-numeric: tabular-nums; }
.s3d-all__s { display: grid; place-items: center; min-width: 52px; height: 24px; padding: 0 6px; font: 700 11px/1 var(--s3d-mono); letter-spacing: .04em; background: var(--s3d-line); color: var(--s3d-white); }
.s3d-all[aria-pressed="true"] .s3d-all__s { background: var(--s3d-accent); color: var(--s3d-black); }
.s3d-all[aria-pressed="mixed"] .s3d-all__s { background: var(--s3d-chip); color: var(--s3d-accent); box-shadow: inset 0 0 0 1px var(--s3d-accent); }
.s3d-lpanels { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; background: var(--s3d-chip); border-bottom: 1px solid var(--s3d-line); }
.s3d-lpanels .s3d-btn { height: 34px; padding: 0 8px; }
.s3d-lyr-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--s3d-edge) var(--s3d-black); }
.s3d-gh {
	margin: 0; padding: 0; font: 700 11px/1 var(--s3d-mono); letter-spacing: .08em; text-transform: uppercase;
	background: var(--s3d-chip); color: var(--s3d-steel); border-bottom: 1px solid var(--s3d-edge); border-top: 1px solid var(--s3d-line);
}
.s3d-gh span { display: block; padding: 7px 12px 6px; }
.s3d-lyr {
	position: relative; display: grid; grid-template-columns: 22px 1fr auto 42px; align-items: center; gap: 9px;
	width: 100%; height: 30px; margin: 0; padding: 0 8px 0 12px; border: 0; border-bottom: 1px solid var(--s3d-line);
	background: var(--s3d-ink); color: var(--s3d-white); text-align: left; cursor: pointer; border-radius: 0;
	font: 700 13px/1 var(--s3d-display); letter-spacing: .06em; text-transform: uppercase;
}
.s3d-lyr::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--s3d-accent);
	transform: scaleY(0); transition: transform .2s ease-out;
}
.s3d-lyr:hover:not(:disabled) { background: var(--s3d-hover); }
.s3d-lyr[aria-pressed="true"]::before { transform: scaleY(1); }
.s3d-lyr:focus-visible { outline-offset: -3px; }
.s3d-lyr__n { overflow: hidden; text-overflow: clip; white-space: nowrap; }
.s3d-lyr__c { font: 700 12px/1 var(--s3d-mono); letter-spacing: .02em; color: var(--s3d-steel); font-variant-numeric: tabular-nums; text-align: right; min-width: 38px; }
.s3d-lyr__s {
	display: grid; place-items: center; height: 22px; font: 700 11px/1 var(--s3d-mono); letter-spacing: .04em;
	background: var(--s3d-line); color: var(--s3d-white);
}
.s3d-lyr[aria-pressed="true"] .s3d-lyr__s { background: var(--s3d-accent); color: var(--s3d-black); }
.s3d-lyr[aria-pressed="false"] { color: var(--s3d-dim); }
.s3d-lyr[aria-pressed="false"] .s3d-sw { opacity: .4; }
.s3d-lyr:disabled { color: var(--s3d-dim); cursor: not-allowed; }
.s3d-lyr:disabled .s3d-lyr__s { background: var(--s3d-line); color: var(--s3d-white); }

.s3d-sw { position: relative; width: 18px; height: 18px; display: block; }
.s3d-sw::before, .s3d-sw::after { content: ""; position: absolute; }
.s3d-sw--ring::before { left: 0; right: 0; top: 4px; height: 10px; border-radius: 50%; border: 2px solid var(--s3d-accent); }
.s3d-sw--ring::after { left: 5px; top: 7px; width: 8px; height: 4px; background: var(--s3d-steel); border-radius: 50%; }
.s3d-sw--names::before { left: 3px; top: 3px; width: 12px; height: 12px; background: var(--s3d-accent); border: 2px solid var(--s3d-black); border-radius: 50%; box-shadow: 0 0 0 1px var(--s3d-accent); }
.s3d-sw--gaps::before { left: 4px; top: 4px; width: 10px; height: 10px; background: var(--s3d-black); border: 2px solid var(--s3d-accent); transform: rotate(45deg); }
.s3d-sw--grid::before { inset: 1px; border: 2px solid var(--s3d-white); background: linear-gradient(var(--s3d-white), var(--s3d-white)) 50% 0 / 2px 100% no-repeat, linear-gradient(var(--s3d-white), var(--s3d-white)) 0 50% / 100% 2px no-repeat; }
.s3d-sw--dn::before { inset: 1px; border-radius: 50%; border: 2px solid var(--s3d-white); background: linear-gradient(90deg, var(--s3d-white) 50%, var(--s3d-black) 50%); }
.s3d-sw--text::before { left: 1px; top: 1px; width: 16px; height: 16px; background: var(--s3d-white); }
.s3d-sw--text::after { left: 3px; top: 4px; width: 12px; height: 3px; background: var(--s3d-black); box-shadow: 0 5px 0 var(--s3d-black), 0 10px 0 -1px var(--s3d-black); }

/* ------------------------------------------------------------------ search */
.s3d-search {
	position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
	width: clamp(300px, calc(100vw - 880px), 480px);
}
.s3d-search__icon { display: none; }
.s3d-search__box { position: relative; display: flex; align-items: stretch; height: 44px; background: var(--s3d-chip); border: 1px solid var(--s3d-accent); }
.s3d-search__lab {
	display: grid; place-items: center; padding: 0 12px; background: var(--s3d-panel); color: var(--s3d-accent); border-right: 1px solid var(--s3d-accent);
	font: 700 12px/1 var(--s3d-display); letter-spacing: .08em;
}
.s3d-search__in {
	flex: 1; min-width: 0; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: var(--s3d-chip); color: var(--s3d-white);
	font: 700 14px/1 var(--s3d-mono); letter-spacing: .04em; text-transform: uppercase;
}
.s3d-search__in::placeholder { color: var(--s3d-dim); opacity: 1; }
.s3d-search__in:focus-visible { outline: 2px solid var(--s3d-cool); outline-offset: -5px; }
.s3d-search__key { align-self: center; margin-right: 10px; padding: 3px 7px; font: 700 12px/1 var(--s3d-mono); background: var(--s3d-line); color: var(--s3d-white); }
.s3d-search__list {
	position: absolute; left: -1px; right: -1px; top: 100%; margin: 6px 0 0; padding: 0; list-style: none;
	background: var(--s3d-chip); border: 1px solid var(--s3d-accent); max-height: 360px; overflow-y: auto; z-index: 5;
}
.s3d-search__res, .s3d-search__none {
	display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n t" "c c"; column-gap: 10px; row-gap: 3px;
	min-height: 46px; padding: 7px 12px; cursor: pointer; border-bottom: 1px solid var(--s3d-line);
	color: var(--s3d-white); background: var(--s3d-chip);
}
.s3d-search__none { grid-template-columns: 1fr; font: 700 12px/1.5 var(--s3d-mono); cursor: default; }
.s3d-search__n { grid-area: n; font: 700 15px/1.25 var(--s3d-display); letter-spacing: .04em; }
.s3d-search__t { grid-area: t; align-self: center; font: 700 11px/1 var(--s3d-mono); letter-spacing: .06em; padding: 4px 6px; border: 1px solid var(--s3d-steel); color: var(--s3d-steel); }
.s3d-search__c { grid-area: c; font: 400 12px/1.3 var(--s3d-mono); letter-spacing: .03em; color: var(--s3d-dim); }
.s3d-search__res:hover { background: var(--s3d-hover); }
.s3d-search__res.is-active { background: var(--s3d-accent); color: var(--s3d-black); }
.s3d-search__res.is-active .s3d-search__c { color: var(--s3d-black); }
.s3d-search__res.is-active .s3d-search__t { border-color: var(--s3d-black); color: var(--s3d-black); }

/* ------------------------------------------------------------------ right-hand dock: info card and Rings panel (never both) */
.s3d-info, .s3d-rpanel {
	right: 16px; top: 16px; display: flex; flex-direction: column; min-height: 0;
	max-height: calc(100% - 16px - var(--s3d-bar-h) - 34px);
	clip-path: inset(0 0 0 100%); visibility: hidden; border-color: var(--s3d-edge);
	transition: clip-path .45s cubic-bezier(.7, 0, .2, 1), visibility 0s .45s;
}
.s3d-info { width: 372px; }
.s3d-rpanel { width: 408px; }
.s3d-info.is-open, .s3d-rpanel.is-open { clip-path: inset(-8px); visibility: visible; transition: clip-path .45s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.s3d-info:focus-visible, .s3d-rpanel:focus-visible { outline: none; }
.s3d-info__scan { display: none; }
.s3d-info__body { padding: 14px 16px 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--s3d-edge) var(--s3d-black); }
.s3d-info__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s3d-info__title {
	margin: 12px 0 10px; font: 700 31px/1.08 var(--s3d-display); letter-spacing: .02em; text-transform: uppercase;
	color: var(--s3d-white); overflow-wrap: anywhere; border-left: 4px solid var(--s3d-cool); padding-left: 10px;
}
.s3d-info__grid { margin: 0 0 10px; padding: 0; }
.s3d-row { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--s3d-line); }
.s3d-row dt { font: 700 11px/1.5 var(--s3d-mono); letter-spacing: .06em; color: var(--s3d-steel); text-transform: uppercase; }
.s3d-row dd { margin: 0; font: 700 13px/1.5 var(--s3d-mono); letter-spacing: .02em; color: var(--s3d-white); font-variant-numeric: tabular-nums; text-transform: uppercase; overflow-wrap: anywhere; }
.s3d-sub { font-weight: 400; color: var(--s3d-dim); font-size: 12px; }
.s3d-row.is-wide { grid-template-columns: 1fr; gap: 3px; }
.s3d-row.is-wide dd { font-weight: 400; font-size: 12px; line-height: 1.7; }
.s3d-row.is-key dd { color: var(--s3d-accent); font-size: 15px; }
.s3d-row.is-key dd .s3d-sub { color: var(--s3d-white); font-size: 12px; }
.s3d-info__desc { margin: 0 0 12px; font: 400 12px/1.7 var(--s3d-mono); letter-spacing: .02em; color: var(--s3d-white); text-transform: uppercase; }
.s3d-info__src { margin: 0 0 8px; font: 700 12px/1.4 var(--s3d-mono); letter-spacing: .04em; }
.s3d-info__src a, .s3d-foot a { color: var(--s3d-accent); }
.s3d-info__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--s3d-line); }
.s3d-info__origin { margin: 0 0 10px; padding: 7px 10px; font: 700 12px/1.6 var(--s3d-mono); letter-spacing: .03em; color: var(--s3d-white); text-transform: uppercase; background: var(--s3d-chip); border-left: 3px solid var(--s3d-accent); }
.s3d-info__empty { display: none; margin: 0; padding: 18px 16px; font: 700 12px/1.6 var(--s3d-mono); letter-spacing: .04em; text-transform: uppercase; }
.s3d-info__more { margin: 0 0 10px; font: 700 12px/1.8 var(--s3d-mono); letter-spacing: .04em; }
.s3d-info__more a { color: var(--s3d-accent); }

/* ------------------------------------------------------------------ Rings panel */
.s3d-rbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--s3d-edge) var(--s3d-black); }
.s3d-rbody:focus-visible { outline-offset: -3px; }
.s3d-pfoot { flex: none; margin: 0; padding: 9px 12px; background: var(--s3d-chip); border-top: 1px solid var(--s3d-line); font: 700 12px/1.8 var(--s3d-mono); letter-spacing: .02em; }
.s3d-pfoot a { color: var(--s3d-accent); }
.s3d-mfilter { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; background: var(--s3d-chip); border-top: 1px solid var(--s3d-line); border-bottom: 1px solid var(--s3d-line); }
.s3d-fchip {
	height: 28px; margin: 0; padding: 0 7px; cursor: pointer; border-radius: 0; text-transform: uppercase;
	font: 700 11px/1 var(--s3d-mono); letter-spacing: .03em; color: var(--s3d-white); background: var(--s3d-chip); border: 1px solid var(--s3d-rim);
}
.s3d-fchip:hover { border-color: var(--s3d-accent); background: var(--s3d-hover); }
.s3d-fchip[aria-pressed="true"] { background: var(--s3d-accent); color: var(--s3d-black); border-color: var(--s3d-accent); }
.s3d-rul { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--s3d-edge); }
.s3d-r { border-bottom: 1px solid var(--s3d-line); background: var(--s3d-ink); }
.s3d-r:last-child { border-bottom: 0; }
.s3d-r.is-focus { box-shadow: inset 3px 0 0 var(--s3d-cool); }
.s3d-r--head { padding: 7px 12px 6px; background: var(--s3d-chip); }
.s3d-r--head .s3d-r__name { font: 700 11px/1 var(--s3d-mono); letter-spacing: .08em; color: var(--s3d-steel); }
.s3d-rrow {
	position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n c" "l l"; column-gap: 10px; row-gap: 3px; align-items: start;
	width: 100%; margin: 0; padding: 9px 12px; border: 0; border-radius: 0; background: transparent; color: var(--s3d-white); text-align: left; cursor: pointer;
}
.s3d-r.is-child .s3d-rrow { padding-left: 28px; }
.s3d-r.is-deep .s3d-rrow { padding-left: 44px; }
.s3d-r.is-child .s3d-rrow::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: var(--s3d-edge); }
.s3d-r.is-deep .s3d-rrow::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: var(--s3d-edge); }
.s3d-rrow:hover { background: var(--s3d-hover); }
.s3d-rrow:focus-visible { outline-offset: -3px; }
.s3d-r__name { grid-area: n; font: 700 15px/1.25 var(--s3d-display); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.s3d-r.is-focus .s3d-r__name { color: var(--s3d-cool); }
.s3d-r__chips { grid-area: c; display: flex; gap: 4px; }
.s3d-r__chips .s3d-chip { padding: 3px 6px; font-size: 10px; }
.s3d-r__line { grid-area: l; font: 400 11px/1.5 var(--s3d-mono); letter-spacing: .02em; color: var(--s3d-dim); text-transform: uppercase; }
.s3d-prof__none { margin: 0; padding: 14px 12px; font: 700 12px/1.5 var(--s3d-mono); letter-spacing: .04em; background: var(--s3d-ink); }

/* ring tilt block */
.s3d-tilt { background: var(--s3d-ink); }
.s3d-tilt__in { padding: 10px 12px 12px; }
.s3d-tilt__now { margin: 0 0 8px; font: 400 14px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--s3d-white); }
.s3d-tilt__chart { background: var(--s3d-chip); border: 1px solid var(--s3d-line); padding: 2px; cursor: crosshair; min-height: 40px; }
.s3d-tilt__chart:hover { border-color: var(--s3d-edge); }
.s3d-tilt__chart:focus-visible { outline: 2px solid var(--s3d-cool); outline-offset: 1px; }
.s3d-tc { display: block; width: 100%; height: auto; overflow: visible; }
.s3d-tc__grid { stroke: var(--s3d-grid); stroke-width: 1; stroke-dasharray: 2 3; }
.s3d-tc__zero { stroke: var(--s3d-white); stroke-width: 1.4; }
.s3d-tc__curve { fill: none; stroke: var(--s3d-accent); stroke-width: 2; stroke-linejoin: round; }
.s3d-tc__north { fill: var(--s3d-accent); fill-opacity: .2; }
.s3d-tc__south { fill: url(#s3d-tc-hatch); }
.s3d-tc__hatch { stroke: var(--s3d-steel); stroke-width: 1.2; stroke-opacity: .55; }
.s3d-tc__ax { fill: var(--s3d-steel); font: 400 10px var(--s3d-mono); }
.s3d-tc__ax--b { font-weight: 700; letter-spacing: .05em; fill: var(--s3d-white); }
.s3d-tc__tx { fill: var(--s3d-white); font: 700 10px var(--s3d-mono); letter-spacing: .02em; }
.s3d-tc__chip { fill: var(--s3d-chip); }
.s3d-tc__ev { fill: var(--s3d-chip); stroke: var(--s3d-white); stroke-width: 2; }
.s3d-tc__ev--max { fill: var(--s3d-accent); stroke: var(--s3d-black); stroke-width: 1.5; }
.s3d-tc__now { stroke: var(--s3d-white); stroke-width: 1.4; stroke-dasharray: 4 3; }
.s3d-tc__nowtri { fill: var(--s3d-white); }
.s3d-tc__nowdot { fill: var(--s3d-chip); stroke: var(--s3d-white); stroke-width: 2; }
.s3d-tc__sel { stroke: var(--s3d-cool); stroke-width: 2; }
.s3d-tc__seld { fill: var(--s3d-cool); stroke: var(--s3d-black); stroke-width: 1.5; }
.s3d-tc__tx--s { fill: var(--s3d-cool); }
.s3d-tilt__cap { margin: 8px 0 10px; font: 400 12px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--s3d-dim); }
.s3d-tilt__btn { width: 100%; }

/* ------------------------------------------------------------------ telemetry bar */
.s3d-bar { left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border-color: var(--s3d-edge); }
.s3d-bar__row { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.s3d-bar__tele { justify-content: flex-start; }
.s3d-bar__ctl { align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid var(--s3d-line); }
.s3d-grp { display: flex; align-items: stretch; background: var(--s3d-chip); border: 1px solid var(--s3d-line); flex: 1 1 auto; }
.s3d-grp__t {
	display: grid; place-items: center; padding: 6px 3px; background: var(--s3d-panel); color: var(--s3d-steel); border-right: 1px solid var(--s3d-edge);
	font: 700 10px/1 var(--s3d-mono); letter-spacing: .06em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; min-width: 18px;
}
.s3d-cell { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 12px; border-left: 1px solid var(--s3d-line); flex: 1 1 auto; }
.s3d-grp__t + .s3d-cell { border-left: 0; }
.s3d-cell--tgt { min-width: 200px; } .s3d-cell--pos { min-width: 138px; }
.s3d-cell--open { min-width: 170px; } .s3d-cell--sunel { min-width: 170px; }
.s3d-cell--alt { min-width: 120px; }

.s3d-ctl { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.s3d-ctl__t { font: 700 11px/1.3 var(--s3d-mono); letter-spacing: .06em; color: var(--s3d-steel); text-transform: uppercase; }
.s3d-ctl__b { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.s3d-ctl--time { flex: 1 1 300px; max-width: 620px; }
.s3d-ctl--time .s3d-range { flex: 1 1 100px; min-width: 80px; }
.s3d-ctl--speed { flex: none; }
.s3d-btn--speed { padding: 0 9px; min-width: 56px; }
.s3d-ctl--share { flex: none; }
.s3d-bar__ctl > .s3d-btn--guide { flex: none; margin-bottom: 0; }
.s3d-tlabel { display: flex; flex-direction: column; gap: 1px; min-width: 96px; font-size: 16px; line-height: 1.15; color: var(--s3d-accent); }
.s3d-tlabel i { font: 400 11px/1.2 var(--s3d-mono); font-style: normal; color: var(--s3d-dim); letter-spacing: .02em; }

.s3d-range { -webkit-appearance: none; appearance: none; height: 26px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.s3d-range::-webkit-slider-runnable-track { height: 8px; background: repeating-linear-gradient(90deg, var(--s3d-rim) 0 2px, #14100a 2px 8px); border: 1px solid var(--s3d-rim); }
.s3d-range::-moz-range-track { height: 8px; background: repeating-linear-gradient(90deg, var(--s3d-rim) 0 2px, #14100a 2px 8px); border: 1px solid var(--s3d-rim); }
.s3d-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 22px; margin-top: -8px; background: var(--s3d-accent); border: 2px solid var(--s3d-black); border-radius: 0; }
.s3d-range::-moz-range-thumb { width: 8px; height: 18px; background: var(--s3d-accent); border: 2px solid var(--s3d-black); border-radius: 0; }
.s3d-range:focus-visible { outline: 2px solid var(--s3d-cool); outline-offset: 2px; }
.s3d-range:hover::-webkit-slider-thumb { background: var(--s3d-accent-hi); }

.s3d-compact, .s3d-tabs { display: none; }

.s3d-tip {
	position: absolute; left: 0; top: 0; z-index: 6; max-width: 300px; padding: 9px 12px; pointer-events: none;
	background: var(--s3d-hover); color: var(--s3d-white); border: 1px solid var(--s3d-accent);
	font: 400 13px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0;
	opacity: 0; transition: opacity .15s;
}
.s3d-tip.is-on { opacity: 1; }

.s3d-toast {
	position: absolute; left: 50%; bottom: calc(16px + var(--s3d-bar-h) + 18px); transform: translate3d(-50%, 10px, 0);
	padding: 11px 18px; background: var(--s3d-hover); color: var(--s3d-white); border: 1px solid var(--s3d-accent);
	font: 700 12px/1.3 var(--s3d-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
	opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 6;
}
.s3d-toast.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }
.s3d-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s3d-nogl {
	position: absolute; left: 50%; top: 112px; transform: translateX(-50%); padding: 9px 16px;
	background: var(--s3d-chip); color: var(--s3d-white); border: 1px solid var(--s3d-accent); border-left-width: 4px;
	font: 700 12px/1.3 var(--s3d-mono); letter-spacing: .06em; white-space: nowrap;
}

/* ------------------------------------------------------------------ ring labels */
.s3d-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.s3d-mk, .s3d-sel { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; }
.s3d-mk.is-off, .s3d-sel.is-off { visibility: hidden; }
.s3d-mk { --c: var(--s3d-accent); }
.s3d-mk__g { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; }
.s3d-mk__g::before, .s3d-mk__g::after { content: ""; position: absolute; }
/* every label sits on its own opaque chip: the WCAG audit cannot see the WebGL pixels behind it */
.s3d-mk__t {
	position: absolute; left: 14px; top: -9px; height: 18px; padding: 0 7px 0 6px; white-space: nowrap;
	font: 700 11px/18px var(--s3d-mono); letter-spacing: .04em; background: var(--s3d-chip); color: var(--s3d-white);
	border-left: 3px solid var(--c); box-shadow: 0 0 0 1px var(--s3d-grid);
}
.is-nolabels .s3d-mk { display: none; }
.s3d-mk.is-flip .s3d-mk__t { transform: translateX(calc(-100% - 28px)); border-left: 0; border-right: 3px solid var(--c); padding: 0 6px 0 7px; }
/* major rings and divisions: round dot; minor items (gaps, ringlets, arcs): hollow diamond */
.s3d-mk--major .s3d-mk__g::before { left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--s3d-accent); border: 2px solid var(--s3d-black); box-shadow: 0 0 0 1px var(--s3d-accent); }
.s3d-mk--minor { --c: var(--s3d-steel); }
.s3d-mk--minor .s3d-mk__g::before { left: 4px; top: 4px; width: 10px; height: 10px; background: var(--s3d-black); border: 2px solid var(--s3d-steel); transform: rotate(45deg); }
.s3d-mk--minor .s3d-mk__t { height: 17px; line-height: 17px; top: -8px; left: 12px; font-weight: 400; }
.s3d-mk--minor.is-flip .s3d-mk__t { transform: translateX(calc(-100% - 24px)); }
.s3d-mk--edge .s3d-mk__t { font-weight: 700; }
.s3d-mk.is-sel .s3d-mk__t { background: var(--s3d-cool); color: var(--s3d-black); border-left-color: var(--s3d-black); }
.s3d-mk.is-hot .s3d-mk__t { background: var(--s3d-sun); color: var(--s3d-black); }
.s3d-mk.is-hot, .s3d-mk.is-sel { z-index: 2; }

.s3d-sel i { position: absolute; width: 11px; height: 11px; border: 0 solid var(--s3d-cool); animation: s3d-lock 3s ease-in-out infinite; }
.s3d-sel i:nth-child(1) { left: -22px; top: -22px; border-width: 2px 0 0 2px; --lx: 2px; --ly: 2px; }
.s3d-sel i:nth-child(2) { left: 11px; top: -22px; border-width: 2px 2px 0 0; --lx: -2px; --ly: 2px; }
.s3d-sel i:nth-child(3) { left: 11px; top: 11px; border-width: 0 2px 2px 0; --lx: -2px; --ly: -2px; }
.s3d-sel i:nth-child(4) { left: -22px; top: 11px; border-width: 0 0 2px 2px; --lx: 2px; --ly: -2px; }
.s3d-sel { z-index: 3; }

/* ------------------------------------------------------------------ boot */
.s3d-boot {
	position: absolute; z-index: 6; left: 16px; bottom: 16px; width: min(560px, calc(100% - 32px)); background-color: var(--s3d-chip);
	background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
	border: 1px solid var(--s3d-accent); font-family: var(--s3d-mono); transition: opacity .5s ease-out;
}
.s3d-boot.is-done { opacity: 0; }
.s3d-boot__h { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--s3d-panel); color: var(--s3d-accent); border-bottom: 1px solid var(--s3d-accent); font: 700 12px/1.3 var(--s3d-mono); letter-spacing: .08em; }
.s3d-boot__log { padding: 12px 12px 6px; height: 196px; overflow: hidden; }
.s3d-boot__l { display: flex; align-items: baseline; gap: 8px; font: 700 12px/1.75 var(--s3d-mono); letter-spacing: .04em; color: var(--s3d-white); white-space: nowrap; }
.s3d-boot__p { color: var(--s3d-accent); }
.s3d-boot__t { overflow: hidden; text-overflow: clip; }
.s3d-boot__s { margin-left: auto; padding: 0 6px; font-size: 11px; line-height: 17px; color: var(--s3d-steel); }
.s3d-boot__s.is-ok { background: var(--s3d-accent); color: var(--s3d-black); }
.s3d-boot__bar { position: relative; height: 12px; margin: 6px 12px 8px; border: 1px solid var(--s3d-dim); background: var(--s3d-black); overflow: hidden; }
.s3d-boot__bar i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); transition: transform .4s ease-out; background: repeating-linear-gradient(90deg, var(--s3d-accent) 0 8px, var(--s3d-black) 8px 11px); }
.s3d-boot__f { display: flex; justify-content: space-between; padding: 0 12px 10px; font: 700 11px/1.3 var(--s3d-mono); letter-spacing: .06em; color: var(--s3d-steel); }
.s3d-sweep { position: absolute; inset: 0; z-index: 5; pointer-events: none; visibility: hidden; }
.s3d-sweep::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--s3d-accent); opacity: .8; }
.s3d-sweep::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 70px; background: linear-gradient(to top, rgba(230, 194, 107, .16), rgba(230, 194, 107, 0)); }
.s3d-stage.is-ready .s3d-sweep { visibility: visible; animation: s3d-sweep 1.3s cubic-bezier(.65, 0, .25, 1) both; }
.s3d-stage.is-failed .s3d-boot { border-color: var(--s3d-red); }

/* ------------------------------------------------------------------ article and footer */
.s3d-article { background: var(--s3d-ink); color: var(--s3d-white); padding: 56px 20px 40px; font: 400 18px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.s3d-article > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.s3d-article p, .s3d-article li, .s3d-article dd { font-size: 18px; line-height: 1.65; }
.s3d-article p { margin-top: 0; margin-bottom: 1.1em; }
.s3d-article h2 { margin-top: 2.4em; margin-bottom: .6em; padding-left: 14px; border-left: 4px solid var(--s3d-steel); font: 700 28px/1.2 var(--s3d-display); letter-spacing: .02em; text-transform: uppercase; color: var(--s3d-white); }
.s3d-article > h2:first-child { margin-top: 0; }
.s3d-article h3 { margin-top: 1.8em; margin-bottom: .4em; font: 700 20px/1.3 var(--s3d-display); letter-spacing: .03em; text-transform: uppercase; color: var(--s3d-accent); }
.s3d-article a { color: var(--s3d-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.s3d-article a:hover { color: var(--s3d-steel); }
.s3d-article ul, .s3d-article ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.s3d-article li { margin-bottom: .4em; }
.s3d-article strong { color: var(--s3d-white); font-weight: 700; }
.s3d-article blockquote { margin: 1.4em auto; padding: .6em 1.2em; border-left: 4px solid var(--s3d-accent); background: var(--s3d-panel); }
.s3d-article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 16px; margin-bottom: 1.4em; }
.s3d-article th { text-align: left; background: var(--s3d-chip); color: var(--s3d-accent); border-bottom: 1px solid var(--s3d-accent); padding: 8px 10px; font: 700 13px/1.3 var(--s3d-mono); letter-spacing: .06em; text-transform: uppercase; }
.s3d-article td { padding: 8px 10px; border-bottom: 1px solid var(--s3d-line); background: var(--s3d-panel); vertical-align: top; }
.s3d-article img, .s3d-article figure { max-width: 100%; height: auto; }
.s3d-article figcaption { font-size: 15px; color: var(--s3d-dim); }
.s3d-article details { border: 1px solid var(--s3d-line); padding: 10px 14px; margin-bottom: 10px; background: var(--s3d-panel); }
.s3d-article summary { cursor: pointer; font-weight: 700; }
.s3d-article code { font: 400 .9em var(--s3d-mono); background: var(--s3d-panel); padding: 1px 5px; }
.s3d-shop { margin-top: 2.4em; margin-bottom: 1.4em; padding: 18px 20px 6px; background: var(--s3d-panel); border: 1px solid var(--s3d-edge); border-left: 4px solid var(--s3d-accent); }
.s3d-article .s3d-shop h3 { margin-top: 0; }
.s3d-shop ul { margin-bottom: .8em; }
.s3d-shop-note { font-size: 14px !important; line-height: 1.5 !important; color: var(--s3d-dim); margin-bottom: 12px !important; }
.s3d-foot { background: var(--s3d-black); border-top: 2px solid var(--s3d-accent); padding: 34px 20px 48px; color: var(--s3d-white); font: 400 12px/1.8 var(--s3d-mono); letter-spacing: .06em; text-transform: uppercase; }
.s3d-foot-nav, .s3d-credits { max-width: 980px; margin: 0 auto; }
.s3d-foot-row { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.s3d-foot-label { color: var(--s3d-steel); font-weight: 700; flex: 0 0 100px; }
.s3d-foot a { text-decoration: none; border-bottom: 1px solid var(--s3d-accent); }
.s3d-foot a:hover { color: var(--s3d-steel); border-color: var(--s3d-steel); }
.s3d-credits { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--s3d-line); color: var(--s3d-dim); text-transform: none; letter-spacing: .02em; font-size: 12px; }

/* ------------------------------------------------------------------ keyframes */
@keyframes s3d-reveal { from { clip-path: inset(0 0 100% 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes s3d-sweep { 0% { transform: translate3d(0, -100%, 0); opacity: 1; } 88% { opacity: 1; } 100% { transform: translate3d(0, 0, 0); opacity: 0; } }
@keyframes s3d-in-l { from { opacity: 0; transform: translate3d(-18px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes s3d-in-b { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
@keyframes s3d-in-s { from { opacity: 0; transform: translate3d(-50%, -10px, 0); } to { opacity: 1; transform: translate3d(-50%, 0, 0); } }
@keyframes s3d-in-t { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
@keyframes s3d-spin { to { transform: rotate(360deg); } }
@keyframes s3d-lock { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(var(--lx, 2px), var(--ly, 2px), 0); } }

/* ------------------------------------------------------------------ medium widths */
@media (max-width: 1279px) and (min-width: 700px) {
	.s3d-info, .s3d-rpanel { top: 112px; max-height: calc(100% - 112px - var(--s3d-bar-h) - 34px); }
	.s3d-search { left: 392px; transform: none; width: min(420px, calc(100vw - 392px - 16px)); }
	.s3d-stage.is-ready .s3d-search { animation-name: s3d-in-t; }
	.s3d-k__f { display: none; }
	.s3d-k__s { display: inline; }
	.s3d-cell { padding: 6px 9px; }
	.s3d-cell--tgt, .s3d-cell--pos, .s3d-cell--open, .s3d-cell--sunel, .s3d-cell--alt { min-width: 0; }
	.s3d-cell--tgt { min-width: 150px; }
	.s3d-bar__row { gap: 10px; }
	.s3d-ctl--time { flex: 1 1 260px; }
	.s3d-btn--guide { display: none; }
	.s3d-btn { padding: 0 10px; }
}
@media (max-width: 1099px) and (min-width: 700px) {
	.s3d-v { font-size: 15px; }
}
@media (max-height: 820px) and (min-width: 700px) {
	.s3d-lyr { height: 28px; }
	.s3d-layers { top: 168px; max-height: calc(100% - 168px - var(--s3d-bar-h) - 30px); }
}
@media (min-width: 1280px) {
	.s3d-bar__tele { flex-wrap: nowrap; }
}

/* ------------------------------------------------------------------ mobile: bottom sheet */
@media (max-width: 699px) {
	:root { --s3d-sheet-base: calc(48px + 28px + env(safe-area-inset-bottom, 0px)); }
	.s3d-brand { left: 8px; top: 8px; width: calc(100% - 68px); padding: 7px 10px 8px; border-left-width: 4px; }
	.s3d-home { font-size: 11px; }
	.s3d-title { font-size: 26px; margin: 0 0 3px; }
	.s3d-sub { font-size: 10px; line-height: 1.4; max-width: none; }

	.s3d-search { left: auto; right: 8px; top: 8px; transform: none; width: auto; }
	.s3d-stage.is-ready .s3d-search { animation: none; }
	.s3d-search__icon { display: inline-flex; width: 48px; height: 48px; padding: 0; }
	/* collapsed: the real input is laid invisibly over the icon so a tap on the icon focuses it (and expands the box) */
	.s3d-search__box { position: absolute; right: 0; top: 0; width: 48px; height: 48px; opacity: 0; }
	.s3d-search__lab { display: none; }
	.s3d-search__in { padding: 0; }
	.s3d-search.is-open .s3d-search__box { position: fixed; left: 8px; right: 8px; top: 8px; width: auto; opacity: 1; z-index: 8; }
	.s3d-search.is-open .s3d-search__lab { display: grid; }
	.s3d-search.is-open .s3d-search__in { padding: 0 12px; }
	.s3d-search.is-open .s3d-search__icon { visibility: hidden; }
	.s3d-stage.is-searching .s3d-brand { visibility: hidden; }
	.s3d-search__key { display: none; }
	.s3d-search__in { font-size: 16px; }
	.s3d-search__res { min-height: 52px; }

	.s3d-reticle { transform: scale(.8); margin-top: -90px; }
	.s3d-panel::before { display: none; }

	.s3d-tabs {
		display: grid; grid-template-columns: repeat(4, 1fr); position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
		padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--s3d-chip); border-top: 1px solid var(--s3d-accent);
	}
	.s3d-tab {
		height: 48px; margin: 0; border: 0; border-right: 1px solid var(--s3d-line); border-radius: 0; background: var(--s3d-chip); color: var(--s3d-white);
		font: 700 12px/1 var(--s3d-display); letter-spacing: .04em; cursor: pointer; text-transform: uppercase; padding: 0 2px;
	}
	.s3d-tab:last-child { border-right: 0; }
	.s3d-tab .s3d-ic { display: none; }
	.s3d-tab[aria-pressed="true"] { background: var(--s3d-accent); color: var(--s3d-black); }
	.s3d-tab:focus-visible { outline-offset: -4px; }
	.s3d-compact {
		display: flex; align-items: center; position: absolute; left: 0; right: 0; bottom: calc(48px + 1px + env(safe-area-inset-bottom, 0px)); height: 28px; padding: 0 10px;
		background: var(--s3d-ink); border-top: 1px solid var(--s3d-line); color: var(--s3d-white); font: 700 11px/1 var(--s3d-mono); letter-spacing: .02em; white-space: nowrap; overflow: hidden; pointer-events: none;
	}
	.s3d-layers, .s3d-info, .s3d-bar, .s3d-rpanel {
		display: none; left: 0; right: 0; bottom: var(--s3d-sheet-base); width: auto; max-height: min(58%, 480px); top: auto; overflow-y: auto; border-width: 1px 0 0 0;
		border-color: var(--s3d-accent); animation: none !important;
	}
	.s3d-hud[data-tab="layers"] .s3d-layers { display: flex; }
	.s3d-hud[data-tab="tools"] .s3d-bar { display: flex; }
	.s3d-hud[data-tab="rings"] .s3d-rpanel { display: flex; clip-path: none; visibility: visible; transition: none; max-height: min(70%, 600px); overflow: hidden; }
	.s3d-layers > .s3d-ph, .s3d-layers > .s3d-all, .s3d-layers > .s3d-hl--all, .s3d-rpanel > .s3d-ph, .s3d-rpanel > .s3d-pfoot { flex: none; }
	.s3d-lpanels { display: none; }
	.s3d-hud[data-tab="info"] .s3d-info { display: flex; clip-path: none; visibility: visible; max-height: min(58%, 480px); }
	.s3d-info { transition: none; }
	.s3d-info.is-open { clip-path: none; }
	.s3d-info:not(.is-open) .s3d-info__body, .s3d-info:not(.is-open) .s3d-info__actions { display: none; }
	.s3d-info:not(.is-open) .s3d-info__empty { display: block; }
	.s3d-info__title { font-size: 26px; }
	.s3d-rrow { min-height: 60px; }
	.s3d-fchip { min-height: 44px; min-width: 44px; flex: none; }
	.s3d-mfilter { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
	.s3d-tilt__cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
	.s3d-tilt__now { font-size: 13px; margin-bottom: 6px; }
	.s3d-tilt__in { padding: 8px 10px 10px; }
	.s3d-info__actions { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 10px 10px; }
	.s3d-info__actions .s3d-btn { height: 44px; padding: 0 4px; font-size: 12px; letter-spacing: .03em; }
	.s3d-info__actions .s3d-ic { display: none; }
	.s3d-all { height: 52px; }
	.s3d-all__s { height: 28px; }
	.s3d-hl--all { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; padding: 8px 12px; font: 400 13px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--s3d-dim); background: var(--s3d-chip); border-bottom: 1px solid var(--s3d-line); display: block; }
	.s3d-lyr-list { display: grid; grid-template-columns: 1fr 1fr; overflow-y: auto; }
	.s3d-gh { grid-column: 1 / -1; }
	.s3d-gh span { padding: 9px 12px; }
	.s3d-lyr { height: 48px; grid-template-columns: 20px 1fr 40px; border-right: 1px solid var(--s3d-line); padding: 0 6px 0 10px; gap: 6px; font-size: 12px; letter-spacing: .04em; }
	.s3d-lyr__c { display: none; }
	.s3d-lyr__s { height: 26px; }
	.s3d-ph { min-height: 52px; }
	.s3d-bar { padding: 10px 10px 14px; gap: 12px; }
	.s3d-bar__row { gap: 8px; }
	.s3d-bar__tele { display: grid; grid-template-columns: 1fr 1fr; }
	.s3d-bar__tele .s3d-grp:first-child { grid-column: 1 / -1; }
	.s3d-cell { min-width: 0 !important; padding: 7px 8px; }
	.s3d-bar__ctl { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
	.s3d-ctl { gap: 5px; }
	.s3d-ctl--time, .s3d-ctl--speed { max-width: none; flex: none; }
	.s3d-ctl--speed .s3d-ctl__b { display: grid; grid-template-columns: repeat(3, 1fr); }
	.s3d-ctl__b { flex-wrap: wrap; }
	.s3d-ctl--time .s3d-range { flex: 1 0 100%; order: 5; }
	.s3d-ctl--share .s3d-ctl__b { display: grid; grid-template-columns: 1fr; }
	.s3d-hl { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font: 400 13px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--s3d-dim); }
	.s3d-btn { min-height: 44px; }
	.s3d-btn--s { min-height: 44px; height: 44px; min-width: 44px; }
	.s3d-btn--guide { display: inline-flex; }
	.s3d-range { height: 44px; }
	.s3d-tlabel { min-width: 0; flex: 1; text-align: right; align-items: flex-end; }
	.s3d-toast { bottom: calc(var(--s3d-sheet-base) + 14px); max-width: calc(100% - 24px); white-space: normal; text-align: center; }
	.s3d-nogl { left: 8px; right: 8px; transform: none; white-space: normal; text-align: center; top: 216px; }
	.s3d-boot { left: 8px; right: 8px; bottom: 8px; width: auto; }
	.s3d-boot__l { font-size: 11px; letter-spacing: .02em; }
	.s3d-article { padding: 40px 16px 32px; }
	.s3d-article h2 { font-size: 24px; }
	.s3d-foot-label { flex-basis: 100%; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.s3d-stage.is-ready .s3d-canvas { opacity: 1; }
	.s3d-sweep { display: none; }
}
.s3d-stage.is-reduced .s3d-sweep { display: none; }
