#jm-dock,#jm-panel{font:500 14px/1.45 system-ui,sans-serif;color:#eef7f2;box-sizing:border-box}
#jm-dock{position:fixed;z-index:33;left:50%;transform:translateX(-50%);bottom:calc(8px + env(safe-area-inset-bottom));display:flex;gap:4px;padding:3px;background:#112b2a;border:1px solid #63877c;border-radius:16px;box-shadow:0 4px 16px #06131155;white-space:nowrap}
#jm-dock button,#jm-panel .jm-bar button{min-height:44px;border:0;border-radius:12px;color:#e9f5ee;background:transparent;padding:0 15px;font:inherit;cursor:pointer}
#jm-dock button[aria-expanded=true]{background:#bdebd8;color:#12362d}
#jm-panel{position:fixed;z-index:34;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:calc(65px + env(safe-area-inset-bottom));max-width:590px;margin-inline:auto;max-height:min(65dvh,calc(100dvh - 76px - env(safe-area-inset-bottom)));display:flex;flex-direction:column;overflow:hidden;border:1px solid #648679;border-radius:16px;background:#16332ffb;box-shadow:0 8px 34px #071a185c;text-align:start}
#jm-panel.jm-top{top:calc(6px + env(safe-area-inset-top));bottom:auto}
#jm-panel[hidden],#jm-panel [hidden],#jm-panel .jm-inactive,#jm-panel #legend>summary,#jm-panel #close-panel{display:none!important}
#jm-panel .jm-bar{flex:none;display:flex;align-items:center;gap:4px;padding:2px 7px 2px 14px;border-bottom:1px solid #547467}
#jm-title{flex:1;font-size:16px}#jm-panel .jm-bar button{padding:0 10px;color:#bde9d6}#jm-panel .jm-bar button:first-of-type{touch-action:none}
#jm-group{flex:none;max-width:calc(100% - 24px);min-height:44px;margin:6px 12px;border:1px solid #72988a;border-radius:8px;background:#173c35;color:#f1faf4;padding:0 8px;font:inherit}
#jm-panel .jm-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scroll-padding-top:52px;padding:0 12px 12px}
#jm-panel .layer-tools,#jm-panel .layer-sheet,#jm-panel .nav-tools,#jm-panel .water-tools,#jm-panel .jj-tour-bar,#jm-panel footer{position:static!important;inset:auto;transform:none!important;width:100%;max-width:none;max-height:none!important;height:auto;overflow:visible;display:block;padding:0;margin:0;background:transparent;border:0;box-shadow:none;color:inherit}
#jm-panel #legend{display:block;width:100%}
#jm-panel fieldset{min-width:0;margin:0}
#jm-panel .surface-actions{position:sticky;top:0;z-index:2;display:flex;gap:6px;background:#16332f;padding:4px 0}
#jm-panel .surface-actions button{min-height:44px;flex:1;margin:0}
#jm-panel .nav-tools,#jm-panel .water-tools,#jm-panel .jj-tour-bar{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;margin:8px 0}
#jm-panel footer .options{display:grid;grid-template-columns:1fr;gap:6px}#jm-panel footer .notes{display:block}#jm-panel .gesture{display:none}
#jm-panel select,#jm-panel .nav-tools button,#jm-panel .water-tools button,#jm-panel .jj-tour-chip{min-height:44px}
#jm-panel .jm-scroll input[type=range]{touch-action:pan-y}
@media(max-height:520px){#jm-panel{max-height:calc(100dvh - 77px - env(safe-area-inset-bottom) - env(safe-area-inset-top))}#jm-panel .jm-bar{padding-block:0}}
#jm-panel .layer-sheet .face-alpha{display:grid;grid-template-columns:minmax(0,1fr) 3.5em;align-items:center;gap:10px;padding-inline:24px 4px}
#jm-panel .layer-sheet .group-alpha{grid-template-columns:auto minmax(0,1fr) 3.5em;padding-inline:2px 4px}
#jm-panel .layer-sheet .face-alpha input[type=range]{width:100%;min-width:0;height:36px;margin:0}
body:has(#jm-dock) .jj-wx-panel.open,body:has(#jm-dock) .jj-tour-dock.open{top:auto;bottom:calc(65px + env(safe-area-inset-bottom));max-height:calc(100dvh - 82px - env(safe-area-inset-bottom) - env(safe-area-inset-top));overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
