
/* =====================================================================================================
   MM-SKIN — design system v2 component layer (2026-10).
   Loaded AFTER the original stylesheet, so same-specificity rules here win. It restyles components onto the
   tokens declared in :root (light / dark / media scopes). Per-collection skins (.coll-theme …, --v-*) are
   intentionally NOT overridden: their selectors are more specific and keep each artist's identity.
   Rule of thumb for future edits: change a TOKEN before changing a component; change a component here,
   not in the legacy block above.
   ===================================================================================================== */

/* ---------- base ---------- */
html,body { background:var(--bg); color:var(--on-surface); font-family:var(--font-ui); }
body::after { display:none; }                                   /* retire the film-grain overlay: it muddied light surfaces and cost a full-screen blend layer on phones */
::selection { background:rgb(var(--primary-rgb) / .22); color:inherit; }
a { color:var(--primary); }
button { -webkit-tap-highlight-color:transparent; }
[hidden] { display:none !important; }   /* author display rules (e.g. .m3-btn{display:grid}) must never resurrect a hidden element */
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.ic { width:20px; height:20px; flex:none; display:inline-block; vertical-align:middle; }
.ic-sm { width:16px; height:16px; }
.ic-lg { width:24px; height:24px; }

/* ---------- typography: token-driven case & tracking (each UI version sets them; collection skins keep their own) ----------
   Three groups: BUTTONS/tabs (--btn-case), small LABELS/eyebrows (--label-case), and sentence-length helper text (always
   sentence case). DISPLAY titles get --font-display + --display-weight/-track/-case. */
:is(.btn-gold, .btn-solid-gold, .btn-ghost, .enter-cta, .walk-cta, .audio-cta, .mm-cc-cta, .row-link, .links a,
       .tp-enter, .tp-acts button, .m3-btn .m3-t, .mp-pop-actions button, .pov-opt, #pinResetBtn, #backBtn, .portal-label,
       .sr-env-btn, .sr-card-actions button, .srs-actions button, .pill, .walk-mini, .walk-saved-row .wsv-btn, .add-link, .btn-delete,
       .aiv-submit, .consent-primary, .consent-ghost, .auth-submit, .dir-actions button, .imp-preset, .mm-chip, #nav button span,
       .ui-seg button):not(.coll-theme, .coll-theme *) { text-transform:var(--btn-case); letter-spacing:var(--btn-track); }
:is(.eyebrow, .by-artist, .sponsors .lbl, .tagline, .scroll-hint span, .deg-sub, .mc-label, .tp-sub, .tp-badge, .mp-pop-sub, .mp-pop-badge, .mp-pop-dir-lbl,
       #myLocLabel, #povLabel, #hudPovLabel, #immersiveHint, .sr-sub, .sr-count, .sr-hint, .sr-card-meta, .sr-card-artist, .sr-loader,
       .srs-meta, .srs-artist, .srs-badge, .p-handle, .p-stat .lbl, .sponsor-panel .eb, .gallery-head .cnt, .g-card .g-loc, .g-card .g-360,
       .field label, .plate-ctrl-label, .opt-row > label, .imp-lbl, .walk-trail-head > label, .walk-section-lbl, .walk-saved-lbl, .walk-stop .ws-coll,
       .walk-saved-row .wsv-meta, .walk-pgroup, .credit-plate .cp-meta, .deck-card .dc-idx, .deck-card .dc-badge, #mapDeck .deck-sub, .aiv-eyebrow,
       .aiv-field span, .aiv-pb, .auth-field span, .am-role, .sp-eb, .theme-swatch, .tp-hint, .wb-txt b, .dir-meta, .ml-loc, .iw-meta, .auth-or,
       .p-commission-sub, .dir-to, .tp-status b, .mm-res-sec, .mmsm-sec):not(.coll-theme, .coll-theme *) { text-transform:var(--label-case); letter-spacing:var(--label-track); }
:is(.m3-btn small, .soon-cta, .auth-toggle button, #map3dHint):not(.coll-theme, .coll-theme *) { text-transform:none; letter-spacing:.005em; }
:is(.btn-gold, .btn-solid-gold, .btn-ghost, .enter-cta, .walk-cta, .audio-cta, .mm-cc-cta, .tp-enter, .tp-acts button, .m3-btn,
       .mp-pop-actions button, .sr-env-btn, .sr-card-actions button, .srs-actions button, .pill, .walk-mini, .aiv-submit,
       .consent-primary, .consent-ghost, .auth-submit, .auth-google, #pinResetBtn, #backBtn, .add-link, #nav button, .mm-chip):not(.coll-theme, .coll-theme *) { font-family:var(--font-ui); }
:is(.mural-title, .wordmark, .tp-title, .mp-pop-title, .p-name, .card h2, .form-card h2, .sr-name, .sr-card-title, .srs-title, .gallery-head h2,
       .sponsor-panel h3, .support-card h3, .mm-lead .aiv-title, .consent-card h2, .auth-card h2, .keycard h3, .map-list .ml-title, .iw .iw-title,
       .credit-plate .cp-title, #mapDeck .deck-title, .placard .deg, .p-stat .num, .g-card .g-title, .dir-name, .imp-drop-in b, .mmsm-head h2,
       #v360 .v360-title):not(.coll-theme, .coll-theme *) { font-family:var(--font-display); font-weight:var(--display-weight); letter-spacing:var(--display-track); text-transform:var(--display-case); }
:is(.ic, #nav svg, #map3dHud svg, #hudLocate svg, #povBtn svg, .mm-searchbar svg, .links a svg, .p-links a svg) { stroke-width:var(--icon-stroke); }

/* ---------- buttons ---------- */
.btn-solid-gold { background:var(--primary); color:var(--on-primary); border:1px solid transparent; border-radius:var(--r-pill);
  padding:11px 22px; font-size:14px; font-weight:600; line-height:1.2; box-shadow:none; transition:background .2s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease); }
.btn-solid-gold:hover { background:var(--primary-strong); box-shadow:var(--shadow-1); }
.btn-solid-gold:active { transform:scale(.98); }
.btn-solid-gold:disabled { opacity:.5; box-shadow:none; }
.btn-gold { background:transparent; color:var(--primary); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill);
  padding:10px 20px; font-size:14px; font-weight:600; line-height:1.2; transition:background .2s var(--ease), border-color .2s var(--ease); }
.btn-gold:hover, .btn-gold:focus-visible { background:rgb(var(--primary-rgb) / .08); color:var(--primary); border-color:var(--outline-strong); }
.btn-gold.small { padding:8px 14px; font-size:13px; }
.btn-ghost { color:var(--primary); font-size:14px; font-weight:600; padding:9px 12px; border-radius:var(--r-pill); transition:background .2s var(--ease); }
.btn-ghost:hover { color:var(--primary); background:rgb(var(--primary-rgb) / .08); }
.gold-text { background:none; -webkit-text-fill-color:currentColor; color:var(--primary); }

/* ---------- header ---------- */
header { padding:10px clamp(12px,3vw,24px); padding-top:max(10px, env(safe-area-inset-top));
  background:var(--surface-glass); -webkit-backdrop-filter:saturate(1.4) blur(14px); backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:var(--bw) solid var(--outline); pointer-events:auto; }
body.feed-mode header { background:linear-gradient(180deg, rgba(8,9,11,.72) 0%, rgba(8,9,11,.38) 62%, rgba(8,9,11,0) 100%); border-bottom:none; -webkit-backdrop-filter:none; backdrop-filter:none; pointer-events:none; }
.brand-lockup { gap:10px; }
.brand-lockup img { height:34px; width:34px; filter:none; }
.wordmark { font-family:var(--font-display); font-weight:700; font-size:19px; letter-spacing:-.01em; text-transform:none; color:var(--on-surface); }
.tagline { font-family:var(--font-ui); font-size:12px; font-weight:500; letter-spacing:0; color:var(--on-surface-2); margin-top:2px; }
@media (max-width:560px){ .wordmark{ font-size:17px; letter-spacing:-.01em; } .tagline{ font-size:11px; letter-spacing:0; } .brand-lockup img{ height:30px; width:30px; }
  .header-add-short{ padding:8px 12px; } .header-add-short::before{ font-size:13px; } }
#authBtn { height:38px; padding:0 16px; border-radius:var(--r-pill); background:var(--primary); color:var(--on-primary); border:1px solid transparent;
  font-family:var(--font-ui); font-size:14px; font-weight:600; letter-spacing:.005em; text-transform:none; box-shadow:none; }
#authBtn:hover { background:var(--primary-strong); color:var(--on-primary); }
#authBtn.signed { background:var(--surface-2); color:var(--on-surface); border-color:var(--outline); padding:0 12px 0 4px; }
#authBtn.signed:hover { background:var(--surface-3); color:var(--on-surface); }
#authBtn .auth-ava { background:var(--primary-container); color:var(--on-primary-container); border:none; }

/* ---------- bottom navigation: full-width bar on phones (Material-style active pill), floating dock on desktop ---------- */
#nav { font-family:var(--font-ui); }
#nav button { color:var(--on-surface-2); font-family:var(--font-ui); font-weight:600; text-transform:none; letter-spacing:.005em; }
#nav button:hover { color:var(--on-surface); }
@media (max-width:768px){
  #nav { left:0; right:0; bottom:0; transform:none; height:var(--nav-h); display:grid; grid-template-columns:repeat(4,1fr); gap:0;
    padding:6px 4px env(safe-area-inset-bottom,0px); border-radius:0; border:none; border-top:var(--bw) solid var(--outline);
    background:var(--surface-glass); -webkit-backdrop-filter:saturate(1.5) blur(18px); backdrop-filter:saturate(1.5) blur(18px); box-shadow:none; }
  #nav button { flex-direction:column; justify-content:flex-start; align-items:center; gap:4px; padding:4px 0 0; border-radius:0; background:transparent !important; min-height:52px; }
  #nav button svg { width:24px; height:24px; padding:4px 18px; box-sizing:content-box; border-radius:var(--r-lg); transition:background .25s var(--ease), color .25s var(--ease); stroke-width:1.7; }
  #nav button span { font-size:12px; font-weight:600; letter-spacing:.005em; text-transform:none; }
  #nav button.on { color:var(--on-surface); }
  #nav button.on svg { background:var(--primary-container); color:var(--on-primary-container); }
}
@media (min-width:769px){
  :root { --nav-h:76px; }
  #nav { bottom:16px; border-radius:var(--r-pill); padding:6px; gap:2px; background:var(--surface); border:var(--bw) solid var(--outline); box-shadow:var(--shadow-3);
    -webkit-backdrop-filter:none; backdrop-filter:none; }
  body.media-chrome #nav { background:var(--surface-glass); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); }
  #nav button { padding:10px 18px; border-radius:var(--r-pill); font-size:14px; gap:8px; }
  #nav button svg { width:20px; height:20px; }
  #nav button.on { background:var(--primary-container); color:var(--on-primary-container); }
}

/* ---------- toast → snackbar ---------- */
#toast { background:var(--inverse-surface); color:var(--on-inverse-surface); border:none; border-radius:var(--r-sm); box-shadow:var(--shadow-3);
  font-family:var(--font-ui); font-size:14px; font-weight:500; padding:12px 18px; max-width:min(560px, calc(100vw - 24px)); text-align:left; line-height:1.4; }

/* ---------- contextual back button ---------- */
#backBtn { height:40px; padding:0 14px 0 8px; gap:4px; border-radius:var(--r-pill); background:var(--surface); color:var(--on-surface); border:var(--bw) solid var(--outline);
  font-size:14px; font-weight:600; box-shadow:var(--shadow-2); -webkit-backdrop-filter:none; backdrop-filter:none; }
#backBtn:hover { background:var(--surface-2); color:var(--on-surface); }
#backBtn .bk-ico { font-size:22px; margin-top:-3px; }
body.media-chrome #backBtn { background:var(--surface-glass); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }

/* =====================================================================================================
   FEED — full-bleed art with a dark scrim; controls are pills.
   ===================================================================================================== */
.cover { background:var(--media-bg); }
.slide { content-visibility:auto; }   /* off-screen feed cards skip layout/paint until you swipe near them (37+ full-bleed cards on a phone) */
.placard { background:radial-gradient(ellipse at 50% 34%, rgb(var(--primary-rgb) / .16) 0%, rgba(0,0,0,0) 58%), var(--media-bg); }
.placard .ring { border-color:var(--outline-strong); }
.placard .ring::before { border-color:var(--outline); }
/* Phones: a card with no cover yet (the medallion placard) and a long info block (festival walls: eyebrow, presented-by, about,
   links, two action rows) collided mid-screen. Pin the medallion to the top band and shrink it so the text never crosses it. */
@media (max-width:600px){
  .slide:has(.placard) .placard { justify-content:flex-start; padding:calc(env(safe-area-inset-top,0px) + 72px) 0 0; gap:8px; transform-origin:50% 20%; }
  .slide:has(.placard) .placard .ring { width:96px; height:96px; }
  .slide:has(.placard):not(.coll-theme) .placard .ring img { width:60px; height:60px; }
  .slide:has(.placard) .placard .deg { font-size:20px; }
  .slide:has(.placard):has(.soon-cta) .placard .deg, .slide:has(.placard):has(.soon-cta) .placard .deg-sub,
  .slide.is-event .placard .deg, .slide.is-event .placard .deg-sub { display:none; }   /* the "360° coming soon" chip (or the event card's own text) already says it */
  .slide:has(.placard) .info::before { content:""; position:absolute; left:-20px; right:-20px; top:-56px; bottom:-40px; z-index:-1; pointer-events:none;
    background:linear-gradient(180deg, rgba(8,9,11,0) 0%, rgba(8,9,11,.78) 56px, rgba(8,9,11,.78) 100%); }   /* a tall card (about + links + audio rows) rides up over the medallion on short phones — keep the text legible */
  .slide .actions { gap:8px; }
  .slide .actions .walk-cta { padding:12px 12px; }   /* "Directions" + "Flyover" share one row inside the 295-px action column (18-px pads wrapped them → one row taller on every card); specificity beats the later .walk-cta rules */
  .slide.coll-theme .actions .walk-cta { letter-spacing:.12em; }   /* the ViBe skin's wide tracked Poppins caps */
}
.placard .deg { font-family:var(--font-display); font-weight:700; font-size:30px; letter-spacing:-.01em; }
.placard .deg-sub { font-size:13px; font-weight:500; color:var(--on-surface-2); }
.scrim { background:linear-gradient(0deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.80) 24%, rgba(8,9,11,.46) 46%, rgba(8,9,11,.10) 66%, rgba(8,9,11,.38) 100%); }
.slide.is-event .scrim { background:linear-gradient(0deg, rgba(8,9,11,.96) 0%, rgba(8,9,11,.92) 50%, rgba(8,9,11,.86) 64%, rgba(8,9,11,.45) 82%, rgba(8,9,11,.45) 100%); }   /* an event card's cover is a printed flyer (the festival's exhibitor list): its text needs a much darker scrim */
.info { text-shadow:0 1px 12px rgba(0,0,0,.45); }
.eyebrow { font-size:13px; font-weight:600; color:var(--on-surface-2); margin-bottom:8px; }
.mural-title { font-family:var(--font-display); font-weight:700; font-size:clamp(30px,6vw,52px); line-height:1.06; letter-spacing:-.02em; }
.slide:not(.coll-theme) .title-rule { width:40px; height:3px; border-radius:2px; background:var(--primary); opacity:1; margin:14px 0 12px; }
.by-artist { font-size:15px; font-weight:600; color:var(--primary); margin-bottom:12px; }
.sponsors { font-size:14px; }
.sponsors .lbl { font-size:12px; font-weight:500; color:var(--on-surface-2); margin-bottom:2px; }
.about { font-family:var(--font-body); font-size:15px; line-height:1.55; opacity:.94; }
.links { gap:8px; margin-bottom:18px; }
.links a { gap:7px; font-size:13px; font-weight:600; color:var(--on-surface); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill);
  padding:7px 12px 7px 10px; background:rgba(255,255,255,.06); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.links a:hover { background:rgba(255,255,255,.14); color:var(--on-surface); }
