/* Dog Poop Simulator / Community Dashboard v3.0.0; scoped to avoid changing other workspaces */
.dps{--dps-glass:rgba(9,26,40,.92);--dps-ink:#f2f8ff;--dps-muted:#b6cada;--dps-line:rgba(167,211,221,.23);--dps-teal:#5dddc3;--dps-blue:#398ee9;--dps-amber:#ffc274;--dps-red:#ff958b;--dps-shadow:0 15px 48px rgba(9,24,42,.24);min-width:0;display:flex;flex-direction:column;gap:12px;color:var(--ink)}
/* Shared layout remains the source of light/dark mode, type, navbar and cards */
body:has(.dps) .main-content{max-width:none;padding:16px clamp(14px,2vw,30px) 16px;min-height:0}
body:has(.dps) .site-footer{padding-top:10px;padding-bottom:10px}
.dps-heading{display:flex;justify-content:space-between;gap:22px;align-items:center}
.dps-heading h1{font-size:clamp(22px,2vw,34px);margin:2px 0;line-height:1.2}
.dps-heading p{font-size:12px;color:var(--ink-soft)}
.dps-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.dps .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);min-height:33px;padding:6px 11px;font-size:12px;font-weight:750;transition:background .15s,border-color .15s}
.dps .btn:hover{border-color:var(--accent);background:var(--surface-2)}
.dps .btn.blue{background:#137aa0;color:white;border-color:#137aa0}
.dps .btn.blue:hover{background:#0c6487}
.dps .btn.active{border-color:#149d92;background:#dbf7ef;color:#115b54}
.dps .btn.icononly{width:36px;padding:5px;font-size:18px}
.dps .btn.small{font-size:11px;min-height:29px;padding:4px 9px}
.dps .status-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-strong);border-radius:22px;background:var(--surface);padding:8px 11px;font-size:10px;letter-spacing:.035em;color:var(--ink-soft);font-weight:800}
.dps .status-pill:before{content:'';height:8px;width:8px;border-radius:50%;background:#e2a655;flex:none}
.dps .status-pill.live:before{background:#23b68f;box-shadow:0 0 10px #23b68f85}
.dps-simulation{display:flex;flex-direction:column;min-height:0;gap:10px}
.dps .kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;color:var(--ink)}
.dps .kpi{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;border:1px solid var(--line);border-radius:13px;padding:9px 13px;background:var(--surface);box-shadow:var(--shadow)}
.dps .kpi span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-faint);line-height:1.2}
.dps .kpi strong{font-size:clamp(18px,2vw,28px);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2}
.dps .kpi small{font-size:10px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dps .kpi .good{color:var(--mint)}.dps .kpi .bad{color:var(--red)}.dps .kpi .warm{color:var(--amber)}
.dps .mapzone{height:clamp(460px,calc(100dvh - 365px),1030px);min-height:460px;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;position:relative;min-width:0;overflow:hidden;background:#95ada2;color:var(--dps-ink)}
.dps #map{position:absolute;inset:0;z-index:1}
.dps #simLayer{position:absolute;inset:0;z-index:440;pointer-events:none;width:100%;height:100%}
.dps #ambient{position:absolute;inset:0;z-index:420;pointer-events:none;background:radial-gradient(ellipse 130% 80% at 50% 110%,rgba(61,97,137,.12),rgba(8,24,68,.65) 70%,rgba(3,12,34,.85)),linear-gradient(180deg,#102d4a90,#08172a80);opacity:0;transition:opacity .7s linear}
.dps .vignette{position:absolute;z-index:450;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(5,23,30,.08),transparent 35%,transparent 76%,rgba(4,20,26,.2))}
.dps .leaflet-tile-pane{transition:filter .7s linear}.dps .leaflet-control-attribution{font-size:10px!important;background:rgba(255,255,255,.88)!important}
.dps .leaflet-control-container .leaflet-bottom.leaflet-right{bottom:103px;right:7px}
.dps .maptop{position:absolute;z-index:800;top:16px;left:16px;max-width:min(515px,calc(100% - 106px));pointer-events:none;display:flex;flex-direction:column;gap:8px}
.dps .glass{background:var(--dps-glass);backdrop-filter:blur(17px);border:1px solid var(--dps-line);border-radius:12px;box-shadow:var(--dps-shadow);pointer-events:auto;color:var(--dps-ink)}
.dps .searchbar{padding:12px 13px;width:100%;position:relative}
.dps .searchbar label{font-size:10px;font-weight:850;letter-spacing:.1em;color:#85dce0;display:block;margin-bottom:7px}
.dps .searchline{display:flex;gap:6px}
.dps .searchline input{min-width:0;flex:1;background:rgba(255,255,255,.98);color:#10243a;border:1px solid #aac3c8;border-radius:8px;padding:8px 10px;font-size:12px}
.dps .searchline .btn{background:rgba(25,62,81,.95);border-color:#497484;color:#f2ffff;white-space:nowrap}
.dps .searchline .btn.blue{background:#1986af;border-color:#248dad}
.dps .place-results{max-height:210px;overflow:auto}
.dps .place-results:empty{display:none}
.dps .place-results button{width:100%;text-align:left;border:1px solid #405d67;background:#1a3b4c;color:#ecf6fc;border-radius:8px;margin-top:6px;padding:8px 10px;font-size:11px;cursor:pointer}
.dps .place-results button:hover{background:#295c6b}
.dps .place-results p{font-size:11px;color:#ebd7ab;margin-top:7px}
.dps .location{padding:10px 13px;width:max-content;max-width:100%}
.dps .location .eyebrow{color:#98e0d8;font-size:9px}
.dps .location h2{font-size:17px;color:#f2fcff;margin:3px 0}
.dps .location p{font-size:11px;color:#a5c4d1;max-width:470px}
.dps .timechip{display:flex;align-items:center;gap:10px;padding:9px 12px;width:max-content;max-width:100%}
.dps .timechip .clock{font-size:22px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.dps .timechip .date{font-size:10px;color:#b6cede}
.dps .livepoint{width:8px;height:8px;border-radius:50%;background:#5dddc3;box-shadow:0 0 0 4px #5dddc326}
.dps .timechip .btn{background:#1e3b51;color:white;border-color:#426377}
.dps .map-right{position:absolute;top:16px;right:16px;z-index:800;display:flex;flex-direction:column;gap:8px}
.dps .tool-rail{display:flex;flex-direction:column;gap:5px;padding:7px}
.dps .tool-rail .btn{background:#1a344a;border-color:#46677a;color:#f0faff}
.dps .tool-rail .btn:hover{background:#28516c}
.dps .legend{position:absolute;z-index:800;top:16px;right:82px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:9px;padding:9px;font-size:10px;max-width:370px}
.dps .legend span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.dps .dot{width:8px;height:8px;border-radius:50%;background:#52d4bb;display:inline-block}
.dps .dot.bad{background:#f69c79}.dps .dot.poop{background:#c68c52}.dps .dot.path{background:#79b1ee}
.dps .tracking{display:none;position:absolute;z-index:810;left:16px;bottom:123px;align-items:center;gap:10px;padding:9px 11px;border-color:rgba(90,244,165,.64)}
.dps .tracking.show{display:flex}
.dps .tracking .boxicon{color:#8effae;font-size:24px}.dps .tracking strong{font-size:12px;display:block}.dps .tracking small{display:block;font-size:10px;color:#b2d7cb}
.dps .tracking .btn{background:#1b4650;border-color:#447b78;color:#dffff4}
.dps .map-bottom{position:absolute;left:16px;right:16px;bottom:15px;z-index:800;pointer-events:none}
.dps .timeline{display:flex;gap:10px;align-items:center;padding:11px 13px}
.dps .transport{display:flex;gap:5px;align-items:center;flex:none}
.dps .timeline .btn{background:#1c394d;border-color:#3f6077;color:#f4ffff;min-width:35px}
.dps .timeline .btn.blue{background:#1579b9;border-color:#198acf}
.dps .timeline-col{flex:1;min-width:75px}
.dps .timeline-top{display:flex;justify-content:space-between;gap:8px;color:#bdd1de;font-size:10px;padding:0 0 5px}
.dps .timeline-top strong{color:white}
.dps .timeline input[type=range],.dps-dialog input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:5px;border-radius:10px;background:linear-gradient(90deg,#1d8eb6,#54d6b4);cursor:pointer;display:block}
.dps .timeline input[type=range]::-webkit-slider-thumb,.dps-dialog input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;border:3px solid #197f98;background:#fff}
.dps .speed{min-width:90px;font-size:11px;text-align:right;color:#ebffff}
.dps .speed input{margin-top:6px}
.dps .notice{position:absolute;bottom:106px;left:16px;z-index:830;background:#102e3d;color:#fff;border:1px solid #568291;border-radius:10px;padding:10px 13px;font-size:12px;max-width:360px;display:none}
.dps .notice.visible{display:block}
.dps-caption{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:10px;line-height:1.4;color:var(--ink-soft)}.dps-caption span{margin-left:auto}
.dps-dialog{border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);box-shadow:0 30px 110px rgba(0,12,28,.45);border-radius:18px;width:min(1510px,97vw);max-width:97vw;max-height:94dvh;padding:0;overflow:hidden}
.dps-dialog::backdrop{background:rgba(5,17,34,.7);backdrop-filter:blur(6px)}
.dps-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;gap:15px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.dps-dialog-header h2{font-size:25px;margin:3px 0}
.dps-dialog-header p{font-size:12px;color:var(--ink-soft)}
.dps-dialog-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px 20px;max-height:calc(94dvh - 176px);overflow:auto;align-items:start}
.dps-dialog .section{padding:17px;background:var(--surface-2);border:1px solid var(--line);border-radius:13px;min-width:0}
.dps-dialog .section-title{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.07em;margin-bottom:13px;color:var(--accent-dark)}
.dps-dialog .control{margin-bottom:14px}.dps-dialog .control label{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:12px;font-weight:600}.dps-dialog .control label strong{font-variant-numeric:tabular-nums}
.dps-dialog .hint,.dps-dialog .fineprint{font-size:11px;color:var(--ink-soft);line-height:1.5;margin-top:8px}.dps-dialog .hint.error{color:var(--red)}
.dps-dialog .toggleline{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:600;padding:5px 0;margin:4px 0}
.dps-dialog .toggleline input{accent-color:#098a9a}
.dps-dialog .toggleline select{padding:8px;border-radius:8px;background:var(--surface);border:1px solid var(--line-strong);color:var(--ink);max-width:68%}
.dps-dialog .switchgroup{display:flex;flex-wrap:wrap;gap:7px}
.dps-dialog .switchgroup .btn{flex:1}
.dps-dialog .activity-chart{display:flex;align-items:end;gap:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px 9px 0 0;height:55px;margin-top:10px;padding:6px 5px 0}
.dps-dialog .activity-bar{flex:1;min-width:3px;border-radius:3px 3px 0 0;background:linear-gradient(#69b3c0,#448090)}
.dps-dialog .activity-bar.peak{background:linear-gradient(#1cbaa5,#0b827a)}
.dps-dialog .activity-axis{display:flex;justify-content:space-between;font-size:10px;color:var(--ink-faint)}
.dps-dialog .route-diagnostics{border:1px solid var(--line);border-radius:10px;padding:10px;margin-top:12px}.dps-dialog .route-diagnostics summary{cursor:pointer;color:var(--ink-soft);font-size:11px;font-weight:700}
.dps-dialog .route-diagnostics pre{font:10px/1.6 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:auto}
.dps-dialog .analytics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dps-dialog .mini{padding:10px;border:1px solid var(--line);background:var(--surface);border-radius:11px}.dps-dialog .mini span,.dps-dialog .mini small{font-size:10px;color:var(--ink-soft)}.dps-dialog .mini strong{display:block;font-size:23px}
.dps-dialog .projection{display:flex;justify-content:space-between;gap:10px;margin-top:9px;font-size:12px}
.dps-dialog .insight{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:12px}.dps-dialog .insight strong{display:block;margin-bottom:8px}.dps-dialog .insight p{margin-bottom:9px}.dps-dialog .highlight{color:var(--accent-dark);font-weight:850}
.dps-dialog-footer{border-top:1px solid var(--line);padding:13px 20px;background:var(--surface);display:flex;justify-content:flex-end;gap:10px}
/* Theatre/full-screen is URL addressable, unlike browser native fullscreen */
body.dps-theatre .app-layout{display:block;min-height:100dvh}
body.dps-theatre .app-layout>.sidebar,body.dps-theatre .app-layout>.content-shell>.topbar,body.dps-theatre .site-footer{display:none!important}
body.dps-theatre .main-content{max-width:none;padding:8px!important;margin:0;height:100dvh;overflow:hidden}
body.dps-theatre .dps{height:calc(100dvh - 16px);gap:7px}
body.dps-theatre .dps-heading{min-height:46px}
body.dps-theatre .dps-heading h1{font-size:22px}
body.dps-theatre .dps-heading .eyebrow,body.dps-theatre .dps-heading p,body.dps-theatre .dps-caption{display:none}
body.dps-theatre .dps-simulation{flex:1;min-height:0}
body.dps-theatre .dps .mapzone{height:auto;min-height:0;flex:1}
@media(min-width:1250px) and (min-height:800px){body:not(.dps-theatre):has(.dps) .main-content{padding-bottom:7px}.dps .mapzone{height:max(500px,calc(100dvh - 365px))}}
@media(max-width:1250px){.dps .legend{display:none}.dps-heading{align-items:flex-start}.dps-actions{max-width:56%}.dps-dialog-body{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.dps-heading{flex-direction:column;align-items:stretch;gap:10px}.dps-actions{justify-content:flex-start;max-width:none}.dps .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dps .mapzone{height:68dvh;min-height:490px}.dps-dialog-body{grid-template-columns:1fr}.dps .searchline{flex-wrap:wrap}.dps .searchline input{flex-basis:100%}.dps .maptop{max-width:calc(100% - 73px)}.dps .map-bottom{left:7px;right:7px;bottom:7px}.dps .timeline{flex-wrap:wrap}.dps .timeline-col{order:3;flex-basis:100%}.dps .speed{margin-left:auto}.dps .tracking{left:7px;bottom:142px}.dps-caption span{margin-left:0}}
@media(max-width:500px){.dps .kpi{padding:7px}.dps .kpi span{font-size:9px}.dps .kpi strong{font-size:20px}.dps .searchbar{padding:8px}.dps .location{max-width:260px}.dps .timechip{padding:6px 8px}.dps .transport .btn{padding:5px 7px;min-width:30px;font-size:11px}.dps .mapzone{min-height:560px}}

/* v3.1.0: full-viewport geographic coverage, simplified chrome, musical playback */
.dps .kpis{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.dps .kpi{padding:8px 11px;min-height:82px}
.dps .kpi-clock strong{color:var(--ink);letter-spacing:-.03em}
.dps .kpi-clock small{font-size:10px}
.dps-mapbar{display:flex;align-items:center;gap:14px;justify-content:space-between;position:relative;z-index:950;min-height:43px}
.dps-mapbar .searchbar{display:flex;align-items:center;gap:10px;flex:1;max-width:770px;min-width:0;padding:0;background:none;box-shadow:none}
.dps-mapbar .searchbar label{font-size:10px;font-weight:800;letter-spacing:.04em;color:var(--ink-soft);margin:0;white-space:nowrap}
.dps-mapbar .searchline{flex:1;min-width:0}
.dps-mapbar .searchline input{height:34px;min-width:0;background:var(--surface);border:1px solid var(--line-strong);color:var(--ink);padding:6px 10px}
.dps-mapbar .searchline .btn{white-space:nowrap;min-height:34px}
.dps-mapbar .place-results{position:absolute;top:calc(100% + 4px);left:0;z-index:1100;background:#112b3a;border-radius:10px;min-width:min(580px,90vw);max-height:250px;box-shadow:0 18px 35px #0413225a}
.dps-mapbar .mapbar-context{display:flex;flex-direction:column;align-items:flex-end;min-width:0;max-width:34%;gap:3px}
.dps-mapbar .mapbar-context #areaTitle{font-size:12px;font-weight:800;color:var(--ink)}
.dps-mapbar .mapbar-context #networkDescription{font-size:10px;color:var(--ink-soft);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%}
.dps .legend{right:70px;top:12px;padding:7px 9px;font-size:10px;max-width:340px}
.dps .map-right{right:12px;top:12px}
.dps .tool-rail{padding:6px;gap:4px}
.dps .tool-rail .btn{min-height:33px}
.dps .tool-rail .btn:disabled{opacity:.4;cursor:not-allowed}
.dps-dialog{width:min(1690px,98vw);max-width:98vw;max-height:97dvh}
.dps-dialog-header{padding:13px 18px}
.dps-dialog-header h2{font-size:22px}
.dps-dialog-body{gap:10px;padding:12px 16px;max-height:calc(97dvh - 127px);grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.dps-dialog .section{padding:11px 13px}
.dps-dialog .section-title{margin-bottom:8px}
.dps-dialog .control{margin-bottom:10px}
.dps-dialog .control label{margin-bottom:5px}
.dps-dialog .hint,.dps-dialog .fineprint{margin-top:5px;line-height:1.35;font-size:10px}
.dps-dialog .toggleline{padding:3px 0;margin:2px 0}
.dps-dialog .activity-chart{height:43px;margin-top:6px}
.dps-dialog .mini{padding:7px}
.dps-dialog .mini strong{font-size:21px}
.dps-dialog .analytics{gap:6px}
.dps-dialog .projection{margin-top:6px}
.dps-dialog .route-diagnostics{padding:6px;margin-top:6px}
.dps-dialog-footer{padding:9px 16px}
/* Modern desktop: three equal columns, with the top-left panel's extra content
   balanced by the smaller panels. Everything fits a 900px viewport. */
@media(min-width:1300px) and (min-height:850px){
 .dps-dialog-body{grid-template-columns:repeat(4,minmax(0,1fr));}
 .dps-dialog .section{padding:12px}
}
@media(min-width:1250px) and (min-height:800px){
 .dps .mapzone{height:max(455px,calc(100dvh - 435px))}
}
@media(max-width:1300px){
 .dps .kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
 .dps .kpi{min-height:65px}
 .dps-dialog-body{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dps-mapbar{flex-wrap:wrap}
 .dps-mapbar .mapbar-context{max-width:none;align-items:flex-start}
}
@media(max-width:800px){
 .dps .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dps-mapbar .searchbar{width:100%;flex-wrap:wrap}
 .dps-mapbar .searchbar label{width:100%}
 .dps-mapbar .mapbar-context{display:none}
 .dps-dialog-body{grid-template-columns:1fr}
 .dps .mapzone{min-height:460px}
}
@media(max-width:500px){
 .dps .searchline{flex-wrap:nowrap}
 .dps-mapbar .searchline input{flex-basis:100%}
 .dps .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dps .mapzone{min-height:520px}
}

/* v3.2.0 - community dashboard immersive polish; no changes to other workspaces */
.dps-screen-reader{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dps .status-pill[hidden]{display:none!important}
.dps-heading{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(650px,2.1fr);align-items:center;gap:14px;position:relative;z-index:990}
.dps-heading h1{font-size:clamp(22px,1.85vw,30px)}
.dps-heading p{font-size:11px;margin:2px 0 0}
.dps-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px;max-width:none;width:100%}
.dps-actions>.btn{flex:none;white-space:nowrap;min-height:34px;font-size:11px;padding:6px 9px}
.dps-header-search{display:flex;min-width:220px;flex:1;align-items:center;gap:7px;position:relative;padding:0;width:auto}
.dps-header-search label{white-space:nowrap;font-size:10px;font-weight:800;color:var(--ink-soft);margin:0}
.dps-header-search .searchline{min-width:0;display:flex;flex:1;gap:4px}
.dps-header-search input{flex:1;min-width:60px;border-radius:8px;background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);height:34px;font-size:11px;padding:7px 8px}
.dps-header-search .btn{min-height:34px;padding:6px 8px;white-space:nowrap;font-size:11px}
.dps-header-search .btn.blue{background:#137aa0;color:#fff}
.dps-header-search .place-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:1200;max-height:270px;overflow:auto;background:#102838;border:1px solid #375868;border-radius:11px;padding:5px 9px 10px;box-shadow:0 20px 42px rgba(0,0,0,.35)}
.dps-header-search .place-results:empty{display:none}
.dps .kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.dps .kpi{min-height:68px;padding:6px 10px;border-radius:11px;gap:1px}
.dps .kpi span{font-size:9px;letter-spacing:.045em}
.dps .kpi strong{font-size:clamp(17px,1.65vw,23px);line-height:1.1}
.dps .kpi small{font-size:9px;line-height:1.2}
.dps .kpi-day-main{display:flex;align-items:baseline;justify-content:space-between;gap:5px}
.dps .kpi-day-main b{font-size:clamp(15px,1.4vw,20px);font-variant-numeric:tabular-nums;line-height:1.1}
.dps .kpi-day small{display:block}
.dps .mapzone{height:clamp(485px,calc(100dvh - 310px),1100px)}
.dps .legend{right:11px;top:10px;max-width:none;padding:7px 11px;gap:12px}
.dps .legend b{font-weight:850;color:#f7fbff;font-variant-numeric:tabular-nums}
.dps .map-right{right:11px;top:56px}
.dps .controls-handle{position:absolute;z-index:845;top:10px;left:12px;display:flex;gap:6px;align-items:center;justify-content:center;font-size:11px;padding:6px 10px;min-height:30px;color:#ecfffb;background:rgba(12,33,47,.94);border-color:#426278}
.dps .controls-handle:hover{background:#21485c;color:#fff}
.dps .mapzone.controls-hidden .legend,.dps .mapzone.controls-hidden .map-right,.dps .mapzone.controls-hidden .map-bottom,.dps .mapzone.controls-hidden .tracking{display:none!important}
.dps .controls-handle span{font-size:10px;font-weight:800}
.dps-dialog{width:min(1690px,98vw);max-width:98vw;max-height:96dvh}
.dps-dialog-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:12px 16px;align-items:start;max-height:calc(96dvh - 123px);overflow:auto}
.dps-dialog .dps-settings-col{display:flex;flex-direction:column;gap:10px;min-width:0;align-items:stretch}
.dps-dialog .section{padding:10px 12px}
.dps-dialog .control{margin-bottom:8px}
.dps-dialog .control label{margin-bottom:4px}
.dps-dialog .section-title{font-size:10px;margin-bottom:8px}
.dps-dialog .toggleline{padding:2px 0;margin:1px 0}
.dps-dialog .hint,.dps-dialog .fineprint{font-size:10px;line-height:1.28;margin-top:4px}
.dps-dialog .activity-chart{height:40px;margin-top:5px}
.dps-dialog .activity-axis{font-size:9px}
.dps-dialog .section .route-diagnostics{margin-top:5px;padding:6px}
.dps-dialog .dps-share{font-style:normal;color:var(--accent-dark);opacity:.9;font-weight:800}
.dps-dialog-header{padding:11px 18px}
.dps-dialog-header h2{font-size:21px}
.dps-dialog-footer{padding:8px 16px}
body.dps-theatre .dps-heading{min-height:36px;grid-template-columns:minmax(180px,.45fr) minmax(620px,2.3fr)}
body.dps-theatre .dps-heading h1{font-size:20px}
body.dps-theatre .dps .kpi{min-height:59px;padding:4px 8px}
body.dps-theatre .dps{gap:5px}
body.dps-theatre .dps-simulation{gap:5px}
body.dps-theatre .dps-header-search label{display:none}
body.dps-theatre .dps .mapzone{height:auto;min-height:0;flex:1}
@media (max-width:1370px){
 .dps-heading{grid-template-columns:1fr;gap:5px}
 .dps-actions{justify-content:flex-start}
 .dps-header-search{max-width:610px}
 .dps .mapzone{height:max(480px,calc(100dvh - 350px))}
 body.dps-theatre .dps-heading{grid-template-columns:1fr;gap:4px}
}
@media (max-width:900px){
 .dps-actions{flex-wrap:wrap}
 .dps-header-search{flex-basis:100%;min-width:0;width:100%;max-width:none}
 .dps .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dps-dialog-body{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.dps-theatre .main-content{height:auto;min-height:100dvh;overflow:auto}
 body.dps-theatre .dps{height:auto}
 body.dps-theatre .dps .mapzone{height:70dvh;min-height:480px}
}
@media (max-width:600px){
 .dps .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dps-header-search{flex-wrap:wrap;gap:3px}
 .dps-header-search label{width:100%}
 .dps-header-search .searchline{flex-wrap:wrap}
 .dps-header-search .searchline input{flex-basis:100%}
 .dps-dialog-body{grid-template-columns:1fr}
 .dps .controls-handle span{display:none}
 .dps .legend{left:51px;right:6px;gap:6px;justify-content:flex-end;max-width:none;font-size:9px}
 .dps .map-right{top:60px}
 .dps .mapzone{height:62dvh;min-height:480px}
}
/* Keep the entire toolbar on one usable line on typical desktop resolutions. */
@media(min-width:1371px){
 .dps-heading{grid-template-columns:minmax(278px,.82fr) minmax(0,2.18fr)}
 .dps-actions{min-width:0}
 .dps-header-search{min-width:300px;flex:1 1 340px;max-width:520px}
 .dps-header-search label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .dps-header-search .searchline{min-width:0;flex-wrap:nowrap}
 .dps-header-search .searchline input{min-width:160px;flex:1 1 190px}
 .dps-actions .btn{font-size:10px;padding:6px 8px}
}
.dps .status-pill{display:none!important}
.dps .mapzone{height:clamp(455px,calc(100dvh - 370px),1050px)}
@media(min-width:1250px) and (min-height:800px){.dps .mapzone{height:clamp(455px,calc(100dvh - 370px),1050px)}}
@media(max-width:900px){.dps .mapzone{height:65dvh;min-height:460px}}
body.dps-theatre .dps .mapzone{height:auto;min-height:0;flex:1}

/* v3.3.0 - launch polish, accessible About panel, geographic area HUD, PNG controls */
.dps-actions .dps-export{border-color:#198c9e;background:var(--surface-2);color:var(--ink);font-weight:850}
.dps-actions .dps-export:hover{border-color:#0fa6bd}
.dps .map-area{position:absolute;z-index:830;top:10px;left:150px;display:flex;align-items:center;gap:8px;padding:7px 11px;min-height:30px;white-space:nowrap;font-size:10px;color:#b9d9df}
.dps .map-area strong{color:#eefefa;font-size:11px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.dps .mapzone.controls-hidden .map-area{display:none}
.dps-about{width:min(1110px,96vw);max-width:96vw;max-height:94dvh}
.dps-about-body{max-height:calc(94dvh - 102px);overflow:auto;padding:20px 24px 22px;display:flex;flex-direction:column;gap:16px}
.dps-about-hero{display:grid;grid-template-columns:86px 1fr;align-items:center;gap:22px;border:1px solid var(--line);background:var(--surface-2);border-radius:15px;padding:18px 22px}
.dps-about-hero-mark{width:78px;height:78px;display:grid;place-items:center;background:linear-gradient(140deg,#157e91,#17506c);box-shadow:0 10px 24px #00334640;color:white;border-radius:22px;font-size:38px}
.dps-about-hero strong{font-size:19px;color:var(--ink)}
.dps-about-body p{font-size:12px;line-height:1.55;color:var(--ink-soft);margin:6px 0 0}
.dps-about-body b{color:var(--ink)}
.dps-about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.dps-about-grid>div{min-width:0;padding:15px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}
.dps-about-grid strong{font-size:12px;letter-spacing:.01em}
.dps-about-technical{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);padding:17px 20px}
.dps-about-technical .section-title{color:var(--accent-dark);font-size:11px;font-weight:850;letter-spacing:.08em}
.dps-about-technical p{font-size:11.5px;line-height:1.55;margin:9px 0}
.dps-about-technical .dps-about-attribution{border-top:1px solid var(--line);padding-top:9px;font-size:10px}
@media(max-width:1250px){.dps-actions{flex-wrap:wrap}.dps-header-search{flex:1 1 440px;max-width:none}}
@media(max-width:790px){.dps-about-grid{grid-template-columns:1fr}.dps-about-hero{grid-template-columns:1fr;gap:10px}.dps-about-hero-mark{width:56px;height:56px;font-size:26px}.dps .map-area{left:58px}}
@media(max-width:480px){.dps .map-area{top:44px;left:8px;padding:5px 8px}.dps .legend{top:10px}}

/* v3.4.0 - Census-based local households, density and indicative dog population */
.dps .map-area{gap:7px;max-width:calc(100% - 650px)}
.dps .dps-pop-map-summary{font-size:10px;color:#8ee9d5;border-left:1px solid #557985;padding-left:8px;font-weight:700}
.dps-pop-section .dps-pop-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:9px}
.dps-pop-section .dps-pop-kpis>div{background:var(--surface-1);border:1px solid var(--line);padding:8px 7px;border-radius:8px;min-width:0}
.dps-pop-section .dps-pop-kpis span{font-size:9px;line-height:1.2;display:block;color:var(--ink-soft)}
.dps-pop-section .dps-pop-kpis strong{font-size:17px;font-weight:850;color:var(--ink);display:block;font-variant-numeric:tabular-nums;white-space:nowrap}
.dps-pop-section .dps-pop-kpis .dps-pop-accent strong{color:var(--accent-dark)}
.dps-pop-section .dps-pop-meta{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;font-size:10px;margin:6px 0 9px;color:var(--ink-soft)}
.dps-pop-section .dps-pop-meta b{font-weight:800;color:var(--ink)}
.dps-pop-section .dps-pop-actions{display:flex;margin-top:7px}
.dps-pop-section .dps-pop-actions .btn{width:100%;padding:7px 9px;font-size:11px}
.dps-pop-section .dps-pop-sources{margin-top:6px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;font-size:10px}
.dps-pop-section .dps-pop-sources summary{cursor:pointer;color:var(--ink);font-weight:700}
.dps-pop-section .dps-pop-sources a{color:var(--accent-dark)}
.dps-pop-section .control{margin-bottom:6px}
.dps-pop-section .hint{margin-top:5px}
@media(max-width:1250px){.dps .map-area{max-width:calc(100% - 400px)}}
@media(max-width:790px){.dps .map-area{max-width:calc(100% - 100px)}.dps .dps-pop-map-summary{display:none}}
