.sector-survey-view{--survey-accent:#355d49;--survey-soft:#edf3ef}
.sector-survey-header{align-items:flex-start}
.sector-survey-private{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);background:var(--white);font-size:13px;font-weight:700;white-space:nowrap}
.sector-survey-private span{width:9px;height:9px;border-radius:50%;background:var(--survey-accent)}
.sector-survey-signal{position:sticky;top:0;z-index:501;display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 16px;border:1px solid var(--line);border-left:5px solid #777;background:var(--white);box-shadow:0 5px 18px rgba(0,0,0,.06)}
.sector-survey-signal strong{font-size:18px;white-space:nowrap}.sector-survey-signal span{font-size:14px;color:var(--black-01);overflow-wrap:anywhere}
.sector-survey-signal[data-state="fixed"]{border-left-color:#327153}.sector-survey-signal[data-state="fixed"] strong{color:#276143}
.sector-survey-signal[data-state="warning"]{border-left-color:#a87427}.sector-survey-signal[data-state="warning"] strong{color:#845d20}
.sector-survey-signal[data-state="offline"]{border-left-color:#aa514d}.sector-survey-signal[data-state="offline"] strong{color:#913c38}
.sector-survey-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(350px,.7fr);gap:18px;align-items:start}
.sector-survey-map-panel{position:sticky;top:74px;min-width:0;height:calc(100vh - 170px);min-height:560px;border:1px solid var(--line);background:#e9ece8;overflow:hidden}
.sector-survey-map{width:100%;height:100%;min-height:560px}
.sector-survey-map-empty{position:absolute;z-index:450;left:50%;bottom:20px;transform:translateX(-50%);width:min(88%,440px);padding:12px 16px;border:1px solid var(--line);background:var(--white);color:var(--black-01);text-align:center;font-size:14px;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.sector-survey-map-empty[hidden]{display:none}
.sector-survey-tools{display:grid;gap:14px;min-width:0}.sector-survey-tools>.panel{padding:20px;margin:0}
.sector-survey-tools h2{margin:3px 0 18px;font-size:21px}.sector-survey-new{display:grid;gap:14px}.sector-survey-new[hidden],.sector-survey-active[hidden]{display:none!important}
.sector-survey-new label{display:grid;gap:7px;font-size:14px;font-weight:700}.sector-survey-new input,.sector-survey-new select{width:100%;min-width:0;min-height:48px;font-size:16px}
.sector-survey-new .button{width:100%;min-height:52px}
.sector-survey-active-head,.sector-survey-register-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.sector-survey-active-head h2,.sector-survey-register-head h2{margin-bottom:8px}
#sectorSurveyDraftState{padding:6px 9px;border:1px solid var(--line);font-size:12px;font-weight:800}#sectorSurveyDraftState[data-status="saved"]{color:#276143;border-color:#739482;background:var(--survey-soft)}
.sector-survey-count{display:flex;align-items:baseline;gap:10px;padding:16px 0;border-top:1px solid var(--line)}.sector-survey-count strong{font-size:38px;line-height:1}.sector-survey-count span{color:var(--black-01);font-size:14px}
.sector-survey-guidance{min-height:42px;margin:0 0 12px;color:var(--black-01);font-size:15px;line-height:1.5}
.sector-survey-active .button{width:100%;min-height:48px;margin-top:9px}.sector-survey-capture{min-height:66px!important;font-size:18px!important}.sector-survey-finish{background:var(--survey-accent)!important}
.sector-survey-secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sector-survey-active .button.danger{margin-top:18px;background:transparent;color:#9d3e39;border-color:#b9716d}
.sector-survey-point-list{margin-top:20px;border-top:1px solid var(--line)}.sector-survey-point-list h3{margin:18px 0 8px;font-size:16px}
.sector-survey-point{display:grid;grid-template-columns:34px minmax(0,1fr) 38px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.sector-survey-point>b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#263d32;color:#fff}.sector-survey-point span{min-width:0}.sector-survey-point strong,.sector-survey-point small{display:block}.sector-survey-point strong{font-size:13px}.sector-survey-point small{margin-top:3px;color:var(--black-01);font:12px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.sector-survey-list{display:grid;margin:0 -8px}.sector-survey-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:13px 8px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--black-03);font:inherit;text-align:left;cursor:pointer}.sector-survey-row:hover,.sector-survey-row.is-selected{background:var(--survey-soft)}.sector-survey-row.is-selected{box-shadow:inset 3px 0 var(--survey-accent)}
.sector-survey-row>span:first-child{min-width:0}.sector-survey-row strong,.sector-survey-row small{display:block}.sector-survey-row strong{font-size:15px;overflow-wrap:anywhere}.sector-survey-row small{margin-top:4px;color:var(--black-01);font-size:12px}
.sector-survey-row-meta{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:0 4px;text-align:right}.sector-survey-row-meta>b{font-size:18px}.sector-survey-row-meta>em{grid-column:1/-1;margin-top:4px;color:#8a631f;font-size:11px;font-style:normal;font-weight:800;text-transform:uppercase}.sector-survey-row-meta>em[data-status="saved"]{color:#276143}
.sector-survey-point-marker{background:transparent!important;border:0!important}.sector-survey-point-marker span{display:grid;place-items:center;width:32px;height:32px;border:3px solid #fff;border-radius:50%;background:#263d32;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4);font:800 13px/1 Arial,sans-serif}
html[data-theme="dark"] .sector-survey-view{--survey-soft:#24342c}html[data-theme="dark"] .sector-survey-map-empty{background:#1d1e1f}html[data-theme="dark"] .sector-survey-signal[data-state="fixed"] strong,html[data-theme="dark"] .sector-survey-row-meta>em[data-status="saved"]{color:#8bc9ae}html[data-theme="dark"] .sector-survey-signal[data-state="warning"] strong{color:#e0bf76}html[data-theme="dark"] .sector-survey-signal[data-state="offline"] strong{color:#f0a09a}
@media(max-width:1050px){.sector-survey-layout{grid-template-columns:1fr}.sector-survey-map-panel{position:relative;top:auto;height:56vh;min-height:440px}.sector-survey-map{min-height:440px}.sector-survey-tools{grid-template-columns:1fr 1fr}.sector-survey-active{grid-row:1/3}.sector-survey-register{grid-column:2}}
@media(max-width:760px){.sector-survey-header{display:grid}.sector-survey-private{justify-self:start}.sector-survey-signal{top:0;display:grid;gap:3px}.sector-survey-signal strong{font-size:17px}.sector-survey-map-panel{height:48vh;min-height:330px}.sector-survey-map{min-height:330px}.sector-survey-tools{grid-template-columns:1fr}.sector-survey-active,.sector-survey-register{grid-row:auto;grid-column:auto}.sector-survey-tools>.panel{padding:16px}.sector-survey-capture{min-height:62px!important}.sector-survey-secondary-actions{grid-template-columns:1fr}.sector-survey-point small{font-size:11px}}
/* Editing controls stay outside the map so they do not obscure vertices. */
.sector-survey-manual-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}
.sector-survey-manual-toolbar>div:not([hidden]){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sector-survey-point{flex-wrap:wrap}
.sector-survey-point-marker{touch-action:none}
.sector-survey-map-panel{display:flex;flex-direction:column}
.sector-survey-map{flex:1;min-height:0;height:auto}
.sector-survey-manual-toolbar{flex-shrink:0;background:var(--white);padding:12px}
.sector-survey-map-empty{bottom:88px}
.sector-survey-point>.button{grid-column:2/-1;justify-self:start;width:auto;margin:0}
.sector-survey-point-marker span{width:40px;height:40px}
.sector-survey-view .icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;padding:8px}
.sector-survey-view .icon-button svg{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sector-survey-list-item{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:4px}
.sector-survey-list-item .sector-survey-row{min-width:0}
.sector-survey-list-item.is-map-hidden .sector-survey-row{opacity:.6}
.sector-survey-view .sector-survey-visibility{width:44px;height:44px;padding:10px}
.sector-survey-visibility:focus-visible{outline:2px solid currentColor;outline-offset:2px}