.links a svg { width:15px; height:15px; }
.actions { gap:10px; }
.enter-cta { gap:10px; background:var(--primary); color:var(--on-primary); border:1px solid transparent; border-radius:var(--r-pill); padding:12px 22px;
  font-size:15px; font-weight:700; box-shadow:0 6px 18px rgba(0,0,0,.28); }
.enter-cta:hover { background:var(--primary-strong); color:var(--on-primary); transform:translateY(-1px); box-shadow:0 10px 26px rgba(0,0,0,.34); }
.enter-cta::after { display:none; }
.enter-cta .key { border-color:rgb(var(--on-surface-rgb) / .35); border-radius:var(--r-xs); font-size:11px; font-weight:600; letter-spacing:0; padding:2px 6px; opacity:.8; }
.slide:not(.coll-theme):has(.enter-cta:hover) .placard .ring { box-shadow:0 0 80px rgb(var(--primary-rgb) / .35); border-color:var(--primary); }
.walk-cta { gap:8px; background:rgba(255,255,255,.08); color:var(--on-surface); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill);
  padding:11px 18px; font-size:14px; font-weight:600; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.walk-cta:hover { background:rgba(255,255,255,.16); color:var(--on-surface); border-color:var(--outline-strong); }
.row-link { display:inline-flex; align-items:center; gap:5px; color:var(--on-surface-2); font-size:13px; font-weight:600; padding:8px 4px; }
.row-link:hover { color:var(--on-surface); }
.soon-cta { font-size:13px; font-weight:500; color:var(--on-surface-2); }
.audio-cta, .mm-cc-cta { gap:9px; background:rgba(255,255,255,.08); color:var(--on-surface); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill);
  padding:9px 15px; font-size:13px; font-weight:600; }
.audio-cta:hover, .mm-cc-cta:hover { background:rgba(255,255,255,.16); color:var(--on-surface); border-color:var(--outline-strong); }
.audio-cta.playing, .mm-cc-cta.on { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
.mm-cc-cta .cc-badge { border-radius:4px; }
.mm-transcript { border-color:var(--outline); border-radius:var(--r-md); background:rgba(14,15,18,.7); }
.mm-tx-status { font-size:12px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--primary); }
.mm-tx-foot { font-size:11px; letter-spacing:0; text-transform:none; }
.mm-tx-body { font-family:var(--font-body); }
#progress .dot { background:rgba(255,255,255,.32); }
#progress .dot.on { background:#fff; }
.scroll-hint { color:var(--on-surface-2); }
.scroll-hint span { font-size:12px; font-weight:600; }

/* =====================================================================================================
   MAP — floating search + chips on top, FAB stack on the right, bottom sheet for a pin.
   ===================================================================================================== */
#gmap { background:var(--surface-2); }
#map3d { background:#0E1013; }
/* No colour grade over Google's tiles: Maps Platform policy requires the Google logo + attribution to render unmodified, and a
   full-screen filter/blend pass every frame was a real cost on phones. The photoreal city is shown as Google renders it. */
#map3d.cinematic gmp-map-3d { filter:none; }
.cine-grade { display:none; }

/* --- top: search pill + results + collection chips --- */
#mmMapTop { position:absolute; top:max(10px, env(safe-area-inset-top)); left:12px; right:12px; z-index:40; display:none; flex-direction:column; gap:8px; pointer-events:none; }
body.tour-on #mmMapTop { display:flex; }
#mmMapTop > * { pointer-events:auto; }
.mm-searchbar { position:relative; display:flex; align-items:center; gap:2px; height:48px; padding:0 6px; background:var(--surface); border-radius:var(--r-pill);
  box-shadow:var(--shadow-2); border:1px solid transparent; transition:box-shadow .2s var(--ease); }
.mm-searchbar:focus-within { box-shadow:var(--shadow-3); }
.mm-searchbar .mm-sb-btn { flex:none; width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; border:none; background:transparent;
  color:var(--on-surface-2); border-radius:50%; cursor:pointer; padding:0; }
.mm-searchbar .mm-sb-btn:hover { background:var(--surface-2); color:var(--on-surface); }
.mm-searchbar .mm-sb-btn .ic { width:22px; height:22px; }
.mm-searchbar .mm-sb-brand { flex:none; width:34px; height:34px; margin:0 2px 0 4px; border-radius:50%; object-fit:contain; }
#mmSearchInput { flex:1; min-width:0; height:100%; border:none; outline:none; background:transparent; color:var(--on-surface);
  font-family:var(--font-ui); font-size:16px; font-weight:500; padding:0 6px; -webkit-appearance:none; appearance:none; }
#mmSearchInput::placeholder { color:var(--on-surface-2); font-weight:400; }
#mmSearchInput::-webkit-search-cancel-button { display:none; }
.mm-results { max-height:min(62dvh, 520px, calc(100dvh - max(10px, env(safe-area-inset-top)) - 56px - var(--nav-h) - 12px)); overflow-y:auto; background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--shadow-4); padding:6px 0;
  overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.mm-results[hidden] { display:none; }
