:root{
  --bg:#0d1110; --panel:#161c19; --panel2:#1f2826; --line:#2b3a33;
  --text:#eef3ef; --muted:#93a89b; --accent:#7ac74f; --warn:#ffb454; --bad:#ff6b6b;
  /* v2.9.0-inc4: the layout editor's drop marker — BLUE = a row of its own, ORANGE = within a row (a column) */
  --ovrow:#4da3ff; --ovcol:#ffa53d;
  /* v2.8.3 (owner 2026-09-29: "I can't be blocked by phone things that block screen views!") — the phone's SAFE AREA
     (a notch or camera cutout, rounded corners, the home indicator) in ONE place. index.html asks for the whole screen
     (viewport-fit=cover), so the page itself keeps every control out of these strips: the page's own edges and every
     fullscreen view (tests/test_safe_area_e2e.py drives a simulated cutout through the browser's real env()). */
  --sat:env(safe-area-inset-top,0px); --sar:env(safe-area-inset-right,0px);
  --sab:env(safe-area-inset-bottom,0px); --sal:env(safe-area-inset-left,0px);
}
*{box-sizing:border-box}
[hidden]{display:none !important}
/* LINKS ARE TOOLKIT GREEN, never browser blue. Default blue is the one colour the app uses
   nowhere else, so it reads as foreign against the dark panels — and browser-visited purple is
   worse. Lowest possible specificity, so anything setting its own colour (.lanbar a, buttons
   styled as links) still wins. */
a{color:var(--accent)}
a:visited{color:var(--accent)}
a:hover{text-decoration:underline}
/* Adaptive root font: never smaller than today's 16px, grows fluidly to 20px on big/4K screens so
   text stays readable on any display. EVERYTHING sized in rem/em scales from this one value. */
html{-webkit-text-size-adjust:100%;font-size:clamp(1rem, .875rem + .16vw, 1.25rem)}   /* rem here = the browser's own text size */
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);color:var(--text);font-size:1rem;line-height:1.4;
  padding-bottom:var(--sab)}

