.location-page{min-width:0}.location-page .page-head{gap:12px;flex-wrap:wrap}.location-page .page-head .btn{white-space:normal}.location-privacy{max-width:800px;line-height:1.5}.location-sharing{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:9px 20px;background:#eef1f5;color:#465369;font-size:.82rem;border-bottom:1px solid #dce1e8}.location-sharing.is-active{background:#e4f2e9;color:#175e39}.location-sharing .btn{flex-shrink:0}.location-client-search{padding:15px 18px}.location-client-search .field{margin:0}.location-client-search #location-results{display:grid;gap:5px}.location-client-search .lookup-result{width:100%;text-align:left;white-space:normal}.location-client-search .lookup-result>span{display:block}.location-map-panel{border:1px solid var(--line,#ddd);border-radius:9px;background:#fff;overflow:hidden;margin:16px 0}.location-map-toolbar{display:flex;justify-content:space-between;gap:9px;align-items:center;flex-wrap:wrap;padding:10px}.location-map-toolbar .button-row{margin:0;flex-wrap:wrap}.location-map{height:450px;min-height:300px;background:#e9eeec;isolation:isolate;z-index:0}.location-map>p{padding:25px}.location-map-legend{display:flex;gap:15px;flex-wrap:wrap;padding:9px 12px;font-size:.75rem;color:var(--muted,#666)}.location-map-legend>span{display:flex;gap:5px;align-items:center}.location-map-legend i{display:inline-block;width:9px;height:9px;border-radius:50%}.location-legend-site{background:#26744c}.location-legend-proposed{background:#b36c18}.location-legend-stale{background:#81858b}#location-map-error:not(:empty){padding:8px 12px;margin:0;color:#8a4b1a}.location-lists{display:grid;grid-template-columns:1fr 1.4fr;gap:16px}.location-lists>.panel{min-width:0}.location-lists>.panel:only-child{grid-column:1/-1}.location-person{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line,#ddd)}.location-person>div{min-width:0;flex:1;overflow-wrap:anywhere}.location-person span:not(.location-person-dot){display:block;font-size:.78rem;color:var(--muted,#666);margin-top:3px}.location-person-dot{width:13px;height:13px;flex-shrink:0;border-radius:50%;background:var(--location-color,#1767b2)}.location-person.stale .location-person-dot{background:#81858b}.location-person.stale strong{color:#6e7279}.location-site{padding:13px 0 13px 12px;border-bottom:1px solid var(--line,#ddd);border-left:3px solid #26744c;margin:10px 0;overflow-wrap:anywhere}.location-site.proposed{border-left-color:#b36c18}.location-site.selected{background:#f3f7fc}.location-site-heading{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap}.location-site-heading strong{line-height:1.4}.location-status{font-size:.72rem;color:#26744c}.proposed .location-status{color:#945b17}.location-site p{font-size:.82rem;color:var(--muted,#666);margin:6px 0 10px}.location-site .button-row{flex-wrap:wrap;margin:0}.location-site a{text-decoration:none}.location-editor{border-color:#9dbcd7}.location-editor .panel-head{align-items:flex-start;gap:12px}.location-editor .panel-head h2{margin:0}.location-editor .panel-head p{font-size:.82rem;color:var(--muted,#666)}.location-editor input,.location-editor textarea,.location-editor select{max-width:100%;min-width:0}.location-editor textarea{resize:vertical}.location-editor .button-row{flex-wrap:wrap}.location-coordinate-summary,.location-zone-tools{display:grid;gap:7px;margin:16px 0 9px}.location-coordinate-summary span,.location-zone-tools>span{font-size:.8rem;color:var(--muted,#666)}.location-source{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0;padding:10px;background:#f4f6f8;border-radius:6px;font-size:.78rem}.location-source>span{flex:1 1 210px;overflow-wrap:anywhere}.location-editor-save{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line,#ddd);padding-top:14px}.location-editor-save .check-line{font-size:.82rem;flex:1 1 220px}#location-save-error{color:#a13826;font-size:.85rem;margin-top:10px}.location-map .leaflet-control-attribution{font-size:9px}.location-map .leaflet-popup-content{line-height:1.5;overflow-wrap:anywhere}
@media(max-width:760px){.location-lists{grid-template-columns:1fr}.location-map{height:390px}.location-page .page-head>.btn{width:100%}.location-editor{padding:16px}.location-sharing{padding:8px 12px;font-size:.75rem}.location-map-toolbar{align-items:stretch}.location-map-toolbar>.btn{flex:1}.location-map-toolbar .button-row{flex:1 1 100%}.location-map-toolbar .button-row .btn{flex:1}.location-editor-save>.btn{width:100%}.location-source .btn{white-space:normal}.location-person .btn{padding:8px}.location-editor .button-row .btn{flex:1 1 130px;white-space:normal}.location-map-legend{gap:10px;font-size:.7rem}.location-page .panel{max-width:100%}}
@media(max-width:360px){.location-sharing{align-items:flex-start;gap:8px}.location-sharing>.btn{padding:7px}.location-map{height:340px}.location-site .button-row .btn{flex:1 1 auto}.location-map .leaflet-control-attribution{max-width:245px}}

#location-sharing:has(.is-active){position:sticky;top:64px;z-index:19}.location-nearby{display:grid;justify-items:start;gap:7px;margin:8px 0 15px}.location-nearby>small{color:var(--muted,#666);font-size:.75rem}.location-nearby>div{width:100%}.location-nearby .lookup-result{width:100%;margin:5px 0;text-align:left}.location-nearby .lookup-result>span{display:block}.location-person time{display:block;color:var(--muted,#666);font-size:.72rem;margin-top:3px}.location-person-label{line-height:1.4;font-size:.72rem}.location-coordinate-summary>small{color:var(--muted,#666);font-size:.76rem}@media(max-width:760px){#location-sharing:has(.is-active){top:68px}.location-nearby>.btn{width:100%}.location-editor textarea[readonly]{min-height:70px}}

.location-map-panel{scroll-margin-top:124px}.location-draw-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px;background:#e8f2fb;color:#12517f;font-size:.8rem}.location-draw-toolbar>span{flex:1 1 200px}.location-draw-toolbar .btn{white-space:normal}

/* The selected client and place stay visible when the controls are folded. */
.location-client-panel{padding:12px 14px;margin:12px 0}
.location-selection-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.location-selection-heading>div{min-width:0;overflow-wrap:anywhere}
.location-selection-heading strong{font-size:.95rem;line-height:1.4}
.location-selection-heading small{display:block;margin-top:3px;font-size:.75rem;color:var(--muted,#666)}
.location-selection-heading>.btn{flex:none}
.location-selection-heading .location-status-row{gap:5px;margin:5px 0 0;font-size:.7rem}
.location-selection-heading .location-geometry-status{padding:2px 6px;gap:4px}
.location-selection-heading .location-geometry-status strong{font-size:inherit}
#location-client-panel-content{max-height:310px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#location-client-panel-content[hidden]{display:none}
.location-client-panel .location-client-search{padding:10px 0 0}
.location-client-search .field{font-size:.78rem;gap:4px}
.location-client-search input{padding:7px 10px}
#location-results{max-height:150px;overflow:auto}
#location-results .lookup-result{padding:7px 9px}
#location-results .lookup-result>strong{font-size:.82rem}
#location-results .lookup-result>small{display:block;color:var(--muted,#666);font-size:.72rem;line-height:1.4;margin-top:2px}
.location-client-panel .location-editor{padding:10px 0 0;border:0}
.location-status-row{display:flex;gap:7px 16px;align-items:center;flex-wrap:wrap;margin:7px 0;font-size:.76rem}
.location-geometry-status{display:inline-flex;gap:7px;padding:4px 8px;border-radius:5px;background:#f0f2f5;color:#5d6570}
.location-geometry-status.confirmed{background:#e4f2e9;color:#175e39}
.location-editor .button-row{gap:6px;margin:6px 0}
.location-editor .btn.small{font-size:.76rem;padding:6px 9px;min-height:30px}
.location-source-buttons .btn.primary{background:#26744c;border-color:#26744c;color:#fff}
.location-editor .field-note{font-size:.72rem;margin:5px 0;line-height:1.4}
.location-preview{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:7px 9px;margin:7px 0;background:#fff4e3;border-left:3px solid #b36c18;border-radius:4px;font-size:.73rem;line-height:1.4}
.location-preview>span{flex:1 1 250px;overflow-wrap:anywhere}
.location-point-detail{font-size:.72rem;color:var(--muted,#666);margin:5px 0}
.location-confirmations{display:flex;flex-wrap:wrap;gap:6px 20px;margin:9px 0;font-size:.76rem}
.location-editor .location-editor-save{gap:7px;padding-top:8px;margin-top:6px}
.location-editor-save>.field-note{flex:1 1 240px}
.location-editor textarea[hidden]{display:none}
.location-site .location-status-row{color:var(--muted,#666)}
@media(max-width:760px){
  #location-client-panel-content{max-height:36vh;min-height:0}
  .location-client-panel{padding:10px 11px}
  .location-map{height:48vh;min-height:290px}
  .location-editor .button-row .btn{flex:0 1 auto;white-space:normal}
  .location-editor-save>.btn{width:auto;flex:0 0 auto}
  .location-editor .location-editor-save>.field-note{flex-basis:100%}
  .location-map-panel{margin:10px 0}
}

.location-selection-heading>.location-selection-actions{display:flex;flex:none;gap:5px;flex-direction:column;align-items:stretch;overflow-wrap:normal}.location-selection-actions .btn{white-space:nowrap}

/* The tip is the chosen entrance; a large pin remains easy to drag on a phone. */
.location-entry-marker{background:none;border:0;cursor:grab;touch-action:none}
.location-entry-marker:active{cursor:grabbing}
.location-entry-pin{position:absolute;left:4px;top:2px;width:28px;height:36px;filter:drop-shadow(0 2px 2px #0008)}
.location-entry-pin:before{content:'';position:absolute;inset:0 0 8px;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#d8750d;transform:rotate(-45deg)}
.location-entry-pin:after{content:'';position:absolute;left:10px;top:10px;width:8px;height:8px;border-radius:50%;background:#fff}
.location-entry-marker:focus-visible{outline:3px solid #0873be;outline-offset:3px;border-radius:12px}
