/* Scoped Map panels. Shell tokens and dimensions agreed with UI-codex (3). */
#rms-map-workspace{position:absolute;z-index:12;overflow:hidden;background:#fff;color:var(--text);font:12px system-ui;min-height:160px}
#rms-map-workspace[hidden],#rms-map-workspace [hidden]{display:none!important}
#rms-map-workspace canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
#rms-map-workspace #rms-map-canvas{touch-action:none;cursor:grab;outline-offset:-3px}
#rms-map-workspace #rms-map-canvas:active{cursor:grabbing}
#rms-map-workspace #rms-map-overlay{pointer-events:none}
#rms-map-workspace .map-glass{background:rgba(255,255,255,.91);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#rms-map-workspace button{height:28px;padding:0 10px;border:1px solid var(--line);border-radius:14px;background:#ffffffed;color:var(--text);font:inherit;cursor:pointer;white-space:nowrap}
#rms-map-workspace button:hover:enabled{background:#e3efff;color:var(--blue)}
#rms-map-workspace button:disabled{opacity:.48;cursor:default}
#rms-map-workspace :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#rms-map-workspace select,#rms-map-workspace input{height:28px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);padding:2px 7px;font:inherit;max-width:190px;min-width:0;box-sizing:border-box;font-variant-numeric:tabular-nums}
#rms-map-workspace input[type=number]{width:68px}
#rms-map-workspace input[type=range]{width:90px}
#rms-map-workspace input[type=checkbox]{width:14px;height:14px;padding:0;accent-color:var(--blue)}
#rms-map-workspace label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
#rms-map-workspace .map-controls{position:absolute;top:8px;left:8px;right:8px;padding:7px 9px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;z-index:3}
#rms-map-workspace .map-controls strong{font-size:12px;color:var(--blue)}
#rms-map-workspace .map-options-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:5px 0}
#rms-map-workspace #map-options{position:absolute;top:var(--map-controls-bottom,58px);left:8px;right:8px;z-index:4;padding:8px 12px}
#rms-map-workspace .map-muted{color:var(--muted);font-size:11px;line-height:1.4;margin:5px 0}
#rms-map-workspace .map-legend{position:absolute;left:10px;bottom:52px;width:225px;padding:10px;z-index:2;max-height:45%;overflow:auto}
#rms-map-workspace .map-ramp{height:12px;border-radius:6px;margin-top:6px}
#rms-map-workspace .map-legend-range{display:flex;justify-content:space-between;font-size:11px;font-variant-numeric:tabular-nums;margin:3px 0}
#rms-map-workspace .map-quality,#rms-map-workspace .map-categories{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:10px;margin:5px 0;color:var(--text)}
#rms-map-workspace .map-quality span,#rms-map-workspace .map-categories span{display:flex;align-items:center;gap:4px}
#rms-map-workspace i{display:inline-block;width:11px;height:11px;border-radius:2px;border:1px solid #55667533;flex-shrink:0}
#rms-map-workspace .map-inspector{position:absolute;right:10px;top:var(--map-controls-bottom,60px);bottom:52px;z-index:2;width:290px;box-sizing:border-box;padding:10px;overflow:auto}
#rms-map-workspace .map-inspector-title{display:flex;justify-content:space-between;align-items:center}
#rms-map-workspace .map-inspector-title button{width:26px;padding:0}
#rms-map-workspace .map-inspector.is-empty{bottom:auto;max-height:200px}
#rms-map-workspace .map-inspector.is-empty #map-native,#rms-map-workspace .map-inspector.is-empty #map-qc{display:none}
#rms-map-workspace .map-presentation{display:flex;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel,#f7f9fc)}
#rms-map-workspace .map-presentation button{border:0;border-radius:0;background:transparent}
#rms-map-workspace .map-presentation button[aria-pressed=true]{color:var(--blue);background:#e3efff}
#rms-map-workspace .map-inspector input[type=number]{width:51px}
#rms-map-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px ui-monospace,monospace;background:#f7f9fc;color:var(--text);padding:6px;border-radius:6px;max-height:250px;overflow:auto}
#rms-map-workspace summary{cursor:pointer;color:var(--muted);font-size:11px;padding:4px 0}
#rms-map-workspace .map-status{position:absolute;bottom:8px;left:8px;right:8px;padding:7px 10px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;z-index:3;font-size:10px;font-variant-numeric:tabular-nums}
#rms-map-workspace .map-status .map-muted{margin:0;margin-left:auto}
#rms-map-workspace .map-error{color:#9f4242}
#rms-map-workspace #map-evidence{position:absolute;left:10px;top:110px;z-index:6;width:300px;max-height:55%;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px}
@supports not (backdrop-filter:blur(1px)){#rms-map-workspace .map-glass{background:#fff}}
@media(max-width:1000px){#rms-map-workspace .map-controls{gap:4px}#rms-map-workspace .map-controls label{font-size:10px}#rms-map-workspace .map-controls select{max-width:145px}#rms-map-workspace .map-inspector{width:280px}}
@media(max-width:700px){#rms-map-workspace .map-controls{padding:5px;gap:4px}#rms-map-workspace .map-controls strong{display:none}#rms-map-workspace .map-controls select{max-width:125px}#rms-map-workspace .map-inspector{left:8px;right:8px;width:auto;top:auto;bottom:50px;max-height:48%}#rms-map-workspace .map-legend{width:175px;max-height:28%;font-size:10px}#rms-map-workspace #map-options{max-height:48%;overflow:auto}#rms-map-workspace .map-status .map-muted{display:none}}
@media(prefers-reduced-transparency:reduce){#rms-map-workspace .map-glass{background:#fff;backdrop-filter:none}}