.mm-res-sec { padding:10px 16px 4px; font-size:12px; font-weight:600; color:var(--on-surface-2); }
.mm-res { display:flex; align-items:center; gap:12px; width:100%; padding:8px 16px; background:none; border:none; text-align:left; cursor:pointer; color:var(--on-surface); font-family:var(--font-ui); }
.mm-res:hover, .mm-res.kb { background:var(--surface-2); }
.mm-res .mm-res-th { flex:none; width:44px; height:44px; border-radius:var(--r-sm); background:var(--surface-3) center/cover no-repeat; display:flex; align-items:center; justify-content:center; color:var(--on-surface-2); overflow:hidden; }
.mm-res .mm-res-th img { width:100%; height:100%; object-fit:cover; display:block; }
.mm-res .mm-res-th.ico { border-radius:50%; background:var(--surface-2); }
.mm-res .mm-res-tx { flex:1; min-width:0; }
.mm-res .mm-res-t, .mm-res .mm-res-s { display:block; }
.mm-res .mm-res-t { font-size:15px; font-weight:600; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-res .mm-res-t mark { background:none; color:var(--primary); }
.mm-res .mm-res-s { font-size:13px; color:var(--on-surface-2); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-res .mm-res-d { flex:none; font-size:12px; color:var(--on-surface-2); font-weight:500; }
.mm-res-empty { padding:18px 16px; font-size:14px; color:var(--on-surface-2); }
.mm-chips { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 4px; margin:0 -12px; padding-left:12px; padding-right:12px; scrollbar-width:none; -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; }
.mm-chips::-webkit-scrollbar { display:none; }
.coll-find { position:relative; z-index:30; max-width:560px; margin:0 auto 18px; }   /* Collections tab find box (reuses the map search pill + results) */
body.has-back .coll-find { margin-top:34px; }   /* the floating ‹ Back sits top-right on header views (top: safe + 62 px): start the box below it */
.coll-find .cf-bar { height:46px; padding:0 4px 0 14px; gap:8px; }
.coll-find .cf-ic { flex:none; display:inline-flex; color:var(--on-surface-2); } .coll-find .cf-ic .ic { width:20px; height:20px; }
#collFindQ { flex:1; min-width:0; height:100%; border:none; outline:none; background:transparent; color:var(--on-surface); font:500 16px var(--font-ui); padding:0; -webkit-appearance:none; appearance:none; }
#collFindQ::placeholder { color:var(--on-surface-2); font-weight:400; }
#collFindQ::-webkit-search-cancel-button { display:none; }
.coll-find .cf-res { position:absolute; left:0; right:0; top:calc(100% + 6px); max-height:min(60dvh, 480px); text-align:left; }
.mm-chip-adhoc { padding-right:9px; max-width:min(70vw,300px); }   /* a city / artist filter from the search (artist credit lines can be long: ellipsize) */
.mm-chip-adhoc .mm-chip-t { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mm-chip-adhoc .mm-chip-x { width:14px; height:14px; opacity:.7; flex:none; }
.mm-res.on .mm-res-th.ico { background:var(--primary-container); color:var(--on-primary-container); }
.mm-chip { flex:none; display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 14px 0 11px; border-radius:var(--r-pill); scroll-snap-align:start;
  background:var(--surface); color:var(--on-surface); border:var(--bw) solid var(--outline); box-shadow:var(--shadow-1);
  font-family:var(--font-ui); font-size:14px; font-weight:600; white-space:nowrap; cursor:pointer; transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.mm-chip:hover { background:var(--surface-2); }
.mm-chip .mm-chip-dot { width:10px; height:10px; border-radius:50%; background:var(--c, var(--primary)); box-shadow:0 0 0 2px var(--surface), 0 0 0 3px rgb(var(--on-surface-rgb) / .14); flex:none; }
.mm-chip .ic { width:16px; height:16px; }
.mm-chip[aria-pressed="true"] { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
.mm-chip[aria-pressed="true"] .mm-chip-dot { box-shadow:0 0 0 2px var(--primary-container), 0 0 0 3px rgb(var(--on-surface-rgb) / .18); }
#mmMapTop.searching .mm-chips { display:none; }
#map3dBar { z-index:41; }
body.map-menu-open #mmMapTop .mm-chips { opacity:0; visibility:hidden; }
/* the legacy dropdown filter is superseded by the chips (kept in the DOM — JS still reads it) */
body.tour-on #mapCatBar { display:none !important; }
/* the old floating hamburger now lives INSIDE the search pill */
#mmMapTop #map3dMenuBtn { position:static; display:inline-flex; width:40px; height:40px; border-radius:50%; background:transparent; border:none; box-shadow:none;
  color:var(--on-surface-2); -webkit-backdrop-filter:none; backdrop-filter:none; font-size:0; }
#mmMapTop #map3dMenuBtn:hover, body.map-menu-open #mmMapTop #map3dMenuBtn { background:var(--surface-2); color:var(--on-surface); }
#mmMapTop #map3dMenuBtn .ic { width:22px; height:22px; }
/* the trail / live-navigation pill owns the top while it runs */
#map-view:has(#trailPill.show) #mmMapTop .mm-chips { opacity:0; visibility:hidden; }
/* back button on the map: a round button that sits left of the search pill */
body.has-back.tour-on #backBtn { top:max(14px, calc(env(safe-area-inset-top) + 4px)); left:12px; width:40px; height:40px; padding:0; justify-content:center; }
body.has-back.tour-on #backBtn > span:not(.bk-ico) { display:none; }
body.has-back.tour-on #backBtn .bk-ico { margin:-3px 0 0 -1px; }
body.has-back.tour-on #mmMapTop .mm-searchbar { margin-left:48px; }

/* --- tools menu (opened from the ☰ in the search pill) --- */
#map3dBar { top:calc(max(10px, env(safe-area-inset-top)) + 56px); left:12px; width:min(300px, calc(100vw - 24px)); gap:0; padding:6px 0; background:var(--surface);
  border:none; border-radius:var(--r-lg); box-shadow:var(--shadow-4); -webkit-backdrop-filter:none; backdrop-filter:none; max-height:calc(100dvh - max(10px, env(safe-area-inset-top)) - 56px - var(--nav-h) - 12px); }
.m3-btn { display:grid; grid-template-columns:24px 1fr auto; column-gap:14px; align-items:center; border-radius:0; padding:10px 16px; color:var(--on-surface);
  font-size:15px; font-weight:600; border:none; text-align:left; }
.m3-btn > .ic { grid-row:1 / span 2; color:var(--on-surface-2); width:22px; height:22px; }
.m3-btn > .m3-t { grid-column:2; }
.m3-btn > small { grid-column:2; flex-basis:auto; font-family:var(--font-ui); font-size:13px; font-weight:400; color:var(--on-surface-2); margin-top:1px; letter-spacing:0; }
.m3-btn > .st { grid-column:3; grid-row:1 / span 2; margin:0; font-size:12px; font-weight:700; padding:3px 8px; border-radius:var(--r-pill); background:var(--surface-2); color:var(--on-surface-2); opacity:1; }
.m3-btn:hover { background:var(--surface-2); color:var(--on-surface); }
.m3-btn.on { background:var(--primary-container); color:var(--on-primary-container); }
.m3-btn.on > .ic, .m3-btn.on small { color:var(--on-primary-container); opacity:.9; }
.m3-btn.on > .st { background:var(--primary); color:var(--on-primary); }
.m3-btn.m3-sep { border-top:var(--bw) solid var(--outline); margin-top:4px; padding-top:12px; }

/* --- right-edge controls: zoom / rotate / step, as grouped white controls --- */
#map3dHud { right:12px; gap:10px; top:auto; bottom:calc(var(--nav-h) + 132px); transform:none; }
#map3dHud button { width:44px; height:44px; border-radius:var(--r-md); background:var(--surface); color:var(--on-surface-2); border:none; box-shadow:var(--shadow-2);
  -webkit-backdrop-filter:none; backdrop-filter:none; }
#map3dHud button:hover { background:var(--surface-2); color:var(--on-surface); }
#map3dHud button svg { width:20px; height:20px; }
#map3dHud .hud-sep { height:0; margin:0; background:none; }
/* pair the buttons visually: zoom (+/−), rotate (⟲/⟳), step (∧/∨) */
#hudZoomIn, #hudRotL, #hudPrev { border-bottom-left-radius:0 !important; border-bottom-right-radius:0 !important; }
#hudZoomOut, #hudRotR, #hudNext { border-top-left-radius:0 !important; border-top-right-radius:0 !important; margin-top:-10px; box-shadow:0 2px 3px rgba(23,28,36,.10), 0 4px 10px 2px rgba(23,28,36,.06) !important; }
#hudZoomOut::before, #hudRotR::before, #hudNext::before { content:""; position:absolute; left:10px; right:10px; top:0; height:1px; background:var(--outline); }
#map3dHud button { position:relative; }
@media (max-width:560px){ #map3dHud { right:10px; top:auto; bottom:calc(var(--nav-h) + 124px); gap:10px; } #map3dHud button { width:42px; height:42px; } }

/* --- bottom-right FABs: POV (arrival view) pill + My Location --- */
#hudDock { left:auto; right:12px; bottom:calc(var(--nav-h) + 16px); transform:none; flex-direction:column; align-items:flex-end; gap:12px; }
#hudDockX, #hudDockTab { display:none !important; }
body.dock-collapsed #hudDock { opacity:1; visibility:visible; pointer-events:none; }
#myLocWrap { order:2; } #povWrap { order:1; }
#myLocLabel, #povLabel { display:none; }
#hudLocate { width:52px; height:52px; border-radius:var(--r-lg); background:var(--surface); color:var(--on-surface-2); border:none; box-shadow:var(--shadow-3); -webkit-backdrop-filter:none; backdrop-filter:none; }
#hudLocate:hover { background:var(--surface-2); color:var(--primary); }
#hudLocate svg { width:24px; height:24px; }
#hudLocate.on { background:var(--surface); color:#1A73E8; }
#hudLocate.on:hover { background:var(--surface-2); color:#1A73E8; }
/* POV becomes an extended FAB: eye icon + the current arrival view */
#povBtn { width:auto; height:40px; padding:0 14px 0 11px; gap:7px; border-radius:var(--r-pill); background:var(--surface); color:var(--on-surface); border:none; box-shadow:var(--shadow-2);
  font-family:var(--font-ui); font-size:13px; font-weight:600; -webkit-backdrop-filter:none; backdrop-filter:none; }
#povBtn::before, #povBtn::after, #hudPov::before, #hudPov::after { display:none !important; }
#povBtn:hover { background:var(--surface-2); color:var(--on-surface); }
#povBtn.on { background:var(--primary-container); color:var(--on-primary-container); }
#povBtn svg { width:18px; height:18px; }
#povBtn .pov-btn-v { white-space:nowrap; }
.pov-menu { left:auto; right:0; transform:translateY(6px); background:var(--surface); border:none; border-radius:var(--r-md); box-shadow:var(--shadow-4); padding:6px 0; min-width:190px;
  -webkit-backdrop-filter:none; backdrop-filter:none; }
#povWrap:hover .pov-menu, #povWrap.open .pov-menu { transform:translateY(0); }
.pov-opt { border-radius:0; padding:11px 16px; gap:12px; color:var(--on-surface); font-size:15px; font-weight:500; border:none; }
.pov-opt:hover { background:var(--surface-2); color:var(--on-surface); }
.pov-opt.on { background:var(--primary-container); color:var(--on-primary-container); }
.pov-opt .pov-ico { width:20px; height:20px; flex:0 0 20px; }
/* the separate lower-left POV eye is folded into the FAB above */
#hudPovWrap, #hudPovTab { display:none !important; }
#map3dHint { bottom:calc(var(--nav-h) + 22px); left:12px; transform:none; font-family:var(--font-ui); font-size:13px; font-weight:600; color:var(--on-inverse-surface);
  background:var(--inverse-surface); border:none; border-radius:var(--r-pill); padding:9px 14px; box-shadow:var(--shadow-2); -webkit-backdrop-filter:none; backdrop-filter:none; max-width:calc(100vw - 100px); white-space:normal; }
@media (max-width:560px){ #map3dHint { font-size:12.5px; bottom:calc(var(--nav-h) + 22px); } }
body.tour-on #mapDeck ~ #map3dHint { }
#pinResetBtn { background:var(--primary); color:var(--on-primary); border-radius:var(--r-pill); padding:11px 18px; font-size:14px; font-weight:600; box-shadow:var(--shadow-3); }
.tp-status { background:var(--surface); color:var(--on-surface); border:none; border-radius:var(--r-lg); box-shadow:var(--shadow-4); font-family:var(--font-ui); font-size:14px; }
.tp-status b, .tp-status a { color:var(--primary); }

/* --- the pin preview: a bottom SHEET on phones (Google-Maps style), a floating card on desktop --- */
#tourPanel { left:50%; bottom:calc(var(--nav-h) + 12px); width:min(440px, calc(100vw - 24px)); background:var(--surface); border:none; border-radius:var(--r-xl);
  box-shadow:var(--shadow-4); padding:16px; gap:14px; -webkit-backdrop-filter:none; backdrop-filter:none; flex-wrap:wrap; }
#tourPanel .tp-cover { width:84px; height:84px; flex:0 0 84px; border-radius:var(--r-md); border:none; background-color:var(--surface-3); }
#tourPanel .tp-body { flex:1 1 0; min-width:0; padding-right:30px; }
.tp-badge { left:6px; bottom:6px; font-family:var(--font-ui); font-size:11px; font-weight:700; color:#fff; background:rgba(15,17,20,.72); border:none; border-radius:var(--r-pill); padding:2px 7px; }
.tp-title { font-family:var(--font-display); font-size:21px; font-weight:700; color:var(--on-surface); line-height:1.2; letter-spacing:-.01em; white-space:normal;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tp-sub { font-size:14px; color:var(--on-surface-2); margin-top:3px; }
.tp-enter { margin-top:12px; display:inline-flex; align-items:center; gap:8px; background:var(--primary); color:var(--on-primary); border:none; border-radius:var(--r-pill);
  padding:10px 18px; font-size:14px; font-weight:700; box-shadow:none; }
.tp-enter:hover { background:var(--primary-strong); }
.tp-enter.soon, .tp-enter:disabled { background:var(--surface-2); color:var(--on-surface-2); border:none; }
.tp-acts { flex:1 0 100%; flex-wrap:nowrap; gap:8px; margin:0 -16px -4px; padding:2px 16px 4px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.tp-acts:empty { display:none; }
.tp-acts::-webkit-scrollbar { display:none; }
.tp-acts button { flex:none; display:inline-flex; align-items:center; gap:6px; background:var(--surface); color:var(--primary); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill);
  padding:8px 14px; font-size:14px; font-weight:600; }
.tp-acts button:hover, .tp-acts button:active { background:rgb(var(--primary-rgb) / .08); color:var(--primary); }
.tp-acts button .ic { width:18px; height:18px; }
.tp-acts [data-pop="walk"], .tp-acts [data-pop="dir"] { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
.tp-acts [data-pop="fly"] { border-color:var(--outline-strong); color:var(--primary); }
.tp-close { position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%; border:none; background:var(--surface-2); color:var(--on-surface-2);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; z-index:2; }
.tp-close:hover { background:var(--surface-3); color:var(--on-surface); }
.tp-close .ic { width:18px; height:18px; }
#tourPanel .tp-handle { display:none; }
@media (max-width:768px), (max-height:500px) and (max-width:1023px){   /* landscape phones too (mmUseSheet) */
  #tourPanel { left:0; right:0; width:auto; bottom:var(--nav-h); transform:translateY(16px); border-radius:var(--r-xl) var(--r-xl) 0 0; padding:22px 16px 16px;
    box-shadow:0 -2px 6px rgba(23,28,36,.10), 0 -10px 30px rgba(23,28,36,.14); touch-action:pan-x; }
  #tourPanel.show { transform:translateY(0); }
  #tourPanel .tp-handle { display:block; position:absolute; top:8px; left:50%; width:36px; height:4px; margin-left:-18px; border-radius:2px; background:var(--outline-strong); }
  #tourPanel.dragging { transition:none; }
  .tp-close { top:14px; }
  body.tour-on #tourPanel { left:0; }
}
/* while the sheet is up, lift the FABs above it instead of hiding them (the sheet is ~200px tall) */
#tourPanel.show ~ #hudDock { opacity:1 !important; visibility:visible !important; bottom:calc(var(--nav-h) + var(--mm-sheet-h, 210px) + 12px); }
#tourPanel.show ~ #map3dHint { opacity:0; }
@media (min-width:769px){ #tourPanel.show ~ #hudDock { bottom:calc(var(--nav-h) + 16px); } }

/* --- anchored popover card (desktop pin preview) --- */
.mp-pop { width:280px; font-family:var(--font-ui); border-radius:var(--r-lg); box-shadow:var(--shadow-4); background:var(--surface); }
.mp-pop-cover { height:150px; background:var(--surface-3); }
.mp-pop-cover::after { display:none; }
.mp-pop-badge { top:10px; left:10px; font-size:11px; font-weight:700; color:#fff; background:rgba(15,17,20,.72); border-radius:var(--r-pill); padding:3px 9px; }
.mp-pop-info { padding:14px 16px 16px; background:var(--surface); border:none; }
.mp-pop-title { font-family:var(--font-display); font-size:19px; font-weight:700; color:var(--on-surface); line-height:1.2; letter-spacing:-.01em; }
.mp-pop-sub { font-size:13.5px; color:var(--on-surface-2); margin:3px 0 12px; }
.mp-pop-actions { gap:8px; }
.mp-pop-actions button { display:inline-flex; align-items:center; justify-content:center; gap:7px; font-size:14px; font-weight:600; padding:9px 14px; border-radius:var(--r-pill);
  border:var(--bw) solid var(--outline-strong); background:var(--surface); color:var(--primary); }
.mp-pop-actions [data-pop="enter"], .mp-pop-actions [data-pop="enter360"] { background:var(--primary); color:var(--on-primary); border-color:transparent; }
.mp-pop-actions [data-pop="enter"]:hover, .mp-pop-actions [data-pop="enter360"]:hover { background:var(--primary-strong); }
.mp-pop-actions [data-pop="artwalk"], .mp-pop-actions [data-pop="fly"], .mp-pop-actions [data-pop="portfolio"], .mp-pop-actions [data-pop="edit"], .mp-pop-actions [data-pop="enter3d"] { background:var(--surface); color:var(--primary); border-color:var(--outline-strong); }
.mp-pop-actions [data-pop="artwalk"]:hover, .mp-pop-actions [data-pop="fly"]:hover, .mp-pop-actions [data-pop="portfolio"]:hover, .mp-pop-actions [data-pop="edit"]:hover, .mp-pop-actions [data-pop="enter3d"]:hover { background:rgb(var(--primary-rgb) / .08); color:var(--primary); border-color:var(--outline-strong); }
.mp-pop-dir { gap:6px; margin-top:2px; }
.mp-pop-dir-lbl { font-size:12px; font-weight:600; color:var(--on-surface-2); }
.mp-pop-dir-btns button { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
.mp-pop-dir-btns button:hover { background:var(--primary-container); color:var(--on-primary-container); filter:brightness(.97); }
.coll-theme.mp-pop .mp-pop-info { background:var(--surface); }
.coll-theme.mp-pop .mp-pop-title { color:var(--on-surface); }

/* --- the 2D-map fallback bar, key card, list, info window --- */
.map-bar { top:calc(max(10px, env(safe-area-inset-top)) + 64px); background:var(--surface); border:none; border-radius:var(--r-pill); box-shadow:var(--shadow-2); padding:6px 8px 6px 18px; -webkit-backdrop-filter:none; backdrop-filter:none; }
.map-count { border-right-color:var(--outline); }
@media (max-width:560px){ .map-bar { left:12px; right:12px; transform:none; max-width:none; justify-content:space-between; gap:10px; padding:6px 6px 6px 14px; } .map-bar-actions { gap:6px; } .map-bar .btn-gold.small, .map-bar .btn-solid-gold.small { padding:8px 12px; font-size:13px; } }
body.has-back:not(.tour-on) .map-bar { top:calc(max(10px, env(safe-area-inset-top)) + 110px); }
.map-count b { font-family:var(--font-display); font-weight:700; font-size:24px; color:var(--on-surface); }
.map-count .mc-label { font-size:12px; font-weight:500; color:var(--on-surface-2); margin-top:3px; }
.keycard { background:var(--surface); border:none; border-radius:var(--r-xl); box-shadow:var(--shadow-2); }
.keycard h3 { font-family:var(--font-display); font-weight:700; font-size:22px; }
.keycard p, .keycard .small-note { color:var(--on-surface-2); }
.keycard input { background:var(--surface-2); border:1px solid transparent; border-radius:var(--r-sm); font-size:16px; }
.keycard input:focus { border-color:var(--primary); background:var(--surface); }
.map-list .ml-card { background:var(--surface); border:none; border-radius:var(--r-lg); box-shadow:var(--shadow-1); }
.map-list .ml-thumb { background:var(--surface-3); }
.map-list .ml-title { font-family:var(--font-display); font-weight:700; font-size:17px; }
.map-list .ml-loc { font-size:13px; color:var(--on-surface-2); }
.gm-style .gm-style-iw-c { background:var(--surface) !important; border:none; border-radius:var(--r-lg) !important; box-shadow:var(--shadow-4) !important; }
.gm-style .gm-style-iw-tc::after { background:var(--surface) !important; }
.iw { color:var(--on-surface); font-family:var(--font-ui); }
.iw .iw-cover { background:var(--surface-3); }
.iw .iw-title { font-family:var(--font-display); font-weight:700; font-size:18px; }
.iw .iw-meta { font-size:13px; color:var(--on-surface-2); }
.iw .iw-actions button { font-size:13px; border-radius:var(--r-pill); color:var(--primary); border-color:var(--outline-strong); }
.iw .iw-actions button.primary { background:var(--primary); color:var(--on-primary); border-color:transparent; }

/* --- desktop left results panel (mirrors the pins) --- */
@media (min-width:1024px) and (pointer:fine){
  body.tour-on #mapDeck { top:0; background:var(--surface); border-right:var(--bw) solid var(--outline); box-shadow:var(--shadow-2); -webkit-backdrop-filter:none; backdrop-filter:none; padding-top:calc(max(10px, env(safe-area-inset-top)) + 62px); }
  body.tour-on #mmMapTop { right:auto; width:calc(var(--mm-deck-w,330px) - 24px); }
  body.tour-on #mmMapTop .mm-chips { position:absolute; left:var(--mm-deck-w,330px); top:7px; width:calc(100vw - var(--mm-deck-w,330px) - 24px); margin:0; padding:0 0 4px; }
  body.tour-on #map3dMenuBtn { left:auto; }
  body.has-back.tour-on #backBtn { left:12px; }
  body.tour-on #map3dBar { left:12px; }
  body.tour-on #tourPanel { left:calc(50% + (var(--mm-deck-w,330px) / 2)); }
  body.tour-on #map3dHint { left:calc(var(--mm-deck-w,330px) + 12px); }
  body.tour-on #hudDock { left:auto; }
}
#mapDeck .deck-head { padding:14px 16px 10px; border-bottom:var(--bw) solid var(--outline); }
#mapDeck .deck-title { font-family:var(--font-display); font-weight:700; font-size:17px; color:var(--on-surface); letter-spacing:-.005em; }
#mapDeck .deck-sub { font-size:13px; color:var(--on-surface-2); }
#mapDeck .deck-scroll { padding:4px 0 calc(var(--nav-h) + 12px); gap:0; scrollbar-color:var(--outline-strong) transparent; }
#mapDeck .deck-scroll::-webkit-scrollbar-thumb { background:var(--outline-strong); }
.deck-card { border:none; border-bottom:var(--bw) solid var(--outline); border-radius:0; padding:12px 16px; background:transparent; gap:14px; }
.deck-card:hover { background:var(--surface-2); transform:none; }
.deck-card.hot { background:var(--surface-2); border-color:var(--outline); }
.deck-card.active { background:var(--primary-container); box-shadow:none; border-color:var(--outline); }
.deck-card .dc-cover { width:64px; height:64px; border-radius:var(--r-sm); border:none; background:var(--surface-3); order:2; }
.deck-card .dc-idx { color:var(--on-surface-2); font-size:12px; font-weight:600; }
.deck-card .dc-title { color:var(--on-surface); font-size:15px; font-weight:700; }
.deck-card .dc-sub { color:var(--on-surface-2); font-size:13px; }
.deck-card .dc-badge { color:var(--on-primary-container); background:var(--primary-container); border:none; border-radius:var(--r-pill); font-size:11px; font-weight:700; padding:2px 8px; }
.deck-card .dc-meta { display:flex; align-items:center; gap:8px; margin-top:5px; }   /* badge + how far it is (2026-10-22) */
.deck-card .dc-meta .dc-badge { margin-top:0; }
.deck-card .dc-dist, .mm-dist-pill { font-size:12px; font-weight:700; color:var(--primary, #1a73e8); white-space:nowrap; letter-spacing:0; text-transform:none; }
.mm-dist-pill { margin-left:6px; }
.mm-dist-pill::before { content:'· '; color:var(--on-surface-2); font-weight:400; }
[data-mm-dist][hidden] { display:none !important; }

/* --- directions / live trail / art-walk bar / AR arrow --- */
#walkBar { background:var(--surface); border:none; border-radius:var(--r-pill); box-shadow:var(--shadow-3); -webkit-backdrop-filter:none; backdrop-filter:none;
  top:calc(max(10px, env(safe-area-inset-top)) + 104px); }
#walkBar .wb-txt { font-family:var(--font-ui); font-size:14px; color:var(--on-surface); letter-spacing:0; }
#walkBar .wb-txt b { color:var(--primary); }
#walkBar .wb-btn { border:var(--bw) solid var(--outline-strong); color:var(--on-surface-2); background:var(--surface); }
#walkBar .wb-btn:hover { background:var(--surface-2); color:var(--on-surface); }
#walkBar .wb-go { background:var(--primary); color:var(--on-primary); border-color:transparent; }
@media (max-width:560px){ #walkBar { top:calc(max(10px, env(safe-area-inset-top)) + 100px); } #walkBar .wb-txt { font-size:13px; } }
#aivBadge { top:auto; bottom:calc(var(--nav-h) + 14px); right:auto; left:12px; padding:4px 5px 4px 10px; gap:6px; border:var(--bw) solid var(--outline); background:var(--surface-glass); box-shadow:var(--shadow-1);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
#aivBadge:hover { background:var(--surface); }
#aivBadge .aiv-pb { font-size:11px; font-weight:500; color:var(--on-surface-2); }
#aivBadge .aiv-logo { width:24px; height:24px; border:none; background:var(--media-bg); }
#aivBadge .aiv-logo.fallback { background:var(--primary); }
#aivBadge .aiv-logo.fallback::after { color:var(--on-primary); font-size:8.5px; }
/* only on the map: the pin hint & badge share the lower-left corner — the badge yields while the hint shows */
body.tour-on:has(#map3dHint:not(.done)) #aivBadge { bottom:calc(var(--nav-h) + 66px); }
body:has(#tourPanel.show) #aivBadge, body.map-menu-open #aivBadge, body:has(#dirPanel.show) #aivBadge { opacity:0; visibility:hidden; }
@media (min-width:1024px) and (pointer:fine){ body.tour-on #aivBadge { left:calc(var(--mm-deck-w,330px) + 12px); } }


/* Google's pre-release-channel notice (kept visible): parked top-right under the chips, clear of the FABs and zoom stack */
[class*="api-load-alpha-banner"], [class*="api-load-beta-banner"] { top:calc(max(10px, env(safe-area-inset-top)) + 100px) !important; bottom:auto !important; right:12px !important; left:auto !important;
  max-width:min(220px, calc(100vw - 24px)) !important; border-radius:var(--r-md) !important; box-shadow:var(--shadow-2) !important; opacity:.9 !important; }
@media (max-width:560px){ [class*="api-load-alpha-banner"], [class*="api-load-beta-banner"] { bottom:auto !important; } }
body:has(#tourPanel.show) [class*="api-load-alpha-banner"], body.map-menu-open [class*="api-load-alpha-banner"], body:has(#mmMapTop.searching) [class*="api-load-alpha-banner"] { opacity:0 !important; visibility:hidden !important; }
/* =====================================================================================================
   SHOWROOM — dark media chrome
   ===================================================================================================== */
#showroom-view { background:var(--media-bg); }
.sr-name { font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:-.005em; text-transform:none; }
.sr-sub { font-size:12px; font-weight:500; color:var(--on-surface-2); }
.sr-brand img { filter:none; }
.sr-env-btn { font-family:var(--font-ui); font-size:13px; font-weight:500; color:var(--on-surface); background:var(--surface-glass); border:var(--bw) solid var(--outline);
  border-radius:var(--r-pill); padding:8px 13px; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:var(--shadow-1); }
.sr-env-btn:hover { background:rgba(40,42,48,.85); }
.sr-env-btn.on { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
.sr-env-btn .sv { font-weight:700; color:var(--primary); }
.sr-env-btn, .walk-cta, .sr-card-actions button, .srs-actions button, .enter-cta, .audio-cta, .mm-cc-cta { display:inline-flex; align-items:center; gap:7px; }
.sr-env-btn .ic { color:var(--on-surface-2); }
.sr-env-btn.on .sv { color:var(--on-primary-container); }
.sr-top-right .sr-env-btn { max-width:100%; min-width:0; white-space:nowrap; }   /* a long collection / backdrop name ("Collection · Downtown & Penn Quarter" in Gallery's spaced capitals) ends in … instead of running off a phone */
.sr-env-btn .sv { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.sr-dd-menu { background:#24262B; border:var(--bw) solid var(--outline); border-radius:var(--r-md); box-shadow:var(--shadow-4); padding:6px 0; -webkit-backdrop-filter:none; backdrop-filter:none; }
.sr-dd-item { border-radius:0; padding:10px 14px; font-family:var(--font-ui); font-size:14px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--on-surface); }
.sr-dd-item:hover { background:rgba(255,255,255,.07); color:var(--on-surface); }
.sr-dd-item.sel { background:var(--primary-container); color:var(--on-primary-container); }
.sr-dd-item small { font-size:12px; color:var(--on-surface-2); letter-spacing:0; text-transform:none; }
#srCollDD { min-width:0; max-width:100%; }   /* the pill sits in a dropdown wrapper now: let a long name end in … instead of pushing it off a phone */
#srCollDD .sr-env-btn { max-width:100%; }
#srCollDD .sr-dd-menu { width:min(86vw,340px); max-height:min(62vh,440px); overflow-y:auto; padding-top:0; }   /* the Collection pill's search: type a collection, city or artist */
.sr-coll-q { position:sticky; top:0; z-index:1; box-sizing:border-box; width:100%; margin:0; padding:12px 14px; font:500 15px var(--font-ui); color:var(--on-surface); background:#24262B; border:0; border-bottom:var(--bw) solid var(--outline); outline:none; border-radius:var(--r-md) var(--r-md) 0 0; }
.sr-coll-q::placeholder { color:var(--on-surface-2); }
.sr-coll-h { padding:10px 14px 4px; font:600 11px var(--font-ui); letter-spacing:.08em; text-transform:uppercase; color:var(--on-surface-2); }
.sr-coll-empty { padding:14px; font:14px/1.4 var(--font-ui); color:var(--on-surface-2); white-space:normal; }
#srCollList .sr-dd-item .sr-dd-label { min-width:0; overflow:hidden; text-overflow:ellipsis; }
#srCollList .sr-dd-item small { margin-left:auto; flex-shrink:0; }
#srCollList .sr-dd-item .sr-dd-label { flex:1 1 auto; min-width:40%; white-space:nowrap; }   /* 2026-10-23: a long "~10 mi · Gaston, Lincoln & Cleveland counties" no longer squeezes the name to nothing */
#srCollList .sr-dd-item small { flex:0 1 auto; min-width:0; max-width:58%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#srCollList .sr-dd-item:focus-visible { background:rgba(255,255,255,.1); outline:none; }
.sr-dd-item.sel small { color:var(--on-primary-container); opacity:.85; }
.sr-dd-check { color:var(--primary); }
.sr-count { font-size:13px; font-weight:500; color:var(--on-surface-2); }
.sr-count b { color:var(--on-surface); font-family:var(--font-ui); }
.sr-hint { font-family:var(--font-ui); font-size:13px; font-weight:500; color:var(--on-surface-2); }
.sr-hover { font-family:var(--font-ui); background:var(--surface-glass); border:var(--bw) solid var(--outline); border-radius:var(--r-pill); color:var(--on-surface); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
#srCard { background:rgba(24,25,29,.86); border:var(--bw) solid var(--outline); border-radius:var(--r-xl); box-shadow:var(--shadow-4); -webkit-backdrop-filter:blur(18px) saturate(1.3); backdrop-filter:blur(18px) saturate(1.3); }
#srCard:not(.coll-theme) .sr-card-accent { background:var(--primary); height:3px; }
.sr-card-meta { font-size:12px; font-weight:600; color:var(--on-surface-2); }
.sr-card-title { font-family:var(--font-display); font-weight:700; letter-spacing:-.015em; }
.sr-card-artist { font-size:14px; font-weight:600; color:var(--primary); }
.sr-card-blurb { font-family:var(--font-body); font-size:14px; line-height:1.55; color:var(--on-surface-2); }
.sr-card-actions { gap:8px; }
.sr-card-actions button { border-radius:var(--r-pill); font-size:14px; font-weight:600; padding:10px 16px; }
.sr-act-primary { background:var(--primary); color:var(--on-primary); border:1px solid transparent; }
.sr-act-primary:hover { background:var(--primary-strong); color:var(--on-primary); }
.sr-act-ghost { background:rgba(255,255,255,.08); color:var(--on-surface); border:var(--bw) solid var(--outline-strong); }
.sr-act-ghost:hover { background:rgba(255,255,255,.16); color:var(--on-surface); border-color:var(--outline-strong); }
.sr-loader { font-family:var(--font-ui); font-size:14px; font-weight:500; color:var(--on-surface-2); }
.srs-meta { font-size:12.5px; font-weight:600; color:var(--on-surface-2); }
.srs-title { font-family:var(--font-display); font-weight:700; letter-spacing:-.015em; }
.srs-card:not(.coll-theme) .srs-rule { width:40px; height:3px; border-radius:2px; background:var(--primary); }
.srs-artist { font-size:14px; font-weight:600; color:var(--primary); }
.srs-blurb { font-family:var(--font-body); }
.srs-actions button { border-radius:var(--r-pill); font-size:14px; font-weight:600; }
.srs-primary { background:var(--primary); color:var(--on-primary); border:1px solid transparent; }
.srs-primary:hover, .srs-primary:active { background:var(--primary-strong); color:var(--on-primary); }
.srs-ghost { background:rgba(255,255,255,.08); color:var(--on-surface); border:var(--bw) solid var(--outline-strong); }
.srs-ghost:hover, .srs-ghost:active { background:rgba(255,255,255,.16); color:var(--on-surface); }
.srs-badge { font-family:var(--font-ui); font-size:12px; font-weight:700; border-radius:var(--r-pill); }
.srs-scrim { background:linear-gradient(0deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.72) 30%, rgba(8,9,11,.18) 62%, rgba(8,9,11,.34) 100%); }
.sr-top { padding-top:max(14px, env(safe-area-inset-top)); background:linear-gradient(180deg, rgba(8,9,11,.66), rgba(8,9,11,0)); }
@media (max-width:560px){
  /* phones: brand on its own row, the control pills wrap underneath (no overflow container — the dropdowns must not be clipped) */
  .sr-top { flex-direction:column; align-items:stretch; gap:10px; padding:max(10px, env(safe-area-inset-top)) 12px 16px; }
  .sr-brand { min-height:40px; }
  .sr-brand img { width:30px; height:30px; }
  .sr-name { font-size:16px; letter-spacing:-.005em; }
  .sr-sub { font-size:12px; letter-spacing:0; margin-top:2px; }
  .sr-top-right { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:flex-start; max-width:none; gap:8px; }
  .sr-env-btn { font-size:13px; padding:7px 12px; letter-spacing:0; }
  .sr-count { font-size:12px; padding:6px 10px; letter-spacing:0; }
  body.has-back.sr-mode #backBtn { width:40px; padding:0; justify-content:center; top:max(10px, env(safe-area-inset-top)); left:12px; }
  body.has-back.sr-mode #backBtn > span:not(.bk-ico) { display:none; }
  body.has-back.sr-mode .sr-brand { margin-left:50px; }
  .srs-badge { top:calc(env(safe-area-inset-top) + 124px); }
}

/* =====================================================================================================
   IMMERSIVE (Street View / Matterport / video embeds)
   ===================================================================================================== */
#immersive { background:#000; }
#immersive .loading { color:var(--on-surface-2); font-family:var(--font-ui); }
#immersive .loading span { font-size:14px; font-weight:500; letter-spacing:0; text-transform:none; }
.immersive-close { width:44px; height:44px; border-radius:50%; background:var(--surface-glass); border:var(--bw) solid var(--outline); color:var(--on-surface); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.immersive-close:hover { background:rgba(40,42,48,.9); color:var(--on-surface); }
.credit-plate { background:var(--surface-glass); border:var(--bw) solid var(--outline); border-radius:var(--r-lg); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:var(--shadow-3); }
.credit-plate .cp-title { font-family:var(--font-display); font-weight:700; font-size:17px; letter-spacing:-.005em; }
.credit-plate .cp-meta { font-size:12.5px; font-weight:500; color:var(--on-surface-2); }
.credit-plate .cp-links a { color:var(--primary); }
#immersiveHint { font-family:var(--font-ui); font-size:13px; font-weight:600; background:var(--surface-glass); border:var(--bw) solid var(--outline); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
#portal { background:var(--surface-glass); border:var(--bw) solid var(--outline); }
.portal-label { font-size:13px; font-weight:600; }
.portal-ring { background:radial-gradient(circle at 50% 44%, rgb(var(--primary-rgb) / .35), rgba(14,15,18,.5) 70%); }

/* ---------- 360° viewer (#v360, built by view360Sphere) ---------- */
#v360 { background:#000; color:var(--on-surface); font-family:var(--font-ui); }
#v360 .v360-host { position:absolute; inset:0; }
#v360 .v360-top { position:absolute; top:0; left:0; right:0; z-index:6; display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:max(12px, env(safe-area-inset-top)) clamp(12px,3vw,24px) 28px; pointer-events:none; background:linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,0)); }
#v360 .v360-title { font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:-.005em; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.5); max-width:72%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#v360 .v360-x, #v360 .v360-nav { pointer-events:auto; width:44px; height:44px; flex:none; border-radius:50%; background:var(--surface-glass); border:var(--bw) solid var(--outline); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
#v360 .v360-x:hover, #v360 .v360-nav:hover, #v360 .v360-btn:hover { background:rgba(44,46,52,.9); }
#v360 .v360-nav { display:none; position:absolute; top:50%; transform:translateY(-50%); z-index:7; font-size:28px; line-height:1; padding-bottom:3px; }
#v360 .v360-prev { left:max(8px, env(safe-area-inset-left)); }
#v360 .v360-next { right:max(8px, env(safe-area-inset-right)); }
#v360 .v360-swl, #v360 .v360-swr { display:none; position:absolute; top:76px; bottom:112px; width:16%; max-width:120px; z-index:5; }
#v360 .v360-swl { left:0; } #v360 .v360-swr { right:0; }
#v360 .v360-count { display:none; position:absolute; top:calc(max(12px, env(safe-area-inset-top)) + 54px); left:50%; transform:translateX(-50%); z-index:7; font-size:13px; font-weight:600; color:#fff;
  background:var(--surface-glass); border:var(--bw) solid var(--outline); border-radius:var(--r-pill); padding:5px 12px; pointer-events:none; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
#v360 .v360-loading { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--on-surface-2); font-size:14px; font-weight:500; pointer-events:none; z-index:4; }
#v360 .v360-ctrls { position:absolute; bottom:calc(env(safe-area-inset-bottom,0px) + 20px); left:50%; transform:translateX(-50%); z-index:6; display:flex; gap:10px; align-items:center; max-width:calc(100vw - 24px); }
#v360 .v360-btn { display:none; align-items:center; justify-content:center; gap:7px; height:44px; border-radius:var(--r-pill); background:var(--surface-glass); border:var(--bw) solid var(--outline); color:#fff;
  font-family:var(--font-ui); font-size:14px; font-weight:600; cursor:pointer; -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); white-space:nowrap; }
#v360 .v360-play { width:48px; height:48px; border-radius:50%; font-size:16px; }
#v360 .v360-pill { padding:0 16px; }
#v360 .v360-btn.on { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
#v360 .v360-hint { position:absolute; bottom:calc(env(safe-area-inset-bottom,0px) + 82px); left:50%; transform:translateX(-50%); z-index:5; pointer-events:none; font-size:13px; font-weight:600; color:#fff;
  background:var(--surface-glass); border:var(--bw) solid var(--outline); border-radius:var(--r-pill); padding:7px 14px; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); white-space:nowrap; transition:opacity .5s; }

#v360 .v360-cover { position:absolute; inset:-6%; background:#000 center/cover no-repeat; filter:blur(26px) brightness(.55) saturate(1.1); transform:scale(1.08); transition:opacity .6s ease; pointer-events:none; }   /* instant backdrop: the cover you tapped, blurred, until the pano's first frame */
#v360 .v360-cover.out { opacity:0; }
#v360 .v360-host canvas { position:relative; z-index:1; }

/* ---------- Flyover pill (built by flyoverPill) ---------- */
#flyoverPill { position:absolute; top:calc(max(16px, env(safe-area-inset-top)) + 64px); left:50%; transform:translateX(-50%) translateY(-8px); z-index:38; display:none; align-items:center; gap:10px;
  padding:6px 6px 6px 14px; border-radius:var(--r-pill); background:var(--surface-glass); border:var(--bw) solid var(--outline); color:var(--on-surface); font-family:var(--font-ui); font-size:13px; font-weight:600;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:var(--shadow-2); opacity:0; transition:opacity .3s, transform .3s; white-space:nowrap; max-width:calc(100% - 24px); }
#flyoverPill.show { display:flex; opacity:1; transform:translateX(-50%) translateY(0); }
#flyoverPill .fo-t { overflow:hidden; text-overflow:ellipsis; }
#flyoverPill .fo-dot { width:8px; height:8px; flex:none; border-radius:50%; background:var(--primary); animation:foPulse 1.4s ease-in-out infinite; }
#flyoverPill .fo-x { width:30px; height:30px; flex:none; border-radius:50%; border:0; background:transparent; color:inherit; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
#flyoverPill .fo-x:hover { background:var(--surface-2); }
@keyframes foPulse { 0%,100%{ opacity:.4; transform:scale(.8); } 50%{ opacity:1; transform:scale(1); } }
body.flyover-on #hudFlyover { background:var(--primary-container); color:var(--on-primary-container); }
/* ---------- camera-angle slider (the HUD "gimbal") ---------- */
#map3dHud { position:absolute; }
#hudTiltPanel { position:absolute; right:calc(100% + 10px); bottom:54px; display:flex; align-items:center; gap:10px; padding:8px 12px 8px 14px; border-radius:var(--r-pill);
  background:var(--surface-glass); border:var(--bw) solid var(--outline); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:var(--shadow-2);
  color:var(--on-surface); font-family:var(--font-ui); font-size:12px; font-weight:600; white-space:nowrap; z-index:2; }
#hudTiltPanel[hidden] { display:none; }
#hudTiltPanel label { color:var(--on-surface-2); }
#hudTiltRange { width:150px; margin:0; accent-color:var(--primary); cursor:pointer; touch-action:none; }
#hudTiltVal { min-width:32px; text-align:right; font-variant-numeric:tabular-nums; }
#hudTilt.on { background:var(--primary-container); color:var(--on-primary-container); }
@media (max-width:560px){ #hudTiltRange { width:116px; } #hudTiltPanel { bottom:auto; top:0; } }

/* ---------- Through the years (time slider + wall layer strip) ---------- */
#hudTimePanel { position:absolute; right:calc(100% + 10px); bottom:10px; display:flex; align-items:center; gap:10px; padding:8px 12px 8px 14px; border-radius:var(--r-pill);
  background:var(--surface-glass); border:var(--bw) solid var(--outline); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:var(--shadow-2);
  color:var(--on-surface); font-family:var(--font-ui); font-size:12px; font-weight:600; white-space:nowrap; z-index:2; }
#hudTimePanel[hidden] { display:none; }
#hudTimePanel label { color:var(--on-surface-2); }
#hudTimeRange { width:150px; margin:0; accent-color:var(--primary); cursor:pointer; touch-action:none; }
#hudTimeVal { min-width:32px; text-align:right; font-variant-numeric:tabular-nums; }
#hudTime.on { background:var(--primary-container); color:var(--on-primary-container); }
@media (max-width:560px){ #hudTimeRange { width:116px; } #hudTimePanel { bottom:auto; top:0; } }
#hudTime[hidden] { display:none !important; }
#hudTimeNow { border:var(--bw) solid var(--outline); background:var(--surface); color:var(--on-surface); border-radius:var(--r-pill); padding:4px 10px; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
#hudTimeVal { min-width:44px; }
#timePill { position:absolute; top:calc(max(16px, env(safe-area-inset-top)) + 112px); left:50%; transform:translateX(-50%) translateY(-8px); z-index:38; display:none; align-items:center; gap:10px;
  padding:6px 6px 6px 14px; border-radius:var(--r-pill); background:var(--surface-glass); border:var(--bw) solid var(--outline); color:var(--on-surface); font-family:var(--font-ui); font-size:13px; font-weight:600;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:var(--shadow-2); opacity:0; transition:opacity .3s, transform .3s; white-space:nowrap; max-width:calc(100% - 24px); }
#timePill.show { display:flex; opacity:1; transform:translateX(-50%) translateY(0); }
#timePill .fo-t { overflow:hidden; text-overflow:ellipsis; }
#timePill .fo-dot { width:8px; height:8px; flex:none; border-radius:50%; background:var(--primary); animation:foPulse 1.4s ease-in-out infinite; }
#timePill .fo-x { width:30px; height:30px; flex:none; border-radius:50%; border:0; background:transparent; color:inherit; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
#timePill .fo-dot { animation:none; background:var(--secondary, var(--primary)); }
.mp-pop-years { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:2px 0 10px; }
.mp-pop-years .mp-pop-years-lbl { font-size:10px; letter-spacing:.08em; text-transform:uppercase; opacity:.7; margin-right:2px; }
.mp-pop-years button { border:var(--bw) solid var(--outline); background:var(--surface-2, var(--surface)); color:var(--on-surface); border-radius:var(--r-pill); padding:3px 9px; font:inherit; font-size:12px; font-weight:600; cursor:pointer; line-height:1.3; }
.mp-pop-years button.on { background:var(--primary); color:var(--on-primary, #fff); border-color:var(--primary); }
#tpYears .mp-pop-years { margin:8px 0 0; }
#tpYears:empty { display:none; }
/* ---------- Google Maps hand-off sheet (mmGmapsHandoff) + Art Walk share row ---------- */
#gmSheet { position:fixed; inset:0; z-index:1050; display:none; align-items:flex-end; justify-content:center; background:rgba(0,0,0,.45); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); padding:12px; }
#gmSheet.show { display:flex; }
#gmSheet .gm-card { width:min(560px,100%); max-height:calc(100vh - 24px); overflow:auto; background:var(--surface); color:var(--on-surface); border:var(--bw) solid var(--outline); border-radius:22px; padding:16px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow:var(--shadow-2); font-family:var(--font-ui); }
@media (min-width:700px){ #gmSheet { align-items:center; } }
#gmSheet .gm-head { display:flex; align-items:flex-start; gap:10px; margin-bottom:12px; }
#gmSheet .gm-head > div { flex:1; min-width:0; }
#gmSheet .gm-eyebrow { font-size:11px; letter-spacing:.08em; text-transform:uppercase; opacity:.7; }
#gmSheet .gm-title { font-size:18px; font-weight:700; line-height:1.2; }
#gmSheet .gm-sub { font-size:13px; opacity:.8; margin-top:2px; }
#gmSheet .gm-x { width:36px; height:36px; flex:none; border-radius:50%; border:var(--bw) solid var(--outline); background:transparent; color:inherit; font-size:16px; cursor:pointer; }
#gmSheet .gm-opt { display:flex; align-items:center; gap:12px; padding:12px 14px; margin:6px 0; border-radius:14px; border:var(--bw) solid var(--outline); background:var(--surface-2, var(--surface)); color:inherit; text-decoration:none; }
#gmSheet .gm-opt .ic { width:22px; height:22px; flex:none; }
#gmSheet .gm-opt span { display:flex; flex-direction:column; min-width:0; }
#gmSheet .gm-opt b { font-size:15px; } #gmSheet .gm-opt small { font-size:12px; opacity:.75; }
#gmSheet .gm-opt.gm-primary { background:var(--primary); color:var(--on-primary,#fff); border-color:var(--primary); }
#gmSheet .gm-row { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 4px; }
#gmSheet .gm-mini { display:inline-flex; align-items:center; gap:6px; padding:9px 12px; border-radius:var(--r-pill); border:var(--bw) solid var(--outline); background:transparent; color:inherit; font:600 13px var(--font-ui); cursor:pointer; }
#gmSheet .gm-mini .ic { width:16px; height:16px; }
#gmSheet .gm-qr { display:flex; align-items:center; gap:14px; margin:12px 0 4px; padding:10px; border-radius:14px; border:var(--bw) dashed var(--outline); }
#gmSheet .gm-qr svg { flex:none; border-radius:8px; }
#gmSheet .gm-qr-t { display:flex; flex-direction:column; gap:3px; } #gmSheet .gm-qr-t b { font-size:14px; } #gmSheet .gm-qr-t small { font-size:12px; opacity:.8; line-height:1.4; }
#gmSheet .gm-note { font-size:12px; opacity:.75; line-height:1.45; margin-top:10px; }
#gmSheet .gm-note a { color:inherit; }
.walk-share-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px; }
.walk-share-note { flex-basis:100%; font-size:11.5px; line-height:1.4; color:var(--stone); }
#walkBar .wb-btn .ic { width:16px; height:16px; }
#walkBar .wb-save { background:var(--gold); color:var(--ink); }

/* ---------- Virtual Walk (a Street View stroll of an Art Walk — see mmVWalk) ---------- */
#vwalk { position:fixed; inset:0; z-index:190; background:#000; }   /* under #immersive (200): "Step inside 360°" opens the three.js viewer on top and returns here */
#vwalk[hidden] { display:none; }
#vwPano { position:absolute; inset:0; z-index:0; }
#vwalk .vw-top, #vwalk .vw-status, #vwalk .vw-bar { z-index:5; }   /* above the panorama's own layers (they carry z-indexes) */
#vwalk .vw-top { position:absolute; top:calc(max(12px, env(safe-area-inset-top)) + 6px); left:12px; right:12px; display:flex; align-items:flex-start; gap:10px; pointer-events:none; }
#vwalk .vw-top > * { pointer-events:auto; }
#vwalk .vw-x { width:40px; height:40px; flex:none; border-radius:50%; border:var(--bw) solid var(--outline); background:var(--surface-glass); color:var(--on-surface); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); font-size:18px; cursor:pointer; }
#vwalk .vw-title { padding:8px 14px; border-radius:16px; background:var(--surface-glass); border:var(--bw) solid var(--outline); color:var(--on-surface); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); max-width:min(520px, calc(100vw - 80px)); font-family:var(--font-ui); }
#vwalk .vw-stop { font-size:11px; letter-spacing:.08em; text-transform:uppercase; opacity:.75; }
#vwalk .vw-name { font-size:16px; font-weight:700; line-height:1.2; }
#vwalk .vw-sub { font-size:12px; opacity:.8; margin-top:2px; }
#vwalk .vw-status { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); padding:8px 14px; border-radius:var(--r-pill); background:rgba(0,0,0,.55); color:#fff; font:600 13px/1.2 var(--font-ui); opacity:0; transition:opacity .25s; pointer-events:none; white-space:nowrap; }
#vwalk .vw-status.show { opacity:1; }
#vwalk .vw-bar { position:absolute; left:50%; bottom:calc(max(14px, env(safe-area-inset-bottom)) + 30px); transform:translateX(-50%); display:flex; align-items:center; gap:8px; padding:8px; border-radius:var(--r-pill); background:var(--surface-glass); border:var(--bw) solid var(--outline); color:var(--on-surface); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); max-width:calc(100vw - 20px); flex-wrap:wrap; justify-content:center; }
#vwalk .vw-bar button { display:inline-flex; align-items:center; gap:6px; height:40px; min-width:40px; padding:0 12px; border-radius:var(--r-pill); border:var(--bw) solid var(--outline); background:transparent; color:inherit; font:600 13px var(--font-ui); cursor:pointer; -webkit-tap-highlight-color:transparent; }
#vwalk .vw-bar button .ic { width:18px; height:18px; }
#vwalk .vw-bar #vwPlay { background:var(--primary); color:var(--on-primary,#fff); border-color:var(--primary); }
#vwalk .vw-bar #vwPrev, #vwalk .vw-bar #vwNext { font-size:22px; padding:0 10px; }
#vwalk .vw-dots { display:flex; gap:5px; padding:0 6px; flex-basis:100%; justify-content:center; flex-wrap:wrap; }
#vwalk .vw-dots button { width:10px; min-width:10px; height:10px; padding:0; border-radius:50%; background:transparent; opacity:.6; }
#vwalk .vw-dots button.on { background:var(--primary); border-color:var(--primary); opacity:1; }
#vwalk .vw-dots button.done { background:var(--on-surface); opacity:.4; }
body.vwalk-open #map3d, body.vwalk-open #gmap { visibility:hidden !important; }   /* same iOS compositing guard as the 360° viewer */
.wb-btn .ic { width:16px; height:16px; vertical-align:-3px; }
@media (max-width:560px){ #vwalk .vw-bar #vwPlay span { display:none; } #vwalk .vw-bar #vwLook span, #vwalk .vw-bar #vwInside span { font-size:12px; } }

/* phones: the camera stack now stays up while a pin's bottom sheet is open — ride above the sheet instead of under it */
@media (max-width:768px){ body.pin-open #map3dHud { top:auto; bottom:calc(var(--mm-sheet-gap, 0px) + 122px); gap:6px; transition:bottom .25s ease; } body.pin-open #map3dHud button { width:34px; height:34px; } body.pin-open #map3dHud button svg { width:17px; height:17px; } }   /* +122px: clear the POV pill + locate button, which also ride above the sheet */
body.flyover-on #map3dHint { opacity:0; visibility:hidden; }
@media (prefers-reduced-motion: reduce){ #flyoverPill .fo-dot { animation:none; } }

/* =====================================================================================================
   COLLECTIONS (profile) — light page
   ===================================================================================================== */
#profile-view { background:var(--bg); }
#profile-view::-webkit-scrollbar-thumb { background:var(--outline-strong); }
.profile-inner { padding-top:calc(max(10px, env(safe-area-inset-top)) + 76px); }
.p-avatar { border:var(--bw) solid var(--outline); background:var(--surface); box-shadow:var(--shadow-1); }
.p-avatar::before { border-color:var(--outline); opacity:.6; }
.p-name { font-family:var(--font-display); font-weight:700; font-size:clamp(32px,6vw,48px); letter-spacing:-.02em; }
.p-arrow { width:40px; height:40px; background:var(--surface); border:var(--bw) solid var(--outline); color:var(--on-surface-2); font-family:var(--font-ui); font-size:24px; box-shadow:var(--shadow-1); }
.p-arrow:hover { background:var(--surface-2); color:var(--on-surface); transform:none; }
.p-av-text { font-family:var(--font-display); color:var(--primary); }
.p-handle { font-size:14px; font-weight:600; color:var(--primary); }
.p-tagline { font-family:var(--font-ui); font-style:normal; font-size:16px; font-weight:500; color:var(--on-surface-2); }
.p-bio { font-family:var(--font-body); font-size:16px; line-height:1.6; color:var(--on-surface); }
.p-links a { font-size:14px; font-weight:600; color:var(--on-surface); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill); background:var(--surface); text-transform:none; letter-spacing:0; }
.p-links a:hover { background:var(--surface-2); color:var(--on-surface); }
.p-stats { gap:12px; }
.p-stat { background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--shadow-1); padding:14px 18px; min-width:104px; }
.p-stat .num { font-family:var(--font-display); font-weight:700; font-size:clamp(24px,4vw,30px); color:var(--on-surface); }
.p-stat .lbl { font-size:12.5px; font-weight:500; color:var(--on-surface-2); }
.sponsor-panel { background:var(--surface); border:var(--bw) solid var(--outline); border-radius:var(--r-xl); box-shadow:var(--shadow-1); }
.sponsor-panel .eb { font-size:12.5px; font-weight:600; color:var(--primary); }
.sponsor-panel h3 { font-family:var(--font-display); font-weight:700; letter-spacing:-.01em; }
.sponsor-panel p { font-family:var(--font-body); color:var(--on-surface-2); opacity:1; }
.sponsor-roles button.chip, .sponsor-roles a.chip { cursor:pointer; text-decoration:none; font:inherit; font-size:13px; font-weight:600; line-height:1.2; }   /* the "This month" event panel's actionable chips */
.sponsor-roles .chip { border-radius:var(--r-pill); border:var(--bw) solid var(--outline); background:var(--surface-2); color:var(--on-surface); text-transform:none; letter-spacing:0; font-size:13px; font-weight:600; }
.gallery-head h2 { font-family:var(--font-display); font-weight:700; font-size:clamp(22px,3vw,28px); letter-spacing:-.01em; }
.gallery-head .cnt { font-size:13px; font-weight:500; color:var(--on-surface-2); }
.g-card { border:none; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-1); background:var(--surface-3); }
.g-card:hover { box-shadow:var(--shadow-3); }
.g-card .g-overlay { background:linear-gradient(0deg, rgba(8,9,11,.82) 0%, rgba(8,9,11,.18) 52%, rgba(8,9,11,0) 72%); }
.g-card .g-title { font-family:var(--font-display); font-weight:700; font-size:19px; letter-spacing:-.01em; color:#fff; }
.g-card .g-loc { font-size:12.5px; font-weight:500; color:rgba(255,255,255,.82); }
.g-card .g-360 { font-family:var(--font-ui); font-size:11px; font-weight:700; color:#fff; background:rgba(15,17,20,.66); border:none; border-radius:var(--r-pill); padding:3px 9px;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.g-card .g-360.dual { background:var(--primary); color:var(--on-primary); }
.g-card .g-360.soon { color:rgba(255,255,255,.75); }
.import-md { border-radius:var(--r-pill); font-family:var(--font-ui); text-transform:none; letter-spacing:0; font-size:13px; font-weight:600; }
.p-commission { font-family:var(--font-ui); }
.support-card { background:var(--surface); border:var(--bw) solid var(--outline); border-radius:var(--r-xl); box-shadow:var(--shadow-1); }
.support-card .sp-eb { font-size:12.5px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--primary); }
.support-card h3 { font-family:var(--font-display); font-weight:700; letter-spacing:-.01em; }
.support-card p { color:var(--on-surface-2); }

/* =====================================================================================================
   DIALOGS, SHEETS, FORMS
   ===================================================================================================== */
.overlay, #optPanel, #walkPanel { background:var(--scrim); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.card, .form-card { width:100%; max-width:620px; background:var(--surface); color:var(--on-surface); border:none; border-radius:var(--r-xl); box-shadow:var(--shadow-4);
  padding:clamp(20px,4vw,32px); }
.form-card.opt-card { max-width:560px; } .form-card.walk-card { max-width:600px; }
.card.wide { max-width:700px; }
.card h2, .form-card h2 { font-family:var(--font-display); font-weight:700; font-size:clamp(22px,3.4vw,26px); letter-spacing:-.015em; color:var(--on-surface); }
.card .sub, .form-card .sub { font-family:var(--font-body); color:var(--on-surface-2); font-size:14px; line-height:1.55; margin:6px 0 20px; }
.form-rule { background:var(--outline); opacity:1; margin:0 0 20px; }
.field { margin-bottom:18px; }
.field label { font-size:13px; font-weight:600; color:var(--on-surface); margin-bottom:7px; }
.field .hint { font-size:12.5px; color:var(--on-surface-2); letter-spacing:0; line-height:1.45; }
.field input[type=text], .field input[type=url], .field textarea, .field select, .opt-row select, .imp-text, .share-link-box input, #walkPanel .opt-row input[type="text"],
.mm-lead .aiv-field input, .mm-lead .aiv-field textarea, .mm-lead .aiv-field select, .auth-field input {
  background:var(--surface-2); border:1px solid transparent; border-radius:var(--r-sm); color:var(--on-surface); font-family:var(--font-body);
  font-size:16px;  /* ≥16px stops iOS Safari from zooming the page on focus */ padding:12px 14px; transition:border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus, .opt-row select:focus, .imp-text:focus, #walkPanel .opt-row input[type="text"]:focus,
.mm-lead .aiv-field input:focus, .mm-lead .aiv-field textarea:focus, .mm-lead .aiv-field select:focus, .auth-field input:focus {
  outline:none; border-color:var(--primary); background:var(--surface); box-shadow:0 0 0 3px rgb(var(--primary-rgb) / .16); }
.field input::placeholder, .field textarea::placeholder { color:var(--on-surface-3); }
.field select { background-image:linear-gradient(45deg,transparent 50%,var(--on-surface-2) 50%),linear-gradient(135deg,var(--on-surface-2) 50%,transparent 50%); }
.field select option, .mm-lead .aiv-field option { background:var(--surface); color:var(--on-surface); }
.photo-zone { border:1.5px dashed var(--outline-strong); border-radius:var(--r-md); color:var(--on-surface-2); background:var(--surface-2); }
.photo-zone:hover { border-color:var(--primary); background:rgb(var(--primary-rgb) / .05); }
.photo-zone .pz-main { color:var(--on-surface); font-weight:600; }
.photo-remove { background:var(--surface); border:var(--bw) solid var(--outline); color:var(--on-surface-2); }
.link-row .lr-del { border:var(--bw) solid var(--outline-strong); border-radius:var(--r-sm); color:var(--on-surface-2); }
.add-link { color:var(--primary); font-size:14px; font-weight:600; }
.form-actions { margin-top:24px; }
.form-actions .right { gap:8px; }
.btn-delete { border:1px solid rgb(194 65 47 / .5); color:var(--error); border-radius:var(--r-pill); padding:10px 18px; font-size:14px; font-weight:600; }
.btn-delete:hover { background:var(--error); color:#fff; }
.plate-ctrl-label, .opt-row > label { font-size:13px; font-weight:600; color:var(--on-surface); }
.pill { background:transparent; border:var(--bw) solid var(--outline-strong); color:var(--on-surface); border-radius:var(--r-pill); padding:7px 14px; font-size:14px; font-weight:600; }
.pill:hover { background:var(--surface-2); color:var(--on-surface); border-color:var(--outline-strong); }
.pill.on { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
.plate-preview canvas { border:var(--bw) solid var(--outline); border-radius:var(--r-md); box-shadow:var(--shadow-3); }
.opt-order .oo { background:var(--surface-2); border:var(--bw) solid var(--outline); border-radius:var(--r-pill); }
.opt-order .oa { color:var(--on-surface-3); }
.opt-dist { font-size:14px; font-weight:600; color:var(--primary); letter-spacing:0; }
.imp-drop { border:1.5px dashed var(--outline-strong); border-radius:var(--r-md); background:var(--surface-2); }
.imp-drop:hover, .imp-drop.drag { border-color:var(--primary); background:rgb(var(--primary-rgb) / .05); }
.imp-ic { color:var(--primary); }
.imp-drop-in b { font-family:var(--font-display); font-weight:700; font-size:16px; }
.imp-preset { border-radius:var(--r-pill); border:var(--bw) solid var(--outline-strong); color:var(--primary); font-size:14px; font-weight:600; letter-spacing:0; }
.imp-preset:hover { background:rgb(var(--primary-rgb) / .08); color:var(--primary); }
.imp-status { color:var(--primary); font-size:13px; }
.imp-lbl { font-size:13px; font-weight:600; color:var(--on-surface); }
.imp-res { background:var(--surface-2); border:var(--bw) solid var(--outline); border-radius:var(--r-md); }
.imp-res .ir-dot { background:var(--primary); box-shadow:none; }
/* art walk builder */
.walk-trail-head > label, .walk-section-lbl, .walk-saved-lbl { font-size:13px; font-weight:600; color:var(--on-surface); }
.walk-count, .walk-radius-note { color:var(--on-surface-2); font-size:13px; font-weight:500; letter-spacing:0; }
.walk-mini { border:var(--bw) solid var(--outline-strong); color:var(--primary); border-radius:var(--r-pill); padding:7px 12px; font-size:13px; font-weight:600; }
.walk-mini:hover { background:rgb(var(--primary-rgb) / .08); color:var(--primary); }
.walk-stop { background:var(--surface-2); border:var(--bw) solid var(--outline); border-radius:var(--r-md); }
.walk-stop .ws-num { background:var(--primary); color:var(--on-primary); }
.walk-stop .ws-name { color:var(--on-surface); font-size:14.5px; font-weight:600; }
.walk-stop .ws-coll { font-size:12px; color:var(--on-surface-2); }
.walk-stop .ws-btn { border:var(--bw) solid var(--outline-strong); border-radius:var(--r-sm); color:var(--on-surface-2); background:var(--surface); }
.walk-stop .ws-btn:hover { background:var(--surface-3); color:var(--on-surface); }
.walk-pgroup { font-size:12px; font-weight:600; color:var(--on-surface-2); }
.walk-opt { border-bottom:var(--bw) solid var(--outline); color:var(--on-surface); font-family:var(--font-ui); }
.walk-opt .wp-check { border:1.5px solid var(--outline-strong); border-radius:5px; color:var(--on-primary); }
.walk-opt.sel .wp-check { background:var(--primary); border-color:var(--primary); }
.walk-opt.sel .wp-name { color:var(--on-surface); font-weight:600; }
.walk-saved-row { background:var(--surface-2); border:var(--bw) solid var(--outline); border-radius:var(--r-md); }
.walk-saved-row .wsv-name { color:var(--on-surface); font-weight:600; }
.walk-saved-row .wsv-meta { font-size:12px; color:var(--on-surface-2); }
.walk-saved-row .wsv-btn { border:var(--bw) solid var(--outline-strong); color:var(--primary); font-size:13px; font-weight:600; }
.walk-saved-row .wsv-btn:hover { background:rgb(var(--primary-rgb) / .08); color:var(--primary); }
/* collection theme controls (edit profile) */
.theme-swatch { font-size:12px; font-weight:600; color:var(--on-surface-2); }
.theme-swatch input[type=color] { border:var(--bw) solid var(--outline-strong); border-radius:var(--r-sm); }
.theme-preset { border:var(--bw) solid var(--outline-strong); }

/* lead / support / commission dialogs */
.mm-lead { background:var(--scrim); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.mm-lead .aiv-card { background:var(--surface); border:none; border-radius:var(--r-xl); box-shadow:var(--shadow-4); padding:26px 22px 22px; }
.mm-lead .aiv-close, .auth-close { width:36px; height:36px; border:none; background:var(--surface-2); color:var(--on-surface-2); font-size:14px; }
.mm-lead .aiv-close:hover, .auth-close:hover { background:var(--surface-3); color:var(--on-surface); }
.mm-lead .aiv-eyebrow { font-size:13px; font-weight:600; color:var(--primary); }
.mm-lead .aiv-title { font-family:var(--font-display); font-weight:700; font-size:24px; letter-spacing:-.015em; color:var(--on-surface); }
.mm-lead .aiv-title em { color:var(--primary); font-style:normal; }
.mm-lead .aiv-sub { font-family:var(--font-body); font-size:14px; color:var(--on-surface-2); }
.mm-lead .aiv-field span { font-size:13px; font-weight:600; color:var(--on-surface); }
.mm-lead .aiv-submit { border:none; border-radius:var(--r-pill); background:var(--primary); color:var(--on-primary); font-size:15px; font-weight:700; padding:13px 18px; }
.mm-lead .aiv-submit:hover { background:var(--primary-strong); }
.mm-lead .aiv-formmsg.ok { color:var(--success); }
#aivLead .aiv-learn { color:var(--primary); }
.sp-link { border:var(--bw) solid var(--outline); border-radius:var(--r-md); background:var(--surface); }
.sp-link:hover { border-color:var(--outline-strong); background:var(--surface-2); }
.sp-link .sp-lbl { color:var(--on-surface); font-family:var(--font-ui); }
.sp-link .sp-sub { color:var(--on-surface-2); }
.sp-link .sp-go { color:var(--on-surface-2); }
.sp-link.sp-primary { background:var(--primary); border-color:transparent; }
.sp-link.sp-primary:hover { background:var(--primary-strong); }
.sp-link.sp-primary .sp-lbl, .sp-link.sp-primary .sp-go, .sp-link.sp-primary .sp-ic { color:var(--on-primary); }
.sp-link.sp-primary .sp-sub { color:rgb(255 255 255 / .8); }
.sp-foot { color:var(--on-surface-2); }

/* consent */
#consent { background:var(--scrim); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.consent-card { background:var(--surface); border:none; border-radius:var(--r-xl); box-shadow:var(--shadow-4); }
.consent-card h2 { font-family:var(--font-display); font-weight:700; font-size:22px; letter-spacing:-.015em; color:var(--on-surface); }
.consent-card p { font-family:var(--font-body); font-size:14.5px; color:var(--on-surface); opacity:1; }
.consent-full { font-family:var(--font-body); font-size:12.5px; color:var(--on-surface-2); background:var(--surface-2); border:none; border-radius:var(--r-md); opacity:1; }
.consent-primary { background:var(--primary); color:var(--on-primary); border-radius:var(--r-pill); font-size:15px; font-weight:700; padding:14px; }
.consent-ghost { background:transparent; color:var(--primary); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill); font-size:15px; font-weight:600; padding:12px; }

/* auth */
#authModal { background:var(--scrim); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.auth-card { background:var(--surface); border:none; border-radius:var(--r-xl); box-shadow:var(--shadow-4); color:var(--on-surface); }
.auth-card h2 { font-family:var(--font-display); font-weight:700; font-size:22px; color:var(--on-surface); }
.auth-card .auth-sub, .auth-note { color:var(--on-surface-2); }
.auth-google { background:var(--surface); color:var(--on-surface); border:var(--bw) solid var(--outline-strong); border-radius:var(--r-pill); font-size:15px; font-weight:600; }
.auth-google:hover { background:var(--surface-2); }
.auth-or { color:var(--on-surface-2); }
.auth-or::before, .auth-or::after { background:var(--outline); }
.auth-field span { font-size:13px; font-weight:600; color:var(--on-surface); }
.auth-submit { background:var(--primary); color:var(--on-primary); border:none; border-radius:var(--r-pill); font-size:15px; font-weight:700; }
.auth-submit:hover { background:var(--primary-strong); }
.auth-toggle { color:var(--on-surface-2); }
.auth-toggle button { color:var(--primary); font-weight:600; }
#acctMenu { background:var(--surface); border:none; border-radius:var(--r-md); box-shadow:var(--shadow-4); padding:6px 0; -webkit-backdrop-filter:none; backdrop-filter:none; min-width:240px; }
#acctMenu .am-id { padding:10px 16px 12px; border-bottom:var(--bw) solid var(--outline); }
#acctMenu .am-name { color:var(--on-surface); font-size:15px; }
#acctMenu .am-email { color:var(--on-surface-2); font-size:13px; }
#acctMenu .am-role { background:var(--primary-container); color:var(--on-primary-container); font-size:11px; letter-spacing:0; }
#acctMenu .am-item { border-radius:0; padding:11px 16px; color:var(--on-surface); font-size:15px; font-family:var(--font-ui); }
#acctMenu .am-item:hover { background:var(--surface-2); color:var(--on-surface); }

/* =====================================================================================================
   DIRECTIONS / TRAIL (second legacy block selectors)
   ===================================================================================================== */
#dirPanel { background:var(--surface); color:var(--on-surface); border:none; border-radius:var(--r-xl); box-shadow:var(--shadow-4); font-family:var(--font-ui); -webkit-backdrop-filter:none; backdrop-filter:none; }
.dir-to { color:var(--on-surface-2); }
.dir-name { font-family:var(--font-display); font-weight:700; color:var(--on-surface); }
.dir-meta { color:var(--on-surface-2); }
.dir-meta b { color:var(--primary); }
.dir-steps li { color:var(--on-surface); border-color:var(--outline); }
.dir-disclaimer { color:var(--on-surface-3); }
.dir-actions button { border-radius:var(--r-pill); font-family:var(--font-ui); text-transform:none; letter-spacing:0; font-weight:600; }
.dir-primary { background:var(--primary); color:var(--on-primary); border-color:transparent; }
.dir-ghost { background:transparent; color:var(--primary); border-color:var(--outline-strong); }
.dir-x { color:var(--on-surface-2); background:var(--surface-2); border:none; }
#trailPill { background:var(--surface); color:var(--on-surface); border:none; border-radius:var(--r-lg); box-shadow:var(--shadow-3); -webkit-backdrop-filter:none; backdrop-filter:none;
  top:calc(max(10px, env(safe-area-inset-top)) + 58px); }
#trailPill .tp-next { color:var(--on-surface); font-family:var(--font-ui); }
#trailPill .tp-dist { color:var(--primary); letter-spacing:0; }

/* =====================================================================================================
   MOTION PREFERENCES
   ===================================================================================================== */
@media (prefers-reduced-motion: reduce){
  .enter-cta:hover, .walk-cta:hover { transform:none; }
  .slide.active .cover img { transform:scale(1.04); }
  .portal-ring::before, .portal-ring::after, .sr-portal-ring { animation:none !important; }
  #tourPanel, .mp-pop, #map3dBar { transition:none !important; animation:none !important; }
}

/* =====================================================================================================
   UI VERSIONS — html[data-ui] = atlas (default, no attribute needed) | gallery | street
   Each version is a set of TOKENS (colour, type, shape, borders, shadows, case) plus a few component touches.
   Layouts are independent: html[data-layout] = bar (default) | dock | rail. Chosen in the "Look & layout" panel,
   saved per device (mm_ui_v1), applied pre-paint by the <head> snippet, shareable with ?ui=…&layout=….
   ===================================================================================================== */

/* ---------- GALLERY · black & gold (the classic Mural Map house style), always dark ---------- */
:root[data-ui="gallery"],
:root[data-ui="gallery"] :is(#feed-view, #ring-view, #showroom-view, #immersive, #v360, .mm-media),
:root[data-ui="gallery"] body.media-chrome :is(header, #nav, #backBtn) {
  color-scheme: dark;
  --bg:#0A0A0A; --surface:#121110; --surface-2:#1A1814; --surface-3:#25221C; --surface-glass:rgba(14,13,11,.9);
  --on-surface:#EFEAE0; --on-surface-2:#A8A296; --on-surface-3:#8A8578;
  --outline:rgba(212,165,61,.32); --outline-strong:rgba(212,165,61,.58);
  --primary:#D4A53D; --primary-strong:#F4E3B2; --on-primary:#0A0A0A;
  --primary-container:#D4A53D; --on-primary-container:#0A0A0A;
  --warm:#D4A53D; --success:#7FB27E; --error:#E0857A; --danger:#E0857A; --warning:#E2B65A;
  --inverse-surface:#F4E3B2; --on-inverse-surface:#0A0A0A;
  --scrim:rgba(0,0,0,.74);
  --primary-rgb:212 165 61; --surface-rgb:14 13 11; --on-surface-rgb:239 234 224; --on-surface-2-rgb:168 162 150; --outline-rgb:154 107 31;
  --shadow-1:0 1px 3px rgba(0,0,0,.6); --shadow-2:0 8px 22px rgba(0,0,0,.5); --shadow-3:0 14px 40px rgba(0,0,0,.55); --shadow-4:0 24px 70px rgba(0,0,0,.66);
  --r-xs:2px; --r-sm:3px; --r-md:4px; --r-lg:8px; --r-xl:12px; --r-pill:4px;
  --font-display:"Cormorant Garamond",Georgia,serif; --font-ui:"Inter",system-ui,-apple-system,sans-serif; --font-body:"Inter",system-ui,-apple-system,sans-serif;
  --btn-case:uppercase; --btn-track:.14em; --label-case:uppercase; --label-track:.18em;
  --display-weight:500; --display-track:0; --display-case:none;
  --icon-stroke:1.5; --bw:1px; --media-bg:#0A0A0A;
}
:root[data-ui="gallery"] body { background:#0A0A0A; }
:root[data-ui="gallery"] .wordmark { text-transform:uppercase; letter-spacing:.18em; font-weight:600; font-size:20px; }
:root[data-ui="gallery"] .tagline { color:var(--primary); font-size:9px; font-weight:600; letter-spacing:.32em; text-transform:uppercase; }
:root[data-ui="gallery"] .slide:not(.coll-theme) .title-rule, :root[data-ui="gallery"] .srs-card:not(.coll-theme) .srs-rule { width:64px; height:1px; border-radius:0; opacity:.85; }
:root[data-ui="gallery"] :is(.btn-gold, .btn-solid-gold, .enter-cta, .walk-cta, .tp-enter, .tp-acts button, .mp-pop-actions button, .pill, .mm-chip, .sr-env-btn, .sr-card-actions button, .srs-actions button, .consent-primary, .consent-ghost, .auth-submit, .aiv-submit) { font-size:12px; font-weight:600; }
:root[data-ui="gallery"] :is(.mm-searchbar, .mm-results, .mm-chip, #tourPanel, .mp-pop, #map3dBar, .pov-menu, #hudLocate, #povBtn, #map3dHud button, .card, .form-card, .consent-card, .auth-card, .mm-lead .aiv-card, #acctMenu, #dirPanel, #trailPill, #walkBar, .p-stat, .sponsor-panel, .support-card, .keycard, .map-list .ml-card, .tp-status, #backBtn, .mmsm-card) { border:1px solid var(--outline); }
:root[data-ui="gallery"] .walk-cta, :root[data-ui="gallery"] .links a { background:transparent; color:var(--primary); border-color:var(--outline-strong); }
:root[data-ui="gallery"] .enter-cta { background:transparent; color:var(--primary); border:1px solid var(--primary); box-shadow:none; }
:root[data-ui="gallery"] .enter-cta:hover { background:var(--primary); color:var(--on-primary); }
:root[data-ui="gallery"] .placard { background:radial-gradient(ellipse at 50% 34%, rgba(212,165,61,.12) 0%, rgba(10,10,10,0) 58%), #0A0A0A; }
:root[data-ui="gallery"] #hudLocate.on { color:#4D8DF0; }
:root[data-ui="gallery"] #toast { border:1px solid var(--primary); }

/* ---------- STREET · bold street-art energy: heavy grotesk, ink outlines, offset shadows (light + dark) ---------- */
:root[data-ui="street"] {
  color-scheme: light;
  --bg:#EFECE6; --surface:#FFFFFF; --surface-2:#F5F2EC; --surface-3:#E7E2D9; --surface-glass:rgba(255,255,255,.97);
  --on-surface:#111111; --on-surface-2:#3D3D3D; --on-surface-3:#575757;
  --outline:#111111; --outline-strong:#111111;
  --primary:#C2410C; --primary-strong:#9A3412; --on-primary:#FFFFFF;
  --primary-container:#FFD8C2; --on-primary-container:#4D1904;
  --warm:#E8A317; --success:#15803D; --error:#B91C1C; --danger:#B91C1C; --warning:#B45309;
  --inverse-surface:#111111; --on-inverse-surface:#FFFFFF;
  --scrim:rgba(17,17,17,.55);
  --primary-rgb:194 65 12; --surface-rgb:255 255 255; --on-surface-rgb:17 17 17; --on-surface-2-rgb:61 61 61; --outline-rgb:17 17 17;
  --shadow-1:2px 2px 0 #111111; --shadow-2:3px 3px 0 #111111; --shadow-3:4px 4px 0 #111111; --shadow-4:6px 6px 0 #111111;
  --r-xs:6px; --r-sm:8px; --r-md:10px; --r-lg:14px; --r-xl:18px; --r-pill:12px;
  --font-display:"Archivo Black","Space Grotesk",system-ui,sans-serif; --font-ui:"Space Grotesk","Inter",system-ui,sans-serif; --font-body:"Inter",system-ui,-apple-system,sans-serif;
  --btn-case:uppercase; --btn-track:.04em; --label-case:uppercase; --label-track:.07em;
  --display-weight:400; --display-track:.005em; --display-case:uppercase;
  --icon-stroke:2.2; --bw:2px;
}
@media (prefers-color-scheme: dark){
  :root[data-ui="street"]:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:#141414; --surface:#1E1E1E; --surface-2:#272727; --surface-3:#313131; --surface-glass:rgba(30,30,30,.97);
    --on-surface:#F2F0EB; --on-surface-2:#CBC6BD; --on-surface-3:#A9A39A;
    --outline:#F2F0EB; --outline-strong:#F2F0EB;
    --primary:#FF8A4C; --primary-strong:#FFA877; --on-primary:#111111;
    --primary-container:#55260F; --on-primary-container:#FFD8C2;
    --inverse-surface:#F2F0EB; --on-inverse-surface:#111111;
    --success:#4ADE80; --error:#F87171; --danger:#F87171; --warning:#FBBF24;
    --primary-rgb:255 138 76; --surface-rgb:30 30 30; --on-surface-rgb:242 240 235; --on-surface-2-rgb:203 198 189; --outline-rgb:242 240 235;
    --shadow-1:2px 2px 0 #000; --shadow-2:3px 3px 0 #000; --shadow-3:4px 4px 0 #000; --shadow-4:6px 6px 0 #000;
  }
}
:root[data-ui="street"][data-theme="dark"] {
  color-scheme: dark;
  --bg:#141414; --surface:#1E1E1E; --surface-2:#272727; --surface-3:#313131; --surface-glass:rgba(30,30,30,.97);
  --on-surface:#F2F0EB; --on-surface-2:#CBC6BD; --on-surface-3:#A9A39A;
  --outline:#F2F0EB; --outline-strong:#F2F0EB;
  --primary:#FF8A4C; --primary-strong:#FFA877; --on-primary:#111111;
  --primary-container:#55260F; --on-primary-container:#FFD8C2;
  --inverse-surface:#F2F0EB; --on-inverse-surface:#111111;
  --success:#4ADE80; --error:#F87171; --danger:#F87171; --warning:#FBBF24;
  --primary-rgb:255 138 76; --surface-rgb:30 30 30; --on-surface-rgb:242 240 235; --on-surface-2-rgb:203 198 189; --outline-rgb:242 240 235;
  --shadow-1:2px 2px 0 #000; --shadow-2:3px 3px 0 #000; --shadow-3:4px 4px 0 #000; --shadow-4:6px 6px 0 #000;
}
:root[data-ui="street"] :is(#feed-view, #ring-view, #showroom-view, #immersive, #v360, .mm-media),
:root[data-ui="street"] body.media-chrome :is(header, #nav, #backBtn) {
  color-scheme: dark;
  --bg:#0F0F0F; --surface:#1B1B1B; --surface-2:rgba(255,255,255,.10); --surface-3:rgba(255,255,255,.16); --surface-glass:rgba(17,17,17,.82);
  --on-surface:#F7F5F0; --on-surface-2:#CFCAC0; --on-surface-3:#ADA79D;
  --outline:#F2F0EB; --outline-strong:#F2F0EB;
  --primary:#FF8A4C; --primary-strong:#FFA877; --on-primary:#111111;
  --primary-container:#FF8A4C; --on-primary-container:#111111;
  --success:#4ADE80; --error:#F87171; --danger:#F87171; --warning:#FBBF24;
  --primary-rgb:255 138 76; --surface-rgb:17 17 17; --on-surface-rgb:247 245 240; --on-surface-2-rgb:207 202 192; --outline-rgb:242 240 235;
  --shadow-1:2px 2px 0 #000; --shadow-2:3px 3px 0 #000; --shadow-3:4px 4px 0 #000; --shadow-4:6px 6px 0 #000;
  --media-bg:#0F0F0F;
}
:root[data-ui="street"] :is(.mm-searchbar, .mm-results, .mm-chip, #tourPanel, .mp-pop, #map3dBar, .pov-menu, #hudLocate, #povBtn, #map3dHud button, .card, .form-card, .consent-card, .auth-card, .mm-lead .aiv-card, #acctMenu, #dirPanel, #trailPill, #walkBar, .p-stat, .g-card, .sponsor-panel, .support-card, .keycard, .map-list .ml-card, .tp-status, #toast, #backBtn, .mmsm-card, .deck-card .dc-cover, .mm-res .mm-res-th) { border:var(--bw) solid var(--outline); }
:root[data-ui="street"] :is(.btn-solid-gold, .btn-gold, .enter-cta, .walk-cta, .tp-enter, .tp-acts button, .mp-pop-actions button, .consent-primary, .consent-ghost, .auth-submit, .auth-google, .aiv-submit, .sr-act-primary, .sr-act-ghost, .srs-primary, .srs-ghost, .pill, .walk-mini, .audio-cta, .mm-cc-cta, .links a, .sr-env-btn, .p-links a, .ui-seg button) {
  border:var(--bw) solid var(--outline); box-shadow:var(--shadow-1); font-weight:700; transition:transform .1s ease, box-shadow .1s ease, background .15s ease; }
:root[data-ui="street"] :is(.btn-solid-gold, .btn-gold, .enter-cta, .walk-cta, .tp-enter, .tp-acts button, .mp-pop-actions button, .consent-primary, .auth-submit, .aiv-submit, .sr-act-primary, .srs-primary, .pill, .mm-chip, .ui-seg button):active { transform:translate(2px,2px); box-shadow:0 0 0 var(--outline); }
:root[data-ui="street"] :is(.mm-chip, #hudLocate, #povBtn, #map3dHud button) { box-shadow:var(--shadow-1); }
:root[data-ui="street"] :is(.mm-searchbar, #tourPanel, .mp-pop, .card, .form-card, .consent-card, .auth-card, .mm-lead .aiv-card, .mmsm-card, .p-stat, .g-card, .sponsor-panel, .support-card) { box-shadow:var(--shadow-3); }
:root[data-ui="street"] .mm-chip[aria-pressed="true"], :root[data-ui="street"] #nav button.on svg { background:var(--primary); color:var(--on-primary); }
:root[data-ui="street"] .mural-title { font-size:clamp(28px,6vw,48px); line-height:1.02; }
:root[data-ui="street"] .slide:not(.coll-theme) .title-rule { width:56px; height:6px; border-radius:3px; background:var(--primary); }
:root[data-ui="street"] .enter-cta, :root[data-ui="street"] .tp-enter { background:var(--primary); color:var(--on-primary); }
:root[data-ui="street"] #nav { border-top-width:var(--bw); border-color:var(--outline); }
:root[data-ui="street"] #map3dHud button { border-radius:var(--r-md) !important; margin-top:0 !important; }
:root[data-ui="street"] #hudZoomOut::before, :root[data-ui="street"] #hudRotR::before, :root[data-ui="street"] #hudNext::before { display:none; }

/* ---------- LAYOUT · tab bar: full-width bottom bar on every screen size (phones get it from the base rules) ---------- */
@media (min-width:769px){
  :root[data-layout="bar"] { --nav-h:calc(64px + env(safe-area-inset-bottom, 0px)); }
  :root[data-layout="bar"] #nav { left:0; right:0; bottom:0; transform:none; justify-content:center; gap:6px; padding:8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); border-radius:0; border:none;
    border-top:var(--bw) solid var(--outline); box-shadow:none; background:var(--surface-glass); -webkit-backdrop-filter:saturate(1.4) blur(16px); backdrop-filter:saturate(1.4) blur(16px); }
  :root[data-layout="bar"] #nav button { min-width:132px; justify-content:center; }
}
/* ---------- LAYOUT · floating dock (all screen sizes) ---------- */
@media (max-width:768px){
  :root[data-layout="dock"] { --nav-h: calc(84px + env(safe-area-inset-bottom, 0px)); }
  :root[data-layout="dock"] #nav { left:50%; right:auto; bottom:max(12px, env(safe-area-inset-bottom, 0px)); transform:translateX(-50%); width:auto; height:auto;
    display:flex; gap:2px; padding:5px; border-radius:var(--r-pill); border:var(--bw) solid var(--outline); box-shadow:var(--shadow-3); background:var(--surface-glass); }
  :root[data-layout="dock"] #nav button { min-height:0; padding:7px 13px 6px; gap:3px; border-radius:var(--r-pill); }
  :root[data-layout="dock"] #nav button svg { width:21px; height:21px; padding:0; background:transparent !important; }
  :root[data-layout="dock"] #nav button span { font-size:11px; }
  :root[data-layout="dock"] #nav button.on { background:var(--primary-container) !important; color:var(--on-primary-container); }
  :root[data-layout="dock"] #tourPanel { left:10px; right:10px; bottom:calc(var(--nav-h) + 6px); border-radius:var(--r-xl); }
}
/* ---------- LAYOUT · side rail (tablets & desktop); a compact icon bar on phones ---------- */
@media (min-width:769px){
  :root[data-layout="rail"] { --nav-h:0px; --rail-w:88px; }
  :root[data-layout="rail"] #nav { left:0; right:auto; top:0; bottom:0; transform:none; width:var(--rail-w); height:auto; display:flex; flex-direction:column; justify-content:flex-start;
    align-items:stretch; gap:8px; padding:max(14px, env(safe-area-inset-top)) 8px 16px; border-radius:0; border:none; border-right:var(--bw) solid var(--outline);
    box-shadow:none; background:var(--surface); -webkit-backdrop-filter:none; backdrop-filter:none; }
  :root[data-layout="rail"] #nav::before { content:""; display:block; height:44px; margin:2px 0 18px; background:url("/assets/mural-map-logo.png") center/36px no-repeat; }
  :root[data-layout="rail"] #nav button { flex-direction:column; gap:4px; padding:6px 0 8px; border-radius:var(--r-lg); background:transparent; font-size:12px; }
  :root[data-layout="rail"] #nav button svg { width:24px; height:24px; padding:4px 16px; box-sizing:content-box; border-radius:var(--r-lg); transition:background .2s var(--ease); }
  :root[data-layout="rail"] #nav button.on { background:transparent; color:var(--on-surface); }
  :root[data-layout="rail"] #nav button.on svg { background:var(--primary-container); color:var(--on-primary-container); }
  :root[data-layout="rail"] body.media-chrome #nav { background:var(--surface-glass); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); }
  :root[data-layout="rail"] #views { margin-left:var(--rail-w); width:calc(100% - var(--rail-w)); }
  :root[data-layout="rail"] header { left:var(--rail-w); }
  :root[data-layout="rail"] body.has-back.tour-on #backBtn { left:calc(var(--rail-w) + 12px); }
  :root[data-layout="rail"] #aivBadge { left:calc(var(--rail-w) + 12px); }
  :root[data-layout="rail"] #toast { margin-left:calc(var(--rail-w) / 2); }
}
@media (min-width:1024px) and (pointer:fine){
  :root[data-layout="rail"] body.tour-on #aivBadge { left:calc(var(--rail-w) + var(--mm-deck-w,330px) + 12px); }
}
@media (max-width:768px){
  :root[data-layout="rail"] { --nav-h: calc(56px + env(safe-area-inset-bottom, 0px)); }
  :root[data-layout="rail"] #nav { padding:4px 6px env(safe-area-inset-bottom, 0px); }
  :root[data-layout="rail"] #nav button { justify-content:center; padding:0; min-height:48px; }
  :root[data-layout="rail"] #nav button span { display:none; }
}

/* ---------- review fixes (2026-10-09) ---------- */
/* attached bottom bars (tab bar everywhere, rail's compact bar on phones): the map ends ABOVE the bar so Google's logo +
   attribution and the 2D zoom control are never covered (Maps policy). The floating dock keeps the map full-bleed. */
:root #map3d { bottom:var(--nav-h); }   /* every layout: the map ends above the nav (desktop rail: --nav-h is 0) */
:root #gmap { height:calc(100% - var(--nav-h)); }   /* (a height, not `bottom` — Google makes #gmap position:relative, where bottom would shift it up) */
/* our own map labels stay clear of Google's logo + attribution strip at the map's bottom edge */
#map3dHint { bottom:calc(var(--nav-h) + 34px); }
#aivBadge { bottom:calc(var(--nav-h) + 34px); }
body.tour-on:has(#map3dHint:not(.done)) #aivBadge { bottom:calc(var(--nav-h) + 80px); }
/* short screens (landscape phones, small phones with browser bars): a compact HUD anchored under the chips */
@media (max-height:600px){
  #map3dHud { top:calc(max(10px, env(safe-area-inset-top)) + 104px); bottom:auto; gap:6px; }
  #map3dHud button { width:38px; height:38px; }
  #hudZoomOut, #hudRotR, #hudNext { margin-top:-6px; }
  #hudRotL, #hudRotR, #map3dHud > .hud-sep:first-of-type { display:none; }
}
/* the side rail must never sit on a Back button (Showroom / Collections / Map) */
@media (min-width:769px){ :root[data-layout="rail"] body.has-back #backBtn { left:calc(var(--rail-w) + 12px); } }
@media (min-width:1024px) and (pointer:fine){ body.tour-on #mmMapTop .mm-chips { width:calc(100vw - var(--mm-deck-w,330px) - var(--rail-w,0px) - 24px); } }
/* readability + stacking */
.sp-link.sp-primary .sp-sub { color:var(--on-primary); opacity:.8; }
.sr-env-btn.on { background:var(--surface-glass); color:var(--on-surface); border-color:var(--primary); }
.sr-env-btn.on .sv { color:var(--primary); }
#toast { z-index:1100; }   /* above the 360° viewer (1000) and the Look & layout panel, so e.g. "Couldn't start VR" / "Back to the default look" are seen */
@media (max-width:560px){
  :root .header-add-short.header-add-short { font-size:0 !important; letter-spacing:0 !important; padding:8px 12px; }   /* every UI version: the owner's Add button collapses to "+ Add" on phones */
  .header-add-short::before { content:"+ Add"; font-size:13px; letter-spacing:.02em; }
  :root[data-ui="gallery"] .wordmark { font-size:16px; letter-spacing:.12em; }
}
@media (max-width:420px){ body:not(.mm-readonly) .tagline { display:none; } }   /* owner on a small phone: brand + switcher + Sign in + Add must fit */
@media (max-width:360px){ body:not(.mm-readonly) .brand-words { display:none; } }
@media (max-width:360px){ .tagline { display:none; } .wordmark { font-size:15px !important; letter-spacing:.04em !important; } #authBtn { padding:0 12px; } header .mm-ui-btn { width:34px; height:34px; } }
.srs-badge { right:auto; left:clamp(16px,3vw,28px); top:calc(env(safe-area-inset-top) + 76px); }
@media (max-width:560px){ .srs-badge { left:auto; right:16px; top:calc(env(safe-area-inset-top) + 124px); } }

/* ---------- "Look & layout" switcher (#uiPanel) ---------- */
.mm-ui-btn { width:40px; height:40px; flex:none; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; padding:0; cursor:pointer;
  background:var(--surface-2); color:var(--on-surface); border:var(--bw) solid var(--outline); }
.mm-ui-btn:hover { background:var(--surface-3); }
.mm-ui-btn .ic { width:20px; height:20px; }
header .mm-ui-btn { width:38px; height:38px; }
body.feed-mode header .mm-ui-btn { background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.22); }
.mm-searchbar .mm-ui-btn { width:36px; height:36px; margin-right:2px; background:var(--primary-container); color:var(--on-primary-container); border:none; }
.sr-top-right .mm-ui-btn { width:36px; height:36px; background:var(--surface-glass); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); pointer-events:auto; }
#uiPanel { position:fixed; inset:0; z-index:420; display:flex; align-items:center; justify-content:center; padding:16px; background:var(--scrim); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
#uiPanel[hidden] { display:none !important; }
.mmsm-card { width:min(560px,100%); max-height:calc(100dvh - 32px); overflow-y:auto; background:var(--surface); color:var(--on-surface); border-radius:var(--r-xl); box-shadow:var(--shadow-4); padding:20px 20px 18px; font-family:var(--font-ui); }
.mmsm-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:4px; }
.mmsm-head h2 { font-size:22px; line-height:1.2; color:var(--on-surface); }
.mmsm-x { width:36px; height:36px; border-radius:50%; border:none; background:var(--surface-2); color:var(--on-surface-2); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.mmsm-sub { font-family:var(--font-body); font-size:14px; color:var(--on-surface-2); margin:0 0 14px; line-height:1.5; }
.mmsm-sec { font-size:13px; font-weight:700; color:var(--on-surface-2); margin:16px 0 8px; }
.ui-versions { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.ui-ver { display:flex; flex-direction:column; gap:6px; padding:8px 8px 10px; text-align:left; cursor:pointer; color:var(--on-surface); background:var(--surface);
  border:var(--bw) solid var(--outline); border-radius:var(--r-lg); font-family:var(--font-ui); transition:border-color .15s, box-shadow .15s; }
.ui-ver:hover { border-color:var(--outline-strong); }
.ui-ver[aria-checked="true"] { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary); }
.ui-ver b { font-size:15px; font-weight:700; }
.ui-ver small { font-size:12px; color:var(--on-surface-2); line-height:1.3; }
/* mini previews are fixed-colour on purpose: each shows its own version while another is active */
.ui-prev { position:relative; display:block; height:86px; border-radius:8px; overflow:hidden; }
.ui-prev i { position:absolute; display:block; }
.ui-prev em { position:absolute; right:8px; top:26px; font-style:normal; font-size:22px; line-height:1; }
.ui-prev .p-top { left:6px; right:6px; top:6px; height:13px; border-radius:7px; }
.ui-prev .p-chip { left:8px; top:24px; width:34px; height:9px; border-radius:5px; }
.ui-prev .p-chip2 { left:46px; top:24px; width:24px; height:9px; border-radius:5px; }
.ui-prev .p-card { left:6px; right:6px; bottom:16px; height:26px; border-radius:7px; }
.ui-prev .p-bar { left:0; right:0; bottom:0; height:12px; }
.ui-prev-atlas { background:#DCE4EE; }
.ui-prev-atlas .p-top, .ui-prev-atlas .p-card, .ui-prev-atlas .p-bar { background:#fff; box-shadow:0 1px 3px rgba(23,28,36,.18); }
.ui-prev-atlas .p-chip { background:#E6EDF9; } .ui-prev-atlas .p-chip2 { background:#fff; }
.ui-prev-atlas .p-card::after { content:""; position:absolute; left:8px; top:9px; width:30px; height:8px; border-radius:4px; background:#3566B6; }
.ui-prev-atlas em { font-family:"Figtree",sans-serif; font-weight:700; color:#1D2125; }
.ui-prev-gallery { background:#0A0A0A; }
.ui-prev-gallery .p-top, .ui-prev-gallery .p-card { background:#121110; border:1px solid rgba(212,165,61,.5); border-radius:2px; }
.ui-prev-gallery .p-chip { background:#D4A53D; border-radius:2px; } .ui-prev-gallery .p-chip2 { border:1px solid rgba(212,165,61,.5); border-radius:2px; }
.ui-prev-gallery .p-bar { background:#121110; border-top:1px solid rgba(212,165,61,.4); }
.ui-prev-gallery .p-card::after { content:""; position:absolute; left:8px; top:9px; width:30px; height:1px; background:#D4A53D; }
.ui-prev-gallery em { font-family:"Cormorant Garamond",serif; font-weight:600; color:#D4A53D; font-size:26px; }
.ui-prev-street { background:#EFECE6; }
.ui-prev-street .p-top, .ui-prev-street .p-card { background:#fff; border:2px solid #111; box-shadow:2px 2px 0 #111; border-radius:6px; }
.ui-prev-street .p-chip { background:#C2410C; border:2px solid #111; } .ui-prev-street .p-chip2 { background:#fff; border:2px solid #111; }
.ui-prev-street .p-bar { background:#fff; border-top:2px solid #111; }
.ui-prev-street .p-card::after { content:""; position:absolute; left:7px; top:8px; width:30px; height:7px; border-radius:2px; background:#111; }
.ui-prev-street em { font-family:"Archivo Black",sans-serif; color:#111; text-transform:uppercase; }
.ui-seg { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.ui-seg button { display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 6px; border-radius:var(--r-md); cursor:pointer; background:var(--surface);
  color:var(--on-surface); border:var(--bw) solid var(--outline); font-family:var(--font-ui); font-size:13px; font-weight:600; }
.ui-seg button svg { width:44px; height:32px; }
.ui-seg button[aria-checked="true"] { background:var(--primary-container); color:var(--on-primary-container); border-color:transparent; }
.ui-seg button:disabled { opacity:.45; cursor:not-allowed; }
.ui-seg.ui-seg-sm button { flex-direction:row; justify-content:center; padding:9px 6px; }
.mmsm-note { font-size:12.5px; color:var(--on-surface-2); margin:10px 0 0; min-height:1em; font-family:var(--font-body); }
.mmsm-actions { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:16px; }
@media (max-width:560px){
  #uiPanel { align-items:flex-end; padding:0; }
  .mmsm-card { width:100%; border-radius:var(--r-xl) var(--r-xl) 0 0; padding:18px 14px calc(16px + env(safe-area-inset-bottom)); max-height:88dvh; }
  .ui-versions { gap:8px; } .ui-prev { height:72px; } .ui-ver small { display:none; }
}
