:root {
  color-scheme: light;
  --paper:#eff3fa; --white:#fff; --ink:#111e37; --muted:#52617a;
  --navy:#0b1733; --blue:#214c9e; --ice:#dbe7ff; --line:#d7e0ee;
  --shadow:0 10px 26px #142c6310;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
* {box-sizing:border-box}
body {margin:0;color:var(--ink);background:var(--paper)}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(1.8rem,3.1vw,2.7rem);letter-spacing:-.05em;line-height:1.05}
h2 {font-size:1.24rem;letter-spacing:-.03em}
h3 {font-size:1.02rem}
p {line-height:1.5}
a {color:var(--blue)}
button,input,textarea,select {font:inherit}
button,a,input,select,textarea {touch-action:manipulation}
button {cursor:pointer}
button:disabled {cursor:default;opacity:.45}
:focus-visible {outline:3px solid #d4973b;outline-offset:3px}
.topbar {background:var(--navy);color:#fff}
.topinner {max-width:1480px;margin:auto;min-height:72px;display:flex;align-items:center;gap:28px;padding:10px 30px}
.brand {display:flex;align-items:center;gap:10px;font-weight:760;font-size:1.14rem;letter-spacing:-.04em;text-decoration:none;color:#fff;white-space:nowrap}
.brand img {width:35px;height:35px;border:1px solid #a8bee666;border-radius:11px}
.topmeta {display:flex;gap:12px;align-items:center;margin-left:auto;font-size:.83rem;color:#e1eaff}
.nav {display:flex;gap:5px;overflow:auto;scrollbar-width:thin}
.nav button {border:0;color:#e6eeff;background:transparent;padding:10px 14px;border-radius:8px;white-space:nowrap;font-weight:610}
.nav button.active {color:var(--navy);background:var(--ice)}
.main {max-width:1480px;margin:auto;padding:30px}
.heading {display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:23px}
.heading p {margin-top:8px}
.dim,.hint,small {color:var(--muted)}
.hint,small {font-size:.83rem}
.stack {display:grid;gap:16px}
.cluster {display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.spread {justify-content:space-between}
.field {display:grid;gap:6px;font-size:.87rem;font-weight:650;min-width:0}
input:not([type=checkbox]),textarea,select {min-height:41px;border:1px solid #c8d4ea;border-radius:9px;padding:8px 10px;background:white;color:var(--ink);width:100%;min-width:0}
textarea {resize:vertical;line-height:1.45}
label.check {display:flex;align-items:flex-start;gap:9px;font-size:.88rem;line-height:1.5}
input[type=checkbox] {width:17px;height:17px;flex:none;margin:2px 0;accent-color:var(--blue)}
.btn {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);text-decoration:none;white-space:nowrap;font-size:.86rem;font-weight:690}
.btn:hover {border-color:#8ba6d6;background:#f4f7ff}
.primary {background:var(--blue);border-color:var(--blue);color:white}
.primary:hover {background:var(--navy);color:white}
.secondary {background:#e7efff;border-color:#d8e4fb;color:#173466}
.danger {color:#9d322c}
.topmeta .btn {background:#ffffff10;border-color:#ffffff40;color:#fff}
.card {background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:0}
.pad {padding:17px}
.card-title {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.two {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.three {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}
.metric {padding:16px;min-height:91px;display:grid;align-content:space-between;gap:8px}
.metric strong {font-size:1.75rem;letter-spacing:-.06em;line-height:1.05;overflow-wrap:anywhere}
.metric:first-child {background:var(--navy);color:#fff;border-color:var(--navy)}
.metric:first-child small {color:#d9e8ff}
.mapgrid {display:grid;grid-template-columns:minmax(0,1fr) minmax(305px,34%);gap:16px}
.mapcard {overflow:hidden;align-self:start}
.maphead {padding:12px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.maphead select {width:auto;margin-left:auto}
.map {height:clamp(375px,61vh,735px);background:repeating-linear-gradient(0deg,#e0e8f7 0 1px,transparent 1px 48px),repeating-linear-gradient(90deg,#e0e8f7 0 1px,#f3f6fd 1px 48px);isolation:isolate;color:#263b61}
.map .leaflet-tile-pane .street-map {filter:saturate(.68)}
.mapnote {padding:9px 13px;border-top:1px solid var(--line);font-size:.78rem;color:var(--muted);min-height:36px}
.list {display:grid;gap:8px}
.addresses {max-height:470px;overflow:auto;margin-top:10px;padding-right:2px}
.row {display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;min-width:0;background:#fff}
.row.selected {border-color:#85a3d9;background:#edf3ff}
.row button.address {text-align:left;border:0;background:transparent;color:var(--ink);padding:0;flex:1;min-width:0}
.row strong {overflow-wrap:anywhere}
.dot {display:inline-block;width:11px;height:11px;border-radius:50%;flex:none;background:var(--dot,#92a7cb)}
.pill {border:1px solid #d8e5fa;background:#eef4ff;color:#254b8c;padding:4px 8px;border-radius:30px;font-size:.74rem;white-space:nowrap;display:inline-flex;gap:5px;align-items:center}
.progress {height:7px;background:#e3ecfb;border-radius:10px;overflow:hidden}
.progress span {height:100%;display:block;border-radius:inherit;background:var(--bar,var(--blue))}
.filterbar {margin-bottom:14px;display:flex;gap:9px;align-items:flex-end;flex-wrap:wrap}
.filterbar .field {min-width:125px}
.filterbar input {max-width:200px}
.divicon {background:transparent;border:none}
.housepin {display:grid;place-items:center;border-radius:7px;min-width:30px;width:max-content;padding:2px 5px;min-height:25px;border:2px solid white;background:var(--pin,#42639d);color:white;font-size:.77rem;font-weight:790;box-shadow:0 2px 5px #0b173355}
.housepin.picked {outline:3px solid #d49633}
.housepin.done {border-color:#adcaff}
.housepin.pending {background:#646d65}
.lastpin,.livepin {display:grid;place-items:center;width:30px;height:30px;background:#fff;border:3px solid #a76520;color:#8b4c14;border-radius:50%;font-weight:800;box-shadow:0 3px 10px #273d4566}
.livepin {border-color:#2273be;color:#175e9c}
.empty {padding:16px;color:var(--muted);background:#f5f8ff;border:1px dashed var(--line);border-radius:10px;font-size:.89rem}
.steps {display:grid;gap:13px}
.stepbuttons {display:grid;grid-template-columns:48px minmax(50px,1fr) 48px;align-items:center;gap:8px;text-align:center}
.stepbuttons .btn {font-size:1.05rem;font-weight:780}
.kicker {color:#325b9e;font-size:.76rem;letter-spacing:.07em;text-transform:uppercase;font-weight:780}
dialog {width:min(600px,calc(100% - 20px));max-height:92dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:19px;color:var(--ink);box-shadow:0 16px 60px #14285655}
dialog::backdrop {background:#101c36a0}
#notice {position:fixed;right:14px;bottom:14px;z-index:1200;pointer-events:none;max-width:min(440px,calc(100% - 28px))}
#notice:not(:empty) {background:var(--navy);color:#fff;border:1px solid #ffffff60;border-radius:10px;padding:11px 15px;box-shadow:var(--shadow);font-size:.91rem}
.boot {padding:25px}
.access {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:calc(100dvh - 72px);max-width:1480px;margin:auto}
.access-form {display:grid;align-content:center;padding:35px clamp(24px,7vw,100px);gap:22px}
.access-panel {background:var(--navy);color:white;display:grid;align-content:center;gap:12px;padding:clamp(28px,7vw,95px);position:relative;overflow:hidden}
.access-panel img {width:78px;border-radius:19px;border:1px solid #ffffff4d;margin-bottom:10px}
.access-panel h2 {font-size:clamp(1.6rem,3.8vw,3.1rem);max-width:14ch}
.access-panel p {color:#dce8fb;max-width:32ch}
.policy {white-space:pre-wrap;max-height:180px;overflow:auto;margin-top:7px;padding:9px;background:#f1f5fe}
summary {cursor:pointer;font-size:.88rem;font-weight:640}
hr {width:100%;margin:2px 0;border:0;border-top:1px solid var(--line)}
.qr {display:block;margin:auto;width:min(225px,95%);image-rendering:pixelated}
.sheet-list {max-height:270px;overflow:auto}
.table-wrap {overflow:auto}
table {border-collapse:collapse;width:100%;font-size:.86rem;text-align:left}
th,td {border-bottom:1px solid var(--line);padding:9px;vertical-align:top}
th {font-weight:750}
.row-text {min-width:0;flex:1}
@media(max-width:880px) {
 .topinner,.main {padding-left:16px;padding-right:16px}
 .topinner {gap:10px;flex-wrap:wrap}
 .nav {order:3;flex-basis:100%}
 .mapgrid {grid-template-columns:1fr}
 .map {height:clamp(310px,47vh,560px)}
 .access {min-height:auto}
}
@media(max-width:600px) {
 .topinner {min-height:58px}
 .main {padding:18px 11px}
 .heading {align-items:flex-start;flex-direction:column;margin-bottom:14px}
 .metrics,.three,.two {grid-template-columns:repeat(2,minmax(0,1fr))}
 .two.collapse,.access {grid-template-columns:1fr}
 .access-panel {display:none}
 .access-form {padding:28px 17px}
 .maphead {padding:8px}
 .maphead select {width:100%;margin:0}
 .map .leaflet-control-attribution {max-width:calc(100vw - 27px)}
 .addresses {max-height:330px}
 .metric {min-height:78px;padding:11px}
 dialog {padding:13px}
}
@media print {
 body {background:white}
 body>*:not(#print) {display:none!important}
 #print {display:block!important;padding:0;color:#000}
 #print h1 {font-size:22pt;margin-bottom:12pt}
 #print table {font-size:10pt}
 #print tr {break-inside:avoid}
}

.street-layout {display:grid;grid-template-columns:minmax(195px, .75fr) minmax(0, 2fr) minmax(260px, 1fr);gap:14px;align-items:start}
.street-browser,.street-houses,.super-grid {align-items:start}
#street-list,.number-list {max-height:54vh;overflow:auto;padding:2px;scrollbar-width:thin}
.street-option {width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;padding:12px 10px;background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:46px;font-weight:690}
.street-option span {min-width:0;overflow-wrap:anywhere}
.street-option small {white-space:nowrap;font-weight:500}
.street-option span small {display:block}
.street-option:hover,.street-option.active,.street-option[aria-expanded=true] {background:#eaf1ff;border-color:#9bb6e3}
.street-number {background:#1b315d}
.street-number.checked {color:#182647;background:#fff0aa;outline:2px solid #f0c33e}
.side-even[aria-pressed=true] {background:#fff0b7;border-color:#e8c556}
.side-odd[aria-pressed=true] {background:#fae1f9;border-color:#d4a1d0}
.number-list {display:grid;gap:7px}
.number-check {width:100%;align-items:center!important;min-height:30px;cursor:pointer}
.team-street-list {margin-top:12px}
.team-number-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,130px),1fr));gap:8px;padding:10px}
.team-house-number {display:grid;gap:3px;justify-items:start;text-align:left;min-height:55px;background:#f4f7ff;white-space:normal}
.team-house-number strong {font-size:1.15rem}
@media(max-width:1180px){.street-layout {grid-template-columns:minmax(220px,1fr) minmax(0,2fr)}.street-houses {grid-column:1/-1} .number-list {grid-template-columns:repeat(auto-fit,minmax(min(100%,142px),1fr));max-height:36vh}}
@media(max-width:720px){.street-layout {grid-template-columns:1fr}.street-houses {grid-column:auto}.planner-map {height:clamp(325px,47vh,490px)}#street-list {max-height:28vh}}
