/* RUD Schedules */
:root{
  --bg:#000; --panel:#070605; --panel2:#0f0d09; --line:#5a3404; --line2:#221b0e;
  --text:#f6e7c1; --muted:#b9a77f; --gold:#dda926; --gold2:#f7b31c; --red:#ff5a4f; --redbg:#3a1412;
  --goldline:linear-gradient(90deg,#ca7a0200,#dda926 20%,#f7b31c 50%,#dda926 80%,#ca7a0200);
  --green:#5fd08f; --good:#7fe0a6; --bad:#ff8a80; --remred:#ffb4ad; --remtext:#e9dfc9; --label:190px; --lane:36px; --sans:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:14px/1.4 var(--sans)}
button,input,select,textarea{font:inherit;color:inherit}
[hidden]{display:none!important}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* auth */
.auth{min-height:100dvh;display:grid;place-items:center;padding:24px;
  background:radial-gradient(ellipse at 50% 30%,#1a1408 0,#06080c 60%)}
.auth-card{width:min(420px,100%);background:var(--panel);border:1px solid #ca7a0255;border-radius:16px;padding:26px 24px;box-shadow:0 20px 60px #000c}
.auth .crest{display:block;width:140px;height:auto;margin:0 auto 4px}
.auth h1{text-align:center;margin:0 0 16px;font:400 22px Georgia,serif;letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}
.auth label{display:block;margin:0 0 12px;color:var(--muted);font-size:13px}
.auth input{display:block;width:100%;margin-top:4px}
.err{color:var(--red);min-height:1.2em;margin:4px 0 8px;font-size:13px}
.hint{color:var(--muted);font-size:13px;margin:0 0 12px}

input,select,textarea{background:#0a0e14;border:1px solid var(--line);border-radius:8px;padding:9px 10px;outline:none;min-height:40px}
input:focus,select:focus,textarea:focus{border-color:var(--gold)}
input[type="search"]{-webkit-appearance:none;appearance:none}
input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;display:none}
/* date and time boxes: the whole box opens the calendar, and the calendar icon shows on the dark background */
input[type="date"],input[type="time"],input[type="datetime-local"]{color-scheme:dark;cursor:pointer}
input[type="date"]::-webkit-calendar-picker-indicator,input[type="time"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.9;filter:invert(.75) sepia(1) saturate(4) hue-rotate(5deg)}
html[data-theme="light"] input[type="date"],html[data-theme="light"] input[type="time"],html[data-theme="light"] input[type="datetime-local"]{color-scheme:light}
html[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,html[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator{filter:none}
textarea{width:100%;min-height:90px;resize:vertical}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--panel2);
  border-radius:999px;padding:9px 18px;cursor:pointer;min-height:40px}
.btn:hover{border-color:#ca7a0299}
.btn.gold{background:linear-gradient(180deg,#f7b31c 0%,#dda926 35%,#ca7a02 72%,#a66103 100%);color:#1a1206;border-color:#ca7a02;font-weight:600}
.btn.red{background:var(--redbg);border-color:#ff5a4f88;color:#ffd6d2}
.btn.ghost{background:transparent}
.btn.small{padding:6px 12px;min-height:32px;font-size:13px}
.auth .btn{width:100%;margin-top:4px}
.linkbtn{background:none;border:0;color:var(--gold);cursor:pointer;padding:6px 2px;text-decoration:underline;text-underline-offset:3px}
.auth .linkbtn{display:block;margin:10px auto 0}
:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}

/* layout */
.app{display:flex;flex-direction:column;height:100dvh}
.top{position:relative;display:flex;align-items:center;gap:8px;padding:8px max(10px,env(safe-area-inset-left));border-bottom:1px solid var(--line2);background:#080b10}
.top .back{color:var(--text);text-decoration:none;border:1px solid #ca7a0266;border-radius:999px;padding:7px 12px;white-space:nowrap}
.top .back span:first-child{color:var(--gold)}
.brand{margin:0 6px;font:400 15px Georgia,serif;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);white-space:nowrap}
.brand span{color:var(--text)}
.spacer{flex:1}
.iconbtn{display:inline-flex;align-items:center;gap:6px;background:transparent;border:1px solid transparent;border-radius:999px;padding:7px 10px;cursor:pointer;min-height:38px}
.iconbtn:hover{border-color:var(--line)}
.iconbtn svg{width:20px;height:20px}
.pill{display:inline-flex;align-items:center;gap:6px;background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:6px 12px;cursor:pointer;min-height:36px}
.pill .dot{width:9px;height:9px;border-radius:50%;background:#556}
.pill.hot{border-color:#ff5a4f99;background:var(--redbg)}
.pill.hot .dot{background:var(--red);box-shadow:0 0 8px var(--red)}
.menu{position:absolute;right:10px;top:52px;z-index:40;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:6px;min-width:220px;box-shadow:0 12px 40px #000c;
  max-height:calc(100dvh - 70px);overflow-y:auto;overscroll-behavior:contain}   /* a phone screen shorter than the menu: it scrolls */
.menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:8px;cursor:pointer}
.menu button:hover{background:var(--panel2)}

.toolbar{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line2);overflow-x:auto;scrollbar-width:thin}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;flex:none}
.seg button{background:none;border:0;padding:7px 16px;cursor:pointer;min-height:36px}
.seg button[aria-selected="true"]{background:linear-gradient(180deg,#f7b31c 0%,#dda926 35%,#ca7a02 72%,#a66103 100%);color:#1a1206;font-weight:600}
.zooms{display:flex;gap:4px;flex:none}
.zooms button{background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:6px 11px;cursor:pointer;white-space:nowrap;min-height:34px;font-size:13px}
.zooms button.on{border-color:var(--gold);color:var(--gold2)}

.drawer{position:absolute;z-index:30;left:0;top:104px;bottom:0;width:min(300px,86vw);background:var(--panel);border-right:1px solid var(--line);padding:12px;overflow:auto;box-shadow:12px 0 40px #000a}
.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.projlist{list-style:none;margin:0 0 12px;padding:0}
.projlist li{display:flex;align-items:center;gap:8px;padding:6px 4px;border-bottom:1px solid var(--line2)}
.projlist label{display:flex;align-items:center;gap:8px;flex:1;cursor:pointer;min-height:32px}
.projlist input{appearance:none;width:20px;height:20px;min-height:20px;padding:0;border:2px solid var(--c);border-radius:5px;background:transparent;flex:none}
.projlist input:checked{background:var(--c)}
.projlist .only{font-size:12px}
.projlist .lock{color:var(--muted);font-size:12px}

.main{position:relative;flex:1;min-height:0}
.empty{position:absolute;inset:40px 20px auto;text-align:center;color:var(--muted)}

/* gantt */
.gwrap{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain}
.g{position:relative}
.ghead{position:sticky;top:0;z-index:6;display:flex;background:#080b10;border-bottom:1px solid var(--line)}
.ghead .corner{position:sticky;left:0;z-index:7;width:var(--label);flex:none;background:#080b10;border-right:1px solid var(--line);
  padding:6px 8px;color:var(--muted);font-size:12px;display:flex;align-items:flex-end}
.gscale{position:relative;height:44px;flex:none}
.gscale span{position:absolute;white-space:nowrap;font-size:12px;color:var(--muted);padding-left:4px;border-left:1px solid var(--line2);height:22px;line-height:22px}
.gscale .m{top:0;color:var(--gold);font-weight:600}
.gscale .d{top:22px}
.gscale.tall{height:62px}
.gscale .l{top:44px;height:18px;line-height:18px;padding:0;text-align:center;font-size:11px;overflow:hidden}
.gscale.tight .l{font-size:9.5px;border-left:0}
.gscale .d.n{padding:0;text-align:center}
.gscale .tw{top:2px;height:18px;line-height:18px;transform:translateX(-50%);z-index:2;padding:0 7px;border:1px solid var(--gold);border-radius:999px;background:#080b10;color:var(--gold2);font-size:11.5px;font-weight:700}
html[data-theme="light"] .gscale .tw{background:#fff}
.gscale .l.off{opacity:.55}
.gscale .l.today{color:var(--gold2);font-weight:700;box-shadow:inset 0 -2px 0 var(--gold)}
/* today's date in the header: gold bold letters with a thin underline, never a filled block (owner: it looked like a bar) */
.gscale .d.today{color:var(--gold2);font-weight:700;background:none;box-shadow:inset 0 -2px 0 var(--gold);border-radius:0;padding:0 4px}
.gbody{position:relative}
.shade{position:absolute;top:0;bottom:0;background:#ffffff07;pointer-events:none}
.shade.hol{background:#dda92612}
.todayline{position:absolute;top:0;bottom:0;width:2px;background:var(--gold);opacity:.75;pointer-events:none;z-index:3}
.row{display:flex;position:relative}
.row .lab{position:sticky;left:0;z-index:4;width:var(--label);flex:none;background:var(--bg);border-right:1px solid var(--line);
  border-bottom:1px solid var(--line2);display:flex;align-items:center;gap:4px;padding:0 4px 0 8px;overflow:hidden}
.row .trk{position:relative;flex:none;border-bottom:1px solid var(--line2)}
.row.lane .lab{height:var(--lane)}
.row.lane .trk{height:var(--lane)}
/* the bottom edge of each trade row: pull down to make rows taller */
.lanegrip{position:absolute;left:0;right:0;bottom:-4px;height:9px;cursor:ns-resize;z-index:6;touch-action:none}
.lanegrip::after{content:"";position:absolute;left:0;right:0;top:3px;height:2px;background:transparent;transition:background .15s}
.lanegrip:hover::after,body.resizing .lanegrip::after{background:var(--gold)}
body.resizing{cursor:ns-resize;user-select:none}
/* right-click menu on a bar */
.barmenu{position:fixed;right:auto;top:0;left:0;z-index:60;min-width:190px;display:flex;flex-direction:column}
.barmenu .bm-title{font-size:12px;color:var(--muted);padding:4px 10px 6px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.barmenu button{background:none;border:0;color:var(--text);text-align:left;padding:9px 10px;border-radius:8px;cursor:pointer;font:inherit}
.barmenu button:hover{background:var(--panel2)}
.barmenu .bm-del{color:var(--red)}
.barmenu .bm-nwrap{position:relative;display:block;padding:2px 4px 6px}
.barmenu .bm-name{width:100%;min-height:34px;padding:5px 9px;font-size:14px;font-weight:600;color:var(--text);border-color:var(--line)}
.barmenu .bm-name:focus{border-color:var(--gold2)}
.barmenu .tmenu{width:max(100%,300px)}
.barmenu .bm-colors{padding:6px 10px 8px;border-top:1px solid var(--line2);border-bottom:1px solid var(--line2);margin:4px 0}
.barmenu .bm-cl{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.barmenu .bm-sws{display:grid;grid-template-columns:repeat(7,22px);gap:6px}
.barmenu .bm-sws button{width:22px;height:22px;min-height:0;padding:0;border-radius:50%;background:var(--c);border:2px solid #0008;box-shadow:0 0 0 1px var(--line);cursor:pointer}
.barmenu .bm-sws .bm-sw0{background:transparent;border:2px dashed var(--c)}
.barmenu .bm-sws button:hover{box-shadow:0 0 0 2px var(--gold2);background:var(--c)}
.barmenu .bm-sws .bm-sw0:hover{background:transparent}
.barmenu .bm-sws button.on{box-shadow:0 0 0 3px var(--gold2)}
/* the bar under the chart: drag the middle to move, drag an edge to zoom (owner's request) */
.main:has(#rangebar:not([hidden])) .gwrap{bottom:28px}
.gwrap::-webkit-scrollbar:horizontal{height:0}
.rangebar{position:absolute;left:0;right:0;bottom:0;height:24px;margin:2px 8px;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);touch-action:none;cursor:pointer}
.rb-win{position:absolute;top:2px;bottom:2px;min-width:26px;border-radius:999px;background:linear-gradient(180deg,#f7b31c,#ca7a02);opacity:.85;cursor:grab}
.rb-win:active{cursor:grabbing}
.rb-h{position:absolute;top:0;bottom:0;width:12px;cursor:ew-resize}
.rb-h::after{content:"";position:absolute;top:4px;bottom:4px;left:5px;width:2px;border-radius:2px;background:#1a1206;opacity:.6}
.rb-h.l{left:0}.rb-h.r{right:0}
/* owner 2026-12-02: the gold bars are the window trim: always at the bottom and on the right, phones too */
#gantt,#gantt .gbody,#gantt .gscale{cursor:grab}
#gantt .gbody .bar{cursor:pointer}
#gantt .lab,#gantt .corner{cursor:auto}
body.panning,body.panning #gantt,body.panning #gantt .gbody{cursor:grabbing;user-select:none}
.row.lane .lab .t{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#d8d0bf}
.row.lane .lab .ord{display:flex;flex-direction:column}
.row.lane .lab .ord button{background:none;border:0;color:var(--muted);cursor:pointer;line-height:1;padding:1px 4px;font-size:11px}
.row.lane .lab .ord button:hover{color:var(--gold)}
.row.proj .lab{height:34px;background:#0b0f15;gap:8px;font-weight:600}
.row.proj .trk{height:34px;background:#0b0f15}
.row.proj .sw{width:12px;height:12px;border-radius:3px;flex:none}
.row.proj .pname{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row.proj .pbtn{background:none;border:0;color:var(--muted);cursor:pointer;padding:4px 6px;border-radius:6px}
.row.proj .pbtn:hover{color:var(--gold);background:var(--panel2)}
.row.newlane .lab,.row.newlane .trk{height:18px;border-bottom:1px dashed var(--line2)}
.row.newlane .lab{color:#5d6672;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row.droptarget .trk{background:#dda92614;outline:1px dashed #dda92688;outline-offset:-2px}
.lanesvg{position:absolute;left:0;top:0;overflow:visible;stroke:none;fill:none}
.lanesvg text{stroke:none}
.bar{cursor:grab;touch-action:none}
.bar.dragging{cursor:grabbing;opacity:.85}
.bar.pending .body{stroke:var(--gold2);stroke-width:2;stroke-dasharray:5 3}
.bar.picked .body{stroke:var(--gold2);stroke-width:3}
.bar .tiedot{fill:var(--gold2);stroke:#000;stroke-width:1.2}
.barmenu .bm-tie{color:var(--gold2);font-weight:700}
.bar.picked.pending .body{stroke-dasharray:5 3}
.renbox{position:fixed;z-index:75;display:flex;gap:8px;align-items:center;width:min(340px,calc(100vw - 16px));padding:8px;background:var(--panel);border:1px solid var(--gold);border-radius:10px;box-shadow:0 12px 32px #000c}
.renbox .rn-in{flex:1;min-width:0;position:relative}
.renbox input{width:100%;min-height:36px;padding:6px 10px;font-size:14px}
.renbox .btn{flex:none}
.selbox{position:fixed;z-index:65;border:1.5px dashed var(--gold2);background:#dda9261a;border-radius:4px;pointer-events:none}
body.boxing,body.boxing *{cursor:crosshair !important;user-select:none}
/* the Approve box that opens right next to a moved bar */
.pvpop{position:fixed;z-index:70;width:min(390px,calc(100vw - 16px));background:var(--panel);border:1px solid var(--gold);border-radius:12px;box-shadow:0 14px 40px #000c;display:flex;flex-direction:column}
.pvpop .pv-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 8px 14px;border-bottom:1px solid var(--line2);font-size:15px;color:var(--text)}
.pvpop .pv-x{background:none;border:0;color:var(--muted);font-size:16px;cursor:pointer;min-height:0;padding:4px 6px;border-radius:6px}
.pvpop .pv-x:hover{color:var(--text);background:var(--panel2)}
.pvpop .pv-body{max-height:min(60vh,420px);overflow:auto;padding:10px 14px 14px;flex:none}
.pvpop .pv-body h3{margin:12px 0 6px}
.pvpop .pv-body .row2{margin-top:12px}
.bar text{font:12px var(--sans);fill:#0b0b0b;pointer-events:none}
.bar .edge{cursor:ew-resize;fill:transparent}
.bar:focus{outline:none}
.bar:focus-visible .body{stroke:#fff;stroke-width:2}

/* takt */
.twrap{position:absolute;inset:0;overflow:auto;padding:10px}
.tproj{margin:0 0 22px}
.tproj h3{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:15px}
.tproj h3 .sw{width:12px;height:12px;border-radius:3px}
.tgrid{display:grid;gap:3px;align-items:stretch;min-width:max-content}
.tgrid .h{font-size:11px;color:var(--muted);text-align:center;line-height:1.2;padding:2px 0}
.tgrid .h.today{color:var(--gold2);font-weight:700;background:none;box-shadow:inset 0 -2px 0 var(--gold);border-radius:0}
.tgrid .h.thin{white-space:nowrap;overflow:visible;text-align:left}
.tgrid.narrow{gap:3px 1px}
.tgrid.narrow .c{font-size:10px;padding:1px 2px}
.tgrid .u{position:sticky;left:0;z-index:2;background:var(--bg);font-weight:600;font-size:13px;display:flex;align-items:center;padding-right:8px}
.tgrid .c{min-height:40px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:600;
  overflow:hidden;text-align:center;line-height:1.15;padding:2px 4px;cursor:pointer;border:1px solid #0006;color:#111;position:relative;z-index:1}
/* names: up to two lines, whole words only; the full name shows when the mouse rests on it */
.tgrid .c span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:normal;overflow-wrap:normal}
/* a line under each unit's rows, and every other unit lightly shaded (owner: "no lines? rows") */
.tgrid .rl{border-bottom:1px solid var(--line);margin:0 0 -2px;pointer-events:none}
.tgrid .rl.alt{background:#ffffff08}
.tgrid .tsp{min-height:var(--tH,40px);pointer-events:none}
.tgrid .uadd{min-height:34px;font-weight:400}
.tgrid .uadd .tplus,.tnewproj .tplus{color:var(--gold2);border:2px solid var(--gold);font-weight:800;font-size:16px;letter-spacing:.04em;padding:6px 12px;min-height:40px;white-space:nowrap}
.tgrid .uadd{min-height:56px}
.tnewproj{margin:14px 0 30px}
.tgrid .uadd .linkbtn{color:var(--gold2);font-size:12.5px;white-space:normal;text-align:left;padding:4px 0}
.sheet-body .ufield{display:block;font-size:12.5px;color:var(--muted);grid-column:1 / -1}
.ulist{display:block;margin-top:4px}
.ulist .uchips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.ulist .uchip{display:inline-flex;align-items:center;gap:6px;padding:3px 4px 3px 10px;border:1px solid var(--gold);border-radius:999px;color:var(--text);font-size:13px}
.ulist .ux{min-height:0;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer;font-size:12px}
.ulist .ux:hover{background:var(--redbg);color:var(--red)}
.ulist .unew{display:flex;gap:6px}
.ulist .unew input{flex:1;min-width:0;margin-top:0}
/* "are you sure?" right where you clicked */
.barmenu .bm-ask{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 8px;margin-top:2px;border-top:1px solid var(--line2)}
.barmenu .bm-ask span{width:100%;font-size:12.5px;color:var(--text)}
.barmenu .bm-ask .bm-yes{color:#fff;background:var(--red);border-radius:8px;padding:6px 12px;font-weight:700}
.barmenu .bm-ask .bm-yes:hover{background:var(--red);filter:brightness(1.1)}
.barmenu .bm-ask .bm-no{border:1px solid var(--line);border-radius:8px;padding:6px 14px}
.askbox{position:fixed;z-index:95;width:min(320px,calc(100vw - 16px));padding:12px 14px;background:var(--panel);border:1px solid var(--red);border-radius:12px;box-shadow:0 14px 40px #000c}
.askbox .ab-msg{color:var(--text);font-size:14px;font-weight:600}
.askbox .ab-sub{color:var(--muted);font-size:12px;margin:4px 0 10px}
.askbox .ab-btns{display:flex;gap:8px}
/* read aloud */
.rdplay{min-height:0;padding:2px 9px;margin-left:6px;border:1px solid var(--gold);border-radius:999px;background:none;color:var(--gold2);font-size:12px;cursor:pointer;vertical-align:middle}
.rdplay.big{padding:5px 14px;font-size:14px;font-weight:700}
.rdplay:hover{background:#dda92622}
.rdbar{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:90;width:min(560px,calc(100vw - 16px));padding:10px 14px 12px;background:var(--panel);border:1px solid var(--gold);border-radius:14px;box-shadow:0 14px 40px #000c}
.rdbar .rd-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rdbar .rd-t{flex:1;min-width:0;color:var(--gold2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rdbar .rd-n{color:var(--muted);font-size:12px}
.rdbar select{min-height:30px;padding:2px 8px;font-size:12.5px}
.rdbar .rd-line{margin:8px 0;min-height:2.6em;font-size:14px;color:var(--text);line-height:1.35}
.rdbar .rd-btns{display:flex;justify-content:center;gap:10px}
.rdbar .rd-btns button{min-height:0;width:44px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);font-size:16px;cursor:pointer}
.rdbar .rd-btns .rd-main{width:64px;border-color:var(--gold);color:var(--gold2);font-size:18px}
.tactions{display:flex;gap:14px;align-items:center;margin:8px 0 2px}
.tgrid .sl{border-bottom:1px solid var(--line2);margin-bottom:-2px;pointer-events:none}
.main:has(#trangebar:not([hidden])) .twrap{bottom:28px}
.tgrid .c{min-height:var(--tH,40px)}
.tgrid .c .tedge{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:ew-resize;border-radius:0 5px 5px 0}
@media (pointer:coarse){.tgrid .c .tedge{width:20px;right:-6px;top:-3px;bottom:-3px;touch-action:none}}   /* a finger-size end to stretch (owner) */
.tgrid .c .tedge:hover{background:#0003}
.tgrid .u{position:sticky}
/* the unit names stay put on the left and fully cover the bars sliding under them, including the 10px strip
   at the board's left edge (owner 2026-12-01: "that black box is supposed to stay put on the left side") */
.tgrid .u{z-index:3;box-shadow:-14px 0 0 var(--bg),1px 0 0 var(--line)}
.tgrid .u .tgrip{position:absolute;left:0;right:0;bottom:-3px;height:7px;cursor:ns-resize}
.tgrid .u .tgrip:hover{background:var(--gold);opacity:.5}
.tgrid .rl.droptarget{background:#dda92626;outline:2px dashed var(--gold2);outline-offset:-2px}
.tgrid .h .ttag{display:inline-block;padding:0 6px;border:1px solid var(--gold);border-radius:999px;color:var(--gold2);font-size:10.5px;white-space:nowrap}
.tgrid .h.thin .ttag{position:relative;z-index:2;background:var(--bg)}
.tgrid .c .tdot{position:absolute;left:3px;top:3px;width:7px;height:7px;border-radius:50%;background:var(--gold2);border:1px solid #000}
.tgrid .c.picked{box-shadow:0 0 0 3px var(--gold2)}
.tgrid .c.dragging{opacity:.85;cursor:grabbing;z-index:5}
.tgrid .c.pending{outline:2px dashed var(--gold2);outline-offset:1px}
.twrap{cursor:grab}
.twrap .c{cursor:pointer}
.tgrid .c.late{outline:2px solid var(--red);outline-offset:-2px}
.tgrid .c.done{opacity:.45}
.tlegend{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted);margin:8px 0 0}
.tlegend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.note{color:var(--muted);font-size:13px}

/* sheet */
.sheet-back{position:fixed;inset:0;background:#0008;z-index:50}
.sheet{position:fixed;z-index:51;right:0;top:0;bottom:0;width:min(460px,100vw);background:var(--panel);border-left:1px solid var(--line);
  display:flex;flex-direction:column;box-shadow:-20px 0 60px #000c}
.sheet header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line2)}
.sheet h2{flex:1;margin:0;font:600 17px var(--sans)}
.sheet-body{flex:1;overflow:auto;padding:14px 16px max(20px,env(safe-area-inset-bottom))}
.sheet-body h3{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin:18px 0 8px}
.sheet-body .grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sheet-body label{display:block;font-size:12.5px;color:var(--muted)}
.sheet-body label input,.sheet-body label select,.sheet-body label textarea{display:block;width:100%;margin-top:4px;color:var(--text)}
.sheet-body label input[type="checkbox"]{display:inline-block;width:auto;flex:none;margin:0;accent-color:var(--gold)}
.sheet-body label:has(input[type="checkbox"]){color:var(--text);font-size:13.5px}
.sheet-body .row2{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
/* bar color row */
.cpick{margin-top:12px}
.cpick .cpl{display:block;font-size:12.5px;color:var(--muted);margin-bottom:6px}
.sws{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sws .swc{position:relative;display:grid;place-items:center;width:30px;height:30px;min-height:0;padding:0;border-radius:50%;background:var(--c);border:2px solid #0008;box-shadow:0 0 0 1px var(--line);cursor:pointer;color:var(--text);font-weight:700;font-size:16px;line-height:1}
.sws .sw0{min-height:30px;padding:2px 12px;border-radius:999px;border:2px solid var(--c);background:transparent;color:var(--text);font-size:12.5px;cursor:pointer}
.sws .swc.on,.sws .sw0.on{box-shadow:0 0 0 3px var(--gold2)}
.sws .swc.on::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;font-size:15px;color:#fff;text-shadow:0 0 3px #000,0 0 2px #000}
.sws .any.on span{visibility:hidden}
.sws .any input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer}
/* date boxes: type a date, or click for the month calendar */
.dfield{padding-right:36px !important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dda926' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 10px center/18px,var(--panel2) !important;cursor:text}
.dfield.bad{border-color:var(--red) !important}
.dwrap{position:relative;display:block}
.dwrap .dfield{margin-top:4px}
.dfield.has-after{padding-left:38px !important}
.dafter{position:absolute;left:4px;top:8px;width:30px;height:calc(100% - 8px);min-height:0;padding:0;border:0;border-right:1px solid var(--line);border-radius:6px 0 0 6px;background:none;color:var(--gold2);font-size:20px;font-weight:700;line-height:1;cursor:pointer;z-index:1}
.dafter:hover{background:#dda92622}
.tmenu.amenu{grid-template-columns:1fr;width:max(100%,300px);max-height:300px;overflow:auto}
.tmenu.amenu .am-h{font-size:12px;color:var(--muted);padding:2px 4px 4px}
.tmenu.amenu button.on{border-color:var(--gold2)}
.dpop{position:fixed;z-index:80;width:276px;padding:10px;background:var(--panel);border:1px solid var(--gold);border-radius:12px;box-shadow:0 14px 40px #000c;user-select:none}
.dpop .dp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;color:var(--text);font-size:14.5px}
.dpop .dp-head button{width:34px;height:34px;min-height:0;padding:0;border:1px solid var(--line);border-radius:8px;background:none;color:var(--gold2);font-size:20px;line-height:1;cursor:pointer}
.dpop .dp-head button:hover{border-color:var(--gold2)}
.dpop .dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dpop .dp-w{text-align:center;font-size:11px;color:var(--muted);padding:2px 0 4px}
.dpop .dp-d{height:34px;min-height:0;padding:0;border:1px solid transparent;border-radius:50%;background:none;color:var(--text);font-size:13.5px;cursor:pointer}
.dpop .dp-d:hover{border-color:var(--gold2)}
.dpop .dp-d.off{color:var(--muted)}
.dpop .dp-d.out{opacity:.4}
.dpop .dp-d.in{background:#dda92626;border-radius:6px}
.dpop .dp-d.end{background:#dda92655;border-radius:50%}
.dpop .dp-d.today{border-color:var(--gold);color:var(--gold2);font-weight:700}
.dpop .dp-d.sel{background:var(--gold);color:#111;font-weight:700;border-color:var(--gold)}
.dpop .dp-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:12px;color:var(--muted)}
.dpop .dp-foot button{min-height:30px;padding:2px 12px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--text);font-size:12.5px;cursor:pointer}
.dpop .dp-foot button:hover{border-color:var(--gold2)}
html[data-theme="light"] .dpop .dp-d.sel{color:#fff}
/* the 14-trade pop-up list */
.tm-wrap{position:relative}
.tmenu{position:absolute;z-index:40;left:0;top:100%;margin-top:4px;width:max(100%,330px);max-width:calc(100vw - 48px);display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:7px;background:var(--panel2);border:1px solid var(--gold);border-radius:10px;box-shadow:0 12px 30px #000b}
.tmenu[hidden]{display:none}
.tmenu button{display:flex;align-items:center;gap:8px;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font-size:13.5px;text-align:left;cursor:pointer}
.tmenu button:hover,.tmenu button:focus-visible{border-color:var(--gold2)}
.tmenu .dot{width:13px;height:13px;border-radius:50%;flex:none;border:1px solid #0008}
.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0}
.facts dt{color:var(--muted)}
.facts dd{margin:0;overflow-wrap:anywhere}
.facts a{color:var(--gold)}
.badge{display:inline-block;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;background:#22303f;color:#cfe}
.badge.late,.badge.due{background:var(--redbg);color:#ffb4ad;border:1px solid #ff5a4f77}
.badge.done{background:#163322;color:#9fe8be}
.badge.active{background:#2a2410;color:var(--gold2)}
.list{list-style:none;margin:0;padding:0}
.list li{padding:9px 0;border-bottom:1px solid var(--line2);display:flex;gap:10px;align-items:flex-start}
.list li .grow{flex:1;min-width:0}
.list .sub{color:var(--muted);font-size:12.5px}
.list .red{color:#ffb4ad}
.chg{font-variant-numeric:tabular-nums}
.chg s{color:#8a8476}
.warn{background:var(--redbg);border:1px solid #ff5a4f66;border-radius:10px;padding:10px 12px;margin:10px 0;color:#ffd6d2}
.calm{background:#10161e;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:10px 0;color:#cfc6b2}
.keybox{background:#05080c;border:1px dashed var(--gold);border-radius:10px;padding:10px;font:12.5px ui-monospace,Consolas,monospace;overflow-wrap:anywhere;user-select:all}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.tabs button{background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:6px 12px;cursor:pointer}
.tabs button.on{border-color:var(--gold);color:var(--gold2)}
.days7{display:flex;gap:6px;flex-wrap:wrap}
.days7 label{display:flex;align-items:center;gap:4px;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
.days7 input{min-height:auto}

.toast{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;z-index:60;pointer-events:none;
  background:#05080de6;border:1px solid #ca7a02aa;border-radius:999px;padding:9px 18px;transition:.25s;max-width:92vw}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:760px){
  :root{--label:118px;--lane:40px}
  .hide-s{display:none}
  .brand{font-size:13px;letter-spacing:.14em;margin:0 2px}
  .top{gap:4px;padding:6px 8px}
  .top .back{padding:7px 10px}
  .drawer{top:100px}
  .sheet{top:auto;height:88dvh;width:100vw;border-left:0;border-top:1px solid var(--line);border-radius:16px 16px 0 0}
  .sheet-body .grid2{grid-template-columns:1fr}
  .row.proj .lab{gap:4px;padding-left:2px}
  .row.proj .pbtn{padding:4px 3px}
  .row.proj .pbtn[data-act="add"]{font-size:18px;font-weight:700;color:var(--gold2)}   /* owner: the + is back on phones (the names column can slide wider now) */
  .row.proj .pname{font-size:12.5px}
  .ghead .corner{font-size:11px}
}

@media print{
  @page{size:landscape;margin:.4in}
  html,body{background:#fff;color:#111}
  .top,.toolbar,.drawer,.sheet,.sheet-back,.toast,.row .ord,.row.newlane,.pbtn{display:none!important}
  .app{height:auto}
  .main,.gwrap,.twrap{position:static;overflow:visible}
  .row .lab,.ghead .corner,.ghead,.row.proj .lab,.row.proj .trk,.tgrid .u{background:#fff!important;color:#111}
  .tgrid .u{box-shadow:none}
  .row.lane .lab .t{color:#111}
  .gscale span,.tgrid .h{color:#333}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---------- black and gold (matches the RUD Empire site) ---------- */
.top{background:#000;border-bottom:0;box-shadow:0 1px 0 #dda92666}
.top::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--goldline)}
.brand{font-size:16px;background:linear-gradient(180deg,#f7b31c 0%,#dda926 48%,#954a00 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand span{color:transparent}
.top .back{background:#000;border-color:#ca7a02aa;font-family:Georgia,serif}
.iconbtn{color:var(--gold2)}
.iconbtn:hover{border-color:#ca7a0288}
.pill{background:#000;border-color:#ca7a0288;color:var(--gold2)}
.toolbar{background:#000;border-bottom:1px solid #2a2110}
.seg{border-color:#ca7a02aa}
.seg button{color:var(--gold2);font-family:Georgia,serif;letter-spacing:.04em}
.zooms button{background:#000;border-color:#6a3f08;color:#efdcae;font-family:Georgia,serif}
.zooms button:hover{border-color:var(--gold)}
.zooms button.on{background:linear-gradient(180deg,#f7b31c 0%,#dda926 35%,#ca7a02 72%,#a66103 100%);color:#1a1206;border-color:#ca7a02}
.ghead,.ghead .corner{background:#000}
.ghead{border-bottom:1px solid #7a4a0c}
.ghead .corner{border-right:1px solid #7a4a0c;color:#b9a77f;font-family:Georgia,serif;font-style:italic}
.gscale span{border-left-color:#2a2110;color:#e0bf80}
.gscale .m{color:var(--gold2);font-family:Georgia,serif;letter-spacing:.08em}
.row .lab{background:#000;border-right:1px solid #7a4a0c;border-bottom-color:#1a150b}
.row .trk{border-bottom-color:#1a150b}
.row.proj .lab,.row.proj .trk{background:linear-gradient(180deg,#120e06,#050402)}
.row.proj .lab{border-bottom:1px solid #5a3404}
.row.proj .trk{border-bottom:1px solid #5a3404}
.row.proj .pname{font-family:Georgia,serif;color:var(--gold2);letter-spacing:.04em}
.row.lane .lab .t{color:#efdcae}
.row.newlane .lab{color:#6b5a3a}
.shade{background:#dda92608}
.shade.hol{background:#dda92616}
.todayline{background:linear-gradient(180deg,#f7b31c,#ca7a02);box-shadow:0 0 8px #dda926aa}
.drawer{background:#000;border-right:1px solid #7a4a0c}
.projlist li{border-bottom-color:#221b0e}
.menu{background:#000;border-color:#7a4a0c}
.menu button:hover{background:#15110a;color:var(--gold2)}
.sheet{background:#000;border-left:1px solid #7a4a0c;box-shadow:-20px 0 60px #000}
.sheet header{border-bottom:0;position:relative}
.sheet header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--goldline)}
.sheet h2{font:400 18px Georgia,serif;color:var(--gold2);letter-spacing:.04em}
.sheet-body h3{font-family:Georgia,serif;font-weight:400;letter-spacing:.2em}
.calm{background:#0a0805;border-color:#5a3404}
.list li{border-bottom-color:#221b0e}
input,select,textarea{background:#050403;border-color:#5a3404}
.btn{background:#000;border-color:#7a4a0c;color:#efdcae}
.btn.gold{color:#1a1206}
.badge{background:#1a150b;color:var(--gold2);border:1px solid #5a3404}
.tabs button{background:#000;border-color:#5a3404}
.auth{background:radial-gradient(ellipse at 50% 30%,#1f1405 0,#000 62%)}
.auth-card{background:#000;border-color:#ca7a0288}
.tproj h3{font-family:Georgia,serif;font-weight:400;color:var(--gold2);letter-spacing:.04em}
.tgrid .c{border:1px solid #00000080}
@media (max-width:760px){ .sheet{border-left:0;border-top:1px solid #7a4a0c} }
@media (max-width:760px){ .brand{font-size:12.5px;letter-spacing:.1em} }
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.photos figure{margin:0;background:#0a0805;border:1px solid #5a3404;border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.photos img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#111}
.photos figcaption{padding:6px 8px 0;font-size:12px;color:#efdcae;min-height:1.4em}
.photos figcaption span{display:block;color:#8a7a58;font-size:11px}
.photos .linkbtn{font-size:12px;align-self:flex-start;margin:0 8px 6px}
.banner{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:8px 12px;background:#2a1a04;border-bottom:1px solid #dda92666;color:#f7b31c;font-size:14px}
.mapwrap{position:absolute;inset:0;background:#0b0905}
/* phones: the names list that scrolls by itself when pulled out (owner 2026-12-02) */
.namespane{position:absolute;z-index:5;overflow-y:auto;overflow-x:hidden;background:var(--bg);touch-action:pan-y;overscroll-behavior:contain;
  border-right:1px solid #ca7a02aa;box-shadow:4px 0 10px #0008;scrollbar-width:none}
.namespane::-webkit-scrollbar{display:none}
.namespane .np-in{position:relative}
.namespane .np-item .lab,.namespane .np-item .u,.namespane .np-item h3{position:relative!important;box-shadow:none}
.namespane .np-item .u{z-index:auto}
.namespane .np-item.tproj h3{margin:0;display:flex;align-items:center;white-space:nowrap;overflow:hidden}
html[data-theme="light"] .namespane{background:var(--bg)}
/* trade colors (owner 2026-12-02): a small gold tab at the bottom left, behind the names tab; lifts into the color list */
.legtab{position:absolute;left:50%;transform:translateX(-50%);bottom:0;z-index:6;display:flex;align-items:center;gap:5px;padding:5px 12px 7px 14px;
  border-radius:12px 12px 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 13px var(--sans);box-shadow:0 -2px 8px #f7b31c55}
.legtab.open{bottom:min(46%,340px)}
.legpanel{position:absolute;left:0;right:0;bottom:0;z-index:8;height:min(46%,340px);overflow:auto;background:#0b0803f5;border-top:2px solid var(--gold);
  box-shadow:0 -8px 20px #000c;padding:8px 12px 14px;color:#e9dfc9}
.lp-head{display:flex;align-items:center;margin-bottom:8px}
.lp-head strong{color:#f7b31c;font-family:Georgia,serif;font-size:16px}
.lp-head .lp-close{margin-left:auto;background:none;border:1px solid #7a4a0c;color:#f7b31c;border-radius:999px;width:34px;height:28px;cursor:pointer}
.lp-list{display:flex;flex-wrap:wrap;gap:8px 14px}
.lp-list span{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.lp-list i{width:13px;height:13px;border-radius:3px;flex:none}
.lp-list b{font-weight:500}
html[data-theme="light"] .legpanel{background:#fffdf6f5;color:#2a2418}
/* license-plate cameras switch + markers */
.cambtn{display:flex;align-items:center;gap:6px;padding:6px 12px;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}
/* 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}
/* phones: Report police moves from the top right to a big button in the bottom-right corner (owner 2026-12-02) */
.polrep-b{display:none}
/* "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 .polrep,.polbox .camrep{display:none}
  .bigreps{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin-bottom:10px}
  .bigreps .cambtn.camrep{padding:9px 14px;font-size:14px;border-width:2px;box-shadow:0 3px 12px #000c}
  .cambtn.polrep-b{display:flex;padding:12px 18px;font-size:16px;border-width:2px;box-shadow:0 3px 12px #000c;margin-bottom:10px}
}
/* route planner (owner 2026-12-02): gold tab at the bottom of the map, lifts up into the stop list */
.routetab{position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:1001;display:flex;align-items:center;gap:6px;
  padding:6px 18px 8px;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 14px 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}
.routetab .rt-warn{font-style:normal;background:#b71c1c;color:#fff;border-radius:999px;padding:0 6px;font-size:12px}
.mapwrap.routing .routetab{bottom:min(58%,430px)}
.routepanel{position:absolute;left:0;right:0;bottom:0;z-index:1000;height:min(58%,430px);overflow:auto;background:#0b0803f5;border-top:2px solid var(--gold);
  box-shadow:0 -8px 20px #000c;padding:8px 12px 14px;color:#e9dfc9}
.rp-head{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.rp-head strong{color:#f7b31c;font-family:Georgia,serif;font-size:17px}
.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}
.rp-add input,.rp-add textarea{flex:1;min-width:0}
.rp-add{align-items:flex-start}
.rp-add textarea{min-height:44px;resize:vertical;font:inherit;font-size:15px}
.rp-go em{flex:none;margin-left:auto;font-style:normal;font-size:12px;color:#b9a77f;padding-left:6px}
.rp-drive .btn{flex:1 1 auto}
.rp-projs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}
.rp-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #7a4a0c;background:#0b0803;color:#e9dfc9;border-radius:999px;padding:4px 10px;font:inherit;font-size:13px;cursor:pointer}
.rp-chip i{width:10px;height:10px;border-radius:3px}
.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-go{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer;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-edit{flex:1;min-width:0;font-size:15px}
.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.done b{background:#7d8a6a;color:#fff;opacity:.8}
.rp-go b{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#f7b31c;color:#1a1206;font-size:12px}
.rp-go span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.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-btns{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.rp-tip,.rp-miss{font-size:12px;margin:6px 0 0}
.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}
html[data-theme="light"] .routepanel{background:#fffdf6f5;color:#2a2418}
html[data-theme="light"] .rp-chip{background:#fff;color:#2a2418}
.mapnote{position:absolute;left:10px;bottom:10px;z-index:500;max-width:min(420px,90vw);background:#000c;border:1px solid #7a4a0c;border-radius:10px;padding:8px 12px;font-size:13px;color:#efdcae}
.leaflet-popup-content{font:13px/1.45 system-ui,sans-serif;color:#111}
.leaflet-popup-content a{color:#8a5a00;font-weight:600}

/* practice copies ("what if") */
.ptag{display:inline-block;font:700 10px/1 system-ui,sans-serif;letter-spacing:.08em;color:#111;background:#f7b31c;border-radius:4px;padding:3px 5px;vertical-align:1px}
.row.practice .trk{background-image:repeating-linear-gradient(135deg,rgba(224,179,65,.07) 0 8px,transparent 8px 16px)}
.row.proj.practice .pname{color:#f7b31c;font-style:italic}

.planline{fill:var(--muted)}

/* The today line keeps its original yellow (owner: "except the yellow color for the schedule line") */
.todayline{background:linear-gradient(180deg,#fbe3a6,#d4a24c);box-shadow:0 0 8px #e2b867aa;opacity:.75}
html[data-theme="light"] .todayline{box-shadow:none}

/* Empire Schedules logo (owner's logo, 2026-11-30) */
.brand{display:flex;align-items:center;margin:0 4px;line-height:0}
.brand .logo{display:block;height:64px;width:auto}
.auth .crest{width:260px;margin:0 auto 14px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:760px){ .brand .logo{height:52px} .top{padding-top:4px;padding-bottom:4px} }

/* ---------- White background (Menu › White background; remembered on this phone) ---------- */
html[data-theme="light"]{
  --bg:#fff; --panel:#fff; --panel2:#f6f2e8; --line:#e0bf80; --line2:#ebe3d2;
  --text:#111; --muted:#5c5341; --gold:#954a00; --gold2:#703400; --red:#c62828; --redbg:#fdecea;
  --good:#1e7a46; --bad:#c62828; --green:#1e7a46; --remred:#b3261e; --remtext:#2b2418;
  --goldline:linear-gradient(90deg,#b8892f00,#b8892f 20%,#ca7a02 50%,#b8892f 80%,#b8892f00);
  color-scheme:light;
}
html[data-theme="light"] body{background:#fff;color:#111}
html[data-theme="light"] .top,html[data-theme="light"] .toolbar,html[data-theme="light"] .ghead,html[data-theme="light"] .ghead .corner,
html[data-theme="light"] .row .lab,html[data-theme="light"] .drawer,html[data-theme="light"] .menu,html[data-theme="light"] .sheet,
html[data-theme="light"] .auth-card,html[data-theme="light"] .top .back,html[data-theme="light"] .pill,html[data-theme="light"] .btn,
html[data-theme="light"] .tabs button,html[data-theme="light"] .zooms button,html[data-theme="light"] input,html[data-theme="light"] select,
html[data-theme="light"] textarea{background:#fff;color:#111}
html[data-theme="light"] .top{box-shadow:0 1px 0 #ca7a0288}
html[data-theme="light"] .toolbar{border-bottom-color:#ebe3d2}
html[data-theme="light"] .brand{background:linear-gradient(180deg,#ca7a02 0%,#954a00 55%,#703000 100%);-webkit-background-clip:text;background-clip:text}
html[data-theme="light"] .top .back,html[data-theme="light"] .pill{border-color:#ca7a02}
html[data-theme="light"] .seg{border-color:#ca7a02}
html[data-theme="light"] .zooms button{border-color:#e6cc95;color:#2b2418}
html[data-theme="light"] .zooms button.on,html[data-theme="light"] .seg button[aria-selected="true"]{color:#1a1206}
html[data-theme="light"] .ghead{border-bottom-color:#e0bf80}
html[data-theme="light"] .ghead .corner{border-right-color:#e0bf80;color:#5c5341}
html[data-theme="light"] .gscale span{border-left-color:#ebe3d2;color:#4b4335}
html[data-theme="light"] .row .lab{border-right-color:#e0bf80;border-bottom-color:#efe9dc}
html[data-theme="light"] .row .trk{border-bottom-color:#efe9dc}
html[data-theme="light"] .row.proj .lab,html[data-theme="light"] .row.proj .trk{background:linear-gradient(180deg,#faf5e8,#f1e9d6)}
html[data-theme="light"] .row.proj .lab,html[data-theme="light"] .row.proj .trk{border-bottom-color:#e6cc95}
html[data-theme="light"] .row.lane .lab .t{color:#111}
html[data-theme="light"] .row.newlane .lab{color:#8a7a58}
html[data-theme="light"] .shade{background:#0000000a}
html[data-theme="light"] .shade.hol{background:#dda92626}
html[data-theme="light"] .todayline{box-shadow:none}
html[data-theme="light"] .bar:focus-visible .body{stroke:#111}
html[data-theme="light"] .drawer,html[data-theme="light"] .sheet{border-color:#e0bf80;box-shadow:0 0 40px #0002}
html[data-theme="light"] .menu{border-color:#e0bf80;box-shadow:0 12px 40px #0003}
html[data-theme="light"] .menu button:hover{background:#f6f2e8;color:#703400}
html[data-theme="light"] .projlist li,html[data-theme="light"] .list li{border-bottom-color:#ebe3d2}
html[data-theme="light"] .sheet-back{background:#0004}
html[data-theme="light"] .btn{border-color:#ca7a02;color:#2b2418}
html[data-theme="light"] .btn.gold{color:#1a1206}
html[data-theme="light"] .btn.red{background:#fdecea;color:#8e1c16}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{border-color:#e0bf80}
html[data-theme="light"] .calm{background:#faf6ec;border-color:#e6cc95;color:#2b2418}
html[data-theme="light"] .warn{background:#fdecea;border-color:#e8a19b;color:#7a1a14}
html[data-theme="light"] .badge{background:#f3ecdc;color:#703400;border-color:#e6cc95}
html[data-theme="light"] .badge.late,html[data-theme="light"] .badge.due{background:#fdecea;color:#a3221b;border-color:#e8a19b}
html[data-theme="light"] .badge.done{background:#e4f4ea;color:#1e6b3e}
html[data-theme="light"] .list .red{color:#b3261e}
html[data-theme="light"] .keybox{background:#faf6ec}
html[data-theme="light"] .toast{background:#fffffff2;color:#111;box-shadow:0 6px 24px #0002}
html[data-theme="light"] .banner{background:#fbf1da;color:#703400;border-bottom-color:#ca7a02}
html[data-theme="light"] .mapwrap{background:#f3f0e8}
html[data-theme="light"] .mapnote{background:#fffffff0;color:#2b2418;border-color:#e0bf80}
html[data-theme="light"] .photos figure{background:#faf6ec;border-color:#e6cc95}
html[data-theme="light"] .photos figcaption{color:#2b2418}
html[data-theme="light"] .photos figcaption span{color:#6b5d40}
html[data-theme="light"] .auth{background:radial-gradient(ellipse at 50% 30%,#fbf3df 0,#fff 62%)}
html[data-theme="light"] .auth-card{border-color:#ca7a02;box-shadow:0 20px 60px #0002}
html[data-theme="light"] .row.proj.practice .pname{color:#954a00}
html[data-theme="light"] .tgrid .c{border-color:#0003}
html[data-theme="light"] details.guide{border-color:#e6cc95}
html[data-theme="light"] .gscale .d.today,html[data-theme="light"] .tgrid .h.today{color:var(--gold2)}

/* Help guide */
details.guide{border:1px solid var(--line,#2a2f38);border-radius:10px;padding:8px 12px;margin:6px 0}
details.guide summary{cursor:pointer;min-height:32px;display:flex;align-items:center;gap:8px}
details.guide ol{margin:6px 0 4px 20px;padding:0}
details.guide li{margin:3px 0}
/* Rules and notes (AI notebook) */
.nt-list li{align-items:flex-start;gap:8px}
.nt-text{white-space:pre-wrap;word-break:break-word}
.nt-add{margin:6px 0 14px}
.nt-add textarea,.nt-edit{width:100%;box-sizing:border-box;resize:vertical;min-height:52px}
.nt-add .row2{margin-top:6px;align-items:center}
.nt-add select{flex:1;min-width:0;width:auto}
/* owner 2026-12-01: only GOLD bars, one on the bottom and one on the right; the gray browser scroll bars are hidden
   (the board still scrolls with the wheel, by dragging, and with the gold bars) */
.gwrap,.twrap{scrollbar-width:none}
.gwrap::-webkit-scrollbar,.twrap::-webkit-scrollbar{width:0;height:0;display:none}
.vbar{position:absolute;top:0;right:0;bottom:28px;width:24px;margin:6px 4px 4px 0;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);touch-action:none;cursor:pointer;z-index:8}
.main:has(#vbar:not([hidden])) .gwrap,.main:has(#vbar:not([hidden])) .twrap{right:30px}
.main:has(#vbar:not([hidden])) .rangebar{right:30px}
.vb-win{position:absolute;left:2px;right:2px;min-height:26px;border-radius:999px;background:linear-gradient(90deg,#f7b31c,#ca7a02);opacity:.85;cursor:grab}
.vb-win:active,body.vmoving{cursor:grabbing}
.vb-h{position:absolute;left:0;right:0;height:12px;cursor:ns-resize}
.vb-h::after{content:"";position:absolute;left:4px;right:4px;top:5px;height:2px;border-radius:2px;background:#1a1206;opacity:.6}
.vb-h.t{top:0}.vb-h.b{bottom:0}
body.vmoving{user-select:none}
@media (max-width:760px){.vbar{width:22px;margin-right:3px}.main:has(#vbar:not([hidden])) .gwrap,.main:has(#vbar:not([hidden])) .twrap,.main:has(#vbar:not([hidden])) .rangebar{right:27px}}
/* the slide line between the trade names and the chart (owner: tuck the names away to work, peek when needed) */
.labgrip{position:absolute;width:22px;z-index:7;touch-action:none;cursor:ew-resize}
.labgrip::before{content:"";position:absolute;top:0;bottom:0;left:10px;width:2px;background:var(--gold);opacity:.55}
.labgrip .lg-knob{position:absolute;left:3px;top:50%;width:16px;height:46px;margin-top:-23px;border-radius:999px;
  background:linear-gradient(90deg,#ffe08a 0%,#f7b31c 30%,#ca7a02 80%,#a66103 100%);box-shadow:0 0 8px #f7b31c88;border:1px solid #7a4a0c}
.labgrip .lg-knob::after{content:"";position:absolute;left:5px;right:5px;top:14px;bottom:14px;border-left:2px solid #1a120699;border-right:2px solid #1a120699}
.labgrip:hover::before{opacity:1}
html.labthin .row .lab .ord, html.labthin .row .lab .t, html.labthin .row.proj .lab > :not(.sw){display:none}
html.labthin .row .lab{padding:0}
html.labthin .ghead .corner{font-size:0;padding:0}
@media print{.labgrip{display:none!important}}
/* Takt zoomed far out (months / a year): columns touch, boxes become thin colored strips */
@media (pointer:coarse){ .tproj{margin-bottom:10px} .tproj .tempty{margin:2px 0 0} }   /* less empty space between boards on a phone */
.tgrid.tiny{column-gap:0}
.tgrid.tiny .c{padding:0;border-radius:2px;border-width:0}
.tgrid.tiny .c span,.tgrid.tiny .c .tdot{display:none}
.tgrid.tiny .h{overflow:visible;white-space:nowrap;text-align:left;padding:2px 0 0}
/* Takt (owner: "everything from 7 to 12 on the Takt"): dates rows tuck away, unit names slide in */
html.headmin #takt .tgrid > .h,html.headmin #takt .tgrid > div:first-child{display:none}
html.tlabthin #takt .tgrid .u{font-size:0;padding:0}
html.tlabthin #takt .tgrid .u .tplus{display:none}
#takt .tlegend[hidden]{display:none}
/* the gold + that stays on screen when the top bar is tucked away (phone sideways) */
.addtab{display:none}
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  body:not(.bars-open) .addtab{display:flex;align-items:center;justify-content:center;position:fixed;right:calc(8px + env(safe-area-inset-right));top:4px;z-index:60;
    width:34px;height:30px;padding:0;border-radius:10px;border:1.5px solid var(--gold);background:#0b0803e6;color:#f7b31c;font-size:22px;font-weight:700;line-height:1;box-shadow:0 0 8px #f7b31c66;cursor:pointer}
}
/* the dates row's gold tab (push up = tuck the dates away, pull down = month peek) */
.hgrip{position:absolute;height:20px;z-index:9;touch-action:none;cursor:ns-resize;display:flex;justify-content:center;pointer-events:none}
.hgrip .hg-knob{pointer-events:auto;position:relative;top:-2px;display:flex;align-items:center;justify-content:center;gap:2px;width:58px;height:18px;border-radius:0 0 12px 12px;
  background:linear-gradient(180deg,#ffe08a 0%,#f7b31c 35%,#ca7a02 85%,#a66103 100%);box-shadow:0 2px 8px #f7b31c77;border:1px solid #7a4a0c;border-top:0;color:#1a1206;font-size:12px;line-height:1;font-weight:900}
.hgrip[data-mode="min"] .hg-up{display:none}
.hgrip[data-mode="peek"] .hg-dn{display:none}
html.headmin #gantt .gscale{height:0!important;overflow:hidden}
html.headmin #gantt .ghead .corner{height:0;overflow:hidden;padding:0;font-size:0}
html.headmin #gantt .ghead{border-bottom-width:2px}
.mpeek{position:absolute;z-index:8;max-height:62%;overflow:auto;background:#050402f2;border-bottom:2px solid var(--gold);box-shadow:0 8px 18px #000c;padding:6px 8px 10px}
.mp-top{display:flex;align-items:center;justify-content:center;gap:14px;color:#f7b31c;font-family:Georgia,serif;font-size:16px;margin:2px 0 6px}
.mp-nav{background:none;border:1px solid #7a4a0c;color:#f7b31c;border-radius:999px;width:32px;height:28px;font-size:18px;cursor:pointer}
.mp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.mp-w{text-align:center;font-size:11px;color:#b9a77f;padding-bottom:2px}
.mp-d{min-height:52px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:3px 4px;border:1px solid #2a2210;border-radius:6px;background:#0b0803;color:#e9dfc9;text-align:left;cursor:pointer;overflow:hidden;font:inherit}
.mp-d.we{background:#120e06}
.mp-d.today{border-color:var(--gold);box-shadow:0 0 6px #f7b31c88}
.mp-d b{font-size:12px;font-weight:700}
.mp-d.mp-x{background:transparent;border-color:transparent;cursor:default}
.mp-dots{display:flex;gap:2px;flex-wrap:wrap}
.mp-dots i{width:7px;height:7px;border-radius:2px;display:block}
.mp-n{font-size:10px;line-height:1.15;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d8c9a6}
.mp-more{font-size:10px;color:#b9a77f}
html[data-theme="light"] .mpeek{background:#efefecf2}
html[data-theme="light"] .mp-d{background:#f7f6f2;color:#2a2418;border-color:#d8cfb8}
html[data-theme="light"] .mp-d.we{background:#ebe7dc}
html[data-theme="light"] .mp-n{color:#5c5341}
@media print{.hgrip,.mpeek{display:none!important}}
@media print{.vbar{display:none!important}}
/* alarms in Needs attention (owner 2026-12-01) */
.alarm-add{margin:4px 0 16px}
.alarm-add #alText{width:100%;box-sizing:border-box}
.alarm-add .row2{margin-top:6px;align-items:center;flex-wrap:wrap}
.alarm-add select{flex:1;min-width:120px;width:auto}
/* ===== MORE GOLD (owner 2026-12-01, from his picture): glowing metallic gold for the slide bars, the Gantt/Takt/Map
   tabs, + UNIT, and gold dividing lines on the schedule. Logo golds only (#f7b31c #dda926 #ca7a02 #a66103);
   same shapes and sizes as before. The today line keeps its own yellow. ===== */
/* the slide bars: shiny gold with a bright glint in the middle and a soft glow */
.rb-win{opacity:1;background:radial-gradient(ellipse 18% 70% at 50% 45%,#fff6d0e6 0%,#fff6d000 100%),linear-gradient(180deg,#ffe08a 0%,#f7b31c 22%,#dda926 48%,#ca7a02 76%,#a66103 100%);
  box-shadow:0 0 10px #f7b31caa,0 0 2px #f7b31c,inset 0 1px 0 #fff3c0aa}
.vb-win{opacity:1;background:radial-gradient(ellipse 70% 18% at 45% 50%,#fff6d0e6 0%,#fff6d000 100%),linear-gradient(90deg,#ffe08a 0%,#f7b31c 22%,#dda926 48%,#ca7a02 76%,#a66103 100%);
  box-shadow:0 0 10px #f7b31caa,0 0 2px #f7b31c,inset 1px 0 0 #fff3c0aa}
.rangebar,.vbar{border-color:#ca7a0288;box-shadow:inset 0 0 6px #000c}
/* Gantt / Takt / Map: gold outline, gold dividers, the picked one solid gold with a glow */
.seg{border:1.5px solid var(--gold);box-shadow:0 0 8px #f7b31c44}
.seg button+button{border-left:1px solid #ca7a02}
.seg button[aria-selected="true"]{background:radial-gradient(ellipse 40% 60% at 50% 35%,#fff3c0aa 0%,#fff3c000 100%),linear-gradient(180deg,#ffe08a 0%,#f7b31c 22%,#dda926 48%,#ca7a02 76%,#a66103 100%);
  box-shadow:0 0 12px #f7b31c88;color:#1a1206;font-weight:700}
.zooms button{border-color:#ca7a02aa}
.zooms button.on{border-color:var(--gold2);box-shadow:0 0 8px #f7b31c55}
#filterSel{border-color:#ca7a02aa}
/* + UNIT and + PROJECT: thick glowing gold ring, gold letters */
.tgrid .uadd .tplus,.tnewproj .tplus{border:2.5px solid var(--gold2);color:#f7b31c;background:#0b0803;
  box-shadow:0 0 10px #f7b31c88,inset 0 0 8px #f7b31c33;text-shadow:0 0 6px #f7b31c66}
.tgrid .uadd .tplus:hover,.tnewproj .tplus:hover{box-shadow:0 0 16px #f7b31cbb,inset 0 0 10px #f7b31c55}
/* gold lines under the top bar and the toolbar */
.top{border-bottom:1px solid #ca7a02;box-shadow:0 1px 6px #f7b31c33}
.toolbar{border-bottom:1px solid #ca7a02}
/* TAKT: gold line under every unit, a thinner gold line between stacked levels, gold edge on the names column */
.tgrid .rl{border-bottom:1.5px solid #dda926cc;box-shadow:0 1px 4px #f7b31c33}
.tgrid .sl{border-bottom:1px solid #a6610399}
.tgrid .u{box-shadow:-14px 0 0 var(--bg),1.5px 0 0 #dda926aa}
.tgrid .u:not(.uadd){color:#f7b31c}
/* GANTT: gold lines between rows, a brighter gold line between projects, gold edge on the names column */
.row .trk,.row .lab{border-bottom-color:#a6610366}
.row.proj .trk,.row.proj .lab{border-bottom-color:#dda926aa}
.row .lab,.ghead .corner{border-right-color:#ca7a02aa}
.ghead{border-bottom:1px solid #dda926aa}
/* login: "Keep me signed in on this device" */
.keepin{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin:4px 0 6px;font-size:14px;cursor:pointer}
.keepin input{width:20px!important;height:20px;min-height:0!important;margin:0;padding:0;accent-color:#f7b31c;flex:none}
/* the small note after a hand move that also moved other trades (owner: small, not in the way) */
.movenote{position:fixed;left:50%;top:calc(8px + env(safe-area-inset-top));transform:translateX(-50%);z-index:61;max-width:min(560px,calc(100vw - 16px));
  display:flex;align-items:center;gap:6px;padding:6px 6px 6px 12px;border-radius:12px;background:#0b0803f2;border:1px solid var(--gold);
  box-shadow:0 4px 16px #000a,0 0 8px #f7b31c44;color:#e9dfc9;font-size:13px;line-height:1.3;animation:mnIn .18s ease-out}
.movenote .mn-t{flex:1;min-width:0}
.movenote strong{color:#f7b31c}
.movenote button{flex:none;background:transparent;border:1px solid #7a4a0c;color:#f7b31c;border-radius:999px;padding:4px 10px;font:inherit;font-weight:700;cursor:pointer;min-height:30px}
.movenote .mn-undo{background:linear-gradient(180deg,#f7b31c,#ca7a02);color:#1a1206;border-color:#ca7a02}
.movenote .mn-x{border:0;padding:4px 6px;color:#b9a77f}
@keyframes mnIn{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
html[data-theme="light"] .movenote{background:#fffdf6f2;color:#2a2418}
/* phones (owner): thinner, gentler gold lines; the row edge never lights the whole board up */
@media (pointer:coarse){
  /* owner: phones zoom with two fingers and slide with one, so no gold bars there (a laptop, even in a narrow window, keeps them) */
  .app .rangebar,.app .vbar{display:none!important}
  .app .main .gwrap,.app .main .twrap{bottom:0!important;right:0!important}
  .row .trk,.row .lab{border-bottom-color:#a6610340}
  .row.proj .trk,.row.proj .lab{border-bottom-color:#dda92660}
  .tgrid .rl{border-bottom:1px solid #dda92655;box-shadow:none}
  .tgrid .sl{border-bottom-color:#a6610344}
  .lanegrip{display:none}   /* a finger landing on a row's edge stretched every row instead of sliding/zooming */
}
/* white background: the same gold, a little deeper so it shows on white */
html[data-theme="light"] .tgrid .rl{border-bottom-color:#ca7a02}
html[data-theme="light"] .tgrid .uadd .tplus,html[data-theme="light"] .tnewproj .tplus{background:#fff;color:#a66103;text-shadow:none}
@media print{.tgrid .rl,.rb-win,.vb-win,.seg,.seg button[aria-selected="true"],.tgrid .uadd .tplus{box-shadow:none!important}}
/* the gold "Audio help" player in the top bar (owner 2026-12-01): a little player so people see there is audio;
   resting the mouse on it shows a cloud with the languages */
/* owner 2026-12-02: the phone must never zoom the page itself (a double tap or pinch pushed the gold bars off the screen);
   the gold bars are the zoom. No double-tap zoom anywhere, no pinch on the schedule. */
html{touch-action:pan-x pan-y}
.app .main{touch-action:pan-x pan-y}
/* the page itself never slides sideways: the schedule is the window, the gold bars its fixed trim (owner) */
html,body{overflow-x:hidden;max-width:100%}
.app{max-width:100vw;overflow:hidden}
/* "clip" can't be scrolled at all (not even by the phone bringing a box into view), so the bars never shift sideways */
@supports (overflow:clip){ html,body{overflow-x:clip} .app{overflow:clip} }
.app .top .brand{min-width:44px}
/* phones (upright, or sideways with the bars shown): every top-bar button fits on the screen (the logo shrinks a little if needed) */
@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .app .top{gap:2px;padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
  .app .top > *{flex:none}
  .app .top .brand{flex:0 1 auto;min-width:0;margin:0 2px}
  .app .top .brand .logo{height:auto;max-height:46px;max-width:100%}
  .app .top .spacer{flex:1 1 0;min-width:0}
  .app .top .iconbtn{padding:6px 7px;min-height:36px}
  .app .top .back{padding:4px 6px}
  .langbtn{position:relative;width:36px;height:36px;min-height:36px;padding:0;justify-content:center;margin-right:2px}
  .langbtn select{position:absolute;inset:0;width:100%;height:100%;opacity:0}
  .audiobtn{margin-right:2px}
  .app .top .hide-s{display:none}
  .audiobtn .ap-eq,.audiobtn .tipcloud{display:none}
  .audiobtn{padding:4px 8px 4px 4px}
}
/* phone turned sideways (owner 2026-12-02): only the schedule, starting at the dates; the gold tab shows the bars again */
.barstab{display:none}
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  body:not(.bars-open) .app .top, body:not(.bars-open) .app .toolbar{display:none}
  .app{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}   /* keep the names column out from under the camera notch */
  .barstab{display:flex;align-items:center;justify-content:center;position:fixed;left:calc(6px + env(safe-area-inset-left));top:4px;z-index:60;width:34px;height:30px;padding:0;
    border-radius:10px;border:1.5px solid var(--gold);background:#0b0803e6;color:#f7b31c;font-size:17px;font-weight:700;box-shadow:0 0 8px #f7b31c66;cursor:pointer}
  .barstab .bt-close{display:none}
  body.bars-open .barstab{top:auto;bottom:8px}
  body.bars-open .barstab .bt-open{display:none}
  body.bars-open .barstab .bt-close{display:inline}
  .app[hidden] ~ .barstab, body:has(.app[hidden]) .barstab{display:none}
}
.langbtn{display:inline-flex;align-items:center;gap:4px;min-height:38px;padding:2px 6px 2px 11px;margin-right:6px;border-radius:999px;cursor:pointer;
  background:#0b0803;border:1.5px solid var(--gold);color:#f7b31c;font-weight:700;font-size:13.5px;box-shadow:0 0 8px #f7b31c55}
.langbtn select{background:transparent;border:0;color:#f7b31c;font:inherit;font-weight:700;min-height:32px;padding:2px 4px;cursor:pointer;width:auto;box-shadow:none}
.langbtn select:focus{outline:none}
.langbtn option{background:#0b0803;color:#f7b31c}
.langbtn:hover{box-shadow:0 0 14px #f7b31c99}
.audiobtn{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:4px 14px 4px 5px;margin-right:4px;border-radius:999px;cursor:pointer;
  background:#0b0803;border:1.5px solid var(--gold);color:#f7b31c;font-weight:700;font-size:13.5px;box-shadow:0 0 8px #f7b31c55}
.audiobtn:hover,.audiobtn:focus-visible{box-shadow:0 0 14px #f7b31caa}
.audiobtn .ap-play{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:12px;padding-left:2px;color:#1a1206;
  background:linear-gradient(180deg,#ffe08a 0%,#f7b31c 22%,#dda926 48%,#ca7a02 76%,#a66103 100%);box-shadow:0 0 6px #f7b31c88}
.audiobtn .ap-eq{display:inline-flex;align-items:flex-end;gap:2px;height:16px}
.audiobtn .ap-eq i{display:block;width:3px;border-radius:2px;background:#dda926}
.audiobtn .ap-eq i:nth-child(1){height:6px}.audiobtn .ap-eq i:nth-child(2){height:12px}.audiobtn .ap-eq i:nth-child(3){height:16px}.audiobtn .ap-eq i:nth-child(4){height:10px}.audiobtn .ap-eq i:nth-child(5){height:5px}
@keyframes apEq{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}
.audiobtn:hover .ap-eq i{animation:apEq .8s ease-in-out infinite;transform-origin:bottom}
.audiobtn:hover .ap-eq i:nth-child(2){animation-delay:.15s}.audiobtn:hover .ap-eq i:nth-child(3){animation-delay:.3s}.audiobtn:hover .ap-eq i:nth-child(4){animation-delay:.45s}.audiobtn:hover .ap-eq i:nth-child(5){animation-delay:.6s}
/* the cloud */
.audiobtn .tipcloud{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%);z-index:80;width:260px;padding:10px 14px;border-radius:16px;
  background:var(--panel);border:1.5px solid var(--gold);box-shadow:0 10px 30px #000c,0 0 10px #f7b31c44;color:var(--text);font-weight:400;font-size:13px;text-align:center;
  display:flex;flex-direction:column;gap:4px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s}
.audiobtn .tipcloud::before{content:"";position:absolute;top:-8px;left:50%;width:14px;height:14px;transform:translateX(-50%) rotate(45deg);background:var(--panel);border-left:1.5px solid var(--gold);border-top:1.5px solid var(--gold)}
.audiobtn .tipcloud strong{color:#f7b31c;font-size:14px}
.audiobtn .tipcloud em{font-style:normal;color:#f7b31c;line-height:1.5}
.audiobtn:hover .tipcloud,.audiobtn:focus-visible .tipcloud{opacity:1;visibility:visible}
@media (max-width:760px){.audiobtn{padding:4px 8px 4px 4px}.audiobtn .ap-eq{display:none}.audiobtn .tipcloud{display:none}}
html[data-theme="light"] .audiobtn{background:#fff;color:#a66103}
/* the Audio instructions screen: big, simple buttons */
.aud-langs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 6px}
.aud-lang{min-height:38px;padding:6px 14px;border-radius:999px;border:1.5px solid #ca7a02aa;background:var(--panel2);color:var(--text);cursor:pointer;font-size:14px}
.aud-lang.on{border-color:var(--gold2);color:#1a1206;font-weight:700;background:linear-gradient(180deg,#ffe08a 0%,#f7b31c 22%,#dda926 48%,#ca7a02 76%,#a66103 100%);box-shadow:0 0 8px #f7b31c66}
.aud-list{display:flex;flex-direction:column;gap:6px}
.aud-topic{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:6px 14px 6px 6px;border-radius:14px;border:1px solid #ca7a0277;background:var(--panel2);color:var(--text);cursor:pointer;text-align:left;font-size:15px}
.aud-topic:hover{border-color:var(--gold2);box-shadow:0 0 8px #f7b31c44}
.aud-topic .aud-pl{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;padding-left:3px;color:#1a1206;font-size:14px;
  background:linear-gradient(180deg,#ffe08a 0%,#f7b31c 22%,#dda926 48%,#ca7a02 76%,#a66103 100%)}
@media print{.audiobtn{display:none!important}}
/* ===== LIGHT GRAY instead of white (owner 2026-12-01): the page is a very light gray, a little darker than the old
   gray lines, and the lines are darker so they still show. Menus, the side panel and boxes stay a touch lighter. ===== */
html[data-theme="light"]{--bg:#e4e4e1;--panel:#efefec;--panel2:#dcdcd8;--line2:#bdbdb8}
html[data-theme="light"] body,html[data-theme="light"] .top,html[data-theme="light"] .toolbar,html[data-theme="light"] .ghead,
html[data-theme="light"] .ghead .corner,html[data-theme="light"] .row .lab,html[data-theme="light"] .tgrid .u{background:#e4e4e1}
html[data-theme="light"] .drawer,html[data-theme="light"] .menu,html[data-theme="light"] .sheet,html[data-theme="light"] .auth-card{background:#efefec}
html[data-theme="light"] .btn:not(.gold):not(.red),html[data-theme="light"] .pill:not(.hot),html[data-theme="light"] .zooms button:not(.on),html[data-theme="light"] .top .back,
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea,html[data-theme="light"] .gscale .tw,
html[data-theme="light"] .tgrid .uadd .tplus,html[data-theme="light"] .tnewproj .tplus,html[data-theme="light"] .audiobtn,
html[data-theme="light"] .aud-topic,html[data-theme="light"] .aud-lang:not(.on){background:#f2f2ef}
/* darker lines */
html[data-theme="light"] .row .lab,html[data-theme="light"] .row .trk{border-bottom-color:#bdbdb8}
html[data-theme="light"] .gscale span{border-left-color:#bdbdb8}
html[data-theme="light"] .toolbar{border-bottom-color:#bdbdb8}
html[data-theme="light"] .projlist li,html[data-theme="light"] .list li{border-bottom-color:#c8c8c3}
html[data-theme="light"] .shade{background:#00000012}
html[data-theme="light"] .row.proj .lab,html[data-theme="light"] .row.proj .trk{background:linear-gradient(180deg,#ecebe6,#dfddd5)}
html[data-theme="light"] .tgrid .sl{border-bottom-color:#a6610366}
html[data-theme="light"] .tgrid .rl.alt{background:#0000000a}
html[data-theme="light"] .tgrid .u{box-shadow:-14px 0 0 #e4e4e1,1.5px 0 0 #ca7a02aa}
html[data-theme="light"] .auth{background:radial-gradient(ellipse at 50% 30%,#f1ede2 0,#e4e4e1 62%)}
html[data-theme="light"] .mapwrap{background:#e4e4e1}
/* the player's Voice list (owner 2026-12-01) */
.rdbar .rd-voice{max-width:210px}
@media (max-width:560px){.rdbar .rd-voice{max-width:150px}}

/* ---- owner 2026-12-02 (same as Empire Maps): ONE box at the top right (police line + Flock camera line);
        Report Flock camera bottom left, Report police bottom right ---- */
.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 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;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;margin-bottom:10px}
.cambtn.bigrep.camrep{color:#f8bbd0;border-color:#ec407a;background:#1a0710ee}
.cambtn.bigrep.polrep{color:#ff8a80;border-color:#b71c1c;background:#0b0803ee}
@media (max-width:760px), (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .leaflet-bottom.leaflet-left{bottom:44px}   /* above the Route 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}
/* 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 */
}
/* map layer switches in the Route panel, zoning labels, tape measure (owner 2026-12-02, same as Empire Maps) */
.rp-quick.rp-gis{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;padding:8px 0;border-top:1px solid #a6610366;border-bottom:1px solid #a6610366}
.tgl{flex:1 1 calc(50% - 6px);min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;border-radius:999px;border:1.5px solid #7a4a0c;background:#0b0803;color:#f7b31c;font:700 12.5px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;padding:3px 8px;line-height:1.1}
.tgl i{font-style:normal;font-size:11px;border-radius:999px;padding:0 6px;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}
.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 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 4px 16px #000a}
.measbar[hidden]{display:none}
.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 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer}
.measbar button:disabled{opacity:.4}
.measbar .mb-done{background:linear-gradient(180deg,#ffe08a,#f7b31c 40%,#ca7a02);color:#1a1206;border-color:#ca7a02}
#mapwrap.measuring #map{cursor:crosshair}
#mapwrap.measuring .leaflet-top.leaflet-right{display:none}
/* 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}

/* ---- round 19 (owner 2026-12-02: "make schedule map have same features as rudempiremaps") ---- */
/* the Route panel: drag-to-size on phones; on a computer a tab in the middle of the right edge, the panel slides in from the right */
.mapwrap.routing .routetab{bottom:var(--ph,min(58%,430px))}
.routepanel{height:var(--ph,min(58%,430px));container-type:inline-size;overscroll-behavior:contain}
.mapwrap.dragging,.mapwrap.dragging *{user-select:none;-webkit-user-select:none}
@media (min-width:761px){
  .routetab{left:auto;right:0;top:50%;bottom:auto;transform:translateY(-50%);writing-mode:vertical-rl;padding:18px 7px!important;border-radius:14px 0 0 14px;
    border:4px solid #000!important;border-right:0!important;box-shadow:-2px 0 10px #0006!important;gap:8px}
  .routetab .rt-n{padding:6px 0;width:22px;text-align:center}
  .mapwrap.routing .routetab{bottom:auto;right:var(--pw,260px)}
  .routepanel{left:auto;top:0;bottom:0;right:0;width:var(--pw,260px);height:auto;border-top:0;border-left:2px solid var(--gold);box-shadow:-8px 0 20px #000c;padding:12px 14px 16px}
  .mapwrap.routing .leaflet-right{right:var(--pw,260px)}
}
.rp-quick.rp-tools{display:flex;margin:8px 0 6px}
.rp-quick.rp-tools .tgl{flex:1 1 auto}
/* the Layers list: folding groups like a GIS layer list; a checked box is green, an unchecked one light red */
.routepanel .lyrs{margin:0 0 8px;padding:6px 0 8px;border-top:1px solid #a6610366;border-bottom:1px solid #a6610366}
.routepanel .lyr-title{font:700 11px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#b9a77f;margin:2px 2px 6px}
.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;border-radius:8px;color:#f7b31c;font:700 14px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;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 currentColor;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 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;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,.routepanel .lyrs .tgl.on 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 > span[aria-hidden]{font-size:14px}
.routepanel .lyrs #rpCams{display:contents}
.rp-wnote{font-size:11.5px;color:#b9a77f;margin:2px 6px 4px}
.flkey b{font-size:13px}
.routepanel .lyr-g.rp-world{display:none}
@media (min-width:761px) and (hover:hover){ .routepanel .lyr-g.rp-world{display:block} }
html[data-theme="light"] .routepanel .lyr-g > summary{color:#8a5a00}
html[data-theme="light"] .routepanel .lyr-g > summary:hover,html[data-theme="light"] .routepanel .lyrs .tgl:hover{background:#f3ead5}
html[data-theme="light"] .routepanel .lyrs .tgl{color:#2a2418}
html[data-theme="light"] .routepanel .lyrs .tgl.on{color:#111}
html[data-theme="light"] .routepanel .lyr-c{color:#2e7d32}
html[data-theme="light"] .rp-wnote,html[data-theme="light"] .routepanel .lyr-title{color:#7a6a48}
/* camera kinds, World markers */
.camdot.traffic b{background:#1565c0}
.camdot.other b{background:#546e7a}
.plane{background:none;border:0;overflow:visible}
.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}
.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}
.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}
.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}
.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}
/* 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}

/* "Move pin" (2026-12-02): button in a project's map bubble, the gold bar while choosing the spot, crosshair cursor */
.leaflet-popup-content .pinmove{all:unset;cursor:pointer;color:#8a5a00;font-weight:600;text-decoration:underline}
.leaflet-popup-content .pinmove-q{display:flex;gap:6px;margin-top:8px}
.leaflet-container.pinmoving,.leaflet-container.pinmoving .leaflet-interactive{cursor:crosshair}
.pinmovebar{position:absolute;left:50%;top:70px;transform:translateX(-50%);z-index:1200;display:flex;align-items:center;gap:10px;max-width:calc(100% - 24px);
  padding:8px 10px 8px 14px;border-radius:999px;background:#0b0803f2;border:1px solid #ca7a02;box-shadow:0 0 14px #f7b31c55;color:#f7e7c0;font:600 14px/1.25 system-ui,sans-serif}
.pinmovebar b{color:#f7b31c}
.leaflet-popup-content .pinmove-q .btn.ghost{color:#333;border-color:#999;background:#f2f2f2}
@media (max-width:760px){.pinmovebar{top:100px;border-radius:16px;width:calc(100% - 24px);justify-content:space-between}}

/* Training "Show me" (2026-12-02, computer only): gold arrow, gold ring on the spot, click ripple, control bar */
.tourbtn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:3px 10px;border-radius:999px;cursor:pointer;
  font:700 12px/1.2 system-ui,sans-serif;color:#1a1004;background:linear-gradient(180deg,#f7b31c 0%,#dda926 35%,#ca7a02 72%,#a66103 100%);box-shadow:0 0 8px #f7b31c55;white-space:nowrap}
.tourbtn:hover{filter:brightness(1.08)}
.tourbtn.big{padding:5px 12px;font-size:13px}
.aud-row{display:flex;gap:6px;align-items:center}
.aud-row .aud-topic{flex:1}
.tour-arrow{position:fixed;z-index:2147483600;width:42px;height:42px;margin:-2px 0 0 -4px;pointer-events:none;transition:left .9s cubic-bezier(.4,0,.2,1),top .9s cubic-bezier(.4,0,.2,1),transform .15s;filter:drop-shadow(0 3px 5px #000b)}
.tour-arrow svg{width:100%;height:100%}
.tour-arrow.press{transform:scale(.82)}
.tour-ring{position:fixed;z-index:2147483500;pointer-events:none;opacity:0;border:3px solid #f7b31c;border-radius:10px;box-shadow:0 0 0 4px #f7b31c44,0 0 22px #f7b31caa;transition:all .45s ease}
.tour-click{position:fixed;z-index:2147483599;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;border:3px solid #f7b31c;pointer-events:none;animation:tourclick .6s ease-out forwards}
@keyframes tourclick{to{transform:scale(4);opacity:0}}
.tourbar{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:2147483601;width:min(620px,calc(100% - 32px));padding:10px 14px 12px;border-radius:16px;
  background:#0b0803f5;border:1px solid #ca7a02;box-shadow:0 0 18px #f7b31c55,0 10px 30px #000c;color:#f7e7c0;font:14px/1.4 system-ui,sans-serif}
.tourbar .tb-top{display:flex;align-items:center;gap:10px}
.tourbar .tb-badge{font:700 11px/1 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#1a1004;background:#f7b31c;border-radius:999px;padding:4px 8px}
.tourbar .tb-t{flex:1;color:#f7b31c}
.tourbar .tb-n{color:#c9b68a;font-size:12px}
.tourbar .tb-line{margin:8px 0 10px;font-size:15px;min-height:2.8em}
.tourbar .tb-btns{display:flex;justify-content:center;gap:10px}
.tourbar .tb-btns button{all:unset;cursor:pointer;width:40px;height:34px;display:grid;place-items:center;border-radius:10px;border:1px solid #a66103;color:#f7b31c;font-size:15px}
.tourbar .tb-btns button:hover{background:#2a1d06}
.tourbar .tb-btns .tb-main{width:56px;background:linear-gradient(180deg,#f7b31c,#ca7a02);color:#1a1004;border-color:#f7b31c}
@media (max-width:760px),(hover:none){.tourbtn{display:none}}
/* the map keeps its layers to itself, so Help, Add and other side panels open on top of it (they were opening behind it) */
.mapwrap{isolation:isolate}
/* the Show me bar sits bottom-left, so it never covers the Add panel on the right */
.tourbar{left:16px;transform:none;width:min(560px,calc(100vw - 520px));min-width:300px}
/* owner: the lesson a little faster */
.tour-arrow{transition:left .6s cubic-bezier(.4,0,.2,1),top .6s cubic-bezier(.4,0,.2,1),transform .15s}
.eve-langs{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
/* owner: "x3 faster" */
.tour-arrow{transition:left .22s cubic-bezier(.4,0,.2,1),top .22s cubic-bezier(.4,0,.2,1),transform .1s}
.tour-ring{transition:all .18s ease}

/* the gold drag bar in the Show me and Audio help players (owner: "pause and move bar to rewind") */
.seekbar{-webkit-appearance:none;appearance:none;display:block;width:100%;height:22px;margin:0 0 8px;background:transparent;cursor:pointer}
.seekbar::-webkit-slider-runnable-track{height:6px;border-radius:9px;background:linear-gradient(90deg,#a66103,#f7b31c)}
.seekbar::-moz-range-track{height:6px;border-radius:9px;background:linear-gradient(90deg,#a66103,#f7b31c)}
.seekbar::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border-radius:50%;background:#f7b31c;border:2px solid #1a1004;box-shadow:0 0 8px #f7b31caa}
.seekbar::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#f7b31c;border:2px solid #1a1004;box-shadow:0 0 8px #f7b31caa}

/* owner: "make player less tall, spread the words and buttons": wider, the bar and buttons share one line */
.tourbar{width:min(780px,calc(100vw - 500px));min-width:340px;padding:7px 12px 8px}
.tourbar .tb-line{margin:4px 0 2px;min-height:0;font-size:14px;line-height:1.35}
.tourbar .tb-row{display:flex;align-items:center;gap:12px}
.tourbar .tb-row .seekbar{flex:1;margin:0}
.tourbar .tb-btns{gap:6px;flex:none}
.tourbar .tb-btns button{width:34px;height:28px;font-size:13px;border-radius:8px}
.tourbar .tb-btns .tb-main{width:46px}
/* two slim lines (owner: "takes up the screen") */
.tourbar{padding:5px 10px 6px;border-radius:12px}
.tourbar .tb-top{align-items:flex-start;gap:8px}
.tourbar .tb-badge{padding:3px 6px;font-size:12px;letter-spacing:0;margin-top:1px}
.tourbar .tb-top .tb-line{flex:1;margin:0;font-size:13.5px;line-height:1.3}
.tourbar .tb-n{white-space:nowrap;font-size:11px;margin-top:2px}
.tourbar .tb-row{margin-top:4px;gap:10px}
.tourbar .tb-t{flex:none;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;color:#c9a35a;font-weight:700}
.tourbar .tb-btns button{width:30px;height:24px;font-size:12px}
.tourbar .tb-btns .tb-main{width:40px}
.tourbar .seekbar{height:18px}

/* the gold "Show me" button in the top bar (owner: "needs to be up here, very visible"), computer only */
.showbtn{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:4px 16px 4px 6px;margin-right:6px;border-radius:999px;cursor:pointer;
  color:#1a1004;font:800 15px/1 system-ui,-apple-system,Segoe UI,sans-serif;letter-spacing:.02em;border:1.5px solid #f7b31c;
  background:linear-gradient(180deg,#f7b31c 0%,#dda926 35%,#ca7a02 72%,#a66103 100%);box-shadow:0 0 12px #f7b31c88,inset 0 1px 0 #fff3;animation:smGlow 2.4s ease-in-out infinite}
.showbtn .sm-ic{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#0b0803;font-size:15px}
.showbtn:hover,.showbtn:focus-visible{filter:brightness(1.08);box-shadow:0 0 20px #f7b31ccc}
@keyframes smGlow{0%,100%{box-shadow:0 0 10px #f7b31c66,inset 0 1px 0 #fff3}50%{box-shadow:0 0 20px #f7b31ccc,inset 0 1px 0 #fff3}}
@media (prefers-reduced-motion:reduce){.showbtn{animation:none}}
@media (max-width:760px),(hover:none){.showbtn{display:none!important}}
/* the list it opens */
.sm-list{display:grid;gap:8px;margin:10px 0}
.sm-item{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:14px;cursor:pointer;
  border:1px solid #a66103;background:linear-gradient(180deg,#1c1407,#0e0a03);color:#f7e7c0;font:600 15px/1.25 system-ui,sans-serif}
.sm-item:hover,.sm-item:focus-visible{border-color:#f7b31c;box-shadow:0 0 12px #f7b31c55}
.sm-item .sm-n{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:50%;background:#f7b31c;color:#1a1004;font-weight:800;font-size:13px}
.sm-item .sm-tt{flex:1}
.sm-item .sm-go{font-size:18px}
html[data-theme="light"] .sm-item{background:#efefec;color:#2a1d06}
/* owner: "slow down x2", then 2026-12-02 "slow down the video a bit" */
.tour-arrow{transition:left .7s cubic-bezier(.4,0,.2,1),top .7s cubic-bezier(.4,0,.2,1),transform .15s}
.tour-ring{transition:all .5s ease}
