/* A single responsive toolbar, with every control visible without scrolling. */
html.shpk-map.dock-ui{--dock-bottom:0px;--dock-top-gap:calc(var(--dock-height) + 10px)}
.shpk-map.dock-ui #map-rail{display:none!important}
.shpk-map.dock-ui #map-editor.map-dock{left:8px!important;right:8px!important;bottom:0!important;height:auto!important;border-radius:12px 12px 0 0!important;overflow:visible!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}
.shpk-map #map-editor.map-dock .dock-scroll{height:auto;overflow:visible;touch-action:manipulation}
.shpk-map #map-editor.map-dock .dock-row{display:grid;grid-template-columns:minmax(300px,1fr) auto auto;width:100%;min-width:0;height:auto;align-items:center;gap:6px;padding:5px 7px}
.shpk-map #map-editor.map-dock #pcTools{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:2px!important;min-width:0;width:100%!important}
.shpk-map #map-editor.map-dock .pcTools button,.shpk-map #map-editor.map-dock .pcTools #pcHand{width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;gap:3px!important;padding:3px 0!important;font-size:8px!important;grid-column:auto!important;flex:none!important;border-radius:7px!important}
.shpk-map #map-editor.map-dock .pcTools button svg{width:20px!important;height:20px!important}
.shpk-map #map-editor.map-dock .pcTools .hk{font-size:6px!important;top:2px!important;right:3px!important;opacity:.7}
.shpk-map #map-editor.map-dock #pcBarSlot{min-width:0}
.shpk-map #map-editor.map-dock #drawBar{height:auto!important;gap:5px!important;justify-content:center!important}
.shpk-map #map-editor.map-dock .dock-group{height:30px;gap:3px;padding-left:5px;min-width:0}
.shpk-map #map-editor.map-dock .dock-group:first-child{padding-left:0;border-left:0}
.shpk-map #map-editor.map-dock #drawBar .dot{width:24px!important;height:24px!important;flex-basis:24px!important;margin:0!important}
.shpk-map #map-editor.map-dock #drawBar .wbtn{width:26px!important;height:30px!important}
.shpk-map #map-editor.map-dock #drawBar .act{width:28px!important;height:30px!important;font-size:16px!important}
.shpk-map #map-editor.map-dock .dock-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;min-width:0;border-left:1px solid #d7e7dc20;padding-left:5px}
.shpk-map #map-editor.map-dock #pcImpSlot{padding:0!important;border:0!important}
.shpk-map #map-editor.map-dock #impBtn,.shpk-map #map-editor.map-dock #decoBtn,.shpk-map #map-editor.map-dock #layer-button,.shpk-map #map-editor.map-dock #rail-help,.shpk-map #map-editor.map-dock #rail-support{position:static!important;display:flex!important;align-items:center;justify-content:center;width:30px!important;min-width:30px!important;min-height:30px!important;height:32px!important;flex:none!important;gap:0!important;margin:0!important;padding:4px!important;background:transparent!important;border:1px solid transparent!important;border-radius:7px!important;box-shadow:none!important;color:#b9cbd1!important;cursor:pointer}
.shpk-map #map-editor.map-dock #impBtn>span,.shpk-map #map-editor.map-dock #decoBtn>span,.shpk-map #map-editor.map-dock #rail-help>span,.shpk-map #map-editor.map-dock #rail-support>span{display:none}
.shpk-map #map-editor.map-dock #layer-button:before{display:none}
.shpk-map #map-editor.map-dock #layer-button>span{position:static;display:flex;padding:0;background:none;font-size:0;gap:0}
.shpk-map #map-editor.map-dock .dock-actions svg.ui-icon{width:18px!important;height:18px!important}
.shpk-map #map-editor.map-dock .dock-actions button:hover,.shpk-map #map-editor.map-dock .dock-actions a:hover{background:#ffffff0b!important;color:var(--accent)!important}
.shpk-map #map-editor.map-dock #shot{width:60px!important;height:32px!important;flex-direction:row!important;gap:5px!important;padding:4px!important;font-size:10px!important;border-radius:7px!important;overflow:hidden}
.shpk-map #map-editor.map-dock #shot>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shpk-map.dock-ui #map-status{display:none!important}
.shpk-map.dock-ui #map-welcome{display:none!important}
.shpk-map.dock-ui #layers-panel{left:auto!important;right:8px!important;bottom:calc(var(--dock-top-gap) + 2px)!important;max-width:calc(100vw - 16px);padding:8px;border-radius:10px}
.shpk-map.dock-ui .layer-option{height:60px;width:100px;gap:5px;font-size:11px}
.shpk-map.dock-ui .maplibregl-ctrl-bottom-right{bottom:var(--dock-height)!important;right:8px!important;max-width:calc(100vw - 16px)}
.shpk-map.dock-ui .maplibregl-ctrl-attrib{font-size:8px!important;line-height:1.4!important;margin:0!important}
.shpk-map.dock-ui .maplibregl-ctrl-top-right{right:8px!important;bottom:calc(var(--dock-top-gap) + 25px)!important}
.shpk-map.dock-ui .maplibregl-ctrl-group button{width:32px!important;height:32px!important}
.shpk-map.dock-ui #map-locate,.shpk-map.dock-ui #map-reset{right:8px;width:34px;height:32px;border-radius:9px}
.shpk-map.dock-ui #map-locate{bottom:calc(var(--dock-top-gap) + 95px)!important}
.shpk-map.dock-ui #map-reset{bottom:calc(var(--dock-top-gap) + 133px)!important}
.shpk-map.dock-ui .maplibregl-ctrl-bottom-left{bottom:var(--dock-top-gap)!important;right:9px!important}
.shpk-map.dock-ui #pcCard{left:8px!important;max-width:calc(100vw - 16px);bottom:calc(var(--dock-top-gap) + 4px)!important}
.shpk-map.dock-ui #decoPanel{right:8px!important;bottom:calc(var(--dock-top-gap) + 4px)!important;max-height:calc(100dvh - var(--dock-top-gap) - 95px)!important}
@media(max-width:1099px){
 .shpk-map #map-editor.map-dock .dock-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 6px}
 .shpk-map #map-editor.map-dock #pcTools{grid-column:1/-1}
 .shpk-map #map-editor.map-dock #pcBarSlot{justify-self:start}
}
@media(max-width:599px){
 .shpk-map #map-editor.map-dock .dock-row{grid-template-columns:minmax(0,1fr);padding:4px 5px;gap:4px}
 .shpk-map #map-editor.map-dock #pcBarSlot{justify-self:center;max-width:100%}
 .shpk-map #map-editor.map-dock #drawBar{flex-wrap:wrap!important;row-gap:3px!important}
 .shpk-map #map-editor.map-dock .dock-actions{border:0;padding:0;justify-content:center;gap:7px}
 .shpk-map #map-editor.map-dock .pcTools button,.shpk-map #map-editor.map-dock .pcTools #pcHand{font-size:7px!important;height:38px!important}
 .shpk-map #map-editor.map-dock .pcTools .hk{display:none}
 .shpk-map #map-editor.map-dock .dock-group{padding-left:3px;gap:2px}
 .shpk-map #map-editor.map-dock #drawBar .dot{width:22px!important;height:22px!important;flex-basis:22px!important}
 .shpk-map #map-editor.map-dock #drawBar .wbtn{width:24px!important}
 .shpk-map #map-editor.map-dock #drawBar .act{width:25px!important}
 .shpk-map.dock-ui #decoPanel{left:8px!important;width:auto!important}
}
