/* View changes fade without the old panel translation. */
#index-dialog .view-panel{animation:none}
/* The fallback remains available when 3D loading fails, without flashing
   before the relief map's first frame. */
#index-dialog #geolocation-view #map-fallback{visibility:hidden}
#index-dialog .experience[data-scene-state=error] #geolocation-view #map-fallback{visibility:visible}
/* The flat map is a fallback only: never shown while the 3D map is still being built behind the loader. */
#index-dialog .experience[data-spatial=off] #geolocation-view #map-fallback,
#index-dialog .experience #geolocation-view:is([data-map-countries=error],[data-map-countries=unavailable]) .world-map:not(.has-spatial) #map-fallback{visibility:visible}
/* One editorial header for all four scenes. */
#index-dialog .experience:is([data-view=geolocation],[data-view=people],[data-view=brands],[data-view=retailers],[data-view=assistants]) .explorer-context{
  position:absolute;z-index:11;top:98px;left:30px;right:30px;
  display:block;margin:0;padding:0;pointer-events:none;
}
#index-dialog .experience .explorer-context .context-title{max-width:calc(100% - 360px)}
#index-dialog .experience .explorer-context #context-kicker{
  display:block;color:var(--red);font-size:8px;font-weight:600;
  line-height:1.4;letter-spacing:1.7px;
}
#index-dialog .experience .explorer-context #context-title{
  max-width:850px;margin:8px 0 0;color:var(--text);
  font-size:clamp(32px,3.4vw,46px);font-weight:400;
  line-height:1.06;letter-spacing:-.055em;text-shadow:0 2px 24px var(--bg);
}
#index-dialog .experience .explorer-context #context-description{
  max-width:410px;margin:11px 0 0;color:var(--secondary);
  font-size:11px;line-height:1.6;text-shadow:0 1px 12px var(--bg);
}
#index-dialog .experience:is([data-view=brands],[data-view=retailers]) .explorer-context #context-title{color:#fff8ed;text-shadow:0 2px 18px #091316}
#index-dialog .experience:is([data-view=brands],[data-view=retailers]) .explorer-context #context-description{color:#d6e0dd;text-shadow:0 1px 8px #091316}
#index-dialog #geolocation-view .map-stage .stage-toolbar{top:235px}
@media(max-width:800px){
  #index-dialog .experience:is([data-view=geolocation],[data-view=people],[data-view=brands],[data-view=retailers],[data-view=assistants]) .experience-footer{
    left:16px;right:16px;bottom:8px;font-size:7px;line-height:1.3;
  }
  #index-dialog .experience:is([data-view=geolocation],[data-view=people],[data-view=brands],[data-view=retailers],[data-view=assistants]) .experience-footer button{font-size:7px}
  #index-dialog .experience .explorer-context{top:76px;left:16px;right:16px}
  #index-dialog .experience .explorer-context .context-title{max-width:100%}
  #index-dialog .experience .explorer-context #context-kicker{font-size:7px;letter-spacing:1.2px}
  #index-dialog .experience .explorer-context #context-title{font-size:clamp(26px,5vw,36px);max-width:470px;margin-top:7px}
  #index-dialog .experience .explorer-context #context-description{max-width:310px;margin-top:8px;font-size:10px;line-height:1.5}
  #index-dialog #geolocation-view .map-stage .stage-toolbar{top:210px}
}
@media(max-width:520px){
  #index-dialog .experience .explorer-context{top:70px}
  #index-dialog .experience .explorer-context #context-title{font-size:27px;max-width:340px}
  #index-dialog #geolocation-view .map-stage .stage-toolbar{top:230px}
}

/* Close belongs to the same navigation pill as the four view tabs. */
#index-dialog .experience .experience-head .index-navigation .index-navigation-divider{
  align-self:center;
  flex:none;
  width:1px;
  height:20px;
  margin:0 3px;
  background:var(--line);
}
#index-dialog .experience .experience-head .index-navigation #people-fullscreen{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0;
  min-height:38px;
  padding:10px 14px;
  border:0;
  border-radius:9px;
  background:transparent;
  box-shadow:none;
  color:var(--muted);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}
