/* 悬衡 · BALANS — Flat Layered Spatial UI & Choreographed Motion */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--wall-base);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: background-color var(--dur-theme) var(--ease-expo),
              color var(--dur-theme) var(--ease-expo);
}

/* Full-bleed Kinetic Stage */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  cursor: default;
  z-index: 1;
}

#stage.cursor-grab { cursor: grab; }
#stage.cursor-grabbing { cursor: grabbing; }
#stage.cursor-ew { cursor: ew-resize; }
#stage.cursor-pointer { cursor: pointer; }

/* Subtle Architectural Plaster Grain */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  transition: opacity var(--dur-theme) var(--ease-expo);
}

[data-light="gallery"] .grain-overlay {
  opacity: 0.055;
  mix-blend-mode: screen;
}

/* Chrome Layer */
.studio-chrome {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.studio-chrome > * {
  pointer-events: auto;
}

/* ── Top-Left Colophon ── */
.colophon {
  position: fixed;
  top: 26px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  transition: transform 680ms var(--ease-expo), opacity 520ms var(--ease-expo);
}

.colophon__brand {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.colophon__title {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-primary);
  line-height: 1;
  transition: color var(--dur-theme) var(--ease-expo);
}

.colophon__en {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  text-transform: uppercase;
  transition: color var(--dur-theme) var(--ease-expo);
}

.colophon__sub {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
  margin-top: -5px;
  transition: color var(--dur-theme) var(--ease-expo);
}

/* Architectural Live Balance Gauge */
.balance-meter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 13px;
  border-radius: var(--r-well);
  background: var(--surface-tray);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--elev-tray);
  width: fit-content;
  transition: background-color var(--dur-theme) var(--ease-expo),
              box-shadow var(--dur-theme) var(--ease-expo),
              opacity 480ms var(--ease-expo);
}

.spirit-beam {
  position: relative;
  width: 34px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spirit-beam__fulcrum {
  position: absolute;
  bottom: 2px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 5px solid var(--brass);
  transition: border-bottom-color var(--dur-theme) var(--ease-expo);
}

.spirit-beam__bar {
  width: 30px;
  height: 1.5px;
  background: var(--ink-primary);
  border-radius: 2px;
  transform-origin: center;
  will-change: transform;
  position: relative;
  top: -1px;
  transition: background-color var(--dur-theme) var(--ease-expo);
}

.spirit-beam__bar::before,
.spirit-beam__bar::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-primary);
  transition: background-color var(--dur-theme) var(--ease-expo);
}
.spirit-beam__bar::before { left: -1px; }
.spirit-beam__bar::after { right: -1px; background: var(--accent); }

.balance-meter__stats {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.balance-meter__val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
  transition: color var(--dur-theme) var(--ease-expo);
}

.balance-meter__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-muted);
  opacity: 0.5;
  align-self: center;
}

/* ── Top-Right Utility Strip ── */
.utility-strip {
  position: fixed;
  top: 26px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: var(--surface-tray);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--elev-tray);
  transition: background-color var(--dur-theme) var(--ease-expo),
              box-shadow var(--dur-theme) var(--ease-expo),
              transform 620ms var(--ease-expo),
              opacity 480ms var(--ease-expo);
}

.util-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 13px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  position: relative;
  transition: color var(--dur-micro) var(--ease-quiet),
              background-color var(--dur-micro) var(--ease-quiet),
              transform 160ms var(--ease-spring),
              box-shadow var(--dur-micro) var(--ease-quiet);
}

.util-btn:hover {
  color: var(--ink-primary);
  background: var(--surface-well);
}

.util-btn:active {
  transform: scale(0.96);
}

.util-btn.is-active {
  color: var(--ink-primary);
  background: var(--surface-lift);
  box-shadow: var(--elev-lift);
}

.util-btn.is-accent {
  color: var(--accent);
  background: var(--surface-accent-soft);
}

.util-btn.is-accent:hover {
  background: var(--accent);
  color: var(--ink-inverse);
}

.util-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Living Acoustic Bar Indicator */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  width: 12px;
}

.sound-bars span {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  height: 3px;
  transition: height 240ms var(--ease-expo);
}

