.map-shell{background:#fff!important;padding:12px;border-radius:2px}.map-controls{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin-bottom:8px}.map-controls label{font-size:12px;min-width:150px}.map-controls select{background:white!important}.map-controls #map-status{font-size:12px;color:#65685f;margin:0 0 7px auto}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:16px}.map-main{min-width:0}#ligand-plot{display:block;width:100%;height:clamp(220px,34vh,360px);background:#fff;border:1px solid #e2e4df}#ligand-plot .family-label{font:11px 'Segoe UI',Arial,sans-serif;fill:#43483d;paint-order:stroke;stroke:white;stroke-width:3px;stroke-linejoin:round}#ligand-plot g[role=button]{cursor:pointer}#ligand-plot g:focus{outline:none}#ligand-plot g:focus circle:last-of-type{stroke:#000;stroke-width:3}#map-legend{font-size:12px;padding:8px 10px;min-height:64px}#map-legend strong{font-weight:500}.map-gradient{height:10px;margin:5px 0}.map-ticks{position:relative;height:18px;margin:0 14px}.map-ticks span{position:absolute;transform:translateX(-50%);font-size:11px}#map-legend small{font-size:11px}.map-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;padding:10px 0;max-height:130px;overflow:auto}.map-categories i{width:10px;height:10px;display:inline-block;border-radius:50%;margin-right:6px}.map-categories div{overflow-wrap:anywhere}#map-detail{border-left:1px solid #e0e1db;padding-left:14px;max-height:calc(34vh + 70px);overflow:auto}#map-detail>summary{font-size:12px;cursor:pointer;font-weight:600;padding:6px 0}#map-inspector{font-size:12px;overflow-wrap:anywhere}#map-inspector h3{margin:9px 0 3px;font-size:17px}#map-inspector p{margin:4px 0;font-size:11px}#map-inspector>svg{width:100%;height:140px;background:white;display:block}#map-inspector dl{grid-template-columns:1fr 1.3fr;margin:6px 0}#map-inspector dt,#map-inspector dd{font-size:11px;padding:4px 0;border-color:#e5e6df}.segmented button span{display:inline!important;margin:0!important}.map-hint{font-size:11px;color:#60665b;margin:4px 0 0}@media(max-width:759px){.map-layout{grid-template-columns:1fr;gap:4px}#map-detail{border-left:0;border-top:1px solid #ddd;padding:0;max-height:none}#ligand-plot{height:clamp(210px,32vh,300px)}.map-controls{gap:8px}.map-controls label{flex:1;min-width:110px}.map-controls #map-status{width:100%;margin:2px 0}.segmented button{padding:7px 8px!important;font-size:11px}.segmented button span{font-size:11px!important}#map-inspector>svg{height:170px}#map-inspector dl{grid-template-columns:1fr 1fr}#map-inspector dt{border-bottom:1px solid #ddd}}@media(max-height:600px) and (min-width:760px){#ligand-plot{height:230px}#map-detail{max-height:300px}}

.map-view-tools{display:flex;align-items:end;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.map-view-tools label{font-size:13px;display:flex;flex-direction:column;gap:3px;min-width:150px;flex:1}
.map-view-tools select{width:100%;background:white!important}
.map-zoom{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.map-zoom button{min-height:38px;min-width:38px;border:1px solid #c5c9bf;background:#f6f7f3;color:#33483c;border-radius:3px;padding:5px 10px;font-size:14px}
.map-zoom output{font-size:13px;min-width:44px;text-align:center}
.map-viewport{width:100%;overflow:auto;border:1px solid #e2e4df;background:#fff;overscroll-behavior:auto}
#ligand-plot{max-width:none;border:0;height:auto}
#ligand-plot .system-map-label{font:12px 'Segoe UI',Arial,sans-serif;fill:#33483c;paint-order:stroke;stroke:white;stroke-width:3px}
#map-detail{max-height:min(65vh,620px)}
@media(max-width:759px){#map-detail{max-height:none}.map-view-tools label{flex-basis:100%}.map-zoom button{min-height:44px;min-width:44px}.map-zoom{width:100%;justify-content:space-between}}
