/* WYLA customer app — the approved mockup's design system, as real stylesheet.
   Single dark control-room theme, committed deliberately (not an omission).
   No CDN, no webfonts: system faces only, so it renders offline and identically
   on a rural laptop with no internet. */

:root{
  /* --ink-dim was #5C7089, 3.4:1 on a panel: too faint for the small labels, table headings and help text it is used
     for (console review, 7 Nov 2026). #7A8FAA is 5.2:1 and still reads quieter than --ink-mut. --red is the readable
     red for TEXT (an overdue job's title and date; js/schedule.js, js/reminders.js): 6.2:1 where #A3261B was 2.3:1. */
  --bg:#0A111E; --panel:#101B2D; --panel-2:#0D1626; --line:#1D2B42; --line-soft:#16233A;
  --ink:#E9F0F9; --ink-mut:#8CA0BA; --ink-dim:#7A8FAA; --red:#FF6B5E;
  --accent:#41B9DC; --accent-soft:rgba(65,185,220,.12);
  --good:#3FBF7F; --warn:#E9B23C; --fault:#E05656; --offline:#5C7089;
  --good-soft:rgba(63,191,127,.13); --warn-soft:rgba(233,178,60,.14);
  --fault-soft:rgba(224,86,86,.13); --offline-soft:rgba(92,112,137,.15);
  --disp:"Bahnschrift","Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --body:"Segoe UI",system-ui,-apple-system,sans-serif;
  --r:10px;
}
/* The native parts of controls (date pickers, drop-down lists, scroll bars) follow the dark theme too. */
:root{color-scheme:dark}
*{box-sizing:border-box}
/* b165 (the batch's own sweep: at <= 920 px `.btn{display:inline-flex}` beat the hidden attribute, so "Change custom
   device" showed on every standard device row on a phone). The hidden attribute always wins, on every element and at
   every width; a rule that shows something on a phone says :not([hidden]) (the bottom bar, the search panel). Doubled
   so it also outweighs a later css/inline.css `[data-s~=...]{display:... !important}` on the same element. */
[hidden][hidden]{display:none !important}
html,body{background:var(--bg);margin:0}
body{font-family:var(--body);color:var(--ink);font-size:14px;line-height:1.45}
button,input,select,textarea{font-family:inherit}
/* A visible keyboard focus everywhere: the ring is never taken away, only coloured. */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Every text box, drop-down and note box is dark (before 7 Nov 2026 a textarea or a select with no class of its own
   was a white browser box with typewriter text). :where() keeps this at no weight at all, so every page's own rule
   for its controls still wins. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"])),
:where(select),:where(textarea){background-color:var(--panel-2);color:var(--ink);border:1px solid var(--line);
  border-radius:7px;padding:6px 9px;font-size:13px}
:where(textarea){font-family:var(--body);line-height:1.45}
:where(option){background-color:var(--panel-2);color:var(--ink)}
:where(input,select,textarea):disabled{opacity:.6}
::placeholder{color:var(--ink-dim);opacity:1}

/* ---------------------------------------------------------------- login */
.login{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(1200px 800px at 30% 20%,#12233E 0%,#0A111E 60%,#070C16 100%)}
.login[hidden]{display:none}
.loginbox{width:340px;max-width:92vw;background:var(--panel);border:1px solid var(--line);
  border-radius:14px;padding:30px 28px;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.loginbox .logo{display:flex;align-items:center;gap:12px;justify-content:center;margin-bottom:6px}
.drop{width:26px;height:26px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);flex:0 0 auto;
  background:linear-gradient(135deg,var(--accent),#2478A8);box-shadow:0 0 14px rgba(65,185,220,.45)}
.loginbox .drop{width:34px;height:34px}
h1.brandmark{font-family:var(--disp);font-size:19px;letter-spacing:.06em;margin:0;font-weight:600;line-height:1.15}
h1.brandmark span{color:var(--accent)}
.loginbox .sub{text-align:center;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-dim);margin:6px 0 22px}
.login label{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-dim);font-family:var(--disp);margin:12px 0 5px}
.login input,.login select{width:100%;background:#0B1322;border:1px solid var(--line);
  border-radius:8px;color:var(--ink);padding:11px 12px;font-size:13px}
.login .err{margin-top:12px;font-size:12px;color:var(--fault);min-height:1.2em}
.login .note{text-align:center;font-size:10.5px;color:var(--ink-dim);margin-top:16px}
/* The small copyright line (sign-in boxes and the foot of the menu): quiet, never in the way. */
.copyright{font-size:10px;line-height:1.4;color:var(--ink-dim);margin-top:12px;letter-spacing:.01em}
.loginbox .copyright{text-align:center;margin-top:18px}
.np-title{text-align:center;font-family:var(--disp);font-size:16px;font-weight:600;
  color:var(--warn);margin:4px 0 10px}
.np-body{font-size:13px;line-height:1.5;color:var(--ink-mut);text-align:center;margin:0}
.np-body strong{color:var(--ink);word-break:break-all}
/* "Confirm it is you" (#linkreq): a long email address in the sentence wraps instead of pushing the box
   wider, and the "Email me a new code" link reads as waiting while the server will not send another yet. */
#linkreq .np-body{overflow-wrap:anywhere}
.login .linkbtn{font-size:12px}
.login .linkbtn:disabled{opacity:.5;cursor:not-allowed;text-decoration:none}
/* 24 Nov 2026 (b156): the WYLA front page (index.html #loginAuth0, js/sign-in-front.js) - the email box, Sign in, the
   first-time button, the next step under a plain-words failure and the "Trouble signing in?" panel. Fits 375 px. */
#login .loginbox{max-height:calc(100vh - 24px);overflow-y:auto}
.login .loginnext[hidden]{display:none}
.login .loginnext{margin:4px 0 10px;font-size:12px;line-height:1.45;color:var(--ink-mut)}
#login .err:empty{min-height:0;margin-top:0}
.signinfront label{margin-top:4px}
.signinfront input{font-size:16px}
.login .signupbtn{width:100%;padding:11px;margin-top:10px;white-space:normal;line-height:1.3}
.signinhelp{margin-top:14px;border-top:1px solid var(--line);padding-top:10px;font-size:12px;line-height:1.45;color:var(--ink-mut)}
.signinhelp summary{cursor:pointer;color:var(--accent);text-align:center;font-size:12.5px;list-style-position:inside}
.signinhelp summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.signinhelp ul{margin:10px 0 0;padding-left:18px}
.signinhelp li{margin:0 0 7px}
.signinhelp b{color:var(--ink)}
.signinhelp a{color:var(--accent)}
@media(max-width:420px){
  #login .loginbox{padding:22px 16px}
}

/* ---- server capacity bars (admin Health tab) ---- */
.capgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.cap-top{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;
  letter-spacing:.02em;margin-bottom:6px}
.cap-top b{font-variant-numeric:tabular-nums;font-size:14px}
.cap-track{height:8px;border-radius:6px;background:var(--line);overflow:hidden}
.cap-fill{height:100%;border-radius:6px;background:var(--good);transition:width .35s ease}
.cap.warning .cap-fill{background:var(--warn)}
.cap.critical .cap-fill{background:var(--fault)}
.cap.info .cap-fill{background:var(--ink-mut)}
.cap.warning .cap-top b{color:var(--warn)}
.cap.critical .cap-top b{color:var(--fault)}
.cap-sub{font-size:10.5px;margin-top:5px}

/* ---------------------------------------------------------------- shell */
.app{display:flex;min-height:100vh}
.app[hidden]{display:none}
.rail{width:224px;flex:0 0 224px;background:var(--panel-2);border-right:1px solid var(--line);
  display:flex;flex-direction:column;padding:20px 0;position:sticky;top:0;height:100vh;height:100dvh;
  /* The menu is taller than a phone screen (customer and site pickers, then every page, then
     Platform Administration last), and it did not scroll: everything below the fold was out of
     reach (29 Sep 2026). 100dvh is the VISIBLE height, not counting the browser's own bars. */
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.brand{padding:0 20px 18px;border-bottom:1px solid var(--line-soft)}
.brand .logo{display:flex;align-items:center;gap:10px}
/* The logo is the way home (index.html #homeLink): it looks as before, and shows the keyboard where it is. */
.brand .homelink{color:inherit;text-decoration:none;border-radius:8px;width:max-content;max-width:100%}
.brand .homelink:hover h1.brandmark{color:var(--accent)}
.brand .homelink:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.brand .tag{font-size:10.5px;color:var(--ink-dim);letter-spacing:.14em;text-transform:uppercase;margin-top:6px}
.unit{padding:16px 20px;border-bottom:1px solid var(--line-soft)}
.eyebrow{font-family:var(--disp);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-dim);margin-bottom:4px}
.unit .name{font-family:var(--disp);font-size:15px;letter-spacing:.03em}
.unit .own{font-size:12px;color:var(--ink-mut);margin-top:2px}
.unit select{width:100%;margin-top:8px;background:#0B1322;border:1px solid var(--line);
  border-radius:7px;color:var(--ink);padding:7px 9px;font-size:12.5px}
.nav{padding:10px 10px 14px;display:flex;flex-direction:column;gap:2px}
/* The menu's groups (Today, Sites, Records, People and alerts, Setup). The heading is a label, not a link. */
.navgroup{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.navgroup[hidden]{display:none}
.navhead{font-family:var(--disp);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-dim);padding:4px 12px 3px}
.nav a{display:flex;align-items:center;flex-wrap:wrap;gap:0 10px;color:var(--ink-mut);padding:8px 12px;
  border-radius:8px;font-size:13.5px;text-decoration:none;letter-spacing:.02em}
.nav a:hover{background:var(--panel);color:var(--ink)}
.nav a.on{background:var(--accent-soft);color:var(--accent);font-weight:600}
.nav svg{width:17px;height:17px;flex:0 0 17px;opacity:.9}
/* A part switched off at this site: still listed, greyed, with one line saying which plan has it (C5). */
.nav a.off{color:var(--ink-dim)}
.nav a.off svg{opacity:.45}
.nav a .navnote{flex:1 0 100%;padding-left:27px;font-size:11px;line-height:1.3;color:var(--ink-dim);
  font-weight:400;letter-spacing:0}
.railfoot{margin-top:auto;padding:16px 20px 0;border-top:1px solid var(--line-soft);
  font-size:11.5px;color:var(--ink-dim)}
.railfoot .row{display:flex;justify-content:space-between;margin-top:6px;gap:8px}
/* The menu's own Sign out: phones only (shown in the max-width:620px block below). */
.railfoot .railsignout{display:none}
.led{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--offline)}
.led.on{background:var(--good);box-shadow:0 0 6px var(--good)}
/* Online, but the readings have stopped: not offline, and deliberately not green. */
.led.stale{background:var(--warn);box-shadow:0 0 6px var(--warn)}
.rolechip{display:inline-flex;align-items:center;gap:6px;font-family:var(--disp);font-size:10px;
  letter-spacing:.12em;padding:3px 9px;border-radius:999px;border:1px solid rgba(65,185,220,.4);
  color:var(--accent);background:var(--accent-soft)}
.linkbtn{background:none;border:0;color:var(--ink-dim);font-size:11px;cursor:pointer;
  padding:0;text-decoration:underline}
.linkbtn:hover{color:var(--accent)}

.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:14px;padding:14px 26px;border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,rgba(65,185,220,.05),transparent);flex-wrap:wrap}
.topbar h2{font-family:var(--disp);font-size:20px;font-weight:600;letter-spacing:.04em;margin:0}
/* The account name above the page title. Not uppercased: this holds a CUSTOMER's name,
   which is theirs and should read the way they write it — "MacKenzie Water", not
   "MACKENZIE WATER", and certainly not the tenant id it used to show. */
.crumb{font-size:11.5px;color:var(--ink-dim);letter-spacing:.06em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crumb #crumbSite{color:var(--ink-mut)}
body.scoped .crumb{color:var(--accent)}
.where{min-width:0;flex:0 1 auto}
.topbar h2:focus{outline:none}
.topbar h2:focus-visible{outline:none} /* the title gets focus after each page change (for screen readers and keyboard users); it is not a control, so no box */
/* The pages about the whole account (All sites, Users, Audit log, Admin, Help...) do not show ONE site's status. */
body.sitewide #statusPill,body.sitewide #stackLight{display:none}
/* The pill is a link to the Overview (its title says what it means; round-2 R04-26). */
a.statuspill{text-decoration:none;cursor:pointer}
a.statuspill:hover{filter:brightness(1.15)}
/* The header's "Nobody is told about alarms here" flag (app.js renderToldFlag). */
.toldflag{text-decoration:none;white-space:nowrap;margin-left:8px}
.toldflag[hidden],body.sitewide .toldflag{display:none}
/* The "<n> red alarms waiting" chip beside the status pill (app.js renderAlarmFlag; round-2 R03-21). */
.alarmflag{text-decoration:none;white-space:nowrap;margin-left:8px}
.alarmflag[hidden],body.sitewide .alarmflag{display:none}
/* Who you are, Help and Sign out (moved up from the foot of the menu, 7 Nov 2026). */
.userbox{display:flex;align-items:center;gap:8px;margin-left:6px;flex:0 0 auto}
.topbtn{display:inline-flex;align-items:center;background:none;border:1px solid var(--line);color:var(--ink-mut);
  border-radius:7px;padding:6px 11px;font-size:12px;cursor:pointer;text-decoration:none;font-family:inherit;letter-spacing:.03em}
.topbtn:hover{border-color:var(--accent);color:var(--accent)}
/* "How to (n)": the training videos about the page on screen (js/help-videos.js createHowToButton; plan item 24). */
/* A class with `display` beats the [hidden] attribute: every top-bar button (Setup, How to) is hidden when told. */
.topbtn[hidden],#howToBtn[hidden]{display:none}
.howto{white-space:nowrap}
.howto-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.howto-item{display:flex;gap:10px;align-items:flex-start}
.howto-item .btn{flex:0 0 auto}
/* b165 (item h): a video's length never breaks ("1 min / 49 s") - the How to list and the Help page's cards (help-videos.js). */
.vid-len{white-space:nowrap}
/* "Skip to the page": out of sight until a keyboard reaches it. */
.skip{position:fixed;left:10px;top:-80px;z-index:300;background:var(--panel);color:var(--accent);
  border:1px solid var(--accent);border-radius:8px;padding:10px 14px;font-size:13px;cursor:pointer}
.skip:focus,.skip:focus-visible{top:10px}
.content:focus{outline:none}
.statuspill{display:inline-flex;align-items:center;gap:8px;font-family:var(--disp);letter-spacing:.08em;
  padding:7px 14px;border-radius:999px;font-size:13px;border:1px solid}
.statuspill .dot{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
.statuspill[hidden]{display:none}
.statuspill.ok{background:var(--good-soft);border-color:rgba(63,191,127,.4);color:var(--good)}
.statuspill.warning{background:var(--warn-soft);border-color:rgba(233,178,60,.4);color:var(--warn)}
.statuspill.fault{background:var(--fault-soft);border-color:rgba(224,86,86,.45);color:var(--fault)}
.statuspill.offline,.statuspill.unknown{background:var(--offline-soft);border-color:var(--line);color:var(--ink-mut)}
/* An EM300 running standalone (SD card): quiet by design, not offline - its own colour, not grey. */
.statuspill.standalone{background:var(--accent-soft);border-color:rgba(65,185,220,.4);color:var(--accent)}
.spacer{margin-left:auto}
/* The site search in the top bar (js/site-search.js). The box is always there on a wide screen; on a phone it is an icon
   and opens full width over the top bar. */
.search{position:relative;flex:0 1 250px;min-width:150px}
.searchbtn{display:none;align-items:center;justify-content:center;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;
  color:var(--ink);width:38px;height:38px;cursor:pointer}
.searchbtn svg{width:20px;height:20px}
.searchfield{display:flex;align-items:center;gap:7px;background:var(--panel-2);border:1px solid var(--line);border-radius:7px;padding:0 8px 0 9px}
.searchfield:focus-within{border-color:var(--accent)}
.searchfield>svg{width:15px;height:15px;color:var(--ink-dim);flex:0 0 auto}
.searchfield input{flex:1 1 auto;min-width:0;width:100%;background:none;border:0;border-radius:3px;padding:6px 2px;font-size:13px;color:var(--ink);outline-offset:1px}
.searchkey{font-family:var(--body);font-size:10.5px;color:var(--ink-dim);border:1px solid var(--line);border-radius:4px;padding:1px 5px;white-space:nowrap}
.search.open .searchkey{display:none}
.searchclose{display:none;align-items:center;justify-content:center;background:none;border:0;color:var(--ink);width:44px;height:44px;cursor:pointer;flex:0 0 auto}
.searchclose svg{width:20px;height:20px}
.searchpanel{position:absolute;top:calc(100% + 6px);right:0;width:min(470px,calc(100vw - 32px));max-height:min(72vh,calc(100vh - 96px));overflow-y:auto;
  overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ink-dim) transparent;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 18px 50px rgba(0,0,0,.5);padding:6px;z-index:45}
.searchstatus{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ss-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-family:var(--disp);font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-dim);padding:8px 8px 3px}
.ss-more{font-family:var(--body);font-size:10.5px;letter-spacing:0;text-transform:none}
.ss-opt{display:block;padding:6px 8px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere}
.ss-opt[aria-selected="true"]{background:var(--accent-soft);box-shadow:inset 2px 0 0 var(--accent)}
.ss-t{display:block;color:var(--ink);font-size:13px;line-height:1.3}
.ss-t b{color:var(--accent);font-weight:600}
.ss-s{display:block;color:var(--ink-dim);font-size:11.5px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ss-hint,.ss-none,.ss-foot{padding:8px;color:var(--ink-mut);font-size:12.5px;overflow-wrap:anywhere}
.ss-foot{color:var(--ink-dim);font-size:11.5px}
/* Item 28: the manual's lines in place, the highlighted section in full, and a word WYLA does not use explained. */
.ss-x{display:block;color:var(--ink-mut);font-size:11.5px;line-height:1.35;margin-top:2px;overflow-wrap:anywhere}
.ss-explain{margin:4px 4px 6px;padding:8px 10px;border-left:3px solid var(--accent);background:var(--accent-soft);
  border-radius:6px;font-size:12.5px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
.ss-preview{margin:6px 4px 2px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);font-size:12.5px;line-height:1.45}
.ss-preview p{margin:4px 0;color:var(--ink);overflow-wrap:anywhere}
.ss-preview .ss-s{white-space:normal}
@media(pointer:coarse){.searchkey{display:none}}
/* Between a phone and a laptop the box may wrap under the title: the results are then placed by the screen, not the box. */
@media(max-width:920px){.searchpanel{position:fixed;top:auto;left:14px;right:14px;width:auto;max-height:70vh}}
/* The rule a search result (or a link) opened on Your rules. */
tr.rulefocus>td{background:var(--accent-soft)}
/* The plant light: a picture of the lamp on site with its name beside it, not a button (round-2 R01-17). */
.stackbox{display:flex;align-items:center;gap:7px;cursor:default}
.stacklbl{font-family:var(--disp);font-size:9.5px;line-height:1.15;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-dim)}
.stack{display:flex;flex-direction:column;gap:3px;padding:5px;background:#0B1322;
  border:1px solid var(--line);border-radius:6px}
.stack i{width:22px;height:11px;border-radius:3px;background:#1A2436}
.stack i.r.lit{background:var(--fault);box-shadow:0 0 10px var(--fault)}
.stack i.y.lit{background:var(--warn);box-shadow:0 0 10px var(--warn)}
.stack i.g.lit{background:var(--good);box-shadow:0 0 10px var(--good)}
/* The gateway is not connected to WYLA (js/plant-light.js): the label says so, in the fault colour. */
.stackbox.nc .stacklbl{color:var(--fault)}

.content{padding:22px 26px 48px;display:flex;flex-direction:column;gap:18px}

/* ---------------------------------------------------------------- panels */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;min-width:0}
.panel h3{font-family:var(--disp);font-size:12px;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink-mut);margin:0 0 14px;display:flex;align-items:center;gap:8px}
.panel h3 .right{margin-left:auto;font-size:11px;letter-spacing:.06em;color:var(--ink-dim);text-transform:none}
/* 24 Nov 2026 (b155): an empty list's note (ui.js list(), data-list-empty) is followed by a table with no data cell -
   only its header row: hide that header (Connections' Recent commands showed Sent / What / Result / Detail under
   "No commands sent to this device yet."). */