.util-btn.is-active .sound-bars span:nth-child(1) {
  animation: chimeWave 1.15s ease-in-out infinite;
}
.util-btn.is-active .sound-bars span:nth-child(2) {
  animation: chimeWave 0.9s ease-in-out 0.2s infinite;
}
.util-btn.is-active .sound-bars span:nth-child(3) {
  animation: chimeWave 1.3s ease-in-out 0.45s infinite;
}

@keyframes chimeWave {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}

/* ── Right Architectural Sculptor Rail (Inspector) ── */
.inspector {
  position: fixed;
  top: 86px;
  right: 30px;
  width: 268px;
  max-height: calc(100dvh - 188px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 18px;
  border-radius: var(--r-tray);
  background: var(--surface-tray);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--elev-tray);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 560ms var(--ease-expo),
              opacity 420ms var(--ease-expo),
              background-color var(--dur-theme) var(--ease-expo),
              box-shadow var(--dur-theme) var(--ease-expo);
}

.inspector::-webkit-scrollbar {
  display: none;
}

.inspector.is-collapsed {
  transform: translateX(30px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

.inspector__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inspector__tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: background-color 280ms var(--ease-expo), transform 280ms var(--ease-spring);
}

.inspector__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-primary);
}

.inspector__mass {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: var(--r-round);
  background: var(--surface-well);
}

.inspector__close {
  appearance: none;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--dur-micro), color var(--dur-micro), transform 180ms var(--ease-spring);
}

.inspector__close:hover {
  background: var(--surface-well);
  color: var(--ink-primary);
}

.inspector__close:active {
  transform: scale(0.9);
}

/* Section inside Inspector */
.inspector-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-fields[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.field__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.field__readout {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-secondary);
}

/* Shape Matrix (Flat tonal cells, no borders) */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-well);
  background: var(--surface-well);
  box-shadow: var(--elev-well);
}

.shape-btn {
  appearance: none;
  border: none;
  aspect-ratio: 1;
  border-radius: var(--r-chip);
  background: transparent;
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 240ms var(--ease-expo),
              color 240ms var(--ease-expo),
              transform 260ms var(--ease-spring),
              box-shadow 240ms var(--ease-expo);
}

.shape-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 280ms var(--ease-spring);
}

.shape-btn:hover {
  color: var(--ink-primary);
  background: var(--surface-well-hover);
}

.shape-btn:hover svg {
  transform: scale(1.08);
}

.shape-btn.is-active {
  background: var(--surface-lift);
  color: var(--ink-primary);
  box-shadow: var(--elev-lift);
}

.shape-btn.is-active svg {
  transform: scale(1.1);
}

/* Mineral Pigment Swatches */
.pigment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: var(--r-well);
  background: var(--surface-well);
  box-shadow: var(--elev-well);
}

.swatch-btn {
  appearance: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  position: relative;
  transition: transform 320ms var(--ease-spring), box-shadow 260ms var(--ease-expo);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.swatch-btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 2px var(--surface-lift);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 240ms var(--ease-expo), transform 340ms var(--ease-spring);
}

.swatch-btn:hover {
  transform: scale(1.14);
}

.swatch-btn.is-active {
  transform: scale(1.18);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.swatch-btn.is-active::after {
  opacity: 1;
  transform: scale(1);
}

/* Segmented Control with Spring-Sliding Lifted Chip */
.segmented {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--r-well);
  background: var(--surface-well);
  box-shadow: var(--elev-well);
  gap: 2px;
  transition: background-color var(--dur-theme) var(--ease-expo);
}

.segmented__slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: var(--r-chip);
  background: var(--surface-lift);
  box-shadow: var(--elev-lift);
  pointer-events: none;
  z-index: 0;
  will-change: transform, width;
  transition: transform 420ms var(--ease-spring),
              width 420ms var(--ease-spring),
              background-color var(--dur-theme) var(--ease-expo),
              box-shadow var(--dur-theme) var(--ease-expo);
}

.segmented__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 7px 11px;
  border-radius: var(--r-chip);
  cursor: pointer;
  position: relative;
  z-index: 1;
  flex: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 240ms var(--ease-quiet);
}