.expbar{background:repeating-linear-gradient(45deg,#3a2a00,#3a2a00 .75rem,#332600 .75rem,#332600 1.5rem);
  color:var(--warn);font-weight:700;font-size:.78rem;text-align:center;padding:.45rem max(.7rem,var(--sar)) .45rem max(.7rem,var(--sal));border-bottom:1px solid var(--warn)}

header{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;
  /* reserve the top safe-area (notch / status bar) so the header — and everything below it — stays in the
     visible screen and never hides under a notch or the OS bar */
  padding:calc(.7rem + var(--sat)) max(1rem,var(--sar)) .7rem max(1rem,var(--sal));
  background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:.5rem;font-weight:700}
.brand .logo{height:1.0625rem;width:auto}
.brand .brandsub{color:var(--accent)}
.picker{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
/* header pickers + per-tab mower selectors: width relative to the page so a mower/location name is not clipped */
#device,#locpick,select.tabmower{width:clamp(9.375rem,60vw,26rem);max-width:100%;text-overflow:ellipsis}
select{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.5rem .6rem;font-size:1rem;min-width:min(100%,9.375rem);max-width:100%}
.conn{font-size:.75rem;padding:.2rem .55rem;border-radius:999px;font-weight:600}
.conn.on{background:rgba(122,199,79,.16);color:var(--accent)} .conn.off{background:rgba(255,107,107,.14);color:var(--bad)} .conn.stale{background:rgba(255,180,84,.16);color:var(--warn)}

.lanbar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;background:var(--panel);border-bottom:1px solid var(--line);padding:.5rem max(1rem,var(--sar)) .5rem max(1rem,var(--sal));color:var(--muted);font-size:.85rem}
.lanbar a{color:var(--accent);font-family:monospace;text-decoration:none}
/* leftover-mow banner: the mower holds an unfinished job and may resume it by itself */
.pendtask{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;background:#3a2a00;border-bottom:1px solid var(--line);padding:.5rem max(1rem,var(--sar)) .5rem max(1rem,var(--sal));color:#ffd77a;font-size:.9rem}
.pendtask .btn{flex:0 0 auto}

/* v2.9.2: the tab row sticks UNDER the sticky header (--hdrH, measured by app.js _stickTops). Both stuck at top:0 and
   the opaque header covered the tab row as soon as the page scrolled, on every screen. */
.tabs{display:flex;gap:.2rem;padding:.4rem max(1rem,var(--sar)) 0 max(1rem,var(--sal));overflow-x:auto;-webkit-overflow-scrolling:touch;position:sticky;top:var(--hdrH,0rem);background:var(--bg);z-index:4}
.tab{background:transparent;color:var(--muted);border:none;border-bottom:2px solid transparent;padding:.6rem .9rem;font-size:.95rem;cursor:pointer;white-space:nowrap}
.tab.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}

/* Edge-to-edge: the app uses the FULL window width on big screens (no 1000px cap), with responsive
   side padding. Text-heavy single-column tabs (Logs/Settings) keep a readable max-width so their rows
   don't stretch across an ultrawide; the Overview (map/camera/cards) and Remote stay full-bleed. */
main{padding:.25rem max(clamp(1rem, 2vw, 2.5rem),var(--sar)) 1rem max(clamp(1rem, 2vw, 2.5rem),var(--sal))}   /* the first panel sits right under the tab strip (owner) */
#tab-logs, #tab-settings{max-width:72rem; margin-inline:auto}
.sech{margin:1.4rem 0 .4rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
/* Overview panels flow into columns on wide/ultrawide screens (minimize scroll), 1 column on mobile.
   Section headers span the full width; panels never split across a column break. */
.ovcols{column-width:21.25rem;column-gap:1rem}
.ovcols>.sech{-webkit-column-span:all;column-span:all;margin-top:1rem}
.ovcols>.panel{-webkit-column-break-inside:avoid;break-inside:avoid}
.ovcols>.panel[hidden]{display:none}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:.875rem;padding:.9rem 1rem;margin-bottom:1rem}
.panel h2,.panel h3{margin:.1rem 0 .7rem;font-size:1rem}
.panel summary{cursor:pointer;color:var(--muted);font-size:.95rem}
/* Advanced Data tab — collapsible items (Mowing history, Diagnostics, Logs) */
.advitem{margin-bottom:.6rem}
.advitem>summary{font-size:1rem;font-weight:600;color:var(--text);padding:.15rem 0}
.advitem[open]>summary{margin-bottom:.6rem;border-bottom:1px solid var(--line);padding-bottom:.5rem}
.logctls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.2rem 0 .7rem}
/* v2.9.2 Keep for (days) beside each log's switch: the field shows a whole 3-digit number at any text size */
.keepfor{display:inline-flex;align-items:center;gap:.35em;white-space:nowrap;margin:.2rem 0}
.keepfor input{width:4.5em;max-width:100%}
.rowbetween{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.sub{color:var(--muted);font-size:.85rem;margin:.2rem 0 .7rem}

/* compact cards so the Overview doesn't scroll forever: tighter padding/fonts. Flexbox (not grid)
   so the whole ROW of cards CENTERS — incl. a partial last row. (Grid's auto-fill made phantom
   full-width tracks, so justify-content:center had no effect and the row sat left-justified.) */
.cards{display:flex;flex-wrap:wrap;justify-content:center;gap:.55rem}
/* DASHBOARD (v2.7.0) — the tiles above the map */
.dash{padding:.55rem .8rem .6rem;isolation:isolate}   /* its own stacking context: the light (z-index 7 from the camera overlay) and the action buttons stay UNDER the sticky tab strip when scrolling (owner) */
.dashhead .ovled, .fleetmowername .ovled, .dashact{z-index:auto}
.dashhead{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.dashtoggle{background:transparent;border:0;color:var(--text);font-size:1.05rem;font-weight:700;cursor:pointer;padding:.2rem .3rem;border-radius:.5rem}
.dashtoggle:hover{background:var(--panel2)}
.dashhead .ovled{position:static;transform:none}
.dashbody{margin-top:.45rem}
/* v2.9.0 (owner: "the dashboard tiles should stretch to the width of the screen … the ones with more information in them
   can occupy more width while the ones with little info can be smaller"): every line of tiles is FILLED; a tile's weight
   --w (1-3, app.js _dashCards: how much it says) sets its starting width and its share of the room left in its line.
   Measured against the old fixed 10rem tiles: shorter at every width (phone 540 -> 508 px, desktop 201 -> 168 px). */
#dash .cards{justify-content:stretch}
/* v2.9.1 (owner: "I should not be seeing text go outside their tiles or containers!"): a tile is never narrower than its
   longest word (min-width:auto = its min-content) and never wider than its row (max-width:100%, which also caps that
   minimum); text wraps at spaces, and only a word longer than the whole row (a WiFi network name) is broken, inside the
   tile (break-word — "anywhere" let a tile shrink until a position broke between its digits) */
#dash .card{flex:var(--w,1) 1 calc(3rem + 3.5rem*var(--w,1));min-width:auto;max-width:100%}
#dash .card, #dash .card h3, #dash .card .val, #dash .card .sub{overflow-wrap:break-word}
/* Minimal: one line per tile — the title and the value; its details are in the tile's tip */
.dashminlab{display:inline-flex;align-items:center;gap:.3rem;color:var(--muted);font-size:.85rem;margin-left:auto;cursor:pointer}
/* Minimal: title and value side by side while they fit, the value on its own line when they do not — never run out of
   the tile (v2.9.1: both were nowrap, so a position or a long German title left the tile) */
#dash.dashmin .card{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.45rem;row-gap:.1rem;padding:.3rem .6rem;flex:1 1 auto}
#dash.dashmin .card h3{margin:0}
#dash.dashmin .card .val{font-size:1rem}
#dash.dashmin .card .sub, #dash.dashmin .card .bar, #dash.dashmin .card .pbar{display:none}   /* title + value only */
.cards.strip{justify-content:flex-start;gap:.4rem}
.cards.strip .card{flex:0 1 9.375rem;padding:.35rem .5rem}
.cards.strip .card .val{font-size:1.05rem}
.dashbody .card.pick{cursor:pointer}
.dashbody .card.pick.sel{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
.dashrow{border:1px solid var(--line);border-radius:.75rem;padding:.45rem .6rem;background:var(--panel);margin-top:.5rem}
.dashrowhead{display:flex;align-items:center;gap:.45rem}
.dashrowtoggle{background:transparent;border:0;color:var(--text);font-size:1rem;font-weight:600;cursor:pointer;padding:.15rem .25rem;border-radius:.5rem;display:inline-flex;align-items:center;gap:.4rem}
.dashrowtoggle:hover{background:var(--panel2)}
.dashrow .cards{margin-top:.4rem}
@media (max-width:560px){ .cards.strip .card .sub{display:none} .cards.strip .card{flex:0 1 calc(50% - .3rem)} }
.empty{flex:1 1 100%;color:var(--muted);text-align:center;padding:1.5rem}
.card{flex:0 1 10rem;background:var(--panel);border:1px solid var(--line);border-radius:.6875rem;padding:.5rem .6rem}
.card h3{margin:0 0 .2rem;font-size:.68rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);display:flex;gap:.3rem;align-items:center}
.card .val{font-size:1.2rem;font-weight:700;line-height:1.1}
.card .sub{margin:.15rem 0 0;font-size:.72rem;color:var(--muted)}
.card.good .val{color:var(--accent)} .card.warn .val{color:var(--warn)} .card.bad .val{color:var(--bad)}
.bar{height:.4375rem;border-radius:.375rem;background:var(--panel2);margin-top:.5rem;overflow:hidden}.bar>span{display:block;height:100%;background:var(--accent)}

.btns{display:flex;flex-wrap:wrap;gap:.5rem}
.btn{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.625rem;padding:.6rem 1rem;font-size:.95rem;cursor:pointer;min-height:2.625rem}
/* v2.8.3 SHARED CONTROLS: a few controls live both on the pages AND inside the camera boxes (the docked map toggles, the
   camera telemetry pill, the popup's keep-alive switch, the small camera buttons). Their rules here are rem on the root;
   inside a camera box the camera's own rules size the SAME control in camera units (F2-A, increment 12: .camwrap
   .btn.small, .overlaytoggles.ovdock .btn/.toggle/.trailswatch, .cvkeep .slider, .camscale .camtelbar), more specific. */
.btn:hover{border-color:var(--accent)} .btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent} .btn.small{padding:.35rem .6rem;min-height:0;font-size:.82rem}
.btn.block{width:100%} .btn.danger{border-color:var(--bad);color:var(--bad)} .btn.danger:hover{background:rgba(255,107,107,.12)}
.segbtns{display:inline-flex;border:1px solid var(--line);border-radius:.625rem;overflow:hidden}
.segbtns .segbtn{background:var(--panel2);color:var(--muted);border:0;border-left:1px solid var(--line);padding:.5rem .9rem;font-size:.9rem;cursor:pointer;min-height:2.375rem}
.segbtns .segbtn:first-child{border-left:0}
.segbtns .segbtn:hover{color:var(--text)}
.segbtns .segbtn.on{background:var(--accent);color:#0b140b;font-weight:600}
.rcbladebtns .segbtn{padding:.4rem .75rem}
@media (max-width:560px){ .rcbladebtns .segbtn{padding:.4rem .55rem;font-size:.85rem} }

.kvwrap{display:block;max-width:60rem}   /* keep key/value rows readable even in a full-width panel */
.kv{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;border-bottom:1px solid var(--line)}
.kv:last-child{border-bottom:none}
.kv .k{color:var(--muted);display:flex;gap:.35rem;align-items:center}.kv .v{font-weight:600;text-align:right;word-break:break-word}
/* mow history list (recent + full-history modal) */
.mowtot1{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;align-items:baseline}   /* 3 lifetime totals on one line (wraps only on very narrow screens) */
.mowtot1 .mtv{font-weight:700}
.mowtot1 .mtk{color:var(--muted);font-size:.9rem}
.mowlisthead{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.mowlist{display:block;max-width:60rem}
/* Mowing-history export row (range + Copy/CSV/TXT), mirrors the RTK-log export controls */
.mowexport{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.2rem 0 .7rem}
.mowexlbl{font-weight:600;font-size:.85rem;margin-right:.15rem}
.mowexcustom{display:inline-flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.mowexport select,.mowexport input[type=date]{padding:.25rem .35rem}
/* busy feedback so the slow export can't be double-clicked and the user sees it working */
.mowexport .btn:disabled{opacity:.55;cursor:default}
.mowexport .btn.busy::before{content:"";display:inline-block;width:.7em;height:.7em;margin-right:.35em;
  border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;
  animation:mowexspin .7s linear infinite}
@keyframes mowexspin{to{transform:rotate(360deg)}}
.mrow{padding:.5rem 0;border-bottom:1px solid var(--line)}
.mrow:last-child{border-bottom:none}
.mrow-top{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.mrow-date{font-weight:600}
.mrow-mid{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-top:.2rem;color:var(--muted)}
.mmeta{white-space:nowrap;text-align:right;flex:0 0 auto}
.mzones{word-break:break-word}
.mstatus{font-size:.78rem;font-weight:700;padding:.1rem .5rem;border-radius:1rem;white-space:nowrap}
.ms-ok{color:#0a7c2f;background:rgba(16,160,64,.14)}
.ms-int{color:#b06a00;background:rgba(224,160,0,.16)}
/* zone disclosure: stack names, custom +/- marker (no comma overflow) */
.mzdet{display:inline-block}
.mzdet>summary{cursor:pointer;list-style:none;user-select:none}
.mzdet>summary::-webkit-details-marker{display:none}
.mzdet>summary::before{content:"+ ";font-weight:700;color:var(--accent,#2f81f7)}
.mzdet[open]>summary::before{content:"– "}
.mzstack{margin:.25rem 0 .1rem .9rem}
.mzitem{padding:.1rem 0}
/* full-history modal */
/* .modalbox (max-width:min(560px,94vw)) is declared LATER in this file, so a bare .histbox/.fcbox
   rule loses to it at equal specificity and both modals silently rendered at 560px — narrow and
   needlessly tall. Qualifying with .modalbox raises specificity so the intended width wins
   regardless of source order. */
.modalbox.histbox{max-width:44rem;width:min(44rem,92vw);max-height:86vh;display:flex;flex-direction:column}
.histmodalhead{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.5rem}
#histall{overflow-y:auto;flex:1 1 auto}
/* per-code auto-resume modal (group B) — 80% of the viewport, body scrolls, header/footer pinned */
.modalbox.fcbox{max-width:88vw;width:88vw;max-height:86vh;display:flex;flex-direction:column}
@media (max-width:900px){ .modalbox.fcbox{max-width:96vw;width:96vw;max-height:92vh} }
.fccats{display:flex;flex-direction:column;gap:.35rem;margin:.4rem 0}
.fccat{display:grid;grid-template-columns:auto 1fr auto auto;gap:.6rem;align-items:center;
       background:var(--panel2);border:1px solid var(--line);border-radius:.625rem;padding:.5rem .7rem}
.fccat .fcicon{font-size:1.1rem}
.fccat .fctitle{font-weight:600;min-width:0}
.fccat .fcstate{font-size:.85rem;color:var(--muted);white-space:nowrap}
.fccat .fcstate.some{color:var(--good)}
.fchow{background:var(--panel2);border:1px solid var(--line);border-radius:.625rem;padding:.6rem .7rem;
       font-size:.87rem;line-height:1.45;margin-bottom:.6rem}
.fcsub{position:sticky;top:0;background:var(--panel);padding:.5rem 0 .25rem;font-weight:600;
       font-size:.9rem;color:var(--muted);border-bottom:1px solid var(--line);z-index:1}
.fctools{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.2rem 0 .6rem}
.fctools input[type=search]{flex:1 1 12rem;min-width:8rem;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.45rem .6rem}
.fcsetall{display:flex;align-items:center;gap:.4rem;white-space:nowrap}
.fcsetall input{width:4.5rem;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.35rem .4rem}
.fcrows{overflow-y:auto;flex:1 1 auto;border-top:1px solid var(--line)}
/* On a wide screen the rows flow into two columns. One row per line in an 88vw box would strand each
   toggle a long way from the label it belongs to, AND make the modal needlessly tall — the height is
   driven by the row count, so using the width is what actually shortens it. Subcategory headers span
   both columns so the grouping still reads. */
@media (min-width:1100px){
  .fcrows{display:grid;grid-template-columns:1fr 1fr;column-gap:1.6rem;align-content:start}
  .fcrows .fcsub{grid-column:1/-1}
}
@media (min-width:1700px){
  .fcrows{grid-template-columns:1fr 1fr 1fr}
}
/* PHONE. The row is name + code + toggle + retries; at 360px that is four things fighting for the
   width, and the retry box is the one that gets crushed. Drop the code chip onto the second line with
   the controls, keep the name on its own line, and give the tools bar full-width stacking so the
   filter box does not shrink to nothing. */
@media (max-width:560px){
  .fcrow{grid-template-columns:1fr auto auto;grid-template-areas:"name name name" "code toggle tries";
         row-gap:.3rem;padding:.55rem .2rem}
  .fcrow .fcname{grid-area:name}
  .fcrow .fccodes{grid-area:code;align-self:center}
  .fcrow > label.toggle{grid-area:toggle}
  .fcrow .fctries{grid-area:tries;width:4.6rem}
  .fcrow .fclocked{grid-area:tries;justify-self:end;align-self:center}
  .fctools{gap:.4rem}
  .fctools input[type=search]{flex:1 1 100%}
  .fcsetall{flex:1 1 100%;justify-content:space-between}
  .fccat{grid-template-columns:auto 1fr;row-gap:.3rem}
  .fccat .fcstate{grid-column:2;justify-self:start}
  .fccat .fcgo{grid-column:1/-1;justify-self:stretch}
}
.fcsec{position:sticky;top:0;background:var(--panel);padding:.55rem 0 .3rem;font-weight:600;border-bottom:1px solid var(--line);z-index:1}
.fcrow{display:grid;grid-template-columns:1fr auto auto auto;gap:.6rem;align-items:center;padding:.45rem .2rem;border-bottom:1px solid var(--line)}
.fcrow .fcname{min-width:0}
.fcrow .fccodes{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.82rem;color:var(--muted);white-space:nowrap}
.fcrow input[type=number]{width:4.2rem;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.3rem .4rem}
.fcrow.locked{opacity:.72}
.fcrow .fclocked{font-size:.82rem;color:var(--bad);white-space:nowrap}
.fcrow[hidden]{display:none}
.histfoot{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:.6rem}
.kvgroup{margin:.5rem 0;border:1px solid var(--line);border-radius:.5rem;padding:.3rem .7rem}
.kvgroup-h{color:var(--accent);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;margin:.3rem 0;font-weight:600}
.q-good{color:var(--accent);font-weight:700}.q-warn{color:var(--warn);font-weight:700}.q-bad{color:var(--bad);font-weight:700}
.camwrap{position:relative;background:#000;border-radius:.75em;overflow:hidden;aspect-ratio:16/9;margin:.5rem 0;display:flex;align-items:center;justify-content:center;
  /* v2.8.3 (K2c): a size container — the camera controls' "narrow" rules follow the BOX's own layout width. Viewport
     @media rules fired on an upright phone in the sideways view (the box is 844 wide there): the mini-map grew to 42%
     of it and covered the stick, Off, Dock and Cancel. */
  container-type:inline-size;container-name:camwrap;
  /* v2.8.3 (F2-A, owner O-13): ONE unit per camera surface. camScale() sets --camu from the box's measured SHORT side
     (layout space) on the fullscreen views and the Home Assistant card; every control inside is a multiple of it, so
     it is the same share of the box on every screen — and exactly today's size at the reference phone (844x390).
     Without it (the windowed Remote / popup, an unfocused grid tile) it is 1rem: today's look. */
  font-size:var(--camu,1rem)}
.camwrap img,.camwrap video{width:100%;height:100%;object-fit:contain;background:#000}
/* WiFi camera: a <video-rtc> (MSE, non-Windows — its own <video> plays the stream) OR a <canvas>
   sibling (WebCodecs, Windows). Both carry class .camvid; fill the frame and letterbox. */
.camwrap .camvid{width:100%;height:100%;display:block;background:#000}
.camwrap .camvid[hidden]{display:none}
.camwrap canvas.camvid{object-fit:contain}                     /* the WebCodecs canvas */
.camwrap .camvid video{width:100%;height:100%;object-fit:contain;background:#000}   /* video-rtc's inner <video> */
.camwrap.fs .camvid,.camwrap.pseudofs .camvid{width:100%;height:100%}
.camwrap:fullscreen .camvid{width:100vw;height:100vh;height:100dvh}
.camstatus{position:absolute;top:calc(var(--camu,1rem)*.5);left:calc(var(--camu,1rem)*.6);background:rgba(0,0,0,.6);color:var(--accent);padding:.2rem .6rem;border-radius:calc(var(--camu,1rem)*.375);font-size:clamp(.465rem,1.8vmin,.6rem);font-weight:600}   /* v2.8.3-inc6: 25% smaller (owner) */
/* Remote camera OFF: a centered "touch to start camera" replaces the scroll-down Start button (owner).
   Sized to the device (clamp on vw) so it fits any phone; hidden the moment the camera is live. */
.camstart{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;text-align:center;
  cursor:pointer;color:#fff;font-weight:700;font-size:clamp(1rem,4.5vw,1.7rem);letter-spacing:.02em;padding:1rem;
  background:rgba(0,0,0,.38);text-shadow:0 1px .3125rem rgba(0,0,0,.85);-webkit-tap-highlight-color:transparent}
.camstart.hidden{display:none}
.camfs{position:absolute;right:calc(var(--camu,1rem)*.5);bottom:calc(var(--camu,1rem)*.5);z-index:4;background:rgba(0,0,0,.55);
  line-height:1}
/* in fullscreen the toggle hides (✕ Exit leaves, the centered ⛶ returns to REAL fullscreen) —
   same rule the remote's .camfsbtn already follows; both labels showing at once confused (2026-08-24) */
.camwrap.fs .camfs{display:none}
/* height uses dvh (dynamic viewport height) so mobile browser chrome (URL bar) doesn't get
   counted — 100vh would extend behind the bar and clip the camera. vh first as a fallback. */
.camwrap:fullscreen{width:100vw;height:100vh;height:100dvh;aspect-ratio:auto}
.camwrap:fullscreen img{width:100vw;height:100vh;height:100dvh;object-fit:contain}
.camwrap.pseudofs{position:fixed;top:0;left:0;z-index:100;width:100vw;height:100vh;height:100dvh;max-width:100vw;aspect-ratio:auto;border-radius:0}
.camwrap.pseudofs img{width:100%;height:100%;object-fit:contain}
/* rotate-to-fullscreen (landscape + camera on): cover the viewport, keep joystick on top */
.camwrap.fs{position:fixed;top:0;left:0;z-index:1000;width:100vw;height:100vh;height:100dvh;max-width:100vw;aspect-ratio:auto;border-radius:0;margin:0}
.camwrap.fs img{width:100%;height:100%;object-fit:contain}
/* LED quick-toggle: colored glow when on, gray frame when off (upper-left, no scrolling) */
.camled{position:absolute;top:calc(var(--camu,1rem)*.5);left:calc(var(--camu,1rem)*.6);z-index:7;
  width:calc(var(--camu,1rem)*2.125);height:calc(var(--camu,1rem)*2.125);border-radius:50%;
  border:2px solid rgba(255,255,255,.5);background:rgba(0,0,0,.45);font-size:var(--camu,1rem);line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;padding:0;filter:grayscale(1) opacity(.6);
  transition:border-color .15s,background .15s,box-shadow .15s,filter .15s,opacity .15s}   /* never the SIZE: camLayout measures it (F2-A) */
.camled.unknown{border-style:dashed;opacity:.8}
/* v2.11.0: Map-editing button + picker + banner on the camera overlay */
.rcmapbtn{position:absolute;top:50%;left:calc(var(--camu,1rem)*.6);transform:translateY(-50%);z-index:9;
  width:calc(var(--camu,1rem)*2.125);height:calc(var(--camu,1rem)*2.125);border-radius:50%;
  border:2px solid rgba(255,255,255,.5);background:rgba(0,0,0,.55);font-size:var(--camu,1rem);line-height:1;cursor:pointer;
  display:none;align-items:center;justify-content:center;padding:0}
.camwrap.camlive .rcmapbtn{display:flex}
/* v2.14.4 (owner: "in remote mode on a mobile device there is no ability to edit my zones … Find a better place for it"):
   fullscreen = the EXIT ROW, left of ✕ Exit / ⊞ Grid / ⛶, with one stick or two — camLayout measures --cammapr/--cammapt
   from them. It sat lower-left (v2.13.1), which the left stick owns, so two sticks hid it outright and Remote options,
   the only other way in, is not on a phone's fullscreen screen. */
.camwrap.fs .rcmapbtn{left:auto;right:var(--cammapr,calc(var(--camu,1rem)*8));top:var(--cammapt,calc(var(--camu,1rem)*.5));bottom:auto;transform:none}
.camwrap.twosticks:not(.fs) .rcmapbtn{display:none}   /* windowed, two sticks fill the sides — Remote options is right below */
.camwrap.rchide-mapedit .rcmapbtn{display:none!important}   /* Show on camera: Edit Map button turned off */
.rcmapbtn.on{border-color:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.5)}
.rcmapbanner[hidden]{display:none}
.rcmapbanner{position:absolute;left:50%;top:calc(var(--camu,1rem)*3.2);transform:translateX(-50%);z-index:1002;
  background:rgba(12,14,16,.94);border:1px solid rgba(22,163,74,.75);border-radius:.6rem;padding:.4rem .6rem;
  display:flex;align-items:center;gap:.5rem;max-width:92cqw;flex-wrap:wrap;justify-content:center}
/* while recording a map shape, the mow controls (blades, Start/Dock) step aside so the banner is clear */
.camwrap.maprec .rcfsblades,.camwrap.maprec .rcfstask{display:none!important}
.rcmapbanner .rcmaptext{color:#fff;font-size:.85rem;flex:1 1 12rem;min-width:0}
/* the section mirror */
#rcmapSecBody .rcmapstatus{display:flex;flex-direction:column;gap:.4rem}
.camled.sending{animation:ledpulse .8s ease-in-out infinite}
@keyframes ledpulse{0%,100%{box-shadow:0 0 0 0 rgba(255,211,61,.0)}50%{box-shadow:0 0 .625em .1875em rgba(255,211,61,.6)}}
.ovled{position:static;width:1.625rem;height:1.625rem;font-size:.9rem;margin-left:.5rem;vertical-align:middle;display:inline-flex;align-items:center;justify-content:center}
.camled.on{border-color:#ffd33d;background:rgba(255,211,61,.2);box-shadow:0 0 .75em 2px rgba(255,211,61,.7);filter:none}
/* v2.8.3 (F2-A): the status pill sits right of the 💡 by MEASUREMENT (camLayout sets --camstatx from the light's own
   right edge) — never a reserved 3.2rem that the light could outgrow */
#camwrap .camstatus{left:var(--camstatx,calc(var(--camu,1rem)*3.2))}
/* the popup Camera view shows its 💡 only in fullscreen/landscape — shift the status pill right of it
   there too (both sat at the same top-left spot, so the icon overlapped the status text) */
.cvwrap.fs .camstatus,.cvwrap:fullscreen .camstatus{left:var(--camstatx,calc(var(--camu,1rem)*3.2))}
/* live position mini-map (upper-right, above the controls) */
.minimap{position:absolute;top:calc(var(--camu,1rem)*.5);right:calc(var(--camu,1rem)*.5);z-index:7;width:clamp(7.5rem,26vmin,13.125rem);aspect-ratio:4/3;
  border-radius:calc(var(--camu,1rem)*.5);overflow:hidden;border:2px solid rgba(255,255,255,.6);box-shadow:0 2px .625em rgba(0,0,0,.55);
  pointer-events:auto;background:#0d1117}
.camwrap > .minimap{max-width:var(--cammmw,none)}   /* camLayout: clear of the stick below it */
.minimap.mmrow .mmctrls{flex-direction:row}         /* ...and a map that short lays its +/- side by side */
.minimap.mmnoroom{display:none}                     /* ...and one with no room for even that is not drawn (camLayout) */
.minimap.hidden{display:none}
/* Reopen button for the mini-map (upper-right): tap the thumbnail to close it, tap this to bring it back. */
.minimapbtn{position:absolute;top:var(--fsr-top,calc(var(--camu,1rem)*.5));right:calc(var(--camu,1rem)*.5);z-index:8;background:rgba(0,0,0,.55);
  line-height:1}
.minirobot{filter:drop-shadow(0 0 .25em rgba(0,0,0,.85)) drop-shadow(0 0 .375em rgba(0,229,255,.5))}
.minimap .leaflet-control-container{display:none}
/* mini-map zoom (+/-) overlaid on the map (top-left) + a drag-to-resize grip in the lower-left
   corner. They live INSIDE the map box so they track it as it's resized. Shared by the Remote
   camera and the Overview popup; visible whenever the map itself is shown. */
.minimap .mmctrls{position:absolute;top:calc(var(--camu,1rem)*.3);left:calc(var(--camu,1rem)*.3);right:auto;bottom:auto;z-index:1000;
  display:flex;flex-direction:column;gap:calc(var(--camu,1rem)*.3)}
.mmbtn{width:max(1.5rem,calc(var(--camu,1rem)*1.875));height:max(1.5rem,calc(var(--camu,1rem)*1.875));border-radius:calc(var(--camu,1rem)*.5);border:1px solid #2b3340;background:rgba(0,0,0,.6);
  color:#e6edf3;font-size:calc(var(--camu,1rem)*1.15);line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;
  user-select:none;touch-action:manipulation}
.mmbtn:hover{background:rgba(0,0,0,.85)}
.minimap .mmgrip{position:absolute;left:calc(var(--camu,1rem)*.125);bottom:calc(var(--camu,1rem)*.125);width:var(--camu,1rem);height:var(--camu,1rem);z-index:1000;cursor:nesw-resize;
  border-radius:calc(var(--camu,1rem)*.1875);touch-action:none;pointer-events:auto;
  background:linear-gradient(45deg,transparent 0 42%,rgba(255,255,255,.75) 42% 52%,transparent 52% 60%,rgba(255,255,255,.75) 60% 70%,transparent 70%)}
/* Overview popup camera: the light only shows in fullscreen / landscape (the position map carries
   its own controls and is itself hidden unless fullscreen). */
.cvwrap .camled{display:none!important}
.cvwrap.fs .camled,.cvwrap:fullscreen .camled{display:flex!important}
@container camwrap (max-width:520px){.minimap{width:42%;top:calc(var(--camu,1rem)*.4);right:calc(var(--camu,1rem)*.4)}.camled{width:calc(var(--camu,1rem)*1.875);height:calc(var(--camu,1rem)*1.875)}}
@supports not (container-type:inline-size){
  @media (max-width:520px){.minimap{width:42%;top:.4rem;right:.4rem}.camled{width:1.875rem;height:1.875rem}}
}
/* ---- Remote tab fit-on-one-screen: DESKTOP/MOUSE ONLY (pointer:fine). On a phone/tablet (touch) the
   camera goes TRUE fullscreen on landscape via the orientation handler — width is irrelevant there — so
   none of this height-capping / 2-column layout applies to touch (px is the wrong signal for that). The
   :not(.fs):not(.pseudofs) guard is critical: it stops the cap from shrinking a fullscreen camera. ---- */
@media (pointer:fine){ #tab-remote .camwrap:not(.fs):not(.pseudofs){max-height:58dvh} }
@media (pointer:fine) and (max-height:760px){ #tab-remote .camwrap:not(.fs):not(.pseudofs){max-height:50dvh} }
@media (pointer:fine) and (max-height:600px){
  #tab-remote .camwrap:not(.fs):not(.pseudofs){max-height:42dvh}
  #tab-remote .prow{margin:.25rem 0}
  #tab-remote .panel{padding:.6rem .8rem}
  #tab-remote .rchint{display:none}
}
@media (pointer:fine) and (min-width:860px){
  #tab-remote{display:grid;grid-template-columns:minmax(0,1fr) minmax(18.75rem,23.75rem);gap:1rem;align-items:start}
  #tab-remote > section{margin-bottom:0}
  /* v2.9.0: the camera options became their own section — still under the camera, Mower settings still on the right */
  #tab-remote > #rccam, #tab-remote > #rcopts{grid-column:1}
  #tab-remote > #rcset{grid-column:2;grid-row:1 / span 2}
  #tab-remote > #rcmap{grid-column:1 / -1}   /* v2.11.0: Map editing — new, so at the bottom, full width */
}
#tab-remote.ovcustom{display:block}   /* arranged by the owner: rows (app.js ovApply), not the grid above */
.camwrap.fs .joyoverlay{opacity:.92}

/* ── FULLSCREEN CAMERA: keep the controls off the picture ──────────────────────────────────────
   --pillar / --letter are the real black bars, measured in JS from the stream's own dimensions
   against the element (object-fit:contain), so these adapt to any phone and any stream shape
   instead of assuming one.

   THE EXIT ROW IS RESERVED: --fsr-top is the height of the row .camexitfs (top:.5rem right:.5rem) sits
   in, and everything else pinned near the top starts below it — the .minimap in the right corner and
   the blade-speed row (.rcfsblades, a centered row at the top: see its own rule further down). The
   reservation exists because the blades were once a column on the right edge rising from the bottom,
   and with five buttons Eco covered Exit. The max-height / wrap-reverse below are that column's cap;
   for today's single row they only matter if the row ever wraps (a second line then stays under
   the Exit row, never over it). */
.camwrap.fs, .camwrap.pseudofs, .camwrap:fullscreen{--fsr-top:calc(var(--camu,1rem)*3.1)}   /* camLayout: MEASURED from ✕ Exit */
.camwrap.fs .minimap, .camwrap.pseudofs .minimap, .camwrap:fullscreen .minimap{top:var(--fsr-top)}
.camwrap.fs .rcfsblades, .camwrap.pseudofs .rcfsblades, .camwrap:fullscreen .rcfsblades{
  max-height:calc(100% - var(--fsr-top) - var(--rcfsbbot,12.5em));flex-wrap:wrap-reverse}
/* Dock the overlay toggles INSIDE the left black bar when there is enough of one to hold them; a
   stream that fills the width leaves them exactly where they were. */
/* min(38vw, …) is NOT redundant: the 38vw cap is what keeps this panel off the CENTERED telemetry
   bar (the WiFi/4G occlusion reported in v1.42.1-inc1), and a very wide screen showing a narrow
   stream can hand us a pillar wider than that. Docking must never re-open a fixed bug. */
.camwrap.fs.haspillar .overlaytoggles.ovdock{left:calc(var(--camu,1rem)*.375);
  max-width:min(38vw,calc(var(--pillar) - var(--camu,1rem)*.75));max-width:min(38cqw,calc(var(--pillar) - var(--camu,1rem)*.75))}

/* Idle auto-hide: after a few seconds without a touch the picture is unobstructed, and any touch
   brings the controls straight back — the way every video player behaves.
   WHAT NEVER HIDES: Exit and the live telemetry line. The blade buttons fade WITH the rest (owner's
   choice; they were once kept visible as a stop control) — any touch brings them straight back, and
   while a stick is held they are hidden anyway (.joyactive, below). This is presentation only — the
   camera heartbeat that gates the blades keeps running while the controls are invisible. */
.camwrap.fs .overlaytoggles.ovdock, .camwrap.fs .rcfsbar, .camwrap.fs .rcfstask, .camwrap.fs .rcfsblades, .camwrap.fs .rcmapbtn{transition:opacity .35s ease}
.camwrap.fs.camidle:not(.campin) .overlaytoggles.ovdock,
.camwrap.fs.camidle:not(.campin) .rcfsbar,
.camwrap.fs.camidle:not(.campin) .rcfstask,
.camwrap.fs.camidle:not(.campin) .rcfsblades,
.camwrap.fs.camidle:not(.campin) .rcmapbtn{opacity:0;pointer-events:none}   /* Edit Map fades with the rest of the controls on idle, identical to them (v2.11.0-inc20, owner) */
.ovpin{margin-top:calc(var(--camu,1rem)*.35);align-self:flex-start;font-size:calc(var(--camu,1rem)*.75);opacity:.85}
/* In camera FULLSCREEN nothing else may overlay the view — hide the floating control bar (z1200) and the
   add-to-home banner so the live feed + joystick own the whole screen (this was the bottom 'bullshit'). */
body.camfs-lock{overflow:hidden}
body.camfs-lock .floatbar{display:none !important}
/* compact telemetry top-bar (centered pill) — on the map overlay + fullscreen cameras */
.mapwrap{position:relative}
/* Overview + Remote: everything inside the map / camera box (telemetry pill, light, overlay toggles, legend, link
   segment, task strip) stacks INSIDE the box, so none of it can ride over the sticky header when the page scrolls.
   Fullscreen boxes are position:fixed and meant to cover everything, so they are excluded. */
.mapwrap:not(.fs){isolation:isolate}
.camwrap:not(.fs):not(.pseudofs){isolation:isolate}
.telbar{position:absolute;top:.4rem;left:50%;transform:translateX(-50%);z-index:6;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.15rem .7rem;max-width:94%;line-height:1;
  background:rgba(0,0,0,.62);border:1px solid rgba(255,255,255,.18);border-radius:1rem;
  padding:.26rem .75rem;font-size:clamp(.6rem,2.4vmin,.8rem);color:#e6edf3;box-shadow:0 2px .5rem rgba(0,0,0,.45);pointer-events:none}
.telbar:empty{display:none}   /* the MAP's pill only — a camera's bar is never empty (updateTelemetryBar says "No readings yet") */
/* each group (sensors / status+progress) stays on its own line; status+progress drop to row 2 on phones */
.telbar .tb-row{display:inline-flex;align-items:center;gap:.7rem;white-space:nowrap}
.telbar .tb-st{font-weight:600}
.telbar .tb-prog{font-weight:600}
.telbar .tb-batt{display:inline-flex;align-items:center;gap:.3rem;font-variant-numeric:tabular-nums}
.telbar .tb-batt.good{color:#3fb950}.telbar .tb-batt.warn{color:#d29922}.telbar .tb-batt.bad{color:#f85149}
.telbar .tb-bw{position:relative;width:.8125rem;height:1.25rem;border:1.6px solid currentColor;border-radius:.1875rem;display:inline-block;overflow:hidden}
.telbar .tb-bw::after{content:"";position:absolute;top:-.2125rem;left:50%;transform:translateX(-50%);width:.375rem;height:2px;background:currentColor;border-radius:1px}
.telbar .tb-bf{position:absolute;left:0;bottom:0;width:100%;background:currentColor}
/* ⚡ charging, on the battery chip (v1.45.1). Always the charging YELLOW, never the battery's
   good/warn/bad color: at 12% the chip is red, and "red lightning" reads as a fault when it is
   actually the good news that the mower is on the charger. */
.telbar .tb-chg{color:#f2c744;margin-left:.1rem;line-height:1;font-size:.85em}
.telbar .tb-ico{display:inline-flex;align-items:center}
.telbar .tb-cell{font-weight:700;font-size:.74rem;letter-spacing:.02em}
.telbar .tb-rtk{display:inline-flex;align-items:center;gap:.2rem;font-variant-numeric:tabular-nums}
.telbar .tb-rtk .tb-acc{color:#e6edf3}   /* only the pin is color-coded; keep the number readable */
.telbar .tb-green{color:#3fb950}.telbar .tb-orange{color:#d29922}.telbar .tb-red{color:#f85149}.telbar .tb-grey{color:#8b949e}
/* camera bars show only in fullscreen / landscape (like the light + map controls) */
/* v2.14.9 (owner 2026-11-07: "Readings bar should always be on for mowers cameras! That includes grid mode (fleet mode)
   individual mower cameras, and in remote control!"): the readings show on EVERY camera surface in EVERY state — the
   Remote camera, a mower's camera window, every grid tile; starting, live or off; windowed or fullscreen. It never
   fades and has no off switch (Show on camera no longer lists it). Before any reading arrives it says so. */
.camtelbar{display:flex}
.camwrap > .camtelbar{top:var(--camteltop,calc(var(--camu,1rem)*.4));left:var(--camtelx,50%);max-width:var(--camtelmax,94%);
  width:var(--camtelw,auto)}   /* camLayout; placed off the middle it is max-content: a box centered by left + translateX(-50%) shrinks to the room right of its anchor and wraps */
/* v2.8.3-inc6 (owner 2026-09-29: "Modals look fine it is the other floating data that is crazy ... like 25% smaller"): the
   camera's floating DATA — the telemetry pill (and the status line above) — is 25% smaller; the controls are unchanged.
   The map's pill (.maptelbar) and the grid tiles' header row (.tiletel) are not floating over a picture and keep theirs. */
.camtelbar:not(.tiletel){font-size:clamp(.45rem,1.8vmin,.6rem);padding:.2rem .56rem;gap:.11rem .53rem}
.camtelbar:not(.tiletel) .tb-row{gap:.53rem}
/* v2.8.3-inc6 (owner 2026-09-29: "The exit and light are also a little too far to the left and right they need brought in
   so they are easily selectable"): in fullscreen, ✕ Exit and 💡 sit 4% of the camera box's OWN width further in — away
   from a phone's rounded corners and notch, where a thumb misses. cqw = the camera box's layout width, so it is right
   under the sideways (.rot) view too; camLayout measures the moved buttons (the status line follows the light). */
.camwrap.fs .camexitfs{right:calc(var(--camu,1rem)*.5 + 4cqw)}
.camwrap.fs .camled{left:calc(var(--camu,1rem)*.6 + 4cqw)}
.camexitfs{position:absolute;top:calc(var(--camu,1rem)*.5);right:calc(var(--camu,1rem)*.5);z-index:1001;background:rgba(0,0,0,.55)}
/* v2.8.3 (F2-A): every small button on a camera surface in camera units — the size .btn.small gives them today
   (.82rem text, .35rem .6rem padding) at the reference phone. The per-button font/padding lines this replaces
   (.camfs, .camfsbtn, .minimapbtn, .refsbtn) never applied: .btn.small outranked them. */
.camwrap .btn.small,.camtile .btn.small{font-size:calc(var(--camu,1rem)*.82);padding:calc(var(--camu,1rem)*.35) calc(var(--camu,1rem)*.6);
  border-radius:calc(var(--camu,1rem)*.625);min-height:1.5rem}   /* the tap floor: never below 24 px at the root */
.camwrap.fs .camexitfs{display:block}
/* Remote camera "go fullscreen" button — you could only reach fullscreen by rotating to landscape.
   BOTTOM-LEFT on purpose: the joystick owns bottom-right (.joyoverlay), the mini-map top-right, and the
   status bar top-center. Only while the feed is live and NOT already fullscreen (Exit covers that). */
/* Return-to-fullscreen: shown ONLY while the camera view is up but REAL browser fullscreen is not
   (phones lose it to the keyboard, a notification, an accidental swipe — anything). Sits where the
   fullscreen button lives (that button hides in .fs), and deliberately NOT in the camidle fade
   list: the way back must never fade away. */
/* THE WAY BACK (⛶): in the EXIT ROW, left of ⊞ Grid and ✕ Exit — camLayout measures --camrefst/--camrefsr from them,
   and the telemetry pill, the mini-map and the blade row make room for it. History: every corner and edge is owned by
   some control, and hand-placed spots buried the ⛶ three times (bottom-left inc3, top-row inc4, popup bottom-left
   v1.51.2), so it went to the CENTER of the picture — where the owner, driving, had it in the middle of the view build
   after build (v2.8.3, browser2.png: "the [] in the middle of the screen"). The Exit row is the one row every surface
   already keeps clear, and a MEASURED place cannot collide (tests/test_fs_layout_hittest.py). It shows only on a phone or
   tablet, only after real fullscreen was left (app.js _realFsTouch, _realFsSync), and never fades. */
.refsbtn{position:absolute;display:none;top:var(--camrefst,calc(var(--camu,1rem)*.5));right:var(--camrefsr,calc(var(--camu,1rem)*5.2));
  z-index:3000;background:rgba(0,0,0,.55);line-height:1;
  border:1px solid rgba(255,255,255,.5)}
.camwrap.fs.refsneed .refsbtn{display:block}
.camfsbtn{position:absolute;bottom:calc(var(--camu,1rem)*.5);left:calc(var(--camu,1rem)*.5);z-index:8;display:none;
  background:rgba(0,0,0,.55);line-height:1}
.camwrap.camlive .camfsbtn{display:block}
.camwrap.fs .camfsbtn,.camwrap:fullscreen .camfsbtn,.camwrap.pseudofs .camfsbtn{display:none}
/* camera-link (Auto/WiFi/4G) chip inside the camera — only shown in fullscreen, where the settings row is
   hidden. Bottom-LEFT corner: clear of the telemetry bar (top-center), LED/status (top-left),
   Exit (top-right) and the Fullscreen button (bottom-right). */
/* .camwrap ancestor is LOAD-BEARING, not decoration: v1.47.1's blade-speed picker added a bare
   `.segbtns{display:flex}` later in this file — same specificity as a bare `.camsrc-fs`, so the
   later rule won and this chip showed OUTSIDE fullscreen too, parked exactly on top of the ⛶
   fullscreen button (field report 2026-08-24: no visible way into fullscreen on desktop). The
   extra class outranks any bare utility rule; the .camwrap.fs show-rule below still outranks this. */
.camwrap .camsrc-fs{position:absolute;bottom:calc(var(--camu,1rem)*.5);left:calc(var(--camu,1rem)*.5);z-index:1001;display:none;
  gap:calc(var(--camu,1rem)*.4);border-radius:calc(var(--camu,1rem)*.625)}
.camwrap.fs .camsrc-fs,.camwrap:fullscreen .camsrc-fs,.camwrap.pseudofs .camsrc-fs{display:inline-flex}
.camsrc-fs .segbtn{background:rgba(0,0,0,.55);color:#cfe8c4;padding:calc(var(--camu,1rem)*.3) calc(var(--camu,1rem)*.7);
  min-height:max(1.5rem,calc(var(--camu,1rem)*2));font-size:calc(var(--camu,1rem)*.8);border-radius:calc(var(--camu,1rem)*.5)}
.camsrc-fs .segbtn.on{background:var(--accent);color:#0b140b}
/* joystick overlaid on the camera, lower-right, semi-transparent */
.joyoverlay{position:absolute;right:calc(var(--camu,1rem)*.875);bottom:calc(var(--camu,1rem)*.875);z-index:9;opacity:.5;transition:opacity .15s}  /* joystick ALWAYS on top — above the mini-map (z7) and telemetry (z6) so it is never covered (owner) */
.joyoverlay:hover,.joyoverlay.active{opacity:.92}
.joy{--sz:11.25em;position:relative;width:var(--sz);height:var(--sz);border-radius:50%;
  background:radial-gradient(circle,rgba(31,40,38,.85),rgba(13,17,16,.7));
  border:2px solid rgba(122,199,79,.6);touch-action:none;cursor:grab}
.joy.disabled{opacity:.4;cursor:not-allowed}
/* v2.8.3 (F1): TWO sticks — the left capsule drives forward and back, the right one (#joy) turns. Both take the Controller
   size: a capsule's long side is the round stick's diameter, so the full throw is the same distance in both modes. */
.joyoverlay.joyleft{right:auto;left:calc(var(--camu,1rem)*.875)}
.joy.joyv{width:calc(var(--sz)*.46);border-radius:calc(var(--sz)*.23)}
.joy.joyh{height:calc(var(--sz)*.46);border-radius:calc(var(--sz)*.23)}
.joy.joyv::after{border-radius:inherit;background:linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) center/2px 80% no-repeat}
.joy.joyh::after{border-radius:inherit;background:linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) center/80% 2px no-repeat}
/* ...the camera-link chip joins the top-left row, right of the light (camLayout measures --camchipx; O-12) */
.camwrap .camsrc-fs.toprow{bottom:auto;top:calc(var(--camu,1rem)*.5);left:var(--camchipx,calc(var(--camu,1rem)*3.2))}
/* ...and the windowed view's ⛶ (the HA card's too) sits centered between the sticks, measured */
.camwrap.twosticks .camfsbtn{left:var(--camfsbx,50%);transform:translateX(-50%)}
.camwrap.twosticks .camfsbtn:active{transform:translate(-50%,1px)}
.joy::after{content:"";position:absolute;inset:0;border-radius:50%;
  background:linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) center/2px 100% no-repeat,linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) center/100% 2px no-repeat}
.knob{position:absolute;left:50%;top:50%;width:calc(var(--sz)*0.36);height:calc(var(--sz)*0.36);border-radius:50%;
  background:var(--accent);transform:translate(-50%,-50%);box-shadow:0 .25em .875em rgba(0,0,0,.6)}
.joy.disabled .knob{background:var(--muted)}
input[type=range]{flex:1;accent-color:var(--accent)}
/* TEXT BOXES (v2.8.3, F2-B): a box you type into is never below 16 px — an iPhone zooms the whole page in when one below
   that gets the focus. The browser's own default is 13.33 px, so every unstyled box (the fault-code, notification and
   two-factor boxes among them) now starts at 1rem. Zero specificity (:where), so any rule that sizes a box still wins. */
:where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset],[type=image],[type=hidden]),textarea){font-size:1rem}
.rngval{min-width:4rem;text-align:right;font-weight:600;color:var(--accent)}
/* v2.10.0 game-controller status chip on the Remote tab — fills its row, wraps rather than clips the pad's name */
.rcgpstatus{flex:1 1 auto;min-width:0;display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;font-weight:600;color:var(--muted)}
#rcgamepad.on .rcgpstatus{color:var(--accent)}
.rcgpstatus .rcgpname{font-weight:700}
/* v2.10.0 controller calibrate wizard (inside #modal) */
.gpcalstep{font-size:.85rem;color:var(--muted);margin:0 0 .4rem}
.gpcalprompt{font-size:1.25rem;font-weight:700;margin:.2rem 0;line-height:1.3}
.gpcaldet{min-height:1.5em;font-weight:600;color:var(--accent);margin:.4rem 0}
.gpcalhint{font-size:.8rem;color:var(--muted);margin:.6rem 0 0}
.rcgpcalstatus{font-size:.85rem;font-weight:600;white-space:nowrap}
.rcgpcalstatus.ok{color:var(--accent)}
.rcgpcalstatus.off{color:var(--muted)}
/* v1.39 numeric STEPPER — ▼ [value] ▲ with a typable box. Replaces the range slider on the limits
   that now span 0.04 m to 100 m: one pixel of a linear slider across that range is ~0.4 m, so
   picking 0.10 vs 0.50 by dragging was impossible, worst of all on a phone. Buttons are 44px
   touch targets (hold to repeat, accelerating); the box takes an exact typed value. */
.stepper{display:inline-flex;align-items:center;gap:.3rem}
/* both arrows sit TOGETHER to the right of the number (never split around it), joined into one
   pill so they read as a single control */
.steparrows{display:inline-flex;align-items:center}
.steparrows .stepbtn:first-child{border-top-right-radius:0;border-bottom-right-radius:0}
.steparrows .stepbtn:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}
.stepbtn{min-width:2.75rem;min-height:2.75rem;padding:.3rem .5rem;font-size:1rem;line-height:1;font-weight:700;
  background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.625rem;
  cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.stepbtn:active{background:var(--accent);color:#0d1110;border-color:var(--accent)}
.stepval{width:6rem;min-height:2.75rem;text-align:right;font-weight:600;color:var(--accent);
  background:var(--panel);border:1px solid var(--line);border-radius:.625rem;padding:.4rem .5rem;font-size:1rem}
/* hide the browser's own tiny spinners — ours are the ▼▲ buttons, which are thumb-sized */
.stepval::-webkit-outer-spin-button,.stepval::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.stepval{-moz-appearance:textfield;appearance:textfield}
.stepunit{min-width:3.2rem;color:var(--muted);font-size:.9rem}

.adv{display:flex;align-items:center;gap:.5rem;color:var(--warn);margin:.3rem 0 .8rem;font-size:.9rem}
.toggle{display:inline-flex;align-items:center;gap:.6rem;cursor:pointer;font-size:.95rem;user-select:none}
.toggle input{position:absolute;opacity:0;width:0;height:0}
.toggle .slider{position:relative;width:2.875rem;height:1.625rem;background:var(--panel2);border:1px solid var(--line);border-radius:999px;transition:.2s;flex:0 0 auto}
.toggle .slider::before{content:"";position:absolute;left:.1875rem;top:2px;width:1.25rem;height:1.25rem;border-radius:50%;background:var(--muted);transition:.2s}
.toggle input:checked + .slider{background:rgba(122,199,79,.3);border-color:var(--accent)}
.toggle input:checked + .slider::before{transform:translateX(1.25rem);background:var(--accent)}
.ckrow{display:flex;align-items:center;gap:.5rem;margin:.5rem 0;cursor:pointer;font-size:.95rem;user-select:none}
.ckrow input{width:1.125rem;height:1.125rem;flex:0 0 auto;accent-color:var(--accent)}
.prow{display:flex;align-items:center;gap:.8rem;margin:.5rem 0;flex-wrap:wrap}
.prow label{flex:1 1 11.25rem;color:var(--muted);font-size:.9rem;display:flex;gap:.35rem;align-items:center}
.prow input{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.55rem .6rem;font-size:1rem}
/* Multiple RTK: the serial and name fields need room to read their placeholders, not the 130px default. */
#rtkbase_sn,#rtkbase_name{flex:1 1 17rem;width:auto;min-width:min(100%,17rem)}   /* room for the whole placeholder */
/* Settings → Locations: "New location name (e.g. Home)" was cut off on a phone (the box shared its line with Add
   location). v2.8.3: it keeps room for its whole placeholder; on a narrow screen the button wraps below instead. */
#locnew{flex:1 1 16rem;width:auto;min-width:min(100%,16rem)}
/* ROWS — v2.7.4, OWNER RULE (memory: lymow-controls-fill-row): "every text box and drop-down fills its row and shows
   ALL its text — every page, every release", and "I do want them to look UNIFORM on a page". So: ONE label column,
   and every control — box, number, time, drop-down, switch, slider — FILLS the rest of its row. On a page every
   control then starts on the same edge and has the same width, with room for its whole text. What this replaces:
   a fixed 120px control column (--ctlcol, which nothing ever set) plus a 130px box default — it cut off times
   ("10:00 AM" in Recharge & Resume) and options (the Lights "Mode"). If a control ever needs more than its column,
   the LABEL gives way (it wraps), never the control's text. On a phone each label sits ABOVE a full-width control.
   Never give a control a fixed px width again. */
.setsec .prow,.cutpanel .prow,.mowerset .prow{gap:.6rem;flex-wrap:nowrap}
.setsec .prow > label:first-child,
.cutpanel .prow > label:first-child,
.mowerset .prow > label:first-child{flex:0 1 var(--lblcol,40%);min-width:0}
.setsec .prow > input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),
.setsec .prow > select,
.cutpanel .prow > input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),
.cutpanel .prow > select,
.mowerset .prow > input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),
.mowerset .prow > select{flex:1 1 0;width:auto;min-width:min(100%,10rem);max-width:none;box-sizing:border-box}
/* a drop-down starts at the width of its LONGEST option and never shrinks below it (flex-shrink 0), then grows to
   fill; capped at the row. (min() cannot take the max-content keyword, so the first try at this rule was invalid
   CSS: the browser dropped it and the old 150px floor won — it silently did nothing.) */
.setsec .prow > select,.cutpanel .prow > select,.mowerset .prow > select{flex:1 0 auto;width:max-content;min-width:0;max-width:100%}
/* a switch fills the control column too, its slider at the column's START so it lines up with the boxes */
.setsec .prow > label.toggle{flex:1 1 0;justify-content:flex-start}
.setsec .prow > button,.cutpanel .prow > button,.mowerset .prow > button{flex:0 0 auto}
/* every other row in the app: boxes and drop-downs grow to their text and fill what is left, never a fixed px */
.prow > input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
.prow > select{flex:1 1 8rem;width:auto;min-width:min(100%,8rem);max-width:100%;box-sizing:border-box}
.prow > select{flex:1 0 auto;width:max-content;min-width:0}
input[type=time]{min-width:min(100%,9.5rem)}
/* v2.14.9: a file picker keeps the browser's own ~20rem width and never shrank — on a 360 px phone it ran off the
   screen edge (Home Assistant Restore / Update). It now gives way like every other control. */
.prow > input[type=file]{flex:1 1 auto;min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:600px){
  .setsec .prow,.cutpanel .prow,.mowerset .prow{flex-wrap:wrap}
  .setsec .prow > label:first-child,
  .cutpanel .prow > label:first-child,
  .mowerset .prow > label:first-child{flex:1 1 100%}           /* label on its own line, controls full width below */
}
/* v2.14.9: a Settings row carrying SEVERAL controls (two boxes + a button) cannot fit one line beside a 40% label
   between phone portrait and a wide screen — phone landscape scrolled the whole page sideways (RTK "Add a base").
   Such a row puts its label on its own line and lets the controls wrap under it. */
.setsec .prow.wrapctl{flex-wrap:wrap}
.setsec .prow.wrapctl > label:first-child{flex:1 1 100%}
.paramactions{margin-top:.9rem;display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.msg{color:var(--accent);font-size:.85rem}

.alerts{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.8rem}
.alert{background:rgba(255,180,84,.14);border:1px solid var(--warn);color:var(--warn);padding:.6rem .9rem;border-radius:.625rem;font-weight:600;font-size:.9rem}
.alert.crit{background:rgba(255,107,107,.14);border-color:var(--bad);color:var(--bad)}
/* v2.10.7: a stop that needs the user stays until it is cleared — a touch heavier than an alert; Fleet names the mower */
.alert.hold{border-width:.125rem;background:rgba(255,107,107,.22)}
.alert .alname{margin-right:.4em}
.alert .altxt, .toast .altxt{display:inline}
.alert .alcount{margin-left:.5em;opacity:.8;font-weight:600}   /* v2.14.11: a repeated line is one line with its count */
.toast .alname{margin-right:.4em}
.loglist{font-family:monospace;font-size:.8rem;max-height:50vh;overflow:auto}
/* Battery & charging log. The summary reads as prose, not as log output, so it deliberately drops the
   monospace of the rows beneath it — it is the part a non-technical owner is meant to read. */
.battsummary{margin:.2rem 0 .7rem}
.battsum{background:var(--panel2);border:1px solid var(--line);border-radius:.625rem;
         padding:.65rem .8rem;font-family:inherit;font-size:.92rem;line-height:1.5}
#battlog .logrow{padding:.35rem 0;border-bottom:1px solid var(--line)}
#battlog .logrow.bad{border-left:.1875rem solid var(--bad);padding-left:.5rem}
#battlog .logt{color:var(--muted);margin-right:.6rem;white-space:nowrap}
#battlog .battfault{color:var(--bad);margin-top:.15rem}
@media (max-width:560px){
  #battlog .logrow{display:flex;flex-direction:column;gap:.1rem}
  #battlog .logt{margin-right:0}
}
.logline{padding:.3rem 0;border-bottom:1px solid var(--line)}.logline .muted{color:var(--muted)}

.help{display:inline-flex;align-items:center;justify-content:center;width:1rem;height:1rem;border-radius:50%;background:var(--panel2);color:var(--muted);font-size:.7rem;font-weight:700;cursor:help;border:1px solid var(--line);flex:0 0 auto}
.help:hover{background:var(--accent);color:#04140d}
/* TOUCH. A 16px circle is roughly a third of the ~44px a finger needs, so on a phone the "?" was
   there but effectively un-tappable — you hit the label beside it instead. Grow it slightly and
   extend the HIT area with a transparent pseudo-element, so the target reaches 44px without the
   bubble growing large enough to crowd the label it belongs to. */
@media (pointer:coarse){
  .help{width:1.375rem;height:1.375rem;font-size:.78rem;position:relative}
  .help::after{content:"";position:absolute;inset:-.6875rem;border-radius:50%}
}
.tooltip{position:fixed;max-width:17.5rem;background:#000;color:#fff;padding:.55rem .7rem;border-radius:.5rem;font-size:.82rem;line-height:1.35;z-index:4800;box-shadow:0 .375rem 1.5rem rgba(0,0,0,.5);border:1px solid var(--line);pointer-events:none}   /* TOP of the overlay stack (see the layer table): ? help must stay readable inside a modal (z1300) AND inside a blocking question (z4600) */
/* Narrow screens: 280px plus the edge gap overflows a 360px phone once the "?" is indented inside a
   panel. MUST come after the base .tooltip rule — a media query adds no specificity, so declared
   before it this was simply overridden and did nothing. */
@media (max-width:560px){ .tooltip{max-width:min(17.5rem,calc(100vw - 1.5rem))} }

.modal{position:fixed;inset:0;background:rgba(6,9,8,.86);display:flex;align-items:flex-start;justify-content:center;z-index:1400;padding:max(1rem,var(--sat)) max(1rem,var(--sar)) max(1rem,var(--sab)) max(1rem,var(--sal));overflow:auto}   /* top-aligned so a tall modal always opens at its TOP (never clipped above the viewport); above the floating control bar (z1200) */
.modalbox{background:var(--panel);border:1px solid var(--line);border-radius:1rem;padding:1.4rem;width:100%;max-width:min(35rem, 94vw);max-height:92vh;overflow:auto;margin:auto 0}
.modalbox h2{margin:0 0 .6rem}
/* v2.14.9: a mower's camera window on a PHONE takes the screen's width (the readings bar is always on now, and a 3/4-width
   picture had no room for it beside Keep on and the task row). Same phone test as app.js PHONE_MQ; relative units only. */
@media (max-width:35em), (pointer:coarse) and (max-width:37.4375em), (pointer:coarse) and (max-height:37.4375em){
  .modal.camwin{padding-left:max(.25rem,var(--sal));padding-right:max(.25rem,var(--sar))}
  .modal.camwin .modalbox{max-width:100%;padding:.6rem}
}
.modalbox input[type=email],.modalbox input[type=password],.modalbox input[type=text]{width:100%;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.7rem;font-size:1rem;margin:.4rem 0}
.gatelabel{display:block;font-size:.82rem;color:var(--muted);margin:.3rem 0}
.gatekeep{margin:.7rem 0 .2rem}
/* while a sign-in is in flight: the parts that are not <input>s (so cannot be `disabled`) still have
   to LOOK inert, or the form invites a second press it will ignore */
.gatedim{opacity:.45;pointer-events:none}
/* the one line that says what protects the password ON THIS MACHINE — small, plain, and directly
   under the switch it describes, so it reads as part of the choice rather than fine print */
.gatekeepline{font-size:.78rem;color:var(--muted);line-height:1.35;margin:0 0 .6rem}
.gatelabel .sel.block,select.sel.block{width:100%;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.6rem;font-size:1rem;margin:.25rem 0;max-width:none}
.gatesplit{text-align:center;color:var(--muted);font-size:.8rem;margin:.6rem 0}
.gatesoon{text-align:center;color:var(--muted);font-size:.92rem;border:1px dashed var(--line);border-radius:.625rem;padding:.7rem;background:var(--panel2)}
.gatesoon .sub{font-size:.78rem;margin-top:.2rem}
.gatephone{margin-top:.7rem;border:1px solid var(--line);border-radius:.625rem;background:var(--panel2)}
.gatephone>summary{cursor:pointer;padding:.6rem .7rem;font-size:.9rem;color:var(--text);list-style:none;user-select:none}
.gatephone>summary::-webkit-details-marker{display:none}
.gatephone[open]>summary{border-bottom:1px solid var(--line)}
.gatephone #gatephonebody{padding:.7rem}
/* inc41: keep the horizontal auto-margins. The base #qrbox is a max-content flex box centered by
   margin:auto; overriding to `margin:.4rem 0` here stripped the auto and LEFT-justified the QR on the
   login gate. `.4rem auto` restores the centering while keeping the tighter vertical spacing. */
.gatephone #qrbox{text-align:center;margin:.4rem auto}
#goauthbox{margin-top:.3rem;border-top:1px solid var(--line);padding-top:.5rem}
#goauthbox code{background:var(--panel2);padding:0 .2rem;border-radius:.25rem}
/* v1.37 unified Google sign-in (gate) */
.gbtn{background:#fff;color:#1f1f1f;border:1px solid var(--line);font-weight:600}
.gbtn:hover{background:#f1f3f4}
/* Sign in with Apple: Apple's own button convention is black on white (or white on black) —
   distinct from the white Google button above it so nobody presses the wrong account. */
.abtn{background:#000;color:#fff;border-color:#000;margin-top:.5rem}
.abtn:hover{background:#222}
.gwait{display:flex;align-items:center;gap:.55rem;color:var(--muted);font-size:.9rem;
  border:1px dashed var(--line);border-radius:.625rem;padding:.7rem;margin:.5rem 0;background:var(--panel2)}
.gspin{width:.875rem;height:.875rem;flex:0 0 .875rem;border:2px solid var(--line);border-top-color:var(--accent);
  border-radius:50%;animation:gspin 1s linear infinite}
@keyframes gspin{to{transform:rotate(360deg)}}
.gok{color:var(--ok,#2ea043);border-style:solid}
.gok span{font-weight:700}
.gfallback{margin:.4rem 0}
.gfallback summary{color:var(--muted);font-size:.8rem;cursor:pointer}
.gfallback input{width:100%;box-sizing:border-box;margin:.4rem 0}
a.btn.block.gauthlink{display:block;text-align:center;text-decoration:none;margin:.2rem 0 .5rem}
.modalbtns{display:flex;gap:.6rem;justify-content:flex-end;margin-top:1rem;flex-wrap:wrap}
/* v2.10.3-inc7: a question with several answers puts one per row, each with a few gray words saying what it does */
.modalbtns.stack{flex-direction:column;align-items:stretch}
/* v2.14.7: the Back-button question sits over EVERYTHING — an open popup, the camera, the game-stream overlay (z4000) */
.modal.leaveask{z-index:4600;align-items:center}
.btn .btnsub{display:block;font-size:.8em;font-weight:400;opacity:.8;margin-top:.15em}
.zopt{display:block;padding:.5rem 0;font-size:.95rem}
.zlist{max-height:40vh;overflow:auto;border:1px solid var(--line);border-radius:.5rem;padding:.4rem .6rem;margin:.3rem 0}
.zitem{display:block;padding:.4rem 0}
#qrbox{display:flex;justify-content:center;align-items:center;background:#fff;padding:.6rem;border-radius:.625rem;margin:.5rem auto;width:max-content;max-width:100%}
#qrbox svg,#qrbox img.qr{display:block;width:13.75rem;height:13.75rem;margin:0 auto;image-rendering:pixelated}
.lanurl{text-align:center;word-break:break-all}
/* ── OVERLAY LAYERS — the one place these numbers are decided ──────────────────────────────────
   Read top to bottom; anything new picks a number from here rather than guessing, because equal
   z-index falls back to DOM ORDER and that is invisible from the CSS. It has bitten us: #modal
   (index.html:603) and #gate (:661) are both .modal at z1300, so a dialog raised from the sign-in
   screen drew UNDERNEATH its 86%-opaque backdrop — present, unreadable, and blocking.

     9999  .shutwrap      the Toolkit has shut down (nothing else can matter after this)
     4800  .tooltip       ? help — must stay readable INSIDE any dialog below it
     4600  .askbox        a BLOCKING question the user must answer  <-- outranks all feedback
     4500  .toast/.flashok transient feedback (pointer-events:none, must never cover a question)
     4000  .gstream       streamed Google sign-in browser
     1300  .modal/#gate   dialogs and the sign-in screen
     1250  .signedoutbar  "the Toolkit is signed out" (embedded view)
     1200  .floatbar      the floating Mow/Pause/Dock bar
   A blocking question always outranks transient feedback: a toast firing mid-decision must not
   cover the words somebody is agreeing to. */

/* section heading inside the battery log — separates the answers (mow cost, refill time) from the
   raw span-by-span history they are built from */
.battgroup{margin:.7rem 0 .3rem;font-size:.78rem;font-weight:700;letter-spacing:.03em;
  text-transform:uppercase;color:var(--muted)}
.battgroup:first-child{margin-top:0}

/* "the Toolkit is signed out" bar for the EMBEDDED/kiosk view, which has no sign-in screen to show
   (its token can drive a mower and deliberately cannot sign into an account). Top-centered and
   above the float bar (z1200) so it is the first thing read, not something hidden behind controls. */
.signedoutbar{position:fixed;left:50%;top:calc(.6rem + var(--sat));transform:translateX(-50%);z-index:1250;
  background:rgba(20,10,8,.96);color:#ffd9d2;border:1px solid #c0554a;border-radius:.625rem;
  padding:.6rem .9rem;font-size:.9rem;line-height:1.35;max-width:min(92vw,35rem);text-align:center;
  box-shadow:0 .625rem 2.125rem rgba(0,0,0,.6)}

.lanurl{font-family:monospace;color:var(--accent);text-align:center;word-break:break-all;margin-top:.6rem}

/* USER RULE (2026-07-15): transient feedback ALWAYS sits in the MIDDLE of the screen, never at the
   bottom — the toast used to render bottom-center at z70, directly UNDER the floating control bar
   (bottom-center, z1200), so every message it showed was invisible and button presses read as "nothing
   happened". Centered + z4500 puts it above the control bar (1200), modal (1300), tooltip (3500) and
   the game-stream overlay (4000). pointer-events:none so a centered message can never block a control.
   (flashOK success sits at 42%, the toast at 52% — both mid-screen, never covering each other.) */
.toast{position:fixed;left:50%;top:52%;transform:translate(-50%,-50%) scale(.96);background:#000;color:#fff;padding:.8rem 1.2rem;border-radius:.625rem;border:1px solid var(--accent);font-size:.95rem;opacity:0;transition:.25s;z-index:4500;pointer-events:none;max-width:90vw;text-align:center;box-shadow:0 .5rem 1.875rem rgba(0,0,0,.55)}
.toast.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
/* A BLOCKING question — its own element appended to <body>, never nested inside #gate or a
   .modalbox: .modal is position:fixed (a new stacking context) and .modalbox is overflow:auto, so a
   child dialog is clipped by its parent and can never climb out of it, whatever z-index it carries
   (the same trap documented for the fullscreen map below). z4600: above the sign-in screen it is
   usually raised from, above the streamed sign-in browser, and above toasts. */
.askwrap{position:fixed;inset:0;z-index:4600;background:rgba(6,9,8,.86);display:flex;
  align-items:center;justify-content:center;padding:max(1rem,var(--sat)) max(1rem,var(--sar)) max(1rem,var(--sab)) max(1rem,var(--sal));overflow:auto}
.askbox{background:var(--panel);border:1px solid var(--line);border-radius:1rem;padding:1.3rem;
  width:100%;max-width:min(32.5rem,94vw);max-height:92vh;overflow:auto;
  box-shadow:0 1.125rem 3.75rem rgba(0,0,0,.65)}
.askbox h3{margin:0 0 .6rem;font-size:1.05rem}
.askbox .sub{margin:.45rem 0}
.askbtns{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap;margin-top:1rem}
@media (max-width:560px){ .askbtns .btn{flex:1 1 auto} }

/* center-screen success confirmation ("✓ Saved Successfully") — non-blocking, ~2s, above everything */
.flashok{position:fixed;left:50%;top:42%;transform:translate(-50%,-50%) scale(.94);z-index:4500;pointer-events:none;   /* above the game-stream overlay (z4000) — a confirmation must NEVER be covered by anything */
  display:flex;align-items:center;gap:.6rem;background:rgba(16,22,18,.97);color:var(--text);
  border:1px solid var(--accent);border-radius:1rem;padding:1rem 1.5rem;font-size:1.15rem;font-weight:700;
  box-shadow:0 .875rem 3.125rem rgba(0,0,0,.6);opacity:0;transition:opacity .18s ease,transform .18s ease;
  max-width:90vw;text-align:center}
.flashok.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
.flashok .fok-ic{display:inline-flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;
  border-radius:50%;background:var(--accent);color:#06120a;font-size:1.05rem;font-weight:900;flex:0 0 auto}

@media(max-width:600px){
  main{padding:.7rem max(.7rem,var(--sar)) .7rem max(.7rem,var(--sal))}
  .cards{gap:.45rem}
  .card{flex-basis:8.25rem}
  header{padding:.6rem .8rem}
  .card .val{font-size:1.1rem}
  .btn{flex:1 1 auto;text-align:center}
  #leafletmap{height:18.75rem}
  /* when the cut panel is open on a phone, shrink the map so the map + the top
     Cut-angle row are visible together */
  #mapview.cutopen #leafletmap{height:45vh}
}

/* ---- interactive map card ---- */
.maptools{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:.2rem 0 .6rem}
.maptools .sel{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.4rem .5rem;min-height:2.375rem;
  /* v2.8.3 (F2-B): its own width (the longest option), never the global select floor min(100%, 9.375rem). The toolbar
     row is sized to fit its content, and a floor that is a SHARE of the row cannot be counted while the row is being
     measured — when it was the larger of the two the last button (↻) fell onto a line of its own */
  min-width:auto}
.maptools .inp{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.4rem .6rem;min-height:2.375rem;flex:1 1 13.75rem;min-width:10rem}
.maptools .btn{min-height:2.375rem;padding:.4rem .7rem}
#leafletmap{height:26.25rem;width:100%;border-radius:.75rem;border:1px solid var(--line);background:#0d1117;z-index:0}
/* Overview map resize grip (lower-left, like the mini-map's): drag to set the map height; the size is a
   server pref so it follows the user across devices. Hidden in fullscreen, where the map fills the screen. */
.mapwrap{position:relative}
.mapwrap .mapgrip{position:absolute;left:.25rem;bottom:.25rem;width:1.125rem;height:1.125rem;z-index:1001;cursor:nesw-resize;
  border-radius:.1875rem;touch-action:none;pointer-events:auto;
  background:linear-gradient(45deg,transparent 0 42%,rgba(255,255,255,.8) 42% 52%,transparent 52% 60%,rgba(255,255,255,.8) 60% 70%,transparent 70%)}
.mapwrap .mapgrip:focus{outline:2px solid var(--accent,#3b82f6)}
.mapwrap.fs .mapgrip{display:none}
.leaflet-container{background:#0d1117;font:inherit}
/* v2.8.7-inc5 (owner: on a phone the zone label ran off the screen): map labels wrap BETWEEN their pieces (name · area
   · pattern · angle · badges, each kept whole) and never get wider than the screen; app.js _ztipClamp keeps them inside
   the map. A label that fits stays on one line, as before. */
.leaflet-tooltip.ztip{white-space:normal;width:max-content;max-width:calc(100vw - 2rem - var(--sal) - var(--sar));overflow-wrap:anywhere}   /* app.js narrows it to the map */
.leaflet-tooltip.ztip .ztn{font-weight:700}
.leaflet-tooltip.ztip .ztp{white-space:nowrap}
.leaflet-tooltip.ztip.zshift::before{display:none}   /* moved to stay on screen: its pointer would point beside the zone */
/* Fleet Mode (v2) */
.fleetbtn.on{background:var(--accent,#2e9b57);color:#fff;border-color:var(--accent,#2e9b57)}
.fleetpane{display:block}
#fleetmap{height:27.5rem;width:100%;border-radius:.75rem;border:1px solid var(--line);background:#0d1117;z-index:0;margin:.5rem 0}
.fleetroll{font-weight:600;margin:.2rem 0 .4rem}
.fleetbar{display:flex;flex-wrap:wrap;gap:.5rem;margin:.3rem 0 .2rem}
.fleetstats{display:flex;flex-direction:column;gap:.9rem;margin-top:.6rem}
.fleetmower{border:1px solid var(--line);border-radius:.75rem;padding:.6rem .7rem;background:var(--panel)}
.fleetmowername{display:flex;align-items:center;gap:.45rem;margin:.1rem 0 .5rem;font-size:1.05rem}
.fmdot{width:.75rem;height:.75rem;border-radius:50%;display:inline-block;flex:0 0 auto}
/* the roll-up dot is a color input drawn as the same round dot (Safari/iOS: strip the swatch chrome) */
input.fmpick{appearance:none;-webkit-appearance:none;width:.95rem;height:.95rem;min-width:0;padding:0;margin:0;border:1px solid #000;border-radius:50%;background:none;cursor:pointer;overflow:hidden}
input.fmpick::-webkit-color-swatch-wrapper{padding:0}
input.fmpick::-webkit-color-swatch{border:none;border-radius:50%}
input.fmpick::-moz-color-swatch{border:none;border-radius:50%}
.tzlocs{margin-top:.6rem}
/* v2.14.9 Mower clocks: name | status (wraps, never overflows) | Set now — folds to two lines on a narrow screen */
.tzmrow .tzmstat{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere;font-size:.9rem;font-weight:400}
.tzmrow > button{flex:0 0 auto}.tzlocs .tzlocshdr{margin:.2rem 0 .3rem;font-size:.95rem}
.fleetchips{display:flex;flex-wrap:wrap;gap:.5rem;margin:.4rem 0}
.fleetchip{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .7rem;border:1px solid var(--line);border-radius:999px;background:var(--panel);cursor:pointer;color:inherit}
.fleetchip.sel{border-color:var(--accent,#2e9b57);box-shadow:inset 0 0 0 2px var(--accent,#2e9b57)}
.fleetchip .sub{opacity:.75}
.fleetchip:disabled,.fleetchip.disabled{opacity:.5;cursor:not-allowed}
.locsites,.locassign{display:flex;flex-direction:column;gap:.35rem}
.locrow{display:flex;align-items:center;gap:.5rem}
.locrow .locname{flex:1}
.locrow label{min-width:9rem}
.mapmark{display:flex;align-items:center;justify-content:center;font-size:1.25rem;line-height:1;text-shadow:0 0 .1875rem #000,0 0 .1875rem #000}
.mapmark.robot span{color:#57d98a;font-size:1.375rem}
.mapmark.dock span{font-size:1.125rem}
.mapmark.rtk span{font-size:1rem}
/* image markers (real Lymow mower / dock / RTK icons): NO white background, NO circle — just a thin
   shape-following outline glow so the dark silhouettes stay legible on satellite + grass. The mower's
   inner img rotates to heading. */
.mapbadge{display:flex;align-items:center;justify-content:center;background:transparent;
  filter:drop-shadow(0 0 1.5px rgba(255,255,255,.95)) drop-shadow(0 0 2px rgba(0,0,0,.6))}
.mapbadge img{display:block}
#leafletmap.imggrab{cursor:grab}
#leafletmap.imggrab:active{cursor:grabbing}
#leafletmap.imggrab .leaflet-interactive{pointer-events:none}
/* no browser focus rectangle around a clicked zone polygon — the color change is the cue */
#leafletmap .leaflet-interactive:focus,#leafletmap svg:focus,#leafletmap path:focus{outline:none}
/* inline cutting-parameters panel (keeps the map visible while editing) */
.cutparams-btn{margin-top:0}
.mapbtnrow{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
/* scheduled-mows list under the map */
.schedlist{margin-top:.6rem}
.schedhead{font-size:.85rem;color:var(--muted);margin:.3rem 0}
.schedrow{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;
  background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-radius:.5625rem;padding:.45rem .6rem;margin-bottom:.35rem}
.schedrow.off{opacity:.55}
.schedmain{display:flex;flex-direction:column;min-width:0}
.schedmeta{color:var(--muted);font-size:.78rem}
.schederr{display:block;color:#f0883e;font-size:.74rem;margin-top:.15rem}
.timesels{display:inline-flex;align-items:center;gap:.35rem}
.timesel{min-width:3.6rem;text-align:center;padding:.5rem .4rem;font-size:1rem;font-variant-numeric:tabular-nums}
.timesel#sc_ap{min-width:4rem}
.timecolon{font-weight:700;opacity:.7}
@media(max-width:560px){ .timesel{min-width:4.2rem;padding:.6rem .4rem;font-size:1.05rem} }
.schedbtns{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.schedbtns .danger{color:#f85149}
/* schedule modal bits */
.fieldblock{margin:.4rem 0}
.sublabel{font-size:.85rem;color:var(--muted);margin:.1rem 0 .3rem}
.dowpick{display:flex;flex-wrap:wrap;gap:.3rem}
.dowchip{display:inline-flex;align-items:center;gap:.25rem;background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-radius:.375rem;padding:.2rem .45rem;font-size:.8rem;white-space:nowrap;flex:0 0 auto}
.datewrap{display:inline-flex;align-items:center;gap:.35rem}
.dateicon{background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-radius:.5rem;padding:.25rem .5rem;cursor:pointer;font-size:1.05rem;line-height:1;color:#fff}   /* white so the calendar glyph is visible on the dark field */
.datewrap input[type=date]{color-scheme:dark}
/* the native date field draws its OWN calendar picker icon on the right — hide it; our white 🗓 button to the LEFT is the single picker trigger */
.datewrap input[type=date]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none;opacity:0}
.datewrap input[type=date]::-webkit-inner-spin-button{display:none}
.zpick{display:flex;flex-direction:column;gap:.2rem;max-height:30vh;overflow:auto;margin:.2rem 0 .4rem;padding:.3rem;border:1px solid var(--line,#26302a);border-radius:.5rem}
.zpick label{display:flex;align-items:center;gap:.4rem;font-size:.85rem}
.zmapgrp{margin:.15rem 0}
.zmaphdr{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:.15rem 0}
.zmapgrp>summary{cursor:pointer;font-size:.82rem;font-weight:600;padding:.15rem 0}
.zmapzones{display:flex;flex-direction:column;gap:.2rem;padding:.1rem 0 .2rem .6rem}
.sc_thumbwrap{margin:.5rem 0;text-align:center}
.sc_thumb{display:inline-block;width:15rem;max-width:100%;height:9.375rem;background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-radius:.625rem;overflow:hidden}
.sc_thumb .cppvsvg,.sc_thumb svg{width:100%;height:100%}
.sc_thumb .thumbempty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted);font-size:.8rem}
.cppvcap{font-size:.78rem;color:var(--muted);margin-top:.25rem}
.sc_params{margin:.5rem 0;border:1px solid var(--line,#26302a);border-radius:.625rem;padding:.3rem .6rem;background:var(--panel2,#141a16)}
.sc_params>summary{cursor:pointer;font-weight:600;padding:.3rem 0;list-style:revert}
.sc_pfields{margin-top:.3rem}
.sc_pfields.disabled{opacity:.45;pointer-events:none}   /* master toggle off = using saved settings */
/* v1.40: "different angle per pass" grays out when there is no specified angle to rotate FROM (an
   Optimized regular angle with no cross-cut pass). The ? hover stays reachable so the reason is visible. */
.mp_offrow.disabled{opacity:.5}
.mp_offrow.disabled input{cursor:not-allowed}
/* v1.40: each multi-pass pass is now a small card (height + mowing speed + blade speed) so three
   controls per pass stay visually grouped instead of running together into one long list. */
.mppass{border:1px solid var(--line);border-radius:.625rem;padding:.4rem .6rem;margin:.45rem 0;background:var(--panel)}
.mppasst{font-weight:700;color:var(--accent);font-size:.85rem;margin-bottom:.15rem}
.mppass .prow{margin:.3rem 0}
.mppass select{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.35rem .5rem;min-height:2.375rem}
/* upcoming scheduled-mow chips on the calendar (dashed = future/planned, vs solid = completed) */
.calchip.sched{background:transparent;color:var(--text,#e8f0e8);border:1px dashed var(--accent,#7ac74f)}
.calchip.sched.off{opacity:.5;border-style:dotted}
.calchip.sched.run{background:rgba(122,199,79,.18);border-style:solid;font-weight:600}
.calchip.native{background:transparent;color:var(--text,#e8f0e8);border:1px dotted #6ea8ff}   /* official-app schedule (read-only) */
.calchip.conflict,.calrow.conflict{border-color:#f0883e !important;color:#f0883e}
.calrow.native{opacity:.9}
.calconflict{background:rgba(240,136,62,.12);border:1px solid #f0883e;border-radius:.5rem;padding:.4rem .6rem;margin:.2rem 0 .5rem;font-size:.82rem;color:#f0883e}
.calrow.sched{border-left-color:var(--accent,#7ac74f);border-left-style:dashed}
.calrow.sched.running{border-left-style:solid;background:rgba(122,199,79,.1)}
.schedrow.running{border-color:var(--accent,#7ac74f);box-shadow:inset 0 0 0 1px var(--accent,#7ac74f)}
.cutpanel{margin-top:.6rem;padding:.7rem;border:1px solid var(--line);border-radius:.625rem;background:var(--panel2)}
/* v2.7.0: the cutting panel's groups and the Mower settings column beside the map */
.cpgroup{border:1px solid var(--line);border-radius:.625rem;margin:.45rem 0;padding:.1rem .6rem .35rem;background:var(--panel)}
.cpgroup>summary{cursor:pointer;font-weight:600;padding:.4rem 0;list-style:none;display:flex;align-items:center;gap:.4rem}
.cpgroup>summary::before{content:"\25b8";font-size:.8rem;color:var(--muted)}
.cpgroup[open]>summary::before{content:"\25be"}
.cpgroup>summary::-webkit-details-marker{display:none}
.mowerset .prow{display:flex;align-items:center;gap:.6rem;margin:.4rem 0;flex-wrap:wrap}
.mowerset .prow input[type=range]{flex:1 1 7.5rem;min-width:6.25rem}
/* v2.9.0: an Overview the owner arranged = ROWS of 1-3 COLUMNS, each column its sections stacked (app.js ovApply/ovFit);
   no layout saved = the rules below. A column's last section fills down to its row's bottom, as a lone section did. */
#tab-overview.ovcustom{display:block}
.ovrow{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem;margin-bottom:1rem}
.ovrow[hidden]{display:none}
.ovcol{display:flex;flex-direction:column;gap:1rem;min-width:0}
.ovcol>section{margin-bottom:0;min-width:0}
.ovcol>section:last-child{flex:1 0 auto}
.ovcol>section.ovfixh{overflow:auto;flex-grow:0}
/* the editor: locked = nothing to grab; unlocked = a ⠿ handle on each section's top edge, grips on its right and bottom
   edges, a dashed outline; the drop marker is a LINE (above / below) or an OUTLINE with a side line (beside), BLUE for a
   row of its own and ORANGE within a row, with its words on it */
.ovtools{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.5rem;margin:0 0 .4rem}
/* the 🔒 Layout button: the tab row's last item, right-justified; on a phone whose tab row scrolls it stays in view */
/* looks like a tab, is not one (wireTabs binds every .tab) */
.tabs .tablock{margin-left:auto;flex:0 0 auto;position:sticky;right:0;background:var(--bg);white-space:nowrap;color:var(--muted);
  border:none;border-bottom:2px solid transparent;padding:.6rem .9rem;font-size:.95rem;cursor:pointer}
.tabs .tablock[aria-pressed="true"]{color:var(--accent)}
.ovhint{flex:1 1 14rem;text-align:right;color:var(--muted)}
.ovhint .ovk-row{color:var(--ovrow)}
.ovhint .ovk-col{color:var(--ovcol)}
.ovsec>.ovgrip,.ovsec>.ovrsz{display:none}
.ovedit .ovsec{position:relative;outline:.125rem dashed var(--line);outline-offset:-.125rem;padding-top:2.2rem}   /* room for the handle INSIDE: never over the toolbar or the section above */
/* v2.9.1: each section its own layer while unlocked, like .dash — the handle (z 30) and the edge grips (29) stay inside
   it, so they scroll UNDER the sticky header (5) and tab row (4) instead of floating over them (owner: "the float
   position can stay after the layout is set") */
.ovedit .ovsec{isolation:isolate}
.ovedit .ovsec>.ovgrip{display:flex;align-items:center;justify-content:center;position:absolute;top:.3rem;left:50%;
  transform:translateX(-50%);z-index:30;min-width:3rem;height:1.6rem;padding:0 .7rem;border-radius:.8rem;
  background:var(--accent);color:#06210d;font-size:1.1rem;font-weight:700;cursor:grab;touch-action:none;user-select:none}
.ovedit .ovsec>.ovgrip:active{cursor:grabbing}
.ovedit .ovsec.ovhasright>.ovrsz-x{display:block;position:absolute;top:0;right:-.75rem;width:1.5rem;height:100%;
  cursor:ew-resize;touch-action:none;z-index:29}
.ovedit .ovsec.ovhasright>.ovrsz-x::after{content:"";position:absolute;top:30%;bottom:30%;left:50%;width:.3rem;
  transform:translateX(-50%);border-radius:.15rem;background:var(--accent)}
.ovedit .ovsec>.ovrsz-y{display:block;position:absolute;left:0;right:0;bottom:-.75rem;height:1.5rem;cursor:ns-resize;touch-action:none;z-index:29}
.ovedit .ovsec>.ovrsz-y::after{content:"";position:absolute;left:35%;right:35%;top:50%;height:.3rem;transform:translateY(-50%);
  border-radius:.15rem;background:var(--accent)}
.ovsec.ovdragging{opacity:.45}
#ovghost{position:fixed;z-index:4400;pointer-events:none;padding:.35rem .7rem;border-radius:.6rem;background:var(--panel2);
  border:.125rem solid var(--accent);color:var(--text);font-weight:700;white-space:nowrap;box-shadow:0 .4rem 1.2rem rgba(0,0,0,.45)}
#ovmark{position:fixed;z-index:4300;pointer-events:none;display:none;--mk:var(--ovcol)}
#ovmark.row{--mk:var(--ovrow)}
/* v2.10.7: move a mower row (Fleet dashboard, unlocked) — the handle, the row being moved, and the blue landing line */
.fmgrip{cursor:grab;touch-action:none;user-select:none;padding:0 .35em;margin-right:.2em;font-size:1.1em;color:var(--ovrow);border-radius:.3rem}
.fmgrip:hover,.fmgrip:focus-visible{background:rgba(127,127,127,.18)}
.fleetmower.fmdragging{opacity:.55}
.fmdropline{position:fixed;z-index:4300;pointer-events:none;height:.3rem;margin-top:-.15rem;border-radius:.15rem;background:var(--ovrow)}
#ovmark.line{display:block;height:.3rem;border-radius:.15rem;background:var(--mk)}
#ovmark.box{display:block;border:.2rem solid var(--mk);border-radius:.875rem}
#ovmark.box::after{content:"";position:absolute;top:-.2rem;bottom:-.2rem;width:.4rem;border-radius:.2rem;background:var(--mk)}
#ovmark.box.left::after{left:-.45rem}
#ovmark.box.right::after{right:-.45rem}
/* its words at the line's LEFT end (the outline's top-left): the dragged section's name follows the pointer down and
   to the right, and covered them when they sat in the middle */
#ovmark::before{content:attr(data-label);position:absolute;left:.75rem;top:50%;transform:translateY(-50%);white-space:nowrap;
  padding:.15rem .6rem;border-radius:.7rem;background:var(--mk);color:#0d1110;font-size:.85rem;font-weight:700;
  box-shadow:0 .2rem .6rem rgba(0,0,0,.45)}
#ovmark.box::before{top:.5rem;transform:none}
@media (min-width:1100px){
  #tab-overview{display:grid;grid-template-columns:minmax(0,1fr) 21.25rem;gap:0 1rem;align-items:start}
  #tab-overview > *{grid-column:1 / -1;min-width:0}
  #tab-overview > #mapview{grid-column:1}
  #tab-overview > #mowerset{grid-column:2;position:sticky;top:calc(var(--stickTop,0rem) + .5rem)}   /* v2.9.2: below the header + tabs */
  #tab-overview > #mowactions{grid-column:1}   /* under the map on a wide screen; after Mower settings on a phone (DOM order) */
  /* v2.13.0-inc4 (restored v2.14.5-inc3): TABLE-WIDE — the Mower settings box gone for the zone table (no mow running):
     one full-width column, nothing reserved */
  #tab-overview.ovtablewide{grid-template-columns:minmax(0,1fr)}
  #tab-overview.ovtablewide > #mapview,#tab-overview.ovtablewide > #mowactions{grid-column:1 / -1}
}
.cutpanel .cphead{font-size:.95rem;margin-bottom:.5rem}
.cutpanel .prow{display:flex;align-items:center;gap:.6rem;margin:.35rem 0}
.cutpanel .rngval{min-width:3.5rem;text-align:right;color:var(--muted)}
.cutpanel .adv{display:inline-flex;align-items:center;gap:.4rem;margin:.4rem 0}
.cutpanel .cpsub{margin:.6rem 0 .2rem;font-size:.85rem;color:var(--muted);border-top:1px solid var(--line);padding-top:.5rem}
/* Multi-pass (catch-up) */
.mpass-toggle{display:inline-flex;align-items:center;gap:.4rem;margin:.6rem 0 0;font-weight:600}
.mppanel .mpheights{margin:.2rem 0}
.mppanel .mp_offrow{margin-top:.5rem;border-top:1px solid var(--line);padding-top:.5rem}
.mppanel #mp_hint{display:block;margin-top:.4rem}
/* Adjust cut angle offset (v2.3.0) — shares a row with Multi-pass; use one or the other, not both */
.advtogglerow{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1.2rem}
.angoff-toggle{display:inline-flex;align-items:center;gap:.4rem;margin:.6rem 0 0;font-weight:600}
.adv.disabled{opacity:.45;cursor:not-allowed}
.adv.disabled input{pointer-events:none}
#cao_panel #cao_next{display:block}
#cao_panel .paramactions{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin-top:.4rem}
/* Global / By-Zone tabs */
.cptabs{display:flex;gap:.4rem;margin:.2rem 0 .5rem}
.cptab{flex:1 1 0;padding:.5rem .6rem;border:1px solid var(--line);border-radius:.5rem;background:var(--panel2);
  color:var(--muted);font-size:.92rem;cursor:pointer}
.cptab.active{background:var(--accent);color:#04222a;border-color:var(--accent);font-weight:600}
.cphint{font-size:.82rem;color:var(--muted);margin:.1rem 0 .5rem;padding:.4rem .55rem;border-radius:.5rem;
  background:rgba(87,217,138,.10);border:1px solid rgba(87,217,138,.30)}
.cphint.warn{background:rgba(255,193,7,.12);border-color:rgba(255,193,7,.45);color:#e9c46a}
.cutpanel select,.cutpanel input[type=number]{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.5rem;padding:.35rem .5rem}
/* Segmented picker — one button per choice, spanning the full panel width, the chosen one filled.
   Blade speed is four fixed steps (Eco/Standard/Power/Turbo), and a dropdown hid three of them
   behind a click: you could not see what you were running without opening it. flex:1 1 0 gives the
   four equal widths; wrapping the row lets the group take a line of its own under the label rather
   than being squeezed into the control column. */
.cutpanel .prow.segrow{flex-wrap:wrap}
.segbtns{display:flex;gap:.4rem;flex:1 1 100%}
.segbtn{flex:1 1 0;padding:.5rem .4rem;border:1px solid var(--line);border-radius:.5rem;
  background:var(--panel2);color:var(--muted);font-size:.92rem;cursor:pointer;white-space:nowrap}
.segbtn:hover{border-color:var(--accent)}
.segbtn.active{background:var(--accent);color:#04222a;border-color:var(--accent);font-weight:600}
/* inline cut-angle preview box (zone shapes + mowing strips, no map/satellite) */
.cppvrow{display:flex;align-items:center;gap:.6rem;margin:.35rem 0}
.cppvrow label{flex:0 0 auto;min-width:9.375rem}
.cppreview{flex:1 1 auto;min-width:10rem}
.cppvsvg{width:10.625rem;height:auto;max-width:100%;background:#0d1117;border:1px solid var(--line);border-radius:.5rem;display:block}
.cppvcap{font-size:.78rem;color:var(--muted);margin-top:.2rem}
.cppvnote{font-size:.8rem;color:var(--muted);padding:.5rem;border:1px dashed var(--line);border-radius:.5rem}
/* multi-map run bar (lives on the Map tab, by the selection bar) */
.mmbar{display:flex;align-items:center;gap:.6rem;margin:.4rem 0;flex-wrap:wrap}
.scanout{margin-top:.5rem;padding:.6rem;background:var(--panel2);border:1px solid var(--line);border-radius:.5rem;
  font:.75rem/1.45 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word;max-height:21.25rem;overflow:auto}
/* multi-map live progress: one row per map-group, with state + a per-map mowed bar */
.mmprog{margin-top:.6rem;display:flex;flex-direction:column;gap:.4rem}
.mmrow{padding:.45rem .55rem;border:1px solid var(--line);border-radius:.5rem;background:var(--panel2)}
.mmrow.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.mmrow.done{opacity:.75}
.mmrow .mmtop{display:flex;justify-content:space-between;gap:.5rem;font-size:.85rem}
.mmrow .mmst{color:var(--muted);font-size:.8rem}
.mmrow .mmst.s-mowing{color:var(--accent)}
.mmrow .mmst.s-done{color:#7ee0a6}
.mmrow .mmst.s-restoring{color:#e9c46a}
.pbar{height:.5rem;border-radius:.375rem;background:var(--panel2);border:1px solid var(--line);overflow:hidden;margin:.35rem 0}
.pbar span{display:block;height:100%;background:var(--accent);transition:width .5s}
.appver{margin-left:.5rem;font-size:.7rem;color:var(--muted);opacity:.8}
.zone-pick{cursor:pointer}
.mapsel{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:.5rem 0 .2rem;font-size:.9rem}
.mapsel .zchip{background:rgba(87,217,138,.16);border:1px solid var(--accent);color:var(--text);border-radius:999px;padding:.12rem .55rem;font-size:.82rem}

/* ---- v2.11.0 map editing ---- */
.leaflet-container .zone-pick{cursor:pointer}             /* selectable zones/no-go/channels show the pointing finger */
.leaflet-container.splitting{cursor:crosshair}            /* placing a split line: the only action is to click points */
.leaflet-container.splitting .zone-pick{cursor:crosshair}
.mapseledit{margin-top:.35rem}
.rcmapbtns{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0}
.rcmapbtns .btn{flex:1 1 auto}
.badge{display:inline-block;font-size:.7rem;text-transform:uppercase;letter-spacing:.03em;background:rgba(240,170,60,.2);border:1px solid rgba(240,170,60,.6);color:var(--text);border-radius:.5rem;padding:.02rem .4rem;vertical-align:middle}

/* ---- Maps panel: connected-mower banner, backup rows, zone checklist (mobile-first) ---- */
.nowmower{margin:.2rem 0 .6rem;font-size:.9rem;color:var(--muted)}
.nowmower b{color:var(--accent)}
.bklist{display:flex;flex-direction:column;gap:.4rem;margin:.3rem 0 .6rem}
.bklist .empty{color:var(--muted);font-size:.88rem;padding:.4rem 0}
.bkrow{display:flex;align-items:center;gap:.6rem;background:var(--panel2);border:1px solid var(--line);
  border-radius:.625rem;padding:.5rem .65rem;flex-wrap:wrap}
.bkrow .bkmeta{flex:1 1 10rem;min-width:0}
.bkrow .bkname{font-size:.95rem;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bkrow .bkdate{font-size:.78rem;color:var(--muted)}
.bkrow .bkacts{display:flex;gap:.35rem;flex-wrap:wrap}
.bkrow .btn.small{flex:0 0 auto}
/* map thumbnails (current map + per restore point) */
.curmapbox{margin:.2rem 0 .7rem}
.mapthumbwrap{width:100%;max-width:16.25rem;aspect-ratio:4/3;background:#0d1117;border:1px solid var(--line);
  border-radius:.5rem;overflow:hidden;display:flex;align-items:center;justify-content:center}
.mapthumb{width:100%;height:100%;display:block}
.thumbempty{color:var(--muted);font-size:.8rem}
.bkthumb{flex:0 0 auto;width:5.25rem;height:3.9375rem;background:#0d1117;border:1px solid var(--line);
  border-radius:.375rem;overflow:hidden;display:flex;align-items:center;justify-content:center}
.bkthumb .thumbempty{font-size:.65rem;text-align:center}
@media (max-width:520px){.bkthumb{width:4rem;height:3rem}}
.zonechecks{display:flex;flex-direction:column;gap:.3rem;margin:.3rem 0 .6rem;
  max-height:14.375rem;overflow:auto;border:1px solid var(--line);border-radius:.625rem;padding:.45rem .6rem}
.zonechecks .empty{color:var(--muted);font-size:.88rem}
.zonechecks label{display:flex;align-items:center;gap:.55rem;font-size:.95rem;cursor:pointer;padding:.2rem 0}
.zonechecks input[type=checkbox]{width:1.125rem;height:1.125rem;flex:0 0 auto}
@media(max-width:600px){
  .bkrow{align-items:flex-start}
  .bkrow .bkacts{width:100%}
  .bkrow .bkacts .btn{flex:1 1 auto}
}

/* ---- mow-order number badges on the map + backup zone chips ---- */
.ordnum{background:#0b3d22;color:#eafff2;border:2px solid #57d98a;border-radius:50%;
  width:1.375rem;height:1.375rem;line-height:1.125rem;text-align:center;font-size:.78rem;font-weight:700;
  box-shadow:0 1px .25rem rgba(0,0,0,.5)}
.zchip.bk{background:rgba(154,168,160,.22);border:1px solid #8a9a8f;color:var(--text)}

/* ---- floating control bar: pinned to the bottom of the viewport, always visible while scrolling ---- */
.floatbar{position:fixed;left:50%;transform:translateX(-50%);bottom:max(.75rem,var(--sab));
  z-index:1200;display:flex;gap:.5rem;padding:.5rem;border-radius:.875rem;
  background:rgba(18,24,20,.92);backdrop-filter:blur(.5rem);
  box-shadow:0 .375rem 1.5rem rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.08);
  width:calc(100% - 1.5rem - var(--sal) - var(--sar));max-width:35rem}
.floatbar .fbbtn{flex:1;min-width:0;padding:.7rem .4rem;border-radius:.625rem;border:1px solid transparent;
  font-size:.95rem;font-weight:700;cursor:pointer;color:#fff;background:#2c7a43;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Fleet Mode: Mow + Pause + Resume + Dock + Cancel can all be valid at once, so let the bar wrap to a
   second row on a phone instead of squashing five buttons below a usable tap target. */
.floatbar.fleet{flex-wrap:wrap}
.floatbar.fleet .fbbtn{flex:1 1 auto;min-width:6rem}
.floatbar .fbbtn.primary{background:#2c7a43}
.floatbar .fbbtn.primary.danger{background:#1f6f8b}        /* Start mow (idle) reads as the go action */
.floatbar .fbbtn[data-mode=fault]{background:#b5742a}      /* Clear Fault */
.floatbar .fbbtn.danger{background:#8a2f2f}                /* Cancel Task */
.floatbar .fbbtn:active{filter:brightness(1.15)}
/* keep page content clear of the bar */
body.has-floatbar main{padding-bottom:5.25rem}
.floatpending{min-height:1.1em;margin:.2rem 0 .4rem}
/* camera icon overlaid on the map (upper-right) */
.mapwrap{position:relative}
/* keep the map's +/- zoom buttons and the camera icon BELOW the centered status pill (it was covering them).
   The camera sits level with the + (zoom-in) button. The pill wraps to 2 rows on phones, so push further down there. */
.mapwrap .leaflet-top{top:2.625rem}
/* THE MAP'S CORNER BUTTON STACK (v1.47.0) — fullscreen, reset view, camera, jump-to-mower.
   These used to be four separately positioned buttons with hand-tuned `top` values (8/52/98, and a
   second set for small screens). Adding a fifth landed it straight on top of the camera button,
   which is what magic numbers do the moment anyone inserts anything. The stack now spaces itself,
   so a new button can be dropped in at the right place and nothing else has to be renumbered.
   pointer-events are handed to the buttons only, so the container never swallows a map drag. */
.mapbtnstack{position:absolute;top:.5rem;right:.625rem;z-index:600;display:flex;flex-direction:column;
  gap:.5rem;align-items:flex-end;pointer-events:none}
.mapbtnstack>button{pointer-events:auto}
.mapcam{position:relative;width:2.375rem;height:2.375rem;border-radius:.5625rem;
  border:1px solid rgba(255,255,255,.15);background:rgba(18,24,20,.82);color:#fff;font-size:1.1rem;
  cursor:pointer;box-shadow:0 2px .5rem rgba(0,0,0,.45)}
.mapcam:active{filter:brightness(1.2)}
/* v1.39 center-on-mower — same floating pill as the camera button, stacked directly under it, so
   finding the mower after panning around the property is one thumb tap. */
.mapcenter{position:relative;width:2.375rem;height:2.375rem;border-radius:.5625rem;
  border:1px solid rgba(255,255,255,.15);background:rgba(18,24,20,.82);color:#fff;font-size:1.1rem;
  cursor:pointer;box-shadow:0 2px .5rem rgba(0,0,0,.45)}
.mapcenter:active{filter:brightness(1.2)}
/* keep a map-control topic (toggle label) glued to its ⚙️ gear so they never wrap apart */
.ctlgrp{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap;flex:0 0 auto}
/* map toolbar STACKS: base-layer controls (Satellite / Street map / provider / Unlock imagery / Use
   Multiple Maps) on the first row, and the overlay toggles on their OWN row directly beneath. */
.maptools{flex-direction:column;align-items:stretch}
.mtleft{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;flex:1 1 auto;min-width:0}
/* the overlay toggles (Mowed / Precision heat / Link heat / Freshness / Plot on Error) sit on ONE row
   directly under the base-layer controls, wrapping gracefully on narrow screens. In the floated
   fullscreen and camera-dock boxes (further down) they revert to a narrow vertical stack. */
.overlaytoggles{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.25rem .6rem;flex:0 0 auto;margin:0}
.overlaytoggles .ctlgrp{display:inline-flex;justify-content:flex-start;align-items:center;gap:.3rem;white-space:nowrap;flex:0 0 auto}
.overlaytoggles .toggle{flex:0 0 auto;justify-content:flex-start;margin:0;padding:0;line-height:1.3}
.overlaytoggles .btn.ghost{flex:0 0 auto;padding:1px .375rem;line-height:1.2}
/* "Plot on Error" — map fault markers (divIcon, tip of the pin sits on the exact location) */
.ploterrpin{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;
  align-items:center;pointer-events:auto;cursor:pointer;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.ploterrpin .peclabel{background:var(--pec,#ff2d55);color:#fff;font:700 .6875rem/1.2 system-ui,-apple-system,sans-serif;
  padding:2px .375rem;border-radius:.5rem;border:2px solid #fff;white-space:nowrap}
.ploterrpin .pestem{width:2px;height:.375rem;background:var(--pec,#ff2d55)}
.ploterrpin.approx .peclabel{border-style:dashed;opacity:.9}
/* "Plot on Error" ⚙️ modal — one dropdown + remove button per code row */
.perow{display:flex;gap:.4rem;align-items:center;margin:.3rem 0}
.perow .pesel{flex:1 1 auto;min-width:0;background:var(--panel2);color:var(--text);border:1px solid var(--line);
  border-radius:.5rem;padding:.4rem .5rem;min-height:2.375rem}
.perow .peremove{flex:0 0 auto}
/* zone freshness overlay legend (bottom-left of the map, only while the Freshness overlay is on) */
.stalelegend{position:absolute;left:.625rem;bottom:.75rem;z-index:600;max-width:min(72%,26.25rem);
  background:rgba(18,24,20,.86);border:1px solid rgba(255,255,255,.15);border-radius:.5625rem;
  padding:.4rem .55rem;font-size:.72rem;color:#e8f0e8;box-shadow:0 2px .5rem rgba(0,0,0,.45);
  display:flex;flex-wrap:wrap;gap:.25rem .6rem;align-items:center;line-height:1.3}
.stalelegend b{margin-right:.2rem}
.stalelegend .slg{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}
.stalelegend .slg i{width:.6875rem;height:.6875rem;border-radius:.1875rem;display:inline-block;flex:0 0 auto}
@media (max-width:560px){
  .mapwrap .leaflet-top{top:4.5rem}   /* the status pill is 2 rows on small screens */
  /* the whole stack drops together now; it used to be two hand-tuned tops that had to be kept in
     step with the desktop pair by hand */
  .mapbtnstack{top:2.375rem}
  .stalelegend{left:.375rem;bottom:1rem;font-size:.66rem;padding:.35rem .45rem}
}
@media (max-width:480px){ .floatbar .fbbtn{font-size:.85rem;padding:.65rem .3rem} }

/* ===================== Heat maps (inc5): selector, legend, hover readout, color pickers, drop log ===== */
.heatlbl{font-size:.72rem;color:#b8c4bc;padding:0 .1rem}
/* the heat legend sits ABOVE the freshness legend (bottom-left) so the two never overlap */
.heatlegend{bottom:3.25rem;flex-direction:column;align-items:flex-start}
.heatlegend .hlrow{display:flex;flex-wrap:wrap;gap:.25rem .6rem;align-items:center;width:100%}
@media (max-width:560px){ .heatlegend{bottom:2.875rem} }
/* floating hover readout — nearest heat cell's raw numbers. BOTTOM-RIGHT so it never covers the +/- zoom
   (top-left), the camera button (top-right), or the two bottom-left legends. */
.mapreadout{position:absolute;right:.625rem;bottom:1.375rem;left:auto;top:auto;z-index:600;max-width:min(80%,28.75rem);
  background:rgba(18,24,20,.9);border:1px solid rgba(255,255,255,.18);border-radius:.5625rem;
  padding:.4rem .55rem;font-size:.72rem;color:#e8f0e8;box-shadow:0 2px .5rem rgba(0,0,0,.5);
  display:flex;flex-wrap:wrap;gap:.25rem .6rem;align-items:center;line-height:1.3;pointer-events:none}
.mapreadout b{margin-right:.2rem}
.mapreadout .slg{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}
.mapreadout .slg i{width:.6875rem;height:.6875rem;border-radius:.1875rem;display:inline-block;flex:0 0 auto}
/* color-picker box in the heat settings modals — small + centered, label directly over each swatch */
.colorgrid{margin:.4rem 0;padding:.35rem .4rem;border:1px solid rgba(255,255,255,.1);border-radius:.5625rem;
  display:inline-block;width:auto;max-width:100%;text-align:center}
.colorgridt{font-size:.72rem;font-weight:600;color:#cdd8d0;margin:0 0 .25rem;text-align:center}
.prow.colorrow input[type=color]{width:2.5rem;height:1.5rem;padding:0;border:1px solid rgba(255,255,255,.2);
  border-radius:.375rem;background:transparent;cursor:pointer}
/* the 3 swatches sit on ONE centered row; each = a small CENTERED column of (label directly over swatch) */
.colorswatches{display:flex;flex-wrap:wrap;gap:.35rem .7rem;justify-content:center}
/* Divider between the three PRECISION colors and the two FIX-QUALITY ones to their right. They look
   alike on purpose — same picker, same size — but they answer different questions, and without a
   visible break they read as one row of five bands of the same scale. */
.swatchsep{width:1px;align-self:stretch;min-height:2.2rem;background:var(--line);margin:0 .25rem}
@media (max-width:560px){ .swatchsep{width:100%;height:1px;min-height:0;margin:.15rem 0} }
.colorswatches .prow.colorrow{flex:0 0 auto;flex-direction:column;align-items:center;gap:.15rem;margin:0;padding:0}
.colorswatches .prow.colorrow label{flex:0 0 auto;font-size:.7rem;color:#b8c4bc;justify-content:center;text-align:center}
/* Mowed-overlay group: the color swatch doubles as the "mowed square" beside the toggle, with
   the 🗑️ clear button on its right — one unified control group in the overlay-toggle row */
.trailswatch{width:1.625rem;height:1.5rem;padding:0;border:1px solid rgba(255,255,255,.2);
  border-radius:.375rem;background:transparent;cursor:pointer;flex:0 0 auto;vertical-align:middle}
.trashbtn{padding:.15rem .4rem;line-height:1;font-size:.95rem}
/* compact threshold group: one metric label, then its weak+drop SLIDERS on tight rows */
.thslide{margin:.4rem 0}
.thslide .thlbl{font-size:.78rem;color:#cdd8d0;font-weight:600;margin-bottom:.15rem}
.thsl{display:flex;align-items:center;gap:.5rem;margin:.15rem 0}
.thsl label{flex:0 0 2.875rem;font-size:.74rem;color:#b8c4bc}
.thsl input[type=range]{flex:1 1 auto;min-width:5rem}
.thsl .rngval{flex:0 0 auto;font-size:.74rem;color:#cdd8d0;min-width:3.375rem;text-align:right}
/* drop log */
.droplog{margin-top:.6rem;max-height:6.875rem;overflow:auto;border-top:1px solid rgba(255,255,255,.1);padding-top:.4rem}
.dl-head{font-size:.75rem;font-weight:600;color:#cdd8d0;margin-bottom:.3rem;display:flex;align-items:center}
.dl-row{font-size:.7rem;color:#dbe4dd;padding:.2rem 0;border-bottom:1px solid rgba(255,255,255,.06);
  display:flex;flex-wrap:wrap;gap:.25rem .5rem;align-items:baseline}
.dl-row .dl-t{color:#9fb0a4}
.dl-row .dl-loc{color:#8fb8ff}
.dl-row .dl-v{color:#b8c4bc}
.dl-bad{color:#ff2ec4;font-weight:700}
.dl-warn{color:#9b5de5;font-weight:700}
.dl-ok{color:#06d6a0;font-weight:700}

/* ===================== Calendar (inc3) ===================== */
.calbar{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;margin-bottom:.6rem}
.calnav{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.caltitle{font-size:1.05rem;margin-left:.4rem}
.calviews{display:flex;align-items:center;gap:.3rem}
.calview.active{background:var(--accent,#3fb950);color:#04210c;border-color:transparent}
.calgrid{width:100%}
.calgrid.calmonth,.calgrid.calweek{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem}
.calhd{font-size:.72rem;color:var(--muted);text-align:center;padding:.2rem 0;font-weight:600}
.calcell{min-height:5.5rem;background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-radius:.5rem;padding:.25rem;display:flex;flex-direction:column;gap:.2rem;overflow:hidden}
.calcell.dim{opacity:.45}
.calcell.today{border-color:var(--accent,#3fb950);box-shadow:inset 0 0 0 1px var(--accent,#3fb950)}
.calnum{font-size:.72rem;color:var(--muted);font-weight:600}
.calchips{display:flex;flex-direction:column;gap:2px;overflow:hidden}
.calnone{color:var(--line,#26302a);font-size:.7rem}
.calchip{border:0;border-radius:.3125rem;padding:.12rem .3rem;font-size:.68rem;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#04210c}
.calchip.green{background:#3fb950}
.calchip.orange{background:#f0883e}
.calchip.red{background:#f85149;color:#fff}
.calchip:active{filter:brightness(1.15)}
.calgrid.calweek .calcell{min-height:7.5rem}
.calgrid.calday{display:flex;flex-direction:column;gap:.375rem}
.calrow{display:grid;grid-template-columns:auto 1fr auto auto;gap:.6rem;align-items:center;text-align:left;
  background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-left-width:.25rem;border-radius:.5rem;padding:.5rem .7rem;cursor:pointer;color:var(--text,#e8f0e8);font-size:.85rem}
.calrow.green{border-left-color:#3fb950}
.calrow.orange{border-left-color:#f0883e}
.calrow.red{border-left-color:#f85149}
.calrt{font-weight:700}
.calrs{color:var(--muted)}
.calra{color:var(--muted);font-size:.8rem}
@media (max-width:560px){
  .calrow{grid-template-columns:auto 1fr;gap:.2rem .5rem}
  .calra{grid-column:1/3}
  .calcell{min-height:4.375rem}
  .calchip{font-size:.6rem}
}
/* mow-detail modal */
.mowmodal{display:flex;gap:1rem;flex-wrap:wrap}
.mmthumb{flex:0 0 auto;width:15rem;height:11.25rem;background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-radius:.625rem;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.mmthumb .mapthumb{width:100%;height:100%}
.mmnote{position:absolute;bottom:.25rem;left:0;right:0;text-align:center;font-size:.66rem;color:var(--muted)}
.mmfacts{flex:1 1 13.75rem;min-width:12.5rem;display:flex;flex-direction:column;gap:.45rem}
.mmwhen{font-weight:600}
.mmbadge{display:inline-block;align-self:flex-start;border-radius:.375rem;padding:.15rem .5rem;font-size:.8rem;font-weight:700;color:#04210c}
.mmbadge.green{background:#3fb950}
.mmbadge.orange{background:#f0883e}
.mmbadge.red{background:#f85149;color:#fff}
.mmrow{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid var(--line,#26302a);padding-top:.4rem}
.mmrow>span{color:var(--muted)}
.mzchips{display:flex;flex-wrap:wrap;gap:.25rem;justify-content:flex-end}
.mzchip{background:var(--panel2,#141a16);border:1px solid var(--line,#26302a);border-radius:.3125rem;padding:.05rem .35rem;font-size:.78rem}
.mzchip.green{background:#3fb950;border-color:#3fb950;color:#04210c}   /* per-zone freshness: each cut zone its OWN color */
.mzchip.orange{background:#f0883e;border-color:#f0883e;color:#04210c}
.mzchip.red{background:#f85149;border-color:#f85149;color:#fff}
@media (max-width:560px){ .mmthumb{width:100%} }

/* HEADLESS on-box Google sign-in browser (streamed) — HA / Docker / Ubuntu Server */
.gstream{position:fixed;inset:0;z-index:4000;background:rgba(4,7,12,.82);
  /* inc40: align to the TOP, not the center. A tall card (header + scrolling picture + help text)
     that is taller than the phone was CENTERED, which pushed the header — and the ⌨ Type button in
     it — up off the top edge, unreachable (user report 2026-08-17). Top-aligned, the header is always
     visible; overflow-y:auto lets the whole card be scrolled if it still exceeds the screen, so the
     help text at the bottom stays reachable too. */
  display:flex;align-items:flex-start;justify-content:center;padding:max(1rem,var(--sat)) max(1rem,var(--sar)) max(1rem,var(--sab)) max(1rem,var(--sal));overflow-y:auto}
.gstreamcard{background:#0d1117;border:1px solid var(--line);border-radius:.75rem;
  /* inc39 sizing — the v1.49.1 model, corrected. The page is shown at a READABLE width and the card
     SCROLLS a tall page (see .gstreamwrap), so you can reach every option — Try another way, Resend,
     account tiles. Width is capped so it never fills the screen: up to 480px on a phone (≈ full
     width there), and on desktop ALSO no more than 60% of the viewport (media query below). The
     "contain" fit that scaled the whole page to the viewport was wrong: it killed the scroll you need
     for a tall 2-step page and let the box grow toward full width. */
  box-shadow:0 1.125rem 3.75rem rgba(0,0,0,.5);width:100%;max-width:30rem;overflow:hidden}
/* Desktop: never wider than 60% of the viewport (the "60% occupancy" rule). On a phone the base
   480px/100% already gives a near-full-width card, so this only reins in wide screens. */
@media (min-width:760px){ .gstreamcard{max-width:min(30rem,60vw)} }
.gstreamhdr{display:flex;align-items:center;justify-content:space-between;
  padding:.55rem .8rem;border-bottom:1px solid var(--line)}
.gstreamttl{font-weight:600;font-size:.92rem}
/* It carries a WORD now, not a glyph — see index.html. Sized so the label fits in the header next
   to the ⌨ Type toggle without wrapping on a phone. */
.gstreamx{background:transparent;border:1px solid var(--line);color:var(--muted);font-size:.8rem;
  cursor:pointer;line-height:1;padding:.3rem .5rem;border-radius:.375rem;white-space:nowrap}
.gstreamx:hover{background:#1b2028;color:#e6edf3}
/* inc39: THE CARD SCROLLS THE PICTURE, LOCALLY. The page is rendered at its FULL measured height
   (core/streambrowser.py _fit_to_content), so the whole sign-in page — including a tall 2-step screen
   with Try another way / Resend at the bottom — exists in the image. Capping the wrap at 80vh with
   overflow-y:auto lets a finger or wheel scroll straight to it, instantly, at readable zoom, no round
   trip to the on-box browser. -webkit-overflow-scrolling keeps it momentum-scrolling on iOS. */
.gstreamwrap{position:relative;background:#fff;min-height:12.5rem;max-height:80vh;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
/* inc39: width:100% scales the rendered page to the card's width (the zoom that read as correct);
   height:auto lets it run its FULL length inside the scrolling wrap above. Clicks map back through
   the element's own rendered size in _openStream's px(), so any display scale is fine. */
.gstreamimg{display:block;width:100%;height:auto;cursor:default;user-select:none;-webkit-user-select:none;outline:none}
/* PHONE keyboard bridge: a transparent editable input laid exactly over the streamed image so a
   phone will raise its soft keyboard when the user taps a field. Invisible (transparent text/caret),
   but really focusable. app.js unhides it only on touch devices and forwards the tap as a click. */
.gstreamkbd{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;
  color:transparent;caret-color:transparent;font-size:1rem;/* >=16px stops iOS auto-zoom */
  -webkit-text-fill-color:transparent;outline:none;z-index:2;touch-action:none}
/* "⌨ Type" toggle: shown only on touch devices (app.js unhides it); .on = keyboard is up. */
.gstreamkbdbtn{margin-left:auto;margin-right:.4rem;background:var(--panel2);color:var(--text);
  border:1px solid var(--line);border-radius:.5rem;padding:.25rem .55rem;font-size:.82rem;cursor:pointer}
.gstreamkbdbtn.on{background:var(--accent,#2ea043);color:#fff;border-color:transparent}
/* The overlay is ONLY for states with nothing behind it — starting, refused, error. It is never
   shown over a live sign-in page: a "the page is waiting for you" message over the page the user
   is already looking at is noise that only hid the page (removed at the user's instruction, inc33). */
.gstreamover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:var(--muted);background:#0d1117;font-size:.9rem;text-align:center;padding:1rem}
.gstreammsg{padding:.5rem .8rem;color:var(--muted);font-size:.8rem;border-top:1px solid var(--line)}

/* inc11 — RTK logs panel + header LoRa chip */
.lorachip{cursor:default;background:#1c2530;color:#9fb6c9;border-color:#2c3a48}
.rtklwrap{max-height:10.625rem;overflow:auto;border:1px solid var(--line,#2c3a48);border-radius:.5rem;margin-top:.5rem}
.rtkltable{width:100%;border-collapse:collapse;font-size:.78rem;font-variant-numeric:tabular-nums}
.rtkltable th{position:sticky;top:0;background:var(--panel,#141a21);cursor:pointer;user-select:none;
  padding:.3rem .45rem;text-align:left;white-space:nowrap;border-bottom:1px solid var(--line,#2c3a48)}
.rtkltable td{padding:.18rem .45rem;white-space:nowrap;border-bottom:1px solid rgba(128,128,128,.12)}
.rtkltable tbody tr:hover{background:rgba(128,160,255,.07)}
/* v1.40 "Forgot password?" — quiet secondary action under the Unlock button; deliberately
   understated so it reads as a recovery path, not an alternative way in. */
.gforgot{margin-top:.6rem;font-size:.9rem;opacity:.85}
/* v1.40.0-inc7: the reset is its OWN gate screen (title + warning + Reset + Back), so the unlock
   form stays clean. Its warning is the standard #gatesub, just tinted to read as a caution. */
#gate .gatesub-warn{color:var(--warn)}
/* v1.40.0-inc6: cross-cut is set inside the multi-pass panel itself, sitting under Perimeter (edge) */
/* inline-flex, not block: the cross-cut PAINT COLOR swatch sits directly beside this checkbox, and a
   block label pushes it onto its own line. It still starts a new line because the element before it
   is a block .prow — so nothing about the panel's layout changes. */
.mp_crosstoggle{display:inline-flex;align-items:center;margin:.5rem 0 .2rem}
/* THE CROSS-CUT PAINT SWATCH (v1.47.0) — sits inline beside its Cross-cut checkbox in BOTH the
   multi-pass panel and the cutting-parameters panel. Sized to match the app's other in-panel color
   pickers (.prow.colorrow above): same 40x24 box, border and radius, so it reads as the same control.
   The .prow selector is deliberately more specific than `.prow input` (width:130px, text-input
   padding), which would otherwise stretch it into a fat rounded rectangle in the cutting panel. */
.mp_crosstoggle + input[type=color]{margin-left:.5rem}
input[type=color].xcutswatch,
.prow input[type=color].xcutswatch{width:1.625rem;height:1.5rem;padding:0;border:1px solid rgba(255,255,255,.2);
  border-radius:.375rem;background:transparent;cursor:pointer;flex:0 0 auto;vertical-align:middle}
/* ...and its transparency slider, immediately to the right of the swatch. Short on purpose: it sits
   inline on a settings row, and `.prow input` (width:130px) would otherwise stretch it across the row. */
input[type=range].xcutalpha,
.prow input[type=range].xcutalpha{width:5.5rem;padding:0;flex:0 0 auto;vertical-align:middle;
  margin-left:.4rem;background:transparent;border:0}
/* The cross-cut paint controls (swatch + opacity slider + %) only appear once the cross-cut box is
   ticked. Grouped so they show/hide as one unit and stay on a single line (swatch  Paint opacity
   − slider + 100%) — including on mobile: the group wraps below the checkbox as a whole, never mid-row. */
.xcutpaint{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:.35rem;margin-left:.5rem;
  vertical-align:middle;min-width:0}
.xcutpaint .xcutlbl{opacity:.85;white-space:nowrap}
.xcutpaint input[type=range].xcutalpha{margin-left:0}
.xcutpaint .rngwrap{flex:0 1 auto;min-width:0}
.xcutpaint .rngval{min-width:2.6em;text-align:right;white-space:nowrap}
/* v1.41: 📖 glossary — in the header beside the version, so it is reachable on every tab and also
   when the LAN bar is hidden (viewing through the remote link). */
.glossbtn{background:none;border:0;cursor:pointer;font-size:1.05rem;line-height:1;padding:.1rem .25rem;
  opacity:.85;filter:grayscale(.15)}
.glossbtn:hover{opacity:1;filter:none}
/* The wiki link wears the glossary button's look, but it is an <a> (it opens a real page in a new
   tab), so the default link underline and color have to be neutralized or it sits crooked and blue
   next to the 📖 button it is meant to match. */
a.glossbtn{text-decoration:none;color:inherit;display:inline-block;vertical-align:middle}
/* v2.14.0: Donate (Ko-fi) — beside the 📖 glossary on a wide screen; on a phone the header lives in the ☰ menu, which
   carries its own full-width Donate button (#donatenav), so this one steps aside there. */
.donatebtn{display:inline-block;vertical-align:middle;margin-left:.35rem;padding:.15rem .6rem;border-radius:1rem;
  border:.0625rem solid #ff5e5b;color:#ff5e5b;font-size:.8rem;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}
.donatebtn:hover{background:#ff5e5b;color:#fff}
body.navphone .donatebtn{display:none}
.donatenav{display:block;margin:.6rem 1rem 1rem;padding:.85rem 1rem;border-radius:.6rem;background:#ff5e5b;color:#fff;
  font-weight:600;text-align:center;text-decoration:none}
.donatenav:hover{filter:brightness(1.08)}
/* Update-available badge. HIDDEN unless a NEWER release was actually found — same version, a
   downgrade, or being offline all leave it invisible, so its presence always means something. */
.updbtn{animation:updpulse 1.4s ease-in-out infinite;filter:none;opacity:1}
@keyframes updpulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.9)}}
/* A blinking element is exactly what vestibular/attention accessibility settings ask us to stop. */
@media (prefers-reduced-motion:reduce){ .updbtn{animation:none} }

/* Update progress — the server is DOWN for most of this, so these steps are the only thing on
   screen telling the user the machine is busy rather than broken. */
.updsteps{list-style:none;margin:.6rem 0 .8rem;padding:0}
.updsteps li{display:flex;align-items:center;gap:.7rem;padding:.4rem 0;color:var(--muted)}
.updsteps li .ust-ic{width:1.05rem;height:1.05rem;border-radius:50%;flex:0 0 auto;
  border:2px solid var(--line);box-sizing:border-box}
.updsteps li.active{color:var(--text)}
.updsteps li.active .ust-ic{border-color:var(--accent);border-top-color:transparent;
  animation:uspin .8s linear infinite}
.updsteps li.done{color:var(--text)}
.updsteps li.done .ust-ic{border-color:var(--accent);background:var(--accent)}
@keyframes uspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){ .updsteps li.active .ust-ic{animation:none} }

/* The screen left behind after Shut down. It REPLACES the whole app, so it can rely on no layout
   above it — and it must use the theme, not hardcoded colours, or it renders as bare text jammed
   against one corner. That is exactly how it shipped: one line, then half a line down and to the
   right. */
.shutwrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
  background:var(--bg);padding:2rem;text-align:center;z-index:9999}
.shutbox{max-width:34rem}
.shuttitle{color:var(--text);font-size:1.25rem;font-weight:600;margin-bottom:.9rem;line-height:1.4}
.shutsub{color:var(--muted);font-size:.95rem;line-height:1.55;margin-top:.5rem}
.shutdim{opacity:.7;font-size:.88rem;margin-top:1rem}
.shutcode{display:inline-block;margin-top:.4rem;padding:.35rem .6rem;border-radius:.375rem;
  background:var(--panel2);border:1px solid var(--line);color:var(--text);
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9rem;user-select:all}

/* Settings side rail — ten panels in one scroll was the complaint. */
.setwrap{display:flex;gap:1rem;align-items:flex-start}
.setnav{flex:0 0 11.875rem;display:flex;flex-direction:column;gap:.25rem;position:sticky;top:calc(var(--stickTop,0rem) + .5rem)}
.setnavbtn{text-align:left;background:transparent;color:var(--muted);border:1px solid transparent;
  border-radius:.5rem;padding:.5rem .7rem;font:inherit;font-size:.9rem;cursor:pointer}
.setnavbtn:hover{background:var(--panel2);color:var(--text)}
.setnavbtn.on{background:var(--panel2);color:var(--text);border-color:var(--line);
  box-shadow:inset .1875rem 0 0 var(--accent)}
.setbody{flex:1 1 auto;min-width:0}
/* On a phone the rail becomes a scrollable row of chips — a 190px column would eat the screen. */
@media (max-width:760px){
  .setwrap{flex-direction:column;gap:.5rem}
  .setnav{flex:0 0 auto;flex-direction:row;overflow-x:auto;width:100%;position:static;
    padding-bottom:.25rem;-webkit-overflow-scrolling:touch}
  .setnavbtn{white-space:nowrap;flex:0 0 auto}
  .setnavbtn.on{box-shadow:inset 0 -.1875rem 0 var(--accent)}
  .setbody{width:100%}
}
/* The update modal is deliberately wider than the standard 560px one: it carries release
   highlights that read badly in a narrow column. */
.modalbox.wide{max-width:min(80vw, 56.25rem)}
.updhl{margin:.2rem 0 .9rem;padding-left:1.1rem}
.updhl li{margin:.3rem 0;line-height:1.45}
.updver{color:var(--muted);font-size:.85rem;margin:-.3rem 0 .8rem}
.upddonate{border-top:1px solid var(--line);margin-top:1rem;padding-top:.8rem;font-size:.9rem;color:var(--muted)}
.updcmd{background:var(--panel2);border:1px solid var(--line);border-radius:.5rem;padding:.6rem .7rem;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.85rem;overflow-x:auto;white-space:pre}
.glosssearch{width:100%;padding:.55rem .7rem;margin-bottom:.6rem;border-radius:.625rem;
  border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:1rem}   /* >= 16 px: see TEXT BOXES */
.glossec{margin:.9rem 0 .3rem;font-weight:700;color:var(--accent);font-size:.9rem}
.glossterm{margin:.45rem 0;line-height:1.4}
.glossterm b{color:var(--text)}
.glossterm span{color:var(--muted);font-size:.9rem}
.glossnone{color:var(--muted);font-size:.9rem;padding:.6rem 0}
/* v1.41: the glossary is a reference table, not a dialog — 85% of the screen so definitions read on
   a line or two instead of a narrow ribbon. The search + close + section jumps STICK to the top so
   you never scroll to the bottom to get out, or lose the search while reading. */
#modal.glosswide .modalbox{max-width:85vw}
.glosshead{position:sticky;top:0;z-index:5;background:var(--panel);padding:.1rem 0 .5rem;
  margin:-.2rem 0 .4rem;border-bottom:1px solid var(--line);
  display:grid;grid-template-columns:1fr auto;gap:.4rem .5rem;align-items:center}
.glosshead .glosssearch{margin:0}
.glossx{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.625rem;
  min-width:2.75rem;min-height:2.75rem;font-size:1rem;cursor:pointer}
.glossx:hover{border-color:var(--accent);color:var(--accent)}
.glossjump{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:.3rem}
.glossjbtn{background:var(--panel2);color:var(--muted);border:1px solid var(--line);border-radius:999px;
  padding:.28rem .7rem;font-size:.82rem;cursor:pointer;white-space:nowrap}
.glossjbtn:hover{color:var(--accent);border-color:var(--accent)}
#modal.glosswide .glossbody{columns:1}   /* one column — easier to read across */
#modal.glosswide .glossec{break-after:avoid;break-inside:avoid;scroll-margin-top:6rem}
#modal.glosswide .glossterm{break-inside:avoid}
@media (max-width:900px){ #modal.glosswide .modalbox{max-width:94vw} }

/* v1.41: a setting's OPTIONS, listed under it — what each choice actually does. */
.glossopts{margin:.3rem 0 .5rem 1.1rem;border-left:2px solid var(--line);padding-left:.7rem}
.glossopt{margin:.22rem 0;font-size:.93rem}
.glossopt i{color:var(--accent);font-style:normal;font-weight:600}
.glossopt span{color:var(--muted)}

/* v1.42 Home Assistant bridge — a hostname doesn't fit the default 130px .prow input, and the
   status line needs its own good/bad colors (the existing ones are scoped to cards/telemetry). */
#hamqtt .prow input[type=text],#hamqtt .prow input[type=password]{width:13.75rem;flex:1 1 13.75rem;max-width:21.25rem}
#hamqtt .hasub{margin:.6rem 0}
#hamqtt .hacard{border:1px solid var(--line);border-radius:.6875rem;padding:.6rem .9rem .5rem;margin:.7rem 0;background:var(--panel)}
#hamqtt .hacard h4{margin:0 0 .35rem;font-size:1rem}
#hamqtt .hasub>summary{color:var(--muted);font-size:.9rem}
#ha_state{margin-top:.6rem}
#ha_state .good{color:var(--accent)}
#ha_state .bad{color:var(--bad)}

/* v1.42.1 FULLSCREEN MAP — mirrors the camera's proven .fs pattern (.camwrap.fs / body.camfs-lock)
   rather than the browser Fullscreen API, so it behaves identically to something already field-tested.
   z1000 deliberately sits BELOW the modal (1300), tooltip (3500) and toast/flashok (4500) so a
   confirmation can never end up hidden behind the map — and below the float bar (1200), which unlike
   the camera we KEEP visible: selecting zones then pressing Start mow is the whole point of the map. */
.mapfsbtn{position:relative;width:2.375rem;height:2.375rem;border-radius:.5625rem;
  border:1px solid var(--line);background:rgba(18,24,20,.86);color:var(--text);font-size:1.05rem;
  line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mapfsbtn:hover{border-color:var(--accent)}
/* "reset view" sits directly UNDER the fullscreen button: same size and style, one button-height
   plus the same 8px gutter below it, so the two read as one stack rather than two stray controls.
   It stays available in FULLSCREEN — that is where you most need it, having panned around a big
   property with no toolbar to reach. It used to be display:none there for no reason anyone recorded.

   ✕ Exit is IN the stack (v1.48.0), not floated over it. It used to be position:absolute at
   top:8px/right:10px — the SAME coordinates as .mapbtnstack — at z-index 1001, so it painted
   directly on top of whichever button was first in the stack. In fullscreen the two buttons above
   it are hidden, which promoted the CAMERA into that slot: the field report was "the exit is
   covering up the camera icon in fullscreen". Hand-placed tops are exactly what the stack was
   introduced to end; Exit simply never joined it. In the stack it cannot overlap by construction,
   whatever else is shown or hidden. */
.mapexitfs{position:relative;background:rgba(0,0,0,.55);display:none;white-space:nowrap}
.mapwrap.fs{position:fixed;top:0;left:0;z-index:1000;width:100vw;height:100vh;height:100dvh;
  max-width:100vw;border-radius:0;margin:0;background:#0d1117}
/* v2.9.2 (owner 2.png: the fullscreen map stopped half way down an Android phone): !important — the saved map height
   (PREFS.map_height, applyMapHeight) is an INLINE px height on #leafletmap, and an inline style beats any plain rule, so
   fullscreen showed the map at the saved height on every device that had one; the inline height comes back on exit */
.mapwrap.fs #leafletmap{height:100%!important;border-radius:0;border:0}
.mapwrap.fs .mapexitfs{display:block}
/* only the FULLSCREEN button itself goes away in fullscreen (Exit replaces it). Everything else in
   the stack stays reachable — hiding a control is how the reset button went missing. */
.mapwrap.fs #mapFsBtn{display:none}
/* .mapwrap.fs is position:fixed, so it opens a NEW stacking context and the stack's z-index is
   resolved inside it — against Leaflet's own panes, which climb to ~700. Lift it clear, below the
   float bar (1200) which stays usable in fullscreen. */
.mapwrap.fs .mapbtnstack{z-index:1001}
body.mapfs-lock{overflow:hidden}
/* the overlay toggles live in .maptools, a SIBLING of .mapwrap — once .mapwrap is position:fixed they
   would be stranded behind it, leaving fullscreen a dead end you can't change anything from. Float the
   SAME nodes over the map instead of moving them in the DOM, so their existing handlers keep working. */
/* v2.9.2 (owner 1.png: "it covers the status bar with the toggles, instead of being below it"): the toggles start BELOW
   the floating status pill (--fsTogTop, measured by app.js _mapFsLayout) and the zoom buttons below the toggles */
body.mapfs-lock .overlaytoggles{position:fixed;top:var(--fsTogTop,calc(.5rem + var(--sat)));left:calc(.5rem + var(--sal));z-index:1002;
  flex-direction:column;align-items:stretch;gap:2px;
  background:rgba(18,24,20,.92);backdrop-filter:blur(.5rem);padding:.45rem .6rem;border-radius:.75rem;
  border:1px solid rgba(255,255,255,.08);box-shadow:0 .375rem 1.5rem rgba(0,0,0,.5);max-width:min(94vw,20rem);
  max-height:calc(100dvh - var(--fsTogTop,calc(.5rem + var(--sat))) - .5rem - var(--sab));overflow-y:auto}
.mapwrap.fs .leaflet-top.leaflet-left{top:var(--fsZoomTop,2.625rem)}
/* the base overlay row is horizontal now; inside the narrow floated boxes revert each group to a
   full-width row (label left, ⚙️ right) so the stack reads cleanly. Placed AFTER the position:fixed
   rule above so tests/test_map_fullscreen.py still finds that rule first. */
body.mapfs-lock .overlaytoggles .ctlgrp,.overlaytoggles.ovdock .ctlgrp{display:flex;justify-content:space-between;gap:.7rem}
body.mapfs-lock .overlaytoggles .toggle,.overlaytoggles.ovdock .toggle{flex:1 1 auto}
@media (max-width:560px){
  body.mapfs-lock .overlaytoggles{font-size:.82rem;padding:.35rem .45rem}
}

/* v1.42.1 — the overlay toggles docked INTO a camera fullscreen box. They are physically moved here
   (see dockOverlayToggles): CSS alone cannot work for the camera because #tab-overview is display:none
   while you are on the Remote tab, and a position:fixed descendant of a display:none element does not
   render. Absolute, because the fullscreen wrapper is already position:fixed.

   PLACEMENT IS LOAD-BEARING — field report v1.42.1-inc1: "the toggles cover up the indicator for
   whether WiFi or 4G is working." The camera's top-left corner is already occupied by .camstatus AND
   .camled (both at top:.5rem/left:.6rem), and .camtelbar — which carries the WiFi and 4G icons — is
   CENTERED at the top. At top:8px this sat on all three.
     * top:52px clears the 34px light button (8px + 34px + margin) and the status chip.
     * The width cap is the part that actually fixes the WiFi/4G occlusion: at the old
       min(60vw,300px) a ~500px-wide window put this at x=8..308 while the centered telbar spanned
       ~125..375, so they overlapped from 125 to 308 — which is why it looked intermittent (on a wide
       desktop window they never touched). 38vw keeps the right edge clear of a centered bar at any
       width, including when that bar wraps to two rows.
   z-index stays 1002 — ABOVE the mini-map (7) and the map itself so the toggles remain clickable.
   This was a POSITIONING bug, not a stacking one; do not "fix" a future overlap by burying it. */
/* v2.8.3-inc6 (owner 2026-09-29, screenshots browser1/2 + phone2: "the other floating data that is crazy ... like 25%
   smaller"): every size of the docked overlay panel — text, switches, gear buttons, swatch, gaps, padding, width — is
   25% smaller than F2-A made it (the *.75 below). Its position (--camovtop, left) is still measured by camLayout. */
.overlaytoggles.ovdock{position:absolute;z-index:1002;
  /* v2.8.3 (F2-A): BELOW the light and the status pill by MEASUREMENT (camLayout sets --camovtop from their bottom
     edges) — the 52px this replaces was a reservation for a 34px light */
  top:var(--camovtop,calc(var(--camu,1rem)*3.25));left:calc(var(--camu,1rem)*.5);
  flex-direction:column;align-items:stretch;gap:calc(var(--camu,1rem)*.125*.75);
  background:rgba(18,24,20,.92);backdrop-filter:blur(calc(var(--camu,1rem)*.5*.75));padding:calc(var(--camu,1rem)*.45*.75) calc(var(--camu,1rem)*.6*.75);border-radius:calc(var(--camu,1rem)*.75*.75);
  border:1px solid rgba(255,255,255,.08);box-shadow:0 calc(var(--camu,1rem)*.375*.75) calc(var(--camu,1rem)*1.5*.75) rgba(0,0,0,.5);
  max-width:min(38vw,calc(var(--camu,1rem)*16.25*.75));max-width:min(38cqw,calc(var(--camu,1rem)*16.25*.75));font-size:calc(var(--camu,1rem)*.85*.75);
  /* v2.8.3 (T2): never below the task row (sizeRcFs measures it); scrolls inside if it has more. NOWRAP: the shared
     .overlaytoggles row wraps, and a height-capped column wrapped into a SECOND column hidden past the panel's right
     edge (Plot on Error and Keep controls visible could not be reached) instead of scrolling */
  max-height:var(--rcfsovmax,none);overflow-y:auto;flex-wrap:nowrap}
.overlaytoggles.ovdock > *{flex-shrink:0}
.overlaytoggles.ovdock .btn.ghost{padding:0 calc(var(--camu,1rem)*.3125*.75)}
/* F2-A: the docked panel's own controls in camera units too (the shared .toggle / .btn rules are root-sized) */
.overlaytoggles.ovdock .ctlgrp{gap:calc(var(--camu,1rem)*.7*.75)}
.overlaytoggles.ovdock .toggle{font-size:calc(var(--camu,1rem)*.95*.75);gap:calc(var(--camu,1rem)*.6*.75)}
.overlaytoggles.ovdock .btn{font-size:calc(var(--camu,1rem)*.95*.75);min-height:calc(var(--camu,1rem)*2.625*.75);border-radius:calc(var(--camu,1rem)*.625*.75)}
.overlaytoggles.ovdock .toggle .slider{width:calc(var(--camu,1rem)*2.875*.75);height:calc(var(--camu,1rem)*1.625*.75)}
.overlaytoggles.ovdock .toggle .slider::before{left:calc(var(--camu,1rem)*.1875*.75);top:calc(var(--camu,1rem)*.125*.75);width:calc(var(--camu,1rem)*1.25*.75);height:calc(var(--camu,1rem)*1.25*.75)}
.overlaytoggles.ovdock .toggle input:checked + .slider::before{transform:translateX(calc(var(--camu,1rem)*1.25*.75))}
.overlaytoggles.ovdock .trailswatch{width:calc(var(--camu,1rem)*1.625*.75);height:calc(var(--camu,1rem)*1.5*.75);border-radius:calc(var(--camu,1rem)*.375*.75)}
@container camwrap (max-width:560px){
  /* landscape phone: smaller, and narrower still so the centered telemetry bar stays readable */
  .overlaytoggles.ovdock{font-size:calc(var(--camu,1rem)*.75*.75);padding:calc(var(--camu,1rem)*.3*.75) calc(var(--camu,1rem)*.4*.75);max-width:44cqw;gap:0}
}
@supports not (container-type:inline-size){
  @media (max-width:560px){ .overlaytoggles.ovdock{font-size:.5625rem;padding:.225rem .3rem;max-width:44vw;gap:0} }
}

/* v1.43.0 — away-access switch in the header bar, beside the QR button */
.lanbar .toggle.lanext{margin:0 0 0 auto;font-size:.85rem;white-space:nowrap}   /* Away access + its status sit at the right edge; the network address + QR stay left (owner) */
.lanbar .toggle.lanext input:disabled ~ .slider{opacity:.45;cursor:not-allowed}
/* grayed out because the viewer came in THROUGH the away link — switching it off there would cut
   their own connection. Only the OFF direction is locked; see wireExternalAccess(). */
.lanbar .toggle.lanext.locked{opacity:.55;cursor:not-allowed}
.lanbar #extmsg{font-size:.8rem}

/* ---------- kiosk mode (Home Assistant frame) ----------
   PRESENTATION ONLY. Hides the chrome that makes no sense inside a card — the brand header, the
   LAN/away bar and the tab strip — so the frame is the remote view and nothing else. It grants
   nothing: access is the remote token, checked server-side on every request. The float bar STAYS,
   because Dock / Cancel / Mow belong with the joystick. */
body.kiosk > header,
body.kiosk #lanbar,
body.kiosk nav.tabs,
body.kiosk #floatbar{display:none}
/* ^ ONE rule, closed HERE. The padding rule below was once inserted INSIDE this selector list (after a
   comma), which silently turned the whole thing into "header, #lanbar, nav.tabs, main {padding}" — the
   chrome was never hidden and the Home Assistant card showed the brand header and a mower picker stuck
   on "— loading… —" above the remote view (owner, 2026-09-21). tests/test_kiosk_frame.py loads the real
   frame in a browser and checks the header is gone. */
/* Every pixel of the frame belongs to the picture. The card's height is a fixed ratio of its width
   (an iframe card has no height setting), so page padding and a redundant heading come straight out
   of the camera — on a phone frame that is the difference between the whole control fitting and it
   needing a scroll. The ⚠️ blade warning STAYS: it is the one line here that is about safety. */
body.kiosk main{padding:.35rem .5rem}
body.kiosk .panel{padding:.4rem .55rem;margin-bottom:.55rem;border-radius:.625rem}
body.kiosk #rccam > h3,body.kiosk #rcopts > h3{display:none}   /* by id: an arranged Remote has rows, not "the first panel" */
body.kiosk .camwrap{margin:.25rem 0}
/* landscape auto-fullscreen is deliberately off in the card (it would hide the float bar and take
   Dock/Cancel/Mow with it), so the hint that tells you to rotate would be a lie here */
body.kiosk .rchint{display:none}
/* the card sizes the iframe, so the page itself must never add a second scrollbar around it */
body.kiosk{overflow-x:hidden}

/* The screen left behind after Shut down. It replaces the whole app, so it cannot rely on any
   layout above it — and it must use the theme rather than hardcoded colours, or it renders as
   unstyled text on a white page in one theme and is unreadable in the other. */
.shutwrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
  background:var(--bg);padding:2rem;text-align:center}
.shutbox{max-width:34rem}
.shuttitle{color:var(--text);font-size:1.25rem;font-weight:600;margin-bottom:.9rem}
.shutsub{color:var(--muted);font-size:.95rem;line-height:1.55;margin-top:.5rem}
.shutdim{opacity:.7;font-size:.88rem;margin-top:1rem}
.shutcode{display:inline-block;margin-top:.4rem;padding:.35rem .6rem;border-radius:.375rem;
  background:var(--panel2);border:1px solid var(--line);color:var(--text);
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9rem;user-select:all}

/* ---- fullscreen remote controls (v1.44.1) ---------------------------------------------------
   Driving by hand used to mean leaving the picture to change the deck or the blades. These live on
   the video itself and appear ONLY in fullscreen, laid out for landscape thumbs: blade speed as a row
   at the top center, drive speed and deck height across the bottom middle. */
/* Sizes come from sizeRcFs() in app.js, measured from the same base as the joystick and from the
   joystick's own diameter — so enlarging the controller shrinks these and pushes them clear instead
   of ending up underneath it. The fallbacks here are only for the first paint. */
/* Blade speed: a TIGHT, CENTERED horizontal row just under the status bar (owner) — clear of the
   right-edge map button. Auto-hidden while driving so it never sits over the picture you are steering. */
.rcfsblades{position:absolute;top:calc(var(--fsr-top,3.1rem) + var(--camu,1rem)*.15);left:var(--rcfsbladex,50%);transform:translateX(-50%);z-index:1002;
  display:none;flex-direction:row;justify-content:center;gap:calc(var(--camu,1rem)*.1875);max-width:var(--rcfsbladew,96%);width:max-content}   /* camLayout: between the docked panel and the mini-map (max-content: see .camtelbar) */
.camwrap.fs .rcfsblades,.camwrap:fullscreen .rcfsblades,.camwrap.pseudofs .rcfsblades{display:flex}
.camwrap.joyactive .rcfsblades{display:none}   /* auto-hide the blade row while the joystick is in use */
.camwrap.joyactive .rcmapbtn{display:none}     /* v2.11.0-inc19: likewise auto-hide the on-camera Edit Map button while driving, so it never sits over the picture you are steering */
.rcfsb{background:rgba(0,0,0,.55);color:#cfe8c4;border:1px solid rgba(255,255,255,.18);
  border-radius:calc(var(--camu,1rem)*.4375);padding:0 calc(var(--camu,1rem)*.39);height:max(1.5rem,calc(var(--camu,1rem)*1.5));
  font-size:max(.58rem,calc(var(--camu,1rem)*.585));line-height:1;cursor:pointer;white-space:nowrap}
.rcfsb:hover{background:rgba(0,0,0,.72)}
.rcfsb.on{background:#2e7d32;color:#fff;border-color:#4caf50;font-weight:600}
.rcfsboff{color:#ffb4a9}
.rcfsboff.on{background:#7a2f28;border-color:#c0554a;color:#fff}
/* Sits as close to the bottom edge as the device allows: what it covers there is the mower's own
   deck, which blocks that part of the view anyway. The fullscreen box already ends above a phone's home indicator
   (its safe-area border, below), so no env() here — that counted the indicator twice. */
.rcfsbar{position:absolute;left:var(--rcfsbarx,50%);bottom:calc(var(--camu,1rem)*.25);transform:translateX(-50%);z-index:1002;
  display:none;flex-direction:column;gap:calc(var(--camu,1rem)*.25);align-items:center;
  background:rgba(0,0,0,.55);border-radius:calc(var(--camu,1rem)*.625);padding:calc(var(--camu,1rem)*.4) calc(var(--camu,1rem)*.7);
  max-width:min(var(--rcfsbarmax,70vw),calc(var(--camu,1rem)*32.5));
  /* v2.8.3 (T2): the bar takes the room it is given and its sliders fill what each row has left — the estimated
     slider width (bar - 130px) overflowed the bar by 26 px each side at 667x375, onto the camera-link chip */
  width:min(var(--rcfsbarmax,70vw),calc(var(--camu,1rem)*32.5));box-sizing:border-box}
.camwrap.fs .rcfsbar,.camwrap:fullscreen .rcfsbar,.camwrap.pseudofs .rcfsbar{display:flex}
.rcfsctl{display:flex;align-items:center;gap:.625em;color:#cfe8c4;font-size:calc(var(--camu,1rem)*.8);white-space:nowrap;width:100%}
.rcfslbl{min-width:3.2em}
.rcfsctl .rngval{min-width:4em;text-align:right}
/* the slider's −/+ steppers (added by the page with inline rem sizes) follow the camera unit too — the same size as their
   inline one at the reference phone (13.3 px text, 1.5rem wide) */
.rcfsctl .rngwrap{gap:calc(var(--camu,1rem)*.15)!important}
.rcfsctl .rngstep{font-size:calc(var(--camu,1rem)*.8333);min-width:1.8em!important;padding:0 .48em!important;margin:0 .18em!important;
  border-radius:.48em!important}
/* v2.8.3 (F2-A): the two bar sliders are DRAWN by the page, in em, so track, thumb and the green fill grow with the
   camera unit together (a native range input stays 16 px tall whatever the screen). The fill ends exactly under the
   thumb's center: --p (0..1) is set by fmtRange on every change, programmatic ones included. Each fills what its row
   has left (flex), never an estimated width. At the reference phone: thumb 16 px, track 5 px — the native look. */
.rcfsctl input[type=range]{flex:1 1 0;width:auto;min-width:3em;-webkit-appearance:none;appearance:none;background:transparent;
  font:inherit;--thumb:1.25em;height:var(--thumb);margin:0;padding:0;cursor:pointer;touch-action:none}
.rcfsctl input[type=range]::-webkit-slider-runnable-track{height:.39em;border-radius:.2em;
  background:linear-gradient(to right,var(--accent) 0 calc(var(--thumb)/2 + var(--p,0)*(100% - var(--thumb))),rgba(255,255,255,.28) 0)}
.rcfsctl input[type=range]::-moz-range-track{height:.39em;border-radius:.2em;
  background:linear-gradient(to right,var(--accent) 0 calc(var(--thumb)/2 + var(--p,0)*(100% - var(--thumb))),rgba(255,255,255,.28) 0)}
.rcfsctl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--thumb);height:var(--thumb);
  margin-top:calc((.39em - var(--thumb))/2);border-radius:50%;background:var(--accent);border:0;box-shadow:0 0 0 .08em rgba(0,0,0,.35)}
.rcfsctl input[type=range]::-moz-range-thumb{width:var(--thumb);height:var(--thumb);border-radius:50%;background:var(--accent);border:0}
/* This line RESERVED 1em under the Deck row whether or not it had anything to say, so against the
   bar's own .4rem top padding there was ~1.25rem of dead space below — the uneven gap that pushed
   the whole bar up into the grass. It now takes height only when it actually says something. */
.rcfsmsg{color:#9fd18a;font-size:calc(var(--camu,1rem)*.75);min-height:0;line-height:1.25}
.rcfsmsg:empty{display:none}
/* v1.53.0 FULLSCREEN task controls — mirror the float bar (hidden by body.camfs-lock) so a fault can
   be cleared without leaving the picture. Sits just ABOVE the Drive/Deck bar (its bottom is measured
   from the bar's real height in positionRcFsTask, so the bar moves the task row up rather than the two
   overlapping); centered and width-capped like the bar so it never reaches under the joystick. */
.rcfstask{position:absolute;left:var(--rcfsbarx,50%);transform:translateX(-50%);z-index:1002;display:none;
  bottom:calc(var(--camu,1rem)*.25 + var(--camu,1rem)*2.8);gap:calc(var(--camu,1rem)*.4);
  max-width:min(var(--rcfsbarmax,70vw),calc(var(--camu,1rem)*32.5));
  flex-wrap:wrap;justify-content:center;   /* F2-A: a row with no room wraps upward (bottom-anchored), never under a neighbor */
  width:min(var(--rcfsbarmax,70vw),calc(var(--camu,1rem)*32.5));pointer-events:none}   /* the room it is given (a centered
  absolute box shrinks to the space right of its left edge and wrapped early); only the buttons take taps */
.rcfstask > *{pointer-events:auto}
.camwrap.fs .rcfstask,.camwrap:fullscreen .rcfstask,.camwrap.pseudofs .rcfstask{display:flex}
.rcfstb{background:rgba(0,0,0,.62);color:#eafff2;border:1px solid rgba(255,255,255,.2);
  border-radius:calc(var(--camu,1rem)*.5);padding:calc(var(--camu,1rem)*.34) calc(var(--camu,1rem)*.7);font-size:calc(var(--camu,1rem)*.82);font-weight:600;line-height:1;cursor:pointer;
  white-space:nowrap;min-height:1.5rem}   /* the tap floor */
.rcfstb:hover{background:rgba(0,0,0,.78)}
.rcfstb.primary{background:#2e7d32;border-color:#4caf50;color:#fff}
.rcfstb.danger{background:rgba(140,30,30,.72);border-color:#c0504d;color:#ffdede}
.rcfstb.fault{background:#b3541e;border-color:#e08a3c;color:#fff}      /* Dock -> Clear Fault */
/* Fault banner: prominent, top-center below the telemetry pill, and it does NOT fade with the idle
   timer — the whole point is that the user can see WHY the mower will not move. */
.rcfsfault{position:absolute;left:50%;transform:translateX(-50%);top:calc(var(--fsr-top, 3.1rem) + var(--camu,1rem)*.4);
  z-index:1003;background:rgba(150,40,20,.94);border:1px solid #e08a3c;border-radius:calc(var(--camu,1rem)*.625);color:#fff;
  font-size:calc(var(--camu,1rem)*.82);font-weight:600;padding:calc(var(--camu,1rem)*.34) calc(var(--camu,1rem)*.8);max-width:88%;text-align:center;
  box-shadow:0 2px calc(var(--camu,1rem)*.5) rgba(0,0,0,.5)}
.rcfsfault[hidden]{display:none}
/* v2.10.4: the camera window's arrow-responsiveness question — the fault banner's place, a neutral color */
.cvarrowask{background:rgba(22,30,40,.95);border-color:var(--accent,#3c8ce0)}
.cvarrowask .cvarrowbtns{display:flex;gap:.4em;justify-content:center;flex-wrap:wrap;margin:.4em 0}
.cvarrowask .sub{font-weight:400;opacity:.8;font-size:.9em}
/* Overview-camera keep-alive toggle — inside the camera box so it shows in the windowed modal AND in
   fullscreen; bottom-left, the least-contested corner of the view-only popup. */
.cvkeep{position:absolute;left:calc(var(--camu,1rem)*.5);bottom:var(--camkeepb,calc(var(--camu,1rem)*.5));z-index:1004;display:inline-flex;align-items:center;
  gap:calc(var(--camu,1rem)*.4);background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.18);border-radius:var(--camu,1rem);
  padding:calc(var(--camu,1rem)*.18) calc(var(--camu,1rem)*.55) calc(var(--camu,1rem)*.18) calc(var(--camu,1rem)*.4);font-size:calc(var(--camu,1rem)*.74);color:#eafff2;cursor:pointer;max-width:75%}
.cvkeep .slider{transform:scale(.8);width:calc(var(--camu,1rem)*2.875);height:calc(var(--camu,1rem)*1.625)}   /* F2-A: the switch in camera units */
.cvkeep .slider::before{left:calc(var(--camu,1rem)*.1875);top:calc(var(--camu,1rem)*.125);width:calc(var(--camu,1rem)*1.25);height:calc(var(--camu,1rem)*1.25)}
.cvkeep input:checked + .slider::before{transform:translateX(calc(var(--camu,1rem)*1.25))}
/* the shared switch animates "all": on a camera surface only its color and knob move — never its SIZE, which the unit
   changes and camLayout measures (a size still animating read 18 px short: the docked panel then covered Keep on) */
.camwrap .toggle .slider,.camtile .toggle .slider{transition:background-color .2s,border-color .2s}
.camwrap .toggle .slider::before,.camtile .toggle .slider::before{transition:transform .2s,background-color .2s}
/* In FULLSCREEN the Auto/WiFi/4G selector (.camsrc-fs) owns bottom-left — stack the keep-alive toggle
   just above it so they never overlap. In the windowed modal that selector is hidden, so the toggle
   stays at bottom-left. */
.cvwrap.fs .cvkeep,.cvwrap:fullscreen .cvkeep{bottom:var(--camkeepb,calc(var(--camu,1rem)*3.125))}   /* camLayout: MEASURED above the chip */
/* Overview camera popup task buttons — view-only camera (no joystick to dodge), so the NORMAL buttons
   sit right on top of the picture, bottom-center, always visible in both windowed and fullscreen popup. */
.cvtask{position:absolute;left:var(--cvtaskx,50%);bottom:calc(var(--camu,1rem)*.5);transform:translateX(-50%);
  z-index:1002;display:flex;gap:calc(var(--camu,1rem)*.4);flex-wrap:wrap;justify-content:center;max-width:var(--cvtaskmax,94%);
  width:var(--cvtaskmax,auto);pointer-events:none}   /* camLayout: the room it is given; only the buttons take taps */
.cvtask > *{pointer-events:auto}

/* Remote tab settings rows: the value BEFORE the slider, and never wrapping (v1.44.1).
   #tab-remote is a two-column grid at >=860px with the right column only 300-380px wide, so
   label(min 180px) + slider + value did not fit and .prow's flex-wrap dropped the value onto its own
   line. Reordering is CSS-only — the markup keeps the value after the input, where every other panel
   in the app expects it. */
#tab-remote .prow{flex-wrap:nowrap}
#tab-remote .prow label{flex:0 1 auto;min-width:0}
#tab-remote .prow .rngval{order:2;flex:0 0 auto;min-width:3.625rem;text-align:right}
#tab-remote .prow input[type=range]{order:3;flex:1 1 3.75rem;min-width:0;width:auto}

/* A custom update feed (LYMOW_UPDATE_FEED) silently disabling real updates — say so loudly. */
.warnline{margin-top:.4rem;padding:.4rem .6rem;border-radius:.5rem;font-size:.85rem;
  background:rgba(255,180,60,.12);border:1px solid rgba(255,180,60,.45);color:#ffc86b}

/* A setting that is locked because another one owns it — visibly not editable, still readable. */
.toggle.locked{opacity:.65}
.toggle.locked .slider{cursor:not-allowed}

/* The name in the header links to the community group. display:contents so the anchor adds NO box of
   its own — the logo and "Toolkit" stay exactly where the flex layout already put them, and the only
   visible change is the cursor. rel="noopener" because target="_blank" without it hands the opened
   page a reference back to this one. */
.brandlink{display:contents;color:inherit;text-decoration:none}
.brandlink:hover .brandsub{text-decoration:underline}
/* v1.52 language selectors */
.gatelang{display:flex;align-items:center;gap:.4rem;margin:.2rem 0 .6rem}
.gatelang .sel{flex:1;min-width:0}

/* v2 Phase 6: multi-map engines across the fleet (one row per mower whose engine is running) */
.fleetmm{display:flex;flex-direction:column;gap:.3rem;margin:.2rem 0 .4rem}
.fleetmmrow{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.fleetmmrow .fleetmmabort{margin-left:auto}
/* v2 Phase 3.6: broadcast preview table */
.bctable{width:100%;border-collapse:collapse;margin-top:.5rem;font-size:.92em}
.bctable td{padding:.15rem .4rem;border-bottom:1px solid rgba(128,128,128,.25)}
.bctable td:last-child{text-align:right;font-weight:600}

/* v2 Phase 5: multi-view camera grid — inside the Camera popup, one tile per mower.
   Fills the screen: a near-square arrangement (--cols x --rows from the mower count), every tile the same
   size, the whole block centered horizontally AND vertically in the fullscreen box. */
.camgrid{display:flex;flex-direction:column;gap:.4rem;flex:1;min-height:0}
.camgridbar{display:flex;align-items:center;justify-content:center;gap:.6rem;min-height:1.2rem}
.camgridtiles{flex:1;min-height:0;display:grid;gap:.6rem;width:100%;
  grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));grid-template-rows:repeat(var(--rows,1),var(--rowh,13.75rem));
  align-content:center;justify-content:center;align-items:center;justify-items:center}
.camtile{position:relative;background:#000;border-radius:calc(var(--camu,1rem)*.625);overflow:hidden;min-height:0;display:flex;flex-direction:column;color:#eee}
.camtilepic{position:relative;flex:1;min-height:7.5rem;background:#000;cursor:pointer}
.camtilepic .camvid,.camtilepic canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.camtilestatus{position:absolute;left:.5rem;bottom:.4rem;font-size:.8rem;background:rgba(0,0,0,.55);padding:.15rem .4rem;border-radius:.375rem}
.tilectl{padding:.4rem .5rem;background:#15181d;display:flex;flex-direction:column;gap:.3rem;transition:opacity .3s}
.tilehead{display:flex;align-items:center;gap:.4rem}
.tilerow{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.tileled.on{background:#e0a422;color:#000}
.camtile.camidle .tilectl{opacity:.35}
.warn4g{color:#ff6b6b}
/* fleet stat block header: dot + name on one baseline, nothing else (the Status card carries the state) */
.fleetmowername{display:flex;align-items:center;gap:.45rem;margin:0 0 .4rem;line-height:1.2}
.fleetmowername .fmdot{flex:none}
.fleetroll,.fleetmmrow,.tilehead,.camgridbar{align-items:center}

/* the fullscreen camera's black-bar buttons: ⊞ Grid sits LEFT of ✕ Exit (they shared one slot) */
.camwrap.fs .camgridbtn{right:var(--camgridr,calc(var(--camu,1rem)*5.2))}   /* camLayout: MEASURED from ✕ Exit's left edge */
/* the grid opens fullscreen by default, like the camera */
.modalbox.camgridfs{position:fixed;inset:0;max-width:none;max-height:none;width:auto;height:100vh;height:100dvh;border-radius:0;margin:0;padding:max(.6rem,var(--sat)) max(.8rem,var(--sar)) max(.6rem,var(--sab)) max(.8rem,var(--sal));overflow:hidden;z-index:1300;background:#0b0d10;color:#eee;display:flex;flex-direction:column}
.modalbox.camgridfs #modalbody{flex:1;min-height:0;display:flex;flex-direction:column}
.modalbox.camgridfs #modalbtns{flex:none;justify-content:center}
.modalbox.camgridfs #modaltitle{color:#eee}

/* many mowers on a small screen: rows would drop below a useful size -> fixed row height + vertical scroll */
.camgridtiles.scroll{grid-template-rows:none;grid-auto-rows:var(--rowh,13.75rem);align-content:start;overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:.4rem}


/* focused tile = fullscreen inside the grid popup, its feed untouched; controls auto-hide (camidle) */
.camtile.fs{position:fixed;inset:0;z-index:1320;border-radius:0;
  font-size:var(--camu,1rem)}   /* v2.8.3 (F2-A): the focused tile's ONE unit (camScale), like .camwrap */
/* LANDSCAPE-ONLY fullscreen on phones: a fullscreen entered in portrait is laid out as landscape (box = the
   phone's height x width) and turned -90°, so the picture and every control get their landscape room. */
.rot{position:fixed!important;inset:auto!important;top:0!important;left:0!important;
  width:100vh!important;width:100dvh!important;height:100vw!important;max-width:none!important;max-height:none!important;
  transform-origin:0 0;transform:rotate(-90deg) translateX(-100%);aspect-ratio:auto!important;border-radius:0}
.camwrap.fs.rot .camvid,.camwrap.fs.rot img,.cvwrap.fs.rot .camvid,.cvwrap.fs.rot img,.camtile.fs.rot .camvid{width:100%;height:100%}
/* v2.8.3 (owner 2026-09-29, phone2.png: the phone's camera cutout sat on the docked toggles — "it makes the toggles
   unselectable"): a fullscreen view keeps EVERY control out of the phone's safe area. The box still covers the whole
   screen, but the strips the cutout, the rounded corners and the home indicator own are its BORDER — black, and it takes
   the taps, so nothing underneath is ever pressed blind. Its children are laid out in the padding box, so every control
   (camLayout measures offsets and clientWidth, the same space) starts inside the safe area — one rule, every surface. */
.camwrap.fs,.camwrap.pseudofs,.camtile.fs,.mapwrap.fs{border:0 solid #000;border-width:var(--sat) var(--sar) var(--sab) var(--sal)}
/* ...and under the sideways view the box is turned -90°: its top edge lies on the screen's LEFT, its right edge on the
   screen's TOP, its bottom on the RIGHT, its left on the BOTTOM */
.rot{border-style:solid!important;border-color:#000!important;border-width:var(--sal) var(--sat) var(--sar) var(--sab)!important}
.camtile.fs .camtilepic{min-height:0}
.camtile.fs .tilectl{position:absolute;left:0;right:0;bottom:0;background:rgba(21,24,29,.85)}
.tilefsbar{position:absolute;top:calc(var(--camu,1rem)*.5);right:calc(var(--camu,1rem)*.5);z-index:3;display:flex;gap:calc(var(--camu,1rem)*.4);background:rgba(0,0,0,.6);padding:calc(var(--camu,1rem)*.3);border-radius:calc(var(--camu,1rem)*.5)}
.camtile.fs.camidle .tilectl,.camtile.fs.camidle .tilefsbar{opacity:0;pointer-events:none}

/* grid tiles: overlays in ROWS so nothing covers anything else, phone tiles included (owner 2026-09-02).
   top bar (💡 · name · feed state · ⊞/✕ Exit when focused · red ✕), the telemetry pill on its own line under
   it, bottom bar (Keep on · Auto/WiFi/4G · task buttons · ⛶) that wraps onto a second line on a narrow tile. */
.camtile{aspect-ratio:16/9;height:var(--rowh,13.75rem);width:auto;max-width:100%}   /* the row IS the tile: 16:9, centered */
.camtile.fs{aspect-ratio:auto;height:auto;width:auto;max-width:none}               /* focused: the whole screen, picture centered */
.camtile .camtilepic{position:absolute;inset:0;min-height:0}
.camtile .tiletop,.camtile .tilebottom{position:absolute;left:0;right:0;z-index:1001;display:flex;align-items:center;gap:calc(var(--camu,1rem)*.35) calc(var(--camu,1rem)*.45);padding:calc(var(--camu,1rem)*.4) calc(var(--camu,1rem)*.5);flex-wrap:wrap;pointer-events:none;transition:opacity .35s ease}
.camtile .tiletop{top:0}
.camtile .tilebottom{bottom:0}
.camtile .tiletop>*,.camtile .tilebottom>*{pointer-events:auto}
.camtile .camled{position:static;flex:none}
.camtile .tilehead{position:static;display:flex;align-items:center;gap:calc(var(--camu,1rem)*.35);background:rgba(0,0,0,.55);padding:calc(var(--camu,1rem)*.2) calc(var(--camu,1rem)*.5);border-radius:calc(var(--camu,1rem)*.375);font-size:calc(var(--camu,1rem)*.85);white-space:nowrap;max-width:55%;overflow:hidden;text-overflow:ellipsis}
.camtile .camtilestatus{position:static;font-size:calc(var(--camu,1rem)*.8);background:rgba(0,0,0,.55);padding:calc(var(--camu,1rem)*.15) calc(var(--camu,1rem)*.4);border-radius:calc(var(--camu,1rem)*.375);white-space:nowrap}
/* v2.8.5 (J2/J6): a status line that is also the way to try again / take the camera back — tappable, its whole text shown */
.camretry{cursor:pointer;text-decoration:underline;pointer-events:auto}
.camtile .camtilestatus.camretry{white-space:normal}
.camtile .tileclose{position:static;margin-left:auto;background:#8a2f2f;color:#fff;border:1px solid transparent;min-width:calc(var(--camu,1rem)*2.125)}
.camtile .tilefsbar{position:static;margin-left:auto;display:flex;gap:calc(var(--camu,1rem)*.4);background:rgba(0,0,0,.6);padding:calc(var(--camu,1rem)*.3);border-radius:calc(var(--camu,1rem)*.5)}
.camtile .tilefsbar[hidden]{display:none}
.camtile .tiletop .camtelbar{position:static;transform:none;display:flex;flex:1 1 100%;justify-content:center;margin:0 auto;max-width:100%;order:9;pointer-events:none}
.camtile .tilekeep{position:static;order:0;flex:none;margin:0}
.camtile .camsrc-fs{position:static;order:1;display:inline-flex;flex:none;bottom:auto;left:auto;gap:calc(var(--camu,1rem)*.4);border-radius:calc(var(--camu,1rem)*.625)}
.camtile .rcfstask{position:static;transform:none;order:2;display:flex;width:auto;flex:1 1 calc(var(--camu,1rem)*14);justify-content:center;flex-wrap:wrap;gap:calc(var(--camu,1rem)*.35);bottom:auto;left:auto}
.camtile .camfs{position:static;order:3;margin-left:auto;display:block;flex:none;bottom:auto;right:auto}
/* idle: a tile's controls fade, its READINGS stay (v2.14.9, owner) — the row's other items fade, not the row */
.camtile.camidle .tiletop > :not(.tiletel),.camtile.camidle .tilebottom{opacity:0;pointer-events:none}
.camtile.fs .tileclose{display:none}

/* ── v2.8.3 F2-A: the controls that follow the SCREEN on their own today (vmin) follow the BOX on a scaled surface ──
   .camscale = a surface camScale() has given a unit (fullscreen Remote / popup / focused tile, the HA card). The
   windowed views keep the rules above. Floors: text never below .58rem, a tap target never below 1.5rem (24 px). */
/* v2.8.3-inc6 (owner): the floating data (status line, telemetry pill) 25% smaller than F2-A made it — floor .45rem */
.camscale .camstatus{font-size:max(.45rem,calc(var(--camu)*.465));padding:calc(var(--camu)*.15) calc(var(--camu)*.45);border-radius:calc(var(--camu)*.375)}
.camscale .camtelbar{font-size:max(.45rem,calc(var(--camu)*.45));padding:calc(var(--camu)*.2) calc(var(--camu)*.56);border-radius:var(--camu);
  box-shadow:0 2px calc(var(--camu)*.5) rgba(0,0,0,.45);
  gap:calc(var(--camu)*.11) calc(var(--camu)*.53)}
.camscale .camtelbar .tb-row{gap:calc(var(--camu)*.53)}
.camscale .camtelbar .tb-cell{font-size:1.2333em}
.camscale .camtelbar .tb-bw{width:1.3542em;height:2.0833em;border-radius:.3125em}
.camscale .camtelbar .tb-bw::after{top:-.3542em;width:.625em}
.camscale .camtelbar .tb-ico svg{width:1.5625em;height:1.5625em}
.camscale .camtelbar .tb-rtk svg{width:1.3542em;height:1.3542em}
.camscale .minimap{width:max(7.5rem,calc(var(--camu)*7.5))}
.camscale .camled{width:calc(var(--camu)*2.125);height:calc(var(--camu)*2.125)}   /* no narrow-box 30 px: the unit already shrinks it */

/* ONE color language for the mower controls, everywhere: the float bar's. The fullscreen strips (Remote,
   popup) and the grid tiles use these exact rules — Start mow blue, Pause/Resume green, Clear Fault orange,
   Cancel Task red, Dock plain — instead of their own palette. */
.rcfstb{background:#2c7a43;color:#fff;border:1px solid transparent}
.rcfstb.primary{background:#2c7a43;border-color:transparent;color:#fff}
.rcfstb.primary.danger{background:#1f6f8b;border-color:transparent;color:#fff}
.rcfstb.fault{background:#b5742a;border-color:transparent;color:#fff}
.rcfstb.danger{background:#8a2f2f;border-color:transparent;color:#fff}
.rcfstb:hover,.rcfstb:active{filter:brightness(1.15)}



/* a WORKING button: unselectable, spinner until the outcome is in (save / apply / broadcast) */
.btn.busy{opacity:.75;cursor:progress;pointer-events:none}
.btn .spin{display:inline-block;animation:btnspin 1.1s linear infinite}
@keyframes btnspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){ .btn .spin{animation:none} }
/* fleet status pill over the map: counts per state */
.telbar .tb-fleet{font-weight:600}.telbar .tb-sep{opacity:.6;margin:0 .35rem}.telbar .tb-warn{color:#d29922}.telbar .tb-bad{color:#f85149}

/* a control greyed because a switch it needs is off (wireDependent) — a tap on it names the switch */
.dep-off{opacity:.45}
.dep-off input,.dep-off button{cursor:not-allowed}

/* ── Which notifications (v2.2.0): the per-notification list in a modal ─────────────────────── */
.nfbar{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-bottom:.4rem}
.nfbar input[type=search]{flex:1 1 12rem;min-width:10rem}
.nfnote{margin:.2rem 0 .6rem}
.nfgroup{margin:.6rem 0 .2rem}
.nfghead{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.3rem 0;border-bottom:1px solid var(--line,#333)}
.nfrow{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.25rem 0}
.nfrow .nfitem{flex:1 1 16rem;margin:0}
.nfrow .nfex{display:block;margin-left:2.6rem;opacity:.85}
.nfrow .nfmsg{flex:1 1 100%;margin-left:2.6rem}
.bkrtk{margin-top:.15rem}
/* v2.7.0: collapsible map settings (Map layers / Overlays / Multi-pass & cut angle offset) */
.mapgrp{display:block;border:1px solid var(--line);border-radius:.625rem;padding:.1rem .6rem .35rem;background:var(--panel);margin:.25rem 0 .5rem;min-width:0}
.mapgrp:not([open]){padding-bottom:.1rem}
.mapgrp>.maptools{margin:.1rem 0 .3rem}
.mapgrp>summary{cursor:pointer;font-weight:600;padding:.35rem 0;list-style:none;display:flex;align-items:center;gap:.4rem;font-size:.9rem}
.mapgrp>summary::before{content:"\25b8";font-size:.8rem;color:var(--muted)}
.mapgrp[open]>summary::before{content:"\25be"}
.mapgrp>summary::-webkit-details-marker{display:none}
.maptools{align-items:flex-start}

/* Fleet dashboard (v2.7.0-inc3): bar collapsed = every mower's kept strip in one compact row each */
.fleetstats.strip .fleetmower{padding:.3rem .5rem;margin:.25rem 0}
.fleetstats.strip .fleetmowername{margin:0 0 .25rem;font-size:.95rem}
.fleetstats .fmname{font-weight:600}
.fleetstats .dashrow.closed .cards{margin-top:.15rem}

/* Nothing to say = no space taken: the alert strip and the command-confirmation line used to hold ~30 px of
   empty height between the tab strip and the dashboard (owner: "right up against each other"). */
#alerts:empty, #cmdpending:empty{display:none}

/* Remote → Mower settings → Blade speed (v2.7.0-inc6): the four buttons were squeezed onto one line with the label
   and the status text and Turbo was cut off (owner, 3.png). Own layout: label line, then the four buttons sharing the
   full width, then the status line — the same at every width. */
#tab-remote .prow.rcbladerow{flex-wrap:wrap;align-items:center;gap:.35rem .6rem}
#tab-remote .prow.rcbladerow label{flex:1 1 100%}
#tab-remote .prow.rcbladerow .rcbladebtns{flex:1 1 100%;display:flex;width:100%}
#tab-remote .prow.rcbladerow .rcbladebtns .segbtn{flex:1 1 0;min-width:0;text-align:center;padding:.5rem .3rem;white-space:nowrap}
#tab-remote .prow.rcbladerow #rcbladestate{flex:1 1 100%;order:4;margin:0}

/* Phone Access & Notifications → Address for phones (v2.7.0-inc7): the dropdown sat at the far right and was
   too narrow (owner). The label keeps its own width; the control takes the room next to it. */
#pushsection .prow>label{flex:0 0 auto;min-width:0}
#pushsection .prow select.sel{flex:1 1 18rem;max-width:30rem;min-width:14rem;margin-left:0}
#pushsection .prow input.sel{flex:1 1 18rem;max-width:30rem;min-width:14rem;width:auto}

/* Dashboard quick actions (v2.7.0-inc10): camera + center-on-map beside the light, single mode and each fleet row */
.dashhead .dashact, .fleetmowername .dashact{width:1.875rem;height:1.875rem;min-height:1.875rem;font-size:.9375rem;padding:0;border-radius:.5rem;margin-left:.2rem}
.fleetmowername .dashact{margin-left:.1rem}
/* v2.8.1 — Updates tab, Docker: the numbered "turn on automatic updates" steps with copyable commands */
.dockhow{margin:.5rem 0 .6rem;padding-left:1.3rem}
.dockhow li{margin:.45rem 0;color:var(--text)}
.dockhow .updcmd,#upd_dockhow>.updcmd{margin:.35rem 0 .3rem;white-space:pre;overflow-x:auto;max-width:100%}
#upd_dockhow .updcopy{margin-bottom:.3rem}
/* v2.8.3 (N21) — which compose file a command box is for, when the Toolkit cannot tell which one this install uses */
.updlbl{margin:.6rem 0 .2rem;font-size:.85rem;font-weight:600;color:var(--muted)}
#upd_dockman>.updcmd{margin:.35rem 0 .3rem;white-space:pre;overflow-x:auto;max-width:100%}
#upd_dockman .updcopy{margin-bottom:.3rem}

/* v2.8.5 — zone settings: Mixed / Custom / Global beside each setting, the disagree line, the deconflict table, the
   Start-mow question. Sizes in rem/em (relative to the screen, owner rule); 1px lines are hairlines. */
.zssrc{display:inline-block;margin-left:.4em;padding:0 .45em;border-radius:999px;font-size:.72em;font-weight:600;line-height:1.5;vertical-align:middle;border:1px solid var(--line);color:var(--muted)}
.zssrc-zone{color:var(--accent);border-color:var(--accent)}
.zssrc-mixed,.zssrc-some{color:var(--warn);border-color:var(--warn)}
button.zssrc.zsreset{background:transparent;cursor:pointer;color:var(--text)}
.zsmixed input[type=range]{opacity:.55}
.zsmixed .rngval{color:var(--warn)}
.mowq{display:flex;flex-direction:column;gap:.45rem;margin:.5rem 0}
.mowqopt{display:block;padding:.45rem .6rem;border:1px solid var(--line);border-radius:.5rem;cursor:pointer}
.mowqopt.on{border-color:var(--accent);background:rgba(122,199,79,.08)}   /* set by the page (no CSS :has — older Safari) */
.mowqfour{display:block;margin:.2rem 0 0 1.6em}
.mowqnote{color:var(--warn)}
.zchip .zscustom{color:var(--accent);font-size:.9em}
/* v2.9.0: what the owner chose not to see on the Remote's picture STAYS hidden (Remote → Camera options → Show on camera).
   Never here: the blade buttons, Exit and fault messages. */
#camwrap.rchide-toggles .overlaytoggles.ovdock,#camwrap.rchide-bar .rcfsbar,#camwrap.rchide-task .rcfstask,
#camwrap.rchide-map #minimap,#camwrap.rchide-map #minimapbtn,
#camwrap.rchide-link .camsrc-fs,#camwrap.rchide-light #camled{display:none !important}
.rcshowrow{flex-wrap:wrap;align-items:flex-start}
.rcshowrow > label{flex:1 1 100%}
.rcshow{display:flex;flex-wrap:wrap;gap:.35rem .9rem;flex:1 1 100%}
.rcshowchk{display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;white-space:nowrap}

/* ---------- the PHONE MENU (v2.9.2) ----------
   Owner: "the header and menu items really should be a hamburger hovering in the upper right corner in mobile view instead
   of being there! It occupies too much space in mobile." On a phone, upright or sideways (app.js _dashPhone) app.js
   _navPlace moves the header, the network bar and the tab row into #navdrawer, behind a ☰ that floats in the upper-right
   corner, OVER the first container (owner: "It should load right on the first visible container! I am trying to remove
   so much scrolling!" — inc1 kept a strip for it). The top banner's text keeps clear of it and of the notch. */
.navbtn{position:fixed;top:calc(.45rem + var(--sat));right:calc(.6rem + var(--sar));z-index:3001;width:2.75rem;height:2.75rem;
  display:flex;align-items:center;justify-content:center;border-radius:.75rem;border:1px solid var(--line);
  background:rgba(18,24,20,.92);color:var(--text);font-size:1.35rem;line-height:1;cursor:pointer;box-shadow:0 .25rem .9rem rgba(0,0,0,.45)}
body.navphone .expbar{padding-top:calc(.45rem + var(--sat));padding-right:calc(3.6rem + var(--sar))}
.navshade{position:fixed;inset:0;z-index:2999;background:rgba(0,0,0,.5)}
.navdrawer{position:fixed;top:0;right:0;bottom:0;z-index:3000;width:min(88vw,24rem);overflow-y:auto;overscroll-behavior:contain;
  background:var(--panel);border-left:1px solid var(--line);box-shadow:-.5rem 0 1.5rem rgba(0,0,0,.5);
  padding:calc(3.65rem + var(--sat)) 0 calc(1rem + var(--sab)) 0}
.navdrawer > header{position:static;padding:.6rem 1rem;align-items:flex-start;flex-direction:column}
.navdrawer > header .picker{align-items:flex-start;align-self:stretch}
.navdrawer > header #device,.navdrawer > header #locpick{width:100%}
.navdrawer > .lanbar{border-top:0}
.navdrawer > .tabs{position:static;flex-direction:column;overflow:visible;padding:.4rem 0;background:transparent}
.navdrawer > .tabs .tab{text-align:left;padding:.85rem 1rem;border-bottom:0;border-left:.1875rem solid transparent}
.navdrawer > .tabs .tab.active{border-left-color:var(--accent)}
.navdrawer > .tabs .tablock{position:static;margin:.3rem 0 0;text-align:left;padding:.85rem 1rem;background:transparent}
body.mapfs-lock .navbtn,body.camfs-lock .navbtn,body.kiosk .navbtn,body.kiosk .navdrawer,body.kiosk .navshade{display:none!important}

/* v2.9.2: a schedule's zones in mow order — drag to reorder (app.js openScheduleModal) */
.zorder{list-style:none;margin:.3rem 0 0;padding:0;display:flex;flex-direction:column;gap:.25rem}
.zorder li{display:flex;align-items:center;gap:.5rem;padding:.45rem .6rem;border:1px solid var(--line);border-radius:.5rem;
  background:var(--panel2);cursor:grab;touch-action:none;user-select:none}
.zorder li.dragging{opacity:.6;border-color:var(--accent);cursor:grabbing}
.zorder li b{color:var(--accent);min-width:1.2em}

/* v2.9.2-inc2: 🔒 Layout unlocked — the status floater's items as chips, tap to show or hide (app.js _tbChips); the
   Remote's camera bar shows for this even without a picture */
.telbar.tbedit{pointer-events:auto;display:flex!important}
.telbar.tbedit .tb-row{flex-wrap:wrap;white-space:normal;justify-content:center;gap:.3rem}
.tbchip{font:inherit;color:inherit;min-height:1.6rem;padding:.15rem .55rem;border-radius:1rem;cursor:pointer;white-space:nowrap;
  background:rgba(122,199,79,.2);border:1px solid var(--accent)}
.tbchip.off{background:transparent;border-color:rgba(255,255,255,.3);opacity:.6}

/* v2.13.0: the zone-settings TABLE view (Form / Table toggle on the Mowing settings panel) */
.cutpanel .cphead{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.cutpanel .zsviewwrap{margin-left:auto;display:inline-flex;align-items:center;gap:.3rem}
.zsviewbtns .segbtn{padding:.35rem .8rem;font-size:.85rem;min-height:2rem}
.cutpanel.zstable-on #cp_mapro,.cutpanel.zstable-on .cpgroup:not([data-key=cp_channel]){display:none}
.zstable{margin:.3rem 0 .5rem}
.ztmower{font-weight:600;margin:.6rem 0 .25rem;font-size:.95rem}
.ztnone{color:var(--muted);font-size:.9rem;padding:.4rem 0}
.ztwrap{overflow:auto;max-height:70vh;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border:1px solid var(--line);border-radius:.625rem;background:var(--panel)}
.zt{border-collapse:separate;border-spacing:0;font-size:.85rem;min-width:100%}
.zt th,.zt td{padding:.3rem .4rem;border-bottom:1px solid var(--line);border-right:1px solid var(--line);white-space:nowrap;text-align:left;vertical-align:middle;background:var(--panel)}
.zt thead th{position:sticky;top:0;z-index:3;background:var(--panel2);font-weight:600;color:var(--muted)}
.zt thead th .zthl{color:var(--text)}
/* v2.14.5: every column header (desktop) and every setting name + the Zone corner (phone) sorts the zones — a plain-text
   button the size of its label, the ▲ / ▼ on the active one */
.zt .ztsort{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:inherit;
  display:inline-flex;align-items:center;gap:.25rem;min-height:1.5rem;white-space:inherit}
.zt .ztsort .zthl{color:var(--text)}
.zt .ztsort:hover .zthl,.zt .ztsort:focus-visible .zthl{text-decoration:underline}
.zt .ztsort .ztarr{color:var(--accent);font-size:.75em}
/* v2.14.5: the zone's cut lines — hover the name or a cut-line cell (mouse), tap them (touch); below the name, or above
   when there is more room above (app.js _ztThumbShow places it). Above the floating bar and the modals' backdrop, under
   the center confirmations (z4500). */
.zt .ztzname{cursor:pointer;text-decoration:underline dotted;text-underline-offset:.15em}
.ztthumb{position:fixed;z-index:4400;width:min(15rem,80vw,60vh);background:var(--panel2);color:var(--text);border:1px solid var(--line);
  border-radius:.625rem;padding:.4rem .5rem;box-shadow:0 .4rem 1.5rem rgba(0,0,0,.45);pointer-events:auto}
.ztthumb[hidden]{display:none}
.ztthumb.ztthov{pointer-events:none}
.ztthumb svg{display:block;width:100%;height:auto;background:var(--panel);border-radius:.4rem}
.ztthumb .ztthn{font-weight:600;margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ztthumb .ztthc{color:var(--muted);font-size:.8rem;margin-top:.25rem}
.ztthumb.ztttight .ztthc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* made smaller to fit: one line */
.zt th.ztnm{position:sticky;left:2.4rem;z-index:2;background:var(--panel2);font-weight:600;max-width:11rem;overflow:hidden;text-overflow:ellipsis}
.zt .ztpk{position:sticky;left:0;z-index:2;width:2.4rem;min-width:2.4rem;background:var(--panel2);text-align:center}
.zt thead th.ztnm,.zt thead th.ztpk{z-index:4}
.zt tr.ztall th,.zt tr.ztall td{background:var(--panel2)}
.zt tr.ztsel th.ztnm{color:var(--accent)}
.zt .ztc{padding:.2rem .3rem}
.zt .ztc.ztown{box-shadow:inset .2rem 0 0 var(--accent)}
.zt .ztc.ztown .ztsel,.zt .ztc.ztown .ztnum{color:var(--accent);font-weight:600}
.zt .ztc.ztedit{box-shadow:inset .2rem 0 0 var(--warn);background:rgba(255,170,0,.12)}
.zt .ztsel,.zt .ztnum{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:.4rem;padding:.3rem .35rem;font-size:.85rem;min-height:2.2rem;max-width:100%;box-sizing:border-box}
.zt .ztsel{width:max-content;min-width:5.5rem}
.zt .ztnum{width:4.4rem}
.zt .ztang{display:inline-flex;gap:.25rem;align-items:center}
.zt .ztck{width:1.25rem;height:1.25rem;margin:.3rem .2rem}
.zt .ztdash{display:inline-block;min-width:3rem;text-align:center;color:var(--muted)}
.zt .ztpick{width:1.25rem;height:1.25rem;margin:0}
.ztlegend{display:flex;gap:.9rem;flex-wrap:wrap;margin:.4rem .1rem 0;font-size:.78rem;color:var(--muted)}
.ztlg{padding-left:.9rem;position:relative}
.ztlg::before{content:"";position:absolute;left:0;top:.15em;width:.55em;height:1em;border-radius:.1em;background:var(--accent)}
.ztlg.ztedit::before{background:var(--warn)}
/* phone: sideways (settings down the pinned first column, zones across); the table scrolls, never the page */
.zt.ztphone{font-size:.8rem}
.zt.ztphone th.ztnm{left:0;max-width:7.5rem;white-space:normal;line-height:1.15;font-size:.78rem}
.zt.ztphone thead th.ztzh{white-space:normal;max-width:7rem;line-height:1.15;vertical-align:bottom}
.zt.ztphone thead th.ztzh.ztsel{color:var(--accent)}
.zt.ztphone .ztsel{min-width:5rem;max-width:7rem}
.ztwrapp{max-height:none}   /* phone: the page scrolls down as usual; only the zones scroll sideways inside */
/* v2.14.5-inc6: a touch screen's text boxes and drop-downs at 1rem (the root never goes under 16 px) — Safari ZOOMS the
   page in on a field whose text is smaller, and the angle field ended up out of sight (tests/test_touch_text_size_e2e.py) */
@media (pointer:coarse){.zt .ztsel,.zt .ztnum{font-size:1rem}}
.zstable .help{flex:0 0 auto}
/* v2.13.0-inc2: zone order handle + the unsaved count beside Form / Table */
.zt .ztmove{background:transparent;border:1px solid var(--line);border-radius:.4rem;color:var(--muted);cursor:grab;font-size:.9rem;line-height:1;padding:.2rem .35rem;margin-right:.35rem;min-width:1.7rem;min-height:1.7rem;vertical-align:middle;touch-action:none}
.zt .ztmove:hover{color:var(--text)}
.zt.ztphone .ztmove{margin:0 0 0 .3rem;cursor:pointer}
.zt.ztphone .ztzhc{display:flex;align-items:center;gap:.1rem;margin-bottom:.15rem}
.zsunsaved{display:inline-block;white-space:nowrap;padding:.1rem .55rem;border-radius:999px;font-size:.78rem;font-weight:600;color:#1a1200;background:var(--warn)}
/* v2.13.0-inc3: drag-and-drop zone order, every device — the drop line (a row line on a desktop, a column line on a phone) */
.ztdropline{position:fixed;z-index:4300;pointer-events:none;height:.3rem;margin-top:-.15rem;border-radius:.15rem;background:var(--ovrow)}
.ztdropline.ztdropv{height:auto;width:.3rem;margin-top:0;margin-left:-.15rem}
.zt.ztdragging .ztmove{cursor:grabbing}

/* v2.13.1 — "This mow only" runtime panel at the top of Mower settings (shown only while a mow runs).
   Visually distinct from the permanent Save below it (an inset card with an accent edge) so a one-mow
   change is never mistaken for a saved zone setting. Sizes relative to the screen, no fixed px. */
/* v2.13.1 — "This mow only": the SAME row layout as the rest of Mower settings (its controls fill the
   row; the label gives way). Distinct only by a top accent rule, a light tint and the 🌿 header — NO
   horizontal inset, so the sliders and the blade buttons are the full width the card gives every other
   row (the inc2 build nested each control inside its label and squeezed them to 40%). */
.mowruntime[hidden]{display:none}
.mowruntime{border-top:0.2rem solid var(--accent);background:rgba(22,163,74,.06);
  padding:0.5rem 0 0.25rem;margin:0 0 0.7rem}
.mowruntime h4{margin:0 0 0.15rem;font-size:0.95rem;display:flex;align-items:center;gap:0.35rem}
.mowruntime .mrsub{margin:0 0 0.5rem;font-size:0.8rem;opacity:0.85}
.mowruntime .mrmsg{margin-top:0.35rem;font-size:0.82rem;min-height:1em}
.mowruntime .paramactions{margin-top:0.5rem}
/* v2.14.5-inc3: Table view open with a mow running — the Mower settings box shows This mow only and nothing else */
#mowerset.msrtonly > :not(#mowruntime){display:none!important}
