:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18384b;background:#f3f6f8;font-size:16px;line-height:1.5;--blue:#123c56;--accent:#00766e;--border:#ccd9e0}
*{box-sizing:border-box}body{margin:0}header{background:var(--blue);color:white;padding:1.1rem max(1rem,calc((100vw - 1150px)/2));display:flex;justify-content:space-between;align-items:center;gap:1rem}.brand{display:flex;align-items:center;gap:.8rem}.mark{background:#2b697d;border-radius:.7rem;padding:.4rem .9rem;font-size:1.5rem;font-weight:800}.brand strong{font-size:1.2rem}.brand small{display:block;color:#cae1e9}#identity{font-size:.85rem;text-align:right}nav{display:flex;gap:.5rem;flex-wrap:wrap;background:white;padding:.8rem max(1rem,calc((100vw - 1150px)/2));border-bottom:1px solid var(--border)}nav:empty{display:none}main{max-width:1182px;margin:auto;padding:1.4rem 1rem 3rem}h1{font-size:1.8rem;line-height:1.2;margin:.4rem 0 1rem}h2{font-size:1.2rem;margin:0 0 1rem}h3{font-size:1.05rem}p{margin:.6rem 0}.muted,small{color:#5b7280}.card{background:white;border:1px solid var(--border);border-radius:12px;padding:1.2rem;margin:1rem 0;box-shadow:0 2px 5px #143b5510}.auth{max-width:470px;margin:2rem auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}.grid .card{margin:0}.stat strong{display:block;font-size:2rem;color:var(--blue)}.stat small{display:block}.toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:.75rem}.toolbar label{flex:1;min-width:130px}.toolbar .wide{flex:3;min-width:220px}label{display:block;font-weight:600;font-size:.9rem;margin:.7rem 0}input,select,textarea{font:inherit;display:block;width:100%;min-height:44px;border:1px solid #9cafbb;border-radius:6px;padding:.55rem .65rem;background:white;color:#18384b;margin-top:.3rem}textarea{min-height:92px;resize:vertical}input[type=checkbox]{display:inline;width:auto;min-height:0;margin-right:.4rem}input[readonly]{background:#f4f7f9}button,.button{font:inherit;border:1px solid transparent;border-radius:6px;padding:.6rem .9rem;min-height:44px;background:var(--accent);color:white;cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:.3rem;font-weight:600}button.secondary,.button.secondary{background:white;color:var(--blue);border-color:var(--border)}button.danger{background:#a63434}button:disabled{opacity:.5;cursor:not-allowed}button:hover,.button:hover{filter:brightness(.94)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e5a322;outline-offset:2px}nav button{background:#eaf1f5;color:var(--blue)}nav button.active{background:var(--blue);color:white}.actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:.8rem 0}.badge{padding:.2rem .6rem;display:inline-block;border-radius:20px;font-size:.8rem;font-weight:650;background:#edf2f5;color:#425a68}.badge.allocated{background:#fff0c7;color:#694800}.badge.in-progress{background:#e0edff;color:#254f88}.badge.completed{background:#d8f3e5;color:#166444}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}th,td{padding:.7rem .65rem;border-bottom:1px solid #e0e7eb;vertical-align:top}th{background:#f2f6f8;white-space:nowrap}progress{width:100%;height:16px;accent-color:var(--accent)}.warning{border-left:4px solid #cf9627;background:#fff9eb;padding:.8rem 1rem;border-radius:6px;margin:1rem 0;color:#76551d}#error:not(:empty){border-left:4px solid #b32d2d;background:#feecec;padding:1rem;margin-bottom:1rem;color:#8d2525}#notice:not(:empty){background:#e0f4e9;border-left:4px solid #168452;padding:1rem;margin-bottom:1rem}.split{display:grid;grid-template-columns:1.4fr 1fr;gap:1rem}.split>.card{min-width:0}iframe{width:100%;height:620px;border:1px solid var(--border);border-radius:6px;background:#f4f7f9}.coverage{white-space:pre-wrap;font-size:.88rem}.comment{border-left:3px solid var(--border);padding:.3rem .8rem;margin:1rem 0;white-space:pre-wrap;overflow-wrap:anywhere}.comment small{display:block}.helper-row{display:grid;grid-template-columns:1fr 1fr auto;gap:.5rem;align-items:end}.helper-row label{margin:.4rem 0}.helper-row button{margin-bottom:.4rem}details{margin:1rem 0}summary{cursor:pointer;font-weight:600}footer{font-size:.8rem;text-align:center;color:#597181;padding:1rem;border-top:1px solid var(--border)}.empty{padding:2rem;text-align:center}.link-panel{background:#e6f4ef;border:1px solid #a3d5bd;padding:1rem;border-radius:8px;margin:1rem 0}.link-panel input{font-size:.85rem}code{background:#edf1f4;padding:.15rem .3rem;border-radius:4px}.section-card{margin:0}.section-card p{font-size:.85rem}
@media(max-width:700px){header{padding:1rem}.brand strong{font-size:1rem}.brand small{font-size:.7rem}.mark{display:none}main{padding:1rem .75rem 2rem}.split{grid-template-columns:1fr;gap:0}.card{padding:1rem}h1{font-size:1.45rem}iframe{height:480px}nav{padding:.6rem .75rem;gap:.4rem}nav button{font-size:.85rem;padding:.5rem .65rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.stat strong{font-size:1.6rem}.helper-row{grid-template-columns:1fr 1fr}.helper-row button{grid-column:1/-1;justify-self:start}.toolbar{grid-template-columns:minmax(0,1fr);align-items:stretch}.toolbar .wide{min-width:0}.toolbar label{margin:0}.toolbar button{width:100%;margin-top:.15rem}.section-grid{grid-template-columns:1fr}.actions>*{flex-grow:1}.auth{margin:1rem auto}.assignment-actions button{flex-grow:1}}
.toolbar{display:grid;grid-template-columns:minmax(260px,3fr) minmax(130px,1fr) minmax(150px,1fr) auto;align-items:end;gap:.75rem}
.toolbar label,.toolbar .wide{min-width:0;margin:0}
.toolbar button{height:44px;min-width:96px}
.helper-fields{display:grid;gap:.35rem}
.assignment-actions{align-items:stretch}
.assignment-actions button{flex:1 1 155px}
.map-viewer{height:min(72vh,820px);min-height:360px;overflow:auto;border:1px solid var(--border);border-radius:8px;background:#e9eef1;overscroll-behavior:contain;touch-action:pan-x pan-y}
.map-viewer{width:100%}
.split>div{min-width:0}
.map-viewer{width:100%}
.split>div{min-width:0}
.map-page-stage{display:grid;place-items:center;min-width:100%;min-height:100%;padding:0}
.map-page-stage img{display:block;max-width:none;object-fit:contain;box-shadow:0 2px 12px #143b5533;user-select:none}
.viewer-error{color:#8d2525;font-weight:600}
.pdf-controls{align-items:center}
.pdf-controls #page-count{padding:.5rem;font-size:.9rem}
.section-tabs,.pagination{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.8rem 0}
.section-tabs button.active{background:var(--blue);color:white}
.pagination{justify-content:flex-end;padding:.8rem 0}
.pagination label{display:flex;align-items:center;gap:.5rem;margin:0}
.pagination select{width:auto;min-width:88px;margin:0}
.volunteer-toolbar{grid-template-columns:minmax(240px,3fr) minmax(130px,1fr) minmax(170px,1fr) minmax(140px,1fr) auto}
.achievement-toast{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.achievement-item{display:flex;align-items:center;gap:.55rem;animation:badge-pop .25s ease-out}
.achievement-item span:last-child{color:#4e6673}
.achievement-icon{font-size:1.7rem}
.toast-close{min-width:36px;min-height:36px;padding:.25rem;background:transparent;color:var(--blue);font-size:1.4rem}
.achievement-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:.75rem}
.achievement-card{display:grid;justify-items:start;gap:.35rem;padding:.9rem;border:1px solid var(--border);border-radius:10px;background:#f9fbfc}
.achievement-card .achievement-icon{font-size:2rem}
.profile-map-card{margin:0}
.profile-map-card progress{margin:.3rem 0}
@keyframes badge-pop{from{transform:scale(.9);opacity:.5}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
.street-checklist{display:grid;gap:.65rem;margin-top:1rem}
.street-check-row{display:grid;gap:.25rem}
.street-check{display:flex;gap:1rem;align-items:flex-start;margin:0;padding:1rem;border:1px solid var(--border);border-radius:10px;background:white;cursor:pointer;min-height:76px}
.street-check:hover{border-color:var(--accent)}
.street-check.street-done{background:#eef8f2;border-color:#a7d3ba}
.street-check input[type=checkbox]{width:28px;height:28px;min-width:28px;margin:.1rem 0 0;accent-color:var(--accent);cursor:pointer}
.street-check-copy{display:grid;gap:.25rem}
.street-check-copy>strong{font-size:1.1rem}
.street-check-copy>span{font-size:.95rem}
.street-save-state{color:var(--accent);font-weight:600}
.street-history{font-size:.85rem}
.street-history small{display:inline-block;margin:.3rem .3rem .3rem 0}
.volunteer-map-summary{position:sticky;top:0;z-index:2;background:#fff;border-color:var(--border);box-shadow:0 3px 12px #123c561a}
.volunteer-map-summary p{font-size:1.1rem}
.estimate-summary{padding:.75rem;background:#fff9eb;border-radius:6px}
@media(min-width:701px) and (max-width:900px){.toolbar{grid-template-columns:minmax(240px,2fr) minmax(130px,1fr) minmax(145px,1fr)}.toolbar .wide{grid-column:1/-1}.toolbar button{grid-column:3;justify-self:stretch}}
@media(max-width:700px){.toolbar{grid-template-columns:minmax(0,1fr);align-items:stretch}.toolbar .wide{grid-column:1;min-width:0}.toolbar label{margin:0}.toolbar button{grid-column:1;width:100%;margin-top:.15rem}.assignment-actions button{flex-grow:1}}
@media(max-width:700px){.map-viewer{height:62vh;min-height:340px}.pdf-controls>*{flex:1 1 120px}.street-check{padding:.85rem;min-height:72px}.street-check input[type=checkbox]{width:32px;height:32px;min-width:32px}.volunteer-map-summary{top:0}.volunteer-map-summary p{font-size:1rem}}
@media(max-width:700px){.section-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.section-tabs button{width:100%}.pagination{justify-content:space-between}.pagination label{flex:1 1 100%}.volunteer-toolbar{grid-template-columns:minmax(0,1fr)}.volunteer-toolbar>*{grid-column:1}.profile-maps{grid-template-columns:1fr}.achievement-toast{align-items:flex-start}.achievement-item{align-items:flex-start;flex-wrap:wrap}}
.volunteer-directory-table{min-width:1280px;table-layout:fixed}
.volunteer-directory-table th:first-child,.volunteer-directory-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;min-width:170px;width:170px;overflow-wrap:anywhere}
.volunteer-directory-table thead th:first-child{z-index:2;background:#f2f6f8}
.volunteer-directory-table th:nth-child(2),.volunteer-directory-table td:nth-child(2){width:135px}
.volunteer-directory-table th:nth-child(3),.volunteer-directory-table td:nth-child(3){width:210px;overflow-wrap:anywhere}
.volunteer-directory-table th:nth-child(4),.volunteer-directory-table td:nth-child(4){width:70px}
.volunteer-directory-table th:nth-child(5),.volunteer-directory-table td:nth-child(5){width:100px}
.volunteer-directory-table th:nth-child(6),.volunteer-directory-table td:nth-child(6){width:95px}
.volunteer-directory-table th:nth-child(7),.volunteer-directory-table td:nth-child(7){width:105px}
.volunteer-directory-table th:nth-child(8),.volunteer-directory-table td:nth-child(8){width:125px}
.volunteer-directory-table th:nth-child(9),.volunteer-directory-table td:nth-child(9){width:140px}
.volunteer-directory-table th:nth-child(10),.volunteer-directory-table td:nth-child(10){width:360px}
.volunteer-directory-table td:last-child{white-space:nowrap}
.volunteer-manage-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:.3rem}
.volunteer-manage-actions .icon-button{flex:0 0 auto;min-height:36px;padding:.35rem .5rem;margin:0;font-size:.82rem;line-height:1;white-space:nowrap}
