/* RUD Empire Maps: black and gold, the same look as Empire Schedules' map (owner 2026-12-02) */
:root{--gold:#dda926;--gold2:#f7b31c;--bg:#000;--sans:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#000;color:#e9dfc9;font-family:var(--sans);overflow:hidden;touch-action:pan-x pan-y}
@supports (overflow:clip){html,body{overflow:clip}}
.mtop{position:fixed;left:0;right:0;top:0;height:56px;z-index:1100;display:flex;align-items:center;gap:12px;padding:0 max(12px,env(safe-area-inset-left));
  background:#000;border-bottom:1px solid #ca7a02;box-shadow:0 1px 6px #f7b31c33}
.mback{color:#f7b31c;text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap;border:1px solid #7a4a0c;border-radius:999px;padding:6px 12px}
.mtop h1{margin:0 auto;display:flex;align-items:center;gap:8px;font:400 17px Georgia,serif;letter-spacing:.18em;color:#f7b31c;white-space:nowrap}
.mtop h1 img{height:30px;width:auto}
.mtop h1 b{font-weight:400;letter-spacing:.1em;color:#fff0c2}
@media (max-width:560px){.mtop h1 span{display:none}.mback span:last-child{display:none}}
.mwrap{position:fixed;left:0;right:0;top:56px;bottom:0}
#map{position:absolute;inset:0;background:#0b0905}
.mtoast{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:1200;max-width:min(520px,92vw);background:#0b0803f2;border:1px solid var(--gold);border-radius:12px;padding:8px 14px;font-size:14px;box-shadow:0 4px 16px #000a}
/* camera switch */
.cambtn{display:flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;border:1.5px solid #7a4a0c;background:#0b0803e6;color:#f7b31c;font:700 13px var(--sans);cursor:pointer;box-shadow:0 2px 8px #0008}
.cambtn.on{background:linear-gradient(180deg,#ffe08a,#f7b31c 40%,#ca7a02);color:#1a1206;border-color:#ca7a02}
.camdot{background:none;border:0}
.camdot b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#c62828;border:2px solid #fff;font-size:11px;box-shadow:0 1px 4px #000a}
.camdot.speed b{background:#ef6c00}
.camdot.traffic b{background:#1565c0}
.camdot.other b{background:#546e7a}
/* route tab + panel */
.routetab{position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:1001;display:flex;align-items:center;gap:6px;padding:7px 20px 9px;border-radius:14px 14px 0 0;
  border:1.5px solid #7a4a0c;border-bottom:0;cursor:pointer;touch-action:none;background:linear-gradient(180deg,#ffe08a 0%,#f7b31c 35%,#ca7a02 85%,#a66103 100%);
  color:#1a1206;font:700 15px var(--sans);box-shadow:0 -2px 10px #f7b31c66}
.routetab .rt-n{font-style:normal;background:#1a1206;color:#f7b31c;border-radius:999px;padding:0 7px;font-size:12px}
.mwrap.routing .routetab{bottom:var(--ph,45%)}
.routepanel{position:absolute;left:0;right:0;bottom:0;z-index:1000;height:var(--ph,45%);overflow:auto;background:#0b0803f5;border-top:2px solid var(--gold);
  box-shadow:0 -8px 20px #000c;padding:10px 14px max(16px,env(safe-area-inset-bottom));overscroll-behavior:contain}
.routepanel{container-type:inline-size}
.mwrap.dragging,.mwrap.dragging *{user-select:none;-webkit-user-select:none}
.mwrap.dragging .routetab{cursor:grabbing}
/* quick buttons at the top of the panel: report police, bus stops on/off (more switches to come) */
.rp-quick{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:10px;margin-bottom:8px;border-bottom:1px solid #a6610366}
.btn.polnow{flex:1 1 160px;background:#2a0606;color:#ff8a80;border-color:#b71c1c;font-size:15px;min-height:44px}
.tgl{flex:1 1 140px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:999px;border:1.5px solid #7a4a0c;background:#0b0803;color:#f7b31c;font:700 14px var(--sans);cursor:pointer}
.tgl i{font-style:normal;font-size:12px;border-radius:999px;padding:1px 8px;background:#1a1206;color:#b9a77f}
.tgl.on{background:linear-gradient(180deg,#ffe08a,#f7b31c 40%,#ca7a02);color:#1a1206;border-color:#ca7a02}
.tgl.on i{background:#1a1206;color:#f7b31c}
/* computer screen: the tab sits in the middle of the right edge and the panel slides in from the right */
@media (min-width:761px){
  .routetab{left:auto;right:0;top:50%;bottom:auto;transform:translateY(-50%);writing-mode:vertical-rl;padding:18px 7px;border-radius:14px 0 0 14px;
    border:1.5px solid #7a4a0c;border-right:0;box-shadow:-2px 0 10px #f7b31c66;gap:8px}
  .routetab .rt-n{padding:6px 0;width:22px;text-align:center}
  .mwrap.routing .routetab{bottom:auto;right:var(--pw,250px)}
  .routepanel{left:auto;top:0;bottom:0;right:0;width:var(--pw,250px);height:auto;border-top:0;border-left:2px solid var(--gold);box-shadow:-8px 0 20px #000c;padding:12px 14px 16px}
  .mwrap.routing .leaflet-right{right:var(--pw,250px)}
  body:has(.mwrap.routing) .rudlang{top:auto!important;bottom:max(16px,env(safe-area-inset-bottom))!important;right:calc(var(--pw,250px) + 16px)!important}
}
.rp-head{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.rp-head strong{color:#f7b31c;font-family:Georgia,serif;font-size:18px}
.rp-head .sub{color:#b9a77f;font-size:13px}
.rp-head .rp-close{margin-left:auto;background:none;border:1px solid #7a4a0c;color:#f7b31c;border-radius:999px;width:34px;height:28px;cursor:pointer}
.rp-add{display:flex;gap:8px;margin-bottom:8px;align-items:flex-start}
.rp-add textarea,.rp-edit{flex:1;min-width:0;background:#000;color:#e9dfc9;border:1px solid #7a4a0c;border-radius:10px;padding:8px 10px;font:inherit;font-size:15px}
.rp-add textarea{min-height:46px;resize:vertical}
.btn{border:1.5px solid #7a4a0c;background:#0b0803;color:#f7b31c;border-radius:999px;padding:8px 14px;font:700 14px var(--sans);cursor:pointer;min-height:38px}
.btn.gold{background:linear-gradient(180deg,#ffe08a,#f7b31c 40%,#ca7a02);color:#1a1206;border-color:#ca7a02}
.btn.ghost{background:transparent}
.btn:disabled{opacity:.6}
.rp-btns{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.rp-drive .btn{flex:1 1 auto}
.rp-tip{font-size:12px;color:#b9a77f;margin:4px 0 8px}
.rp-list{list-style:none;margin:0 0 8px;padding:0}
.rp-list li{display:flex;align-items:center;gap:6px;border-bottom:1px solid #a6610344;padding:4px 0}
.rp-num{flex:none;background:none;border:0;padding:2px;cursor:pointer}
.rp-num b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f7b31c;color:#1a1206;font-size:12px;font-weight:800}
.rp-addr{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;background:none;border:0;border-bottom:1px dashed #7a4a0c88;color:inherit;font:inherit;text-align:left;cursor:text;padding:4px 2px}
.rp-addr span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-farw{font-style:normal;font-size:11.5px;color:#ff8a80}
.rp-list li > em{flex:none;font-style:normal;font-size:12px;color:#b9a77f;padding-left:4px}
.rp-editf{flex:1;min-width:0;display:flex;gap:6px}
.rp-acts{display:flex;gap:4px;flex:none}
.rp-acts button{background:none;border:1px solid #7a4a0c;color:#f7b31c;border-radius:8px;min-width:32px;height:30px;cursor:pointer}
.rp-acts button:disabled{opacity:.3}
.rp-acts .rp-chk{color:#9ccc65;border-color:#4b6b2a}
.rp-acts .rp-chk.on{background:#9ccc65;color:#10200a}
.rp-list li.done .rp-num b{background:#5d6b4a;color:#e8f5d8}
.rp-list li.done .rp-addr span{text-decoration:line-through;opacity:.55}
.rp-list li.far .rp-num b{background:#ff8a80}
.rstop{background:none;border:0}
.rstop b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f7b31c;color:#1a1206;border:2px solid #1a1206;font:800 13px var(--sans);box-shadow:0 1px 6px #000a}
.rstop.done b{background:#7d8a6a;color:#fff;opacity:.8}
.leaflet-control-zoom a{background:#0b0803!important;color:#f7b31c!important;border-color:#7a4a0c!important}

/* the language button moves to the top right while the route list is open, so it never covers Drive */
body:has(.mwrap.routing) .rudlang{bottom:auto!important;top:calc(112px + env(safe-area-inset-top))}   /* under the Cameras switch */
/* police reports (police cars only) */
.polbox{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.cambtn.polrep{background:#0b0803e6;color:#ff8a80;border-color:#b71c1c}
.poldot{background:none;border:0}
.poldot b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;border:3px solid #1565c0;font-size:16px;box-shadow:0 0 0 3px #b71c1c88,0 2px 6px #000a}
.pvotes{display:flex;gap:6px;margin-top:8px}
.btn.small{min-height:30px;padding:4px 10px;font-size:13px}
.leaflet-popup-content .btn{color:#1a1206}
.leaflet-popup-content .btn.ghost{color:#7a4a0c;border-color:#7a4a0c}
body:has(.mwrap.routing) .rudlang{top:calc(200px + env(safe-area-inset-top))!important}
@media (min-width:761px){body:has(.mwrap.routing) .rudlang{top:auto!important;bottom:max(16px,env(safe-area-inset-bottom))!important;right:calc(var(--pw,250px) + 16px)!important}}
/* a narrow panel (owner: "you should not need to pull it out further than this", "maximum map showing"):
   small buttons, everything stacks to fit. Placed last so it wins over the wider styles above. */
@container (max-width:330px){
  .routepanel .rp-head{flex-wrap:wrap;gap:2px 8px;margin-bottom:6px}
  .routepanel .rp-head .sub{order:3;flex-basis:100%;font-size:12px}
  .routepanel .rp-add{flex-direction:column;align-items:stretch;gap:6px}
  .routepanel .rp-add textarea{font-size:14px;min-height:40px}
  .routepanel .rp-add .btn{min-height:32px;padding:3px 10px;font-size:13px}
  .routepanel .rp-quick{gap:6px;padding-bottom:8px;margin-bottom:6px}
  .routepanel .rp-quick .btn.polnow,.routepanel .rp-quick .tgl{flex:1 1 0;min-width:0;min-height:32px;padding:3px 6px;gap:4px;font-size:12px;line-height:1.15}
  .routepanel .tgl i{padding:0 5px;font-size:11px}
  .routepanel .rp-btns{gap:6px}
  .routepanel .rp-btns .btn{flex:1 1 auto;min-height:32px;padding:3px 8px;font-size:12.5px}
  .routepanel .rp-list li{flex-wrap:wrap;row-gap:0}
  .routepanel .rp-addr{flex:1 1 0;font-size:14px}
  .routepanel .rp-addr span{white-space:normal;overflow-wrap:anywhere}
  .routepanel .rp-acts{width:100%;justify-content:flex-end}
  .routepanel .rp-acts button{min-width:28px;height:26px}
}

/* camera switches in the panel: one per line, the count on the right */
.routepanel .rp-cams{flex-direction:column;gap:6px}
.routepanel .rp-cams .tgl{flex:none;width:100%;justify-content:flex-start;text-align:left;min-height:34px;padding:4px 10px;font-size:13px;line-height:1.15}
.routepanel .rp-cams .tgl i{margin-left:auto}
/* phones: Report police moves from the top right to a big button in the bottom-right corner (owner 2026-12-02),
   just above the language button */
.polrep-b{display:none}
@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .polbox .polrep{display:none}
  .cambtn.polrep-b{display:flex;padding:12px 18px;font-size:16px;border-width:2px;box-shadow:0 3px 12px #000c}
  .mwrap .leaflet-bottom.leaflet-right{bottom:62px}
}
/* "Report Flock camera" (owner 2026-12-02): under Report police on a computer; on a phone, stacked above it in the corner */
.cambtn.camrep{background:#0b0803e6;color:#ffb74d;border-color:#c62828}
.camdot.rep b{border:2px dashed #fff;box-shadow:0 0 0 3px #c6282866,0 1px 4px #000a}
.bigreps{display:none}
@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .polbox .camrep{display:none}
  .bigreps{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
  .bigreps .cambtn.camrep{padding:9px 14px;font-size:14px;border-width:2px;box-shadow:0 3px 12px #000c}
}
.btn.polnow.camnow{background:#1d0b05;color:#ffb74d;border-color:#c62828}
.routepanel .rp-quick{flex-wrap:wrap}
@container (max-width:330px){
  .routepanel .rp-quick .btn.polnow,.routepanel .rp-quick .tgl{flex:1 1 calc(50% - 6px)}
}
/* ---- owner 2026-12-02: ONE box at the top right (police line + Flock camera line); report buttons in the bottom corners ---- */
.alertbox{display:flex;flex-direction:column;min-width:190px;border:1.5px solid #ca7a02;border-radius:14px;background:#0b0803ee;overflow:hidden;box-shadow:0 2px 10px #000a}
.alertbox button{display:flex;align-items:center;gap:7px;width:100%;background:none;border:0;color:#f7b31c;font:700 13px var(--sans);padding:8px 13px;cursor:pointer;text-align:left;line-height:1.2}
.alertbox button + button{border-top:1px solid #7a4a0c99}
.alertbox button.off{color:#b9a77f;opacity:.7}
.alertbox button.near{color:#fff}
.alertbox #polBtn.near{animation:rud-police 1.8s ease-in-out infinite}
.alertbox #camBtn.near{animation:rud-flock 2.2s ease-in-out infinite}
@keyframes rud-police{0%,100%{background:#c6282880}50%{background:#1565c080}}
@keyframes rud-flock{0%,100%{background:#ec407a22}50%{background:#ec407abb}}
@media (prefers-reduced-motion:reduce){.alertbox #polBtn.near{animation:none;background:#6a1b9a80}.alertbox #camBtn.near{animation:none;background:#ec407a88}}
.cambtn.bigrep{display:flex;padding:11px 16px;font-size:15px;border-width:2px;box-shadow:0 3px 12px #000c}
.cambtn.bigrep.camrep{color:#f8bbd0;border-color:#ec407a;background:#1a0710ee}
.cambtn.bigrep.polrep{color:#ff8a80;border-color:#b71c1c;background:#0b0803ee}
.mwrap .leaflet-bottom.leaflet-right{bottom:62px}   /* above the language button */
@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .mwrap .leaflet-bottom.leaflet-left{bottom:46px}   /* above the Tools tab */
  .cambtn.bigrep{padding:10px 13px;font-size:14px}
}
/* owner 2026-12-02: the report buttons sit flush in the bottom corners like the Route tab, not floating:
   Report Flock camera in the bottom-left corner, Report police in the bottom-right corner (map credits just above it) */
.leaflet-bottom.leaflet-left,.leaflet-bottom.leaflet-right{bottom:0!important}
.leaflet-bottom.leaflet-right{display:flex;flex-direction:column;align-items:flex-end}
.leaflet-bottom.leaflet-right .leaflet-control-attribution{order:1;margin:0 4px 3px!important;font-size:9.5px;border-radius:4px}
.leaflet-bottom.leaflet-right .bigrep{order:2}
.leaflet-control.cambtn.bigrep{margin:0!important;border-bottom:0;border-radius:14px 14px 0 0;max-width:calc(50vw - 74px);white-space:normal;line-height:1.15;text-align:left;padding:9px 13px 11px;font-size:13.5px;box-shadow:0 -2px 10px #0008}
.leaflet-left .leaflet-control.cambtn.bigrep{border-left:0;border-top-left-radius:0}
.leaflet-right .leaflet-control.cambtn.bigrep{border-right:0;border-top-right-radius:0}/* the language button moves to the top left, under the zoom buttons, so the bottom-right corner is the police button's */
body .rudlang,body:has(.mwrap.routing) .rudlang{top:calc(136px + env(safe-area-inset-top))!important;bottom:auto!important;left:max(10px,env(safe-area-inset-left))!important;right:auto!important}
/* owner 2026-12-02: very light alarm colors so the black letters stay easy to read; the corner button pulses too.
   The corner buttons are one line and a little lower than the Route / Tools tab, so the middle tab stands taller. */
.alertbox button.near{color:#111}
.alertbox #polBtn.near{animation:rud-police-lt 1.6s ease-in-out infinite}
.alertbox #camBtn.near{animation:rud-flock-lt 2s ease-in-out infinite}
@keyframes rud-police-lt{0%,100%{background:#ffcdd2}50%{background:#bbdefb}}
@keyframes rud-flock-lt{0%,100%{background:#fce4ec}50%{background:#f8bbd0}}
.leaflet-control.cambtn.bigrep{white-space:nowrap;padding:7px 11px 8px;font-size:12.5px;line-height:1.1}
.leaflet-control.cambtn.bigrep.polrep.near{color:#111;animation:rud-police-btn 1.6s ease-in-out infinite}
.leaflet-control.cambtn.bigrep.camrep.near{color:#111;animation:rud-flock-btn 2s ease-in-out infinite}
@keyframes rud-police-btn{0%,100%{background:#ffcdd2;box-shadow:0 0 14px 4px #ef535099}50%{background:#bbdefb;box-shadow:0 0 14px 4px #42a5f599}}
@keyframes rud-flock-btn{0%,100%{background:#fce4ec;box-shadow:0 0 10px 2px #ec407a66}50%{background:#f8bbd0;box-shadow:0 0 16px 5px #ec407aaa}}
@media (prefers-reduced-motion:reduce){.alertbox #polBtn.near,.leaflet-control.cambtn.bigrep.polrep.near{animation:none;background:#e1bee7}.alertbox #camBtn.near,.leaflet-control.cambtn.bigrep.camrep.near{animation:none;background:#f8bbd0}}
/* owner 2026-12-02 (final look): corner buttons are very lightly colored with black letters, two short lines, a bit lower
   than the middle tab; when police / Flock cameras are near you they pulse into strong color with white letters */
.leaflet-control.cambtn.bigrep{white-space:normal;max-width:calc(50vw - 64px);text-align:center;justify-content:center;font-size:12.5px;line-height:1.12;padding:6px 10px 7px;color:#111;font-weight:800}
.leaflet-control.cambtn.bigrep.polrep{background:linear-gradient(90deg,#ffebee,#e3f2fd);border-color:#b71c1c}
.leaflet-control.cambtn.bigrep.camrep{background:#fce4ec;border-color:#ec407a}
.leaflet-control.cambtn.bigrep.polrep.near{color:#fff;animation:rud-police-hot 1.4s ease-in-out infinite}
.leaflet-control.cambtn.bigrep.camrep.near{color:#fff;animation:rud-flock-hot 1.8s ease-in-out infinite}
@keyframes rud-police-hot{0%,100%{background:#e53935;box-shadow:0 0 16px 5px #e5393599}50%{background:#1e88e5;box-shadow:0 0 16px 5px #1e88e599}}
@keyframes rud-flock-hot{0%,100%{background:#ec407a;box-shadow:0 0 12px 3px #ec407a88}50%{background:#ad1457;box-shadow:0 0 18px 6px #ec407acc}}
@media (prefers-reduced-motion:reduce){.leaflet-control.cambtn.bigrep.polrep.near{animation:none;background:#c62828}.leaflet-control.cambtn.bigrep.camrep.near{animation:none;background:#ad1457}}@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .routetab{padding-top:12px;padding-bottom:13px}   /* the middle tab stands taller than the corner buttons */
}@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .leaflet-control.cambtn.bigrep{padding:4px 9px 5px;font-size:12px;line-height:1.08}
  .routetab{padding-top:14px;padding-bottom:16px}   /* the middle tab clearly taller than the corner buttons */
}
/* owner 2026-12-02: Flock / license plate cameras are ORANGE (a road caution color; red and blue belong to police) */
.camdot b,.camdot.plate b{background:#ef6c00}
.camdot.speed b{background:#6a1b9a}   /* speed & red-light cameras move to purple so they don't look like Flock */
.alertbox #camBtn.near{animation:rud-flock-or 2s ease-in-out infinite}
@keyframes rud-flock-or{0%,100%{background:#fff3e0}50%{background:#ffcc80}}
.leaflet-control.cambtn.bigrep.camrep{background:#fff3e0;border-color:#ef6c00;color:#111}
.leaflet-control.cambtn.bigrep.camrep.near{color:#fff;animation:rud-flock-or-hot 1.8s ease-in-out infinite}
@keyframes rud-flock-or-hot{0%,100%{background:#ef6c00;box-shadow:0 0 12px 3px #ef6c0088}50%{background:#e65100;box-shadow:0 0 18px 6px #ff9800cc}}
.btn.polnow.camnow{background:#1d1105;color:#ffb74d;border-color:#ef6c00}
@media (prefers-reduced-motion:reduce){.alertbox #camBtn.near{animation:none;background:#ffcc80}.leaflet-control.cambtn.bigrep.camrep.near{animation:none;background:#e65100}}
/* owner 2026-12-02: both corner buttons the same height (the police one was sitting low), and the police button
   clearly half red / half blue (light, black letters), with a red-to-blue edge */
.leaflet-control.cambtn.bigrep{min-height:40px;align-items:center}
.leaflet-control.cambtn.bigrep.polrep{border:2px solid transparent;border-bottom:0;border-right:0;
  background:linear-gradient(90deg,#ffcdd2 0,#ffcdd2 50%,#bbdefb 50%,#bbdefb 100%) padding-box,linear-gradient(90deg,#e53935,#1e88e5) border-box}
.leaflet-control.cambtn.bigrep.polrep.near{animation:rud-police-hot2 1.4s ease-in-out infinite}
@keyframes rud-police-hot2{
  0%,100%{background:linear-gradient(90deg,#e53935 0,#e53935 50%,#1e88e5 50%,#1e88e5 100%) padding-box,linear-gradient(90deg,#b71c1c,#0d47a1) border-box;box-shadow:0 0 16px 5px #e5393599}
  50%{background:linear-gradient(90deg,#1e88e5 0,#1e88e5 50%,#e53935 50%,#e53935 100%) padding-box,linear-gradient(90deg,#0d47a1,#b71c1c) border-box;box-shadow:0 0 16px 5px #1e88e599}}
@media (prefers-reduced-motion:reduce){.leaflet-control.cambtn.bigrep.polrep.near{animation:none;background:linear-gradient(90deg,#e53935 0,#e53935 50%,#1e88e5 50%,#1e88e5 100%) padding-box,linear-gradient(90deg,#b71c1c,#0d47a1) border-box}}
@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .leaflet-control.cambtn.bigrep{min-height:38px}
}
/* owner 2026-12-02: stronger resting colors — police clearly red | blue (not pink), Flock clearly orange (not tan); black letters */
.leaflet-control.cambtn.bigrep.polrep{background:linear-gradient(90deg,#ff5a52 0,#ff5a52 50%,#5aaef5 50%,#5aaef5 100%) padding-box,linear-gradient(90deg,#c62828,#1565c0) border-box}
.leaflet-control.cambtn.bigrep.camrep{background:#ffa020;border-color:#e65100}
/* owner 2026-12-02: the middle tab (Route / Tools) is white, so it stands apart from the orange and red/blue buttons */
.routetab{background:#fff!important;color:#111!important;border-color:#bdbdbd!important;box-shadow:0 -2px 10px #0006!important}
.routetab .rt-n{background:#111;color:#fff}
/* owner 2026-12-02: a fat black trim around the white middle tab */
.routetab{border:4px solid #000!important;border-bottom:0!important}
/* owner 2026-12-02: resting colors a touch lighter (still clearly red | blue and orange) */
.leaflet-control.cambtn.bigrep.polrep{background:linear-gradient(90deg,#ff7d76 0,#ff7d76 50%,#7cc0f8 50%,#7cc0f8 100%) padding-box,linear-gradient(90deg,#c62828,#1565c0) border-box}
.leaflet-control.cambtn.bigrep.camrep{background:#ffb547}
/* owner 2026-12-02: the same fat black trim around the two corner buttons */
.leaflet-control.cambtn.bigrep{border:4px solid #000!important;border-bottom:0!important}
.leaflet-left .leaflet-control.cambtn.bigrep{border-left:0!important}
.leaflet-right .leaflet-control.cambtn.bigrep{border-right:0!important}
.leaflet-control.cambtn.bigrep.polrep{background:linear-gradient(90deg,#ff7d76 0,#ff7d76 50%,#7cc0f8 50%,#7cc0f8 100%)}
.leaflet-control.cambtn.bigrep.polrep.near{animation:rud-police-hot3 1.4s ease-in-out infinite}
@keyframes rud-police-hot3{
  0%,100%{background:linear-gradient(90deg,#e53935 0,#e53935 50%,#1e88e5 50%,#1e88e5 100%);box-shadow:0 0 16px 5px #e5393599}
  50%{background:linear-gradient(90deg,#1e88e5 0,#1e88e5 50%,#e53935 50%,#e53935 100%);box-shadow:0 0 16px 5px #1e88e599}}
@media (prefers-reduced-motion:reduce){.leaflet-control.cambtn.bigrep.polrep.near{animation:none;background:linear-gradient(90deg,#e53935 0,#e53935 50%,#1e88e5 50%,#1e88e5 100%)}}@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .leaflet-control.cambtn.bigrep{max-width:calc(50vw - 62px);padding:4px 5px 5px;gap:4px;font-size:12px;letter-spacing:-.1px}
}@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  /* owner: an even, wider gap on both sides of the middle tab — both corner buttons the same width */
  .leaflet-control.cambtn.bigrep{width:calc(50vw - 82px);max-width:none}
}@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .leaflet-control.cambtn.bigrep > span[aria-hidden]{display:none}   /* words only on phones, so they stay on two lines */
}
/* zoning labels on lots, tape measure (owner 2026-12-02) */
.zlabel{background:none;border:0}
.zlabel b{display:inline-block;transform:translate(-50%,-50%);padding:1px 5px;border-radius:5px;background:#fff;border:2px solid var(--zc,#90a4ae);color:#111;font:800 11px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;white-space:nowrap;box-shadow:0 1px 3px #0005}
.mlabel{background:none;border:0}
.mlabel b{display:inline-block;transform:translate(-50%,-50%);padding:2px 7px;border-radius:6px;background:#111;color:#fff;font:800 12.5px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;white-space:nowrap;border:1.5px solid #f7b31c}
.measbar{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:1150;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center;max-width:calc(100% - 24px);
  background:#0b0803f2;border:2px solid #f7b31c;border-radius:14px;padding:7px 10px;color:#fff;font:700 14px var(--sans);box-shadow:0 4px 16px #000a}
.measbar .mb-t{padding:0 4px}
.measbar button{background:#1a1206;color:#f7b31c;border:1.5px solid #7a4a0c;border-radius:999px;padding:5px 11px;font:700 13px var(--sans);cursor:pointer}
.measbar button:disabled{opacity:.4}
.measbar .mb-done{background:linear-gradient(180deg,#ffe08a,#f7b31c 40%,#ca7a02);color:#1a1206;border-color:#ca7a02}
.mwrap.measuring #map{cursor:crosshair}
.mwrap.measuring .leaflet-top.leaflet-right{display:none}   /* the measuring bar takes the top while measuring */
/* owner 2026-12-02: a camera people reported but nobody has verified yet shows a question mark */
.camdot.rep b{font:900 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#fff;background:#ef6c00}

/* owner 2026-12-02: one person said a camera isn't there: question mark until a second witness decides */
.camdot.doubt b{font:900 12px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#fff;background:#ef6c00;border-style:dashed}

/* World layers: computer only (owner 2026-12-02) */
.rp-world{display:none}
@media (min-width:761px) and (hover:hover){ .routepanel .rp-quick.rp-world{display:flex;flex-wrap:wrap;gap:6px} }
.rp-wtitle{flex-basis:100%;font:700 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#b9a77f;margin:2px 0 2px 2px}
.plane{background:none;border:0}
.plane span{display:block;width:22px;height:22px;filter:drop-shadow(0 0 1.5px #fff) drop-shadow(0 1px 2px #0008)}
.plane svg{display:block;fill:currentColor}
.measbar[hidden]{display:none}   /* the tape measure bar only shows while measuring */
.nuke{background:none;border:0}
.nuke b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:2px solid #222;color:#111;font:900 12px/1 system-ui,sans-serif;box-shadow:0 1px 4px #000a}
.newsbox{margin-top:6px;font-size:12.5px;max-height:220px;overflow:auto}
.newsbox ul{margin:0;padding-left:16px}
.newsbox li{margin:0 0 5px}
.newsbox i{color:#777;font-style:normal;font-size:11px}
.rp-wnote{flex-basis:100%;font-size:11.5px;color:#b9a77f;margin:2px 2px 0}
.fire{background:none;border:0}
.fire b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fff3e0;border:2px solid #bf360c;font-size:11px;box-shadow:0 1px 4px #000a}

/* owner 2026-12-02: military planes say MIL */
.plane{overflow:visible}
.plane .miltag{position:absolute;left:15px;top:-9px;font:900 9px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-style:normal;color:#fff;background:#d32f2f;border:1.5px solid #fff;border-radius:4px;padding:1px 3px;box-shadow:0 1px 3px #0008}
.flkey b{font-size:13px}

/* ---- owner 2026-12-02: layer switches as a folding GIS-style list ("this type of switches… does not take up so much space";
   "lights up green when you check it off"; "light red when off") ---- */
.routepanel .lyrs{margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid #a6610366}
.routepanel .lyr-title{font:700 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#b9a77f;margin:2px 2px 6px}
.routepanel .lyr-g{border-radius:8px}
.routepanel .lyr-g + .lyr-g{margin-top:2px}
.routepanel .lyr-g > summary{display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;padding:6px 6px;border-radius:8px;color:#f7b31c;font:700 14px var(--sans);user-select:none}
.routepanel .lyr-g > summary::-webkit-details-marker{display:none}
.routepanel .lyr-g > summary::before{content:'';width:0;height:0;border-left:6px solid #f7b31c;border-top:5px solid transparent;border-bottom:5px solid transparent;transition:transform .15s;flex:none}
.routepanel .lyr-g[open] > summary::before{transform:rotate(90deg)}
.routepanel .lyr-g > summary:hover{background:#1a1206}
.routepanel .lyr-c{margin-left:auto;font-style:normal;font-size:11.5px;color:#7bd88f}
.routepanel .lyr-items{padding:0 0 4px 14px}
.routepanel .lyrs .tgl{flex:none;width:100%;display:flex;justify-content:flex-start;align-items:center;gap:7px;min-height:32px;padding:3px 6px;border:0;border-radius:6px;background:none;color:#f3e6c4;font:600 13.5px/1.2 var(--sans);text-align:left}
.routepanel .lyrs .tgl:hover{background:#1a1206}
.routepanel .lyrs .tgl::before{content:'';flex:none;width:18px;height:18px;border-radius:4px;box-sizing:border-box;border:2px solid #e57373;background:#ffcdd2;display:grid;place-items:center;font:900 13px/1 system-ui,sans-serif;color:#fff}
.routepanel .lyrs .tgl.on{background:none;color:#fff}
.routepanel .lyrs .tgl.on::before{content:'✓';border-color:#2e7d32;background:#43a047}
.routepanel .lyrs .tgl i{margin-left:auto;padding:0 2px;background:none;color:#b9a77f;font-size:11.5px}
.routepanel .lyrs .tgl i:empty{display:none}
.routepanel .lyrs .tgl.on i{background:none;color:#b9a77f}
.routepanel .lyrs .tgl > span[aria-hidden]{font-size:14px}
.routepanel .lyrs #rpCams{display:contents}
.routepanel .lyrs .rp-wnote{margin:2px 6px 4px}
.routepanel .lyr-g.rp-world{display:none}
@media (min-width:761px) and (hover:hover){ .routepanel .lyr-g.rp-world{display:block} }
@container (max-width:330px){
  .routepanel .lyrs .tgl{flex:none;width:100%;min-height:30px;font-size:12.5px;padding:2px 4px}
  .routepanel .lyr-items{padding-left:10px}
}
/* Empire Maps logo in the header (2026-12-02): replaces the old "RUD EMPIRE Maps" words.
   Bar stays 56px (map area as big as possible). The logo always stays in the center (Ed 2026-12-02). */
.mtop h1.mbrand{position:absolute;top:3px;left:50%;transform:translateX(-50%);margin:0;line-height:0;letter-spacing:0}
.mtop h1.mbrand img{display:block;height:50px;width:auto}
@media (max-width:560px){.mtop h1.mbrand{left:max(50%,92px)}}
/* the language list opens DOWN and to the RIGHT of the button (it sits top-left under the zoom buttons) */
body .rudlang ul{top:calc(100% + 8px);bottom:auto;left:0;right:auto;max-height:calc(100vh - 220px);overflow-y:auto}
body .rudlang .car{display:inline-block;transform:rotate(180deg)}
body .rudlang>button[aria-expanded="true"] .car{transform:none}

/* Control Panel tab (2026-12-02): pull it up and the stops slide up under the address box, covering the
   report buttons, tape measure and Layers; pull it down to bring them back */
.routepanel .rp-sw{display:grid;grid-template-rows:1fr;transition:grid-template-rows .3s ease,opacity .25s ease}
.routepanel .rp-swin{overflow:hidden;min-height:0}
.routepanel.stops-up .rp-sw{grid-template-rows:0fr;opacity:0;pointer-events:none}
.routepanel .rp-pull{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:4px 0 8px;padding:6px 10px;border-radius:999px;
  border:1px solid #ca7a02;background:linear-gradient(180deg,#221805,#0e0a03);color:#f7b31c;font:700 13px/1.1 system-ui,-apple-system,Segoe UI,sans-serif;
  letter-spacing:.06em;text-transform:uppercase;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 0 8px #f7b31c33}
.routepanel .rp-pull:hover{border-color:#f7b31c;box-shadow:0 0 12px #f7b31c66}
.routepanel .rp-pull:active{cursor:grabbing}
.routepanel .rp-pull b{font-size:11px}