.empty[data-list-empty]+table:not(:has(td)){display:none}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.grid23{display:grid;grid-template-columns:2fr 1fr;gap:18px}
.grid2>*,.grid23>*,.kpis>*{min-width:0}
@media(max-width:1100px){.grid2,.grid23{grid-template-columns:1fr}}

.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.kpi{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.kpi .lbl{font-family:var(--disp);font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--ink-dim)}
.kpi .num{font-family:var(--disp);font-size:26px;font-weight:600;margin-top:6px;font-variant-numeric:tabular-nums}
.kpi .num small{font-size:13px;color:var(--ink-mut);font-weight:400;margin-left:3px}
.kpi .sub{font-size:11.5px;color:var(--ink-mut);margin-top:4px}
.kpi.ok{box-shadow:inset 3px 0 0 var(--good)}
.kpi.warning{box-shadow:inset 3px 0 0 var(--warn)}
.kpi.fault{box-shadow:inset 3px 0 0 var(--fault)}
.kpi.offline{box-shadow:inset 3px 0 0 var(--offline)}
.kpi.info{box-shadow:inset 3px 0 0 var(--accent)}
.suspect{color:var(--warn)}

/* channel table */
.chan{display:grid;grid-template-columns:auto 1fr auto auto;gap:6px 12px;align-items:center;font-size:12.5px}
.chan .tag{font-family:var(--disp);font-size:11px;color:var(--ink-dim);letter-spacing:.1em}
.chan .v{font-variant-numeric:tabular-nums;font-weight:600;text-align:right}
.chan .u{color:var(--ink-dim);font-size:11px}
.chan .qd{width:8px;height:8px;border-radius:50%;background:var(--good)}
.chan .qd.bad{background:var(--warn)}
.chan .qd.calc{background:var(--accent)}
.chan .qd.off{background:transparent;border:1px solid var(--ink-mut)}
/* No reading at all (C6): a grey ring, never the warning amber of a suspect reading (round-2 N01-004, R09-19). */
.chan .qd.nodata,.qd.nodata{background:transparent;border:1px dashed var(--ink-dim)}
.chan .v.off{color:var(--ink-mut);font-weight:400}

/* chips, alerts, tables, buttons */
.chip{font-family:var(--disp);font-size:10.5px;letter-spacing:.12em;padding:4px 10px;
  border-radius:999px;border:1px solid;white-space:nowrap}
.chip.ok{color:var(--good);border-color:rgba(63,191,127,.4);background:var(--good-soft)}
.chip.warning,.chip.yellow{color:var(--warn);border-color:rgba(233,178,60,.4);background:var(--warn-soft)}
.chip.fault,.chip.red{color:var(--fault);border-color:rgba(224,86,86,.4);background:var(--fault-soft)}
.chip.offline,.chip.info{color:var(--ink-mut);border-color:var(--line);background:var(--offline-soft)}
.chip.standalone{color:var(--accent);border-color:rgba(65,185,220,.4);background:var(--accent-soft)}
/* A chip in a table cell wraps instead of setting the width of its whole column (round-2 N09-055, N09-058: one
   "done 2026-11-08 by dev@example.test - results positive" crushed the Job column and pushed every Do it off a tablet,
   and stuck out of its card on a phone). */
td .chip{white-space:normal;overflow-wrap:break-word;display:inline-block;max-width:16em;line-height:1.35}
/* ...and between words only (training video 14 Nov 2026: Schedule's "done" read "don / e" on a phone). The cell's own
   word-break:break-word (schedule.js WRAP) is inherited and, like overflow-wrap:anywhere, lets a table squeeze a chip
   to one letter; with it reset, a word is broken only when it is longer than the whole chip (a long email address). */
td .chip{word-break:normal;hyphens:manual;text-align:center}
/* The alarm level ("Warning (yellow)", "Fault (red)") reads as one pill on one line, centred (John 21 Nov 2026: "center the
   yellow text better" - it wrapped to two left-aligned lines on Events). */
td[data-label="Level"] .chip{white-space:nowrap;max-width:none}
/* b165 (item c, the b164 video checkers: "overdue by 4 / days"): the Schedule's Status chips ("overdue by 4 days", "due in
   12 days", "done - check"), in the This site list (tr[data-sc-row]) and the Every site table (tr[data-sc-all-row]) of
   schedule.js, read on one line; they are short. A phone card lets one wrap again, by words (below), and ui.js
   keepTogether keeps "4 days" whole. */
tr[data-sc-row]>td[data-label="Status"]>.chip,tr[data-sc-all-row]>td[data-label="Status"]>.chip{white-space:nowrap;max-width:none}
/* All sites: with one site on the login the long Why column took every pixel and the State chip read "Gr / ee / n"
   and the Lab chip a word a line (video check 12 Nov 2026). Its chips are the server's short words: one line each
   ("Green", "Met", "Online"). The Why column wraps, never narrower than a phrase.
   b165 (item g, the b164 video checkers: "Next due by 26 Dec / 2026"): the Lab and Logbook summaries are short too (at
   most "Next due by 26 Dec 2026", "2 inspections overdue" - api/src/programme.mjs labColumn / logbookColumn), so they
   read on one line like the rest; a phone card lets them wrap again, by words (below).
   b165 (the batch's own sweep, All sites at 1440 px: the site names took 3-4 lines while the one-line chips took the
   width, and the Schedule chip "1 overdue, longest 3..." was clipped at the right edge): a chip may wrap again, by WORDS
   only (never inside one: overflow-wrap / word-break normal), at most 11em wide; ui.js keepTogether keeps a date ("27 Dec
   2026") and a length ("3 days") whole and a short chip ("Up to date", "nothing overdue") on one line. The site's name
   gets the room (11em, two lines for "Kereru Stream School (simulated)"). */
.prog-table td .chip{white-space:normal;overflow-wrap:normal;word-break:normal;max-width:11em}
.prog-table td.prog-why{min-width:12em}
.prog-table td[data-prog-go]:first-child{min-width:11em}
.alert{display:flex;gap:12px;padding:12px 14px;border-radius:8px;border:1px solid;align-items:flex-start;margin-bottom:10px}
.alert.yellow{background:var(--warn-soft);border-color:rgba(233,178,60,.35)}
.alert.red{background:var(--fault-soft);border-color:rgba(224,86,86,.35)}
.alert.info{background:var(--offline-soft);border-color:var(--line)}
.alert .sev{font-family:var(--disp);font-size:10px;letter-spacing:.14em;padding:3px 8px;
  border-radius:4px;flex:0 0 auto;margin-top:2px}
.alert.yellow .sev{background:var(--warn);color:#1A1405}
.alert.red .sev{background:var(--fault);color:#fff}
.alert.info .sev{background:var(--offline);color:#fff}
.alert .at{min-width:0}
.alert .at b{font-size:13px}
.alert .at div{font-size:12px;color:var(--ink-mut);margin-top:2px}
.alert .when{margin-left:auto;font-size:11px;color:var(--ink-dim);white-space:nowrap;font-variant-numeric:tabular-nums}
.btn{background:none;border:1px solid var(--line);color:var(--ink-mut);border-radius:7px;
  padding:7px 13px;font-size:12px;cursor:pointer;letter-spacing:.03em}
.btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
/* b164 (item m, the b163 video checkers): a link drawn as a button (the Admin tab strip, Requests' tabs, "Open the case",
   "Open in my email") is a button - never underlined, as the real buttons beside it; links in running text stay underlined. */
a.btn,a.btn:hover,a.btn:focus,a.btn:visited{text-decoration:none}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.pri{border-color:rgba(65,185,220,.5);color:var(--accent);background:var(--accent-soft)}
.btnrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
/* b165 (the batch's own sweep: Admin > Fleet's support-access gateway list was 601 px wide on a 375 px phone): a box in
   a row of buttons is never wider than the row; its words are cut inside the box, not off the screen. */
.btnrow>select,.btnrow>input:not([type="checkbox"]):not([type="radio"]){max-width:100%;min-width:0}
/* A table wider than its box scrolls INSIDE it. Shadows at the edges show there is more (they appear only where the
   table runs on - the panel-coloured covers scroll with the table and hide them at each end), the first column stays
   in place while the rest scrolls, and js/ui.js markWideTables() adds a "Scroll sideways for more" line beneath. */
.twrap{overflow-x:auto;-webkit-overflow-scrolling:touch;
  background:
    linear-gradient(to right,var(--panel) 30%,rgba(16,27,45,0)) left center/40px 100% no-repeat local,
    linear-gradient(to left,var(--panel) 30%,rgba(16,27,45,0)) right center/40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.6),rgba(0,0,0,0)) left center/14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.6),rgba(0,0,0,0)) right center/14px 100% no-repeat scroll}
.twrap.more tr:not(.subrow)>:first-child{position:sticky;left:0;z-index:1;background-color:var(--panel)}
.twrap.more tr.editing>:first-child,.twrap.more tr.delrow>:first-child{background-color:var(--panel-2)}
.twrap.more tr.notsent>:first-child{background:linear-gradient(var(--fault-soft),var(--fault-soft)),var(--panel)}
.twrap.more tr.prog-row:hover>:first-child{background:linear-gradient(rgba(65,185,220,.06),rgba(65,185,220,.06)),var(--panel)}
.twraphint{font-size:11.5px;color:var(--ink-dim);text-align:right;margin:4px 2px 0}
.twrap.atend+.twraphint{visibility:hidden}
/* b165 (the batch's own sweep, r3 at 375 px: "SIM-DEMO- / SCHOOL-01", "M300- / 2451- / 0104" in Admin Fleet and
   Provisioning): a serial number is one token - never broken at its hyphens (no invisible characters in the text: the
   cell stays on one line and the table scrolls inside its .twrap, or its card row is wide enough). */
.serialcell{white-space:nowrap}
/* b166 r3: the break before an address's "@" in an Audit cell (ui.js fieldPieces) - only where the table is cards */
.atbreak{display:none}
@media(max-width:920px){.atbreak{display:inline}}
/* b165 (the batch's own sweep, Call-outs at 375 px: "No monthly summary ..." under clipped headings "ACKNOWLEDGED C" and
   "Scroll sideways for more"): a table with nothing in it yet (ui.js markWideTables marks it .twempty) keeps no minimum
   width and, on a phone, no heading row - there is no column to read. */
.twrap.twempty table{min-width:0}
@media(max-width:620px){.twrap.twempty thead,.twrap.twempty tr:has(>th){display:none}}
/* b165 (the batch's own sweep: "Fix a / mistake", "Add / results"): a small link-button in a table cell is one line. */
td .linkbtn{white-space:nowrap}
table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:560px}
th{font-family:var(--disp);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-dim);text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}
td{padding:9px 10px;border-bottom:1px solid var(--line-soft);font-variant-numeric:tabular-nums}
tr:last-child td{border-bottom:0}
.muted{color:var(--ink-mut)}
.dim{color:var(--ink-dim)}
/* Block, not flex: these carry prose with inline <b>/<i>, and flex would promote every
   inline child to a flex item — which silently reflows a sentence into columns. */
.empty{color:var(--ink-mut);font-size:12.5px;padding:10px 0;display:block}
.chart{width:100%;height:auto;display:block}
.legend{display:flex;gap:16px;font-size:11px;color:var(--ink-mut);margin-top:8px;flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:3px;border-radius:2px;margin-right:5px;vertical-align:middle}
.bar{height:9px;border-radius:5px;background:#0B1322;border:1px solid var(--line);overflow:hidden}
.bar i{display:block;height:100%;border-radius:5px;background:var(--accent)}
.bar i.warning{background:var(--warn)} .bar i.ok{background:var(--good)}
.life{margin-bottom:16px}
.life .lr{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:6px;gap:10px}
.life .foot{display:flex;justify-content:space-between;font-size:11px;color:var(--ink-dim);margin-top:5px}
/* b165 (the batch's own sweep: "The UV unit itself says 171 days ..." was drawn at the page's 14 px under 11-12.5 px
   lines): the unit's own count reads at the size of the "worked out from" line above it (maintenance.js partHtml). */
.life [data-mt-unit-days]{font-size:11px;margin-top:3px}
.kv{display:flex;justify-content:space-between;border-bottom:1px solid var(--line-soft);
  padding:7px 0;font-size:12.5px;gap:12px}
.kv:last-child{border-bottom:0}
.kv b{font-variant-numeric:tabular-nums}
/* serial equipment rows (overview, Connections) */
.eqrow{padding:10px 0;border-bottom:1px solid var(--line-soft)}
.eqrow:last-child{border-bottom:0}
.eqhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:3px}
.eqplanned{color:var(--ink-dim);font-size:12px;margin-top:6px}
.banner{font-size:12px;border-radius:8px;padding:9px 13px;border:1px solid}
.banner.warn{color:var(--warn);background:var(--warn-soft);border-color:rgba(233,178,60,.3)}
.banner.err{color:var(--fault);background:var(--fault-soft);border-color:rgba(224,86,86,.35)}
.banner.info{color:var(--accent);background:var(--accent-soft);border-color:rgba(65,185,220,.4)}
/* b166 (l, the b165 video checkers: "Recorded. Still due here: ... Do it | Back to Today" was a plain box with a white
   border and a browser-blue link): "banner ok" - the good state (next-job.js and a dozen other modules) - is green, as
   the ok chip is. A banner with no tone at all ("banner" alone, or a tone the code left empty) is a quiet neutral box,
   never a currentColor (white) border. A link in any banner takes the banner's own colour, underlined - never the
   browser's blue / purple. */
.banner{border-color:var(--line);background:var(--panel-2)}
.banner.ok{color:var(--good);background:var(--good-soft);border-color:rgba(63,191,127,.4)}
.banner a:not(.btn){color:inherit;text-decoration:underline;text-underline-offset:2px}
/* b166 (l, the class): every tone word the modules hand a banner or a chip has a rule - the other modules' own tone names
   (warning / yellow / red / fault / good on a banner; warn / err / good / off on a chip, e.g. cadences.js "Cannot be made
   yet" as chip warn) read as the tone they name, never as an unstyled box. */
.banner.warning,.banner.yellow{color:var(--warn);background:var(--warn-soft);border-color:rgba(233,178,60,.3)}
.banner.fault,.banner.red{color:var(--fault);background:var(--fault-soft);border-color:rgba(224,86,86,.35)}
.banner.good{color:var(--good);background:var(--good-soft);border-color:rgba(63,191,127,.4)}
.chip.warn{color:var(--warn);border-color:rgba(233,178,60,.4);background:var(--warn-soft)}
.chip.err{color:var(--fault);border-color:rgba(224,86,86,.4);background:var(--fault-soft)}
.chip.good{color:var(--good);border-color:rgba(63,191,127,.4);background:var(--good-soft)}
.chip.off{color:var(--ink-mut);border-color:var(--line);background:var(--offline-soft)}
.toast{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:8px}
.toast div{background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:8px;padding:10px 14px;font-size:12.5px;box-shadow:0 10px 30px rgba(0,0,0,.5);max-width:340px}
.toast div.err{border-left-color:var(--fault)}
.toast div.ok{border-left-color:var(--good)}
.toast div.warn{border-left-color:var(--warn)}
/* "Show passwords" (Admin > Fleet): a modal over the page. Below the toasts (z-index 200) so
   "Copied." is seen; the password wraps anywhere, since a 20-character run has no spaces. */