.segmented__btn:hover {
  color: var(--ink-primary);
}

.segmented__btn.is-active {
  color: var(--ink-primary);
}

.segmented--compact .segmented__btn {
  font-size: 11px;
  padding: 6px 6px;
  letter-spacing: 0.04em;
}

/* Light mood tiny sun disc */
.mood-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 280ms var(--ease-spring);
}

.segmented__btn.is-active .mood-dot {
  transform: scale(1.25);
}

/* Custom Architectural Recessed Vernier Slider */
.vernier {
  position: relative;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-well);
  box-shadow: var(--elev-well);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  padding: 0 12px;
  touch-action: none;
  transition: background-color var(--dur-theme) var(--ease-expo);
}

.vernier__ticks {
  position: absolute;
  inset: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.vernier__ticks i {
  display: block;
  width: 1px;
  height: 6px;
  background: var(--ink-muted);
  opacity: 0.28;
  border-radius: 1px;
}

.vernier__ticks i:nth-child(5n + 1) {
  height: 11px;
  opacity: 0.44;
}

.vernier__fill {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  border-radius: 7px;
  background: var(--surface-hairline);
  pointer-events: none;
}

/* Equilibrium target notch on fulcrum slider */
.vernier__target {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0;
  transition: left 180ms var(--ease-expo), opacity 240ms var(--ease-expo);
}

.vernier__target.is-visible {
  opacity: 0.85;
}

.vernier__thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface-lift);
  box-shadow: var(--elev-thumb);
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: transform 220ms var(--ease-spring), background-color var(--dur-theme) var(--ease-expo);
}

.vernier__thumb::after {
  content: "";
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink-primary);
  opacity: 0.65;
}

.vernier.is-dragging .vernier__thumb {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Inspector Action Row */
.action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 2px;
}

.action-btn {
  appearance: none;
  border: none;
  padding: 9px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-well);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 220ms var(--ease-quiet),
              color 220ms var(--ease-quiet),
              transform 180ms var(--ease-spring),
              box-shadow 220ms var(--ease-quiet);
}

.action-btn:hover {
  background: var(--surface-lift);
  box-shadow: var(--elev-lift);
}

.action-btn:active {
  transform: scale(0.96);
}

.action-btn--primary {
  background: var(--ink-primary);
  color: var(--ink-inverse);
}

.action-btn--primary:hover {
  background: var(--accent);
  color: var(--ink-inverse);
}

.action-btn--danger {
  color: var(--accent);
  background: var(--surface-accent-soft);
}

.action-btn--danger:hover {
  background: var(--accent);
  color: var(--ink-inverse);
}

.action-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.action-btn--full {
  grid-column: 1 / -1;
}

/* ── Bottom Architectural Dock ── */
.dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 40px);
  transition: transform 640ms var(--ease-expo), opacity 480ms var(--ease-expo);
}

.dock-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 18px;
  background: var(--surface-tray);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--elev-tray);
  transition: background-color var(--dur-theme) var(--ease-expo),
              box-shadow var(--dur-theme) var(--ease-expo);
}

.dock-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  padding-left: 6px;
  white-space: nowrap;
}

.wind-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}

.wind-group .vernier {
  width: 96px;
  height: 28px;
}

.gust-btn {
  appearance: none;
  border: none;
  padding: 7px 12px;
  border-radius: var(--r-chip);
  background: var(--surface-well);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 220ms var(--ease-quiet),
              color 220ms var(--ease-quiet),
              transform 200ms var(--ease-spring),
              box-shadow 220ms var(--ease-quiet);
}

.gust-btn:hover {
  background: var(--surface-lift);
  box-shadow: var(--elev-lift);
}

.gust-btn:active {
  transform: scale(0.94);
}

/* ── Bottom-Left Subtle Gesture Caption ── */
.gesture-hint {
  position: fixed;
  left: 30px;
  bottom: 30px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity 600ms var(--ease-expo), transform 600ms var(--ease-expo);
}

.gesture-hint__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.7;
  animation: quietPulse 2.8s ease-in-out infinite;
}

