/* Homepage-only preferences. The actual controls keep their original handlers. */
html.gallery-home .experience-toggle,
html.gallery-home .experience-panel {
  --gd-glass-fill: #1d1d1b;
  --gd-glass-ink: #F4F1EA;
  --gd-glass-edge: #6d6658;
  --gd-glass-focus: #B79B6F;
  --gd-control-radius: 8px;
  color: var(--gallery-ivory, #F4F1EA);
  font: 400 12px/1.5 var(--sans, sans-serif);
}
html.gallery-home .experience-toggle {
  position: fixed;
  z-index: 2147483150;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--gallery-rule, #6d6658);
  background: var(--gallery-charcoal, #151515);
  touch-action: manipulation;
}
html.gallery-home .experience-toggle > span:first-child { color: var(--gallery-champagne, #B79B6F); font-size: 17px; }
html.gallery-home .experience-panel {
  position: fixed;
  z-index: 2147483200;
  inset: auto max(18px, env(safe-area-inset-right)) max(74px, calc(env(safe-area-inset-bottom) + 56px)) auto;
  width: min(340px, calc(100vw - 36px));
  max-height: calc(100dvh - 100px - env(safe-area-inset-bottom));
  margin: 0;
  padding: 0;
  border: 1px solid var(--gallery-rule, #6d6658);
  border-radius: 12px;
  background: var(--gallery-charcoal, #151515);
  box-shadow: 0 16px 50px #0004;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #756b59 #151515;
  pointer-events: auto;
  color-scheme: dark;
}
html.gallery-home .experience-panel::backdrop { background: transparent; pointer-events: none; }
html.gallery-home .experience-panel[hidden],
html.gallery-home .experience-panel [hidden],
html.gallery-home [data-experience-duplicates] { display: none !important; }
html.gallery-home .experience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--gallery-rule, #514b41);
  background: var(--gallery-charcoal, #151515);
}
html.gallery-home .experience-head p { margin: 0 0 3px; color: #c0b8ab; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
html.gallery-home .experience-head h2 { margin: 0; color: #F4F1EA; font: 400 25px/1.15 var(--serif, Georgia, serif); letter-spacing: -.02em; }
html.gallery-home .experience-close { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #6d6658; background: #1d1d1b; font-size: 22px; }
html.gallery-home .experience-content { padding: 0 18px 9px; }
html.gallery-home .experience-group { padding: 13px 0 14px; border-bottom: 1px solid var(--gallery-rule, #514b41); }
html.gallery-home .experience-group:last-child { border-bottom: 0; }
html.gallery-home .experience-group h3 { margin: 0 0 9px; color: #c5ae85; font: 400 10px/1.3 var(--sans, sans-serif); text-transform: uppercase; letter-spacing: .12em; }
html.gallery-home .experience-slot { display: grid; gap: 8px; min-width: 0; }
html.gallery-home .experience-panel button { min-height: 44px; touch-action: manipulation; }
html.gallery-home .experience-panel button:focus-visible,
html.gallery-home .experience-toggle:focus-visible { outline: 2px solid #B79B6F !important; outline-offset: 3px; }
html.gallery-home .experience-panel :is(.core-fx-panel, .motion-toggle, #director-tools) { position: static !important; inset: auto !important; z-index: auto !important; transform: none !important; max-width: 100%; width: 100%; margin: 0; }
html.gallery-home .experience-panel :is(.motion-toggle, .core-fx-disclosure, [data-fx-audio], [data-director-sound], .director-launch) { display: inline-flex !important; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid #6d6658; font: 400 12px/1.4 var(--sans, sans-serif); letter-spacing: 0; }
html.gallery-home .experience-panel .motion-icon { font-size: 13px; }
html.gallery-home .experience-panel .director-launch-state { margin-left: auto; }
html.gallery-home .experience-panel .core-fx-panel { color: #F4F1EA; }
html.gallery-home .experience-panel #core-fx-options { min-width: 0; max-width: 100%; margin-top: 8px; padding: 8px; background: #1d1d1b; border-color: #514b41; }
html.gallery-home .experience-panel #core-fx-options output { max-width: 100%; color: #c0b8ab; }
html.gallery-home .experience-panel.experience-has-native-motion [data-fx-motion] { display: none !important; }
html.gallery-home .experience-panel .director-audio-controls { padding: 0; border: 0; }
html.gallery-home .experience-panel .director-volume { color: #c0b8ab; }
html.gallery-home .experience-panel .director-volume input { min-height: 44px; accent-color: #B79B6F; }
html.gallery-home .experience-panel [data-director-audio-status] { margin: 7px 0 0; color: #c0b8ab; font-size: 10px; line-height: 1.55; }
html.gallery-home .experience-panel .pointer-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; position: static; padding: 0; border: 0; margin: 0; background: none; }
html.gallery-home .experience-panel .pointer-modes button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 58px; padding: 7px 3px; border: 1px solid #6d6658; border-radius: 8px; font: 400 11px/1.3 var(--sans, sans-serif); }
html.gallery-home .experience-panel .pointer-modes svg { width: 17px; height: 17px; }
html.gallery-home .experience-panel .pointer-modes button > span { font-size: 18px; line-height: 17px; }
html.gallery-home .experience-panel .pointer-modes button[aria-pressed="true"] { border-color: #B79B6F; }
html.gallery-home .experience-panel .pointer-modes button:disabled { opacity: .45; }
html.gallery-home #jet-flight-layer:not([data-active="true"]) :is(.jet-hud, .pointer-touch-deck, canvas) { display: none !important; }
html.gallery-home.jet-flight-cursor .experience-panel,
html.gallery-home.jet-flight-cursor .experience-toggle { cursor: auto !important; }
html.gallery-home.jet-flight-cursor :is(.experience-panel, .experience-toggle) button { cursor: pointer !important; }
@media (max-width: 600px) {
  html.gallery-home .experience-toggle { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); padding-inline: 12px; }
  html.gallery-home .experience-panel { right: max(12px, env(safe-area-inset-right)); bottom: max(66px, calc(env(safe-area-inset-bottom) + 56px)); width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}
/* The shared reference theme uses this layer for its important declarations. */
@layer dnSignalBrand {
  html.gallery-home :is(.experience-toggle, .experience-panel button) { border-radius: 8px !important; background: #1d1d1b !important; background-image: none !important; color: #F4F1EA !important; border-color: #6d6658 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html.gallery-home .experience-panel button:is([aria-pressed="true"], [aria-checked="true"]) { border-color: #B79B6F !important; background: #373126 !important; }
}
@media (forced-colors: active) {
  html.gallery-home :is(.experience-toggle, .experience-panel) { background: Canvas; color: CanvasText; border-color: ButtonText; box-shadow: none; }
}
@media print { html.gallery-home :is(.experience-toggle, .experience-panel) { display: none !important; } }