.modal-back{position:fixed;inset:0;z-index:150;background:rgba(4,8,15,.7);display:flex;
  align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.modal{width:100%;max-width:520px;max-height:calc(100vh - 32px);overflow-y:auto;
  box-shadow:0 24px 80px rgba(0,0,0,.55)}
.modal .btnrow{justify-content:flex-end}
/* The training videos (js/help-videos.js): the pop-up player, the cards on the Help page, the manual's chapter list. */
.modal.video{max-width:min(1100px,96vw)}
.modal.video h3{text-transform:none;letter-spacing:.02em;font-size:15px;color:var(--ink);align-items:flex-start;flex-wrap:nowrap}
.modal.video h3 .right{margin-left:auto;flex:none}
.modal.video video{width:100%;height:auto;max-height:calc(100vh - 220px);display:block;background:#000;border-radius:6px}
.vidwait{aspect-ratio:16/9;max-height:calc(100vh - 220px);width:100%;display:flex;align-items:center;justify-content:center;
  background:var(--panel-2);border:1px solid var(--line);border-radius:6px;color:var(--ink-mut);font-size:13px}
.vidsection{border-top:1px solid var(--line)}
.vidsection:last-child{border-bottom:1px solid var(--line)}
.vidsection .vidgrid{margin:0 0 12px}
.vidgroup{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:0;padding:10px 4px;background:none;border:0;
  font:inherit;font-size:13.5px;font-weight:600;color:var(--ink);text-align:left;cursor:pointer}
.vidgroup:hover,.vidgroup:focus-visible{color:var(--accent)}
.vidgroup .chev{width:14px;color:var(--accent);flex:none}
.vidgroup .dim{font-weight:400;margin-left:auto}
/* b165 (the batch's own sweep: "16 / videos"): a group's count is one line (help-videos.js videoGroupHead). */
.vidgroup>.dim{white-space:nowrap;flex:none}
.vidgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.vidcard{border:1px solid var(--line);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;
  background:var(--panel-2);font-size:13px}
.vidcard .btnrow{margin-top:auto;padding-top:4px;align-items:center}
.chaplist{list-style:none;margin:8px 0 0;padding:0;columns:3 240px;column-gap:24px}
.chaplist li{break-inside:avoid;padding:3px 0;font-size:12.5px}
.chaplist .linkbtn{font-size:12.5px;color:var(--accent);padding:0;text-align:left}
.cred-row{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:0 0 10px;background:var(--panel-2)}
.cred-what{font-weight:600;margin-bottom:2px}
.cred-pass{display:flex;align-items:center;gap:10px;margin-top:6px}
.cred-row code{font-family:Consolas,"Cascadia Mono","Courier New",monospace;color:var(--ink)}
.cred-pw{flex:1 1 auto;min-width:0;word-break:break-all;font-size:14px;padding:6px 8px;
  border-radius:6px;background:var(--bg);border:1px solid var(--line-soft);user-select:all}
.cred-pending{margin:4px 0 10px}
.cred-pending .banner{margin:0 0 10px}
.skel{background:linear-gradient(90deg,#12203A 25%,#17263F 50%,#12203A 75%);
  background-size:200% 100%;animation:sk 1.2s infinite;border-radius:6px;height:14px}
@keyframes sk{to{background-position:-200% 0}}

/* ---------------------------------------------------------------- site map topology */
/* The diagram has a minimum legible width, so on a phone it scrolls sideways inside
   its own container rather than squashing into unreadability — and the page body
   itself never scrolls horizontally. */
.topo{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.topo svg{min-width:820px;width:100%;height:auto;display:block}

/* ---- conduits. Three stacked strokes make a flat line read as round pipe: a dark
   casing, a coloured core, and the animated flow riding on top. */
.pipe .pcase{fill:none;stroke:#0A121D;stroke-width:7;stroke-linecap:round}
.pipe .pcore{fill:none;stroke:#33445C;stroke-width:3.4;stroke-linecap:round}
.pipe .pflow{fill:none;stroke:none;stroke-width:2;stroke-linecap:round}
.pipe.ok .pcore{stroke:var(--good)}
.pipe.wn .pcore{stroke:var(--warn)}
.pipe.fl .pcore{stroke:var(--fault);stroke-width:4.2}
.pipe.off .pcore{stroke:#2E3F55}
.pipe.ok .pflow,.pipe.wn .pflow{stroke:rgba(255,255,255,.75);stroke-dasharray:5 13;
  animation:tflow 1.15s linear infinite}
@keyframes tflow{to{stroke-dashoffset:-36}}

/* ---- device cards. One light source, top-left, for every face in the diagram. */
.card .cface{fill:url(#faceG);stroke:#2B3E58;stroke-width:1}
.card .cedge{fill:#0B1420}
.card .cspec{stroke:rgba(255,255,255,.14);stroke-width:1.4;fill:none;stroke-linecap:round}
.hub .hface{fill:url(#hubG);stroke:#3C6094;stroke-width:1.4}
.hub .hedge{fill:#08111C}
.hub .vent{fill:#0C1726;opacity:.85}
.card.fl .cface{stroke:rgba(224,86,86,.55)}
.card.wn .cface{stroke:rgba(233,178,60,.45)}

.led.ok{fill:var(--good)} .led.wn{fill:var(--warn)}
.led.fl{fill:var(--fault)} .led.off{fill:#38495F}
.tt1{fill:var(--ink);font-family:var(--disp);font-size:12.5px;letter-spacing:.04em;font-weight:600}
.tt2{fill:var(--accent);font-size:11px;font-variant-numeric:tabular-nums}
.tt3{fill:var(--ink-dim);font-size:8.5px;letter-spacing:.1em}
.maplegend svg{vertical-align:middle}

/* ---------------------------------------------------------------- operational views */
/* Small button for in-table actions (classify, end session). Table rows are dense, so
   the full-size .btn would force the row height up on every line. */
.btn.sm{padding:4px 9px;font-size:11px;border-radius:6px}
.btnrow.tight{margin-top:0;gap:5px}
/* A second, denser KPI band for panels that carry their own summary strip. */
.kpis.tight{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:14px}
.kpis.tight .kpi{padding:10px 12px}
.kpis.tight .kpi .num{font-size:20px;margin-top:4px}

/* The at-a-glance status rings (js/status-rings.js, 17 Nov 2026): a ring per kind (Sites, Gateways) with its legend.
   Inline SVG, the state colours of :root only. The ring is a picture; the legend beside it carries the counts as text,
   and each row that filters a list is a link or a button. A total of 0 is a grey track with words, never a colour. */
.ringstrip-wrap{margin:0 0 14px}
.ringstrip-wrap.compact{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px 6px}
.ringstrip-title{font-family:var(--disp);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-mut);
  font-weight:600;margin:0 0 8px}
.ringstrip{display:flex;flex-wrap:wrap;gap:14px}
.ringcard{flex:1 1 300px;min-width:0;display:flex;gap:16px;align-items:center;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--r);padding:12px 16px}
.ringstrip-wrap.compact .ringcard{background:var(--panel-2);padding:8px 12px;flex-basis:260px;gap:12px}
.ringcard.none{display:block}
.ringside{flex:1 1 auto;min-width:0}
.ringtitle{font-family:var(--disp);font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--ink-dim);
  font-weight:600;margin:0 0 6px}
.ringnote{margin:0;font-size:12.5px}
.ringsvg{width:116px;height:116px;flex:0 0 auto;display:block}
.ringstrip-wrap.compact .ringsvg{width:84px;height:84px}
.ring-track{fill:none;stroke:var(--line);stroke-width:5}
.ring-track.empty{stroke:var(--offline);opacity:.5}
.ring-seg{fill:none;stroke-width:5;transition:stroke-width .12s}
.ring-seg.t-ok{stroke:var(--good)}
.ring-seg.t-warning{stroke:var(--warn)}
.ring-seg.t-fault{stroke:var(--fault)}
.ring-seg.t-offline{stroke:var(--offline)}
.ring-seg.t-info{stroke:var(--accent)}
.ring-seg.t-unknown{stroke:var(--ink-dim)}
.ring-seg-link .ring-seg,.ring-seg[data-ring-seg]{cursor:pointer}
.ring-seg-link:hover .ring-seg,.ring-seg[data-ring-seg]:hover{stroke-width:6.5}
.ring-num{fill:var(--ink);font-family:var(--disp);font-size:10px;font-weight:600;text-anchor:middle;font-variant-numeric:tabular-nums}
.ring-unit{fill:var(--ink-mut);font-family:var(--body);font-size:3.6px;text-anchor:middle;letter-spacing:.04em}
.ringkeys{list-style:none;margin:0;padding:0}
.ringkey{display:flex;align-items:center;gap:8px;width:100%;padding:3px 6px;margin:0;border:0;border-radius:6px;
  background:none;color:var(--ink);font:inherit;font-size:13px;text-align:left;text-decoration:none}
a.ringkey,button.ringkey{cursor:pointer}
a.ringkey:hover,button.ringkey:hover{background:var(--line-soft)}
button.ringkey[aria-pressed="true"]{background:var(--accent-soft)}
.ringkey.zero{color:var(--ink-dim)}
.ringkey .lbl{min-width:0}
.ringkey .sub{display:block;font-size:11px;color:var(--ink-dim);line-height:1.3}
.ringkey .n{margin-left:auto;font-family:var(--disp);font-weight:600;font-variant-numeric:tabular-nums}
.ringkey .pct{color:var(--ink-mut);font-size:11.5px;min-width:52px;text-align:right;font-variant-numeric:tabular-nums}
.ringdot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.ringdot.t-ok{background:var(--good)}
.ringdot.t-warning{background:var(--warn)}
.ringdot.t-fault{background:var(--fault)}
.ringdot.t-offline{background:var(--offline)}
.ringdot.t-info{background:var(--accent)}
.ringdot.t-unknown{background:var(--ink-dim)}
.ringstrip-note{font-size:11.5px;margin:6px 0 0}
/* A phone: a smaller ring beside its legend, without the words under each row, so the list below stays near the top. */
@media(max-width:420px){
  .ringcard{padding:10px 12px;gap:12px}
  .ringsvg,.ringstrip-wrap.compact .ringsvg{width:76px;height:76px}
  .ringkey .sub{display:none}
  .ringkey .pct{min-width:40px}
}
@media (prefers-reduced-motion:reduce){ .ring-seg{transition:none} }

/* Form controls on the support tab. */
.formrow{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.formrow label,label.wide{display:flex;flex-direction:column;gap:5px;font-size:11px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--ink-dim);
  font-family:var(--disp);min-width:0}
.formrow label{flex:1 1 180px}
/* b165 (the batch's own sweep: Lab "How often" showed "a number in every calendar pe"): above a phone's width a
   drop-down's box starts as wide as its longest choice (a select's own width) and wraps to a line of its own rather than
   being squeezed into a 180px column; it still shrinks to the row on a narrow screen. A phone gives every box the row. */
@media(min-width:621px){
  .formrow label:has(>select){flex-basis:auto}
  .formrow label:has(>select)>select{width:auto;max-width:100%}
}
label.wide{width:100%}
/* Inputs sitting in a .formrow are skinned by the same rule as the selects. Without the
   input selector a text field inside a form row falls back to the browser default — a
   white box on a dark panel — which is how the Add-a-user and Create-site fields read. */
.formrow select,.formrow input,label.wide input,label.wide select{background:var(--panel-2);
  border:1px solid var(--line);border-radius:7px;color:var(--ink);padding:8px 10px;
  font-size:13px;font-family:inherit;letter-spacing:normal;text-transform:none;width:100%}
.formrow select:focus,.formrow input:focus,label.wide input:focus{
  outline:2px solid var(--accent);outline-offset:-1px}

/* Paper record sheets (backfill.js recordPackPanel): each tick box beside its label, the parts side by side and
   wrapping - not a .formrow column with the box above the words (video check 12 Nov 2026). */
.rp-parts{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 10px}
.rp-parts label{display:inline-flex;flex-direction:row;align-items:center;gap:7px;font-size:13px;color:var(--ink);cursor:pointer;min-height:28px}
.rp-parts input[type="checkbox"]{width:auto;margin:0;flex:0 0 auto}

/* Per-user role picker in the Users table. Same skin as the Add-a-user form so the page
   reads as one set of controls, but sized to sit inside a table cell. A disabled picker
   (your own row, or somebody who outranks you) is dimmed rather than hidden — the role is
   still worth reading. */
.rolesel{background:var(--panel-2);border:1px solid var(--line);border-radius:7px;
  color:var(--ink);padding:5px 8px;font-size:12px;font-family:inherit;max-width:100%}
.rolesel:disabled{opacity:.55;cursor:not-allowed}
/* b166 r3 (the re-sweep, Admin > Provisioning at 1440 px: the Unassigned units row was a few px wider than its panel -
   "Scroll sideways for more" - the replace-unit select sized to its longest option): the two pickers in that table keep
   to a width of their own; the open list still shows every option whole. (b166 r4: Admin > Fleet's Data / month
   column has no width of its own - "0.0 MB" is one piece in pages-admin.js dataUseCell - so the table fits at 1280 and
   1440 again.) */
td>select.rolesel[data-act="assign-site"],td>select.rolesel[data-act="replace-device"]{max-width:12em}

/* ---------------------------------------------------------------- provisioning rows */
/* Row actions (Edit · Archive · Delete…) wrap rather than force the table wider — the
   provisioning tables are already at their min-width on a phone. */
.rowacts{white-space:nowrap}
.rowacts>*{margin-right:10px}
.rowacts>*:last-child{margin-right:0}
/* An archived record is still readable — it is the thing you came to restore or delete —
   but it must never be mistaken for a live one at a glance. */
tr.archived td{opacity:.5}
tr.archived td .chip{opacity:1}
/* Call-outs: a text or call that was NOT sent is the line that matters in the log, so the whole
   row carries the fault tint; a step of the escalation list is a block of its own. */
tr.notsent td{background:var(--fault-soft)}
.costep{border-top:1px solid var(--line-soft);padding-top:10px;margin-top:10px}
/* A person's per-level channel grid: level, three tick boxes, what the level does. */
.changrid{display:grid;grid-template-columns:auto repeat(3,auto) 1fr;gap:2px 14px;align-items:center;font-size:12px}
/* A row being edited, and the confirmation panel beneath a row facing deletion, are both
   lifted off the table so it is obvious which record they belong to. `.subrow` is the same
   idea for a full-width panel beneath a row — an alarm recipient's editor or its removal
   confirmation — and deliberately does NOT skin its inputs the way `tr.editing` does, because
   it carries a normal `.formrow` and tick boxes rather than cell-sized fields. */
tr.editing td,tr.delrow td,tr.subrow td{background:var(--panel-2)}
tr.editing input,tr.editing select{background:var(--panel);border:1px solid var(--line);
  border-radius:6px;color:var(--ink);padding:5px 8px;font-size:12.5px;font-family:inherit;
  width:100%;max-width:100%}
tr.editing input:focus,tr.editing select:focus{outline:2px solid var(--accent);outline-offset:-1px}
/* The box a refused value came from (a site's fixed internet address or LAN address): marked
   until the next Save or a change of the Automatic / Fixed choice. */
tr.editing input[aria-invalid="true"]{border-color:var(--fault);outline:2px solid var(--fault);outline-offset:-1px}

/* Tick-box pickers (alarm recipients, notification lists, My alarms: sites, alarm types,
   levels, members). Each box is a bordered chip with a thumb-sized target, and the row wraps
   rather than widening anything - on a phone a long site list becomes more rows, never a
   sideways scroll. Select all / Clear get padding so they are tappable too. */
.picker{margin:0 0 12px;min-width:0}
.pickhead{display:flex;align-items:center;gap:2px 16px;flex-wrap:wrap;margin-bottom:6px}
.pickname{font-family:var(--disp);font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-dim)}
.pickhead .linkbtn{font-size:12px;padding:7px 0}
.pickboxes{display:flex;flex-wrap:wrap;gap:6px 8px}
.pickboxes label,.picktoggle{display:inline-flex;align-items:center;gap:8px;min-height:36px;
  padding:6px 11px;border:1px solid var(--line);border-radius:7px;font-size:12.5px;
  color:var(--ink);cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.pickboxes input,.picktoggle input{width:16px;height:16px;margin:0;flex:0 0 auto;
  accent-color:var(--accent)}
.pickhint{margin:6px 0 0;font-size:12px}
/* The editor and the removal confirmation beneath a recipient or a list span the whole
   table, which on a phone is wider than the screen. Their contents are pinned to the visible
   part of the scrolling box instead, so the fields and tick boxes wrap to the screen and stay
   in view however far the table has been scrolled sideways. Scoped to these two tables:
   inline-size containment stops a box sizing to its content, which other tables may rely on. */
.subwrap{container-type:inline-size}
.subwrap tr.subrow td>*{position:sticky;left:10px;max-width:calc(100cqw - 20px);
  box-sizing:border-box}

/* ---------------------------------------------------------------- customer scope */
/* Two states mean "you are not in your own account", and they must never be mistaken for
   each other, because the difference is whether the Save button writes to a customer.
   Everything here is chosen to read as the OPPOSITE of the impersonation bar below it:

     scoped         accent cyan · solid square leading stripe · steady, no animation
                    · "Working in" · writes allowed · does not expire
     impersonating  warning amber · round pulsing dot · "Viewing as"
                    · read-only · counts down

   Colour alone would not be enough (it is the one channel a colour-blind operator may not
   have), so the shape, the wording and the motion all differ too. */
.scopebar[hidden]{display:none}
.scopebar{display:flex;align-items:center;gap:12px;padding:9px 22px 9px 18px;
  background:var(--accent-soft);border-bottom:1px solid rgba(65,185,220,.35);
  border-left:4px solid var(--accent);flex-wrap:wrap}
.scopebar .scopemark{width:9px;height:9px;background:var(--accent);flex:0 0 9px;border-radius:2px}
.scopebar .scopetext{min-width:0;font-size:12.5px;display:flex;gap:10px;flex-wrap:wrap;align-items:baseline}
.scopebar .scopetext b{color:var(--accent);letter-spacing:.02em}
.scopebar .scopetext .dim{font-size:11.5px}
.scopebar .btn{margin-left:auto;border-color:rgba(65,185,220,.5);color:var(--accent);flex:0 0 auto}
.scopebar .btn:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}
/* The demo bar (index.html #demoBar): the scope bar's shape, its link button kept on one line. */
.demobar .btn{text-decoration:none;white-space:nowrap}
/* The demo sandbox (js/demo.js DEMO_HIDDEN_ACTS): buttons the server refuses a demo visitor are not offered. */
body.demo [data-act="creds-set"],body.demo [data-act="creds-show"],body.demo [data-act="sa-open"],body.demo [data-act="sa-close"],
body.demo [data-act="vpn-setup"],body.demo [data-act="privacy-contact"],body.demo [data-act="sf-trial"],body.demo [data-act="lp-open"],
body.demo [data-act="lp-default"],body.demo [data-act="lp-on"],body.demo [data-act="lp-off"],body.demo [data-act="claim-pending"],
body.demo [data-act="move-site"],body.demo [data-act="act-start"],body.demo [data-act="impersonate"],body.demo [data-act="user-remove"],
body.demo [data-act="signin-method-remove"]{display:none !important}
/* The support banner (index.html #supportBar, js/support-banner.js, migration 109): WYLA support has a session open to
   one of this user's gateways. Amber like the other "someone else is in here" signs, a round mark, one line per session. */
.supportbar[hidden]{display:none}
.supportbar{background:linear-gradient(90deg,rgba(233,178,60,.18),rgba(233,178,60,.06));border-bottom:1px solid rgba(233,178,60,.45);border-left:4px solid var(--warn)}
.supportbar .supportline{display:flex;align-items:center;gap:12px;padding:8px 22px 8px 18px;flex-wrap:wrap}
.supportbar .supportline + .supportline{border-top:1px solid rgba(233,178,60,.25)}
.supportbar .scopemark{width:9px;height:9px;background:var(--warn);flex:0 0 9px;border-radius:50%}
.supportbar .scopetext{min-width:0;flex:1 1 320px;font-size:12.5px;display:flex;gap:4px 10px;flex-wrap:wrap;align-items:baseline}
.supportbar .scopetext b{color:var(--warn);letter-spacing:.02em}
.supportbar .scopetext .dim{font-size:11.5px}
.supportbar .btn{margin-left:auto;flex:0 0 auto}
/* A signature made in the demo: its stamp stands out beside the name. */
.chip.demostamp{font-weight:700;letter-spacing:.06em}
/* The rail's customer block is the control that got you here and the way back out, so it
   carries the state too — visible even when the bar has scrolled off the top. Again a
   different shape from the impersonation treatment: a left edge on one block, not a ring
   around the whole window. */
.unit.customer{border-left:3px solid transparent}
body.scoped .unit.customer{border-left-color:var(--accent);background:rgba(65,185,220,.06)}
body.scoped .unit.customer .name{color:var(--accent)}

/* ---------------------------------------------------------------- impersonation bar */
/* Loud on purpose. The one way "view as customer" causes real harm is somebody
   forgetting they are in it and reading a customer's numbers as their own, so this sits
   above the content at every breakpoint and the way out never scrolls off screen. */
/* A class with `display` beats the [hidden] attribute, so the impersonation banner rendered
   on EVERY page — permanently claiming you were viewing as a customer when you were not.
   The banner's whole purpose is telling you when you are in someone else's account, so one
   that is always on is worse than none. */
.impbar[hidden]{display:none}
.impbar{display:flex;align-items:center;gap:12px;padding:9px 22px;
  background:linear-gradient(90deg,rgba(233,178,60,.18),rgba(233,178,60,.06));
  border-bottom:1px solid rgba(233,178,60,.45);flex-wrap:wrap}
.impbar .impdot{width:9px;height:9px;border-radius:50%;background:var(--warn);flex:0 0 9px;
  box-shadow:0 0 0 4px rgba(233,178,60,.18);animation:imppulse 1.8s ease-in-out infinite}
@keyframes imppulse{50%{box-shadow:0 0 0 8px rgba(233,178,60,.05)}}
.impbar .imptext{min-width:0;font-size:12.5px;display:flex;gap:10px;flex-wrap:wrap;align-items:baseline}
.impbar .imptext b{color:var(--warn)}
.impbar .imptext .dim{font-size:11.5px;font-variant-numeric:tabular-nums}
.impbar .btn{margin-left:auto;border-color:rgba(233,178,60,.5);color:var(--warn);flex:0 0 auto}
.impbar .btn:hover:not(:disabled){border-color:var(--warn);background:var(--warn-soft)}
/* A second, quieter reminder for anyone who has scrolled the banner off the top: the whole
   window is edged in the same warning colour for as long as the customer view is running.
   Set on <body> by applyRoleVisibility(). */
body.impersonating{box-shadow:inset 0 0 0 2px rgba(233,178,60,.55)}

/* ---------------------------------------------------------------- act as customer */
/* The third "not your own account" state (docs/ACT-AS-CUSTOMER-DESIGN.md), told apart from both others by colour,
   shape and words: violet (not the view's amber or the scope's cyan), a square marker with a thick left edge, and
   "Acting as <user> ... Stop acting". Changes made here DO land in the customer's account, under the admin's name,
   which is why it must never be mistaken for the read-only view. The window edge is dashed rather than solid. */
:root{--act:#B79CFF; --act-soft:rgba(183,156,255,.14)}
.impbar.act{background:linear-gradient(90deg,rgba(183,156,255,.22),rgba(183,156,255,.07));
  border-bottom:1px solid rgba(183,156,255,.5);border-left:5px solid var(--act)}
.impbar.act .impdot{border-radius:2px;background:var(--act);box-shadow:none;animation:none}
.impbar.act .imptext b{color:var(--act)}
.impbar.act .btn{border-color:rgba(183,156,255,.6);color:var(--act)}
.impbar.act .btn:hover:not(:disabled){border-color:var(--act);background:var(--act-soft)}
body.acting{outline:2px dashed rgba(183,156,255,.6);outline-offset:-2px}
/* A control that stays with the customer in an act session (ui.js markCustomerOnly): greyed, never hidden. */
[data-customer-only]:disabled{cursor:not-allowed}

/* ---------------------------------------------------------------- feature settings */
/* One row per optional module (js/features.js): name and hint on the left, chips and the
   switch on the right. The switch is a button with role="switch", so it is announced as one. */
.featrows{display:grid;gap:8px}
.featrow{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px 12px;
  border-radius:8px;background:var(--panel-2);border:1px solid var(--line-soft)}
.featrow.changed{border-color:rgba(65,185,220,.45)}
.featrow .t{font-weight:600}
.featrow .d{color:var(--ink-mut);font-size:12.5px;margin-top:2px}
.featright{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.chip.dashed{border-style:dashed}
/* Logbook: the shown-only "due" lines at the top of the entries (logbook.js dueLines) - not entries. */
.lb-due{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;margin:0 0 6px;border-radius:8px;border:1px dashed rgba(233,178,60,.55);border-left:4px solid var(--warn);background:var(--warn-soft)}
.lb-due.over{border-color:rgba(224,86,86,.55);border-left-color:var(--fault);background:var(--fault-soft)}
.lb-due .lb-due-text{flex:1 1 16em;min-width:0;overflow-wrap:anywhere}
/* Schedule (schedule.js summaryChips, streamline item 23): the filter buttons on a wide screen, one drop-down on a phone. */
.sc-filter-pick{display:none;margin:0 0 8px}
@media(max-width:620px){.sc-filter-btns{display:none!important}.sc-filter-pick{display:block}}
/* Schedule: the Month view (js/schedule.js monthView, John 21 Nov 2026). A 7-column grid, each job written in on its
   site day, coloured by its standing (overdue red, due today or this week amber, later neutral, done green with a
   tick); "+N more" opens a full day in place. Under 720 px the grid gives way to a day-by-day list of the days with
   jobs. The print rules further down print the grid only, on a landscape page. */
.sc-switches{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px}
.sc-month{margin-top:12px;min-width:0}
.sc-month-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.sc-month-title{margin:0 4px;min-width:9em;text-align:center;font-family:var(--disp);font-size:17px;font-weight:600;letter-spacing:.04em}
.sc-month-key{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0 0 8px}
.sc-month-key .sc-mjob{display:inline-flex;width:auto;margin:0;cursor:default}
table.sc-month-grid{table-layout:fixed;width:100%;min-width:0;border:1px solid var(--line)}
.sc-month-grid th{text-align:left;padding:6px;border-bottom:1px solid var(--line)}
.sc-month-grid td.sc-mcell{vertical-align:top;height:96px;padding:4px 5px 6px;border:1px solid var(--line-soft)}
.sc-mcell.out{background:var(--panel-2)}
.sc-mcell.today{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.sc-mday{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:0 0 3px;font-size:12px;color:var(--ink-mut)}
.sc-mtoday{font-family:var(--disp);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.sc-mcell.today .sc-mnum{color:var(--ink);font-weight:700}
.sc-mjob{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 4px;width:100%;min-width:0;margin:0 0 3px;padding:3px 6px;
  border:1px solid var(--line);border-left:4px solid var(--ink-dim);border-radius:5px;background:var(--panel-2);color:var(--ink);
  font:inherit;font-size:11.5px;line-height:1.3;text-align:left;text-decoration:none;cursor:pointer}
a.sc-mjob:hover,button.sc-mjob:hover{border-color:var(--accent)}
/* A job that opens a form reads as the others (not the panel's link colour); its border lights on hover. */
.panel .sc-month a.sc-mjob{color:var(--ink)}
.sc-mjob .sc-mtitle{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-mjob .sc-msite{flex:1 0 100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;color:var(--ink-mut)}
.sc-mtick{flex:none;color:var(--good);font-weight:700}
.sc-mjob.red{border-left-color:var(--fault);background:var(--fault-soft)}
.sc-mjob.yellow{border-left-color:var(--warn);background:var(--warn-soft)}
.sc-mjob.ok{border-left-color:var(--good);background:var(--good-soft);color:var(--ink-mut)}
.sc-mjob-extra{display:none}
.sc-mmore{padding:2px 0;font-size:11.5px;color:var(--accent)}
.sc-month-carry{margin:0 0 10px;padding:8px 10px;border:1px dashed rgba(224,86,86,.55);border-radius:8px;background:var(--fault-soft)}
.sc-month-carry-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sc-month-carry-list .sc-mjob{width:auto;max-width:100%;margin:0}
.sc-month-agenda{display:none;margin:0;padding:0;list-style:none}
.sc-aday{margin:0 0 8px;padding:8px 10px;border:1px solid var(--line-soft);border-radius:8px;background:var(--panel-2)}
.sc-aday.today{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.sc-aday-h{margin:0 0 6px;font-weight:600}
.sc-alist .sc-mjob{min-height:40px;padding:8px 10px;font-size:13px}
.sc-alist .sc-mjob .sc-mtitle{white-space:normal}
.sc-month-pick{margin:0 0 10px}
.sc-month-note{margin:10px 0 0}
.sc-print-head{display:none}
/* A day's menu (schedule.js dayMenuHtml): the day's "+" shows on hover or keyboard focus (always on a touch screen),
   the menu sits under the day's number, inside the calendar (the right-hand days open it leftwards). */
.sc-month-grid td.sc-mcell{position:relative}
.sc-mday .sc-mplus{margin-right:auto}
.sc-mplus{width:22px;height:22px;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--panel-2);color:var(--accent);
  font:inherit;font-size:15px;line-height:1;cursor:pointer;opacity:0}
.sc-mcell:hover .sc-mplus,.sc-mcell:focus-within .sc-mplus,.sc-aday .sc-mplus,.sc-mplus[aria-expanded="true"],.sc-mplus:focus{opacity:1}
@media(hover:none){.sc-mplus{opacity:1}.sc-mcell.can-add,.sc-aday{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}}
.sc-aday-h{display:flex;align-items:center;gap:8px}
.sc-aday-h .sc-mplus{margin-left:auto;width:32px;height:32px}
.sc-aday{position:relative}
.sc-daymenu{position:absolute;z-index:30;top:30px;left:4px;min-width:200px;padding:4px;border:1px solid var(--line);border-radius:8px;
  background:var(--panel-2);box-shadow:0 8px 24px rgba(0,0,0,.45);text-align:left}
.sc-month-grid td.sc-mcell:nth-child(n+5) .sc-daymenu{left:auto;right:4px}
.sc-aday .sc-daymenu{top:44px;left:auto;right:8px}
.panel .sc-daymenu a.sc-daymenu-item{display:block;padding:8px 10px;border-radius:6px;color:var(--ink);font-size:13px;text-decoration:none;white-space:nowrap}
.panel .sc-daymenu a.sc-daymenu-item:hover,.panel .sc-daymenu a.sc-daymenu-item:focus{background:var(--accent-soft);color:var(--ink)}
@media(max-width:719px){.sc-month-grid,.sc-month-key{display:none}.sc-month-agenda{display:block}}
/* Printing the Month view (body.sc-printing, set by "Print this month" while the month is shown): the grid alone,
   white with black text and borders, on a landscape page; every job of a full day written in. */
@page scmonth{size:landscape;margin:.35in}
@media print{
  body.sc-printing>:not(#app),body.sc-printing .rail,body.sc-printing .main>:not(#view),
  body.sc-printing #view>:not([data-sc-month-panel]),body.sc-printing [data-sc-month-panel]>h3,body.sc-printing [data-sc-month-panel]>.ph-hrow,
  body.sc-printing .sc-noprint,body.sc-printing .sc-month-agenda,body.sc-printing .sc-mmore{display:none !important}
  body.sc-printing #app,body.sc-printing .main,body.sc-printing #view{display:block !important;margin:0 !important;padding:0 !important;
    width:auto !important;max-width:none !important;min-height:0 !important;height:auto !important;overflow:visible !important;background:#FFFFFF !important}
  body.sc-printing [data-sc-month-panel]{page:scmonth;margin:0;padding:0;border:0;background:#FFFFFF;color:#000000}
  body.sc-printing .sc-print-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:0 0 6pt;font-size:13pt;color:#000000}
  body.sc-printing .sc-print-when{font-size:8pt}
  body.sc-printing .sc-month{margin:0}
  body.sc-printing .sc-month-key{display:flex !important;margin:0 0 4pt}
  body.sc-printing table.sc-month-grid{display:table !important;width:100%;border:1px solid #000000;font-size:8pt;color:#000000}
  body.sc-printing .sc-month-grid tr{break-inside:avoid;page-break-inside:avoid}
  body.sc-printing .sc-month-grid th{padding:2pt 4pt;border:1px solid #000000;background:#FFFFFF;color:#000000}
  body.sc-printing .sc-month-grid td.sc-mcell{height:auto;min-height:0;padding:2pt 3pt 4pt;border:1px solid #000000;background:#FFFFFF;box-shadow:none;color:#000000}
  body.sc-printing .sc-month-grid tbody td.sc-mcell{height:62pt}
  body.sc-printing .sc-mcell.today{border-width:2px}
  body.sc-printing .sc-mday,body.sc-printing .sc-mtoday,body.sc-printing .sc-mcell .sc-mnum{color:#000000}
  body.sc-printing .sc-mjob,body.sc-printing .sc-mjob-extra{display:flex !important;margin:0 0 2pt;padding:1pt 3pt;border:1px solid #000000;
    border-left:3pt solid #555555;border-radius:2pt;background:#FFFFFF;color:#000000 !important;font-size:7.5pt}
  body.sc-printing .sc-mjob.red{border-left-color:#B42318}
  body.sc-printing .sc-mjob.yellow{border-left-color:#B7791F}
  body.sc-printing .sc-mjob.ok{border-left-color:#2F855A}
  body.sc-printing .sc-mjob .sc-mtitle,body.sc-printing .sc-mjob .sc-msite{white-space:normal;overflow:visible;color:#000000}
  body.sc-printing .sc-mtick{color:#000000}
  body.sc-printing .sc-month-carry{border:1px solid #000000;background:#FFFFFF;color:#000000}
  body.sc-printing .sc-month-note{display:block;margin:4pt 0 0;font-size:7.5pt;color:#000000}
}
/* WYLA's credit on paper (js/print-brand.js printCreditHtml, index.html; John 21 Nov 2026: every printout credits WYLA
   with its logo and name). Never on screen. On paper: the on-light logo and "Produced with WYLA - Water YOU Looking At |
   wateryoulookingat.com" - at the top of any console page printed, and at the right of the printed month's heading. */
.wyla-print-credit{display:none}
@media print{
  .wyla-print-credit{display:flex;align-items:center;gap:6pt;font-size:7.5pt;line-height:1.2;color:#3E4E62;break-inside:avoid;
    page-break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .wyla-print-logo{display:block;height:22pt;width:auto;max-width:none}
  .wyla-print-page{margin:0 0 8pt;padding:0 0 4pt;border-bottom:1px solid #D9E1EA}
  body.sc-printing .sc-print-credit{margin-left:auto;align-self:center;font-size:7pt;color:#000000}
  body.sc-printing .sc-print-credit .wyla-print-logo{height:18pt}
}
.sw{position:relative;width:42px;height:24px;border-radius:999px;background:#22314a;border:1px solid var(--line);
  cursor:pointer;flex:none;padding:0}
.sw::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
  background:var(--ink-dim);transition:transform .15s}
.sw[aria-checked="true"]{background:rgba(63,191,127,.35);border-color:var(--good)}
.sw[aria-checked="true"]::after{transform:translateX(18px);background:var(--good)}
.sw:disabled{opacity:.45;cursor:not-allowed}
/* The menu a site's users will see: hidden items struck through, never removed, so the owner
   sees what switching a module off takes away. */
.menuprev{display:grid;gap:2px}
.menuprev span{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:6px;font-size:13px}
.menuprev span.hide{color:var(--ink-dim);text-decoration:line-through;opacity:.6}
.menuprev small{font-size:11px;color:var(--ink-dim);text-decoration:none}
@media (prefers-reduced-motion:reduce){.sw::after{transition:none}}
@media(max-width:620px){.featrow{grid-template-columns:1fr}.featright{justify-content:flex-start}}

/* ---------------------------------------------------------------- responsive */
.menubtn{display:none;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;
  color:var(--ink);width:38px;height:38px;align-items:center;justify-content:center;cursor:pointer;flex:0 0 38px}
.menubtn svg{width:20px;height:20px}
.scrim{display:none;position:fixed;inset:0;background:rgba(4,8,15,.6);z-index:40}
.scrim.show{display:block}
.railclose{display:none}
@media(max-width:920px){
  /* The closed menu is out of sight AND out of the keyboard's way (visibility, after the slide; app.js also sets
     `inert`): before 7 Nov 2026 Tab walked thirty invisible stops in it before reaching the page. */
  .rail{position:fixed;left:-248px;top:0;transition:left .22s ease,visibility 0s linear .22s;z-index:50;visibility:hidden}
  .rail.open{left:0;box-shadow:24px 0 60px rgba(0,0,0,.5);visibility:visible;transition:left .22s ease}
  .railclose{display:flex;align-items:center;justify-content:center;position:absolute;top:10px;right:10px;width:44px;height:44px;
    background:var(--panel);border:1px solid var(--line);border-radius:8px;color:var(--ink);cursor:pointer}
  .railclose svg{width:20px;height:20px}
  /* The close button sits top-right of the open menu: keep the name clear of it (it covered "AT" at 390 px). */
  .brand{padding-right:64px}
  .rail h1.brandmark{font-size:16px}
  .menubtn{display:flex}
  .topbar{padding:12px 14px}
  .content{padding:16px 14px 40px}
  .grid2,.grid23{grid-template-columns:1fr}
  .impbar{padding:9px 14px}
  .scopebar{padding:9px 14px 9px 10px}
}
@media(max-width:620px){
  .topbar h2{font-size:17px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi .num{font-size:21px}
  .kpi .sub{font-size:10.5px}
  .statuspill{font-size:11px;padding:6px 10px}
  .toldflag,.alarmflag{white-space:normal;max-width:11em;line-height:1.25;margin-left:0}
  .content{gap:14px}
  .panel{padding:13px 13px}
  .panel h3{flex-wrap:wrap}
  .panel h3 .right{margin-left:0;flex-basis:100%}
  /* Key/value rows stack rather than crushing a long value against its label. */
  .kv{flex-direction:column;gap:2px}
  .kv b{text-align:left}
  .btnrow{gap:8px}
  .btnrow .btn{flex:1 1 auto;min-width:0}
  .chan{grid-template-columns:auto 1fr auto auto;font-size:12px;gap:5px 8px}
  .alert{flex-wrap:wrap}
  .alert .when{margin-left:0;flex-basis:100%;margin-top:4px}
  .toast{left:12px;right:12px;bottom:12px}
  .toast div{max-width:none}
  /* The exit button drops to its own full-width row rather than being squeezed to a
     few pixels next to the session detail. */
  .impbar .btn{margin-left:0;flex:1 1 100%}
  .impbar .imptext{flex-direction:column;gap:1px}
  .scopebar .btn{margin-left:0;flex:1 1 100%}
  .scopebar .scopetext{flex-direction:column;gap:1px}
  .kpis.tight{grid-template-columns:repeat(2,minmax(0,1fr))}
  .formrow label{flex:1 1 100%}
  /* In-table buttons are thumbed on a phone, not clicked. 26px tall is under the
     comfortable touch target, so give them height here without loosening the desktop
     row rhythm. They do not stretch: .btnrow.tight opts out of the flex:1 rule above. */
  .btn.sm{padding:9px 11px;font-size:11.5px}
  .btnrow.tight .btn{flex:0 0 auto}
  /* A finger, not a mouse pointer: every button, menu entry and button-like link is at least 44 px tall. */
  .btn,.btn.sm,.topbtn,.linkbtn,.nav a,.menubtn,a.chip,button.chip{min-height:44px}
  .btn,a.btn,.linkbtn,a.chip,button.chip{display:inline-flex;align-items:center;justify-content:center}
  .menubtn{width:44px;height:44px;flex:0 0 44px}
  .pickboxes label,.picktoggle{min-height:44px}
  /* 16 px in every field: iPhones zoom the whole page into any field with smaller text. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(#linkCodeInput),select,textarea{font-size:16px !important;min-height:44px}
  /* The top bar: where you are on the first line, who you are on the next. The plant light stays on Plant view. */
  /* b165 (the batch's own sweep: "Demo School (simula..." and no "Every customer" on a phone): the customer and the
     site both stay - an admin's "Every customer" says which accounts the page is about - and the line wraps by words to
     at most two lines instead of being cut mid-word. */
  .crumb{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
    overflow-wrap:break-word}
  /* b165 (the batch's own sweep, r3: still "Demo School (simula..." - the base .crumbsite rule further down came later and
     won): `.crumb .crumbsite` outranks it whatever the order, so the site's name wraps by words, never cut. */
  .crumb .crumbsite{white-space:normal;text-align:left;overflow:visible;text-overflow:clip}
  /* The plant light stays on a phone, smaller, beside the search icon (operator streamline plan item 26). */
  .stackbox{order:5;gap:5px}
  .stack{padding:4px;gap:2px}
  .stack i{width:16px;height:8px}
  .stacklbl{font-size:8.5px}
  .userbox{order:5;flex:1 1 100%;justify-content:flex-end;margin-left:0}
  /* Sign out is inside the menu on a phone (index.html railSignOut), not on the top bar's second line. */
  #signOut{display:none}
  .railfoot .railsignout{display:flex;width:100%;justify-content:center;margin:0 0 6px}
  /* The search: an icon beside the title; opened, it covers the top of the screen and its results fill the rest. */
  .search{flex:0 0 44px;min-width:0;position:static}
  /* The icon shares the line with who you are, so a long page title does not cost the bar a third line. */
  .search{order:5}
  /* With the plant light back on a phone (item 26) the line is full: who you are, How to, Help and Setup take their
     own row, right-aligned, never stacked one above another (browser check 14 Nov 2026, owner at 390 px). */
  .userbox{order:6;flex:1 1 100%;min-width:0;flex-wrap:nowrap;justify-content:flex-end;gap:6px}
  .userbox .topbtn{padding:6px 10px}
  .searchbtn{display:inline-flex;width:44px;height:44px}
  .searchfield,.searchpanel{display:none}
  .search.open .searchfield{display:flex;position:fixed;left:0;right:0;top:0;height:56px;z-index:61;border:0;border-bottom:1px solid var(--line);
    border-radius:0;background:var(--panel);padding:0 2px 0 12px}
  .search.open .searchclose{display:inline-flex}
  .search.open .searchpanel:not([hidden]){display:block;position:fixed;left:0;right:0;top:56px;bottom:0;width:auto;max-height:none;border:0;border-radius:0;box-shadow:none;padding:6px 10px 24px;z-index:60}
  .ss-opt{padding:9px 8px;min-height:44px}
}
/* Tables that become cards on a phone: a page builder adds class="cards" to the table and data-label="Due" (the
   column's name) to each cell; under 700 px each row is a card with the labels above the values, so nothing is
   squeezed to a letter a line or pushed off the edge. */
@media(max-width:920px){
  table.cards{min-width:0}
  table.cards,table.cards tbody,table.cards tr,table.cards td{display:block;width:100%}
  table.cards thead,table.cards tr:has(>th),table.cards colgroup{display:none}
  table.cards tr{border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin:0 0 10px;background:var(--panel-2)}
  table.cards td{border:0;padding:5px 0;position:static !important;background:none !important}
  table.cards td[data-label]::before{content:attr(data-label);display:block;font-family:var(--disp);font-size:10.5px;
    letter-spacing:.12em;text-transform:uppercase;color:var(--ink-dim);margin-bottom:2px}
  table.cards td:empty{display:none}
  .twrap:has(>table.cards){overflow:visible;background:none}
  .twrap:has(>table.cards)+.twraphint{display:none}
  table.cards td{overflow-wrap:anywhere}
  table.cards td .chip{max-width:100%}
  /* A phone card has a whole line per field: an All sites chip may wrap again, by words. */
  table.cards.prog-table td .chip{white-space:normal}
  /* ...and a Schedule Status chip (b165 item c): never wider than its card at 375 px. */
  table.cards tr[data-sc-row]>td[data-label="Status"]>.chip,table.cards tr[data-sc-all-row]>td[data-label="Status"]>.chip{white-space:normal;max-width:100%}
  table.cards.prog-table td.prog-why,table.cards.prog-table td[data-prog-go]:first-child{min-width:0}
  /* The paper sheet's grid (#/backfill): every box as wide as its card (verify-aio-ab item 9). */
  table.cards.bf-grid td input,table.cards.bf-grid td select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
}
/* A tablet has room for the label BESIDE its value, so a card is half as tall. */
@media(min-width:621px) and (max-width:920px){
  table.cards td[data-label]:not([data-label=""]){position:relative !important;padding-left:10.5em}
  table.cards td[data-label]:not([data-label=""])::before{position:absolute;left:0;top:6px;width:9.5em;margin:0}
  /* Lab samples: each result beside its own unit, two to a row - never "Total coliforms unit" under E. coli
     (round-2 R09-08). */
  .formrow:has(>label>[data-lab-field="ecoliUnit"]){display:grid;grid-template-columns:1fr 1fr}
}
/* Tablets are touch screens too (round-2 R09-14: 25-33 px buttons at 768 px): 44 px targets up to 920 px wide and on
   any touch screen, the getting-started links and the menu foot links included. */
@media(max-width:920px),(pointer:coarse){
  .btn,.btn.sm,.topbtn,.linkbtn,.nav a,.menubtn,a.chip,button.chip{min-height:44px}
  .btn,a.btn,.linkbtn,a.chip,button.chip{display:inline-flex;align-items:center;justify-content:center}
  /* b165 (the batch's own sweep: "After heavy rain[for schools]"): a flex button drops the space before a chip or a
     quiet note inside it, so it is put back as a margin. */
  .btn>.chip,.btn>.dim{margin-left:.4em}
  .btn.sm{padding:9px 11px}
  .btnrow.tight .btn{flex:0 0 auto}
  .tstart a,.railfoot a.footlink{display:inline-flex;align-items:center;min-height:44px}
  .pickboxes label,.picktoggle{min-height:44px}
  /* b166 r3 (the re-sweep at 375 px: Lab's "E. coli x" / "Total coliforms x" chips were ~55 px tall ovals - the remove
     button inside took the 44 px tap height): a button inside a chip keeps the chip's line; its tap area reaches past
     the chip by padding and negative margins, so the chip stays a small pill. */
  .chip>.linkbtn{display:inline;min-height:0;padding:12px 8px;margin:-12px -8px -12px 0;line-height:1}
}
/* A short laptop screen (1366 x 768): the menu is tighter, so more of it fits without scrolling (round-2 R04-18). */
@media(min-width:921px) and (max-height:900px){
  .rail{padding-top:12px}
  .brand{padding-bottom:10px}
  .brand .tag{display:none}
  .unit{padding:9px 20px}
  .unit select{margin-top:5px}
  .nav{padding-top:2px}
  .navgroup{margin-top:3px;gap:0}
  .nav a{padding:5px 12px}
  .navhead{padding:3px 12px 1px}
}
/* Very narrow phones: one KPI per row beats two unreadable ones. */
@media(max-width:400px){
  .kpis{grid-template-columns:1fr}
  .kpis.tight{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .skel{animation:none}
  /* Pipes keep their colour, which is what carries the meaning — only the flow stops. */
  .pipe .pflow{animation:none}
  /* The bar stays visually distinct without the pulse — colour and border carry it. */
  .impbar .impdot{animation:none}
}

/* Sites overview: a cell opens its site on a double-click (programme.js data-prog-go) */
tr.prog-row td[data-prog-go] { cursor: pointer; user-select: none; }
tr.prog-row:hover td { background: rgba(65, 185, 220, .06); }

/* ---------------------------------------------------------------- Today (js/today.js) */
.trow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line-soft)}
.trow:last-of-type{border-bottom:0}
.trow .tmain{min-width:0}
.trow .tmain b{font-size:13px}
.trow .tmain .dim{font-size:12px;margin-top:2px}
.trow .tside{display:flex;align-items:center;gap:8px;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end}
.trow .btn{white-space:nowrap}
/* 24 Nov 2026 (b155): an alarm row's title and text take the free width; the level and buttons sit beside them while
   both fit and wrap under the text when they do not (the text was squeezed to 2-3 words a line beside the buttons). */
.trow.talarm{flex-wrap:wrap;align-items:flex-start;row-gap:8px}
.trow.talarm .tmain{flex:1 1 16em;min-width:0}
.trow.talarm .tside{flex:0 1 auto;min-width:0;justify-content:flex-start}
@media(max-width:620px){.trow.talarm{flex-direction:row}.trow.talarm .tmain{flex-basis:100%}}
.tstart{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tstart li{display:flex;gap:10px;align-items:flex-start}
.tstart .tick{width:20px;height:20px;flex:0 0 20px;border-radius:50%;border:1px solid var(--line);display:inline-flex;
  align-items:center;justify-content:center;font-size:12px;color:var(--good);margin-top:1px}
.tstart li.done .tick{border-color:var(--good);background:var(--good-soft)}
.tstart li.done a{color:var(--ink-mut)}
.tstart a{color:var(--accent)}
@media(max-width:620px){.trow{flex-direction:column;align-items:stretch}.trow .tside{justify-content:flex-start}}

/* ---------------------------------------------------------------- a page you cannot open, or no page at all */
.notice h3{color:var(--ink)}

/* ---------------------------------------------------------------- links, folds and a switch to find (review hooks) */
/* Bare links in a panel are readable on the dark page (HOOKS-WP4 11). */
.panel a:not(.btn){color:var(--accent)}
/* The "Why?" / "Which rules?" / "More details" folds. */
details>summary{cursor:pointer;color:var(--ink-dim)}
details>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* The row a "not switched on" page sends the owner to, on Setup > Features (HOOKS-WP7 12). */
.featrow.focus{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
/* The Setup editor's inputs: each label above its box, rows that wrap and never push the page wider than the screen
   (console review, 7 Nov 2026: "the editor layout is broken, worst on a phone"; HOOKS-WP7 9). */
.cfgch{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:0 0 10px;min-width:0}
.cfghead{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px}
.cfghead .btn{margin-left:auto}
.cfggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 12px;margin:0 0 6px}
.cfgf{display:flex;flex-direction:column;gap:3px;font-size:12px;min-width:0}
/* A class with `display` beats the [hidden] attribute: the high / low boxes hidden by "What is wired to this input?". */
.cfgf[hidden],.cfgfn[hidden]{display:none}
.cfgf input:not([type=checkbox]),.cfgf select{width:100%;min-width:0;box-sizing:border-box}
@media(max-width:620px){.cfggrid{grid-template-columns:1fr 1fr}}
/* "What is wired to this input?" and its Wiring: drop-downs whose choices are long ("Opens when pressed (normally
   closed)"), so each takes the whole row (up to a readable width) instead of one 150px column - never cut off. */
.cfgf.cfgwide{grid-column:1/-1;max-width:26rem}
/* b165 (the batch's own sweep: "Warning (yello", "UV Pure Hallet", "Flash - 1 second cy", "Pre-filter pressur"): a
   drop-down takes two columns - on a phone (two columns) the whole row - so its words show. A name box does so only up
   to 920 px: at 1440 px (r3) a two-column Label pushed "Offset" alone onto a second row of every analog input card,
   where one column of the six already holds the name. */
.cfggrid>.cfgf:not(.cfgwide):has(>select){grid-column:span 2}
@media(max-width:920px){.cfggrid>.cfgf:not(.cfgwide):has(>input[data-cfg$=".name"]){grid-column:span 2}}
/* Setup > Equipment: the custom device editor (js/custom-profiles.js; docs/equipment/CUSTOM-PROFILES.md section 6). The
   register table scrolls inside its own box on a narrow screen and becomes one card per reading on a phone
   (table.cards); the page itself never gets wider than the screen. */
.cfghead .btn+.btn{margin-left:0}
.cp-editor{border-color:var(--accent)}
.cp-help,.cp-note{margin:0 0 8px;font-size:12px}
.cp-regwrap{margin:0 0 6px;max-width:100%}
.cp-regs{min-width:1080px}
.cp-regs th{text-align:left;font-weight:400;color:var(--ink-dim);padding:4px 6px;white-space:nowrap}
.cp-regs td{padding:3px 4px;vertical-align:middle}
.cp-regs input,.cp-regs select{width:100%;min-width:0;box-sizing:border-box}
.cp-regs td:first-child input{min-width:140px}
.cp-regs .cp-num{min-width:64px}
.cp-regs .cp-tiny{min-width:46px}
.cp-regs .cp-wsel{min-width:150px}
.cp-paste{margin:8px 0}
.cp-paste textarea{width:100%;box-sizing:border-box;font-family:ui-monospace,Consolas,monospace;font-size:12px;margin:6px 0 0}

/* ---------------------------------------------------------------- All sites: the Map view (js/site-map.js) */
/* The map's own box. With no background tiles (offline) the pins sit on this plain colour, with the note below. */
.sitemap-slot,.sitemap-wrap{position:relative;width:100%}
.sitemap-slot>.empty{height:440px;display:flex;align-items:center;justify-content:center}
.sitemap{height:460px;width:100%;border:1px solid var(--line);border-radius:8px;background:#1A2638;z-index:0}
.sitemap.leaflet-container{font-family:var(--body);background:#1A2638}
.sitemap .leaflet-control-attribution{background:rgba(10,17,30,.78);color:var(--ink-mut);font-size:10.5px}
.sitemap .leaflet-control-attribution a{color:var(--accent)}
/* The map layers button (site-map.js setLayers; 15 Nov 2026): the app's dark panel like the zoom buttons, the radios in
   the accent so the one chosen is plain to see. */
.sitemap .leaflet-control-layers{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;
  box-shadow:0 4px 14px rgba(0,0,0,.35);color-scheme:dark}
.sitemap .leaflet-control-layers-toggle{filter:invert(1);width:36px;height:36px}
.sitemap .leaflet-control-layers-expanded{padding:8px 14px 8px 10px}
.sitemap .leaflet-control-layers label{font-size:13px;margin:4px 0;cursor:pointer}
.sitemap .leaflet-control-layers label:has(input:checked){color:var(--accent)}
.sitemap .leaflet-control-layers input[type=radio]{accent-color:var(--accent);margin:0 7px 0 0;vertical-align:-2px}
.sitemap .leaflet-bar a{background:var(--panel);color:var(--ink);border-bottom-color:var(--line)}
.sitemap .leaflet-bar a:hover,.sitemap .leaflet-bar a:focus{background:var(--panel-2)}
.sitemap-note{margin:6px 0 0;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--offline-soft);
  font-size:12px;color:var(--ink-mut)}
.sitemap-note[hidden]{display:none}
/* A pin: the shape and its mark carry the state as well as the colour. */
.smpin{background:none;border:0}
.smpin svg{display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.smpin:focus-visible{outline:3px solid #FFFFFF;outline-offset:2px;border-radius:6px}
.smtip{font-family:var(--body);font-size:12px}
/* The status card. */
.smpopup .leaflet-popup-content-wrapper,.smpopup .leaflet-popup-tip{background:var(--panel);color:var(--ink);
  border:1px solid var(--line);box-shadow:0 6px 18px rgba(0,0,0,.45)}
.smpopup .leaflet-popup-content{margin:12px 14px;font-size:12.5px;line-height:1.45}
.smpopup a.leaflet-popup-close-button{color:var(--ink-mut)}
.smpop-name{font-weight:700;font-size:14px;margin:0 18px 2px 0}
.smpop-cust{margin:0 0 4px}
.smpop-state{margin:4px 0 6px}
.smpop-why{margin:0 0 6px;padding-left:18px}
.smpop-why li{margin:0 0 2px}
.smpop-more,.smpop-when{font-size:11.5px;margin:0 0 6px}
.smpop-open{margin-top:2px}
/* Under the map: the sites with no location, and the pinned sites as a short list. */
.smunplaced{margin:10px 0 0;padding:9px 12px;border:1px dashed var(--line);border-radius:8px;font-size:12.5px}
.smunplaced ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px}
.smunplaced li{display:flex;align-items:center;gap:6px}
.smunplaced .linkbtn,.smlist .linkbtn{font-size:12.5px;color:var(--accent);padding:0;text-align:left}
.smlist{margin:10px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 16px}
.smlist li{display:flex;align-items:baseline;gap:7px;min-width:0;padding:3px 0;border-bottom:1px solid var(--line-soft)}
.smlist-why{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media(max-width:620px){
  .sitemap{height:62vh;min-height:300px}
  .sitemap-slot>.empty{height:300px}
  .smlist{grid-template-columns:1fr}
  .prog-viewsw{flex-basis:100%}
}

/* ---------------------------------------------------------------- Setup: Site location (js/site-location.js) */
/* The picker map beside the latitude / longitude boxes; one column on a phone (map first, boxes under it). */
.locpick{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;align-items:start}
.locmap-slot,.locmap-wrap{position:relative;width:100%;min-width:0}
.locmap-slot>.empty{height:300px;display:flex;align-items:center;justify-content:center}
.locmap{height:320px;width:100%;border:1px solid var(--line);border-radius:8px;background:#1A2638;z-index:0;cursor:crosshair}
.locmap.leaflet-container{font-family:var(--body);background:#1A2638}
.locmap .leaflet-control-attribution{background:rgba(10,17,30,.78);color:var(--ink-mut);font-size:10.5px}
.locmap .leaflet-control-attribution a{color:var(--accent)}
.locmap .leaflet-bar a{background:var(--panel);color:var(--ink);border-bottom-color:var(--line)}
.locpin{background:none;border:0}
.locpin svg{display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.locside{display:flex;flex-direction:column;gap:8px;min-width:0}
.locside input{width:100%;box-sizing:border-box}
.locprob{color:var(--red);font-size:12px}
/* Find a place, the places found, Map / Satellite, the search credit and the address (13 Nov 2026). */
.locmain{display:flex;flex-direction:column;gap:8px;min-width:0}
.locsearch{display:flex;flex-direction:column;gap:4px;min-width:0}
.locqrow{display:flex;gap:6px;min-width:0}
.locqrow input{flex:1 1 auto;min-width:0;box-sizing:border-box}
.locresults{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow:auto}
.locres{display:block;width:100%;text-align:left;background:var(--panel-2);color:var(--ink);border:1px solid var(--line);
  border-radius:6px;padding:6px 9px;font:inherit;font-size:12.5px;line-height:1.35;cursor:pointer}
.locres:hover,.locres:focus-visible{border-color:var(--accent)}
.locres.on{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.locnote{font-size:12px}
.locbase{margin:0}
.locbase-note{font-size:12px}
.locattr{font-size:10.5px;margin-top:-4px}
.locaddr{display:flex;flex-direction:column;gap:5px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.locaddr b{font-weight:600;overflow-wrap:anywhere}
@media(max-width:760px){
  .locpick{grid-template-columns:1fr}
  .locmap{height:280px}
}

/* The plant-room checks page (#/plant-checks, js/plant-door.js): read on a phone in a dim plant room, so its labels
   are sentence case at 16px (not the console's 11px capitals), its messages 15px, and every choice 44px high. */
.pd .formrow label,.pd label.wide{font-size:16px;letter-spacing:0;text-transform:none;color:var(--ink);font-family:inherit}
.pd .banner{font-size:15px;line-height:1.4}
.pd .pd-choice{display:inline-flex;gap:8px;align-items:center;min-height:44px;margin:2px 16px 2px 0;font-size:16px;cursor:pointer}
.pd .pd-choice input{width:22px;height:22px;margin:0}
.pd .pd-photo-kept{display:block;margin:4px 0 0;font-size:15px}
.pd p{font-size:16px}

/* ---------------------------------------------------------------- wave 2 shell (operator streamline plan 46-49, 64) */
/* Words for a screen reader only. */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* The Daily menu (46): an item folded under "More pages" is hidden; the switch and the folded greyed items' line sit
   under the menu. `.nav a` sets display, so the hidden attribute needs saying. */
.nav a[hidden]{display:none}
.navtools{display:flex;flex-direction:column;gap:6px;padding:0 10px 14px}
.navtools button[hidden]{display:none}
.navmore,.navoff{background:none;border:1px dashed var(--line);border-radius:8px;color:var(--ink-mut);padding:8px 12px;
  font:inherit;font-size:13px;text-align:left;cursor:pointer}
.navmore:hover,.navoff:hover{border-color:var(--accent);color:var(--accent)}
.navoff{font-size:11.5px;color:var(--ink-dim);line-height:1.35}
/* The site's name in the top bar opens the site chooser (48); with one site it is plain text. */
.crumbsite{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;letter-spacing:inherit;cursor:pointer;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline dotted;text-underline-offset:3px}
.crumbsite:disabled{cursor:default;text-decoration:none}
.crumbsite[hidden]{display:none}
.unit .sitefind{width:100%;margin-top:8px}
.unit .sitefind[hidden]{display:none}
/* The site chooser (48): a box over the page; on a phone it fills the screen. */
.sitechooser{position:fixed;inset:0;z-index:70;background:rgba(4,8,15,.6);display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 16px}
.sitechooser[hidden]{display:none}
.scbox{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 18px 50px rgba(0,0,0,.5);
  width:min(520px,100%);max-height:80vh;display:flex;flex-direction:column;padding:14px 14px 10px;min-width:0}
.schead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.schead h3{margin:0;font-family:var(--disp);font-size:14px;letter-spacing:.08em}
#siteChooserFind{width:100%;box-sizing:border-box;background:var(--panel-2);border:1px solid var(--line);border-radius:7px;color:var(--ink);
  padding:9px 10px;font-size:14px}
.sclist{overflow-y:auto;overscroll-behavior:contain;margin-top:8px;min-height:0}
.schd{font-family:var(--disp);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-dim);padding:10px 4px 4px}
.scrow{display:grid;grid-template-columns:auto 1fr;gap:0 10px;align-items:center;width:100%;text-align:left;background:none;border:0;
  border-radius:7px;padding:8px;color:var(--ink);font:inherit;font-size:13.5px;cursor:pointer;min-height:44px}
.scrow:hover,.scrow:focus-visible{background:var(--accent-soft)}
.scrow.on{box-shadow:inset 2px 0 0 var(--accent)}
.scrow .scstate{grid-column:2;font-size:11.5px;color:var(--ink-dim)}
.scdot{width:10px;height:10px;border-radius:50%;background:transparent;border:1px solid var(--ink-dim);grid-row:span 2}
.scdot.red{background:var(--fault);border-color:var(--fault)}
.scdot.yellow{background:var(--warn);border-color:var(--warn)}
.scdot.green{background:var(--good);border-color:var(--good)}
.scmore{padding:8px 4px;font-size:12px}
/* The phone's bottom bar (49) and its Record list: phones only. */
.bottombar,.recordsheet{display:none}
/* Wiring check (64): the list is for phones; a wider screen has the drawing. */
.wiringlist{display:none}
.wclist{list-style:none;margin:0;padding:0}
.wcrow{display:grid;grid-template-columns:auto 1fr auto;gap:4px 10px;align-items:center;padding:10px 0;border-top:1px solid var(--line-soft)}
.wcrow:first-child{border-top:0}
.wcrow .qd{width:10px;height:10px;border-radius:50%;background:var(--good)}
.wcrow .qd.bad{background:var(--fault)}
.wcrow .qd.warn{background:var(--warn)}
.wcrow .qd.off{background:transparent;border:1px solid var(--ink-mut)}
.wcwords{font-size:12px;color:var(--ink-mut)}
/* b165 (the batch's own sweep): a long input name or gateway line wraps by words inside its row, never past it. */
.wcmain{min-width:0;overflow-wrap:break-word}
.wcrow.fault .wcwords{color:var(--fault)}
.wcval{font-variant-numeric:tabular-nums;text-align:right}
@media(max-width:620px){
  .bottombar:not([hidden]){display:flex;position:fixed;left:0;right:0;bottom:0;z-index:35;background:var(--panel);border-top:1px solid var(--line);
    padding:4px 4px calc(4px + env(safe-area-inset-bottom));gap:2px}
  .bbitem{flex:1 1 0;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:4px;background:none;border:0;
    border-radius:8px;color:var(--ink-mut);font:inherit;font-size:12px;text-decoration:none;cursor:pointer;padding:4px 2px}
  .bbitem[aria-current="page"]{color:var(--accent);background:var(--accent-soft)}
  .bbcount{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;
    background:var(--warn);color:#0A111E;font-size:11px;font-weight:700}
  .bbcount.red{background:var(--fault);color:#fff}
  .recordsheet:not([hidden]){display:flex;flex-direction:column;position:fixed;left:8px;right:8px;bottom:calc(64px + env(safe-area-inset-bottom));z-index:36;
    background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 18px 50px rgba(0,0,0,.5);padding:8px}
  .rshd{font-family:var(--disp);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-dim);padding:4px 8px}
  .rsitem{display:flex;align-items:center;min-height:48px;padding:0 10px;border-radius:7px;color:var(--ink);text-decoration:none}
  .rsitem:hover,.rsitem:focus-visible{background:var(--accent-soft)}
  /* Room under the page for the bar, so its last button is never under it. */
  .app:has(.bottombar:not([hidden])) .content{padding-bottom:96px}
  .app:has(.bottombar:not([hidden])) ~ .toast{bottom:76px}
  .sitechooser{padding:0}
  .scbox{width:100%;max-height:none;height:100%;border-radius:0;border:0}
  /* Bigger row buttons (64): a button on a table row or a list row is thumbed, not clicked. */
  td .btn.sm,.btnrow.tight .btn.sm,.alert .btn.sm,.alert .btn{min-height:44px;padding:10px 14px;font-size:13px}
  /* Wiring check on a phone (64): the list, the drawing folded. */
  .wiringlist{display:block}
  body[data-page="sitemap"] .topo,body[data-page="sitemap"] .topo~.legend{display:none}
  /* b165 (the batch's own sweep, r3 at 375 px: an empty "Signal topology - live / line colour is the health of that leg"
     panel over the list): the drawing's whole panel folds; the list says the drawing is on a wider screen. */
  body[data-page="sitemap"] .topopanel{display:none}
}
/* Help's emergency block on a phone (operator streamline item 72, decision D9): one red line and the kit button, the
   steps folded under them - unless a Do Not Drink or regulator case is open (.sr-emerg-open shows everything). */
.sr-emerg .sr-emerg-phone{display:none}
.sr-emerg-line,.sr-emerg-case{color:var(--red,#A3261B);font-weight:600}
@media(max-width:620px){
  .sr-emerg .sr-emerg-wide{display:none}
  .sr-emerg .sr-emerg-phone{display:block}
}
/* Trends: several readings at once and the step picker (Trends update, 14 Nov 2026). The range and step buttons sit
   side by side and wrap on a phone; the readings list is folded to one line, and open it is one reading per line on a
   phone (a box big enough for a finger), two or more columns on a wide screen. */
.trend-controls{display:flex;flex-wrap:wrap;gap:0 18px;align-items:flex-start}
.trend-pick{max-width:100%}
.trend-pick>summary{list-style:none;cursor:pointer;max-width:100%;white-space:normal;text-align:left}
.trend-pick>summary::-webkit-details-marker{display:none}
.trend-pick>summary .dim{margin-left:5px}
.trend-ticks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 14px}
.trend-ticks li{display:flex;align-items:center;gap:8px;min-height:36px}
.trend-group-head{font-size:12px;font-weight:600;text-transform:none;margin:10px 0 2px}
.trend-ticks label{display:flex;flex-direction:row;align-items:center;gap:8px;cursor:pointer;flex:1 1 auto;min-width:0;
  font-size:14px;letter-spacing:0;text-transform:none;color:var(--ink);font-family:inherit}
.trend-ticks input[type="checkbox"]{width:18px;height:18px;flex:0 0 auto;margin:0}
.trend-ticks label:has(input[disabled]:not(:checked)){opacity:.6}
.trend-stack{display:flex;flex-direction:column;gap:14px}
.trend-reading-head{font-size:13px;margin:0 0 4px}
/* Separate | Combined beside the Readings picker, and the combined chart's legend (John, 15 Nov 2026). */
.trend-layout{margin:0;flex:none}
.trend-combined{min-width:0}
.combined-legend{list-style:none;margin:8px 0 4px;padding:0;display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--ink-mut)}
.combined-legend li{line-height:1.45}
.combined-legend svg{vertical-align:middle;margin-right:2px}
.combined-legend b{color:var(--ink);font-weight:600}
.combined-unit{color:var(--ink-dim)}
.tp-paper .combined-legend,.tp-paper .combined-legend b,.tp-paper .combined-unit,.tp-paper .combined-note{color:#3E4E62}
@media(max-width:620px){
  .trend-ticks{grid-template-columns:1fr}
  .trend-ticks li{min-height:44px}
  .trend-ticks li .btn.sm{flex:0 0 auto}
}
/* Trends: Full screen and Print (js/trend-view.js, John 14 Nov 2026). Both are drawn on document.body
   (#trendViewRoot), over the whole window, so the page's 20-second redraw never closes them. */
.panel h3 .trend-tools{flex:none;text-transform:none;letter-spacing:.03em;font-family:var(--body);font-weight:400}
#trendViewRoot:fullscreen{background:var(--bg);overflow:auto}
.tv-full{position:fixed;inset:0;z-index:170;background:var(--bg);color:var(--ink);overflow:auto;padding:10px 14px 16px}
.tv-bar{display:flex;align-items:flex-start;gap:12px;margin:0 0 8px}
.tv-title{flex:1 1 auto;min-width:0;font-size:14px}
.tv-actions{display:flex;gap:6px;flex:none;margin-left:auto}
.tv-dim{color:var(--ink-dim);font-size:12px}
.tv-hint{margin:0 0 8px}
.tv-charts{display:flex;flex-direction:column;gap:10px}
.tv-block{min-width:0}
.tv-head{font-size:13px;margin:0 0 3px}
.tv-unit{color:var(--ink-mut)}
.tv-nums{font-size:12px;color:var(--ink-mut);margin-top:2px}
.tv-note{font-size:11.5px;color:var(--ink-dim)}
.tv-legend{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--ink-mut)}
.tv-legend svg{vertical-align:middle}
@media(max-width:620px){ .tv-sep{display:block;height:0;overflow:hidden} .tv-bar{flex-wrap:wrap} }
/* The print preview on screen: a white sheet over a grey backdrop; Print and Close are never printed. */
.tp-wrap{position:fixed;inset:0;z-index:170;background:#4A5564;overflow:auto;padding:12px}
.tp-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:8.5in;margin:0 auto 10px;padding:8px 12px;
  background:var(--panel);border:1px solid var(--line);border-radius:8px;color:var(--ink)}
.tp-paper{background:#FFFFFF;color:#14232C;width:8.5in;max-width:100%;margin:0 auto;padding:.5in;
  font-family:"Segoe UI",system-ui,-apple-system,sans-serif;font-size:11px;line-height:1.4;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.tp-paper .empty{color:#5C7089}
.tp-paper .legend{color:#3E4E62}
.tp-paper .tv-dim,.tp-paper .tv-unit,.tp-paper .tv-nums,.tp-paper .tv-note,.tp-paper .tv-legend{color:#3E4E62}
.tp-head{display:flex;align-items:center;gap:14px}
.tp-logo{max-height:.6in;max-width:2.2in;display:block}
.tp-org{flex:1 1 auto;min-width:0;font-size:10.5px;color:#3E4E62}
.tp-name{font-size:16px;font-weight:600;color:#0A111E}
.tp-wyla{flex:none;max-width:2.3in;text-align:right;font-size:8.5px;color:#3E4E62}
.tp-wyla-logo{height:.32in;display:block;margin:0 0 2px auto}
.tp-rule{border:0;border-top:1px solid #14232C;margin:8px 0 12px}
.tp-title{font-size:15px;margin:0 0 6px;color:#0A111E}
.tp-kv{border-collapse:collapse;font-size:11px;margin:0 0 4px;width:auto;min-width:0}
.tp-kv th{font-family:inherit;font-size:11px;letter-spacing:0;text-transform:none;text-align:left;font-weight:600;
  padding:1px 14px 1px 0;color:#3E4E62;vertical-align:top;white-space:nowrap;border:0;background:none}
.tp-kv td{padding:1px 0;color:#14232C;border:0;font-variant-numeric:normal}
.tp-printed{font-size:10px;color:#3E4E62;margin:0 0 12px}
.tp-charts{display:flex;flex-direction:column;gap:14px}
.tp-paper .tv-block{break-inside:avoid;page-break-inside:avoid;border-top:1px solid #D9E1EA;padding-top:8px}
.tp-paper .chart{background:#FFFFFF}
.tp-note{font-size:10px;color:#3E4E62;margin:12px 0 0}
.tp-foot{font-size:9px;color:#3E4E62;border-top:1px solid #D9E1EA;margin-top:14px;padding-top:4px}
@media print{
  /* The page number only: the footer's words are the in-flow footer (.tp-foot), printed once at the end. With the
     words here too, Chrome (which draws @page margin boxes) printed them twice on the last page. */
  @page{size:letter portrait;margin:.5in .5in .6in;
    @bottom-center{content:"Page " counter(page) " of " counter(pages);
      font-size:8pt;color:#3E4E62;font-family:"Segoe UI",Arial,sans-serif}}
  :root{color-scheme:light}
  html,body{background:#FFFFFF !important;color:#14232C}
  body.trend-printing>*:not(#trendViewRoot){display:none !important}
  body.trend-printing #trendViewRoot .tp-wrap{position:static;inset:auto;background:#FFFFFF;padding:0;overflow:visible}
  .tp-noprint{display:none !important}
  .tp-paper{width:auto;max-width:none;margin:0;padding:0;box-shadow:none}
  .tp-head,.tp-site{break-inside:avoid;page-break-inside:avoid}
  .tp-paper .tv-block{break-inside:avoid;page-break-inside:avoid}
}
/* Trends: Live 24-hour chart (js/live-trend.js, John 14 Nov 2026). A live chart is zoomed by hand: a drag across it
   (mouse, or one finger sideways - up and down still scrolls the page), the wheel, or two fingers. */
.live-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 10px;font-size:12px}
.live-dot{display:inline-flex;align-items:center;gap:6px}
.live-dot::before{content:"";width:9px;height:9px;border-radius:50%;background:#3DBE8B;box-shadow:0 0 0 3px rgba(61,190,139,.2)}
.live-dot[data-live-state="paused"]::before{background:#F28C38;box-shadow:0 0 0 3px rgba(242,140,56,.2)}
.live-how{flex:1 1 260px}
.live-paused{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px}
.live-chart{position:relative;touch-action:pan-y;cursor:crosshair;user-select:none;-webkit-user-select:none}
.live-chart .chart{display:block}
.live-sel{position:absolute;top:0;bottom:0;pointer-events:none;background:rgba(65,185,220,.2);
  border-left:1px solid #41B9DC;border-right:1px solid #41B9DC}
.live-empty{display:flex;align-items:center;justify-content:center;text-align:center}
@media print{ .live-sel{display:none} }
/* ---------------------------------------------------------------- pump control (js/pump-control.js, read only)
   The screen draft drafts/mockups/pump-control-demo.html: the fixed read-only banner, the set state in words, the plant
   drawing with each tank's start / stop / low-low / high-high lines and the flow direction, the pump cards, "Why it is
   doing this", duty and rotation, levels, settings in force and the last events. A status that is not current is drawn
   greyed and still (no moving water). Phone width: every grid falls to one column. */
.pc-page{min-width:0}
.pc-readonly{display:flex;gap:10px;align-items:flex-start;border:1px dashed rgba(65,185,220,.45);border-radius:8px;
  padding:9px 12px;font-size:12.5px;color:var(--ink-mut);margin:0 0 14px;background:rgba(65,185,220,.05)}
.pc-readonly b{color:var(--accent)}
.pc-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:0 0 auto;margin-top:5px;background:var(--offline)}
.pc-dot.ok{background:var(--good);box-shadow:0 0 8px rgba(63,191,127,.6)}
.pc-dot.warn{background:var(--warn)}
.pc-dot.fault{background:var(--fault);box-shadow:0 0 8px rgba(224,86,86,.6)}
.pc-set{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;min-width:0}
.pc-set:first-of-type{border-top:0;padding-top:0;margin-top:0}
.pc-head{margin:0 0 10px}
.pc-title{font-family:var(--disp);font-size:20px;font-weight:600}
.pc-meta{font-size:12px;color:var(--ink-mut);margin-top:3px;overflow-wrap:anywhere}
.pc-meta b{color:var(--ink)}
.pc-stale-note{margin:0 0 10px}
.pc-status{display:flex;align-items:flex-start;gap:12px;border-radius:9px;padding:11px 14px;margin:0 0 14px;font-size:14px;flex-wrap:wrap}
.pc-status>div{flex:1 1 220px;min-width:0}
.pc-status b{font-weight:600}
.pc-status.ok{background:var(--good-soft);border:1px solid rgba(63,191,127,.35)}
.pc-status.warn{background:var(--warn-soft);border:1px solid rgba(233,178,60,.4)}
.pc-status.fault{background:var(--fault-soft);border:1px solid rgba(224,86,86,.45)}
.pc-status.offline{background:var(--offline-soft);border:1px solid var(--line);color:var(--ink-mut)}
.pc-status .pc-when{flex:0 0 auto;font-size:12px;color:var(--ink-mut);white-space:nowrap}
.pc-panel{background:var(--panel-2)}
.pc-row{display:grid;grid-template-columns:1.55fr 1fr;gap:14px}
.pc-row3{display:grid;grid-template-columns:1fr 1.1fr 1.2fr;gap:14px;margin-top:14px}
.pc-pumps{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.pc-set>.pc-panel:last-child{margin-top:14px}
@media(max-width:1100px){.pc-row,.pc-row3{grid-template-columns:1fr}}
@media(max-width:700px){.pc-pumps{grid-template-columns:1fr}}
/* The plant drawing. */
svg.pc-plant{width:100%;height:auto;display:block}
.pc-tank{fill:var(--bg);stroke:#2B3E5C;stroke-width:2}
.pc-water{fill:rgba(65,185,220,.55)}
.pc-mark{stroke-dasharray:4 3;stroke-width:1.3;stroke:var(--ink-mut)}
.pc-mark.start{stroke:var(--good)} .pc-mark.trip{stroke:var(--fault)}
.pc-mark-t{font-size:10px;fill:var(--ink-mut);font-family:var(--body)}
.pc-mark-t.start{fill:var(--good)} .pc-mark-t.trip{fill:var(--red)}
.pc-tank-name{font-size:12px;fill:var(--ink);font-family:var(--disp)}
.pc-tank-lvl{font-size:17px;font-weight:600;fill:var(--ink);font-family:var(--disp)}
.pc-tank-lvl.bad{fill:var(--red);font-size:13px}
.pc-pipe{fill:none;stroke:#2B3E5C;stroke-width:4}
.pc-pipe.on{stroke:var(--accent);stroke-dasharray:10 6;animation:pc-flow 1s linear infinite}
.pc-arrowhead{fill:var(--ink-dim)}
@keyframes pc-flow{from{stroke-dashoffset:32}to{stroke-dashoffset:0}}
.pc-pump circle{fill:var(--bg);stroke:var(--offline);stroke-width:3}
.pc-pump .pc-pump-in{fill:var(--offline)}
.pc-pump .pc-pump-t{font-size:18px;font-weight:700;fill:var(--offline)}
.pc-pump.run circle{stroke:var(--good)} .pc-pump.run .pc-pump-in{fill:var(--good)}
.pc-pump.fault circle{stroke:var(--fault)} .pc-pump.fault .pc-pump-t{fill:var(--fault)}
.pc-pump.unknown circle{stroke:var(--warn)} .pc-pump.unknown .pc-pump-t{fill:var(--warn)}
.pc-pump-name{font-size:11px;fill:var(--ink-mut);font-family:var(--body)}
svg.pc-plant.stale{opacity:.6;filter:grayscale(.7)}
svg.pc-plant.stale .pc-pipe.on{animation:none;stroke-dasharray:none}
@media (prefers-reduced-motion:reduce){.pc-pipe.on{animation:none}}
/* Lists ("Why it is doing this", events, versions). */
.pc-list{margin:0;padding:0;list-style:none}
.pc-list li{display:flex;align-items:flex-start;gap:9px;padding:7px 0;border-bottom:1px solid var(--line-soft);font-size:12.5px;min-width:0}
.pc-list li:last-child{border-bottom:0}
.pc-list li>*{min-width:0;overflow-wrap:anywhere}
.pc-t{color:var(--ink-dim);flex:0 0 auto;font-variant-numeric:tabular-nums;font-size:11.5px;max-width:9.5em}
.pc-code{font-family:Consolas,monospace;font-size:11px;color:var(--accent);background:var(--accent-soft);border-radius:4px;padding:0 5px;margin-left:2px;overflow-wrap:anywhere}
.pc-more,.pc-versions{margin-top:8px;font-size:12.5px}
.pc-more summary,.pc-versions summary{cursor:pointer;color:var(--accent)}
.pc-diff{font-size:11.5px;color:var(--ink-dim);margin-top:3px}
.pc-vline{font-size:12.5px;margin:0 0 10px;overflow-wrap:anywhere}
.pc-note{font-size:11.5px;color:var(--ink-dim);margin-top:10px}
/* The pump cards. */
.pc-pumpcard{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);padding:13px 14px;min-width:0}
.pc-pumpcard.ok{box-shadow:inset 3px 0 0 var(--good)} .pc-pumpcard.fault{box-shadow:inset 3px 0 0 var(--fault)}
.pc-pumpcard.warn{box-shadow:inset 3px 0 0 var(--warn)} .pc-pumpcard.idle{box-shadow:inset 3px 0 0 var(--offline)}
.pc-pumpcard.stale{opacity:.75;box-shadow:inset 3px 0 0 var(--offline)}
.pc-ph{display:flex;align-items:center;gap:8px;font-family:var(--disp);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-mut)}
.pc-ph .pc-dot{margin-top:0}
.pc-role{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.pc-pill{font-family:var(--disp);font-size:10px;letter-spacing:.12em;text-transform:uppercase;border-radius:20px;padding:2px 9px;border:1px solid var(--line);color:var(--ink-mut)}
.pc-pill.on{color:var(--accent);border-color:rgba(65,185,220,.45);background:var(--accent-soft)}
.pc-pill.warn{color:var(--warn);border-color:rgba(233,178,60,.45)}
.pc-big{font-family:var(--disp);font-size:22px;font-weight:600;margin:6px 0 4px}
.pc-latched{border:1px solid rgba(224,86,86,.45);background:var(--fault-soft);border-radius:8px;padding:8px 10px;margin:6px 0;font-size:12.5px}
.pc-latched>div{display:flex;gap:8px;align-items:flex-start}
.pc-reset{color:var(--ink);margin-top:4px}
.pc-kv{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:3px 10px;font-size:12.5px;margin-top:8px}
.pc-kv>span:nth-child(odd){color:var(--ink-mut)}
.pc-kv>span:nth-child(even){text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.pc-kv>span.pc-sub{padding-left:12px;color:var(--ink-dim)}
.pc-kv .pc-warn{color:var(--warn)} .pc-kv .pc-bad{color:var(--red)}
@media(max-width:420px){.pc-kv{grid-template-columns:1fr}.pc-kv>span:nth-child(even){text-align:left;margin-bottom:4px}}
.pc-wear{height:5px;border-radius:3px;background:var(--line);overflow:hidden;margin-top:6px}
.pc-wear i{display:block;height:100%;background:var(--accent)}
.pc-drive{margin-top:10px;border-top:1px solid var(--line-soft);padding-top:8px;font-size:11.5px;color:var(--ink-dim)}
.pc-empty{font-size:13px;padding:6px 0}
.pc-empty p{margin:6px 0 0}
/* The demo bar's "See it as" switch (js/demo.js demoPersonaPicker, 18 Nov 2026): its own row under the sentence, the
   current persona in the accent colour, one line saying what that person can do. Wraps on a phone. */
.demobar .demoaswrap[hidden]{display:none}
/* 24 Nov 2026 (b156): "You're signed in as <email> ... Invited under another address?" + Switch account (js/sign-in-front.js
   demoWhoHtml): its own row; a long address wraps; on a phone the button takes the full width like the bar's others. */
.demobar .demowho[hidden]{display:none}
.demobar .demowho{flex:1 0 100%;min-width:0;display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;font-size:12.5px;color:var(--ink-mut)}
.demobar .demowho b{color:var(--ink);overflow-wrap:anywhere}
.demobar .demowhotext{min-width:0;flex:1 1 260px}
.demobar .demowho .btn{margin-left:0}
.demobar .demoaswrap{flex:1 0 100%;min-width:0}
.demobar .demoas{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px}
.demobar .demoaslabel{color:var(--ink-mut)}
.demobar .demoasbtns{display:inline-flex;gap:6px;flex-wrap:wrap}
.demobar .demoas .btn{margin-left:0;flex:0 0 auto;color:var(--ink);border-color:rgba(65,185,220,.5)}
.demobar .demoas .btn[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:600}
.demobar .demoas .btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.demobar .demoaswhat{color:var(--ink-mut);min-width:0}
.demobar .demoaswhat b{color:var(--ink)}
@media(max-width:620px){
  .demobar .demoaswhat{flex:1 0 100%}
}

/* ---------------------------------------------------------------- one equipment unit's screen (#/equipment, 18 Nov 2026)
   js/equipment-screen.js: the approved demo screens (drafts/mockups/hallett-demo.html, centurio-demo.html) in the console's
   own tokens. Status line, four rings, reading tiles with a limit band and a 24-hour sparkline, the 7-day trend, the
   compliance strip, three lists and the installer's details. One column on a phone. */
.eqs-crumbs{margin:0 0 10px;font-size:12.5px;color:var(--ink-dim)}
.eqs-crumbs a{color:var(--accent);text-decoration:none}
.eqs{display:flex;flex-direction:column;gap:14px}
.eqs-title{font-family:var(--disp);font-size:24px;font-weight:600;letter-spacing:.02em;margin:0}
.eqs-meta{color:var(--ink-mut);font-size:13px;margin-top:4px;overflow-wrap:anywhere}
.eqs-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:0 0 auto;background:var(--offline)}
.eqs-dot.ok{background:var(--good)}
.eqs-dot.warn{background:var(--warn)}
.eqs-dot.fault{background:var(--fault)}
.eqs-dot.info{background:var(--accent)}
.eqs-status{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:var(--r);border:1px solid var(--line);
  background:var(--offline-soft);font-size:15px}
.eqs-status.ok{border-color:rgba(63,191,127,.4);background:var(--good-soft)}
.eqs-status.warn{border-color:rgba(233,178,60,.45);background:var(--warn-soft)}
.eqs-status.fault{border-color:rgba(224,86,86,.5);background:var(--fault-soft)}
.eqs-status.info{border-color:rgba(65,185,220,.4);background:var(--accent-soft)}
.eqs-status>div:first-of-type{flex:1 1 0;min-width:0}
.eqs-when{margin-left:auto;color:var(--ink-mut);font-size:12.5px;white-space:nowrap}
.eqs-stale{margin:0;padding:8px 12px;border-left:3px solid var(--warn);background:var(--warn-soft);border-radius:6px;font-size:13px}
.eqs-setup{margin:0;padding:8px 12px;border-left:3px solid var(--warn);background:var(--warn-soft);border-radius:6px;font-size:13px}
.eqs-glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.eqs-gl{display:flex;align-items:center;gap:14px;background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;min-width:0}
.eqs-ring{width:92px;height:92px}
.eqs-ring-num{font-size:8.5px}
.eqs-gl-side{min-width:0}
.eqs-k{font-family:var(--disp);font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--ink-dim)}
.eqs-n{font-family:var(--disp);font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}
.eqs-n small,.eqs-num small{font-size:13px;color:var(--ink-mut);margin-left:5px;font-weight:400}
.eqs-s{color:var(--ink-mut);font-size:12.5px}
.eqs-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}
.eqs-tile{background:var(--panel-2);border:1px solid var(--line);border-left:4px solid var(--offline);border-radius:var(--r);padding:12px 14px;min-width:0}
.eqs-tile.ok{border-left-color:var(--good)}
.eqs-tile.warn{border-left-color:var(--warn)}
.eqs-tile.fault{border-left-color:var(--fault);background:linear-gradient(0deg,var(--fault-soft),var(--fault-soft)),var(--panel-2)}
.eqs-tile.info{border-left-color:var(--accent)}
.eqs-lbl{display:flex;align-items:center;gap:8px;font-family:var(--disp);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-mut)}
.eqs-lbl .eqs-ch{margin-left:auto;font-family:var(--body);letter-spacing:0;text-transform:none;color:var(--ink-dim);font-size:12px}
.eqs-num{font-family:var(--disp);font-size:34px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.15;margin-top:4px}
.eqs-word{color:var(--ink-mut);font-size:13px;min-height:1.4em}
.eqs-band{position:relative;height:8px;border-radius:5px;margin:10px 0 4px;
  background:linear-gradient(90deg,rgba(224,86,86,.55) 0,rgba(224,86,86,.55) var(--lo),rgba(63,191,127,.45) var(--lo),rgba(63,191,127,.45) var(--hi),rgba(224,86,86,.55) var(--hi))}
.eqs-now{position:absolute;top:-5px;left:var(--now);width:12px;height:18px;margin-left:-6px;border-radius:4px;background:var(--ink);box-shadow:0 0 0 2px var(--panel-2)}
.eqs-scale{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--ink-dim);min-height:1.3em}
.eqs-scale.none{margin-top:10px}
.eqs-spark{display:block;width:100%;height:34px;margin-top:6px}
.eqs-spark.none{height:auto;font-size:11.5px;color:var(--ink-dim);padding:10px 0}
.eqs-spark-line{fill:none;stroke:var(--accent);stroke-width:1.6;vector-effect:non-scaling-stroke}
.eqs-spark-dot{fill:var(--accent)}
.eqs-foot{display:flex;justify-content:space-between;font-size:11px;color:var(--ink-dim)}
.eqs-sub{background:var(--panel-2)}
.eqs-tabs{display:flex;flex-wrap:wrap;gap:6px}
.eqs-tabs .btn.on{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.eqs-chart{display:block;width:100%;height:220px}
.eqs-grid{stroke:var(--line-soft);stroke-width:1;vector-effect:non-scaling-stroke}
.eqs-axis{fill:var(--ink-dim);font-size:11px;font-family:var(--body)}
.eqs-limit{stroke:var(--fault);stroke-dasharray:6 5;stroke-width:1.3;vector-effect:non-scaling-stroke}
.eqs-limit-t{fill:var(--fault);font-size:11px;font-family:var(--body)}
.eqs-trend-line{fill:none;stroke:var(--accent);stroke-width:2;vector-effect:non-scaling-stroke}
.eqs-out{fill:var(--fault)}
.eqs-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--ink-mut);margin-top:6px}
.eqs-sw{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle;background:var(--accent)}
/* The limit's swatch looks like the band on the chart (js/chart-core.js: #3DBE8B tint, dashed edges) - it was red (b154). */
.eqs-sw.lim{height:8px;border-radius:0;background:rgba(61,190,139,.25);border-top:1px dashed #3DBE8B;border-bottom:1px dashed #3DBE8B}
.eqs-tsum{margin-left:auto}
.eqs-strip{display:flex;align-items:flex-start;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);font-size:13px}
.eqs-strip.ok{border-color:rgba(63,191,127,.35)}
.eqs-row3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.eqs-list{list-style:none;margin:0;padding:0}
.eqs-list li{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid var(--line-soft);font-size:13px;min-width:0}
.eqs-list li:last-child{border-bottom:0}
/* A label never breaks mid-word (uv-screen video 18 Nov: "Yester/day" beside a long result): the row wraps instead and the
   value moves under the label, right-aligned. */
.eqs-list li{flex-wrap:wrap}
.eqs-li-l{flex:1 1 auto;min-width:7em;overflow-wrap:normal;word-break:normal}
.eqs-li-v{font-weight:600;font-variant-numeric:tabular-nums;text-align:right;margin-left:auto;max-width:100%;overflow-wrap:break-word}
.eqs-list li .chip{margin-left:auto;max-width:100%;white-space:normal;text-align:right}
.eqs-empty{margin:4px 0;font-size:13px}
.eqs-note{font-size:12px;margin:8px 0 0}
.eqs-details summary{cursor:pointer;color:var(--ink-mut);font-size:13px}
.eqs-details table{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:8px}
.eqs-details th,.eqs-details td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line-soft)}
.eqs-details th{color:var(--ink-dim);font-weight:400}
.eqrow .eqhead .btn.sm{margin-left:auto}
/* The channel question on Setup > Equipment (pages.channelQuestion). */
.eqch{margin-top:8px;border-top:1px dashed var(--line);padding-top:8px}
.eqch-title{margin:0 0 4px;font-size:13px}
.eqch-note{margin:0 0 8px;font-size:12px}
.eqch-row{display:grid;grid-template-columns:minmax(150px,220px) auto 1fr;gap:6px 14px;align-items:end;margin:0 0 6px}
.eqch-comp{flex-direction:row;align-items:center;gap:6px}
.eqch-what{font-size:12px;align-self:center}
@media(max-width:620px){
  .eqs-title{font-size:20px}
  .eqs-status{flex-wrap:wrap;font-size:14px}
  .eqs-when{flex:1 0 100%;margin-left:22px;white-space:normal}
  .eqs-glance,.eqs-tiles,.eqs-row3{grid-template-columns:1fr}
  .eqs-ring{width:76px;height:76px}
  .eqs-chart{height:180px}
  .eqs-tsum{margin-left:0}
  .eqch-row{grid-template-columns:1fr}
}

/* Compliance month strip: a day's summary pop-over (moved from an inline <style> in js/compliance.js, 21 Nov 2026 -
   the console's CSP now allows style elements only from the site's own files: style-src-elem 'self'). */
.compdaypop{display:none}
.compdaypop:popover-open{display:block}

/* Wi-Fi card: the password box with its Show / Hide button (21 Nov 2026). */
.pskrow{display:flex;gap:6px;align-items:center}
.pskrow input{flex:1;min-width:0}

/* The step-by-step wizards (js/wizard.js; drafts/ux/WYLA-WIZARDS-PLAN.md, 21 Nov 2026). */
.modal.wizard{max-width:680px}
.wz-steps{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid var(--line)}
.wz-steps li{display:flex;align-items:center;gap:6px;color:var(--ink-dim);font-size:12.5px}
.wz-steps li .n{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;
  border:1px solid var(--line);font-size:11px}
.wz-steps li.on{color:var(--ink);font-weight:600}
.wz-steps li.on .n{border-color:var(--accent);background:var(--accent);color:#0A111E}
.wz-steps li.done .n{border-color:var(--accent);color:var(--accent)}
.wz-steps li.later .n{border-style:dashed;color:var(--ink-dim)}
.wz-body{min-height:120px}
.wz-body p{margin:0 0 10px}
.wz-body label{display:block;margin:0 0 10px}
.wz-foot{margin-top:14px;align-items:center}
.wz-why{margin-right:auto;font-size:12.5px}
.wz-checks{list-style:none;margin:0 0 12px;padding:0}
.wz-check{display:flex;gap:8px;align-items:baseline;margin:0 0 6px}
.wz-check.ok>span:first-child{color:var(--good)}
.wz-check.no>span:first-child{color:var(--fault)}
.wz-check.wait>span:first-child{color:var(--ink-dim)}
label.wz-tick{display:flex;gap:8px;align-items:flex-start;font-size:12.5px}
.wz-summary td:first-child{color:var(--ink-dim);width:38%}
.wz-launch{margin:0 0 8px}
.wz-override{margin-top:10px}
/* A box that takes the whole width of the wizard under its label (the admin's "Sign off anyway" reason, 21 Nov 2026). */
.wz-body input.wz-full{display:block;width:100%;max-width:none;box-sizing:border-box;margin-top:4px}
.wz-choices{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
.wz-choice{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid var(--line);border-radius:6px;cursor:pointer;margin:0}
.wz-choice.on{border-color:var(--accent);background:var(--accent-soft)}
.wz-choice-more{display:block;font-size:12px;margin-top:2px}
.wz-sites{display:flex;flex-wrap:wrap;gap:4px 16px;margin:6px 0 0}
.wz-msg{width:100%;font:inherit}
/* One device's question in the devices wizard (js/wizard-devices.js, 22 Nov 2026). */
.wz-dev{border:1px solid var(--line);border-radius:6px;padding:8px 10px;margin:0 0 10px}
.wz-dev>p{margin:0 0 8px}
.modal .btnrow.wz-offer{justify-content:flex-start;align-items:center;margin:0 0 8px 26px}
/* Call-outs panels and the per-level grid reused inside a wizard: their tick boxes stay in a row (wizard-alarms.js). */
.wz-body .pickboxes label,.wz-body label.picktoggle,.wz-body .changrid label{display:inline-flex;margin:0}

/* ---------------------------------------------------------------- the "?" on every panel (js/panel-help.js, 21 Nov 2026)
   The button sits at the right-hand end of the panel's heading, the card floats over the page (position set by the
   script through CSSOM: left, top, width). */
.panel h3.ph-host{position:relative;padding-right:30px}
/* 24 Nov 2026 (b155): the button is beside the heading (out of the h3, so the heading reads as its own words): the
   wrapper is a plain block, the h3's margins pass through it, so its box is the heading's and the button sits where it
   always did - at the heading's right-hand end, centred on it. */
.ph-hrow{position:relative}
.ph-btn{position:absolute;right:0;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:50%;
  border:1px solid var(--line);background:var(--panel-2);color:var(--ink-mut);font-family:var(--body);font-size:12px;
  font-weight:700;line-height:1;letter-spacing:0;text-transform:none;padding:0;cursor:help;display:inline-flex;
  align-items:center;justify-content:center}
.ph-btn:hover,.ph-btn[aria-expanded="true"]{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
.ph-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ph-card{position:absolute;z-index:140;left:0;top:0;width:340px;max-width:calc(100vw - 16px);box-sizing:border-box;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 18px 50px rgba(0,0,0,.5);
  padding:12px 14px;color:var(--ink);font-size:13px;line-height:1.45;text-transform:none;letter-spacing:normal;
  max-height:min(70vh,560px);overflow:auto;overscroll-behavior:contain}
.ph-card[hidden]{display:none}
.ph-head{display:flex;align-items:flex-start;gap:8px;margin:0 0 6px}
.ph-head b{flex:1;font-family:var(--disp);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-mut)}
.ph-close{background:none;border:0;color:var(--ink-dim);font-size:18px;line-height:1;padding:0 2px;cursor:pointer}
.ph-close:hover,.ph-close:focus-visible{color:var(--accent)}
.ph-what{margin:0 0 8px;color:var(--ink)}
.ph-sub{margin:8px 0 4px;color:var(--ink-mut);font-size:12px;font-weight:600}
.ph-pills{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ph-pills li{display:flex;gap:8px;align-items:baseline;color:var(--ink-mut);font-size:12.5px}
.ph-pills .chip{flex:none;white-space:normal;max-width:45%;text-align:center}
.ph-links{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line-soft)}
.ph-link{background:none;border:0;padding:4px 0;color:var(--accent);font:inherit;font-size:12.5px;cursor:pointer;
  text-decoration:underline;text-align:left}
.ph-link:hover,.ph-link:focus-visible{color:var(--ink)}
@media(max-width:600px){
  .ph-btn{width:28px;height:28px;font-size:14px;top:0;transform:none}
  /* A finger-sized target around the small circle. */
  .ph-btn::before{content:"";position:absolute;inset:-8px}
  .panel h3.ph-host{padding-right:36px}
  .ph-pills .chip{max-width:50%}
}
@media print{.ph-btn,.ph-card{display:none!important}.panel h3.ph-host{padding-right:0}}

/* THE SEARCH BOX'S ONE PLACE (Chris, 21 Nov 2026: "On SEARCH, it moves around, alot"). It used to sit in the top bar's
   flow after the title, the status pill and the flags, and before the plant light, How to (n), Help, Setup and Sign out,
   so where it was depended on each page: whole-account pages hide the pill and the plant light, How to (n) comes and
   goes, and the bar wrapped at different points (at 1440 px it was at x 756 to 1074 px, 21 or 24 px down; on a phone it
   jumped between the first and second line). Now it is out of the flow, in the top bar's top-right corner, the same on
   every page; everything else flows to its left, and its results open under it. The first line is always as tall as
   the plant light, so it is centred the same whether or not the light is shown. */
.topbar{position:relative;padding-right:290px}
.topbar>.search{position:absolute;top:24px;right:26px;width:250px;min-width:0;flex:none;margin:0}
.topbar .where{min-height:51px;display:flex;flex-direction:column;justify-content:center}
/* Narrower (the menu behind its button): the corner is kept free on the FIRST line only - the title fills the rest of
   that line - so the pill, the flags and the buttons below have the bar's whole width. */
@media(max-width:920px){
  .topbar{padding-right:14px}
  .topbar>.search{top:22px;right:14px;width:200px}
  .topbar .where{flex:1 1 calc(100% - 52px - 214px);margin-right:214px}
  .searchpanel{position:absolute;top:calc(100% + 6px);left:auto;right:0;width:min(470px,calc(100vw - 28px));max-height:min(70vh,calc(100vh - 96px))}
}
@media(max-width:620px){
  /* A phone: the search icon in the top-right corner, level with the menu button, and the plant light beside it (so
     the light does not take a line of its own; it is hidden on whole-account pages). */
  .topbar>.search{top:12px;right:14px;width:44px}
  .topbar>.stackbox{position:absolute;top:16px;right:66px}
  .topbar .where{min-height:44px;flex-basis:calc(100% - 58px - 122px);margin-right:122px}
  body.sitewide .topbar .where{flex-basis:calc(100% - 58px - 52px);margin-right:52px}
  /* Who you are has a line of its own here, so the spacer has nothing to push (alone, it would be an empty line). */
  .topbar>.spacer{display:none}
}

/* "Training videos" at the foot of the menu (index.html videosLink): the Help page, opened on its videos. */
.railvideos{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;
  color:var(--ink);text-decoration:none;font-size:13px;background:var(--panel-2)}
.railvideos svg{width:18px;height:18px;flex:none;color:var(--accent)}
.railvideos:hover,.railvideos:focus-visible{border-color:var(--accent);color:var(--accent)}
body[data-page="help"] .railvideos{border-color:rgba(65,185,220,.4)}
/* "On this page" at the top of Help (support-requests.js helpJumpBar). */
.helpjump{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.helpjump .btn{flex:0 0 auto}
/* The video pop-up's way out: a button that says where it goes, and an x in the corner (help-videos.js videoTopRow). */
.vidtop{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.vidtop .vidback{flex:0 1 auto}
.vidx{margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
  background:var(--panel-2);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:24px;line-height:1;cursor:pointer;font-family:inherit}
.vidx:hover,.vidx:focus-visible{border-color:var(--accent);color:var(--accent)}
@media(max-width:620px){.vidx{width:44px;height:44px}.helpjump .btn{flex:1 1 auto}}
/* 117 (ST4S AI_PF4 / AI_T7): "Was this reply helpful?" under an AI-drafted reply (support-requests.js voteBlock), the
   customers' votes on WYLA's page (aiFeedbackLine) and the model / prompt version under a draft (support-assistant.js). */
.ai-vote{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:6px 0 2px;font-size:13px}
.ai-vote .btn{flex:0 0 auto}
.ai-vote-note{flex:1 1 100%;margin-top:4px}
.ai-vote-note textarea{width:100%}
.ai-meta{font-size:12px;margin:4px 0 0;opacity:.85}
.ai-meta ul{margin:2px 0 0;padding-left:18px}

/* ONE CHART FOR THE CONSOLE (22 Nov 2026, js/chart-core.js): axes drawn at the real width, a value readout on hover or
   tap, zoom and pan. Touch: one finger scrolls the page until the chart is tapped (wchart-on); two fingers zoom. */
.wchart{position:relative;outline:none;border-radius:4px}
.wchart:focus-visible{outline:2px solid #41B9DC;outline-offset:2px}
.wchart svg[data-wchart-svg]{display:block;width:100%;height:auto;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.wchart-zoom svg[data-wchart-svg]{cursor:crosshair}
.wchart-on svg[data-wchart-svg]{touch-action:none}
.wchart-read{min-height:1.35em;font-size:12px;font-variant-numeric:tabular-nums;line-height:1.35}
.wchart-tools{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:2px}
.wchart-hint{font-size:11px}
.wchart-hint-touch{display:none}
@media (pointer:coarse){.wchart-hint-touch{display:inline}.wchart-hint-mouse{display:none}}
.wchart [hidden]{display:none}
.wchart-table summary{cursor:pointer;font-size:12px;margin-top:2px}
.wchart-numbers{font-size:12px}
.wchart-table .twrap{max-height:320px;overflow:auto}
.wchart-numbers caption{text-align:left}
.tp-paper .wchart-tools,.tp-paper .wchart-table,.tp-paper .wchart-read{display:none}
@media print{.wchart-tools,.wchart-table,.wchart-read{display:none}}

/* The Set-up with WYLA card and Admin > Onboarding (admin-onboarding.js checklistTable; 23 Nov 2026: at 375 px each row's
   explanation ran off the right edge). No minimum width, so the words wrap inside the Item column on a wide screen; under
   920 px the table is cards (above) and the number goes in front of the item's name instead of a column of its own. */
table.onb-table{min-width:0}
table.onb-table td{overflow-wrap:break-word;vertical-align:top}
table.onb-table td.onb-n{width:2.5em}
table.onb-table .onb-num{display:none}
table.onb-table .onb-claim{color:var(--warn);margin-top:2px}
table.onb-admin td[data-label="WYLA support"] input{min-width:12em;flex:1 1 12em}
@media(max-width:920px){
  table.cards.onb-table td.onb-n{display:none}
  table.cards.onb-table .onb-num{display:inline}
  table.cards.onb-table td[data-label="Item"]::before,table.cards.onb-table td[data-label="State"]::before{display:none}
  table.onb-admin td[data-label="WYLA support"] input{min-width:0;width:100%}
}
/* The Set up for compliance wizard (wizard-compliance-setup.js): one item's box, its choices, the "Not needed here" note. */
.wz-cs-item{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:8px 0;background:var(--panel-2)}
.wz-cs-item .dim{overflow-wrap:break-word}
.wz-cs-list{margin:6px 0 0 18px;padding:0}
.wz-cs-list li{margin:3px 0;overflow-wrap:break-word}
.wz-cs-form label{display:block;margin:8px 0}
.wz-cs-form input,.wz-cs-form select{display:block;width:100%;max-width:28em;box-sizing:border-box;margin-top:4px}
.wz-cs-row{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}
.wz-cs-row label{flex:1 1 10em;min-width:0}
/* Watch live (js/live-watch.js): the strip at the top of Live readings, the equipment screen and Trends Live. */
.lw{align-items:center;margin:0 0 10px}
.lw[data-lw="live"] .lw-text,.lw[data-lw="starting"] .lw-text{font-weight:600}
.lw-sub{font-size:.9em}
.plant-hidden-note{font-size:12px;margin-top:6px}
/* b158 Users > All accounts (js/all-accounts.js): the User / Customer sort buttons in the table head, as All sites'. */
table[data-aa-table] th button.sortbtn{background:none;border:0;padding:0;font:inherit;color:inherit;letter-spacing:inherit;
  text-transform:inherit;cursor:pointer;text-align:left}
table[data-aa-table] th button.sortbtn:hover{color:var(--accent)}
/* b164 (item q, the b163 video checkers): the Role chip on one line ("WYLA administrator" wrapped to two), and a status chip's
   words break without leaving one word alone on its last line ("... not signed in to WYLA / yet"). */
table[data-aa-table] .chip.aa-role{white-space:nowrap}
[data-si-status] .chip{text-wrap:pretty}
/* b159 (the b156 / b158 video checkers). Users > Edit name: the open box takes the User cell's width and adds nothing to
   it (width 0 + min-width 100%), the closed cell's lines stay as an invisible zero-height sizer, so no column moves; the
   label is on its own line above the input. */
.uname-sizer{visibility:hidden;height:0;pointer-events:none}
.uname-edit{width:0;min-width:100%}
.uname-label{display:block;font-size:11px;margin:0 0 3px;overflow-wrap:anywhere}
.uname-box{display:block;width:100%;max-width:100%;box-sizing:border-box;margin:0 0 3px}
.uname-email{overflow-wrap:anywhere}
/* All accounts: the second sort key's "(then A-Z)" in ordinary letters beside the capital heading. */
table[data-aa-table] th button.sortbtn .dim{text-transform:none;letter-spacing:normal}
/* Change sites: one line per site and a box exactly 10 whole rows tall, so no row is cut in half at its bottom. */
.site-pick-list{display:grid;gap:2px;max-height:238px;overflow:auto;padding-left:4px;grid-auto-rows:22px}
.site-pick{display:flex;gap:6px;align-items:center;font-size:12px;height:22px;min-width:0}
.site-pick>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
/* Units in service: every Move to box the same width, whatever sites its list holds. */
select.movesel{width:15em;max-width:100%}
/* Admin: the after-swap to-do box is scrolled fully into view. */
[data-replace-redo]{scroll-margin-top:12px}
/* The sign-in message boxes: tall enough for the whole message (rows from ui.js messageRows; sized to the content where
   the browser can). */
textarea.msgbox{resize:vertical;field-sizing:content;min-height:6em;max-height:70vh;box-sizing:border-box}
/* b160 (the b159 video checkers). Tables whose columns jumped when a line appeared or a box opened in a row (Users: the
   "Email sent" answer, the role / remove question; Requests > category routes: the "Goes to ... changed ... by" line
   after Save): the line takes its cell's (or its full-width row's) width and adds nothing to the column widths, the
   same way as b159's Edit name box. */
.cellfit{width:0;min-width:100%;overflow-wrap:anywhere}
/* Users > Change sites: the list in a full-width row under the person (pages-admin.js userSitesRow). */
.usites-edit{max-width:38em;margin-top:4px}
/* A tick box beside its own words in a form row (Requests: the WYLA-only note) - not the column of a .formrow label
   with the box stretched across the row and the words pushed to the far side. */
.formrow label.tickline{flex-direction:row;align-items:flex-start;gap:8px;font-family:inherit;font-size:12.5px;letter-spacing:normal;
  text-transform:none;color:var(--ink-mut);cursor:pointer}
.formrow label.tickline input[type="checkbox"]{width:auto;flex:0 0 auto;margin:2px 0 0;padding:0}
/* b165 (the batch's own sweep: "TAP IN THE TREATMENT BUILDING (SIMULATED)", "UNTIL THREE RESULTS IN A ROW UNDER HALF THE
   MAV...", "AN EM300 SERIAL (E300...) IS RECORDED AS EM300"): the upper-case field-name style is for a box's NAME. A tick
   box's own sentence, and a hint written under a box, read as ordinary words. */
.formrow label.picktoggle,.formrow label:has(>input[type="checkbox"]),.formrow label:has(>input[type="radio"]),
.formrow label>input~.dim,.formrow label>select~.dim,.formrow label>textarea~.dim{font-family:var(--body);letter-spacing:normal;
  text-transform:none}
.formrow label.picktoggle,.formrow label:not(.tickline):has(>input[type="checkbox"]),
.formrow label:not(.tickline):has(>input[type="radio"]){font-size:12.5px;color:var(--ink)}
/* ...except the plant-room door page's big type (.pd: 16 px everywhere). */
.pd .formrow label:not(.tickline):has(>input){font-size:16px}
/* b160 (the b159 video checkers): the plant light keeps ONE place in the top bar, beside the search box, so a status
   chip ("1 yellow alarm waiting", "Nobody is told ...") appearing on a site no longer pushes it to the next line (it
   moved from the first line to the second at 1920 px). The space kept for it fits its widest label, "Not connected".
   Whole-account pages hide the light and get the space back. */
@media(min-width:921px){
  .topbar{padding-right:404px}
  body.sitewide .topbar{padding-right:290px}
  .topbar>.stackbox{position:absolute;top:15px;right:290px}
}
/* b161 (the b160 video checkers: at 1280 px the role / How to / Help / Sign out line jumped from x ~385 to ~885 when the
   alarm chip appeared, and at 1440 px it moved from the first line to the second). Up to 1799 px the bar has TWO fixed
   lines: the page title alone on the first (beside the plant light and the search box), the status pill, the alarm
   chips and - at the right - who you are, How to, Help and Sign out on the second. A chip appearing or going never
   moves the buttons. From 1800 px everything fits on one line; the buttons keep the right-hand end of it (and would
   keep the same x on a second line), and only a chip far longer than any of today's words is cut short (26em; 18em cut
   "Nobody is told about alarms here" on live, b161 check). */
@media(min-width:921px) and (max-width:1799px){
  .topbar,body.sitewide .topbar{padding-right:26px}
  .topbar .where{flex:1 1 calc(100% - 378px);margin-right:378px}
  body.sitewide .topbar .where{flex-basis:calc(100% - 264px);margin-right:264px}
}
@media(min-width:1800px){
  .topbar>.userbox{margin-left:auto}
  .toldflag,.alarmflag{max-width:26em;overflow:hidden;text-overflow:ellipsis}
}
@media(min-width:621px) and (max-width:920px){
  .topbar>.stackbox{position:absolute;top:16px;right:224px}
  .topbar .where{flex-basis:calc(100% - 52px - 330px);margin-right:330px}
  body.sitewide .topbar .where{flex-basis:calc(100% - 52px - 214px);margin-right:214px}
}
/* A phone (375 px): room between the page title, the plant light and the search icon (the label sat 8 px from the
   icon), and the alarm chips on one line beside the status pill rather than a two-line block. */
@media(max-width:620px){
  .topbar>.stackbox{right:72px}
  .topbar .where{flex-basis:calc(100% - 58px - 160px);margin-right:160px}
  .toldflag,.alarmflag{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
}
/* b160 (the b159 video checkers: a big gap in the menu foot on a phone): where the foot links are 44 px touch targets,
   the Manual line and the Privacy - PDF - Terms line share one line when they fit (a login without the Regulations
   links), instead of two 44 px lines with the gap between them. Sign out, Training videos and the copyright keep lines
   of their own. */
@media(max-width:920px),(pointer:coarse){
  .railfoot{display:flex;flex-wrap:wrap;align-items:center;column-gap:14px}
  .railfoot>.railsignout,.railfoot>.railvideos,.railfoot>.copyright{flex:1 1 100%}
  .railfoot>.row{flex:0 1 auto;margin-top:0}
}
/* b161 (the b160 video checkers: the menu's Site box cut long names - "Kereru Stream School (sim", phone "Demo School
   (simul"): the chosen name is drawn in full in the box (index.html .picklabel, wrapping onto a second line), and the
   real select covers the box, transparent, so a click or a tap opens the browser's own list - which shows every name
   in full. The box keeps the old select's look; the keyboard ring shows on the box. */
.unit .pickwrap{position:relative;margin-top:8px;background:#0B1322;border:1px solid var(--line);border-radius:7px;
  color:var(--ink);padding:7px 26px 7px 9px;font-size:12.5px;line-height:1.35;min-height:32px;box-sizing:border-box}
.unit .pickwrap::after{content:"";position:absolute;right:10px;top:50%;width:6px;height:6px;margin-top:-5px;
  border-right:1.5px solid var(--ink-mut);border-bottom:1.5px solid var(--ink-mut);transform:rotate(45deg);pointer-events:none}
.unit .pickwrap .picklabel{display:block;overflow-wrap:anywhere}
.unit .pickwrap select{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer;
  border:0;padding:0}
.unit .pickwrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.unit .pickwrap:hover{border-color:var(--accent)}
@media(min-width:921px) and (max-height:900px){
  .unit .pickwrap{margin-top:5px}
}
@media(max-width:920px),(pointer:coarse){
  .unit .pickwrap{min-height:44px;display:flex;align-items:center;font-size:16px}
  .unit .pickwrap select{min-height:0 !important}
}
/* b161 (the b160 video checkers: Users' and Installer accounts' columns shifted as a row changed - a row removed, a
   Sites cell's words, an account renewed or ended). From 921 px these tables have SET column widths (table-layout
   fixed + a colgroup, js/pages-admin.js usersColgroup, js/installer-accounts.js), so a row's content never moves
   them; long words wrap inside their cell. Under 921 px the tables are cards and none of this applies. */
@media(min-width:921px){
  table.fixedcols{table-layout:fixed}
  table.fixedcols td{overflow-wrap:anywhere}
  table.fixedcols td select,table.fixedcols td input:not([type="checkbox"]):not([type="radio"]){max-width:100%;box-sizing:border-box}
  table.fixedcols td .btn{white-space:normal;max-width:100%}
  table[data-users-table] col.uc-role{width:26%}
  table[data-users-table] col.uc-sites{width:17%}
  table[data-users-table] col.uc-last{width:24%}
  table[data-users-table] col.uc-last.wide{width:30%}
  table[data-users-table] col.uc-remove{width:7.5em}
  table[data-ia-table] col.ic-cust{width:20%}
  table[data-ia-table] col.ic-long{width:14%}
  table[data-ia-table] col.ic-ends{width:14%}
  table[data-ia-table] col.ic-status{width:13%}
  table[data-ia-table] col.ic-change{width:21%}
  /* b163 (the b161 video checkers): the status pill's short words ("3 days left", "Ended") stay on one line, and the
     Ends cell's time keeps its zone ("05:47 UTC") - neither breaks mid-word in its set column. */
  table[data-ia-table] td [data-ia-status]{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle}
  table[data-ia-table] td .ia-time{white-space:nowrap}
}
/* b163 (the b161 video checkers: Events > Open now's "What do I do?" wrapped onto two lines in its narrow column): the
   row's buttons keep their words on one line; the column takes the width they need. */
.ev-table td.ev-acts .btn{white-space:nowrap}
/* b161 (the b160 video checkers: Casey's "Locked" chip wrapped onto three lines in a narrow pill though the cell had
   room): the sign-in status chip takes its cell's width and reads left to right. */
td [data-si-status] .chip{max-width:100%;text-align:left}

/* ======================================================================= b166 (F5b): the b165 video checkers' CSS notes */
/* b166 (c, site-visits f00309: the History chip "Answered No to 1 / question" left one word alone on its line): a chip in a
   table cell that has to wrap balances its lines ("Answered No / to 1 question"), never one word left alone. */
td .chip{text-wrap:balance}
/* b166 (c, reminder-who f00327: Reminders Status "Overdue 3 days" wrapped): the Reminders table's Status chip reads on one
   line, as the Schedule's does (above); a phone card lets it wrap again, by words. */
tr[data-rm-row]>td[data-label="Status"]>.chip{white-space:nowrap;max-width:none}
@media(max-width:620px){
  table.cards tr[data-rm-row]>td[data-label="Status"]>.chip{white-space:normal;max-width:100%}
}
/* b166 (reminder-recommended f00330: the Reminders "LAST DONE" header wrapped to two lines once a row with "not yet" was
   added): a column header reads on one line above a phone's width (the table scrolls sideways in its box if it must).
   Not in a table with set column widths (table.fixedcols, the Schedule's month grid), where a header must fit its column. */
/* b166 r1 (the batch's sweep at 1440 px: All sites' SCHEDULE column clipped to "SCHED" and Admin > Fleet's "REMOTE ACCES" -
   one-line headers made a wide table wider than its panel): only a table of up to 7 columns keeps its headers on one
   line; a wider one (All sites, Fleet) lets a header wrap by words so its columns fit the screen. */
@media(min-width:621px){
  table:not(.fixedcols):not(.sc-month-grid):not(:has(tr>th:nth-child(8))) th{white-space:nowrap}
}
/* b166 (w, documents-version: the New version form drew the document's kind "DRINKING WATER SAFETY PLAN AND PROCEDURES"
   in the label's small caps): a value shown in a form label (documents.js "Kind <b>...</b>", the Type-to-confirm name)
   reads as text, at the page's size - only the label's own words are small caps. */
.formrow label>b,label.wide>b{font-family:var(--body);font-size:13px;letter-spacing:normal;text-transform:none;color:var(--ink);font-weight:600}
/* b166 (rename-a-site f00072: Setup > Device "Site   Demo School   [Rename site]" - the name sat mid-row): a key / value row
   that ends in a button keeps the value beside its label and the button at the end. */
.kv:has(>.btn:last-child)>b{margin-right:auto}
/* b166 (lab-sample f00217: "Not detected (<1)" sat under the E. coli row but beside the Total coliforms row - the MAV
   words pushed it to a line of its own): on a wide screen each lab result row is a grid with set columns - Determinand,
   Result, Unit, MAV, Not detected, Remove - so the same control is in the same place on every row (lab.js resultRows). */
@media(min-width:1200px){
  .formrow[data-lab-result-row]{display:grid;grid-template-columns:minmax(10em,1fr) 13em 10em 10em 11em auto;column-gap:12px;align-items:start}
  .formrow[data-lab-result-row]>*{grid-row:1;min-width:0}
  .formrow[data-lab-result-row]>label:nth-of-type(1){grid-column:1}
  .formrow[data-lab-result-row]>label:nth-of-type(2){grid-column:2}
  .formrow[data-lab-result-row]>label:nth-of-type(3){grid-column:3}
  .formrow[data-lab-result-row]>label select{width:100%}
  .formrow[data-lab-result-row]>span.dim{grid-column:4;margin-top:24px;overflow-wrap:anywhere}
  .formrow[data-lab-result-row]>[data-lab-act="nd"]{grid-column:5;justify-self:start;white-space:nowrap;margin-top:22px}
  .formrow[data-lab-result-row]>[data-lab-act="remove-row"]{grid-column:6;margin-top:26px;white-space:nowrap}
}
/* b166 (round 2, F1): Setup's settings grid - a Label box the page marks .cfgname (a long name) takes two columns. */
.cfggrid>.cfgf.cfgname{grid-column:span 2}
/* b166 (round 2, check-D phone.txt P1: Today's "Plant now" chips ran off a 390 px screen - "UV: Treating - 76 mJ/cm2 ...
   (1-min average, less than a minut"): on a phone a chip in the strip wraps by words inside the panel. break-word, not
   anywhere: a word is broken only when it is longer than the whole chip (anywhere lets a flex row squeeze it to a letter). */
@media(max-width:620px){
  [data-today-plant] .chip{white-space:normal;max-width:100%;overflow-wrap:break-word;text-align:left}
  /* b166 r3 (the re-sweep at 375 px: two-line chips read as broken pills): a chip that wraps is a rounded box, its age
     (one nowrap piece, today.js) on the second line. */
  [data-today-plant] .chip{display:inline-block;border-radius:10px;line-height:1.45}
}

/* ======================================================================= b166 r1 (F5): the batch's own sweep */
/* All sites at 1440 px (owner [1], admin 39): the site's name is a link-button, and td .linkbtn keeps a button on one line -
   so "Piwakawaka Bend School (simulated)" took 210 px and pushed the Schedule column off the panel. A site's name wraps by
   words in its 11em column. */
.prog-table td .prog-open{white-space:normal;text-align:left}
/* A piece of text that is one token - a part number "BIA-DRIVE1-37-240", a made sample ID "W-261107-SITE-01", a host name
   "wyla-5c1700.local" - never breaks at its hyphens (the plant card's "(BIA-" / "DRIVE1-37-240"). No invisible characters go
   into the text: the page wraps it in <span class="nowrap">. */
.nowrap{white-space:nowrap}
/* Lab > Add a schedule of your own (owner [6]): the chosen determinands ("E. coli x") are chips in a form row - they stood
   as tall empty ovals stretched to the row's height with the words at the top. A chip in a form row is its own height,
   level with the boxes' bottom edge. */
.formrow>.chip{align-self:flex-end;margin-bottom:6px;white-space:nowrap}
/* The demo bar at 375 px (demo [1]: the blue square alone on the first line, the sentence on the next): its words take
   the rest of the square's line and wrap there; the button goes under them. */
.demobar .scopetext{flex:1 1 200px}