#index-dialog .experience .experience-head .index-navigation #people-fullscreen .close-label{
  font-size:inherit;
  line-height:inherit;
}
#index-dialog .experience .experience-head .index-navigation #people-fullscreen:hover{
  color:var(--text);
  font-weight:600;
}
#index-dialog .experience .experience-head .index-navigation #people-fullscreen:focus-visible{
  outline:none;
  color:var(--text);
  font-weight:600;
}
@media(max-width:800px){
  #index-dialog .experience .experience-head .index-navigation #people-fullscreen{
    gap:5px;
    margin-left:0;
    min-height:31px;
    padding:8px 9px;
    font-size:10px;
  }
}
/* Shared visual tokens for the control islands in every immersive view. */
#index-dialog{
  --index-island-background:color-mix(in srgb,var(--panel) 92%,transparent);
  --index-island-blur:blur(22px);
  --index-island-shadow:0 6px 25px #0002;
  --index-island-icon-size:20px;
}
#index-dialog #people-view .people-camera-controls.camera-controls-island,
#index-dialog #geolocation-view .geo-camera-controls.camera-controls-island,
#index-dialog #brands-view .window-navigation.camera-controls-island{
  background:var(--index-island-background);
  -webkit-backdrop-filter:var(--index-island-blur);
  backdrop-filter:var(--index-island-blur);
  box-shadow:var(--index-island-shadow);
  color:var(--text);
}
/* The four views share one icon weight, text size and help affordance. */
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island :is(button,summary){
  color:var(--text);
  font-size:11px;
  font-weight:400;
  line-height:1;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island button>span{
  color:inherit;
  font-size:11px;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island :is(button,summary) svg{
  display:block;
  width:var(--index-island-icon-size);
  height:var(--index-island-icon-size);
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island :is(button,summary):hover{
  color:var(--red);
  font-weight:600;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island :is(button,summary):focus-visible{
  outline:none;
  color:var(--red);
  font-weight:600;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island .people-help summary{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0;
  border-radius:8px;
  list-style:none;
  cursor:pointer;
}
#index-dialog .camera-controls-island .people-help summary::-webkit-details-marker{display:none}
#index-dialog #brands-view[data-brand-type=shops] .camera-controls-island .village-actions{
  display:flex;
  align-items:center;
  gap:3px;
  margin-left:12px;
  padding-left:12px;
  border-left:1px solid var(--line);
}
#index-dialog #brands-view[data-brand-type=shops] .camera-controls-island #brand-autoplay[hidden]{display:none}
#index-dialog #brands-view[data-brand-type=products] .camera-controls-island .brand-shop-icon{display:none}
#index-dialog #brands-view[data-brand-type=shops] .camera-controls-island :is(#brand-prev,#brand-next) svg:not(.brand-shop-icon){display:none}
#index-dialog #brands-view[data-brand-type=shops] .camera-controls-island :is(.brand-shop-icon,#brand-replay svg,#brand-home svg){display:block}
#index-dialog #brands-view[data-brand-type=shops] .camera-controls-island #brand-replay svg{
  width:var(--index-island-icon-size);
  height:var(--index-island-icon-size);
  stroke-width:1.7;
}
#index-dialog #brands-view .camera-controls-island .brand-help{display:block;position:relative;margin-left:3px}
#index-dialog #brands-view[data-brand-type=shops] .camera-controls-island .brand-help[open]>div{
  top:calc(100% + 16px);
  right:-10px;
  bottom:auto;
  left:auto;
  width:min(300px,calc(100vw - 32px));
  max-height:65vh;
  padding:20px;
  overflow:auto;
  overscroll-behavior:contain;
}
#index-dialog #brands-view .brand-help [hidden]{display:none!important}
@media(max-width:1160px){
  #index-dialog #brands-view[data-brand-type=shops] #brand-home span{display:none}
}
@media(max-width:520px){
  #index-dialog #brands-view[data-brand-type=shops] .camera-controls-island .village-actions{margin-left:6px;padding-left:6px}
  #index-dialog #brands-view:is([data-brand-type=products],[data-brand-type=shops]) .brand-bottom{top:242px}
}
@media(min-width:801px){
  #index-dialog #geolocation-view .geo-camera-controls.camera-controls-island{top:22px;height:50px}
  #index-dialog #geolocation-view .geo-camera-controls.camera-controls-island button{height:38px}
  #index-dialog #brands-view[data-brand-type=products] .window-navigation.camera-controls-island{height:50px}
  #index-dialog #brands-view[data-brand-type=products] .window-navigation.camera-controls-island button{height:38px}
}

/* One control-bar component across the four views. Each view supplies only its actions. */
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island.index-control-bar{
  position:fixed;
  z-index:30;
  top:22px;
  right:28px;
  bottom:auto;
  left:auto;
  width:max-content;
  max-width:calc(100vw - 56px);
  height:auto;
  min-height:50px;
  margin:0;
  padding:5px 9px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:0;
  transform:none;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--index-island-background);
  -webkit-backdrop-filter:var(--index-island-blur);
  backdrop-filter:var(--index-island-blur);
  box-shadow:var(--index-island-shadow);
  pointer-events:auto;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-control-group{
  display:flex;
  width:auto;
  align-items:center;
  justify-content:center;
  gap:3px;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-control-group+.village-control-group{
  margin:0 0 0 10px;
  padding:0 0 0 10px;
  border:0;
  border-left:1px solid var(--line);
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar :is(button,summary){
  display:flex;
  width:auto;
  min-width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 9px;
  border:0;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  white-space:nowrap;
  cursor:pointer;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-zoom button{
  width:38px;
  padding:0;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-rotation>button{
  width:auto;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar output{
  width:44px;
  min-width:44px;
  text-align:center;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .people-help{
  display:block;
  position:relative;
  margin:0;
  border:0;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .people-help[open]>div{
  top:calc(100% + 16px);
  right:-10px;
  bottom:auto;
  left:auto;
  width:min(300px,calc(100vw - 32px));
  box-sizing:border-box;
  max-height:min(65vh,calc(100dvh - 310px),420px);
  overflow:auto;
}
@media(max-width:1100px){
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island.index-control-bar{
    top:220px;
    right:16px;
    max-width:calc(100vw - 32px);
  }
}
@media(max-width:800px){
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island.index-control-bar{
    top:auto;
    right:auto;
    bottom:30px;
    left:50%;
    max-width:calc(100vw - 24px);
    min-height:44px;
    padding:4px 6px;
    border-radius:13px;
    transform:translateX(-50%);
  }
  #index-dialog :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view[data-brand-type=products] #brand-feature){
    bottom:93px!important;
  }
  #index-dialog #brands-view[data-brand-type=shops] #brand-feature{
    bottom:206px!important;
  }
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail{
    bottom:auto;
  }
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-control-group+.village-control-group{
    margin:0 0 0 6px;
    padding:0 0 0 6px;
  }
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar :is(button,summary){
    min-width:34px;
    height:34px;
    padding:0 5px;
  }
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-zoom button{width:34px}
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar button>span,
  #index-dialog #brands-view[data-brand-type=shops] .index-control-bar .retailer-nav-label{display:none}
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .people-help[open]>div{
    top:auto;
    bottom:calc(100% + 12px);
  }
}
@media(max-width:520px){
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island.index-control-bar{
    width:max-content;
    max-width:calc(100vw - 24px);
  }
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-control-group+.village-control-group{
    margin:0 0 0 4px;
    padding:0 0 0 4px;
  }
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar :is(button,summary){
    min-width:32px;
    padding:0 4px;
  }
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar .village-zoom button{width:30px}
  #index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .index-control-bar output{
    width:40px;
    min-width:40px;
  }
}
@media(max-width:520px) and (max-height:700px){
  #index-dialog :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature){
    max-height:calc(100dvh - 460px)!important;
    overflow:auto;
  }
}

/* Keep the horizontal street labels above the reading panel on phones. */
@media(max-width:800px){
  #index-dialog #brands-view[data-brand-type=shops] #brand-feature{bottom:93px!important}
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail{
    bottom:auto;
    left:0;right:0;width:100%;height:60px;max-width:none;transform:none;
    display:block;padding:0;overflow:hidden;pointer-events:auto;touch-action:pan-y;cursor:grab;
  }
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail button{
    position:absolute;top:0;height:56px;min-height:0;min-width:0;
    transform:translateX(-50%);padding:4px 3px;display:flex;flex-direction:column;gap:2px;border-radius:6px;
  }
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail button>span,
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail button>div{display:none}
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail button>strong{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail button>small{display:flex;flex-direction:column;align-items:center;gap:1px;width:100%;font-size:6px;line-height:1.2}
  #index-dialog #brands-view[data-brand-type=shops] #brand-rail button>small b{font-size:18px;letter-spacing:-.04em}
}

/* Text alone indicates hover, keyboard focus, and the selected view. */
#index-dialog #experience :is(button,summary,select,[tabindex]):focus-visible{
  outline:none;
  font-weight:600;
}
#index-dialog .experience .experience-head .index-navigation .view-tabs button:is(:hover,:focus-visible,.active){
  outline:none;
  background:transparent;
  box-shadow:none;
  color:var(--text);
  font-weight:600;
}
#index-dialog .experience .experience-head .index-navigation .view-tabs button:after{display:none}
#index-dialog .experience .experience-head .index-navigation #people-fullscreen:is(:hover,:focus-visible){
  outline:none;
  background:transparent;
  box-shadow:none;
  color:var(--text);
  font-weight:600;
}
#index-dialog :is(#people-view,#geolocation-view,#brands-view,#assistants-view) .camera-controls-island :is(button,summary):is(:hover,:focus-visible){
  outline:none;
  background:transparent;
  box-shadow:none;
  color:var(--red);
  font-weight:600;
}
#index-dialog :is(#geolocation-view .world-map,#people-view .people-viewport,#brands-view #brand-stage):focus-visible{
  outline:none;
}