@keyframes quietPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.45); opacity: 0.9; }
}

.gesture-hint.is-faded {
  opacity: 0.36;
}

/* ── Exhibition Mode Placard & Return Pill ── */
.exhibition-placard {
  position: fixed;
  left: 36px;
  bottom: 36px;
  z-index: 12;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 680ms var(--ease-expo), transform 680ms var(--ease-expo);
}

.exhibition-placard__no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-muted);
}

.exhibition-placard__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-primary);
}

.exhibition-placard__meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-secondary);
}

.exhibition-exit {
  position: fixed;
  top: 26px;
  right: 30px;
  z-index: 15;
  appearance: none;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface-tray);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--elev-tray);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 520ms var(--ease-expo), transform 520ms var(--ease-expo), background-color 240ms;
}

.exhibition-exit:hover {
  background: var(--surface-lift);
}

/* Toast Notification (Borderless floating matte pill) */
.toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translate(-50%, -18px);
  z-index: 30;
  padding: 9px 18px;
  border-radius: var(--r-round);
  background: var(--ink-primary);
  color: var(--ink-inverse);
  font-size: 12px;
  letter-spacing: 0.12em;
  box-shadow: var(--elev-tray);
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms var(--ease-expo), transform 420ms var(--ease-spring);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Choreographed Entrance & Exhibition Transitions ── */
body.is-entering .colophon {
  opacity: 0;
  transform: translateY(-14px);
}
body.is-entering .utility-strip {
  opacity: 0;
  transform: translateY(-14px);
}
body.is-entering .inspector {
  opacity: 0;
  transform: translateX(22px);
}
body.is-entering .dock {
  opacity: 0;
  transform: translate(-50%, 22px);
}
body.is-entering .gesture-hint {
  opacity: 0;
}

body.is-exhibition .colophon {
  opacity: 0;
  transform: translateY(-18px);
}
body.is-exhibition .utility-strip {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}
body.is-exhibition .inspector {
  opacity: 0;
  transform: translateX(36px);
  pointer-events: none;
}
body.is-exhibition .dock {
  opacity: 0;
  transform: translate(-50%, 28px);
  pointer-events: none;
}
body.is-exhibition .gesture-hint {
  opacity: 0;
}
body.is-exhibition .exhibition-placard {
  opacity: 1;
  transform: translateY(0);
}
body.is-exhibition .exhibition-exit {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Inspector Panel Re-open Pill when collapsed */
.inspector-reopen {
  position: fixed;
  top: 86px;
  right: 30px;
  appearance: none;
  border: none;
  padding: 9px 14px;
  border-radius: 13px;
  background: var(--surface-tray);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--elev-tray);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity 380ms var(--ease-expo), transform 420ms var(--ease-expo), color 200ms, background-color 200ms;
}

.inspector-reopen.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.inspector-reopen:hover {
  color: var(--ink-primary);
  background: var(--surface-lift);
}

body.is-exhibition .inspector-reopen {
  opacity: 0;
  pointer-events: none;
}

/* ── Responsive Refinement ── */
@media (max-width: 1100px) {
  .gesture-hint {
    display: none;
  }
  .dock-label {
    display: none;
  }
}

@media (max-width: 820px) {
  .colophon {
    top: 16px;
    left: 16px;
    gap: 8px;
  }
  .colophon__title {
    font-size: 22px;
  }
  .colophon__sub {
    display: none;
  }
  .utility-strip {
    top: 16px;
    right: 16px;
    padding: 4px;
  }
  .util-btn {
    padding: 7px 9px;
    font-size: 11px;
  }
  .util-btn span.util-label {
    display: none;
  }
  .inspector {
    top: auto;
    bottom: 84px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: 44dvh;
    padding: 15px;
    gap: 12px;
  }
  .inspector-reopen {
    top: auto;
    bottom: 86px;
    right: 16px;
  }
  .dock {
    bottom: 14px;
    flex-wrap: nowrap;
    gap: 6px;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dock::-webkit-scrollbar {
    display: none;
  }
  .dock-tray {
    padding: 5px;
  }
  .wind-group .vernier {
    width: 68px;
  }
}
