/*
 * ERDI R15 viewer layer — /3d-viewer/ workbench
 * Owner: Claude. The exploded workbench already is an obsidian instrument; this layer
 * only aligns its tokens with the R15 contract (no warm paper, one signal hotspot,
 * cold telemetry) and tightens a few controls. Geometry, loader and interaction code
 * stay untouched.
 */
body.erdi-r15 .erdi-exploded-shell {
	--ev-ink: var(--erdi-r15-stage-deep);
	--ev-paper: var(--erdi-r15-ink);
	--ev-muted: var(--erdi-r15-muted);
	--ev-line: var(--erdi-r15-line);
	--ev-accent: var(--erdi-r15-signal);
	background: var(--erdi-r15-stage-deep);
	color: var(--erdi-r15-ink);
	font-family: var(--erdi-r15-body);
}
body.erdi-r15 .erdi-exploded-shell :is(.erdi-exploded-topbar, .erdi-exploded-product-nav, .erdi-exploded-controls) {
	background: var(--erdi-r15-stage-deep);
	border-color: var(--erdi-r15-line);
}
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-topbar {
	border-bottom: 1px solid var(--erdi-r15-telemetry-line);
}
body.erdi-r15 .erdi-exploded-shell :is(.erdi-exploded-parts, .erdi-exploded-inspector) {
	background: var(--erdi-r15-stage);
	border-color: var(--erdi-r15-line);
}
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-stage {
	background:
		radial-gradient(55% 55% at 50% 58%, rgba(29, 40, 48, .9) 0%, rgba(8, 11, 13, 0) 100%),
		var(--erdi-r15-stage-deep);
}
body.erdi-r15 .erdi-exploded-shell .erdi-stage-grid {
	opacity: .55;
}
body.erdi-r15 .erdi-exploded-shell :is(.erdi-exploded-title span, .erdi-exploded-title em, .erdi-exploded-title strong) {
	color: var(--erdi-r15-signal);
}
body.erdi-r15 .erdi-exploded-shell :is(.erdi-exploded-rail-head, .erdi-stage-readout, .erdi-inspector-kicker, .erdi-stage-note, .erdi-exploded-product-nav small, .erdi-exploded-topbar .erdi-exploded-kicker) {
	font-family: var(--erdi-r15-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--erdi-r15-telemetry-a);
}
body.erdi-r15 .erdi-exploded-shell .erdi-inspector-kicker {
	color: var(--erdi-r15-signal);
}
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-parts button,
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-parts a {
	color: var(--erdi-r15-ink-soft);
	border-color: var(--erdi-r15-line);
}
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-parts :is(button, a) :is(i, b, span:first-child) {
	font-family: var(--erdi-r15-mono);
	color: var(--erdi-r15-telemetry-a);
}
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-parts :is(button, a):is(:hover, [aria-pressed="true"], [aria-current]) {
	color: var(--erdi-r15-ink);
	box-shadow: inset 2px 0 0 var(--erdi-r15-signal);
}
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-product-nav a {
	color: var(--erdi-r15-muted);
	font-family: var(--erdi-r15-mono);
	letter-spacing: .04em;
}
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-product-nav a[aria-current],
body.erdi-r15 .erdi-exploded-shell .erdi-exploded-product-nav a.is-active {
	color: var(--erdi-r15-ink);
	box-shadow: inset 0 -2px 0 var(--erdi-r15-signal);
}
body.erdi-r15 .erdi-exploded-shell .erdi-selected-specs dt {
	font-family: var(--erdi-r15-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--erdi-r15-telemetry-a);
}
body.erdi-r15 .erdi-exploded-shell .erdi-selected-specs dd {
	color: var(--erdi-r15-ink);
	font-variant-numeric: tabular-nums;
}
body.erdi-r15 .erdi-exploded-shell .erdi-selected-specs > div,
body.erdi-r15 .erdi-exploded-shell .erdi-inspector-rule {
	border-color: var(--erdi-r15-line);
	background: var(--erdi-r15-line);
}
body.erdi-r15 .erdi-exploded-shell .erdi-control-button {
	border: 1px solid var(--erdi-r15-line-strong);
	border-radius: var(--erdi-r15-radius-control);
	color: var(--erdi-r15-ink);
	background: transparent;
	font-family: var(--erdi-r15-mono);
	font-size: 12px;
	letter-spacing: .055em;
	text-transform: uppercase;
	min-height: 48px;
	transition: border-color var(--erdi-r15-t-fast) var(--erdi-r15-ease-standard), color var(--erdi-r15-t-fast) var(--erdi-r15-ease-standard), background-color var(--erdi-r15-t-fast) var(--erdi-r15-ease-standard);
}
body.erdi-r15 .erdi-exploded-shell .erdi-control-button:hover {
	border-color: var(--erdi-r15-focus);
	color: var(--erdi-r15-focus);
}
body.erdi-r15 .erdi-exploded-shell .erdi-control-button.is-accent,
body.erdi-r15 .erdi-exploded-shell .erdi-control-button[aria-pressed="true"].is-accent {
	background: var(--erdi-r15-signal);
	border-color: var(--erdi-r15-signal);
	color: var(--erdi-r15-stage-deep);
	box-shadow: var(--erdi-r15-glow-signal);
}
body.erdi-r15 .erdi-exploded-shell .erdi-control-button[aria-pressed="true"]:not(.is-accent) {
	border-color: var(--erdi-r15-signal);
	color: var(--erdi-r15-signal);
}
body.erdi-r15 .erdi-exploded-shell input[type="range"] {
	accent-color: var(--erdi-r15-signal);
}
body.erdi-r15 .erdi-exploded-shell .erdi-stage-loading {
	color: var(--erdi-r15-telemetry-a);
	font-family: var(--erdi-r15-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
}
body.erdi-r15 .erdi-exploded-shell .erdi-stage-labels :is(span, b, i) {
	font-family: var(--erdi-r15-mono);
	color: var(--erdi-r15-telemetry);
	border-color: var(--erdi-r15-telemetry-line);
}
body.erdi-r15 .erdi-exploded-shell a:not([class]) {
	color: var(--erdi-r15-ink-soft);
}
body.erdi-r15 .erdi-exploded-shell a:not([class]):hover {
	color: var(--erdi-r15-signal);
}
body.erdi-r15 .erdi-exploded-shell :is(a, button):focus-visible {
	outline: 2px solid var(--erdi-r15-focus);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	body.erdi-r15 .erdi-exploded-shell * {
		transition-duration: 0ms !important;
	}
}
