.target-editor{position:fixed;inset:0;z-index:1400;background:#edf2f8;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#19314a;height:100dvh;padding-top:env(safe-area-inset-top)}
.target-editor button,.target-editor select{min-height:44px;min-width:44px}.target-top{display:flex;gap:10px;align-items:center;background:#102238;color:white;padding:8px 12px}.target-top strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.target-top>div{flex:1;min-width:0}.target-top small{color:#a6dce9}.target-main{position:relative;min-height:0;overflow:hidden}.target-main #map-draft-geometry{height:100%;border-radius:0}.target-main #map-draft-svg{height:100%;min-height:0;width:100%;touch-action:none}.target-main .map-fullscreen-open,.target-main .map-touch-help{display:none}.target-toolbar{background:white;box-shadow:0 -4px 20px #10223815;padding:8px 8px calc(8px + env(safe-area-inset-bottom));display:flex;gap:6px;overflow-x:auto;z-index:3}.target-toolbar button{flex:1;white-space:nowrap;padding:8px}.target-toolbar button[aria-pressed=true]{background:#193e63;color:white;outline:2px solid #78d9ef}.target-tool-status{position:absolute;top:50px;left:8px;right:8px;z-index:3;pointer-events:none}.target-tool-status>span{display:inline-block;background:#fffef3;padding:6px 10px;border-radius:8px;box-shadow:0 2px 12px #10223820}.target-drawing{position:absolute;bottom:10px;left:8px;right:8px;display:flex;gap:8px;justify-content:center;z-index:4}.target-sheet{position:absolute;right:12px;bottom:12px;width:350px;max-height:75%;overflow:auto;background:white;border:1px solid #cad7e5;border-radius:18px;box-shadow:0 12px 40px #10223840;padding:14px;z-index:5;overscroll-behavior:contain}.target-sheet[hidden]{display:none}.target-sheet h3{margin:0}.target-sheet header{display:flex;align-items:center;justify-content:space-between}.target-sheet label{margin:8px 0;display:block}.target-sheet input,.target-sheet textarea,.target-sheet select{width:100%;box-sizing:border-box}.target-sheet .check{display:flex;gap:8px}.target-sheet .check input{width:auto}.target-sheet .actions{display:flex;gap:6px;flex-wrap:wrap}.target-photo-grid{display:flex;gap:8px;overflow:auto;margin:8px 0}.target-photo-grid img{width:90px;height:70px;object-fit:cover;border-radius:8px}.target-photo-grid figure{margin:0;flex:none}.target-photo-grid figure button{display:block}.target-alert{color:#a32b38;white-space:pre-wrap}.target-legend{font-size:13px;padding:8px;border-radius:8px;background:#f1f5fa}.target-preview{padding:14px;overflow:auto;max-height:60dvh}.target-photo-card{padding:12px;border:1px solid #cbd9e8;border-radius:12px;margin:10px 0;background:white}.target-photo-card.important{border-left:5px solid #edbb22}.target-photo-card p{white-space:pre-wrap}.target-photo-card header{display:flex;gap:8px;align-items:center;justify-content:space-between}.target-gallery{position:fixed;inset:0;z-index:1700;background:#091421f5;display:flex;flex-direction:column;padding:12px;color:white}.target-gallery img{flex:1;min-height:0;object-fit:contain;width:100%;touch-action:pinch-zoom}.target-gallery .actions{display:flex;justify-content:space-between;gap:12px}.target-gallery button{min-height:44px}.target-gallery.zoom img{object-fit:none;overflow:auto}.target-gallery-close{align-self:flex-end}.target-photo-list{margin-top:12px}.target-note-pin{cursor:pointer}.target-photo-card:target{outline:3px solid #35a3c4}.target-save-review{position:absolute;inset:12px;z-index:7;background:white;border-radius:16px;padding:18px;overflow:auto;box-shadow:0 12px 50px #10223840}.target-save-review label{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #d6e0ec;border-radius:8px}.target-save-review input{width:auto}.target-save-review .actions{display:flex;gap:10px;flex-wrap:wrap}.target-viewport-slim #map-draft-geometry{height:45dvh}
@media(max-width:650px){.target-sheet{left:8px;right:8px;bottom:8px;width:auto;max-height:55%;padding:12px}.target-top{gap:6px;padding:8px}.target-top strong{font-size:14px}.target-top button{padding:8px}.target-toolbar{gap:4px}.target-toolbar button{font-size:12px}.target-tool-status{top:48px;font-size:12px}.target-main .map-background-controls{max-width:90%;flex-wrap:wrap}.target-save-review{inset:6px}.target-editor textarea{max-height:100px}}
.target-main.map-draft-workspace{display:block;grid-template-columns:none;padding:0;margin:0;border:0;border-radius:0;background:#e7edf4}.target-main #map-draft-geometry{display:block;position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0}.target-main #map-draft-svg{position:absolute;inset:0;height:100%!important;max-height:none!important;min-height:0!important}.target-toolbar button{min-width:44px;width:auto;flex:1 1 0}.target-sheet .actions>button{width:auto;flex:1}.target-sheet [data-attention]{font-size:13px;padding:8px}.target-sheet textarea{min-height:65px}.target-sheet label{font-size:13px}.target-sheet input,.target-sheet select{min-height:44px;padding:8px}.target-sheet h3{font-size:16px}.target-editor .target-drawing button{width:auto}.target-editor .map-background-controls{z-index:2}.target-editor .target-sheet{z-index:5}.target-tool-status{top:54px}.target-main .map-bottom-controls{bottom:64px}.target-photo-grid figcaption input{max-width:110px;font-size:12px}
.target-sheet header{position:sticky;top:-14px;z-index:2;margin:-14px -14px 8px;padding:10px 14px;background:white;border-bottom:1px solid #e3eaf2;border-radius:16px 16px 0 0;box-shadow:none;height:auto;min-height:0;color:#19314a}.target-top small{white-space:nowrap;font-size:11px}.target-top [data-help]{font-size:12px;padding:8px}.target-top [data-preview]{font-size:17px}.target-top button{flex-shrink:0}.target-sheet>button{margin:4px}
.target-photo-grid>button{display:flex;flex-direction:column;gap:5px;align-items:flex-start;max-width:150px}.target-photo-grid small{white-space:normal;overflow-wrap:anywhere;text-align:left}.target-gallery [data-photo-caption]{text-align:center;white-space:pre-wrap;max-height:15vh;overflow:auto;margin:8px}

/* Authoring uses a full-height canvas; its sibling controls must overlay it. */
.target-editor .map-background-controls{position:absolute;top:8px;left:8px;margin:0;padding:4px;background:#fffffff2;border-radius:10px;z-index:4;gap:3px}
.target-editor .map-background-controls button{min-width:52px;min-height:44px;width:auto;padding:8px 12px;font-size:13px}
.target-editor .map-background-status{top:auto;bottom:8px;max-width:70%;z-index:3}
.target-editor .target-toolbar button[aria-pressed=false]{background:#edf3f9;color:#294965;border:1px solid #cbd9e6;box-shadow:none}
.target-editor .target-toolbar button[aria-pressed=true]{background:#173b61;color:#fff}
@media(min-width:651px){.target-editor .target-toolbar{justify-content:center}.target-editor .target-toolbar button{flex:0 1 140px}}
.target-editor{grid-template-columns:minmax(0,1fr);max-width:100vw;box-sizing:border-box}.target-editor>header,.target-editor>footer,.target-editor>.target-main{min-width:0;box-sizing:border-box}.target-editor .map-attribution{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.target-editor .target-drawing{bottom:46px}

/* Consistent controls in selection cards, menus and export panels. */
.target-editor .target-sheet .actions{align-items:stretch;gap:8px}
.target-editor .target-sheet .actions>button{display:flex;align-items:center;justify-content:center;min-height:48px;line-height:1.3;margin:0;padding:10px 12px}
.target-editor .target-sheet .target-photo-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.target-editor .target-photo-choices [data-close]{grid-column:1/-1}
.target-editor .target-sheet header{gap:12px;margin-bottom:12px}
.target-editor .target-sheet>p{line-height:1.45;margin:10px 0}
.target-archive-actions{display:grid;gap:8px;margin:16px 0;padding-top:14px;border-top:1px solid #d8e2ec}
.target-archive-actions small,.target-export-bar small{display:block;color:#526780;line-height:1.45}
.target-export-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.target-export-bar [data-export-status]{flex-basis:100%;margin:0}
.target-editor [data-export-status]{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:650px){.target-export-bar{align-items:stretch}.target-export-bar>button{width:100%}}

.target-editor .target-sheet .target-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}

/* Compact field inspector: geometry first, optional content on demand. */
.target-editor .target-sheet{width:320px;padding:12px;max-height:70%;border-radius:16px}
.target-editor .target-selection-header{background:#102b45;color:white;border:0;margin:-12px -12px 12px;padding:10px 12px;top:-12px}
.target-selection-header>div{min-width:0}.target-selection-header small{color:#78e4f7;font-size:10px;letter-spacing:.1em}.target-selection-header h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0}.target-selection-header button{flex:none}
.target-editor .target-edit-actions{display:grid;grid-template-columns:1.3fr .8fr 1fr}.target-editor .target-edit-actions>button{font-size:12px;padding:8px 5px;min-width:0}
.target-editor .target-importance{margin:10px 0;gap:6px}.target-editor .target-importance>button{min-height:44px;padding:7px;font-size:12px;border:1px solid #d8e2ec}.target-editor .target-importance>button[aria-pressed=true]{border-color:#193e63;background:#e8f0f7;color:#102b45;box-shadow:inset 0 0 0 1px #193e63}
.target-section{border-top:1px solid #e2eaf2;margin:0}.target-section>summary{min-height:44px;box-sizing:border-box;padding:12px 0;cursor:pointer;font-weight:600;font-size:13px}.target-section>summary small{float:right;color:#61758b;font-weight:400}.target-section[open]{padding-bottom:8px}.target-editor .target-scope{font-size:11px;color:#61758b;margin:8px 0 0;line-height:1.4}
@media(min-width:651px){.target-editor .target-drawing{right:360px}}
@media(max-width:650px){.target-editor .target-sheet{width:auto;max-height:48%;padding:10px}.target-editor .target-selection-header{margin:-10px -10px 10px;top:-10px}.target-editor .target-sheet:has(.target-selection-header){max-height:48%}.target-editor .target-main:has(.target-sheet:not([hidden])) .target-drawing{display:none}}
.target-editor .target-sheet .target-section{padding:0;margin:0;border-radius:0;background:transparent;border:0;border-top:1px solid #e2eaf2}
.target-editor .target-section>summary{margin:0;padding:11px 0;line-height:22px;min-height:44px}
.target-top [data-state]{display:block;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* Field tools are always reachable, grouped by purpose. */
.target-editor .target-toolbar{display:flex;align-items:stretch;justify-content:center;gap:12px;overflow:visible;margin:0}
.target-tool-group{min-width:0;border-right:1px solid #dce5ef;padding-right:12px}.target-tool-group:last-child{border-right:0;padding-right:0}
.target-tool-group>small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#687c93;margin:0 0 5px 3px}
.target-tool-group>div{display:flex;gap:5px}.target-editor .target-tool-group button{flex:1 1 0;min-width:55px;min-height:44px;font-size:12px;line-height:1.2;padding:8px;white-space:normal}
.target-draw-group{flex:0 1 650px}.target-edit-group{flex:0 1 175px}.target-info-group{flex:0 1 100px}
@media(max-width:650px){.target-editor .target-toolbar{display:grid;grid-template-columns:1fr auto;gap:6px;padding:6px 6px calc(6px + env(safe-area-inset-bottom))}.target-edit-group{grid-column:1;grid-row:1}.target-info-group{grid-column:2;grid-row:1}.target-draw-group{grid-column:1/-1;grid-row:2}.target-tool-group{border:0;padding:0}.target-tool-group>small{font-size:9px;margin-bottom:3px}.target-editor .target-tool-group button{min-width:0;min-height:44px;font-size:11px;padding:5px 2px}.target-draw-group>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.target-info-group button{min-width:84px!important}.target-edit-group>div{max-width:220px}}
.target-editor .target-drawing{flex-wrap:wrap}.target-simplify{width:min(480px,95vw)}.target-simplify h3{margin-top:0}.target-simplify p{font-size:13px}.target-simplify .actions>button{min-height:44px;flex:1}
.target-selection-header>div{flex:1}.target-editor .target-selection-header .target-title-edit{display:flex;align-items:center;gap:5px;margin:2px 0 0}.target-editor .target-title-edit input{margin:0;padding:4px 0;min-height:44px;border:0;border-bottom:1px solid #ffffff45;border-radius:0;background:transparent;color:#fff;font-size:16px;font-weight:650;box-shadow:none;min-width:0}.target-editor .target-title-edit input::placeholder{color:#fff;opacity:1}.target-title-edit span{color:#a6dce9;font-size:17px}.target-editor .target-title-edit input:focus{outline:2px solid #83c9ef;outline-offset:2px}.target-editor .target-note-edit{margin:10px 0}.target-editor .target-note-edit textarea{min-height:60px;max-height:120px;font-size:14px;font-weight:400}
.target-gallery-top{display:flex;align-items:center;gap:8px;flex-shrink:0}.target-gallery-top .target-gallery-close{margin-left:auto}.target-gallery [data-gallery-status]{margin:4px 0;font-size:13px;flex-shrink:0}.target-gallery [data-gallery-status]:empty{display:none}

/* Visible drawing actions retain meaning independently of the working-role theme. */
.target-editor .target-drawing button{border:2px solid white;box-shadow:0 3px 12px #10223840;font-weight:700}
.target-editor .target-drawing .target-action-confirm{background:#167044;color:#fff}
.target-editor .target-drawing .target-action-danger{background:#b62e40;color:#fff}
.target-editor .target-drawing .target-action-undo{background:#f4c354;color:#382a08}
.target-editor .target-drawing .target-action-primary{background:#245cc3;color:#fff}
.target-editor .target-drawing button:hover:not(:disabled){filter:brightness(.92)}
.target-editor .target-drawing button:disabled{background:#e5eaf0;color:#68788c;border-color:#f8fafc;box-shadow:none;opacity:1}
.target-tool-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;border-radius:6px;font-size:20px;line-height:1;background:#fff}
.target-tool-icon.icon-line{color:#c83145}.target-tool-icon.icon-area{color:#ae7500}.target-tool-icon.icon-finger{color:#7853bb}.target-tool-icon.icon-note{color:#087e85}.target-tool-icon.icon-photo{color:#2764ba}.target-tool-icon.icon-box{color:#19834a;border-radius:50%}
@media(max-width:650px){.target-editor .target-draw-group>div{grid-template-columns:repeat(3,minmax(0,1fr))}.target-editor .target-draw-group button{display:flex;align-items:center;justify-content:center;gap:4px;padding:5px;font-size:12px}.target-editor .target-drawing{bottom:12px}.target-tool-icon{width:22px;height:22px;font-size:19px}}

.target-option-block{border-top:1px solid #dce5ef;padding:12px 0}.target-option-block h4{margin:0 0 8px;font-size:13px;color:#526880}.target-option-block small{display:block;font-size:12px;line-height:1.5;color:#60758b;margin:6px 0}.target-options-address{font-size:13px;color:#60758b;margin:8px 0 14px}.target-editor .target-option-link{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;text-align:left}.target-option-link span:last-child{font-size:11px;white-space:nowrap}.target-options-legend{display:flex;gap:16px;font-size:12px;margin-top:12px}.target-option-block summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}.target-option-block summary::before{content:'▸';margin-right:8px}.target-option-block[open] summary::before{content:'▾'}.target-option-block>button{width:100%}.target-option-block p{font-size:13px}.target-option-block:last-child{padding-bottom:0}

.target-tool-icon svg{display:block;width:20px;height:20px;flex:none}.target-editor .target-draw-group button{display:flex;align-items:center;justify-content:center;gap:5px}

@media(max-width:650px){.areas-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.areas-navigation>button:first-child{grid-column:1/-1}.areas-navigation>.button{min-width:0;margin:0;font-size:12px;padding:10px 6px;text-align:center}}
/* Compact field workspace: short labels, stable touch targets, contextual help. */
.manager-instructions-button{width:44px!important;height:44px;min-width:44px;padding:0!important;border-radius:50%;font-size:20px!important;line-height:1}
body[data-section=areas] #view>.topline{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;margin:0 0 16px;padding:0;gap:12px}
body[data-section=areas] #view>.topline h1{margin:0;font-size:28px}body[data-section=areas] #view>.topline p{margin:5px 0 0;font-size:14px}
.areas-navigation{display:flex;gap:6px;align-items:center;padding:6px;background:#e7eef5;border-radius:14px;margin:0 0 18px}
.areas-navigation>*{margin:0!important;min-height:44px;font-size:13px;padding:10px 14px;border-radius:9px;white-space:nowrap}
.areas-workspace{padding:18px!important;border-radius:16px}.areas-workspace h2{font-size:18px;margin:0}.areas-workspace h2 small{font-size:12px;color:#64778b;background:#eaf0f6;border-radius:12px;padding:3px 8px;vertical-align:middle}
.areas-workspace .workday-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.areas-workspace .workday-panel-heading>button{width:auto;margin:0;min-height:44px;padding:8px 14px;font-size:13px}
.areas-workspace .workday-call-row{padding:14px 0;margin:0;gap:12px;border-bottom:1px solid #e4ebf2}.areas-workspace .workday-call-row:last-child{border-bottom:0}.areas-workspace h3{font-size:16px;margin:0 0 5px}.areas-workspace p{margin:4px 0;font-size:13px}.areas-workspace .workday-instructions{max-height:3em;overflow:auto}.areas-workspace .actions>*{min-height:44px;padding:10px 12px;font-size:12px;margin:0}
.target-address-link{cursor:pointer}.target-address-link:focus{outline:none}.target-address-link:focus circle{stroke:#efb233;stroke-width:4}.target-address-row{display:block;width:100%;text-align:left;margin-top:6px;white-space:normal}.target-top [data-help]{border-radius:50%;padding:0;width:44px;flex-shrink:0}.target-top [data-targets]{font-size:12px;padding:8px}
@media(max-width:650px){
 body[data-section=areas] #view{padding:14px 12px}
 body[data-section=areas] #view>.topline{margin-bottom:12px}body[data-section=areas] #view>.topline h1{font-size:24px}body[data-section=areas] #view>.topline p{font-size:12px}
 .areas-navigation{display:flex;flex-wrap:wrap;gap:4px;padding:4px;margin-bottom:12px}.areas-navigation>*{flex:1 1 auto;min-width:0;font-size:11px!important;padding:8px!important}.areas-navigation>button:first-child{flex:1 1 48%}.areas-navigation>a:first-of-type{flex:1 1 40%}
 .areas-workspace{padding:12px!important}.areas-workspace .workday-call-row{display:flex;flex-wrap:wrap}.areas-workspace .workday-call-row>div:first-child{flex:1 1 130px}.areas-workspace .actions{display:flex;flex-wrap:wrap;width:auto}
 .target-top{display:grid;grid-template-columns:44px minmax(0,1fr) 44px auto;gap:4px;padding:5px 6px}.target-top>div{grid-column:2;grid-row:1}.target-top [data-back]{grid-column:1;grid-row:1}.target-top [data-help]{grid-column:3;grid-row:1}.target-top [data-save]{grid-column:4;grid-row:1}.target-top [data-preview]{display:none}.target-top [data-targets]{position:absolute;right:8px;top:110px;z-index:6;min-height:36px;background:#102b45;color:white;border:1px solid #86bed0}.target-top small{font-size:10px;display:block;line-height:1.3}.target-top strong{font-size:13px}
 .target-editor .target-toolbar{gap:4px;padding:4px 5px calc(4px + env(safe-area-inset-bottom))}.target-tool-group>small{display:none}.target-editor .target-draw-group>div{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.target-editor .target-draw-group button{flex-direction:column;gap:2px;font-size:10px;padding:4px 1px;min-height:48px;white-space:nowrap}.target-editor .target-edit-group button,.target-editor .target-info-group button{min-height:44px;padding:5px;font-size:11px}.target-edit-group>div{max-width:180px}.target-tool-icon{width:20px;height:20px;background:transparent}.target-tool-icon svg{width:18px;height:18px}.target-sheet{max-height:48%;border-radius:14px}.target-tool-status{right:85px}.target-main .map-background-controls button{padding:6px;font-size:11px;min-height:36px}
}
body[data-section=areas] #view>.topline{flex-direction:row;text-align:left}body[data-section=areas] #view>.topline>div{flex:1;min-width:0;text-align:left}body[data-section=areas] #view>.topline>.manager-instructions-button{align-self:center;margin:0;flex:0 0 44px}
.areas-workspace .workday-panel-heading{flex-direction:row;text-align:left}.areas-workspace .workday-panel-heading>div{flex:1;text-align:left}
@media(max-width:650px){.areas-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.areas-navigation>button:first-child{grid-column:auto}.areas-navigation>*{width:auto!important}.areas-workspace .workday-panel-heading>button{flex:none;width:auto!important}.target-editor .target-draw-group button[aria-pressed=true] .target-tool-icon{background:white;border-radius:5px}}
@media(max-height:500px) and (orientation:landscape){.target-editor .target-toolbar{padding:3px 6px;display:flex;gap:6px}.target-tool-group>small{display:none}.target-editor .target-tool-group button{min-height:44px;font-size:10px;padding:4px}.target-top{padding-block:3px}.target-sheet{max-height:85%}}
.areas-map-library{padding:18px!important}.areas-map-library>.actions{margin-bottom:12px}.areas-map-library .object-row{padding:14px 0;border-bottom:1px solid #e4ebf2;gap:12px}.areas-map-library .object-row h2{font-size:16px;margin:0 0 5px}.areas-map-library .object-row p{font-size:12px;margin:4px 0}.areas-map-library .button,.areas-map-library button{font-size:13px;padding:10px 14px;min-height:44px}
@media(max-width:650px){.areas-map-library{padding:12px!important}.areas-map-library .object-row{display:flex;flex-direction:row;align-items:center}.areas-map-library .object-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.areas-map-library .object-row>a{width:auto;flex:none}.areas-map-library>.actions{display:flex;flex-wrap:wrap}.areas-map-library>.actions>button{width:auto;flex:1}}
@media(max-width:650px){.areas-workspace .workday-call-row{flex-direction:column;align-items:stretch;gap:10px}.areas-workspace .workday-call-row>div:first-child{flex:0 0 auto}.areas-workspace .workday-call-row>.actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.areas-workspace .workday-call-row>.actions>*{width:auto;text-align:center;font-size:11px}}
/* Field controls: the map remains visible; only typed search opens results. */
.target-map-nav{position:absolute;right:8px;top:8px;z-index:6;display:flex;gap:4px}.target-map-nav[hidden],.target-search-popover[hidden]{display:none}.target-editor .target-map-nav button{min-width:36px;min-height:36px;height:36px;padding:6px 9px;font-size:12px;display:flex;align-items:center;justify-content:center;background:#102b45;color:#fff;border:1px solid #8dbbc9;border-radius:8px;margin:0}.target-search-popover{position:absolute;right:8px;top:50px;width:min(340px,calc(100% - 16px));z-index:7;background:#fff;border:1px solid #cedbe7;border-radius:12px;padding:6px;box-shadow:0 8px 24px #10223830}.target-search-line{display:flex;gap:4px}.target-search-line input{flex:1;min-width:0;margin:0;font-size:16px;padding:6px 8px;height:36px}.target-editor .target-search-line button{min-height:36px;height:36px;min-width:36px;padding:4px;margin:0}.target-search-popover [data-target-list]{max-height:150px;overflow:auto;font-size:13px}.target-editor .target-search-popover .target-address-row{font-size:12px;min-height:36px;padding:7px 8px;line-height:1.3}
.target-editor .target-selection-header{padding:5px 10px;margin-bottom:6px;gap:6px}.target-selection-header small{display:none}.target-editor .target-title-edit input{min-height:32px;height:32px;font-size:15px;padding:3px 0}.target-editor .target-selection-header button{min-width:32px;min-height:32px;height:32px;padding:4px}.target-editor .target-edit-actions{gap:4px}.target-editor .target-edit-actions>button{min-height:34px;height:34px;padding:5px;font-size:12px;border-radius:7px}.target-editor .target-importance{margin:6px 0;gap:4px}.target-editor .target-importance>button{min-height:30px;height:30px;padding:4px 6px;font-size:11px;border-radius:7px}.target-editor .target-note-edit{margin:6px 0;font-size:12px}.target-editor .target-note-edit textarea{min-height:48px;height:48px;font-size:16px;padding:6px;margin-top:3px}.target-editor .target-section>summary{min-height:34px;padding:6px 0;font-size:12px}.target-editor .target-scope{margin:4px 0;font-size:10px}
@media(max-width:650px){.target-map-nav{top:50px;right:6px}.target-search-popover{top:90px}.target-tool-status{top:91px;font-size:10px;right:8px}.target-tool-status>span{padding:3px 6px}.target-editor .target-sheet:has(.target-selection-header){max-height:38%;padding:8px}.target-editor .target-selection-header{margin:-8px -8px 6px;top:-8px;padding:4px 8px}.target-editor .target-toolbar{gap:2px;padding-top:3px;padding-bottom:calc(3px + env(safe-area-inset-bottom))}.target-editor .target-edit-group button,.target-editor .target-info-group button{min-height:32px;height:32px;padding:3px 6px}.target-editor .target-draw-group button{min-height:40px;height:40px;padding:2px 1px}.target-top button{min-height:36px;height:36px}.target-top [data-help]{width:36px;min-width:36px}.target-top{grid-template-columns:36px minmax(0,1fr) 36px auto}.target-top [data-back]{min-width:36px}.target-top [data-save]{font-size:13px;padding:5px 10px}}
.target-editor .target-sheet .target-edit-actions>button{min-height:34px;height:34px;padding:5px;font-size:12px}.target-editor .target-sheet .target-importance>button{min-height:30px;height:30px;padding:4px 6px;font-size:11px}
.target-editor .map-zoom-controls button{min-width:36px;min-height:36px;width:36px;height:36px;padding:3px;font-size:23px}.target-editor .map-zoom-controls{border-radius:10px;overflow:hidden}
/* Geographic target directory: compact disclosure rows, one address search. */
.areas-navigation{flex-wrap:wrap;gap:4px;padding:4px;margin-bottom:12px}
.areas-navigation>button,.areas-navigation>a.button{flex:none;min-height:36px;height:36px;padding:6px 12px!important;font-size:12px!important;display:inline-flex;align-items:center;justify-content:center}
.target-directory.panel{padding:16px;border-radius:16px;max-width:1000px}
.target-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.target-directory-heading>label{margin:0;font-size:16px;font-weight:700}.target-count{font-size:11px;font-weight:600;color:#58728a;background:#edf2f7;border-radius:12px;padding:3px 8px;white-space:nowrap}
.target-directory button{min-height:36px;width:auto;margin:0;padding:6px 12px;font-size:12px;line-height:1.3}
.target-directory #target-search{margin:0 0 12px;min-height:40px;height:40px;font-size:16px}
.target-tree-branch{border-top:1px solid #e5ebf2;margin:0;padding:0}
.target-tree-branch>summary{display:flex;align-items:center;gap:8px;list-style:none;padding:12px 4px;cursor:pointer;min-height:48px;font-size:15px;font-weight:650}
.target-tree-branch>summary::-webkit-details-marker{display:none}.target-tree-branch>summary:before{content:'›';width:14px;color:#66829a;font-size:20px;flex:none}.target-tree-branch[open]>summary:before{transform:rotate(90deg)}
.target-tree-branch>summary>span:first-of-type{flex:1;min-width:0}.target-tree-branch summary small{display:block;font-size:11px;color:#6c8094;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.target-tree-children{padding-left:18px}.target-tree-children>.target-tree-branch>summary{font-size:13px;min-height:42px;padding:8px 4px}
.target-tree-address{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 6px;min-height:44px;border-top:1px solid #edf1f5;text-decoration:none;color:#213c55}.target-tree-address:hover{background:#f0f6fc}.target-tree-address>span:first-child{min-width:0}.target-tree-address strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.target-tree-address small{display:block;color:#73869a;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.target-tree-address>span:nth-child(2){font-size:22px;color:#5180a7}.target-tree-empty,.target-search-count{font-size:12px;color:#708397;margin:10px 4px}
.target-directory .target-add-area{margin:6px 0 12px}.target-map-organizer{border-top:1px solid #e5ebf2;margin-top:12px;padding-top:12px}.target-map-organizer>summary{font-size:12px;color:#526e88;cursor:pointer;padding:8px 0}.target-map-binding{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf1f5;padding:10px 0}.target-map-binding>span{min-width:0}.target-map-binding strong{font-size:12px;overflow-wrap:anywhere}.target-map-binding small{display:block;font-size:11px;color:#718499}.target-map-binding button{flex:none}
@media(max-width:650px){.areas-navigation{display:flex!important}.areas-navigation>button:first-child,.areas-navigation>a:first-of-type{flex:none!important}.areas-navigation>button,.areas-navigation>a.button{font-size:11px!important;padding:6px 10px!important;min-height:36px;height:36px}.target-directory.panel{padding:12px}.target-directory .target-directory-heading>button{width:auto!important}.target-tree-children{padding-left:12px}.target-directory .target-map-binding button{width:auto!important;max-width:100px}.target-directory .target-tree-address{flex-direction:row!important}.target-tree-branch>summary{padding:10px 2px}}
.target-directory .target-tree-branch>summary{margin:0}
.areas-navigation>a[aria-current=page]{background:#dce9f6;color:#244f77;box-shadow:inset 0 0 0 1px #c5d9eb}
#view .areas-navigation>a.button[aria-current=page]{background:#fff!important;color:var(--snow-ink,#244f77)!important;box-shadow:0 1px 4px #18324d16}
.area-map-workspace{padding:14px!important}.area-map-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.area-map-actions .button,.area-map-actions button{min-height:36px;padding:7px 12px;font-size:14px}.area-map-workspace form{padding:12px 0}.area-map-workspace #map-draft-svg{width:100%;height:60vh;min-height:300px}.area-map-workspace [data-area-target-list]{max-height:none;overflow:visible}.area-map-workspace .target-map-binding button{white-space:normal;text-align:left}.target-area-open{margin:8px 0!important;padding:8px 12px!important;min-height:36px!important;font-size:14px!important}@media(max-width:600px){.area-map-workspace{padding:10px!important}.area-map-workspace #map-draft-svg{height:52vh}.area-map-actions{gap:6px}.area-map-actions button,.area-map-actions .button{min-height:40px;font-size:13px;padding:7px 10px}.area-map-workspace input{min-width:0;width:100%}}
.area-map-workspace #map-draft-geometry.map-with-overlay-tools .map-background-controls{max-width:calc(100% - 100px);gap:2px}.area-map-workspace #map-draft-geometry.map-with-overlay-tools .map-background-controls button{min-width:0;min-height:30px;padding:4px 6px;font-size:11px}.area-map-workspace .map-background-status{top:46px}.area-map-workspace form label{font-size:13px}.area-map-workspace form p{margin:5px 0}.area-map-workspace .map-fullscreen-open{font-size:11px;min-height:30px;padding:5px 8px}

.area-map-workspace [data-address-results]{display:grid;gap:6px;margin-top:8px}.area-map-workspace [data-address-results] button{text-align:left;white-space:normal;height:auto;min-height:40px;padding:8px 12px;overflow-wrap:anywhere}
@media(max-width:380px){.area-map-workspace #map-draft-geometry.map-with-overlay-tools .map-background-controls{max-width:calc(100% - 16px)}.area-map-workspace #map-draft-geometry.map-with-overlay-tools .map-background-controls button{flex:none;white-space:nowrap}.area-map-workspace #map-draft-geometry>.map-fullscreen-open{top:52px}}

.target-editor [data-point-labels="false"] .target-address-label{display:none}

.locate-target{display:inline-flex;align-items:center;justify-content:center;gap:7px}.locate-target::before{content:'';width:22px;height:22px;flex:0 0 22px;border-radius:5px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23df393f' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v5m0 12v5M1 12h5m12 0h5'/%3E%3C/svg%3E") center/20px no-repeat}

.target-directory-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.target-directory-actions button{width:auto!important;min-height:36px;padding:7px 10px;font-size:12px}
.target-delete-area{color:#b32b45!important;margin:8px 0;min-height:44px}

/* v245: map settings, retractable inspector and full-screen target information. */
.target-map-drawer{position:absolute;top:8px;left:8px;z-index:15;background:white;border-radius:12px;box-shadow:0 3px 14px #102b4526;max-width:calc(100% - 68px);padding:0;overflow:hidden}
.target-map-drawer>summary{cursor:pointer;list-style:none;padding:10px 16px;font-size:13px;font-weight:700;min-height:40px;box-sizing:border-box}
.target-map-drawer[open]{padding-bottom:10px;width:300px}
.target-map-drawer .map-background-controls{position:static!important;display:flex!important;flex-wrap:wrap;max-width:none!important;margin:0 8px;box-shadow:none!important}
.target-map-drawer .map-background-controls button{flex:1;min-width:0!important;min-height:40px!important;padding:5px!important;font-size:12px!important}
.target-map-drawer .target-map-nav{position:static!important;display:flex;padding:8px;gap:6px}
.target-map-drawer .target-map-nav button{height:40px;min-height:40px;width:100%}
.target-map-drawer .check{font-size:12px;margin:4px 10px}
.target-editor .map-zoom-controls{top:12px!important;right:8px!important;display:flex;flex-direction:column}
.target-editor .map-zoom-controls button{width:40px;height:40px;min-height:40px}
.target-editor .target-search-popover{top:54px;left:8px;right:60px;width:auto;max-width:400px;z-index:20}
.target-editor .target-tool-status{top:58px;left:8px;right:60px;pointer-events:none}
.target-editor .target-sheet-tab{position:absolute;right:0;top:45%;z-index:18;max-width:44px;max-height:180px;writing-mode:vertical-rl;overflow:hidden;text-overflow:ellipsis;border-radius:10px 0 0 10px;padding:12px 8px;min-height:80px}
.target-editor .target-sheet:has(.target-selection-header){left:auto!important;right:8px!important;width:min(350px,calc(100% - 56px));max-height:65%!important;animation:target-slide-in .18s ease-out}
.target-editor .target-sheet.target-options-full{position:fixed!important;inset:0!important;width:auto!important;height:100dvh!important;max-height:none!important;border-radius:0;z-index:1200;padding:16px;box-sizing:border-box;overflow:auto;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
.target-options-full>header{position:sticky;top:-16px;z-index:2;background:white;display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.target-options-full>header button{min-width:44px;min-height:44px}
.target-header-scope{font-size:10px!important;opacity:.8}
@keyframes target-slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.target-editor .target-sheet{animation:none!important}}

/* Compact map disclosure and always-visible address search. */
.target-editor .target-map-nav{top:8px;left:80px;right:auto;z-index:16;padding:0}
.target-editor .target-map-nav button{width:40px;height:40px;min-height:40px}
.target-map-drawer[open]>summary{padding-right:100px}
.target-editor [data-map-close]{position:absolute;top:3px;right:4px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;margin:0;font-size:22px}
.target-map-drawer:not([open])>[data-map-close]{display:none}
.target-editor .target-search-popover{top:54px;left:8px;right:auto;width:min(340px,calc(100% - 76px));box-sizing:border-box}
.target-editor .target-edit-group[hidden],.target-editor .target-toolbar button[hidden]{display:none!important}
@media(max-width:650px){.target-editor .target-draw-group{grid-row:auto}.target-editor .target-edit-group{grid-column:1/-1}}

/* Matching compact Map/search controls; expanded settings cover search. */
.target-editor .target-map-drawer>summary{height:40px;min-height:40px;padding:0 7px;display:flex;align-items:center;justify-content:center;font-size:12px;box-sizing:border-box}
.target-editor .target-map-drawer:not([open]){width:40px;border-radius:8px}
.target-editor .target-map-nav{left:54px}
.target-editor .target-map-drawer[open]{z-index:17}
.target-editor .target-map-drawer[open]>summary{justify-content:flex-start;padding-left:12px;padding-right:44px}
.target-editor [data-undo]{background:#c13b4e!important;color:white!important;border-color:#c13b4e!important}
.target-editor [data-redo]{background:#2563eb!important;color:white!important;border-color:#2563eb!important}
.target-editor .target-edit-group{flex-basis:240px}
.target-editor .target-edit-group>div{max-width:260px}
.target-editor .target-map-drawer:not([open]){height:40px;min-height:40px;padding:0;box-sizing:border-box}
.target-editor .target-map-drawer>summary{margin:0}

/* Search has separate header, input and scrolling result rows. */
.target-editor .target-search-popover{padding:12px;max-height:calc(100% - 66px);display:flex;flex-direction:column;gap:12px;overflow:hidden;border-radius:14px;box-shadow:0 8px 24px #10223830}
.target-editor .target-search-popover[hidden]{display:none}
.target-search-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0;padding:0;font-size:13px}
.target-editor .target-search-header button{flex:none;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;margin:0;font-size:22px;border-radius:8px}
.target-editor .target-search-line{display:block;flex:none;padding:3px;margin:0}
.target-editor .target-search-line input{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:42px;margin:0;padding:8px 10px;font-size:16px;border-radius:8px;outline-offset:1px}
.target-editor .target-search-popover [data-target-list]{min-height:0;max-height:240px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px;padding:0 3px 3px;margin:0;font-size:12px}
.target-editor .target-search-popover [data-target-list]:empty{display:none}
.target-editor .target-search-popover .target-address-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;width:100%;box-sizing:border-box;margin:0;padding:10px;min-height:44px;height:auto;text-align:left;white-space:normal;border-radius:8px}
.target-search-address{min-width:0;overflow-wrap:anywhere;line-height:1.4;font-size:13px}
.target-search-area{flex:none;max-width:35%;overflow-wrap:anywhere;font-size:11px;line-height:1.3;padding:4px 6px;border-radius:6px;background:white;color:#38546b}

.target-detail-entry{padding:12px 0;border-top:1px solid #e4eaf0}.target-detail-entry label{display:block;font-size:13px;font-weight:600}.target-detail-entry textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0;min-height:90px;font-size:16px}.target-editor .target-detail-entry button{min-height:40px;padding:8px 12px;font-size:13px}.target-internal-data{border-left:3px solid #718499;padding-left:12px}.target-detail-entry .target-photo-grid:empty{display:none}.target-detail-entry [role=status]:empty{display:none}

.area-map-actions .area-map-archive-toggle{display:flex;align-items:center;gap:6px;font-size:12px;margin:0;padding:8px 0;min-height:40px}.area-map-archive-toggle input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;flex:0 0 18px}

.target-profile #map-draft-geometry{height:clamp(240px,38vh,420px);position:relative;overflow:hidden;border-radius:12px}.target-profile #map-draft-svg{height:100%;width:100%}.target-profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.target-profile>section{border-top:1px solid #dbe5ef;padding:16px 0}.target-profile h2{font-size:18px;margin:0 0 6px}.target-profile h3{font-size:15px;margin:0 0 6px}.target-profile-entry{padding:12px 0}.target-profile-text{white-space:pre-wrap;overflow-wrap:anywhere}.target-profile .target-photo-grid img{max-width:100%;max-height:160px;object-fit:contain}.target-profile .target-photo-grid button{padding:4px}.target-profile-actions .button,.target-profile-actions button{min-height:40px;font-size:13px;padding:8px 12px}

.target-directory-number {display:inline-block;color:var(--snow-blue);font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:6px;font-size:.85em;}

#dialog:has([data-target-delete-review]) #dialog-submit {background:var(--snow-red,#c74252);color:#fff;}

.target-management-notice{padding:12px;margin:10px 0 16px;border:1px solid #d4dfeb;border-radius:10px;background:#f3f6fa;color:#20394f}.target-management-notice p{margin:0 0 10px;font-size:14px;line-height:1.5}.target-management-notice button{min-height:44px}

.area-title-edit{font:inherit;color:inherit;background:transparent;border:0;padding:4px 0;text-align:left;min-height:44px}.area-title-edit span{font-size:.65em;color:var(--muted,#64748b)}.area-title-edit:hover{background:var(--soft,#eef3f8)}.area-work-defaults{margin-top:20px;border-top:1px solid #dbe3ec;padding-top:16px}.area-work-defaults summary{cursor:pointer;min-height:44px;font-weight:600}
#view .area-title-edit{background:transparent;color:inherit;border:0;box-shadow:none;font:inherit;padding:4px 0}#view .area-title-edit:hover{background:#eaf0f5}

/* Area actions remain distinct and aligned on desktop and phones. */
.target-area-responsibility{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 0 10px}
.target-area-responsibility p{margin:0;line-height:1.5}
.target-area-responsibility button{flex:none}
.target-tree-children>[data-create-area-map],.target-tree-children>.target-area-open{display:inline-flex;margin:4px 8px 12px 0}
.target-tree-children>.target-delete-area{display:block;margin:12px 0 18px}
.target-tree-children>.target-tree-empty{margin:4px 0 12px}

.area-target-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0 8px}.area-target-heading h2{font-size:18px;margin:0}.area-target-heading .area-map-actions{margin:0}.area-work-defaults{border:1px solid #dbe3eb;border-radius:12px;padding:14px 16px;margin:12px 0 18px;background:#f8fafc}.area-work-defaults .area-target-heading{margin:0}.area-meeting-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.area-meeting-grid h3{font-size:13px;margin:0 0 6px;color:#61758b}.area-meeting-grid p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.area-work-defaults>.small{margin-bottom:0}@media(max-width:650px){.area-meeting-grid{grid-template-columns:1fr}.area-target-heading button{min-height:44px}.area-work-defaults{padding:12px}}

.area-map-drawer [data-close-settings]{position:absolute;right:6px;top:3px;min-width:36px;min-height:36px;padding:4px}.area-map-drawer:not([open]) [data-close-settings]{display:none}.area-map-drawer[open]{animation:target-slide-in .18s ease-out}.area-map-drawer[open]>summary{padding-right:50px}.area-map-drawer button[aria-pressed="true"]{background:#087f8c;color:white}.area-map-workspace .map-selection-info .small{margin:4px;min-height:44px}
.area-map-workspace #map-draft-geometry .area-map-drawer .map-background-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;max-width:none!important;position:static!important}
.area-map-workspace #map-draft-geometry .area-map-drawer .map-background-controls button{min-height:44px!important;width:100%;white-space:normal}
@media(prefers-reduced-motion:reduce){.area-map-drawer[open]{animation:none}}

.area-target-cluster circle:nth-of-type(2){r:18;fill:#16384f;stroke:#72e1eb;stroke-width:3}.area-target-cluster text{fill:white}
.area-map-workspace #map-draft-geometry .area-map-drawer button[aria-pressed="true"]{background:#087f8c!important;color:white!important}
.area-map-drawer [data-close-settings]{min-width:44px;min-height:44px}

.area-map-workspace [data-address-results] button span,.area-map-workspace [data-address-results] button small{display:block}
.area-map-workspace [data-address-results] button small{margin-top:3px;font-weight:400}
.area-map-workspace [data-address-results] button[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:-2px}
.map-saved-history{max-width:720px;width:calc(100% - 24px);max-height:85vh;overflow:auto;border:1px solid #b7c8ce;border-radius:14px;padding:18px}.map-saved-history::backdrop{background:#0006}.map-saved-history header{display:flex;align-items:center;justify-content:space-between;gap:12px}.map-saved-history summary{padding:12px 0;font-weight:600;cursor:pointer}.map-saved-history section{border-top:1px solid #dce4e7;padding:8px 0}.map-saved-history p{overflow-wrap:anywhere}.target-top [data-versions],.target-top [data-retry],.target-top [data-save]{font-size:12px;padding:6px}

/* Creating a target has the same green action colour in every account theme. */
#view .area-map-workspace button[data-add-target]{background:#15803d;color:#fff;border-color:#15803d}
#view .area-map-workspace button[data-add-target]:hover:not(:disabled){background:#166534;border-color:#166534}
#view .area-map-workspace button[data-add-target]:focus-visible{outline-color:#15803d}

#view .target-directory button:is([data-add-area-top],[data-add-area],[data-add-zone]){background:#15803d;color:#fff;border-color:#15803d}
#view .target-directory button:is([data-add-area-top],[data-add-area],[data-add-zone]):hover:not(:disabled){background:#166534;border-color:#166534}
#view .target-directory button:is([data-add-area-top],[data-add-area],[data-add-zone]):focus-visible{outline-color:#15803d}
#view .areas-navigation button.locate-target{background:#2563eb;color:#fff;border-color:#2563eb}
#view .areas-navigation button.locate-target:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}
#view .areas-navigation button.locate-target:focus-visible{outline-color:#2563eb}

.area-target-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.area-target-row-actions>button,.area-target-row-actions>.button{white-space:nowrap}
@media(max-width:600px){[data-area-target-list]>.target-map-binding{flex-wrap:wrap;gap:8px}.area-target-row-actions{width:100%}}
.target-gallery-top{flex-wrap:wrap}.target-gallery [data-photo-description]{white-space:pre-wrap;text-align:center;max-height:15vh;overflow:auto;margin:4px}.target-gallery [data-photo-description]:empty{display:none}
.photo-markup{position:fixed;inset:0;z-index:1800;background:#102238;color:white;display:flex;flex-direction:column;padding:12px;gap:8px;box-sizing:border-box}.photo-markup header{display:flex;align-items:center;justify-content:space-between}.photo-markup button,.photo-markup select{min-height:44px}.photo-markup-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.photo-markup-tools label{display:flex;align-items:center;gap:6px}.photo-markup-tools [aria-pressed=true]{outline:2px solid #74dbf3}.photo-markup p{margin:0}.photo-markup-stage{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.photo-markup canvas{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;touch-action:none;cursor:crosshair}.photo-markup small{color:#bfcedd}.photo-markup [hidden]{display:none}

.photo-markup header{background:transparent;color:white;position:static;padding:0;min-height:44px;box-shadow:none}
.target-line-options{position:absolute;bottom:70px;left:12px;display:flex;gap:10px;padding:6px 10px;border:1px solid #cad7e5;border-radius:12px;background:white;color:#16324b;box-shadow:0 3px 12px #10223825;z-index:5;font-size:14px}.target-line-options[hidden]{display:none}.target-line-options label{display:flex;align-items:center;gap:6px;margin:0;min-height:36px}.target-line-options input{width:auto;margin:0}

/* Creation and editing have explicit, theme-independent identities. */
.area-map-workspace [data-target-form]{background:#fff;color:#20313d;border:1px solid #ccd5df;border-radius:12px;padding:16px;margin:12px 0 20px}
.area-map-workspace [data-target-form][data-mode="create"]{background:#e5f6e9;border:2px solid #15803d}
.area-map-workspace [data-target-mode-title]{margin:0 0 6px;font-size:1.15rem;overflow-wrap:anywhere}
.area-map-workspace [data-change-address]{margin-bottom:12px}
.area-map-workspace [data-address][readonly]{background:#f3f5f7;color:#42515c}
.area-existing-search{margin-top:16px;border-bottom:1px solid #dce3eb;padding-bottom:12px}
.area-existing-search [data-existing-results]{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto}
.area-existing-search label{margin-bottom:8px}
.area-map-workspace .area-map-actions[hidden]{display:none}

.area-map-workspace [data-target-form]{scroll-margin-top:90px}

/* Compact address composer: clear actions across all account themes. */
.area-map-workspace .area-target-form-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.area-map-workspace .area-target-form-header h2{margin:0;font-size:1.2rem}
.area-map-workspace [data-target-form][data-mode="create"]{background:#edf8ef;border:1px solid #83ba91;border-left:4px solid #15803d;padding:18px 20px}
.area-map-workspace [data-target-form] button.secondary{background:#fff;color:#243c32;border:1px solid #b5c9bc;box-shadow:0 1px 2px #153f2110}
.area-map-workspace [data-target-form] button.secondary:hover{background:#f5fbf6;border-color:#34864c}
.area-map-workspace [data-target-form] button:focus-visible,.area-map-workspace [data-address]:focus{outline:3px solid #16803d;outline-offset:2px}
.area-map-workspace [data-target-form] button[data-place],.area-map-workspace [data-target-form] button[data-find-address]{background:#147d38;color:#fff;border:1px solid #11692f;font-weight:700;min-height:44px}
.area-map-workspace [data-target-form] button[data-place]:hover,.area-map-workspace [data-target-form] button[data-find-address]:hover{background:#10662e;color:white}
.area-map-workspace [data-target-form] input[data-address]{background:#fff;border:1px solid #9eb6a5;font-size:1.05rem;min-height:48px;color:#172c21}
.area-map-workspace [data-target-form] [data-instant-search]{accent-color:#147d38}
.area-map-workspace [data-address-results]{gap:8px;margin:12px 0}
.area-map-workspace [data-address-results]:empty{display:none}
.area-map-workspace [data-address-results] button{position:relative;background:white;color:#173b25;border:1px solid #9db7a6;border-radius:10px;min-height:64px;padding:12px 46px 12px 16px;box-shadow:0 2px 5px #153f2110}
.area-map-workspace [data-address-results] button span{font-size:1.05rem;font-weight:750;line-height:1.4}
.area-map-workspace [data-address-results] button small{color:#4c6254;font-size:.85rem}
.area-map-workspace [data-address-results] button::after{content:'→';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:22px;color:#147d38}
.area-map-workspace [data-address-results] button[aria-pressed="true"]{background:#fff;border-color:#147d38;outline:2px solid #147d38;outline-offset:-2px}
.area-map-workspace [data-address-results] button[aria-pressed="true"]::after{content:'✓'}
.area-map-workspace [data-target-form] button:disabled{box-shadow:none;opacity:.45}
.area-map-workspace [data-target-form][data-mode="create"] [data-address-undo],.area-map-workspace [data-target-form][data-mode="create"] [data-address-redo],.area-map-workspace [data-target-form][data-mode="create"] [data-address-history]{display:none}
.area-map-workspace [data-place-hint]:empty,.area-map-workspace [data-area-status]:empty{display:none}
.area-map-workspace [data-place-hint]{margin:8px 0 0;font-size:.85rem}
.area-search-credit{margin-top:12px;text-align:right;font-size:11px;color:#64748b}.area-search-credit a{color:inherit}
@media(max-width:600px){.area-map-workspace [data-target-form][data-mode="create"]{padding:14px 12px}.area-map-workspace .area-target-form-header{gap:8px;margin-bottom:12px}.area-map-workspace [data-target-form] .area-map-actions{gap:8px}.area-map-workspace [data-address-results] button{padding-left:12px}}

.area-map-workspace .area-target-form-header{background:transparent;padding:0;border:0;box-shadow:none}

/* Work instructions are grouped by mark, with readable, uncropped photos. */
.target-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.target-work-grid>h3,.target-work-grid>.target-legend{grid-column:1/-1;margin:0}
.target-work-card{min-width:0;border:1px solid #dce3e9;border-radius:14px;overflow:hidden;background:#fff;color:#20313d;box-shadow:0 2px 8px #10223808}
.target-work-card.important{border-top:4px solid #e8b62c}
.target-work-card .target-work-photo{display:block;width:100%;height:250px;border:0;border-radius:0;padding:12px;background:#f0f3f5;cursor:zoom-in}
.target-work-photo img{width:100%;height:100%;object-fit:contain;display:block}
.target-work-card-body{padding:16px}.target-work-card-body h3{font-size:17px;margin:0 0 8px}.target-work-card-body p{margin:0 0 16px;line-height:1.5}.target-work-card-body>button{min-height:44px;background:#f1f5f8;color:#254560}
.target-work-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 12px 0}
.target-work-thumbs button{flex:0 0 56px;min-width:56px;height:56px;padding:3px;border:2px solid transparent;border-radius:6px;background:#f0f3f5}
.target-work-thumbs button[aria-pressed=true]{border-color:#28719c}.target-work-thumbs img{display:block;width:100%;height:100%;object-fit:contain}
.target-work-caption{margin:8px 16px 0;font-size:13px;color:#536578;white-space:pre-wrap;overflow-wrap:anywhere}.target-work-caption:empty{display:none}
.target-sheet .target-work-grid,.target-preview .target-work-grid{grid-template-columns:1fr}
.target-gallery-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;overflow:auto}
.target-gallery-body>img{height:100%;width:100%;min-height:0}.target-gallery-body>aside{overflow:auto;align-self:start;padding:16px;background:#ffffff0d;border-radius:12px}
.target-gallery .target-gallery-body [data-photo-caption],.target-gallery .target-gallery-body [data-photo-description]{text-align:left;max-height:none;overflow:visible;line-height:1.5;margin:0 0 16px}
.target-gallery-body aside:has([data-photo-caption]:empty):has([data-photo-description]:empty){display:none}.target-gallery-body:has(aside [data-photo-caption]:empty):has(aside [data-photo-description]:empty){grid-template-columns:1fr}
@media(max-width:1000px){.target-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.target-work-grid{grid-template-columns:1fr}.target-work-card .target-work-photo{height:280px}.target-gallery-body{display:flex;flex-direction:column}.target-gallery-body>img{flex:1;min-height:150px}.target-gallery-body>aside{flex:none;max-height:25vh;width:100%;box-sizing:border-box;padding:10px}.target-gallery .actions{gap:6px}}
/* Photo surfaces stay neutral in every role theme, including hover. */
body .target-work-card button.target-work-photo,body .target-work-thumbs button{background:#f0f3f5!important;color:#20313d!important;box-shadow:none}
body .target-work-thumbs button[aria-pressed=true]{border-color:#28719c!important}
/* Keep lifecycle actions in target rows; emphasize opening the mark editor. */
.area-map-workspace [data-target-form] [data-archive-target],.area-map-workspace [data-target-form] [data-delete-target],.area-map-workspace [data-target-form][data-mode="edit"] [data-close-target]{display:none}
body .area-map-workspace a[data-edit-marks]{background:#b94a08!important;color:#fff!important;border:1px solid #9b3d05;box-shadow:0 2px 5px #9b3d0520;font-weight:700;min-height:44px}
body .area-map-workspace a[data-edit-marks]:hover{background:#963b05!important}
body .area-map-workspace a[data-edit-marks]:focus-visible{outline:3px solid #ea8b43;outline-offset:3px}

body .area-map-workspace button[data-rebuild-numbers]{background:#2563eb!important;color:white!important;border:1px solid #1d4ed8;font-weight:700}
body .area-map-workspace button[data-rebuild-numbers]:hover{background:#1d4ed8!important}
body .area-map-workspace button[data-rebuild-numbers]:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
.target-gallery .target-gallery-top{position:relative;min-height:72px;padding-right:80px;display:flex;align-items:center;gap:8px}
body .target-gallery .target-gallery-close{position:absolute;top:0;right:0;width:68px;min-width:68px;height:68px;min-height:68px;padding:0;font-size:44px;line-height:1;background:#fff!important;color:#102238!important;border:2px solid #cbd5e1;border-radius:12px}
body .target-gallery [data-prev],body .target-gallery [data-next]{width:72px;min-width:72px;height:68px;min-height:68px;font-size:32px;line-height:1;padding:0;background:#fff!important;color:#102238!important;border:2px solid #cbd5e1;border-radius:12px}
.target-gallery [data-prev][hidden],.target-gallery [data-next][hidden]{display:none}
.target-gallery .actions{align-items:center;flex-shrink:0;margin-top:10px}.target-gallery [data-gallery-status]:empty{display:none}
.target-gallery button:focus-visible{outline:3px solid #78d9ef;outline-offset:3px}

/* Compact mark controls; gallery controls intentionally remain glove-sized. */
.target-editor .target-sheet [data-photos-section] .actions{gap:6px;margin:6px 0;flex-wrap:wrap}
.target-editor .target-sheet [data-photos-section] .actions>button{flex:0 1 auto;min-height:32px;height:auto;padding:5px 8px;font-size:12px;line-height:1.25}
.target-editor .target-sheet .target-line-type{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:5px;font-size:12px;margin:6px 0}
.target-editor .target-sheet .target-line-type select{min-height:32px;height:32px;padding:4px 8px;font-size:13px;margin:0}
.target-editor .target-sheet .target-line-type small{grid-column:1/-1}
.target-editor .target-sheet [data-upload]:empty{display:none}
.target-editor .target-sheet .target-photo-grid button{min-height:32px;padding:5px 8px;font-size:12px}
.target-top [data-worker-view]{font-size:12px;padding:8px;white-space:nowrap}
@media(max-width:600px){.target-editor .target-sheet [data-photos-section] .actions>button{min-height:36px}.target-top{flex-wrap:wrap}}
.target-gallery .actions{display:grid!important;grid-template-columns:72px 1fr auto 72px;gap:8px;width:100%}
.target-gallery .actions>button{flex:none!important;margin:0!important}
.target-gallery .actions>span{text-align:center}
.target-gallery .actions [data-zoom]{min-width:0;padding:8px}

/* Photo annotation shares the application's white cards and navy headings. */
body .photo-markup{background:#eef3f7;color:#20394f;padding:16px;gap:10px}
body .photo-markup header{background:#fff;color:#20394f;border:1px solid #d7e2ec;border-radius:14px;padding:10px 14px;min-height:64px;flex-shrink:0}
.photo-markup-heading{display:flex;flex-direction:column;gap:3px}.photo-markup-heading strong{font-size:18px}.photo-markup-heading small{color:#61788d}
body .photo-markup button{background:#fff!important;color:#29445c!important;border:1px solid #ccd9e5!important;border-radius:9px;box-shadow:none;min-height:40px;padding:8px 12px;font-size:13px;line-height:1.2;font-weight:650}
body .photo-markup button:hover{background:#e8f1f8!important}
body .photo-markup button:disabled{opacity:.4;cursor:default}
body .photo-markup [data-close]{min-height:48px;min-width:88px;font-size:20px}.photo-markup [data-close] span{font-size:14px}
.photo-markup-tools{background:white;border:1px solid #d7e2ec;border-radius:12px;padding:8px;gap:6px;flex-shrink:0}
body .photo-markup-tools [data-tool][aria-pressed=true]{background:#183d59!important;color:white!important;border-color:#183d59!important;outline:none}
body .photo-markup [data-finish]{background:#12833d!important;color:white!important;border-color:#12833d!important}
.photo-markup-colors{display:flex;gap:4px;align-items:center;border-left:1px solid #d7e2ec;border-right:1px solid #d7e2ec;padding:0 8px;margin:0 4px}
body .photo-markup-colors button{width:36px;min-height:36px;padding:7px;border-color:transparent!important}
.photo-markup-colors button::before{content:'';display:block;width:20px;height:20px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002}
body .photo-markup-colors [aria-pressed=true]{outline:none;border-color:#183d59!important;background:#edf4fa!important}
.photo-markup [data-status]{font-size:13px;color:#4f667a;padding:0 4px;min-height:18px;flex-shrink:0}
.photo-markup-stage{background:#dce5ec;border-radius:12px;padding:10px;box-shadow:inset 0 0 0 1px #ccd9e5}
.photo-markup canvas{box-shadow:0 3px 18px #10223825;border-radius:3px}
body .photo-markup>small{font-size:11px;color:#60768a}.photo-markup button:focus-visible{outline:3px solid #258ac2;outline-offset:2px}
@media(max-width:600px){body .photo-markup{padding:8px;gap:7px}.photo-markup-heading strong{font-size:16px}.photo-markup-heading small{font-size:11px}.photo-markup-tools{gap:4px;padding:6px}body .photo-markup-tools button{padding:7px 10px;min-height:40px}.photo-markup-stage{padding:4px}.photo-markup-colors{padding:0 4px;margin:0}.photo-markup>small{display:none}}

.photo-markup-transparent{font-size:12px;color:#29445c;padding:4px 6px;white-space:nowrap}.photo-markup-transparent input{width:18px;height:18px;margin:0;accent-color:#183d59}body .photo-markup [data-delete-mark]{color:#b92c41!important;border-color:#e5b7c0!important;background:#fff1f3!important}

#map-draft-svg[data-photo-details="hidden"] [data-photo-detail]{display:none!important}

/* Static swatches work under the application Content Security Policy. */
.photo-markup-colors [data-color-choice="#ef3038"]::before{background:#ef3038}
.photo-markup-colors [data-color-choice="#ffe130"]::before{background:#ffe130}
.photo-markup-colors [data-color-choice="#19baf2"]::before{background:#19baf2}

.worker-map-legend{position:relative;color:#193c54}
.worker-map-legend>summary{display:flex;align-items:center;gap:3px;min-height:44px;padding:4px 8px;border:1px solid #bfd0df;border-radius:8px;background:#fff;cursor:pointer;list-style:none;box-sizing:border-box}
.worker-map-legend>summary::-webkit-details-marker{display:none}
.worker-map-legend>summary>svg{width:24px;height:24px}
.worker-map-legend[open]>summary{outline:2px solid #326587}
.worker-map-legend-panel{position:absolute;top:calc(100% + 8px);right:0;width:290px;max-width:calc(100vw - 42px);max-height:55dvh;overflow:auto;z-index:20;padding:14px;background:#fff;border:1px solid #c8d8e5;border-radius:12px;box-shadow:0 6px 24px #102b4933;font-size:14px}
.worker-map-legend-panel>div{display:flex;align-items:center;gap:10px;margin:9px 0}
.worker-map-legend-panel svg{flex:0 0 48px}
.worker-map-legend-panel>button{width:100%}
@media(max-width:600px){.worker-map-legend-panel{position:fixed;left:16px;right:auto;top:auto;margin-top:8px;width:290px}}

/* Give mobile workers the whole screen width without shrinking surrounding text. */
@media(max-width:700px){
 body #map-draft-geometry.worker-edge-map:not(.map-fullscreen){width:100vw;max-width:none;box-sizing:border-box;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border:0;border-radius:0}
}
.worker-map-settings{display:none}
@media(max-width:700px){
 body #map-draft-geometry.worker-edge-map .map-background-controls{max-width:calc(100% - 58px);align-items:center;flex-wrap:wrap}
 body #map-draft-geometry.worker-edge-map .map-background-controls>.worker-map-settings{display:block}
 body #map-draft-geometry.worker-edge-map .map-background-controls:not(.worker-settings-open)>button:not(.worker-map-settings){display:none}
 body #map-draft-geometry.worker-edge-map .map-background-controls button{min-height:34px;padding:4px 8px;font-size:12px}
 body #map-draft-geometry.worker-edge-map .worker-map-legend>summary{min-height:34px;padding:3px 5px;margin:0}
 body #map-draft-geometry.worker-edge-map .worker-map-legend>summary>svg{width:20px;height:20px}
 body #map-draft-geometry.worker-edge-map>.map-fullscreen-open{display:grid;place-items:center;width:36px;height:36px;min-height:36px;min-width:36px;padding:6px}
 body #map-draft-geometry.worker-edge-map>.map-fullscreen-open[hidden]{display:none}
 body #map-draft-geometry.worker-edge-map .map-zoom-controls button{width:36px;height:36px;min-width:36px;min-height:36px;padding:0;font-size:24px}
 body #map-draft-geometry.worker-edge-map .map-attribution{font-size:10px;line-height:1.25;padding:3px 5px}
}

.target-photo-selected [data-photo-leader],.target-photo-selected [data-photo-border]{stroke:#2563eb}
/* Keep target overviews clean; reveal work details together with photo badges. */
:is(.target-editor,.area-map-workspace,.target-profile) #map-draft-svg[data-photo-details="hidden"] :is([data-map-work-mark],[data-target-selection],[data-map-marker="point"],[data-map-marker="hit"],[data-map-marker="icon"],[data-map-marker="sand"],[data-map-marker="photo"]),
.worker-edge-map #map-draft-svg[data-photo-details="hidden"] :is([data-map-work-mark],[data-map-marker="point"],[data-map-marker="hit"],[data-map-marker="icon"],[data-map-marker="sand"],[data-map-marker="photo"]){display:none!important}

/* Photo actions share the app button shapes; navigation remains glove friendly. */
body .target-gallery [data-photo-mark]{background:#12833d!important;color:#fff!important}
body .target-gallery [data-photo-edit],body .target-gallery [data-zoom]{background:#edf0f3!important;color:#354b60!important;border:1px solid #cfdae5}
.target-gallery-top :is([data-photo-mark],[data-photo-edit],[data-photo-delete]){min-height:40px;padding:8px 14px;border-radius:8px;font-size:14px}
.target-gallery .actions{grid-template-columns:72px auto auto 72px;justify-content:center}
.target-gallery .actions [data-prev]{grid-column:1}.target-gallery .actions>span{grid-column:2;min-width:48px}
.target-gallery .actions [data-zoom]{grid-column:3;width:auto;min-width:88px;min-height:40px;border-radius:8px;padding:8px 16px}
.target-gallery .actions [data-next]{grid-column:4}
@media(max-width:600px){.target-gallery .actions{grid-template-columns:60px auto auto 60px}.target-gallery-top :is([data-photo-mark],[data-photo-edit],[data-photo-delete]){font-size:13px;padding:8px 10px}}

/* Align photo, thumbnail, caption and text rows across each card row. */
.target-work-grid{align-items:stretch}
.target-work-card{display:flex;flex-direction:column}
.target-work-card-body{display:flex;flex-direction:column;flex:1}
.target-work-card-body>button{align-self:flex-start;margin-top:auto}
@media(min-width:601px){
 .target-work-grid>.target-work-card{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0}
 .target-work-grid>.target-work-card>.target-work-photo{grid-row:1}
 .target-work-grid>.target-work-card>.target-work-thumbs{grid-row:2}
 .target-work-grid>.target-work-card>.target-work-caption{grid-row:3}
 .target-work-grid>.target-work-card>.target-work-card-body{grid-row:4}
}

body .target-work-card-body>button.target-show-map-worker{background:#2563eb!important;color:#fff!important}

.map-selection-info.target-photo-picker{display:block;max-width:min(360px,calc(100% - 24px))}
.target-photo-picker-items{display:flex;gap:8px;overflow-x:auto;margin-top:10px}
body .target-photo-picker-items>button{display:flex;flex:0 0 130px;flex-direction:column;gap:6px;align-items:stretch;background:#f0f3f6;color:#20313d;padding:8px;text-align:left}
.target-photo-picker-items img{width:114px;height:80px;object-fit:contain;border-radius:6px;background:#fff}
.target-photo-picker-items span{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Compact attribution overlays replace the tall strip below the map. */
body #map-draft-geometry .map-attribution{position:absolute!important;left:auto;right:0;bottom:0;z-index:8;display:flex;align-items:center;gap:5px;width:auto!important;max-width:100%;padding:2px 5px!important;font-size:10px!important;line-height:1.2!important;background:#fffffff0}
.map-credit-short{white-space:nowrap}
.map-attribution details>summary{cursor:pointer;list-style:none;padding:3px;font-size:14px}
.map-attribution details>div{position:absolute;bottom:100%;right:0;background:white;padding:10px;width:260px;max-width:90vw;box-shadow:0 2px 12px #0003;border-radius:8px;font-size:11px;line-height:1.4}
body .area-target-row-actions [data-row-edit-marks]{background:#b94a08!important;color:white!important;border:1px solid #9b3d05}
@media(max-width:700px){
 body #map-draft-geometry:not(.map-fullscreen){width:100vw!important;max-width:none!important;box-sizing:border-box;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border:0!important;border-radius:0!important}
 body .target-editor #map-draft-geometry:not(.map-fullscreen){margin:0!important}
 body .area-map-workspace :is(button,.button){min-height:36px!important;height:auto;padding:7px 9px!important;font-size:13px!important;line-height:1.25;box-sizing:border-box;margin:0}
 body .area-map-workspace .target-map-binding{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 0}
 body .area-map-workspace .target-map-binding>[data-select-pin]{width:100%;text-align:left;white-space:normal;background:transparent;padding:4px 0!important;font-size:15px!important;font-weight:700}
 body .area-map-workspace .area-target-row-actions{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:6px;width:100%;margin:0}
 body .area-map-workspace .area-target-row-actions>*{text-align:center;display:flex;align-items:center;justify-content:center}
 body .area-map-workspace [data-target-form]{padding:12px!important}
 body .area-map-workspace [data-target-form] .area-map-actions:has([data-place]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 body .area-map-workspace [data-target-form] [data-place]{grid-column:1 / -1}
 body .area-map-workspace [data-target-form] [data-edit-marks]{grid-column:1 / -1;text-align:center;display:block}
 body .area-map-workspace [data-target-form] [data-edit-marks][hidden]{display:none}
 body .area-map-workspace [data-target-form] input[data-address]{min-height:40px;font-size:16px;padding:8px}
 body .area-map-workspace .area-target-form-header h2{font-size:17px}
 body .area-map-workspace .area-target-heading{gap:8px}
 body .area-map-workspace .area-work-defaults{padding:12px}
}

.area-map-workspace>.area-target-heading{scroll-margin-top:90px}

.target-card-back{display:flex;justify-content:flex-start;margin:0 0 12px}.target-card-back .button{min-height:36px;padding:8px 12px;font-size:14px}
.target-card-bottom-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start;margin-top:24px;padding-top:16px;border-top:1px solid #dbe3eb}
.target-card-bottom-actions button{min-height:36px;padding:8px 12px;font-size:14px}
.area-map-workspace [data-form-back-targets]{margin-bottom:12px!important}

body .area-map-workspace [data-area-target-list]{display:grid;gap:8px}
body .area-map-workspace [data-area-target-list] .target-map-binding{display:block;border:0;margin:0;padding:0}
body .area-map-workspace [data-area-target-list] [data-select-pin]{display:block;width:100%;min-height:42px!important;margin:0;padding:10px 12px!important;border:1px solid #d1dbe5;border-radius:9px;background:#edf1f5!important;color:#263e50!important;font-size:14px!important;line-height:1.35;text-align:left;white-space:normal;font-weight:650;box-shadow:none}
body .area-map-workspace [data-area-target-list] [data-select-pin]:hover{background:#e2eaf2!important;border-color:#91a9bf}
body .area-map-workspace [data-area-target-list] [data-select-pin]:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

body .target-profile [data-edit-target-map]{background:#b94a08!important;color:#fff!important;border:1px solid #9b3d05}
body .target-profile [data-edit-target-map]:hover{background:#963b05!important}
body #map-draft-geometry .map-location-controls{margin:0;gap:5px;padding:0;background:transparent;max-width:100%}
body #map-draft-geometry .map-location-button{background:#2563eb!important;color:#fff!important;border:1px solid #1d4ed8;min-height:36px;height:36px;padding:6px 10px;font-size:12px;box-shadow:0 1px 4px #10223830}
body #map-draft-geometry .map-location-button:hover{background:#1d4ed8!important}
body #map-draft-geometry .map-location-controls [role=status]:not(:empty){background:#fffffff2;color:#263e50;padding:6px 8px;border-radius:6px;max-width:260px}
body #map-draft-geometry .map-bottom-controls:has(.map-location-controls):not(:has(.map-comment-tools)){left:8px;bottom:4px}

body #map-draft-geometry .map-location-controls [role=status]:not(:empty){position:absolute;bottom:calc(100% + 6px);left:0}
@media(max-width:350px){body #map-draft-geometry .map-bottom-controls:has(.map-location-controls):not(:has(.map-comment-tools)){bottom:28px}}
/* Map layer, label and legend controls share one compact button geometry. */
body #map-draft-geometry .map-background-controls:has(>.worker-map-legend){align-items:center;gap:3px;flex-wrap:wrap}
body #map-draft-geometry .map-background-controls:has(>.worker-map-legend)>button,
body #map-draft-geometry .map-background-controls>.worker-map-legend>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 64px;width:64px;min-width:64px;max-width:64px;height:36px;min-height:36px;margin:0;padding:5px 4px;border:1px solid #d1dce5;border-radius:7px;background:#eef0f2;color:#334e60;font:600 12px/1.2 system-ui,sans-serif;box-shadow:none;outline:none;gap:2px}
body #map-draft-geometry .map-background-controls>.worker-map-legend{flex:0 0 64px;margin:0}
body #map-draft-geometry .map-background-controls>.worker-map-legend>summary>svg{width:17px;height:20px;flex:none}
body #map-draft-geometry .map-background-controls:has(>.worker-map-legend)>button[aria-pressed="true"],
body #map-draft-geometry .map-background-controls>.worker-map-legend[open]>summary{background:#b94a08;color:white;border-color:#9b3d05}
body #map-draft-geometry .map-background-controls>.worker-map-legend[open]>summary>svg{stroke:white}
body #map-draft-geometry .map-background-controls:has(>.worker-map-legend)>button:focus-visible,
body #map-draft-geometry .map-background-controls>.worker-map-legend>summary:focus-visible{outline:2px solid #326587;outline-offset:2px}
.target-line-options{box-sizing:border-box;max-width:calc(100% - 24px);flex-wrap:wrap;column-gap:10px;row-gap:2px}
@media(max-width:650px){.target-editor .target-drawing{bottom:32px}.target-editor .target-line-options{bottom:90px}}

/* Draft creation stays compact; search results overlay rather than push the map. */
.area-map-navigation [data-add-target]{margin-left:auto}
.area-map-workspace [data-create-target]{background:#147d38;color:#fff;border:1px solid #11692f;min-height:44px;font-weight:700}
.area-map-workspace [data-create-target]:hover{background:#10662e}
.area-map-workspace [data-address-preview]{margin:8px 0;overflow-wrap:anywhere}
.area-map-workspace [data-address-preview]:empty{display:none}
.area-map-workspace [data-address-options]{position:relative;margin:8px 0;border:0;padding:0}
.area-map-workspace [data-address-options]>summary{cursor:pointer;color:#245d37;padding:6px 0}
.area-map-workspace [data-address-options] [data-address-results]{position:absolute;z-index:25;top:100%;left:0;right:0;max-height:220px;overflow:auto;margin:0;padding:6px;background:#fff;border:1px solid #9db7a6;border-radius:8px;box-shadow:0 8px 18px #173b2530}
.area-map-workspace [data-address-results] button{min-height:44px;padding:8px 38px 8px 10px;box-shadow:none}
.area-map-workspace [data-address-results] button span{font-size:.95rem}
.area-map-workspace [data-address-results] button small{font-size:.8rem}
.area-map-workspace [data-target-form][data-mode="create"]{padding:12px 16px}
.area-map-workspace [data-target-form][data-mode="create"] .area-target-form-header{margin-bottom:8px}
@media(max-width:600px){.area-map-navigation [data-add-target]{margin-left:0;flex-basis:100%}.area-map-workspace [data-target-form][data-mode="create"]{padding:12px}}
body .area-map-workspace button[data-create-target]{background:#147d38!important;border-color:#11692f!important;color:#fff!important}
@media(max-width:600px){body .area-map-workspace [data-target-form][data-mode="create"] .area-map-actions:has([data-place]){grid-template-columns:1fr 1fr}body .area-map-workspace [data-target-form][data-mode="create"] [data-place]{grid-column:auto}}

/* Persistent compact address results. */
.area-map-workspace [data-address-options]{margin:6px 0}
.area-map-workspace [data-address-options-label]{margin:0 0 4px;color:#245d37}
.area-map-workspace [data-address-options] [data-address-results]{position:static;max-height:220px;overflow-y:auto;overscroll-behavior:contain;gap:2px;margin:0;padding:2px;border:1px solid #9db7a6;border-radius:6px;box-shadow:none}
.area-map-workspace [data-address-results] button{min-height:40px;padding:3px 30px 3px 8px;border-radius:4px;border-width:1px;text-align:left}
.area-map-workspace [data-address-results] button span{font-size:.9rem;line-height:1.2}
.area-map-workspace [data-address-results] button small{font-size:.75rem;line-height:1.2;margin-top:1px}
.area-map-workspace [data-address-results] button:after{right:10px}
.area-map-workspace [data-address-results] button[aria-pressed="true"]{outline:1px solid #147d38;outline-offset:-1px;background:#eaf6ed}
@media(max-width:600px){.area-map-workspace [data-address-results] button{min-height:44px}}

/* Keep address choices next to the map while adding targets. */
.area-map-workspace:has([data-target-form][data-mode="create"]:not([hidden])) .area-work-defaults{display:none}

/* Marker placement is a blue map action. */
body .area-map-workspace [data-target-form] button[data-place]{background:#2563eb!important;border-color:#1d4ed8!important;color:#fff!important}
body .area-map-workspace [data-target-form] button[data-place]:hover{background:#1d4ed8!important}

.target-card-text-editor{margin:12px 0;padding:12px;border:1px solid #b8cce1;border-radius:8px;background:#f4f8ff}.target-card-text-editor textarea{width:100%;box-sizing:border-box;min-height:110px}.target-card-text-editor .actions{display:flex;gap:8px}.target-card-text-editor [role=status]{overflow-wrap:anywhere}
