/* Public read-only map. The .mm-* scene rules are copied from market_map.css (emerald palette)
   so visitors do not download the 77KB logged-in stylesheet. The scene keeps its built-in light
   palette in dark mode (same choice as dark_app.css); the page chrome follows the theme tokens. */
.pm-frame,.pm-plan{--market-bg:#f3f1eb;--market-paper:#fffcf6;--market-ink:#183b40;--market-muted:#596762;--market-line:#d4d5c9;--market-primary:#24575c;--market-deep:#123d43;--market-accent:#aa8752;--market-accent-soft:#ecdec4;--market-tint:#e7eae1;--scene-ground:#dddcd1;--scene-edge:#aab6ae;--scene-path:#f0ece2;--scene-paving:#c9cbbf;--scene-sky:#f6f5ef;--stall-roof:#d8d0be;--stall-side:#aaa897;--stall-front:#c6c4b2;--stall-line:#83968d;--stall-active-roof:#33646a;--stall-active-side:#183f45;--stall-active-front:#4b7374;--stall-canvas:#f4ead8;--stall-glass:#1e464c;--stall-counter:#bf9d70;--stall-selected-roof:#cba468;--stall-selected-side:#8e724b;--stall-selected-front:#b29262}
.pm-frame{margin:20px 0 0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--scene-ground)}
.pm-plan{width:100%;min-width:0;position:relative}
.pm-selection{margin:16px 0 0;padding:18px 20px;border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:16px;background:var(--surface)}
.pm-selection h2{margin:0 0 4px;font-size:1.25rem}
.pm-selection .pm-where{margin:0 0 12px;color:var(--muted);font-size:.9rem}
.pm-merchants{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.pm-merchants li{display:flex;flex-direction:column;gap:2px;padding-inline-start:12px;border-inline-start:3px solid var(--line-strong)}
.pm-merchants strong{font-size:1rem}.pm-merchants span{color:var(--muted);font-size:.9rem}
.pm-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.pm-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 16px;border-radius:12px;text-decoration:none;font-weight:600;font-size:.9rem;border:1px solid var(--line);color:var(--green);background:var(--surface)}
.pm-links a.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.pm-note{margin:14px 0 0;color:var(--muted);font-size:.85rem;line-height:1.9}
.pm-status{margin:0;padding:24px;text-align:center;color:#183b40;font-size:.9rem}
.pm-plan .mm-webgl-status{margin:0;padding:24px;text-align:center;color:#183b40;font-size:.9rem}
.mm-scene{width:100%;min-height:540px;display:flex;flex-direction:column;position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 60% 35%,#f0f5f6 0,#e4ecef 60%,#d9e4e8 100%)}
.mm-scene-canvas{display:block;width:100%;height:480px;min-height:460px;flex:1;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.mm-scene-canvas:active{cursor:grabbing}
.mm-scene-canvas:focus-visible{outline:3px solid #147c7e;outline-offset:-5px}
.mm-scene-canvas [role=button]{cursor:pointer}
.mm-scene-canvas [role=button]:focus-visible{outline:0}
.mm-scene-canvas [role=button]:focus-visible polygon{stroke:#19324d;stroke-width:2}
.mm-scene-canvas text{font-family:Tahoma,"Segoe UI",sans-serif}
.mm-scene-toolbar{display:flex;align-items:center;gap:5px;position:absolute;z-index:2;top:14px;inset-inline-start:14px;max-width:calc(100% - 28px);padding:5px;border:1px solid #aebfc8;border-radius:10px;background:#ffffffed;box-shadow:0 3px 12px #4764751c;flex-wrap:wrap}
.mm-scene-button{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px 12px;color:#284b5d;background:transparent;font-size:.8rem;border-radius:5px;font-weight:700;border:1px solid transparent;line-height:1.4}
.mm-scene-button:hover{background:#e8f2f3;border-color:#b1cace}
.mm-scene-button[aria-pressed=true]{background:#19324d;color:#fff}
.mm-scene-button:focus-visible{outline:3px solid #147c7e;outline-offset:2px}
.mm-scene-button:disabled{opacity:.45}
.mm-scene-help{position:absolute;z-index:1;bottom:12px;inset-inline-end:14px;margin:0;padding:6px 10px;max-width:calc(100% - 28px);font-size:.75rem;line-height:1.6;color:#3e5c6c;background:#f8fbfce8;border:1px solid #bfd1d9;border-radius:5px;pointer-events:none}
@media(max-width:700px){.mm-scene{min-height:460px}.mm-scene-canvas{height:440px;min-height:430px}.mm-scene-toolbar{top:10px;inset-inline-start:10px;gap:2px;padding:3px;max-width:calc(100% - 20px)}.mm-scene-button{font-size:.75rem;padding:7px 9px;min-width:42px;min-height:44px}.mm-scene-help{font-size:.75rem;inset-inline-end:10px;bottom:10px;max-width:calc(100% - 20px)}}
.mm-ground{fill:#dfe8ee;stroke:#9db3c1;stroke-width:1;vector-effect:non-scaling-stroke}
.mm-ground-edge{fill:#c2d0db;stroke:#a7bcc9;stroke-width:1;vector-effect:non-scaling-stroke}
.mm-aisle{fill:#f4f7f9;stroke:#beced8;stroke-width:.65;vector-effect:non-scaling-stroke}
.mm-aisle-line{fill:none;stroke:#aebfc9;stroke-width:.7;stroke-dasharray:3 5;vector-effect:non-scaling-stroke}
.mm-booth{cursor:pointer;outline:none}
.mm-roof{fill:#bdcbd6;stroke:#7c97aa;stroke-width:.7;vector-effect:non-scaling-stroke}
.mm-side{fill:#96acbd;stroke:#7c97aa;stroke-width:.6;vector-effect:non-scaling-stroke}
.mm-front{fill:#a7bccb;stroke:#7c97aa;stroke-width:.6;vector-effect:non-scaling-stroke}
.mm-booth.has-merchant .mm-roof{fill:#248d96;stroke:#0d6572}
.mm-booth.has-merchant .mm-side{fill:#116978;stroke:#0d5768}
.mm-booth.has-merchant .mm-front{fill:#1b7e8b;stroke:#0d6572}
.mm-booth.is-vacant .mm-roof{fill:#a5cbe1;stroke:#426d91}
.mm-booth.is-vacant .mm-side{fill:#618cac;stroke:#426d91}
.mm-booth.is-vacant .mm-front{fill:#83acc7;stroke:#426d91}
.mm-booth.is-partial .mm-roof{fill:#e4bd78;stroke:#976c25}
.mm-booth.is-partial .mm-side{fill:#b58336;stroke:#976c25}
.mm-booth.is-partial .mm-front{fill:#d6aa61;stroke:#976c25}
.mm-booth.is-match .mm-roof{stroke:#aa6b05;stroke-width:2}
.mm-booth.is-selected .mm-roof,.mm-booth:focus .mm-roof{fill:#f1cc66;stroke:#936309;stroke-width:2.3}
.mm-booth.is-selected .mm-side{fill:#ba922f;stroke:#936309}
.mm-booth.is-selected .mm-front{fill:#dab146;stroke:#936309}
.mm-number{font-family:inherit;font-weight:700;text-anchor:middle;dominant-baseline:central;fill:#fff;pointer-events:none}
.mm-booth:not(.has-merchant) .mm-number,.mm-booth.is-selected .mm-number,.mm-booth.is-vacant .mm-number,.mm-booth.is-partial .mm-number{fill:#163650}
.mm-lane-label{font-family:inherit;fill:#325b74;font-weight:700;text-anchor:middle;paint-order:stroke;stroke:#dfe8ee;stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.mm-lane-end{font-family:inherit;fill:#506e83;text-anchor:middle;paint-order:stroke;stroke:#dfe8ee;stroke-width:3px;pointer-events:none}
.mm-marker{cursor:pointer;outline:none}
.mm-marker-pill{fill:#fff;stroke:#116978;stroke-width:1.2;vector-effect:non-scaling-stroke}
.mm-marker.is-selected .mm-marker-pill{fill:#fff4d2;stroke:#a27515;stroke-width:2;vector-effect:non-scaling-stroke}
.mm-marker text{font-family:inherit;fill:#163650;font-weight:700;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.mm-marker-line{stroke:#0d6572;stroke-width:1.4;vector-effect:non-scaling-stroke}
.mm-marker-dot{fill:#fff;stroke:#0d6572;stroke-width:1.5;vector-effect:non-scaling-stroke}
.mm-entrance{font-family:inherit;fill:#183f58;font-weight:700;text-anchor:middle;pointer-events:none}
.mm-scene{min-height:620px}
.mm-scene-canvas{height:620px;min-height:620px}
.mm-scene-help{inset-inline-start:14px;inset-inline-end:auto;max-width:calc(100% - 215px);font-size:.75rem}
.mm-overview{position:absolute;z-index:2;bottom:12px;inset-inline-end:12px;display:flex;flex-direction:column;align-items:stretch;width:180px;padding:8px;background:#f8fbfc;border:1px solid #9eb7c3;border-radius:8px;color:#355569;box-shadow:0 4px 16px #29455518;cursor:pointer;overflow:hidden}
.mm-overview-canvas{display:block;width:100%;height:76px;overflow:hidden;pointer-events:none}
.mm-overview span{font-size:.75rem;line-height:1.8;font-weight:400;margin-top:4px}
.mm-overview:hover{background:white;border-color:var(--map-teal)}
.mm-overview:focus-visible{outline:3px solid var(--map-teal);outline-offset:3px}
.mm-overview-viewport{fill:#dfb34930;stroke:#966311;stroke-width:2;vector-effect:non-scaling-stroke}
.mm-overview:not(.is-close) .mm-overview-viewport{display:none}
.mm-overview .mm-booth .mm-roof,.mm-overview .mm-booth .mm-front,.mm-overview .mm-booth .mm-side{stroke-width:.2}
.mm-canopy{fill:#b4e4dc;stroke:#287a80;stroke-width:.6;vector-effect:non-scaling-stroke}
.mm-shop-label{fill:#163650;paint-order:stroke;stroke:#f5f9f5;stroke-width:2px;stroke-linejoin:round;text-anchor:middle;font-weight:700;pointer-events:none}
@media(max-width:820px){.mm-scene,.mm-scene-canvas{height:540px;min-height:540px}}
@media(max-width:480px){.mm-scene,.mm-scene-canvas{height:500px;min-height:500px}.mm-scene-toolbar{gap:4px}.mm-scene-button{min-width:44px;font-size:.75rem}.mm-overview{width:135px;bottom:10px;inset-inline-end:10px;padding:6px}.mm-overview-canvas{height:60px}.mm-overview span{font-size:.75rem}.mm-scene-help{max-width:calc(100% - 168px);font-size:.75rem;inset-inline-start:10px;line-height:1.8;padding:5px 7px}}
.mm-scene{background:radial-gradient(ellipse at 55% 20%,var(--scene-sky) 0,var(--scene-ground) 90%)}
.mm-scene,.mm-scene-canvas{height:550px;min-height:550px}
.mm-scene-toolbar{border-color:var(--market-line);background:var(--market-paper);box-shadow:0 5px 14px #00000012;border-radius:12px;padding:5px}
.mm-scene-button{color:var(--market-ink);border-radius:7px}
.mm-scene-button:hover{background:var(--market-tint);border-color:var(--market-line)}
.mm-scene-button[aria-pressed=true]{background:var(--market-primary)}
.mm-scene-help{color:var(--market-muted);background:var(--market-paper);border-color:var(--market-line)}
.mm-overview{background:var(--market-paper);border-color:var(--market-line);color:var(--market-muted);box-shadow:0 5px 20px #00000012;border-radius:10px}
.mm-overview:hover{background:var(--market-paper);border-color:var(--market-primary)}
.mm-overview-viewport{fill:none;stroke:var(--market-accent);stroke-width:2.5}
.mm-ground{fill:var(--scene-ground);stroke:var(--scene-edge)}
.mm-ground-edge{fill:var(--scene-edge);stroke:var(--scene-edge)}
.mm-aisle{fill:var(--scene-path);stroke:var(--scene-paving)}
.mm-aisle-line{stroke:var(--scene-paving);stroke-dasharray:4 8}
.mm-paving{fill:none;stroke:var(--scene-paving);stroke-width:.4;pointer-events:none}
.mm-paving path{vector-effect:non-scaling-stroke}
.mm-booth-shadow{fill:#16282220;stroke:none;pointer-events:none}
.mm-roof{fill:var(--stall-roof);stroke:var(--stall-line)}
.mm-side{fill:var(--stall-side);stroke:var(--stall-line)}
.mm-front{fill:var(--stall-front);stroke:var(--stall-line)}
.mm-booth.has-merchant .mm-roof{fill:var(--stall-active-roof);stroke:var(--market-deep)}
.mm-booth.has-merchant .mm-side{fill:var(--stall-active-side);stroke:var(--market-deep)}
.mm-booth.has-merchant .mm-front{fill:var(--stall-active-front);stroke:var(--market-deep)}
.mm-window,.mm-door{fill:var(--stall-glass);stroke:var(--stall-canvas);stroke-width:.5;vector-effect:non-scaling-stroke}
.mm-door{fill:var(--market-deep)}
.mm-glass-shine{fill:#ffffff20;stroke:none}
.mm-window-frame{stroke:var(--stall-canvas);stroke-width:.5;vector-effect:non-scaling-stroke}
.mm-counter{fill:var(--stall-counter);stroke:#ffffff50;stroke-width:.4;vector-effect:non-scaling-stroke}
.mm-counter-edge{fill:var(--stall-side);stroke:none}
.mm-roof-rim{fill:var(--stall-canvas);stroke:var(--stall-line);stroke-width:.4;vector-effect:non-scaling-stroke}
.mm-canopy{stroke:#00000012;stroke-width:.3}
.mm-canopy-light{fill:var(--stall-canvas)}
.mm-canopy-dark{fill:var(--stall-front)}
.mm-valance{stroke:none}
.mm-valance-light{fill:var(--stall-roof)}
.mm-valance-dark{fill:var(--stall-side)}
.mm-booth.has-merchant .mm-canopy-dark{fill:var(--stall-active-roof)}
.mm-booth.has-merchant .mm-valance-dark{fill:var(--stall-active-side)}
.mm-booth.has-merchant .mm-valance-light{fill:var(--stall-canvas)}
.mm-booth.is-selected .mm-roof,.mm-booth:focus-visible .mm-roof{fill:var(--stall-selected-roof);stroke:var(--market-deep);stroke-width:2}
.mm-booth.is-selected .mm-side{fill:var(--stall-selected-side);stroke:var(--market-deep)}
.mm-booth.is-selected .mm-front{fill:var(--stall-selected-front);stroke:var(--market-deep)}
.mm-booth.is-match .mm-roof{stroke:var(--market-accent);stroke-width:2}
.mm-booth:focus-visible .mm-roof{stroke-width:3}
.mm-booth.is-vacant:not(.is-selected) .mm-roof{fill:#99c9bc;stroke:#356e61}
.mm-booth.is-partial:not(.is-selected) .mm-roof{fill:#dbb478;stroke:#8c5b28}
.mm-number{fill:#fff}
.mm-booth:not(.has-merchant) .mm-number,.mm-booth.is-selected .mm-number{fill:var(--market-ink)}
body[data-map-theme=bazaar] .mm-booth.is-selected .mm-number{fill:white}
.mm-shop-label{fill:var(--market-ink);stroke:var(--market-paper);stroke-width:2.5px}
.mm-lane-label,.mm-lane-end{fill:var(--market-ink);stroke:var(--scene-ground)}
.mm-entrance{fill:var(--market-ink)}
.mm-marker-pill{fill:var(--market-paper);stroke:var(--market-primary)}
.mm-marker.is-selected .mm-marker-pill{fill:var(--market-accent-soft);stroke:var(--market-deep)}
.mm-marker text{fill:var(--market-ink)}
.mm-marker-line,.mm-marker-dot{stroke:var(--market-primary)}
@media(max-width:820px){.mm-scene,.mm-scene-canvas{height:490px;min-height:490px}}
@media(max-width:480px){.mm-scene,.mm-scene-canvas{height:460px;min-height:460px}.mm-scene-toolbar{padding:3px;gap:2px;border-radius:9px}}
.mm-scene{height:600px;min-height:600px;position:relative;background:var(--scene-ground)}
.mm-scene-canvas{height:600px;min-height:600px;display:block;flex:none;max-width:100%;touch-action:none}
.mm-scene-toolbar{top:16px;inset-inline-start:16px;gap:4px;padding:5px;border-radius:11px;max-width:calc(100% - 32px);box-shadow:0 4px 18px #153a401a;background:var(--market-paper);border-color:var(--market-line)}
.mm-scene-toolbar .mm-scene-button{min-width:44px;min-height:44px;font-size:.78rem;padding:8px 11px;font-weight:700;border-radius:7px;white-space:nowrap}
.mm-scene-button[aria-pressed=true]{background:var(--market-primary);color:#fff}
.mm-scene-help{inset-inline-start:16px;inset-inline-end:auto;bottom:16px;max-width:calc(100% - 224px);padding:8px 11px;border-radius:8px;font-size:.75rem;line-height:1.8;box-shadow:0 2px 10px #153a400a}
.mm-overview{bottom:16px;inset-inline-end:16px;width:182px;padding:8px;border-radius:10px}
.mm-overview span{font-size:.75rem;line-height:1.8}
.mm-overview-canvas{height:70px}
@media(max-width:1100px){.mm-scene-toolbar{gap:2px}.mm-scene-toolbar .mm-scene-button{padding-inline:8px}}
@media(max-width:600px){.mm-scene,.mm-scene-canvas{height:460px;min-height:460px}.mm-scene-toolbar{top:10px;inset-inline-start:10px;max-width:calc(100% - 20px);padding:4px;gap:3px;border-radius:9px}.mm-scene-toolbar .mm-scene-button{min-width:44px;min-height:44px;font-size:.75rem;padding:6px 8px}.mm-scene-help{bottom:10px;inset-inline-start:10px;max-width:calc(100% - 168px);padding:7px 8px;font-size:.75rem;line-height:1.7}.mm-overview{bottom:10px;inset-inline-end:10px;width:140px;padding:6px}.mm-overview-canvas{height:60px}.mm-overview span{font-size:.75rem}}
.mm-scene-live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.mm-scene[data-renderer="svg-fallback"]{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:0;align-items:center}
.mm-scene[data-renderer="svg-fallback"]>.mm-scene-canvas{grid-row:1;grid-column:1/-1;width:100%;height:clamp(320px,58vh,590px);min-height:0}
.mm-scene[data-renderer="svg-fallback"]>.mm-scene-toolbar{position:static;grid-row:2;grid-column:1;justify-self:start;max-width:none;margin:5px}
.mm-scene[data-renderer="svg-fallback"]>.mm-overview{position:static;grid-row:2;grid-column:2;max-width:100px;margin:4px}
.mm-scene[data-renderer="svg-fallback"]>.mm-overview:not(.is-close){display:none}
.mm-scene[data-renderer="svg-fallback"]>.mm-scene-help{position:static;grid-row:3;grid-column:1/-1;max-width:none;margin:0}
