#panel #map-pomelo{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:40px;margin:8px 0 0;background:#eaf0dc;color:#315543;border:1px solid #809376;border-radius:3px;font-weight:600}
#map-pomelo svg{width:18px;height:18px}
.map-leaf-list{display:grid;grid-template-columns:1fr 1fr;gap:5px 7px;margin-top:7px}
.map-leaf-list button{display:flex;align-items:center;gap:8px;text-align:start;min-height:39px;padding:5px 7px;border:1px solid #c1b692;border-radius:3px;background:#fff9e8;color:#304c37;font:600 12px/1.23 var(--sans)}
.map-leaf-list b{flex:none;padding:3px 4px;border-radius:9px 2px 9px 2px;color:#fff8da;background:#50764d;font:700 10px/1.2 ui-monospace,monospace}
.map-leaf-list button:hover,.map-leaf-list button:focus-visible{background:#eaf0d8}
#panel #map-pomelo{background:#365e41;color:#fff5d2;border-color:#2a4f36}
.street-extras{display:flex;align-items:center;justify-content:flex-end;gap:5px;max-width:100%;flex-wrap:wrap}
@media(max-width:650px),(max-height:650px){
  #panel:has(#map-canvas){max-width:calc(100vw - 18px);max-height:calc(100dvh - 20px);padding:16px}
  #panel:has(#map-canvas) h2{margin-bottom:10px}
  #panel:has(#map-canvas) .map-legend{margin:6px 0}
}

/* These controls use ground-scene projections rather than a HUD corner. */
.street-callout{position:fixed;z-index:3;left:0;top:0;margin:0;visibility:hidden;pointer-events:auto;touch-action:manipulation}
.street-callout-tail{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:-1}
.street-callout-tail path{fill:var(--bubble-paper,#fff5db);stroke:var(--bubble-edge,#8a8867);stroke-width:1.15;stroke-linejoin:round}
#street.browsing-market .interaction,#street.at-stall .street-callout,
#street:has(#home-sign:not([hidden])) .street-callout,body:has(dialog[open]) .street-callout{display:none}
.leaf-seller{--bubble-edge:#778368;--bubble-paper:#fff5db;max-width:min(229px,calc(100vw - 24px));width:max-content;box-sizing:border-box;padding:8px 10px 9px;color:#253e2d;background:var(--bubble-paper);border:1px solid var(--bubble-edge);border-radius:4px 13px 13px 12px;box-shadow:0 3px 12px #21352936}
.leaf-speaker,.leaf-speaker>span{display:flex;align-items:center}
.leaf-echo{display:block;margin:0 0 6px;padding:0 0 4px;border-bottom:1px dashed #c1bd9d;color:#655d43;font:600 11px/1.3 var(--sans)}
.leaf-speaker{justify-content:space-between;gap:8px;min-height:17px}
.leaf-speaker>span{gap:5px;color:#4c6840;font:740 11px/1.25 var(--sans)}
.leaf-speaker>span svg{width:14px;height:14px;stroke-width:1.9}
.leaf-speech{margin:4px 0 7px;font:660 15px/1.4 var(--serif);overflow-wrap:anywhere}
.leaf-reply,#pomelo-wave{display:flex;justify-content:center;align-items:center;gap:7px;color:#fff6da;background:#305a42;border:1px solid #244935;border-radius:6px;min-height:44px;font:700 14px/1.24 var(--sans);text-align:center}
.leaf-reply{width:100%;padding:7px 10px}
.leaf-reply:disabled{color:#f1e7c6;background:#63745a}
.leaf-turn{display:none}
.leaf-seller[data-docked=true]{padding:0;border-radius:20px}
.leaf-seller[data-docked=true]>:not(.leaf-turn):not(.street-callout-tail){display:none!important}
.leaf-seller[data-docked=true] .leaf-turn{display:flex;align-items:center;gap:6px;padding:6px 11px;border:0;background:transparent;min-height:44px;font:700 13px/1.25 var(--sans)}
.leaf-turn svg{width:17px;height:17px}
.leaf-reply:hover:not(:disabled),#pomelo-wave:hover{background:#244e38}
.leaf-reply kbd,#pomelo-wave kbd{color:#e4e9d0;padding:1px 3px;font-size:9px}
#pomelo-close{display:grid;place-items:center;min-width:32px;min-height:31px;padding:4px;margin:-5px -6px -4px 0;background:none;border:0;color:#596951}
#pomelo-close svg{width:14px;height:14px}
.leaf-note{margin-top:4px;color:#486043;font-size:11px}
.leaf-note summary{width:max-content;max-width:100%;cursor:pointer;padding:4px 0;line-height:1.3}
.leaf-note p{margin:4px 0;font:500 12px/1.4 var(--sans)}
.leaf-note a{color:#2f5b43}
.leaf-seller[data-phase=thanks] .leaf-speech{margin-bottom:1px}
.leaf-hand{--bubble-paper:#386547;--bubble-edge:#244935}
#pomelo-wave{padding:6px 10px;min-width:44px;background:#386547;box-shadow:0 2px 6px #1631223d;max-width:135px;border-radius:20px}
#pomelo-wave svg{width:19px;height:19px;flex:none}
#pomelo-wave[aria-disabled=true]{background:#537659}
#pomelo-wave[data-moving=true] svg{animation:leaf-button-sway .58s ease-in-out 2;transform-origin:20% 82%}
@keyframes leaf-button-sway{0%,100%{transform:rotate(0)}25%{transform:rotate(-13deg)}70%{transform:rotate(14deg)}}
@media(prefers-reduced-motion:reduce){#pomelo-wave[data-moving=true] svg{animation:none}}
@media(max-width:650px),(pointer:coarse){.street-extras{max-width:calc(100vw - 138px)}.leaf-reply kbd,#pomelo-wave kbd{display:none}.leaf-seller{max-width:min(195px,calc(100vw - 20px))}.leaf-speech{font-size:14px}.leaf-hand button{font-size:13px}}
@media(max-width:360px){.map-leaf-list button{gap:5px;font-size:11px}.leaf-seller{max-width:176px}}
