/* FancyGoing presentation frame. One layout owner per screen/component.
   Domain controls retain their original identity and app.js actions. */
:root {
  --fg-bg:#121116; --fg-sheet:#201d27; --fg-raised:#302a37;
  --fg-text:#f2eee8; --fg-muted:#bab2c3; --fg-orange:#ff7847;
  --fg-border:#776a82; --fg-focus:#ffbd7f; --fg-on-orange:#171318;
}
/* The current theme and city backdrop are present before deferred scripts run. */
.immersive-startup { display:none; }
html[data-fg-route]:not([data-fg-route=today]) .immersive-startup { background-image:none!important; background-color:var(--fg-bg); }
html[data-fg-route]:not([data-fg-route=today]):not([data-fg-route=map]):not([data-fg-route=plans]):not([data-fg-route=people]) #immersive-world { display:none; }
html[data-fg-route]:not([data-fg-route=today]):not([data-fg-route=map]):not([data-fg-route=plans]):not([data-fg-route=people]) .immersive-controls { display:none; }
html[data-fg-route]:not([data-fg-route=today]):not([data-fg-route=map]):not([data-fg-route=plans]):not([data-fg-route=people]) .immersive-sheet { display:none; }
.immersive-app.social-ready #plans { display:block; padding:0; border:0; background:transparent; box-shadow:none; }
.immersive-app.social-ready #plans>.plans-sticky { display:none; }
.immersive-app.social-ready #friends { padding:0; border:0; background:transparent; box-shadow:none; }
.social-surface { min-width:0; }
.immersive-app :is(#plans,#friends,#sources,#admin) { scroll-margin-top:calc(var(--fg-header-height) + 24px); }
.social-existing-connections { margin:0 auto 36px; max-width:1100px; padding:0 24px; }
.social-existing-connections>summary { min-height:48px; padding:14px 0; cursor:pointer; font-size:14px; color:var(--fg-muted); }
.social-merge-dialog { width:min(94vw,540px); max-height:85dvh; overflow:auto; padding:26px; background:var(--fg-sheet); color:var(--fg-text); border:1px solid var(--fg-border); border-radius:20px; }
.social-merge-dialog form { display:grid; gap:18px; }
.social-merge-dialog h2 { font-size:28px; margin:0; }
.social-merge-choice { display:flex; align-items:center; gap:14px; min-height:44px; }
.social-merge-choice input { width:22px; height:22px; flex:none; accent-color:var(--fg-orange); }
.social-merge-actions { display:flex; gap:12px; flex-wrap:wrap; }
.social-admin-panel,#social-admin-circles-panel { scroll-margin-top:calc(var(--fg-header-height) + 24px); }
.social-admin-panel { margin:30px 0; padding:24px; border:1px solid var(--fg-border); border-radius:16px; }
.social-admin-panel form { display:grid; gap:14px; }
.social-admin-panel label { display:flex; gap:12px; align-items:center; min-height:44px; }
.social-admin-panel input[type=checkbox] { width:22px; height:22px; accent-color:var(--fg-orange); }
.social-admin-report { border-top:1px solid var(--fg-border); margin-top:20px; padding-top:20px; overflow-wrap:anywhere; }
.social-admin-report blockquote { white-space:pre-wrap; margin:16px 0; padding:14px; border-left:3px solid var(--fg-border); }
html.fg-starting body { height:100dvh; overflow:hidden; }
html.fg-starting :is(.site-main,.header-utility,.immersive-controls) { display:none!important; }
html.fg-starting .immersive-startup { position:fixed; inset:0; z-index:40; display:flex; align-items:flex-end; justify-content:center; padding:24px 16px; background:#151c29 var(--fg-city-phone,url('brand/immersive/v7/scene-stills/phone-overview.webp')) center/100% 100% no-repeat; }
.immersive-startup-card { max-width:420px; padding:16px 20px; border:1px solid var(--fg-border); border-radius:16px; background:#201d27f5; color:var(--fg-text); font:500 14px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-startup-card p { margin:0 0 8px; }
.immersive-startup-card a { display:inline-flex; align-items:center; min-height:44px; color:var(--fg-focus); text-underline-offset:4px; }
.immersive-startup-fallback { display:none; }
html:is([data-fg-startup=delayed],[data-fg-startup=failed]) .immersive-startup-loading { display:none; }
html:is([data-fg-startup=delayed],[data-fg-startup=failed]) .immersive-startup-fallback { display:block; }
body.immersive-app {
  --paper:var(--fg-bg); --sheet:var(--fg-sheet); --ink:var(--fg-text);
  --muted:var(--fg-muted); --line:#554b5e; --soft:var(--fg-raised);
  --orange:var(--fg-orange); --action-orange:var(--fg-orange); --search-orange:var(--fg-orange);
  --display:'Bricolage Grotesque',system-ui,sans-serif; --mono:var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);
  --fg-header-height:76px; --fg-nav-height:calc(64px + env(safe-area-inset-bottom));
  --fg-controls-height:64px; --fg-browse-top:calc(var(--fg-header-height) + var(--fg-controls-height));
  --immersive-peek:112px;
  color-scheme:dark; margin:0; padding:0; min-height:100dvh;
  background:var(--fg-bg); color:var(--fg-text); font:400 14px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);
}
.immersive-app:after { display:none; }
.immersive-app *, .immersive-app *:before, .immersive-app *:after { box-sizing:border-box; }
.immersive-app [hidden] { display:none!important; }
.immersive-app :is(button,input,select,textarea) { font-family:inherit; }
.immersive-app button { touch-action:manipulation; }
.immersive-app :is(button,input,select,textarea,a,summary):focus-visible { outline:3px solid var(--fg-focus); outline-offset:3px; }
.immersive-app :is(h2,h3,[tabindex='-1']) { scroll-margin-top:calc(var(--fg-header-height) + 20px); }
.immersive-app .site-main { display:block; position:relative; width:min(1120px,100%); max-width:none; margin:0 auto; padding:calc(var(--fg-header-height) + 24px) 16px calc(var(--fg-nav-height) + 32px); }
.immersive-app.screen-today, .immersive-app.screen-map { height:100dvh; overflow:hidden; }
.immersive-app:is(.screen-today,.screen-map) .site-main { position:static; width:100%; padding:0; margin:0; }
.immersive-app :is(.ticker,.edition-notes) { display:none; }

/* The header and navigation have fixed, reserved regions. */
.immersive-app .site-header { position:fixed; inset:0 0 auto; height:76px; border:0; z-index:60; background:var(--fg-ui-surface-header,var(--fg-header,#121116f5)); }
.immersive-app .header-inner { height:100%; min-height:0; width:100%; max-width:none; display:flex; align-items:center; padding:10px 16px; gap:10px; overflow:visible; }
.immersive-app .brand { padding:0; margin-right:auto; flex:0 0 auto; }
.immersive-app .brand h1 { font:750 25px/.84 var(--display); letter-spacing:-1.1px; text-transform:none; }
.immersive-app .brand h1 span, .immersive-app .brand h1 span:last-child { font-size:inherit; transform:none; }
.immersive-app .brand h1 span:last-child { color:var(--fg-orange); }
.immersive-app :is(.brand-statement,.profile-note,.city-block p) { display:none; }
.immersive-app .city-block { display:flex; flex-direction:column; padding:0; border:0; min-width:0; gap:2px; }
.immersive-app .city-block strong { font:650 12px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); letter-spacing:.05em; }
.immersive-app .city-date { font:500 10px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); white-space:nowrap; color:var(--fg-muted); }
.immersive-app .profile-block { padding:0; border:0; display:flex; min-width:0; }
.immersive-app .account-button { display:flex; flex-direction:row; justify-content:center; align-items:center; gap:8px; width:auto; max-width:150px; min-width:44px; min-height:44px; height:44px; padding:0 8px; overflow:hidden; border:1px solid var(--fg-ui-border,var(--fg-border)); border-radius:var(--fg-ui-radius-control,12px); background:var(--fg-ui-surface,var(--fg-sheet)); color:var(--fg-ui-text,var(--fg-text)); }
.immersive-app .account-avatar { width:28px; height:28px; border:0; background:#602d4b; color:var(--fg-text); font:700 16px/1 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); flex-shrink:0; }
.immersive-app .account-name { font:600 12px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-transform:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Keep the role label in the account layout, not the legacy absolute position. */
.immersive-app .account-button:has(.member-badge-admin) { display:grid; grid-template-columns:28px minmax(0,1fr); grid-template-rows:auto auto; column-gap:8px; row-gap:2px; padding:4px 8px; }
.immersive-app .account-button:has(.member-badge-admin) .account-avatar { grid-column:1; grid-row:1 / 3; }
.immersive-app .account-button:has(.member-badge-admin) .account-name { grid-column:2; grid-row:1; min-width:0; margin:0; align-self:end; text-align:left; }
.immersive-app .account-button .member-badge-admin { position:static; grid-column:2; grid-row:2; justify-self:start; align-self:start; padding:2px 5px; border-radius:4px; font:700 9px/1 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-search-toggle { display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;gap:0;border:1px solid var(--fg-ui-border,var(--fg-border));border-radius:var(--fg-ui-radius-control,12px);background:var(--fg-ui-surface,var(--fg-sheet));color:var(--fg-ui-text,var(--fg-text));font-size:0;line-height:0;flex-shrink:0; }
.immersive-search-toggle:before { content:''; display:block; width:21px; height:21px; margin:auto; background:currentColor; mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/g%3E%3C/svg%3E"); }
.immersive-app .header-alerts { position:static; display:flex; gap:4px; margin:0; padding:0; transform:none; }
.immersive-app .header-icon-button { width:44px; min-width:44px; height:44px; min-height:44px; border:0; background:var(--fg-ui-surface,var(--fg-sheet)); color:var(--fg-ui-text,var(--fg-text)); border-radius:var(--fg-ui-radius-control,11px); }
.immersive-app .header-icon-button svg { width:21px; height:21px; }
.immersive-header-join { display:none; min-height:44px; padding:10px 18px; border:0; border-radius:12px; background:var(--fg-orange); color:var(--fg-on-orange); font:750 13px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-app .bottom-nav { position:fixed; inset:auto 0 0; z-index:70; height:var(--fg-nav-height); padding:5px 8px calc(5px + env(safe-area-inset-bottom)); margin:0; width:100%; display:flex; background:var(--fg-ui-surface-overlay,var(--fg-glass,#201d27f5)); border:1px solid var(--fg-ui-border-quiet,#554b5e); backdrop-filter:blur(16px); box-shadow:0 -8px 32px #08060b33; }
.immersive-app .bottom-nav a { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; flex:1; padding:5px 2px; border:0; border-radius:12px; background:transparent; color:var(--fg-muted); font:650 11px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-decoration:none; text-transform:none; min-height:50px; }
.immersive-app .bottom-nav a:before { content:''; position:static; inset:auto; flex:0 0 23px; transform:none; margin:0; display:block; width:23px; height:23px; background:currentColor; mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 2.8 6.2L21 12l-6.2 2.8L12 21l-2.8-6.2L3 12l6.2-2.8Z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.immersive-app .bottom-nav a[aria-current=page]:before { position:static; inset:auto; width:23px; height:23px; flex-basis:23px; }
.immersive-app .bottom-nav [data-immersive-browse]:before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12M3 6h1M3 12h1M3 18h1' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.immersive-app .bottom-nav [data-section=plans]:before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='17' rx='3'/%3E%3Cpath d='M8 3v3m8-3v3M8 13l3 3 5-5'/%3E%3C/g%3E%3C/svg%3E"); }
.immersive-app .bottom-nav [data-section=people]:before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M16 5a3 3 0 0 1 0 6m2 3c2 .7 3 2 3 4v2'/%3E%3C/g%3E%3C/svg%3E"); }
.immersive-app .bottom-nav a.selected, .immersive-app .bottom-nav a[aria-current=page] { color:var(--fg-orange); background:#ff784710; box-shadow:none; }
.immersive-app .bottom-nav a:after { display:none; }
.immersive-app .nav-count { position:absolute; top:2px; right:calc(50% - 24px); margin:0; font-size:10px; background:var(--fg-orange); color:var(--fg-on-orange); border:0; }

/* One compact rail: slide sideways for more choices; Filters stays available. */
.immersive-controls { position:fixed; left:16px; right:16px; top:calc(var(--fg-header-height) + 8px); z-index:45; display:flex; flex-direction:column; gap:8px; }
.immersive-quick { display:grid; grid-template-columns:minmax(0,1fr) 84px; gap:8px; min-width:0; align-items:stretch; }
.immersive-chip, .immersive-app .free-only-filter { min-height:44px; min-width:0; border:1px solid var(--fg-border); border-radius:11px; background:#201d27f5; color:var(--fg-text); padding:8px 9px; font:650 12px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-transform:none; white-space:normal; }
.immersive-app .time-strip { display:block; min-width:0; padding:0; margin:0; border:0; background:transparent; }
.immersive-app .time-strip-label { display:none; }
.immersive-app .time-strip-controls { display:flex; flex-direction:row; flex-wrap:nowrap; gap:6px; align-items:stretch; min-width:0; width:100%; }
.immersive-time, .immersive-app .free-only-filter { flex:1 1 0; font-size:11px; padding:8px 5px; }
.immersive-app .free-only-filter[aria-pressed=true] { background:#602d4b; border-color:var(--fg-orange); }
.immersive-app #filter-toggle { position:relative; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:5px; width:84px; height:46px; min-width:0; padding:0 6px; font-size:11px; border-color:#a899b638; border-radius:12px; background:#211d29ed; box-shadow:none; }
.immersive-app #filter-toggle:before { content:''; flex:0 0 16px; width:16px; height:16px; background:currentColor; mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='1.7' stroke-linecap='round' fill='none'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3Ccircle cx='8' cy='6' r='2' fill='white'/%3E%3Ccircle cx='16' cy='12' r='2' fill='white'/%3E%3Ccircle cx='9' cy='18' r='2' fill='white'/%3E%3C/g%3E%3C/svg%3E"); }
.immersive-app #filter-toggle.has-active { border-color:var(--fg-orange); }
.immersive-app #active-filter-count { position:absolute; right:1px; top:0; color:var(--fg-text); background:#602d4b; border-radius:6px; font:650 9px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-app #filter-toggle>span:last-child { display:none; }
.immersive-search { display:flex; align-items:center; margin:0; background:#201d27f5; border:1px solid var(--fg-border); border-radius:13px; overflow:hidden; min-height:48px; }
.immersive-app .immersive-search .search-label { padding:0; flex:1; display:block; background:transparent; min-width:0; border:0; }
.immersive-search .search-field-label { display:none; }
.immersive-app .immersive-search input { padding:10px 14px; border:0; background:transparent; color:var(--fg-text); min-height:46px; font:500 16px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); width:100%; min-width:0; }
.immersive-search input::placeholder { color:var(--fg-muted); }
.immersive-app .search-go { display:flex; align-items:center; justify-content:center; width:44px; min-height:44px; flex-shrink:0; border:0; background:transparent; color:var(--fg-text); font-size:25px; }
.immersive-all-activities { align-self:flex-start; min-height:44px; padding:8px 12px; border:1px solid var(--fg-orange); border-radius:10px; background:#201d27f5; color:var(--fg-text); font:600 12px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }

.immersive-app .immersive-filter-rail { display:flex; gap:8px; min-width:0; height:auto; min-height:46px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-x:contain; touch-action:pinch-zoom; scroll-padding-inline:3px; cursor:grab; border-radius:12px; }
.immersive-app .immersive-filter-rail::-webkit-scrollbar { display:none; width:0; height:0; }
.immersive-app .immersive-filter-rail {
  --fg-rail-fade-start:0px;
  --fg-rail-fade-end:0px;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 var(--fg-rail-fade-start),#000 calc(100% - var(--fg-rail-fade-end)),transparent);
  mask-image:linear-gradient(to right,transparent,#000 var(--fg-rail-fade-start),#000 calc(100% - var(--fg-rail-fade-end)),transparent);
}
.immersive-app .immersive-filter-rail.can-scroll-left { --fg-rail-fade-start:28px; }
.immersive-app .immersive-filter-rail.can-scroll-right { --fg-rail-fade-end:28px; }
.immersive-app .immersive-filter-rail:has(:focus-visible) { -webkit-mask-image:none; mask-image:none; }
.immersive-filter-rail>.immersive-wheel { flex:0 0 128px; }
.immersive-filter-rail>.immersive-wheel:focus-within { outline-offset:-3px; }
.immersive-filter-rail.is-dragging,.immersive-filter-rail.is-dragging .immersive-wheel { cursor:grabbing; }
.immersive-filter-rail .immersive-wheel-option { overflow:hidden; text-overflow:ellipsis; }

/* Small inline rollers: one settled value, with a glimpse of its neighbours. */
.immersive-wheel { min-width:6.5em; height:auto; min-height:46px; padding:0 8px; border:1px solid var(--fg-ui-border-quiet,#a899b638); border-radius:var(--fg-ui-radius-control,12px); background:var(--fg-ui-surface-overlay,var(--fg-glass,#211d29ed)); box-shadow:none; cursor:pointer; touch-action:pinch-zoom; }
.immersive-wheel-caption { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.immersive-wheel-frame { position:relative; display:block; margin:0; padding-right:18px; }
.immersive-wheel-frame:before { content:none; }
.immersive-app .immersive-wheel-viewport { height:44px; height:calc(1lh + 20px); line-height:24px; min-width:0; padding:7px 0 13px; overflow-x:hidden; overflow-y:auto; scrollbar-width:none; scroll-snap-type:y mandatory; scroll-padding-block:7px 0; overscroll-behavior-y:contain; touch-action:pinch-zoom; cursor:grab; border-radius:7px; outline-offset:2px; -webkit-mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent); mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent); }
.immersive-app .immersive-wheel-viewport::-webkit-scrollbar { display:none; width:0; height:0; }
.immersive-wheel-viewport.is-dragging { cursor:grabbing; scroll-snap-type:none; }
.immersive-app .immersive-wheel-intro { position:absolute; inset:0 18px 0 0; overflow:hidden; pointer-events:none; border-radius:7px; -webkit-mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent); mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent); }
.immersive-wheel-intro-track { padding-top:7px; }
.immersive-app .is-intro-spinning>.immersive-wheel-frame>.immersive-wheel-viewport { opacity:0; }
.immersive-wheel-option { display:flex; align-items:center; justify-content:center; height:24px; height:1lh; min-height:24px; padding:0 2px; scroll-snap-align:start; color:var(--fg-ui-text-secondary,#b8acbf); opacity:.42; font:550 13px/24px var(--fg-ui-font-body,var(--fg-functional-font,system-ui,sans-serif)); white-space:nowrap; user-select:none; -webkit-user-select:none; transition:color .14s,opacity .14s; }
.immersive-wheel-option.is-centered { color:var(--fg-ui-text,#f8f0e8); opacity:1; font-weight:750; }
.immersive-wheel.has-selection .immersive-wheel-option.is-centered { color:var(--fg-ui-accent-text,#ffbd91); }
.immersive-wheel-steps { position:absolute; inset:0; pointer-events:none; }
.immersive-app .immersive-wheel-step { display:flex; align-items:center; justify-content:center; width:26px; height:30px; min-height:0; padding:0; color:#d7cadf; background:transparent; border:0; border-radius:7px; }
.immersive-app .immersive-wheel-step:not(:focus-visible) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.immersive-app .immersive-wheel-step:focus-visible { position:absolute; inset:0; width:100%; height:44px; margin:0; gap:4px; background:var(--fg-sheet); pointer-events:auto; z-index:2; }
.immersive-app .immersive-wheel-step:focus-visible:after { content:attr(aria-label); min-width:0; font:650 10px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); white-space:normal; }
.immersive-wheel-step svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.immersive-app .immersive-wheel-step:hover:not(:disabled):not(:focus-visible) { color:#ffbc91; background:#ffffff0b; }
.immersive-app .immersive-wheel-step:disabled { opacity:.2; cursor:default; }
.immersive-wheel-viewport[aria-disabled=true] { opacity:.5; cursor:wait; }
.immersive-wheel:focus-within { border-color:var(--fg-focus); }
.immersive-app .immersive-wheel-disclosure { position:absolute; z-index:1; right:0; top:0; width:44px; height:44px; min-height:44px; min-width:44px; padding:0 2px 0 0; display:flex; align-items:center; justify-content:flex-end; border:0; border-radius:7px; color:var(--fg-text); background:transparent; box-shadow:none; transform:none; }
.immersive-wheel-disclosure svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.immersive-wheel-disclosure[aria-expanded=true] .fg-shell-chevron { transform:rotate(180deg); }
.immersive-wheel:has([aria-expanded=true]) { border-color:var(--fg-focus); }
.immersive-wheel-help { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(prefers-reduced-motion:reduce) { .immersive-wheel-option { transition:none; } }

/* Camera-matched stills stay in place until a complete live frame is presented. */
#immersive-startup, #immersive-world .immersive-poster { background-image:var(--fg-preview-image,var(--fg-city-phone)); background-size:var(--fg-preview-width,100%) var(--fg-preview-height,100%); background-position:var(--fg-preview-left,0px) var(--fg-preview-top,0px); background-repeat:no-repeat; }
#immersive-world .immersive-poster { opacity:1; }
/* A small light layer keeps the opening alive without moving the matched image. */
#immersive-world .immersive-poster::after { content:""; position:absolute; pointer-events:none; left:-6%; top:0; width:112%; height:48%; background:radial-gradient(ellipse at 28% 38%,#fff 0,transparent 68%); opacity:.025; animation:fg-preview-light 6s ease-in-out infinite alternate; animation-play-state:paused; }
#immersive-world[data-preview-motion=on]:not([data-graphics=unavailable]):not(.immersive-graphics-ready) .immersive-poster::after { animation-play-state:running; }
html[data-fg-ambient=night] #immersive-world .immersive-poster::after { background:radial-gradient(ellipse at 28% 38%,#bac8e7 0,transparent 68%); }
#immersive-world:is(.immersive-graphics-ready,[data-graphics=unavailable]) .immersive-poster::after { display:none; }
html[data-fg-page-hidden=true] #immersive-world .immersive-poster::after, .immersive-app:has(dialog[open]) .immersive-poster::after { animation-play-state:paused!important; }
@keyframes fg-preview-light { from { transform:translateX(-3%); opacity:.025; } to { transform:translateX(3%); opacity:.065; } }
@media(prefers-reduced-motion:reduce) { #immersive-world .immersive-poster::after { display:none; animation:none!important; } }
#immersive-world #immersive-canvas { opacity:0; transition:opacity 160ms ease-out; }

#immersive-world.immersive-graphics-ready #immersive-canvas { opacity:1; }
#immersive-world.immersive-preview-retired .immersive-poster { background-image:none; opacity:0; }
@media(prefers-reduced-motion:reduce) { #immersive-world .immersive-poster, #immersive-world #immersive-canvas { transition:none; } }
@media(max-width:1023px) { .immersive-app .immersive-all-activities { display:none; } }
@media(min-width:1024px) { .immersive-app .neighbourhood-context { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } }

/* The scene never owns the page's scroll or changes with sheet dragging. */
.immersive-world { position:fixed; inset:0; z-index:0; overflow:hidden; background:#332734; }
.immersive-poster, .immersive-vignette, #immersive-canvas { position:absolute; inset:0; width:100%; height:100%; }
.immersive-poster { background:#151c29 var(--fg-city-phone,url('brand/immersive/v7/scene-stills/phone-overview.webp')) center/100% 100% no-repeat; }
.immersive-vignette { pointer-events:none; background:linear-gradient(#12111677,transparent 32%,transparent 64%,#12111699); }
.immersive-world-content { position:absolute; z-index:2; top:calc(var(--fg-browse-top) + 8px); left:16px; right:16px; bottom:calc(var(--immersive-peek) + var(--fg-nav-height) + 18px); display:flex; flex-direction:column; gap:10px; pointer-events:none; }
#immersive-areas { display:flex; gap:7px; overflow:auto; flex-shrink:0; pointer-events:auto; padding-bottom:4px; align-items:flex-start; }
.immersive-area-group { flex:0 0 auto; position:relative; }
.immersive-area { display:flex; align-items:center; gap:8px; min-height:44px; border:1px solid var(--fg-border); border-radius:12px; padding:9px 12px; background:#201d27ed; color:var(--fg-text); font-size:12px; box-shadow:0 5px 18px #0003; white-space:nowrap; }
.immersive-area[aria-pressed=true], .immersive-area[aria-expanded=true] { background:#602d4b; border-color:var(--fg-orange); }
.immersive-area-count { background:#12111699; padding:1px 6px; border-radius:6px; font-size:11px; }
.immersive-area[data-count-state=zero], .immersive-area-group[data-availability=empty] .immersive-area { color:var(--fg-muted); border-style:dashed; }
.immersive-area-menu { display:grid; gap:4px; background:var(--fg-sheet); border:1px solid var(--fg-border); border-radius:12px; padding:6px; max-width:220px; margin-top:5px; }
.immersive-area-menu button { display:flex; justify-content:space-between; gap:12px; background:var(--fg-raised); color:var(--fg-text); border:0; padding:10px; min-height:44px; border-radius:8px; text-align:left; font-size:13px; }
#immersive-areas[data-graphics=ready] { position:absolute; inset:0; display:block; overflow:visible; pointer-events:none; }
#immersive-areas[data-graphics=ready] .immersive-area-group { position:absolute; transform:translate(-50%,-50%); pointer-events:auto; }
#immersive-areas[data-graphics=ready] .immersive-area-menu { position:absolute; left:0; top:100%; z-index:10; width:210px; }
#immersive-previews { margin-top:auto; display:grid; gap:9px; pointer-events:auto; max-height:42%; overflow:auto; }
.immersive-preview { background:#201d27f7; border:1px solid var(--fg-border); border-radius:14px; box-shadow:0 10px 30px #100b1c55; position:relative; }
.immersive-preview-open { display:flex; flex-direction:column; gap:5px; width:100%; min-height:44px; padding:12px 14px; text-align:left; background:transparent; border:0; border-radius:14px; color:var(--fg-text); }
.immersive-preview-title { font:650 17px/1.2 var(--display); overflow-wrap:anywhere; }
.immersive-preview-meta { font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.immersive-preview-restrictions { font-size:11px; color:var(--fg-muted); line-height:1.4; overflow-wrap:anywhere; }
.immersive-preview-category { color:#e7b3ca; font-size:11px; }
.immersive-preview-action { font-size:12px; color:var(--fg-orange); }
#immersive-world-status, .immersive-scene-note { position:absolute; bottom:calc(var(--immersive-peek) + var(--fg-nav-height) + 3px); left:18px; right:18px; z-index:1; margin:0; color:var(--fg-muted); font-size:10px; text-shadow:0 1px 8px #000; }
.immersive-scene-note { display:none; }
.immersive-world[data-status=unavailable] #immersive-world-status { color:var(--fg-text); }
.immersive-app:not(:is(.screen-today,.screen-map,.screen-plans,.screen-people)) .immersive-world { display:none; }
.immersive-app:not(:is(.screen-today,.screen-map,.screen-plans,.screen-people)) .immersive-controls { display:none; }
.immersive-app.screen-map .immersive-controls { display:flex; }
.immersive-app .neighbourhood-tools { display:none; }

/* A fixed-size sheet moves by transform; its contents have one scroll owner. */
.immersive-app .immersive-sheet { position:fixed; z-index:50; top:var(--fg-browse-top); left:0; right:0; bottom:var(--fg-nav-height); height:auto; padding:0; border:1px solid #776a8288; border-radius:24px 24px 0 0; background:#201d27fa; box-shadow:0 -10px 40px #08060b44; margin:0; display:flex; flex-direction:column; overflow:hidden; transform:translateY(calc(100% - var(--immersive-peek))); transition:transform 280ms cubic-bezier(.22,1,.36,1); backdrop-filter:blur(16px); }
.immersive-app:is([data-immersive-sheet=full],[data-immersive-sheet=half]) .immersive-sheet { transform:translateY(var(--immersive-list-pull,0px)); }
.immersive-app .immersive-sheet.is-pulling-list { transition:none; }
.immersive-app .immersive-sheet.is-dragging-sheet { transform:translateY(var(--immersive-sheet-drag)); transition:none; }
.immersive-app .immersive-sheet.is-dragging-sheet .immersive-sheet-content { visibility:visible!important; }
.immersive-grab { position:relative; flex-shrink:0; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; align-content:center; padding:26px 18px 16px; min-height:var(--immersive-peek); touch-action:none; user-select:none; -webkit-user-select:none; gap:3px 10px; cursor:ns-resize; }
.immersive-expand { position:absolute; top:0; left:calc(50% - 40px); width:80px; height:30px; min-height:30px; padding:7px; border:0; background:transparent; border-radius:12px; }
.immersive-expand span { display:block; width:36px; height:4px; border-radius:4px; background:var(--fg-muted); margin:auto; }
.immersive-browse-button { display:block;grid-column:1; grid-row:1; text-align:left; background:transparent; border:0; padding:0; min-height:28px; font:650 22px/1.15 var(--display); color:var(--fg-text); }
.immersive-peek-summary { font-size:12px; line-height:1.5; color:var(--fg-muted); margin:0; grid-column:1; grid-row:2; }
.immersive-app:not([data-immersive-sheet=peek]) .immersive-grab { min-height:30px; height:30px; padding:0; }
.immersive-app:not([data-immersive-sheet=peek]) .immersive-grab :is(.immersive-browse-button,.immersive-peek-summary) { display:none; }
.immersive-sheet-content { min-height:0; flex:1; overflow:auto; overscroll-behavior-y:contain; padding:4px 16px 24px; scroll-padding-top:12px; }
.immersive-side-toggle { display:none; }
.immersive-side-toggle[hidden] { display:none!important; }
.immersive-app[data-immersive-sheet=peek] .immersive-sheet-content { visibility:hidden; }
.immersive-sheet-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; padding:0 0 16px; margin:0; border:0; gap:8px 12px; }
.immersive-sheet-heading h2 { font:650 25px/1.15 var(--display); letter-spacing:-.6px; text-transform:none; margin:0; }
.immersive-sheet-heading .eyebrow { display:none; }
.immersive-app .immersive-sheet-heading .result-actions { position:static; grid-column:1; grid-row:2; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; min-width:0; max-width:none; }
.immersive-app .result-count { font:500 12px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-muted); margin:0; }
.immersive-app #clear-browse-filters { padding:5px 0; min-height:32px; font:600 12px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); background:transparent; border:0; color:var(--fg-orange); }
.immersive-map-toggle { grid-column:2; grid-row:1/3; display:inline-flex; align-items:center; justify-content:center; gap:6px; background:var(--fg-raised); border:1px solid var(--fg-border); border-radius:10px; padding:8px; min-height:44px; color:var(--fg-text); font-size:12px; white-space:nowrap; flex-shrink:0; }
.immersive-map-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:1023px) { .immersive-app #events .display-tabs { display:none; } }
.immersive-app .filters { padding:0; border:0; background:transparent; margin:0 0 14px; }
.immersive-app .filter-primary { display:flex; justify-content:space-between; gap:8px; align-items:center; flex-wrap:wrap; padding:0; }
.immersive-app .nearby-actions { display:flex; gap:7px; width:auto; }
.immersive-app .near-me-button { border:1px solid var(--fg-border); border-radius:10px; background:var(--fg-raised); color:var(--fg-text); font:550 12px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); padding:8px 10px; min-height:44px; text-transform:none; }
.immersive-sheet-utility { display:none; }
.immersive-app .display-tabs { margin:0; padding:2px; border:1px solid #776a8266; border-radius:11px; display:flex; background:#17151c; flex-shrink:0; }
.immersive-app .display-tabs>span { display:none; }
.immersive-app .display-tabs button { min-height:38px; min-width:40px; background:transparent; border:0; border-radius:8px; font:600 12px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-text); padding:7px; }
.immersive-app .display-tabs button.active { background:#602d4b; }

/* Event rows are compact. Details use an explicit, independent presentation. */
.immersive-app .event-list { display:block; }
.immersive-app .event-row { display:flex; flex-direction:column; border:1px solid #776a8266; background:#17151c; border-radius:16px; padding:16px; margin-bottom:12px; gap:12px; min-height:0; box-shadow:none; overflow:hidden; }
.immersive-app .event-row.feature { background:#28212c; border-color:#9b758a; min-height:0; }
.immersive-app .event-row .event-main { width:100%; min-width:0; padding:0; }
.immersive-app .event-card-media { display:none; }
.immersive-app .event-topline { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:0 0 10px; }
.immersive-app .event-time { display:inline; font:600 12px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); width:auto; background:transparent; padding:0; color:#edc5ad; border:0; }
.immersive-app .time-large { font:650 13px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-app .category-strip { font:650 11px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); letter-spacing:0; text-transform:none; background:#493042; color:var(--fg-text); padding:4px 7px; border-radius:6px; transform:none; max-width:100%; white-space:normal; border:0; }
.immersive-app .event-title, .immersive-app .event-row.feature .event-title { font:650 21px/1.18 var(--display); text-transform:none; margin:0 0 9px; letter-spacing:-.4px; }
.immersive-app .event-title-button { font:inherit; letter-spacing:inherit; line-height:inherit; color:var(--fg-text); background:transparent; padding:0; min-height:0; text-align:left; text-transform:none; overflow-wrap:anywhere; }
.immersive-app .event-meta { display:flex; flex-wrap:wrap; gap:3px 10px; font:500 12px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-muted); margin:0 0 6px; }
.immersive-app .event-meta-price { color:var(--fg-text); }
.immersive-app .event-description { font:400 13px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:#d8cfdc; margin:5px 0; }
.immersive-app .event-facts { display:flex; gap:5px; flex-wrap:wrap; font:450 11px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-muted); margin:7px 0 0; }
.immersive-app .event-facts span { background:var(--fg-raised); border-radius:7px; padding:4px 7px; max-width:100%; overflow-wrap:anywhere; }
.immersive-app .event-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; padding:0; gap:8px; width:100%; border:0; }
.immersive-app .pyap-attendance { grid-column:1/-1; font-size:12px; }
.immersive-app .pick-cluster { width:100%; margin:0; grid-column:1/-1; }
.immersive-app .pick-button { width:100%; min-height:44px; border:0; border-radius:10px; background:var(--fg-orange); color:var(--fg-on-orange); font:750 13px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); padding:12px; transform:none; text-transform:none; box-shadow:none; }
.immersive-app .pick-button.selected { background:#58334c; color:var(--fg-text); }
.immersive-app .hide-button { grid-column:2; align-self:start; padding:7px; border:0; min-height:36px; color:var(--fg-muted); font:500 12px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); background:transparent; }
.immersive-app .event-more { grid-column:1; font:400 13px/1.6 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); border:0; padding:0; min-width:0; width:100%; }
.immersive-app .event-more[open] { grid-column:1/-1; }
.immersive-app .event-more summary { font:550 12px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); padding:8px 0; min-height:36px; color:var(--fg-muted); }
.immersive-app .event-more p { overflow-wrap:anywhere; }
.immersive-app .event-full-meta { font:550 13px/1.6 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-app .picked-event-actions { grid-column:1/-1; padding:12px; background:var(--fg-raised); border:1px solid #776a8266; border-radius:12px; width:100%; }
.immersive-app :is(.picked-booking-note,.chat-wait-note) { font:450 12px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-muted); }
.immersive-app .event-action-links { display:flex; flex-wrap:wrap; gap:7px; }
.immersive-app .event-action-links :is(a,button) { font:650 12px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); min-height:44px; padding:10px; border:1px solid var(--fg-border); border-radius:8px; background:transparent; color:var(--fg-text); }
.immersive-app .day-divider { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 0; margin:0; border:0; }
.immersive-app .day-divider h3 { font:650 18px/1.3 var(--display); text-transform:none; margin:0; }
.immersive-app .day-divider span { font-size:11px; color:var(--fg-muted); }
.immersive-app .show-more { width:100%; background:var(--fg-raised); color:var(--fg-text); border:1px solid var(--fg-border); border-radius:12px; min-height:44px; font:600 13px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); margin:12px 0; }
.immersive-detail-back { display:block; width:100%; text-align:left; min-height:44px; border:0; border-bottom:1px solid #776a8255; background:transparent; color:var(--fg-muted); font-size:13px; margin:0 0 16px; }
.has-immersive-detail .immersive-sheet-content>:not(.immersive-detail) { display:none!important; }
.immersive-app .immersive-detail .immersive-event-detail-row { background:transparent; border:0; border-radius:0; padding:0; margin:0; box-shadow:none; }
.immersive-detail .event-more summary { display:none; }
.immersive-app .immersive-detail .event-more { grid-column:1/-1; border:0; padding:0; font-size:14px; }
.immersive-app .immersive-detail .event-title { font-size:27px; line-height:1.15; }
.immersive-detail .event-description { display:none; }
.immersive-app .immersive-detail .event-meta { font-size:13px; }
.immersive-detail .hide-button { grid-column:1/-1; justify-self:end; min-height:44px; }
.immersive-pick-benefit { grid-column:1/-1; font:450 12px/1.6 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-muted); margin:4px 0; }

/* Date, time and filters each own their content and scroll boundaries. */
.immersive-app :is(.immersive-date-dialog,.immersive-filter-dialog,.immersive-time-dialog) { width:min(520px,calc(100% - 24px)); padding:0; margin:auto; background:var(--fg-ui-surface,var(--fg-sheet)); color:var(--fg-ui-text,var(--fg-text)); border:1px solid var(--fg-ui-border,var(--fg-border)); border-radius:var(--fg-ui-radius-dialog,20px); max-height:calc(100dvh - 32px); overflow:auto; }
.immersive-app :is(.immersive-date-dialog,.immersive-filter-dialog,.immersive-time-dialog) .modal-card { width:100%; min-width:0; padding:24px 20px; position:relative; border:0; background:transparent; overflow:visible; }
.immersive-app :is(.immersive-date-dialog,.immersive-filter-dialog,.immersive-time-dialog) h2 { font:650 25px/1.2 var(--display); margin:0 36px 20px 0; padding:0; text-transform:none; letter-spacing:-.5px; }
.immersive-app :is(.immersive-date-dialog,.immersive-filter-dialog,.immersive-time-dialog) .modal-close { position:absolute; top:12px; right:10px; width:44px; height:44px; background:transparent; color:var(--fg-text); border:0; }
.immersive-app #immersive-wheel-dialog { width:min(440px,calc(100% - 24px)); max-width:calc(100% - 24px); max-height:calc(100dvh - 32px); padding:0; margin:auto; overflow:auto; background:var(--fg-ui-surface,var(--fg-sheet)); color:var(--fg-ui-text,var(--fg-text)); border:1px solid var(--fg-ui-border,var(--fg-border)); border-radius:var(--fg-ui-radius-dialog,18px); }
.immersive-app #immersive-wheel-dialog .modal-card { padding:20px 16px 16px; max-height:none; overflow:visible; border:0; background:transparent; }
.immersive-app #immersive-wheel-dialog h2 { margin:0 44px 18px 0; padding:0; color:var(--fg-text); font:650 24px/1.2 var(--display); text-transform:none; letter-spacing:-.4px; }
.immersive-app #immersive-wheel-dialog .modal-close { top:8px; right:8px; width:44px; height:44px; color:var(--fg-text); background:transparent; border:0; }
.immersive-wheel-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.immersive-app #immersive-wheel-dialog .immersive-wheel-choice { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--fg-border); border-radius:10px; color:var(--fg-text); background:var(--fg-card); font:600 13px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-align:left; overflow-wrap:anywhere; }
.immersive-app #immersive-wheel-dialog .immersive-wheel-choice[aria-pressed=true] { color:var(--fg-accent-text); background:var(--fg-selected); border-color:var(--fg-accent-text); }
.immersive-app #immersive-wheel-dialog .immersive-wheel-choice:after { content:''; flex:0 0 12px; }
.immersive-app #immersive-wheel-dialog .immersive-wheel-choice[aria-pressed=true]:after { content:'✓'; font-weight:800; }
.immersive-app #immersive-wheel-dialog .immersive-wheel-choice:focus-visible { outline:3px solid var(--fg-focus); outline-offset:1px; }
.immersive-wheel-message { margin:12px 0 0; font:500 13px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-text); }
.immersive-app #immersive-wheel-dialog .immersive-wheel-done { width:100%; min-height:44px; margin-top:12px; }
/* Actual shell dialogs: title and reachable close share a normal-flow row.
 * The additional class leaves old cached controllers on their existing layout. */
.immersive-app :is(.immersive-filter-dialog,#immersive-wheel-dialog) .fg-shell-dialog-card { display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:var(--fg-ui-space-4,16px);align-items:start; }
.immersive-app :is(.immersive-filter-dialog,#immersive-wheel-dialog) .fg-shell-dialog-card>h2 { grid-column:1;grid-row:1;align-self:center;min-width:0;margin:0;padding:0;color:var(--fg-ui-text,var(--fg-text));font:750 var(--fg-ui-type-section-title,1.5rem)/1.25 var(--fg-ui-font-display,var(--display));letter-spacing:var(--fg-ui-tracking-display,-.025em); }
.immersive-app :is(.immersive-filter-dialog,#immersive-wheel-dialog) .fg-shell-dialog-card>.modal-close { position:static;grid-column:2;grid-row:1;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--fg-ui-text,var(--fg-text)); }
.immersive-app :is(.immersive-filter-dialog,#immersive-wheel-dialog) .fg-shell-dialog-card>.modal-close svg { display:block;width:32px;height:32px;pointer-events:none; }
.immersive-app :is(.immersive-filter-dialog,#immersive-wheel-dialog) .fg-shell-dialog-card>:is(.immersive-filter-body,.immersive-wheel-picker-body) { grid-column:1/-1;min-width:0; }
.immersive-wheel-message[data-fg-kind=warning] { color:var(--fg-ui-warning,var(--fg-text)); }
.immersive-date-dialog .date-strip { height:auto; padding:0; border:0; background:transparent; display:block!important; }
.immersive-app .immersive-date-dialog .day-filter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; height:auto; min-height:0; overflow:visible; padding:0; }
.immersive-date-dialog :is(.ticket-slogan,.mobile-filter-bar) { display:none!important; }
.immersive-app .immersive-date-dialog .date-ticket { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; width:auto; min-width:0; min-height:88px; height:auto; padding:10px 4px; background:var(--fg-raised); border:1px solid var(--fg-border); border-radius:11px; color:var(--fg-text); transform:none; clip-path:none; box-shadow:none; }
.immersive-app .immersive-date-dialog .date-ticket:before, .immersive-app .immersive-date-dialog .date-ticket:after { display:none; }
.immersive-date-dialog .date-ticket.active { background:#602d4b; border-color:var(--fg-orange); }
.immersive-date-dialog .ticket-weekday { font:600 11px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-date-dialog .ticket-date { font:650 25px/1.2 var(--display); transform:none; }
.immersive-date-dialog .ticket-count { font:450 10px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); padding:0; }
.immersive-date-dialog .modal-card>button:last-child { margin-top:16px; min-height:44px; }
.immersive-filter-body { display:grid; gap:16px; min-width:0; }
.immersive-multi-filters { display:grid; gap:22px; }
.immersive-multi-group { min-width:0; padding:0; margin:0; border:0; }
.immersive-multi-group legend { margin-bottom:8px; padding:0; color:var(--fg-text); font:700 14px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-multi-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.immersive-app .immersive-filter-dialog .immersive-multi-choice,.immersive-app .immersive-filter-dialog .immersive-multi-any { display:flex; align-items:center; gap:9px; min-width:0; min-height:44px; margin:0; padding:10px; color:var(--fg-text); background:var(--fg-raised); border:1px solid var(--fg-border); border-radius:10px; font:600 12px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-transform:none; overflow-wrap:anywhere; cursor:pointer; }
.immersive-app .immersive-filter-dialog .immersive-multi-any { justify-content:center; }
.immersive-app .immersive-filter-dialog .immersive-multi-choice:has(input:checked),.immersive-app .immersive-filter-dialog .immersive-multi-any[aria-pressed=true] { border-color:var(--fg-orange); background:var(--fg-selected,var(--fg-raised)); color:var(--fg-accent-text,var(--fg-text)); }
.immersive-app .immersive-filter-dialog .immersive-multi-choice input { flex:0 0 18px; width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:var(--fg-orange); }
.immersive-multi-choice:has(input:focus-visible) { outline:3px solid var(--fg-focus); outline-offset:1px; }
.immersive-multi-group>.filter-hint { padding-top:8px; }

.immersive-app .immersive-filter-dialog .filter-row { display:grid!important; grid-template-columns:1fr; gap:16px; padding:0; margin:0; background:transparent; border:0; }
.immersive-app .immersive-filter-dialog .filter-row label { display:grid; gap:6px; font:600 13px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-transform:none; }
.immersive-app .immersive-filter-dialog :is(input,select,textarea) { width:100%; min-width:0; min-height:44px; font-size:16px; color:var(--fg-text); background:#17151c; border:1px solid var(--fg-border); border-radius:10px; padding:9px 12px; }
.immersive-app .immersive-filter-dialog .all-days-button { min-height:44px; padding:10px; border:1px solid var(--fg-border); border-radius:10px; color:var(--fg-text); background:var(--fg-raised); font:600 13px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-transform:none; }
.immersive-app .immersive-filter-dialog .view-tabs { display:flex!important; gap:8px; border:0; margin:0; padding:0; }
.immersive-filter-dialog .view-tabs button { flex:1; min-height:44px; background:var(--fg-raised); color:var(--fg-text); border:1px solid var(--fg-border); border-radius:10px; padding:8px; text-transform:none; }
.immersive-filter-dialog .view-tabs button.active { border-color:var(--fg-orange); background:#602d4b; }
.immersive-filter-dialog .filter-hint { display:block; font:400 12px/1.5 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-muted); margin:0; }
.immersive-filter-dialog .immersive-sheet-utility { display:block; margin:0; }
.immersive-filter-dialog .immersive-sheet-utility button { min-height:44px; font-size:13px; }
.immersive-filter-done { width:100%; min-height:44px; background:var(--fg-orange); color:var(--fg-on-orange); border:0; border-radius:10px; font:700 14px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); padding:12px; }
.immersive-app .immersive-filter-dialog .modal-card { padding-bottom:12px; }
.immersive-more-dates { min-width:0; border:1px solid #82738b80; border-radius:12px; background:#17151c; }
.immersive-more-dates>summary { min-height:46px; padding:13px 14px; font:650 14px/1.4 var(--fg-ui-font-body,var(--fg-functional-font,system-ui,sans-serif)); cursor:pointer; }
.immersive-more-dates>summary:has(.fg-shell-chevron) { display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none; }
.immersive-more-dates>summary:has(.fg-shell-chevron)::-webkit-details-marker { display:none; }
.immersive-more-dates>summary:has(.fg-shell-chevron)::after { content:none; }
.immersive-more-dates .fg-shell-chevron { flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none; }
.immersive-more-dates[open]>summary .fg-shell-chevron { transform:rotate(180deg); }
.immersive-more-dates .date-strip { display:block!important; padding:0 10px 10px; margin:0; border:0; background:transparent; }
.immersive-more-dates .ticket-slogan,.immersive-more-dates .mobile-filter-bar { display:none!important; }
.immersive-app .immersive-more-dates .day-filter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; height:auto; padding:0; overflow:visible; }
.immersive-app .immersive-more-dates .date-ticket { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; width:auto; min-width:0; min-height:72px; height:auto; padding:8px 3px; border:1px solid var(--fg-border); border-radius:9px; clip-path:none; transform:none; box-shadow:none; background:var(--fg-raised); color:var(--fg-text); }
.immersive-more-dates .date-ticket:before,.immersive-more-dates .date-ticket:after { display:none; }
.immersive-app .immersive-more-dates .date-ticket.active { border-color:var(--fg-orange); background:#602d4b; }
.immersive-more-dates .ticket-weekday { font:650 10px/1.2 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-more-dates .ticket-date { font:650 22px/1.2 var(--display); transform:none; }
.immersive-more-dates .ticket-count { font:450 9px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); padding:0; }
.immersive-filter-time h3 { margin:0 0 8px; font:650 13px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-transform:none; }
.immersive-app .immersive-filter-dialog .time-filter { display:flex; flex-wrap:wrap; gap:6px; overflow:visible; padding:0; border:0; }
.immersive-app .immersive-filter-dialog .time-filter button { display:block!important; flex:1 1 28%; min-height:44px; padding:9px 6px; font:600 12px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-text); background:var(--fg-raised); border:1px solid var(--fg-border); border-radius:9px; text-transform:none; }
.immersive-app .immersive-filter-dialog .time-filter button[aria-pressed=true] { border-color:var(--fg-orange); background:#602d4b; }
.immersive-filter-dialog #free-only-filter { width:100%; flex:none; font-size:13px; }
.immersive-filter-dialog .immersive-filter-done { position:sticky; bottom:-1px; z-index:3; margin-top:4px; box-shadow:0 -8px 16px var(--fg-sheet); }
.immersive-app .immersive-time-dialog .time-filter { display:grid; grid-template-columns:1fr; gap:8px; overflow:visible; padding:0; border:0; }
.immersive-app .immersive-time-dialog .time-filter button { display:block!important; min-height:48px; width:100%; border:1px solid var(--fg-border); border-radius:10px; padding:12px; background:var(--fg-raised); color:var(--fg-text); font:650 15px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); text-align:left; text-transform:none; }
.immersive-app .immersive-time-dialog .time-filter button[aria-pressed=true] { border-color:var(--fg-orange); background:#602d4b; }

/* The map replaces results inside the same Browse panel and filter chrome. */
.immersive-app.screen-map .immersive-map-heading-row { display:none; }
.immersive-app #map { padding:0; margin:0; background:transparent; border:0; }
.immersive-app #map .section-heading { display:block; margin:0 0 10px; padding:0; border:0; }
.immersive-app #map .section-heading h2 { font:650 22px/1.2 var(--display); text-transform:none; margin:0; }
.immersive-app #map .section-heading :is(.eyebrow,p:last-child) { display:none; }
.immersive-app .immersive-map-heading-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.immersive-app .immersive-map-heading-row .section-heading { flex:1; margin:0; min-width:0; }
.immersive-app .immersive-map-heading-row h2 { font-size:21px; }
.immersive-app .pyap-map-tools { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:10px; }
.immersive-app .pyap-map-tools>span { display:none; }
.immersive-app .pyap-map-location-actions { flex:1; gap:6px; }
.immersive-app .pyap-map-tools .map-near-me-button { font-size:11px; padding:7px 9px; }
.immersive-app .pyap-map-zoom { gap:4px; }
.immersive-app .pyap-map-zoom button { width:40px; min-width:40px; height:44px; border:1px solid var(--fg-border); border-radius:10px; background:var(--fg-raised); color:var(--fg-text); }
.immersive-app .pyap-map-shell { border:1px solid var(--fg-border); border-radius:14px; overflow:hidden; }
.immersive-app #event-map { height:max(320px,calc(100dvh - var(--fg-browse-top) - var(--fg-nav-height) - 185px)); min-height:320px; }
.immersive-app :is(.pyap-map-status,.pyap-map-credits) { font-size:11px; line-height:1.5; }
.immersive-app .pyap-map-card { background:var(--fg-sheet); border-color:var(--fg-border); border-radius:0 0 14px 14px; }
.immersive-app #map .pyap-map-card:not([hidden]) { position:relative; z-index:auto; inset:auto; max-height:min(320px,40dvh); margin:0; overflow-y:auto; box-shadow:none; border-width:1px; border-top:0; }
@media(max-width:700px) {
  /* Leave the Map controls and map itself usable while the event stays open. */
  .immersive-app .pyap-map-card:not([hidden]) { max-height:min(260px,38dvh); bottom:calc(var(--fg-nav-height) + 8px); }
}

/* Supporting content retains existing controls in a quieter hierarchy. */
.immersive-app .guide { margin:20px 0 0; padding:0; border:0; background:transparent; }
.immersive-app .search-band { display:none; }
.immersive-app .guide-form { display:none; background:transparent; padding:16px 0; border:0; }
.immersive-app .guide.is-expanded .guide-form { display:block; }
.immersive-app .join-prompt { border:1px solid #776a8266; border-radius:16px; background:#2a2230; padding:18px; display:block; }
.immersive-app .join-prompt h2 { font:650 24px/1.15 var(--display); text-transform:none; }
.immersive-app .join-prompt :is(p,span) { font:450 13px/1.6 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); color:var(--fg-muted); }
.immersive-app .join-prompt button { border-radius:10px; font:700 13px/1.3 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); margin-top:12px; color:var(--fg-on-orange); min-height:44px; }
.immersive-app .radar { display:none; }
.immersive-app .radar-label { min-width:0; }
.immersive-app .radar-actions { gap:8px; }
.immersive-app .radar-actions button { min-height:44px; padding:10px 14px; border:1px solid var(--fg-border); border-radius:10px; background:var(--fg-raised); color:var(--fg-text); font:650 12px/1.3 var(--mono); text-transform:none; }
.immersive-app .radar-actions button:hover { background:#493441; border-color:var(--fg-orange); }
.immersive-app .radar h2 { font:650 25px/1.2 var(--display); text-transform:none; }
.immersive-app .radar-list { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; overflow:visible; min-width:0; }
.immersive-app .radar-item { width:100%; max-width:100%; min-width:0; flex:auto; padding:14px; border:1px solid #776a8266; border-radius:14px; background:var(--fg-raised); }
.immersive-app .radar-item h3 { font:650 20px/1.2 var(--display); text-transform:none; }
.immersive-app :is(.radar-category,.radar-item p) { white-space:normal; overflow-wrap:anywhere; max-width:100%; }
.immersive-app .radar-item .event-utilities { display:flex; flex-wrap:wrap; min-width:0; max-width:100%; }
.immersive-app .radar-item .event-utilities :is(a,button) { white-space:normal; overflow-wrap:anywhere; min-width:0; max-width:100%; }
.immersive-app .browse-more-links { display:grid; gap:8px; border-color:#554b5e; font-size:13px; }
.immersive-app .site-footer { background:transparent; border-top:1px solid #554b5e; margin-top:24px; padding:24px 16px calc(var(--fg-nav-height) + 20px); color:var(--fg-muted); }
.immersive-sheet-content .site-footer { padding:24px 0 8px; }
.immersive-app .footer-inner { padding:0; width:100%; display:grid; gap:12px; grid-template-columns:1fr; font:450 12px/1.6 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); }
.immersive-app .footer-inner strong { font:650 20px/1.1 var(--display); text-transform:none; }
.immersive-app .footer-inner a { display:block; padding:6px 0; min-height:30px; }
.immersive-app .header-utility { display:flex; flex-wrap:wrap; gap:14px; position:static; padding:20px 0; color:var(--fg-muted); font:600 11px/1.4 var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); border:0; background:transparent; }

@media(max-width:699px) {
  /* Two whole filters plus a quiet next-control edge, without a clipped word. */
  .immersive-filter-rail>.immersive-wheel { flex-basis:max(112px,calc((100% - 32px)/2)); }
  .immersive-quick { grid-template-columns:minmax(0,1fr) 46px; }
  .immersive-app #filter-toggle { width:46px; padding:0; gap:0; font-size:0; }
  .immersive-app .immersive-search { margin-right:0; }
  .immersive-app:not([data-immersive-search=true]) .immersive-search { display:none; }
  .immersive-app :is(.city-date,.account-name) { display:none; }
  .immersive-app .account-button { width:44px; padding:7px; }
  /* Guests need a visible account action; reserve its width while state loads. */
  .immersive-app .account-button:is([aria-label="Sign in or create an account"],[aria-label="Loading your account"]) { width:max-content; min-width:74px; padding:0 8px; }
  .immersive-app .account-button:is([aria-label="Sign in or create an account"],[aria-label="Loading your account"]) .account-avatar { display:none; }
  .immersive-app .account-button:is([aria-label="Sign in or create an account"],[aria-label="Loading your account"]) .account-name { display:block; }
  .immersive-app .account-button:has(.member-badge-admin) { grid-template-columns:1fr; grid-template-rows:24px 12px; gap:1px; padding:2px 3px; }
  .immersive-app .account-button:has(.member-badge-admin) .account-avatar { grid-column:1; grid-row:1; justify-self:center; width:24px; height:24px; }
  .immersive-app .account-button .member-badge-admin { grid-column:1; grid-row:2; justify-self:center; padding:1px 3px; font-size:8px; }
  .immersive-app:has(#header-alerts:not([hidden])) .city-block { display:none; }
  .immersive-world-content #immersive-previews:empty { display:none; }
  .immersive-app[data-immersive-sheet=full] .immersive-world-content { visibility:hidden; }
  .immersive-preview-title { font-size:16px; }
}
@media(max-width:359px) {
  .immersive-app .city-block { display:none; }
  .immersive-app .header-inner { gap:6px; padding-inline:12px; }
  .immersive-controls { left:12px; right:12px; }
  .immersive-chip { font-size:11px; padding-inline:6px; }
  .immersive-quick { gap:6px; }
  .immersive-wheel { padding-inline:5px; }
  .immersive-filter-rail { gap:6px; }
  .immersive-wheel-option { font-size:12.5px; }
  .immersive-grab { padding-inline:14px; }
  .immersive-browse-button { font-size:20px; }
  .immersive-peek-summary { font-size:11px; }
}
@media(max-width:359px) {
  .immersive-wheel-frame { padding-right:16px; }
}
@media(min-width:700px) {
  body.immersive-app { --fg-header-height:88px; }
  .immersive-app .site-header { height:88px; }
  .immersive-app .header-inner { padding-inline:24px; }
  .immersive-app .brand h1 { font-size:31px; }
  .immersive-search-toggle { display:none; }
  .immersive-controls { left:24px; right:24px; width:min(540px,calc(100% - 48px)); }
  .immersive-quick { grid-template-columns:minmax(0,1fr) minmax(88px,max-content); }
  .immersive-app #filter-toggle { width:auto; padding-inline:8px; font-size:12px; }
  .immersive-app #active-filter-count { position:static; font-size:11px; background:transparent; }
  .immersive-time, .immersive-app .free-only-filter { font-size:13px; }
  .immersive-app .immersive-sheet { left:18px; right:18px; }
  .immersive-app .site-main { padding-inline:24px; }
}
@media(min-width:1024px) {
  html.fg-starting .immersive-startup { background-image:var(--fg-city-desktop,url('brand/immersive/v7/scene-stills/desktop-overview.webp')); }
  body.immersive-app { --fg-header-height:96px; --fg-nav-height:70px; --fg-desktop-left-width:min(632px,calc(100vw - var(--fg-desktop-panel-width,min(620px,calc(100vw - 440px))) - 76px)); }
  .immersive-app .site-header { height:96px; }
  .immersive-app .header-inner { padding:18px 32px; }
  .immersive-app .brand h1 { font-size:35px; }
  .immersive-app .city-block { margin-right:16px; }
  .immersive-header-join { display:inline-flex; align-items:center; }
  .immersive-controls { top:calc(var(--fg-header-height) + 16px); left:32px; right:auto; width:var(--fg-desktop-left-width); }
  /* Map swaps panel content; legacy search spacing must not move the world. */
  .immersive-app.screen-map .immersive-search { margin-top:0; }
  .immersive-filter-rail>.immersive-wheel { flex-basis:calc((100% - 24px)/4); }
  .immersive-app .immersive-sheet { top:calc(var(--fg-header-height) + 16px); bottom:24px; left:auto; right:24px; width:420px; height:auto; border-radius:22px; transform:none!important; transition:none; }
  .immersive-app .immersive-grab { display:none; }
  .immersive-app .immersive-sheet-content { visibility:visible!important; padding:22px; }
  .immersive-map-toggle { display:none; }
  .immersive-world-content { left:32px; right:470px; top:calc(var(--fg-browse-top) + 16px); bottom:126px; }
  #immersive-previews { max-width:390px; max-height:32%; grid-template-columns:1fr; }
  #immersive-world-status { left:38px; right:470px; bottom:110px; }
  .immersive-poster { background-image:var(--fg-city-desktop,url('brand/immersive/v7/scene-stills/desktop-overview.webp')); }
  .immersive-app .bottom-nav { left:32px; right:auto; bottom:24px; width:var(--fg-desktop-left-width); height:70px; border-radius:18px; padding:5px 10px; }
  .immersive-app .bottom-nav a { height:54px; }
  .immersive-app .site-main { padding-inline:32px; }
  .immersive-app .site-footer { padding-inline:max(32px,calc((100vw - 1056px)/2)); }
  .immersive-sheet-content .site-footer { padding-inline:0; }
}
@media(min-width:1024px) and (max-width:1151px) {
  .immersive-wheel { padding-inline:4px; }
  .immersive-wheel-frame { padding-right:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .immersive-app *, .immersive-app *:before, .immersive-app *:after { animation-duration:.001ms!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
}

/* Discovery ends with one short footer; optional tools stay available on demand. */
.immersive-app #join-benefits{display:none}
.immersive-app .footer-compact{margin-top:16px;padding-top:12px}
.immersive-sheet-content .footer-compact{padding:12px 0 8px}
.immersive-app .footer-compact .footer-inner{grid-template-columns:minmax(0,1fr) auto;gap:0 12px}
.footer-compact .footer-brand{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px}
.immersive-app .footer-compact .footer-brand strong{font-size:14px;line-height:1.5}
.footer-compact .footer-brand p{margin:0;font-size:11px}
.footer-compact .footer-links,.footer-compact .footer-tools{display:flex;align-items:center;flex-wrap:wrap;gap:0 16px;min-width:0}
.immersive-app .footer-compact :is(.footer-links,.footer-tools) :is(a,button){display:inline-flex;align-items:center;min-height:44px;padding:8px 0;font:inherit;color:inherit;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px}
.footer-compact .footer-more{min-width:0;font-size:12px}
.footer-compact .footer-more>summary{min-height:44px;align-content:center;padding:8px 0;box-sizing:border-box;cursor:pointer}
.footer-compact .footer-more[open]{grid-column:1/-1}
.footer-compact .footer-more-body{display:grid;gap:8px;padding:8px 0;border-top:1px solid var(--fg-border)}
.footer-compact .fg-marketing-tools{margin:0;padding:0;border:0}
.footer-compact :is(.fg-newsletter,.fg-feedback-details){padding:0;border-top:1px solid var(--fg-border)}
.footer-compact :is(.fg-newsletter,.fg-feedback-details)>summary{font-size:12px;min-height:44px}
.immersive-app .footer-compact .header-utility{padding:0;gap:8px 14px;font-size:11px}
.footer-compact #analytics-footer{width:100%;padding:0;margin-top:4px}
.footer-compact #analytics-footer,.footer-compact #analytics-footer :is(a,button,span){font-family:inherit;font-size:12px;line-height:1.45}
.footer-compact #analytics-footer .fg-basic-statistics{gap:0 10px}
.footer-compact #analytics-footer .fg-basic-statistics>span:first-child{flex-basis:auto}
.footer-compact #analytics-footer :is(a,button){min-height:44px}
.immersive-app #immersive-filter-dialog .guide{margin:0}
.immersive-app #immersive-filter-dialog .guide-form{padding-top:8px}
.immersive-app #immersive-filter-dialog .immersive-filter-body{grid-template-columns:minmax(0,1fr)}
.immersive-app #immersive-filter-dialog .immersive-sheet-utility{min-width:0;max-width:100%}
.immersive-app #immersive-filter-dialog :is(.guide,.guide-form,.guide-form-intro,.guide-refine,.guide-actions){width:100%;min-width:0;max-width:100%}
.immersive-app #immersive-filter-dialog #guide-heading{display:none}
.immersive-app #immersive-filter-dialog .guide-form-intro :is(h3,p){width:auto;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;transform:none}
.immersive-app #immersive-filter-dialog .guide-form-intro h3{margin:6px 0 10px;font:700 22px/1.25 system-ui,sans-serif;text-transform:none;letter-spacing:-.02em}
.immersive-app #immersive-filter-dialog .guide-form-intro p{font-size:14px;line-height:1.55}
.immersive-app #immersive-filter-dialog .guide-form>label{margin:16px 0 7px;font-size:14px}
.immersive-app #immersive-filter-dialog .guide-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;max-width:100%;overflow:visible}
.immersive-app #immersive-filter-dialog .guide-examples button{min-width:0;max-width:100%;min-height:44px;padding:9px 8px;border-radius:10px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4}
.immersive-app #immersive-filter-dialog .guide-fields{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.immersive-app #immersive-filter-dialog .guide-fields label{min-width:0;font-size:13px}
.immersive-app #immersive-filter-dialog .guide-actions{gap:8px}
.immersive-app #immersive-filter-dialog .guide-actions .button-primary{width:100%;min-width:0;white-space:normal}
.immersive-app #immersive-filter-dialog #guide-status{flex-basis:100%;min-width:0;overflow-wrap:anywhere}

/* Short landscape keeps44px actions while full Browse uses the available height. */
body.immersive-app.fg-short-landscape { --fg-nav-height:calc(48px + env(safe-area-inset-bottom)); }
body.immersive-app.fg-short-landscape .site-header { height:60px; }
body.immersive-app.fg-short-landscape .header-inner { height:60px; min-height:0; padding:8px 12px; }
body.immersive-app.fg-short-landscape .brand { min-height:44px; }
body.immersive-app.fg-short-landscape .brand h1 { font-size:25px; }
body.immersive-app.fg-short-landscape .immersive-search-toggle { display:flex; height:44px; }
body.immersive-app.fg-short-landscape .bottom-nav { min-height:var(--fg-nav-height); padding:1px 8px calc(1px + env(safe-area-inset-bottom)); }
body.immersive-app.fg-short-landscape .bottom-nav a { min-height:44px; padding:0; gap:1px; }
body.immersive-app.fg-short-landscape .immersive-controls { top:calc(var(--fg-header-height) + 4px); left:12px; right:12px; width:auto; }
body.immersive-app.fg-short-landscape .immersive-search { display:none; }
body.immersive-app.fg-short-landscape[data-immersive-search=true] .immersive-search { display:flex; }
body.immersive-app.fg-short-landscape .immersive-quick { grid-template-columns:minmax(0,1fr) 44px; }
body.immersive-app.fg-short-landscape #filter-toggle { width:44px; height:44px; min-width:44px; min-height:44px; padding:0; gap:0; font-size:0; }
body.immersive-app.fg-short-landscape .immersive-sheet { left:0; right:0; }
body.immersive-app.fg-short-landscape .immersive-grab { padding:44px 12px 8px; }
body.immersive-app.fg-short-landscape .immersive-expand { width:80px; height:44px; min-height:44px; }
body.immersive-app.fg-short-landscape .immersive-browse-button { min-height:44px; }
body.immersive-app.fg-short-landscape:not([data-immersive-sheet=peek]) .immersive-grab { min-height:44px; height:44px; padding:0; }
body.immersive-app.fg-short-browse .immersive-controls { visibility:hidden; pointer-events:none; }
body.immersive-app.fg-short-browse[data-immersive-search=true] .immersive-controls { visibility:visible; pointer-events:auto; }
body.immersive-app.fg-short-browse .immersive-quick { position:absolute; top:0; left:0; right:0; visibility:hidden; pointer-events:none; }
body.immersive-app.fg-short-browse .immersive-sheet-heading { grid-template-columns:minmax(0,1fr) auto auto; }
body.immersive-app.fg-short-browse .immersive-sheet-heading #filter-toggle { grid-column:2; grid-row:1 / 3; align-self:start; }
body.immersive-app.fg-short-browse .immersive-sheet-heading .immersive-map-toggle { grid-column:3; grid-row:1 / 3; }

/* Reveal speech only after the welcome overlay has completely faded away. */
.fg-world-bubbles-enter .neighbourhood-landmark > :is(.neighbourhood-speech,.neighbourhood-speech-tail,.neighbourhood-landmark-count) {
  animation:fg-world-bubble-enter 700ms cubic-bezier(.22,1,.36,1) var(--fg-bubble-delay,0ms) backwards;
}
@keyframes fg-world-bubble-enter { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) {
  .fg-world-bubbles-enter .neighbourhood-landmark > :is(.neighbourhood-speech,.neighbourhood-speech-tail,.neighbourhood-landmark-count) { animation:none; }
}

/* Functional copy from active immutable artwork/admin styles shares the local UI family. */
body.immersive-app :is(.neighbourhood-eyebrow,.neighbourhood-context,.neighbourhood-tool,.neighbourhood-instruction,.neighbourhood-landmark-name,.neighbourhood-landmark-count,.neighbourhood-place-row h3,.neighbourhood-place-actions button,.neighbourhood-all,.neighbourhood-place-category),
body.immersive-app .fg-circles-admin,
body.immersive-app .fg-circles-admin :is(button,input,select,textarea){font-family:var(--fg-functional-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);}


/* Discover, Plans and Connect share the same movable frame and scroll owner. */
.immersive-app:is(.screen-plans,.screen-people) { height:100dvh; overflow:hidden; }
.immersive-app:is(.screen-plans,.screen-people) .site-main { position:static; width:100%; margin:0; padding:0; }
.immersive-app .immersive-sheet :is(#events,#plans,#friends) { margin:0; padding:0; min-height:0; border:0; background:transparent; box-shadow:none; }
.immersive-app .immersive-sheet-content :is(.sp-shell,.cn-shell) { width:100%; max-width:100%; margin:0; padding:8px 0 24px; gap:18px; }
.immersive-app .immersive-sheet-content :is(.sp-header,.cn-header) { flex-wrap:wrap; gap:12px; }
.immersive-app .immersive-sheet-content :is(.sp-header,.cn-header) h2 { font-size:30px; }
.immersive-app .immersive-sheet-content :is(.sp-plan-layout,.cn-layout,.cn-inbox) { grid-template-columns:minmax(0,1fr); }
.immersive-app .immersive-sheet-content .sp-selection-bar { position:sticky; bottom:0; left:auto; width:100%; margin-top:12px; transform:none; }
.immersive-app[data-immersive-sheet=peek] .immersive-sheet-content { visibility:hidden!important; }
@media(min-width:1024px) {
  .immersive-app .immersive-sheet { bottom:calc(24px + 70px + 8px); transform:none!important; transition:width 220ms cubic-bezier(.22,1,.36,1); }
  .immersive-app .bottom-nav { left:auto; right:24px; width:var(--fg-desktop-panel-width,min(620px,calc(100vw - 440px))); transform:none; }
  .immersive-app :is(.immersive-controls,.bottom-nav) { transition:width 220ms cubic-bezier(.22,1,.36,1); }
  .immersive-app:has(.is-resizing-side) :is(.immersive-controls,.bottom-nav) { transition:none; }
  .immersive-app .immersive-sheet.is-resizing-side { transition:none; }
  .immersive-app .immersive-grab { display:none; }
  .immersive-app:is(.screen-today,.screen-map,.screen-plans,.screen-people) .immersive-sheet { width:var(--fg-desktop-panel-width,min(620px,calc(100vw - 440px))); }
  .immersive-app .immersive-sheet-content { visibility:visible!important; padding-top:16px; overflow-anchor:none; }
  .immersive-app .immersive-side-toggle:not([hidden]) { position:fixed; z-index:51; right:calc(24px + var(--fg-desktop-panel-width,min(620px,calc(100vw - 440px))) - 16px); top:calc((100dvh + var(--fg-header-height) - 70px - 16px)/2); transform:translateY(-50%); display:flex!important; align-items:center; justify-content:center; width:32px; height:44px; padding:0; border:1px solid var(--fg-border); border-radius:10px; background:var(--fg-sheet,#201d27); color:var(--fg-text); box-shadow:0 4px 14px #08060b55; cursor:pointer; touch-action:none; user-select:none; transition:right 220ms cubic-bezier(.22,1,.36,1); }
  .immersive-app .immersive-side-toggle::before { content:""; position:absolute; inset:-1px -7px; }
  .immersive-app .immersive-side-toggle:hover { background:var(--fg-ui-surface-raised,var(--fg-raised)); border-color:var(--fg-orange); }
  .immersive-app:has(.is-resizing-side) .immersive-side-toggle { transition:none; }
  .immersive-side-toggle svg { width:20px; height:20px; pointer-events:none; }
  .immersive-side-toggle[aria-expanded=false] svg { transform:rotate(180deg); }
  .immersive-side-toggle:focus-visible { outline:3px solid var(--fg-orange); outline-offset:3px; }
  /* A cached older controller retains its existing reachable pull-up handle. */
  .immersive-app:not([data-desktop-panel]) .immersive-sheet { transition:transform 280ms cubic-bezier(.22,1,.36,1); }
  .immersive-app:not([data-desktop-panel])[data-immersive-sheet=peek] .immersive-sheet { transform:translateY(calc(100% - var(--immersive-peek)))!important; }
  .immersive-app:not([data-desktop-panel]) .immersive-grab { display:grid; }
  .immersive-app:not([data-desktop-panel])[data-immersive-sheet=peek] .immersive-sheet-content { visibility:hidden!important; }
}
@media(prefers-reduced-motion:reduce) {
  .immersive-app .immersive-sheet, .immersive-app .immersive-side-toggle { transition:none; }
}

.immersive-app .immersive-sheet-content :is(.cn-topic-list,.cn-directory-list,.cn-people-grid) { grid-template-columns:minmax(0,1fr); }
/* Native public facts stay in the drawer until their exact interactive view is
   ready. Keeping the node also preserves the readable no-graphics fallback. */
body[data-public-entry-state="ready"]:not([data-public-entry-retain="true"]) #fg-public-entry{display:none}
#fg-public-browse-context{display:flex;align-items:center;justify-content:space-between;gap:var(--fg-ui-space-3,12px);flex-wrap:wrap;margin-block:0 var(--fg-ui-space-4,16px);padding-block:var(--fg-ui-space-3,12px);border-block-end:1px solid var(--fg-ui-border-quiet)}
#fg-public-browse-context:empty{display:none}
#fg-public-browse-context p{margin:0;color:var(--fg-muted)}
#fg-public-browse-context a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-underline-offset:3px}
.immersive-sheet-heading:has([data-public-heading])>.catalogue-loading-status{grid-column:1/-1}
@media(max-width:1023px){
  .immersive-sheet-heading:has([data-public-heading]) .immersive-map-toggle{width:44px;min-width:44px;padding-inline:10px}
  .immersive-sheet-heading:has([data-public-heading]) .immersive-map-toggle>span{display:none}
}
/* Server public entries reserve the same filter rail before the controller's
   measurements arrive. The shared drawer geometry itself has one CSS owner. */
body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]){--fg-controls-height:66px}
@media(min-width:700px) and (max-width:1023px){body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]){--fg-controls-height:124px}}
@media(max-width:1023px) and (max-height:500px) and (orientation:landscape){
  /* The expanded short-screen variant places Filters in the heading; there is
     no separate controls rail. Match that same variant before JS can measure. */
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]){--fg-header-height:60px;--fg-controls-height:0px;--fg-nav-height:calc(48px + env(safe-area-inset-bottom))}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .site-header{height:60px}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .header-inner{height:60px;min-height:0;padding:8px 12px}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .brand h1{font-size:25px}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .bottom-nav{min-height:var(--fg-nav-height);padding:1px 8px calc(1px + env(safe-area-inset-bottom))}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .bottom-nav a{min-height:44px;padding:0;gap:1px}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .immersive-sheet{left:0;right:0}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .immersive-grab{min-height:44px;height:44px;padding:0}
  body[data-public-entry-frame="true"]:not([data-public-frame-bound="true"]) .immersive-expand{width:80px;height:44px;min-height:44px}
}
