/* C&R Smart: light cartography, charcoal controls, yellow primary action. */
:root{--cr-yellow:#ffc72c;--cr-black:#151619;--ink:#202126;--muted:#697078;--teal:#334b5b;--teal-light:#eaf0f4;--paper:#fff;--border:#e3e5e8;--gold:#9b711a;--gold-light:#fff6db;--shadow:0 10px 36px #11131818}
body{background:#f5f6f7;color:var(--ink)}
button,a,input,select,summary{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--cr-yellow);outline-offset:4px}
button{transition:background .16s,border-color .16s}
.opening-credit{padding:6px 24px;background:var(--cr-black);border:0;color:#bfc1c6;font-size:10px;letter-spacing:.1px;min-height:27px}
.map-first .workspace>.map-section{height:calc(100svh - 27px);min-height:650px;max-height:1100px;background:#edf0ec;border:0}
.map-first .map-section>#map{height:100%;min-height:0;max-height:none}
.leaflet-container{background:#eef0ed}
.map-heading{inset:22px auto auto 24px;right:auto;max-width:calc(100% - 220px);padding:13px 19px 13px 12px;background:var(--cr-black);color:white;border:1px solid #ffffff20;border-radius:14px;box-shadow:0 7px 24px #11131820;gap:12px}
.map-heading .brand-mark{width:49px;height:49px;border-radius:9px;border-color:#ffffff20}
.map-eyebrow{display:block;font-size:9px;letter-spacing:1.4px;font-weight:700;color:var(--cr-yellow);margin-bottom:5px}
.map-heading strong{font-size:18px;letter-spacing:-.4px;color:#fff;text-shadow:none;font-weight:700}
.map-heading small{font-size:11px;color:#bfc2c9;text-shadow:none;margin-top:5px}
.map-reference-button{position:absolute;top:126px;left:24px;z-index:500;display:flex;align-items:center;gap:10px;padding:0 16px;min-height:44px;background:var(--cr-black);border:1px solid #ffffff20;border-radius:10px;color:#fff;font-size:12px;box-shadow:0 3px 14px #1113181a}
.map-reference-button svg,.collab-layers summary svg{width:19px;height:19px;fill:none;stroke:var(--cr-yellow);stroke-width:1.7;flex-shrink:0}
.map-reference-button:hover{background:#2a2c31}
.map-tools{top:122px;right:24px;gap:8px}
.map-tools button{width:44px;height:44px;border:1px solid #ffffff22;border-radius:10px;background:var(--cr-black);color:var(--cr-yellow);box-shadow:0 3px 14px #11131818;font-size:23px}
.map-tools button.active{background:var(--cr-yellow);color:var(--cr-black);border-color:var(--cr-yellow)}
.leaflet-control-zoom{margin:22px 24px 0 0!important;border:1px solid #ffffff22!important;border-radius:10px!important;box-shadow:0 3px 14px #11131818!important}
.leaflet-control-zoom a{background:var(--cr-black)!important;color:var(--cr-yellow)!important;width:42px!important;height:40px!important;line-height:40px!important;border-color:#ffffff26!important;font-weight:400!important;font-size:25px!important}
.leaflet-control-zoom a:hover{background:#2a2c31!important}
.leaflet-control-scale{margin:0 0 55px 24px!important}
.leaflet-control-attribution{font-size:9px!important;color:#50555a}
.gps-panel{right:24px;bottom:43px;width:365px;max-width:calc(100% - 48px);padding:18px;background:var(--cr-black);border:1px solid #ffffff1f;border-radius:18px;color:#f7f7f8;box-shadow:0 12px 45px #11131830;backdrop-filter:none;max-height:calc(100% - 270px);overflow:auto;scrollbar-width:thin;scrollbar-color:#54565c transparent}
.panel-kicker{display:flex;gap:6px;align-items:center;font-size:8px;letter-spacing:.85px;color:#b8bbc4;font-weight:700;margin-bottom:19px}
.live-indicator{width:6px;height:6px;border-radius:50%;background:var(--cr-yellow);box-shadow:0 0 0 3px #ffc72c12}
.panel-live{margin-left:auto;font-size:7px;color:var(--cr-yellow);border:1px solid #ffc72c45;border-radius:4px;padding:4px 5px;letter-spacing:.6px}
.gps-heading{gap:8px;position:relative;flex-wrap:nowrap}
.gps-heading strong{font-size:13px;letter-spacing:.1px}
.gps-dot{width:8px;height:8px;box-shadow:0 0 0 3px #2563eb25}
.gps-panel #gps-status{font-size:11px;line-height:1.55;color:#b8bbc4;margin:8px 0 15px;min-height:34px}
.gps-settings{position:static;font-size:10px;color:#d3d5dc}
.gps-settings summary{cursor:pointer;list-style:none;border:1px solid #45474f;border-radius:6px;padding:5px 8px;display:flex;gap:7px}
.gps-settings summary::-webkit-details-marker{display:none}
.gps-settings[open]>div{position:absolute;right:0;top:32px;z-index:2;background:#24262c;border:1px solid #4c4f58;border-radius:10px;padding:9px;box-shadow:0 8px 24px #0005;width:210px;display:flex;gap:6px;flex-wrap:wrap}
.gps-heading .gps-settings button{min-height:36px;flex:1;background:#34363d;color:#fff;border:1px solid #585b65;border-radius:6px;font-size:11px;padding:8px}
.gps-settings small{width:100%;font-size:9px;line-height:1.5;color:#bfc2c9;padding:3px}
.gps-actions{display:grid;grid-template-columns:1fr 101px;gap:8px}
.gps-actions button{min-height:48px;border-radius:9px;font-size:12px;padding:11px 8px;font-weight:700}
.gps-actions #gps-map-mode,.gps-actions #gps-map-mode[aria-pressed=true]{background:var(--cr-yellow);color:#17181b;border:1px solid var(--cr-yellow)}
.gps-actions #gps-map-mode[aria-pressed=false]{background:#2a2c32;color:#d1d3da;border:1px solid #52555f}
.gps-actions #gps-map-mode::before{content:'+';font-size:18px;vertical-align:-1px;margin-right:5px;font-weight:400}
.gps-actions #gps-record{background:#292b32;color:#fff;border:1px solid #50535d}
.gps-actions button:disabled{opacity:1!important;color:#9396a0!important;background:#25272c!important;border-color:#41434c!important;cursor:not-allowed}
.gps-panel>.tap-help{color:#aaadb6;font-size:10px;line-height:1.6;margin:9px 0 0}
.route-actions{margin-top:15px;padding-top:14px;border-color:#383a42}
.route-actions button,#point-actions button{background:#292b32;color:#fff;border:1px solid #50535d;border-radius:9px;font-size:12px}
.route-actions #route-start{background:transparent;color:#f4f4f6;border:1px solid #666974;min-height:46px;font-weight:600}
.route-actions #route-start::before{content:'↗';color:var(--cr-yellow);font-size:18px;margin-right:9px;vertical-align:-1px}
.route-actions #route-start:hover{background:#2b2d34;border-color:var(--cr-yellow)}
.route-actions #route-finish{background:var(--cr-yellow);color:#17181b;border-color:var(--cr-yellow);font-weight:700;min-height:46px}
.route-actions button:disabled{opacity:.5}
.gps-panel #route-help,.gps-panel #route-draft{font-size:11px;color:#c6c8cf;line-height:1.65}
.gps-panel #route-draft{border-left:2px solid var(--cr-yellow);padding-left:10px;color:var(--cr-yellow)}
.gps-panel #route-status{font-size:11px;color:#dddfe5}
.gps-panel #route-status.error{color:#ffb0a7}
.gps-panel #point-receipt{background:#ffc72c15;color:#ffe6a0;border:1px solid #ffc72c4a;max-height:90px;font-size:11px}
#point-actions button{color:#ffdf7e;font-size:11px;background:#2b2921;border-color:#8d7532;min-height:38px}
.collab-layers{border-top:1px solid #383a42;margin-top:14px;padding-top:4px}
.collab-layers summary{display:flex;align-items:center;gap:8px;font-size:11px;color:#d4d6dc;padding:11px 1px 3px;list-style:none;min-height:34px;font-weight:400}
.collab-layers summary::-webkit-details-marker{display:none}
.collab-layers summary svg{width:17px;height:17px}
.disclosure-chevron{margin-left:auto;font-size:19px;line-height:16px;color:var(--cr-yellow)}
.collab-layers[open] .disclosure-chevron{transform:rotate(45deg)}
.layer-content{padding:7px 0 0}
.collab-layers label{font-size:11px;gap:7px;line-height:1.55;margin:13px 0;color:#dddfe5}
.collab-layers input{width:16px;height:16px;accent-color:var(--cr-yellow);margin:0 2px 0 0;flex-shrink:0}
.layer-line{width:20px;min-width:20px;height:3px;border-radius:2px}
.closure-line{background:#f06c63}
.proposed-line{background:linear-gradient(90deg,#7db7ff 33%,#c995ff 33% 66%,#79d5b6 66%)}
.layer-citizen{display:flex;gap:10px;align-items:center;color:#dddfe5!important;margin:13px 0!important}
.layer-citizen>span{color:#ad98d0;font-size:18px;padding-left:1px}
.collab-layers small{font-size:10px;color:#b0b3be;line-height:1.65}
.route-row button{color:#f4f4f6;min-height:32px}
.route-row small{color:#b0b3be}
.map-first .map-section>.map-footnote{position:absolute;bottom:17px;left:24px;right:420px;max-width:710px;background:#fffffff0;border:1px solid #e3e5e8;border-radius:6px;padding:8px 11px;color:#50545b;font-size:10px;line-height:1.5;text-shadow:none}
.map-status{top:188px;left:24px;color:#715613;border-radius:8px;max-width:310px;font-size:11px}
.detail{right:auto;left:24px;top:190px;bottom:90px;width:350px;background:#fff;border-color:var(--border);z-index:800;border-radius:15px;color:var(--ink)}
.detail h2,dialog h2{font-family:Arial,Helvetica,sans-serif;font-weight:700;letter-spacing:-.7px}
.detail p,.detail small,.detail dd,.detail dt,dialog p,dialog li{color:#626970}
.close-detail,#close-dialog,.contribution-close{background:#eeeef0;color:#35373e}
.reference-panel{background:#f6f7f8}
.reference-summary{list-style:none;max-width:1230px;margin:auto;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:14px;cursor:pointer;min-height:97px}
.reference-summary::-webkit-details-marker{display:none}
.reference-summary-kicker{font-size:9px;font-weight:700;letter-spacing:1.3px;color:#727881;display:block;margin-bottom:7px}
.reference-summary strong{font-size:20px;letter-spacing:-.6px}
.reference-summary-action{background:var(--cr-black);color:white;border-radius:8px;padding:12px 16px;font-size:11px;white-space:nowrap}
.reference-summary-action>span{color:var(--cr-yellow);margin-left:10px;font-size:15px}
.reference-panel[open]>.reference-summary{border-bottom:1px solid var(--border)}
.reference-panel[open] .reference-summary-action>span{display:inline-block;transform:rotate(180deg)}
.reference-body{background:white}
.map-first .references .topbar{max-width:1230px;margin:auto;padding:24px;gap:24px;background:#fff;border:0}
.brand strong{font-size:16px;letter-spacing:1px}.brand small{font-size:11px;color:var(--muted);letter-spacing:0}
.topbar .brand-mark{width:47px;height:47px;border-radius:10px}
.navlink{font-size:12px;color:#4c525b;min-height:44px}
.source-total{background:#eceef1;color:#606771}
.official{color:#25272c;border-color:#d7dade;border-radius:8px;font-size:12px;min-height:44px}
.private{color:#5c636d;background:#f4f5f6;border-color:var(--border);font-size:10px}
.map-first .references .advisory{padding:16px max(24px,calc((100% - 1182px)/2));background:#fff9e9;border-color:#f1e6c6;font-size:11px;color:#726442}
.map-first .reference-key{padding-top:24px;gap:24px}
.map-first .references .map-summary,.map-first .references .legend{border-color:var(--border);background:#fafbfc;border-radius:10px}
.map-summary strong{font-family:Arial,Helvetica,sans-serif;font-weight:700;color:#24272c}
.map-summary span:not(.summary-divider){font-size:10px;color:#6a707a}
#legend-toggle{font-size:10px;letter-spacing:.6px;color:#4a515c;min-height:24px}
#legend-chevron{color:#2f3339}
.legend strong{font-size:11px}.legend small{font-size:10px;color:#697079}.legend-note{font-size:10px;color:#6b727a}
.map-first .sidebar{gap:0 36px;padding-top:28px}
h1{font-family:Arial,Helvetica,sans-serif;font-weight:700;font-size:31px;letter-spacing:-1px;line-height:1.2}
h1 em{color:#7b6224}
.intro>p{font-size:13px;color:#697079}
.eyebrow{color:#737982;font-size:9px;letter-spacing:1px}.eyebrow span{background:#d1a323}
.community-credit{background:#fff8e6;border-color:var(--cr-yellow);padding:12px 14px}
.community-credit strong{color:#5f512b;font-size:11px}.community-credit>span{color:#77705e;font-size:10px}
.date-line,.date-line time{color:#767d86;font-size:10px}
.contribute-button{background:var(--cr-yellow);color:#17181b;border-color:#e6b326;border-radius:8px;min-height:44px;font-size:12px}
.contribute-button:hover{background:#ffd355}
.community-count{font-size:10px;color:#707781}
.search-wrap{height:48px;border-color:#cdd1d7;border-radius:9px}
.search-wrap input{font-size:13px}.search-wrap>svg{stroke:#777f8a}
.tabs{gap:5px;margin:14px 0}.tabs button{font-size:11px;padding:10px 11px;min-height:38px;color:#646c77;background:#f4f5f7;border-radius:7px}
.tabs button.active,.tabs [data-group=ciudadano].active{background:var(--cr-black);color:var(--cr-yellow)}
.select-row label{font-size:11px;color:#676f7a}.select-row select{font-size:12px;background:white;border-color:#d7dbe0;min-height:42px;color:#353a43;border-radius:7px}
.results-top{font-size:12px}.results-top button{min-height:40px;font-size:11px;color:#626b77}
.record{padding:17px;border-radius:10px;border-color:#e1e4e8;gap:12px}.record:hover{background:#fafbfc;border-color:#9a9fa8}.record.selected{background:#fff9e8;border-color:#bea03d;box-shadow:0 0 0 1px #bea03d}
.record h3{font-size:13px;max-width:none;line-height:1.5}.record-meta{font-size:10px;color:#7a818a}.badge{font-size:9px}.unmapped{font-size:9px}
.map-first .sidebar .side-footer{background:white}.side-footer .footer-credit>strong{color:#272b30;font-size:12px}.footer-credit>span{font-size:10px;color:#777f8a}.side-footer button{font-size:11px;color:#303640;min-height:44px}.development-credit{color:#797f88;font-size:10px}
dialog{border-color:#dce0e4;border-radius:17px;background:white}dialog::backdrop{background:#10121680}dialog p,dialog li{font-size:13px}
#contribution-dialog{background:white}.report-submit{background:var(--cr-yellow);color:#17181b}.report-privacy,.method-note{background:#fff8e6;color:#77643a}
#toast{background:var(--cr-black);color:#fff;border:1px solid #ffc72c60;border-radius:10px}
@media(max-width:760px){
 .opening-credit{padding:6px 12px;font-size:9px;min-height:26px}
 .map-first .workspace>.map-section{height:calc(100svh - 26px);min-height:650px;max-height:1000px;display:block;padding:0}
 .map-first .map-section>#map{height:100%;min-height:0;max-height:none}
 .map-heading{top:12px;left:12px;max-width:calc(100% - 80px);padding:10px 12px 10px 9px;border-radius:12px;gap:9px}
 .map-heading .brand-mark{width:39px;height:39px;border-radius:7px}
 .map-eyebrow{font-size:7px;letter-spacing:1px;margin-bottom:4px}
 .map-heading strong{font-size:15px;letter-spacing:-.3px}
 .map-heading small{font-size:9px;margin-top:4px}
 .map-reference-button{top:102px;left:12px;min-height:42px;padding:0 12px;font-size:11px;border-radius:9px;gap:8px}
 .map-reference-button svg{width:16px;height:16px}
 .leaflet-control-zoom{margin:12px 12px 0 0!important}
 .leaflet-control-zoom a{width:40px!important;height:38px!important;line-height:38px!important}
 .map-tools{right:12px;top:105px;gap:7px}
 .map-tools button{width:42px;height:42px;font-size:22px}
 .map-first .map-section>.gps-panel{position:absolute;bottom:69px;left:12px;right:12px;width:auto;max-width:none;margin:0;padding:14px;border-radius:15px;box-shadow:0 8px 30px #11131826;max-height:calc(100% - 285px)}
 .panel-kicker{font-size:7px;letter-spacing:.6px;margin-bottom:12px}
 .panel-live{font-size:6px;padding:3px 4px}
 .gps-heading strong{font-size:12px}
 .gps-panel #gps-status{font-size:10px;line-height:1.5;min-height:30px;margin:6px 0 11px}
 .gps-actions{grid-template-columns:1fr 93px;gap:7px}.gps-actions button{min-height:46px;font-size:11px;padding:10px 5px}
 .gps-panel>.tap-help{font-size:9px;margin-top:7px;line-height:1.5}
 .route-actions{margin-top:11px;padding-top:11px}.route-actions #route-start{min-height:43px;font-size:11px}.route-actions #route-start::before{font-size:16px;margin-right:6px}
 .collab-layers{margin-top:10px;padding-top:3px}.collab-layers summary{padding-top:7px;min-height:30px;font-size:10px}
 .map-first .map-section>.map-footnote{position:absolute;left:12px;right:12px;bottom:22px;max-width:none;padding:6px 8px;font-size:8px;line-height:1.45;border-radius:6px}
 .map-status{left:12px;top:153px;max-width:calc(100% - 80px);font-size:10px}
 .leaflet-control-scale{display:none}
 .leaflet-control-attribution{font-size:8px!important;padding:3px 5px!important}
 .detail{inset:10px 10px 20px;width:auto;max-width:410px;margin-left:auto;z-index:900;padding:24px}
 .reference-summary{padding:21px 16px;min-height:92px;gap:10px}.reference-summary-kicker{font-size:8px;letter-spacing:1px}.reference-summary strong{font-size:17px}.reference-summary-action{padding:10px 11px;font-size:10px}.reference-summary-action>span{margin-left:4px}
 .map-first .references .topbar{padding:20px 16px;gap:14px}.map-first .references .topbar nav{gap:10px;flex-wrap:wrap;justify-content:flex-start}.brand strong{font-size:14px}.brand small{font-size:10px}.navlink,.official{font-size:11px}.private{font-size:9px}
 .map-first .references .advisory{padding:14px 16px;font-size:10px}.map-first .reference-key{padding:20px 16px 0;gap:12px}.map-first .sidebar{padding:22px 16px;gap:0}
 .map-first .sidebar .intro{padding:0 0 24px}.intro h1{font-size:28px;margin:12px 0}.intro>p{font-size:12px;line-height:1.7}.community-credit>span{font-size:10px}
 .map-first .sidebar .explore-controls{padding:0 0 16px}.tabs{gap:5px}.tabs button{font-size:10px;padding:9px 10px}.select-row select{font-size:11px}.record{padding:15px}
 .map-first .references #legend-content{grid-template-columns:1fr}.legend #legend-toggle{font-size:9px}
 .gps-panel:has(#route-edit:not([hidden])) .panel-kicker{display:none}
 .gps-panel:has(#route-edit:not([hidden])) #gps-status{margin-bottom:8px}
}
@media(max-width:359px){.map-heading strong{font-size:13px}.map-heading .brand-mark{width:33px;height:33px}.map-eyebrow{font-size:6px}.map-heading small{font-size:8px}.gps-actions{grid-template-columns:1fr 83px}.gps-actions button{font-size:10px}.panel-kicker{letter-spacing:.25px}.reference-summary-action{font-size:9px;padding:10px 8px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
