.address-sheet[hidden],.address-sheet [hidden]{display:none!important}
.address-sheet{position:fixed;inset:auto 0 0;z-index:50;height:280px;max-width:780px;margin:0 auto;display:flex;flex-direction:column;background:#fff;color:#173954;border:1px solid #becbd6;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -4px 22px #00205c20;font:14px/1.4 'Noto Sans',Arial,sans-serif;overflow:visible;padding-bottom:env(safe-area-inset-bottom,0px)}
.address-sheet *,.field-progress-report *{box-sizing:border-box}.address-sheet button,.address-sheet input,.address-sheet select,.field-progress-report button{font:inherit;color:inherit}.address-sheet button,.field-progress-report button{cursor:pointer;min-height:44px;background:#fff;border:1px solid #c7d5e0;border-radius:7px;padding:8px 11px}.address-sheet :focus-visible,.field-progress-report :focus-visible{outline:3px solid #c34123;outline-offset:2px}
.address-sheet-handle{height:22px;min-height:22px;display:grid;place-items:center;cursor:ns-resize;touch-action:none}.address-sheet-handle i{width:42px;height:4px;border-radius:3px;background:#8195a4}
.sheet-tools{display:flex;gap:6px;padding:0 12px 8px;flex-wrap:wrap}.sheet-tools label{flex:1;min-width:110px}.sheet-tools input{width:100%;height:44px;border:1px solid #bdcddd;border-radius:7px;padding:8px;font-size:16px}.sheet-tools button{font-size:12px;padding:7px 8px}.sheet-tools [aria-pressed=true]{background:#1c4076;color:white}.sheet-filters{padding:0 12px 8px}.sheet-filters label{display:flex;align-items:center;gap:8px}.sheet-filters select{min-height:44px;border:1px solid #bdcddd;border-radius:7px;background:white;padding:5px;flex:1}.sheet-message{font-size:11px;margin:0;padding:0 12px 7px;color:#506b80}.sheet-addresses{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.sheet-house{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:62px!important;padding:10px 14px!important;border:0!important;border-top:1px solid #e3eaf0!important;border-radius:0!important;text-align:left}.sheet-house>span:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.sheet-house strong{font-size:14px;overflow-wrap:anywhere}.sheet-house small{font-size:11px;color:#61788a}.sheet-house.selected{background:#eaf1f8}.sheet-house .sheet-distance{white-space:nowrap;color:#1c4076}.sheet-empty{padding:10px 16px;color:#61788a}.sheet-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.field-progress-report{max-width:520px;width:calc(100% - 28px);max-height:85dvh;overflow:auto;padding:20px;border:1px solid #bdcddd;border-radius:14px;color:#173954;background:#fff;font:14px/1.5 'Noto Sans',Arial,sans-serif}.field-progress-report::backdrop{background:#00205c55}.field-progress-report header{display:flex;align-items:center;justify-content:space-between}.field-progress-report h2{margin:0;font-size:23px}.field-progress-report header button{font-size:23px;border:0}.field-progress-report nav{display:flex;gap:8px;margin-top:12px}.field-progress-report nav button{flex:1;font-weight:700}.field-progress-report [aria-pressed=true]{background:#1c4076;color:white}.progress-total{display:flex;flex-direction:column;padding:12px 0}.progress-total strong{font-size:34px}.progress-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.progress-metrics button{display:flex;flex-direction:column;align-items:center;font-size:11px}.progress-metrics strong{font-size:24px}.progress-outcomes{display:grid}.progress-outcomes button{display:flex;justify-content:space-between;border:0;border-bottom:1px solid #e3eaf0;border-radius:0}.sheet-muted{color:#61788a;font-size:12px}
body.address-sheet-visible #working-map-tools{bottom:calc(var(--address-sheet-height) + 12px)}body.address-sheet-visible .mapboxgl-ctrl-bottom-right,body.address-sheet-visible .mapboxgl-ctrl-bottom-left{bottom:var(--address-sheet-height)}
body.is-working-area #map,body.is-working-area.household-callout-open #map{bottom:0!important}
body.is-working-area #household-callout{display:none!important}
body.is-working-area .working-toolbar{z-index:60}
body.address-sheet-visible .field-map-chooser{bottom:calc(var(--address-sheet-height) + 8px);max-height:max(44px,calc(100dvh - var(--address-sheet-height) - 100px))}
@media(min-width:900px){.address-sheet{left:auto;right:20px;width:440px;margin:0}}@media(prefers-reduced-motion:reduce){.address-sheet *{scroll-behavior:auto!important}}
#field-workspace[data-page=survey] .fw-inner{height:auto;min-height:100dvh;display:block;padding-bottom:110px}
#field-workspace .fw-map-progress{border:0;background:transparent;color:#1c4076;cursor:pointer;padding:4px;min-height:44px}
#field-workspace .fw-household-tabs{position:sticky;top:86px;z-index:19;display:flex;background:#fff;border-bottom:1px solid #d8e2e9;padding:0 12px;gap:18px}
#field-workspace .fw-household-tabs button{border:0;border-bottom:3px solid transparent;background:white;padding:11px 3px;min-height:46px;font-weight:700;color:#627789}
#field-workspace .fw-household-tabs [aria-current=page]{color:#1c4076;border-bottom-color:#1c4076}
#field-workspace .fw-unreachable{display:block;width:100%;min-height:40px;border:1px solid #b83232;border-radius:6px;padding:8px 10px;background:#fff;color:#ad2929;font-size:13px;font-weight:600;margin:5px 0 22px}
#field-workspace .fw-person-prompt{font-size:21px!important;line-height:1.35;margin:0 0 17px}
#field-workspace .fw-person-entry{padding-top:15px}#field-workspace .fw-conversation-form{padding:10px 14px 16px}
#field-workspace .fw-conversation-form h1,#field-workspace .fw-details>h1{font-size:24px!important;margin:0 0 14px}
#field-workspace .fw-inline-script{padding:12px;background:#eef3f8;border:1px solid #d3dfe8;border-radius:8px;margin-bottom:12px}
#field-workspace .fw-inline-script summary{min-height:30px;font-weight:700;color:#1c4076}
#field-workspace .fw-inline-script blockquote{margin:8px 0 0;font-size:15px;line-height:1.65}
#field-workspace .fw-conversation-question{padding:8px 0;border-bottom:1px solid #dde5eb}
#field-workspace .fw-conversation-question h2{font-family:'Noto Sans',Arial,sans-serif;font-size:16px;line-height:1.4;margin:0 0 5px}
#field-workspace .fw-conversation-question h2>span{color:#6a8194}
#field-workspace .fw-conversation-form .fw-rank-options,#field-workspace .fw-conversation-form .fw-rank-options.fw-dense-options,#field-workspace .fw-conversation-form .fw-single-options{display:flex;flex-direction:row;flex-wrap:wrap;gap:5px}
#field-workspace .fw-conversation-form .fw-rank-options>button{width:auto;max-width:100%;flex:0 1 auto;min-height:32px;font-size:13px;line-height:1.3;padding:5px 8px;gap:5px}
#field-workspace .fw-conversation-form .fw-rank-badge{position:static;height:17px;min-width:17px;font-size:10px}
#field-workspace .fw-conversation-form .fw-rank-badge:empty{display:none}
#field-workspace .fw-conversation-form .fw-radio{min-height:32px;padding:5px 8px;gap:5px;font-size:13px;line-height:1.3}
#field-workspace .fw-conversation-form .fw-radio input{width:15px;height:15px;margin:0}
#field-workspace .fw-conversation-form .fw-ranking-hint{margin:0 0 6px;font-size:11px;line-height:1.4}
#field-workspace .fw-conversation-form .fw-selected-priorities{margin-top:5px;font-size:11px;line-height:1.4}
#field-workspace .fw-conversation-form .fw-field{margin:4px 0;gap:4px}
#field-workspace .fw-conversation-form textarea{min-height:58px;padding:6px 8px;font-size:16px;line-height:1.35}
#field-workspace .fw-conversation-form .fw-paired-answers{gap:6px}
#field-workspace .fw-conversation-form .fw-paired-answers .fw-field{margin:0;gap:3px}
#field-workspace .fw-conversation-footer{position:fixed;bottom:0;left:0;right:0;margin:auto;max-width:680px;padding:6px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid #cad8e3;background:#fffffffa;box-shadow:0 -3px 12px #00205c0a;z-index:30}
#field-workspace .fw-conversation-footer [data-autosave-state]{display:block;text-align:center;color:#60798a;font-size:11px;margin-bottom:4px}
#field-workspace .fw-conversation-footer button{min-height:48px;font-size:16px}
#field-workspace .fw-details section{padding:18px 0;border-top:1px solid #d9e3eb}#field-workspace .fw-details h2{font-size:18px}
#field-workspace .fw-contact-card{background:white;border:1px solid #d5e1e9;border-radius:8px;padding:14px;margin:12px 0}
#field-workspace .fw-contact-card>p{font-size:12px;color:#60798a;margin:4px 0 12px}#field-workspace .fw-contact-card dl{display:grid;grid-template-columns:70px 1fr;gap:10px;font-size:14px;margin:0}#field-workspace .fw-contact-card dt{color:#60798a}#field-workspace .fw-contact-card dd{margin:0;overflow-wrap:anywhere}#field-workspace .fw-contact-card a{color:#1c4076}
#field-workspace .fw-history-entry{padding:12px 0;border-bottom:1px solid #e0e8ee}#field-workspace .fw-history-entry small{display:block;font-size:11px;color:#60798a}#field-workspace .fw-history-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 8px}
.field-map-note-prompt[hidden]{display:none!important}.field-map-note-prompt{position:fixed;z-index:80;left:12px;right:12px;bottom:calc(var(--address-sheet-height,0px) + 12px);display:flex;gap:12px;align-items:center;justify-content:space-between;max-width:600px;margin:0 auto;background:#fff;padding:12px;border:2px solid #1c4076;border-radius:9px;box-shadow:0 2px 15px #00205c30;color:#173954;font:14px/1.4 'Noto Sans',Arial,sans-serif}.field-map-note-prompt button{border:0;background:#edf3f8;padding:10px;min-height:44px;color:#1c4076;border-radius:6px;font:inherit;cursor:pointer}
.field-map-note-dialog{width:min(500px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid #b8cbd8;border-radius:12px;padding:20px;background:#fff;color:#173954;font:15px/1.5 'Noto Sans',Arial,sans-serif}.field-map-note-dialog::backdrop{background:#00205c55}.field-map-note-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.field-map-note-dialog h2{margin:0;font-size:21px}.field-map-note-dialog button{font:inherit;min-height:44px;border:1px solid #b8cbd8;border-radius:6px;padding:9px 14px;background:white;color:#1c4076;cursor:pointer}.field-map-note-dialog [type=submit]{background:#1c4076;color:#fff;width:100%;font-weight:700}.field-map-note-dialog form>label{display:flex;flex-direction:column;gap:6px;margin:16px 0}.field-map-note-dialog textarea{font:inherit;padding:10px;border:1px solid #b8cbd8;border-radius:6px;width:100%;box-sizing:border-box}.field-map-note-dialog fieldset{border:0;padding:0;margin-top:16px;display:grid;gap:8px}.field-map-note-dialog fieldset label{min-height:44px;display:flex;align-items:center;gap:8px}.field-map-note-dialog [data-note-status]{font-size:13px}
.field-note-marker{width:34px;height:34px;border:2px solid #fff;border-radius:50%;background:#b9382c;color:#fff;box-shadow:0 2px 6px #00205c50;font:bold 22px/1 Arial;cursor:pointer;z-index:8}.field-note-asset{background:#27765c}.field-map-note-dialog article p{white-space:pre-wrap}.field-map-note-dialog article img{display:block;max-width:100%!important}
#field-workspace .fw-household-tabs{top:var(--fw-banner-height,86px)}
.sheet-house-row{border-left:3px solid transparent}.sheet-house-row.selected{border-left-color:#1c4076;background:#eaf1f8}.sheet-house-heading{display:flex;align-items:center;gap:0}.sheet-house-heading .sheet-house{flex:1;min-width:0;width:auto;padding-left:11px!important}.sheet-house-preview{padding:0 14px 10px 11px}.sheet-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;list-style:none;margin:0;padding:0;font-size:14px;line-height:1.45;color:#314f64}.sheet-people li{min-width:0;overflow-wrap:anywhere}.sheet-roster-message{font-size:11px;color:#61788a;margin:0 0 8px}.address-sheet [data-sheet-visit]{flex:none;min-width:64px;min-height:44px;margin-right:12px;background:#1c4076;color:#fff;font-size:14px;font-weight:700}
.address-sheet[data-compact=true] :is(.sheet-tools,.sheet-filters,.sheet-message,.sheet-addresses){display:none!important}
.field-note-tool[hidden]{display:none!important}.field-note-tool{position:fixed;right:12px;bottom:calc(var(--address-sheet-height,0px) + 12px);z-index:40;display:flex;align-items:center;justify-content:center;width:52px;height:44px;min-height:44px;padding:4px;border:1px solid #b8cbd8;border-radius:22px;background:white;box-shadow:0 2px 7px #00205c20;cursor:pointer}
body.field-workspace-open .field-note-tool{display:none}
body.is-working-area.has-map-guidance .map-guidance{flex-direction:row;gap:4px;min-height:36px;padding:0 3px;white-space:nowrap;font-size:clamp(10px,3vw,13px);line-height:1.2;background:#ffffffd9;border-radius:4px}
body.is-working-area.has-map-guidance .map-guidance button{min-height:36px;min-width:0;padding:0 2px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;box-shadow:none;white-space:nowrap}
body.is-working-area .map-guidance.is-next-house #map-guidance-text{font:inherit}
.field-note-plus{color:#27765c}.field-note-alert{color:#b83232}
.field-note-tool svg{display:block;width:40px;height:24px}
.field-map-number.field-selected .field-address-number{color:#ac3c21;text-decoration:underline;text-underline-offset:3px}
.working-area-summary{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.working-area-summary>strong{white-space:nowrap}.working-toolbar-actions{flex:none;gap:6px}.working-toolbar .canvass-precinct-return{margin:0;box-shadow:none;border:1px solid #b8cbd8;border-radius:6px}.working-toolbar .canvass-precinct-return-button{min-width:44px;min-height:44px;padding:0;border:0}body.is-working-area .working-toolbar #mobile-progress{display:flex;align-items:center;height:44px;min-width:0}.working-toolbar #mobile-progress-text{white-space:nowrap}
@media(max-width:360px){.working-toolbar{padding-left:8px;padding-right:8px;gap:6px}.working-area-summary{gap:6px}.working-area-summary>strong{font-size:13px}body.is-working-area .working-toolbar #mobile-progress-text{font-size:11px}}

/* One context line above the map; navigation stays with the map controls. */
.working-area-summary{font:700 15px/1.3 'Noto Sans',Arial,sans-serif;gap:6px}
.working-area-summary>strong,.working-progress-separator,body.is-working-area .working-toolbar #mobile-progress-text{font:inherit;color:inherit;line-height:1.3}
body.is-working-area .working-toolbar #mobile-progress-text .working-visited-count{font-weight:inherit}
body.is-working-area .mapboxgl-ctrl-top-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-height:max(44px,calc(100% - var(--address-sheet-height,0px) - 14px));overflow:auto;scrollbar-width:none}
body.is-working-area .mapboxgl-ctrl-top-right>.mapboxgl-ctrl{flex:none;float:none;margin:0}
.mapboxgl-ctrl-top-right>.canvass-precinct-return{order:-1}
.mapboxgl-ctrl-top-right>.field-note-tool{position:static;inset:auto;box-sizing:border-box;width:44px;border-radius:6px;flex:none}
body.field-workspace-docked .field-note-tool{display:flex}

/* Addresses scroll above a fixed bottom search/filter/location bar. */
.sheet-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.sheet-addresses{flex:1;min-height:0}
.sheet-bottom-bar{flex:none;background:white;border-top:1px solid #d4dfe6;padding-top:7px}
.sheet-bottom-bar .sheet-tools{flex-wrap:nowrap;padding:0 10px 7px;gap:5px}
.sheet-bottom-bar .sheet-tools label{min-width:0}
.sheet-bottom-bar .sheet-tools input{height:40px;font-size:14px}
.sheet-bottom-bar .sheet-tools button{min-height:40px;padding:5px 7px;white-space:nowrap}
.sheet-house-row{padding:7px 10px 8px 0;border-top:1px solid #e3eaf0}
.sheet-house-heading{justify-content:flex-start;gap:6px}
.sheet-house-heading .sheet-house{flex:0 1 auto;min-height:30px!important;padding:0 0 0 11px!important;border:0!important;background:transparent;justify-content:flex-start}
.sheet-house-heading .sheet-house strong{font-size:14px;line-height:1.35}
.address-sheet [data-sheet-visit]{min-width:48px;min-height:24px;height:24px;padding:2px 8px;margin:0;border:0;border-radius:5px;background:#C64424;color:white;font-size:12px}
.sheet-house-meta{display:flex;align-items:center;gap:8px;margin:1px 0 0 11px;font-size:12px;color:#61788a}
.sheet-house-meta small{font:inherit}.sheet-house-meta .sheet-distance{margin-left:auto;white-space:nowrap;color:#1c4076}
.sheet-house-preview{padding:7px 0 0 11px}
.address-sheet[data-compact=true] .sheet-bottom-bar{display:none}

/* The same draggable panel hosts the person picker and conversation. */
.address-sheet[data-workspace=true] .sheet-body{overflow:hidden}
#field-workspace.is-docked{position:relative;inset:auto;z-index:auto;flex:1;min-height:0;height:100%;width:100%;overflow:hidden;border-radius:0;background:#fbfcfd}
#field-workspace.is-docked .fw-inner{height:100%!important;min-height:0!important;max-width:none;padding-bottom:0!important;display:flex!important;flex-direction:column;overflow:hidden}
#field-workspace.is-docked .fw-panel-banner{display:flex;align-items:center;gap:12px;flex:none;padding:5px 12px;background:#fff;border-bottom:1px solid #d8e2e9}
#field-workspace .fw-panel-back{flex:none;min-height:32px;padding:3px 0;border:0;background:transparent;color:#1c4076;font-size:12px;font-weight:700}
#field-workspace .fw-panel-banner>div{min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
#field-workspace .fw-panel-banner>div>span{font-size:12px;color:#526e82}
#field-workspace .fw-panel-banner>div>:is(strong,span){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#field-workspace.is-docked .fw-household-tabs{position:static;flex:none;padding:0 12px;gap:16px}
#field-workspace.is-docked .fw-household-tabs button{min-height:34px;padding:5px 2px;font-size:13px}
#field-workspace.is-docked :is(.fw-header,.fw-warning,.fw-notice){flex:none}
#field-workspace.is-docked .fw-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 12px;-webkit-overflow-scrolling:touch}
#field-workspace.is-docked .fw-person-prompt{font-size:17px!important;margin-bottom:12px}
#field-workspace.is-docked .fw-unreachable{min-height:32px;margin:0 0 12px;padding:5px 8px;font-size:12px}
#field-workspace.is-docked .fw-visit-choice{min-height:46px;padding:8px 10px;font-size:15px}
#field-workspace.is-docked .fw-conversation-footer{position:static;flex:none;width:100%;max-width:none;padding:5px 12px}
#field-workspace.is-docked .fw-conversation-footer button{min-height:38px}
#field-workspace.is-docked .fw-conversation-footer [data-autosave-state]{margin-bottom:3px}
#field-workspace.is-docked .fw-conversation-form h1{font-size:18px!important}
@media(max-width:360px){.working-area-summary{font-size:13px}.working-area-summary>strong,body.is-working-area .working-toolbar #mobile-progress-text{font:inherit}.sheet-bottom-bar .sheet-tools input{font-size:13px}.sheet-bottom-bar .sheet-tools button{font-size:11px;padding:5px}}
@media(max-height:480px){#field-workspace.is-docked .fw-panel-banner{padding-top:2px;padding-bottom:2px}#field-workspace.is-docked .fw-conversation-footer{padding-top:3px;padding-bottom:3px}#field-workspace.is-docked .fw-conversation-footer button{min-height:32px;padding:5px;font-size:14px}#field-workspace.is-docked .fw-conversation-footer [data-autosave-state]{font-size:10px;margin-bottom:1px}#field-workspace.is-docked .fw-household-tabs button{min-height:30px;padding:3px 2px}}

.sheet-house-row.selected .sheet-house-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px}
.sheet-house-heading>[data-sheet-status]{justify-self:center;font-size:11px;line-height:1.3;color:#61788a;white-space:nowrap}

/* A selected person's conversation covers the map beneath its context header. */
.address-sheet[data-person-expanded=true]{left:0;right:0;width:auto;max-width:none;margin:0}
.address-sheet.is-person-transition:not(.is-dragging){transition:height 180ms ease-out}
#field-workspace .fw-panel-banner>.fw-panel-address{flex:1;min-width:0}
#field-workspace .fw-panel-address>strong{white-space:normal!important}
#field-workspace .fw-panel-banner>.fw-panel-person{flex:0 1 36%;max-width:200px;font-size:13px;line-height:1.35;color:#526e82}
#field-workspace .fw-panel-person>span{font:inherit!important}
#field-workspace .fw-household-tabs{align-items:center}
#field-workspace .fw-tab-script{position:relative;z-index:2;margin-left:auto;flex:none;color:#1c4076;font-size:13px}
#field-workspace .fw-tab-script summary{cursor:pointer;min-height:34px;display:flex;align-items:center;gap:4px;padding:5px 0;font-weight:700;list-style:none}
#field-workspace .fw-tab-script summary::before{content:'▸';display:inline-block}
#field-workspace .fw-tab-script[open] summary::before{transform:rotate(90deg)}
#field-workspace .fw-tab-script blockquote{position:absolute;top:100%;right:0;width:min(480px,calc(100vw - 24px));max-height:35dvh;overflow:auto;margin:0;padding:14px;border:1px solid #c7d5e0;border-radius:7px;background:#fff;box-shadow:0 4px 16px #00205c25;color:#173954;font-size:15px;line-height:1.6;white-space:pre-wrap}
@media(prefers-reduced-motion:reduce){.address-sheet.is-person-transition{transition:none}}
