.service-panel{position:absolute;z-index:70;right:18px;top:90px;width:min(420px,calc(100% - 32px));max-height:calc(100% - 112px);display:flex;flex-direction:column;background:linear-gradient(140deg,#1d3b30,#10271f);color:#eee4c6;border:1px solid #a88d55;border-radius:10px;box-shadow:0 14px 40px #0008;pointer-events:auto;overflow:hidden}
.service-panel[hidden]{display:none}.service-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #a98c4c55;flex-shrink:0}.service-panel header small,.service-eyebrow{font:10px system-ui;letter-spacing:.12em;color:#cbb578}.service-panel h2{font:600 21px Georgia,serif;margin:4px 0 0;overflow-wrap:anywhere}.service-panel h3{font:600 20px Georgia,serif;margin:8px 0 12px}.service-panel button{padding:9px 12px;min-height:38px;border:1px solid #9cac7466;border-radius:5px;background:#2c4b38;color:#f1e4bd;cursor:pointer;font:12px system-ui}.service-panel button:hover:not(:disabled){background:#3b6044;border-color:#cab370}.service-panel button:focus-visible{outline:2px solid #e8cd83;outline-offset:-3px}.service-panel button:disabled{opacity:.45;cursor:default}.service-panel header>button{font-size:23px;line-height:1;flex-shrink:0}.service-tabs{display:flex;gap:4px;padding:7px 10px;border-bottom:1px solid #a98c4c44;flex-shrink:0}.service-tabs button{flex:1;padding:9px 5px;background:transparent;font-size:12px}.service-tabs button[aria-pressed=true]{color:#ffe7a1;background:#8c83552b;border-color:#b7a66b}.service-body{padding:12px 16px 18px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:0;font:13px/1.6 system-ui}.service-body>button{display:block;width:100%;margin:9px 0}.service-body>p{margin:4px 0 14px}.service-warning{color:#edbe91;font:12px/1.4 system-ui}.service-panel>.service-warning{padding:8px 16px;margin:0;background:#70452a33;flex-shrink:0}.service-safe{color:#b9dcb4}.service-route{padding:12px 0;border-bottom:1px solid #acbb8b33}.service-route p{margin:0 0 8px}.service-route small{display:block;margin-top:7px}.service-subtabs{padding:0 0 8px;margin-bottom:8px}.service-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #acbb8b33}.service-item img{width:34px;height:34px;object-fit:contain}.service-item strong{font-size:12px;overflow-wrap:anywhere}.service-panel.hud-floating{max-height:calc(100dvh - 16px)}
/* NPC windows share the right edge. Existing user-placed windows remain movable. */
.merchant-panel:not(.hud-floating){left:auto;right:18px;top:90px;transform:none;width:min(440px,calc(100% - 32px));max-height:calc(100% - 112px);height:auto;min-height:250px}
.merchant-panel:not(.hud-floating) .merchant-header h2{font-size:21px}.merchant-panel:not(.hud-floating) .merchant-header{padding:14px 16px 10px}.merchant-panel:not(.hud-floating) .merchant-content{padding:0 14px}.merchant-panel:not(.hud-floating) .merchant-item{grid-template-columns:36px minmax(0,1fr) 84px;gap:9px}.merchant-panel:not(.hud-floating) .merchant-item>img{width:36px;height:36px}.merchant-panel:not(.hud-floating) .merchant-item-text strong{font-size:13px}
.top-actions .hud-icon{display:block;width:22px;height:22px;pointer-events:none}.top-actions .icon-button{display:inline-flex;align-items:center;justify-content:center}.mobile-hud #mobileMenu .icon-button{flex-direction:column}.mobile-control .hud-icon{width:22px;height:22px;pointer-events:none}
@media(max-width:900px),(pointer:coarse){.service-panel,.merchant-panel:not(.hud-floating){top:10px;right:10px;width:min(420px,calc(100% - 20px));max-height:calc(100% - 20px)}.service-panel>header{padding:10px 12px}.service-panel h2{font-size:19px}.service-body{padding:10px 12px 14px}.service-tabs button{font-size:11px}.service-panel{z-index:75}}
