/* Isolated public explorer. System fonts avoid opaque-origin font requests. */
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: #f6f7f4; color: #173f5e; font-family: Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #20469f; outline-offset: 5px; }
.explorer { max-width: 680px; margin: 0 auto; padding: 0 8px 14px; }
.stage { position: relative; isolation: isolate; height: 490px; background: radial-gradient(ellipse at 50% 45%, #fff 10%, #f2f4f0 55%, #f6f7f4 75%); }
.stage-heading { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; gap: 10px; color: #5d6d7b; font-size: 14px; font-weight: 650; letter-spacing: .04em; flex-wrap: wrap; line-height: 1.5; }
.live-label { display: flex; align-items: center; gap: 6px; }
.live-label i { width: 5px; height: 5px; border-radius: 50%; background: #20469f; }
#parts-scene { position: absolute; inset: 64px 0 4px; width: 100%; height: calc(100% - 68px); }
.static-parts-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.motion-button { display: flex; justify-content: center; align-items: center; gap: 13px; width: min(100% - 16px, 300px); min-height: 64px; margin: 9px auto 0; padding: 10px 23px 10px 12px; border: 1px solid #173f5e; border-radius: 40px; background: #173f5e; box-shadow: 0 4px 12px #173f5e12; color: #fff; text-align: left; }
.motion-button:hover { background: #204e6e; }
.motion-button:active { background: #12334d; }
.motion-play { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #efda96; color: #173f5e; }
.motion-play svg { display: block; width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; transform: translateX(1px); }
.motion-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.3; }
#motion-hint { font-size: 14px; font-weight: 500; color: #d2dfe8; }
.view-controls { display: flex; align-items: center; gap: 24px; width: min(100% - 24px, 380px); margin: 18px auto 0; padding-top: 12px; border-top: 1px solid #dce2dd; }
.separation-control { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.separation-control label { color: #536978; font-size: 14px; line-height: 1.5; }
.separation-control input { width: 100%; min-width: 0; height: 30px; margin: 2px 0 0; accent-color: #20469f; cursor: ew-resize; }
.reset-button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 4px; border: 0; background: transparent; color: #536978; font-size: 14px; }
.reset-button svg, .icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rotation-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 4px auto 0; }
.rotation-tools > span { color: #536978; font-size: 14px; line-height: 1.5; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #d8dfd9; border-radius: 50%; color: #536978; background: #ffffffa6; }
.icon-button:hover { background: #fff; border-color: #8a9ca8; }
.illustration-note { margin: 13px 10px 0; color: #5d6d7b; font-size: 14px; line-height: 1.6; text-align: center; }
.js-only, .unavailable { display: none; }
.js-enabled .js-only { display: flex; }
.js-enabled .motion-play, .js-enabled .icon-button { display: grid; }
.fallback-parts { max-width: 430px; margin: 12px auto; padding: 0 12px; font-size: 14px; line-height: 1.6; }
.fallback-parts p { margin: 6px 0; }
.js-enabled .fallback-parts { display: none; }
.scene-unavailable .unavailable { display: block; position: absolute; inset: 45% 25px auto; margin: 0; font-size: 14px; line-height: 1.6; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 420px) {
  .explorer { padding-inline: 0; }
  .stage { height: 450px; }
  .stage-heading { left: 4px; right: 4px; font-size: 14px; letter-spacing: .04em; }
  #parts-scene { inset: 64px 0 3px; height: calc(100% - 67px); }
  .motion-button { min-height: 62px; width: min(100% - 12px, 286px); }
  .motion-copy { font-size: 14px; }
  .view-controls { width: calc(100% - 16px); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
