.collection-maps-panel .panel-head{align-items:center;flex-wrap:wrap;padding:14px 18px}
.collection-map-choice{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.collection-map-choice select{min-width:180px;max-width:280px}
.collection-map-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:480px}
#collection-map-canvas{height:70vh;min-height:480px;max-height:800px;z-index:0}
#collection-map-layers{padding:12px;border-right:1px solid var(--line);max-height:800px;height:70vh;min-height:480px;overflow:auto}
.collection-map-layer-actions{display:flex;gap:8px;margin-bottom:12px}
.collection-map-layer-actions .collection-map-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:7px;flex:0 0 auto}
.collection-map-icon-button svg{width:20px;height:20px;pointer-events:none}
#collection-map-search{width:100%;margin-bottom:12px}
.collection-map-draw-layer{display:grid;gap:5px;font-size:11px;margin-bottom:14px}
.collection-map-draw-layer select{max-width:100%}
.collection-map-layer{border:1px solid var(--line);border-radius:8px;margin-bottom:8px;background:#fff}
.collection-map-layer summary{display:flex;align-items:center;gap:8px;padding:10px 8px;cursor:pointer;font-size:11px;line-height:1.4}
.collection-map-layer summary span{flex:1;overflow-wrap:anywhere}
.collection-map-layer summary input{flex:0 0 auto;width:15px;height:15px;accent-color:var(--green)}
.collection-map-layer summary small{color:var(--muted)}
.collection-map-layer-edit{border:0;background:transparent;padding:4px;color:var(--green)}
.collection-map-level-access{width:100%;margin-bottom:12px}
dialog:has(#collection-map-layer-access-form){width:min(650px,94vw);max-width:94vw;max-height:90vh;overflow:auto}
#collection-map-layer-access-form{display:grid;gap:14px;min-width:0}
#collection-map-layer-access-form p{font-size:12px}
.collection-map-access-list{max-height:45vh;overflow:auto;border:1px solid var(--line);border-radius:8px}
.collection-map-access-row{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--line);font-size:12px;cursor:pointer}
.collection-map-access-row:last-child{border-bottom:0}
.collection-map-access-row input{width:16px;height:16px;padding:0;margin:0;accent-color:var(--green)}
.collection-map-access-row span{overflow-wrap:anywhere}
.collection-map-access-row small{font-size:10px;color:var(--muted)}
@media(max-width:480px){.collection-map-access-row{grid-template-columns:16px minmax(0,1fr)}.collection-map-access-row small{grid-column:2}}
.collection-map-layer ul{list-style:none;margin:0;padding:0 8px 8px;max-height:280px;overflow:auto}
.collection-map-layer li button{width:100%;padding:7px 5px;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;background:transparent;color:var(--ink);font-size:11px}
.collection-map-layer li button:hover{background:var(--green-light)}
.collection-map-bulk-tools{display:flex;flex-wrap:wrap;gap:6px;padding:6px 8px;align-items:center;font-size:11px}
.collection-map-bulk-tools label{display:flex;gap:5px;align-items:center}
.collection-map-bulk-tools select{max-width:180px;padding:5px}
.collection-map-layer li{display:flex;align-items:center;gap:5px}
.collection-map-layer li input[type=checkbox],.collection-map-bulk-tools input[type=checkbox]{width:15px;height:15px;flex-shrink:0;accent-color:var(--green)}
.collection-map-layer li input.collection-map-point-check{appearance:none;display:grid;place-content:center;margin:0;border:2px solid var(--point-color);border-radius:3px;background:#fff;cursor:pointer;padding:0}
.collection-map-point-check:checked::after{content:'';width:7px;height:4px;border-left:2px solid #253c32;border-bottom:2px solid #253c32;transform:rotate(-45deg);margin-top:-2px}
.collection-map-point-check:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media(forced-colors:active){.collection-map-layer li input.collection-map-point-check{appearance:auto}}
.collection-map-layer li button[draggable=true]{cursor:grab}
.collection-map-layer li button[draggable=true]:active{cursor:grabbing}
.collection-map-layer.collection-map-drop-target{outline:2px solid var(--green);background:var(--green-light)}
.collection-map-layer summary[draggable=true]{cursor:grab}
.collection-map-layer.collection-map-layer-before{border-top:3px solid var(--green)}
.collection-map-layer.collection-map-layer-after{border-bottom:3px solid var(--green)}
.collection-map-marker{display:block;width:18px;height:18px;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px #0006}
.collection-map-marker-icon{background:transparent;border:0}
.collection-map-quick-style{display:grid;gap:8px;margin:10px 0}
.collection-map-palette{display:flex;flex-wrap:wrap;gap:6px;max-width:270px}
.collection-map-palette .button{white-space:normal;text-align:left}
.collection-map-palette-swatch{display:inline-block;width:18px;height:18px;flex-shrink:0;border:1px solid #0003;border-radius:4px}
.collection-map-quick-style details summary{cursor:pointer;color:var(--muted);font-size:11px;padding:5px 0}
.collection-map-custom-marker{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px #0006;font-size:12px;font-weight:700;line-height:1}
.collection-map-custom-marker.square{border-radius:5px}
.collection-map-custom-marker.rectangle{border-radius:5px;padding:0 8px;white-space:nowrap}
.collection-map-custom-marker.rectangle span{overflow:visible;text-overflow:clip}
.collection-map-custom-marker.diamond{transform:rotate(45deg);border-radius:3px;width:28px;height:28px;margin:2px}
.collection-map-custom-marker.diamond span{transform:rotate(-45deg)}
.collection-map-custom-marker span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.collection-map-checkbox{display:flex;align-items:center;gap:8px}
.collection-map-checkbox input{width:16px;height:16px}
dialog:has(#collection-map-bulk-icons){width:min(720px,94vw);max-width:94vw;max-height:90vh;overflow:auto}
#collection-map-bulk-icons{grid-template-columns:repeat(2,minmax(0,1fr))}
#collection-map-bulk-icons>.full{grid-column:1/-1}
#collection-map-bulk-icons label{min-width:0}
#collection-map-bulk-icons :is(select,input){width:100%;min-width:0;max-width:100%}
.collection-map-icon-preview{overflow-wrap:anywhere;font-size:12px}
.collection-map-icon-preview p+p{margin-top:6px}
@media(max-width:540px){#collection-map-bulk-icons{grid-template-columns:minmax(0,1fr)}}
.collection-maps-panel .leaflet-popup-content p{white-space:pre-wrap;max-height:200px;overflow:auto;color:var(--ink);font-size:12px}
@media(max-width:760px){.collection-map-layout{grid-template-columns:1fr}#collection-map-layers{height:auto;min-height:0;max-height:220px;border-right:0;border-bottom:1px solid var(--line)}#collection-map-canvas{height:65vh;min-height:360px}.collection-map-choice select{max-width:200px}}

.shared-map-page main{margin-left:0;max-width:1600px;margin-right:auto;margin-left:auto}
.shared-map-page #toast{left:50%}
.collection-map-navigation{display:flex;gap:6px;flex-wrap:wrap;min-width:210px}
.collection-map-navigation a{color:var(--green);text-decoration:none}

dialog:has(#map-shares-manager){width:min(1380px,96vw)}
.map-shares-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:18px 0 8px}
.map-shares-toolbar label{display:grid;gap:6px;font-size:12px;min-width:240px}
.map-shares-toolbar input{width:100%}
.map-shares-scroll{overflow:auto;max-height:58vh;border:1px solid var(--line);border-radius:9px}
.map-shares-table{width:100%;min-width:1050px;border-collapse:collapse;font-size:12px}
.map-shares-table th,.map-shares-table td{padding:13px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);white-space:normal}
#map-shares-manager .map-shares-table :is(th,td){text-align:left}
.map-shares-table thead th{position:sticky;top:0;background:#f3f6ef;z-index:1;font-size:11px}
.map-shares-table tbody th{min-width:160px;max-width:240px;overflow-wrap:anywhere}
.map-shares-table small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:5px}
.map-shares-table .map-share-selected{background:#f6f9f3}
.map-share-link-cell{min-width:280px;max-width:430px}
.map-share-link{display:flex;gap:6px;margin-bottom:6px}
.map-share-link input{width:100%;min-width:0;font-size:11px}
.map-share-link-cell>a{font-size:11px;color:var(--green)}
.map-share-status{display:inline-block;padding:4px 8px;border-radius:12px;background:#eef0ed;color:var(--muted);white-space:nowrap}
.map-share-status.is-active{background:#e0f1e5;color:#245c39}
.map-shares-table [data-share-days]{width:74px}
.map-share-table-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:180px}
.map-shares-help{font-size:11px;line-height:1.6;margin:14px 0}
@media(max-width:740px){.map-shares-toolbar{align-items:start;flex-direction:column}.map-shares-toolbar label{width:100%;min-width:0}.map-shares-scroll{max-height:52vh}}
