/* ---------------------------------------------------------------------------
   B10 brand tokens, sourced from the official B10_Brand_V1.pdf identity doc
   (not the earlier b10-char.com guess): Charcoal #36454F, Earth #8AD6A9,
   Mist #D2D2D2. --ink already matched Charcoal exactly; --green/--green-deep
   were a different, unrelated dark-green pairing and are corrected below to
   sit on Earth's actual hue (~144°). --green stays a fixed, contrast-checked
   mid-tone in BOTH themes (~4.7:1 under white text) because it doubles as a
   solid button fill — a brighter dark-mode green there would put white text
   on a light background. --green-ink is free to go lighter in dark mode
   (used only as text/icon colour against dark surfaces), so it's set to raw
   Earth there. Every token matches Front End section 6. In light mode the
   side menu and the page are white, as design V96 draws them: Charcoal text,
   a grey pill on the open entry and green only in the icons. In dark mode
   the menu keeps Mist text on a darker Charcoal.

   Type: PT Mono per the brand doc, hosted here in Regular and Bold (Google
   Fonts only has Regular, so bold used to be drawn by the browser). The files
   are ParaType's originals; their licence sits next to them.

   Dark mode: reads the `data-bs-theme` attribute the layout's toggle sets
   (not matchMedia directly), so an explicit choice always wins over the
   system preference and every token stays a single source of truth.
   --------------------------------------------------------------------------- */
@font-face{font-family:"PT Mono";src:url("../fonts/pt-mono/PTM55F.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"PT Mono";src:url("../fonts/pt-mono/PTM75F.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
:root{
  color-scheme:light;
  --charcoal:#36454f; --earth:#8ad6a9; --mist:#d2d2d2;
  --green:#328252; --green-deep:var(--charcoal); --green-ink:#266642; --green-tint:#e2f6ec;
  /* The side menu of design V96: white, Charcoal text, a grey pill on the open page; the logo is drawn black. */
  --nav:#ffffff; --nav-ink:var(--charcoal); --nav-strong:#26363b; --nav-head:#5f6c73; --nav-icon:var(--green-ink);
  --nav-line:#e3e8e5; --nav-hover:#f2f5f4; --nav-on:#e7eced; --nav-later:#66737a; --nav-edge:#d5dcd8; --nav-ring:var(--green);
  --nav-logo:brightness(0);
  --ground:#ffffff; --surface:#ffffff; --surface-2:#f2f5f4;
  --ink:#36454f; --ink-2:#56646b; --muted:#5f6c73;
  --line:#dcdcdc; --line-soft:#ececec; --grid:#e7e7e7;
  --warn:#f59e0b; --warn-ink:#8a5a00; --warn-tint:#fff4e0;
  --err:#dc2626;  --err-ink:#a61b1b;  --err-tint:#fdeaea;
  --ok:#0ca30c;   --ok-ink:#0a7a0a;
  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100; --s5:#e87ba4; --s6:#008300; --s7:#4a3aa7; --s8:#e34948;
  --gap:#c7c7c7;
  --shadow:0 10px 30px rgba(54,69,79,.13);
  --mono:"PT Mono",Consolas,"Courier New",monospace;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  /* Design V57's face for the side menu and the bold numbers in the tiles. */
  --v57:"Montserrat",Arial,"Helvetica Neue",sans-serif;
  --bar-h:54px; --filter-h:54px;
}
@media (prefers-color-scheme:dark){
  :root:not([data-bs-theme="light"]){
    color-scheme:dark;
    --charcoal:#36454f; --earth:#8ad6a9; --mist:#d2d2d2;
    --green:#328252; --green-deep:#232d33; --green-ink:#8ad6a9; --green-tint:#22332c;
    --nav:#232d33; --nav-ink:var(--mist); --nav-strong:#ffffff; --nav-head:var(--mist); --nav-icon:var(--earth);
    --nav-line:rgba(255,255,255,.12); --nav-hover:rgba(255,255,255,.08); --nav-on:rgba(255,255,255,.12); --nav-later:#c3ccd0; --nav-edge:rgba(255,255,255,.25); --nav-ring:var(--earth);
    --nav-logo:none;
    --ground:#12161a; --surface:#1b2126; --surface-2:#22282d;
    --ink:#e8eaec; --ink-2:#b6bcc1; --muted:#8b9096;
    --line:#33383c; --line-soft:#282c2f; --grid:#2a2e31;
    --warn:#f5a623; --warn-ink:#f2c069; --warn-tint:#3a2d12;
    --err:#ef5350;  --err-ink:#f08a8a;  --err-tint:#3b1d1d;
    --ok:#3cc13c;   --ok-ink:#7fd67f;
    --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500; --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
    --gap:#3d4145;
    --shadow:0 10px 30px rgba(0,0,0,.45);
  }
}
:root[data-bs-theme="dark"]{
  color-scheme:dark;
  --charcoal:#36454f; --earth:#8ad6a9; --mist:#d2d2d2;
  --green:#328252; --green-deep:#232d33; --green-ink:#8ad6a9; --green-tint:#22332c;
  --nav:#232d33; --nav-ink:var(--mist); --nav-strong:#ffffff; --nav-head:var(--mist); --nav-icon:var(--earth);
  --nav-line:rgba(255,255,255,.12); --nav-hover:rgba(255,255,255,.08); --nav-on:rgba(255,255,255,.12); --nav-later:#c3ccd0; --nav-edge:rgba(255,255,255,.25); --nav-ring:var(--earth);
  --nav-logo:none;
  --ground:#12161a; --surface:#1b2126; --surface-2:#22282d;
  --ink:#e8eaec; --ink-2:#b6bcc1; --muted:#8b9096;
  --line:#33383c; --line-soft:#282c2f; --grid:#2a2e31;
  --warn:#f5a623; --warn-ink:#f2c069; --warn-tint:#3a2d12;
  --err:#ef5350;  --err-ink:#f08a8a;  --err-tint:#3b1d1d;
  --ok:#3cc13c;   --ok-ink:#7fd67f;
  --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500; --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
  --gap:#3d4145;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}

html,body{height:100%}
*{box-sizing:border-box}
html{font-size:17px}
body{margin:0;background:var(--ground);color:var(--ink);font:15px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--green-ink)}
[hidden]{display:none !important}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.mono{font-family:var(--mono)}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.spacer{flex:1}

/* generic form controls, used until a page has its own .ctl-wrapped markup */
input[type="text"],input[type="search"],input[type="date"],input[type="datetime-local"],input[type="email"],input[type="number"],select,textarea{
  height:31px;padding:0 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);
}
/* The closed <select> box picks up --surface/--ink above, but `background` isn't an inherited
   property, so its native dropdown popup never did — browsers fall back to a default (often
   white) popup background while still inheriting our --ink text color, which is illegible once
   --ink goes light for dark mode (light text on a white popup). Setting both explicitly on
   <option> ties them to the same pair so they can't mismatch, in either theme. */
select option{background-color:var(--surface);color:var(--ink)}
input[type="text"]:hover,input[type="search"]:hover,input[type="date"]:hover,input[type="datetime-local"]:hover,select:hover{background:var(--surface-2)}
label{color:var(--ink-2);font-size:14.5px}

/* ---- app shell: sidenav + main column --------------------------------------- */
:root{ --side-w:272px; --rail-w:72px; }
.shell{display:flex;min-height:100%;align-items:stretch}
/* The side menu: B10's own colours with design V57's navigation: the B10 PULSE logo on top, the plant you look at under it, a heading per
   group, green icons, a drop-down for each report's sections, and entries still to come. Closed, it is a rail of icons
   with the logo stacked (html.nav-collapsed, set by the layout before the first paint and by site.js); the first click
   on the rail opens it. */
.sidenav{width:var(--side-w);flex:none;background:var(--nav);color:var(--nav-ink);font-family:var(--v57);border-right:1px solid var(--nav-line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:50}
.sidenav-top{position:relative;height:92px;flex:none;display:flex;align-items:center;padding:12px 14px;border-bottom:1px solid var(--nav-line)}
.sidenav-brand{display:flex;align-items:center;flex:1;min-width:0;text-decoration:none;border-radius:6px}
.sidenav-brand img{display:block;width:auto;filter:var(--nav-logo)}
/* The B10 PULSE logo as wide as the menu lets it be, as in design V89. */
.sidenav-brand .brand-full{width:100%;max-width:236px;height:auto}
.sidenav-brand .brand-mark{display:none;width:58px;height:auto}
/* Collapse: a small tab on the menu's edge. */
.nav-collapse{position:absolute;right:-13px;top:30px;z-index:2;width:26px;height:30px;border-radius:7px;border:1px solid var(--nav-line);background:var(--nav);color:var(--nav-ink);display:grid;place-items:center;font-size:19px;line-height:1;padding:0 0 2px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.nav-collapse:hover{background:var(--nav-hover)}
.sidenav-scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--nav-line) transparent;padding:6px 12px 14px}
.navgroup{display:flex;flex-direction:column;gap:2px;margin-bottom:2px}
.navgroup-label{font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--nav-head);padding:16px 13px 7px}
.sidenav-link{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:7px;color:var(--nav-ink);text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap;background:transparent;border:1px solid transparent}
.sidenav-link svg{width:21px;height:21px;flex:none;color:var(--nav-icon);stroke-width:2.2}
.sidenav-link:hover{background:var(--nav-hover);color:var(--nav-strong)}
/* The open page: Earth at 16% behind white, bold text, with an Earth bar on its left edge. A report open on one of its
   sections stays plain and bold; the section carries the marker. */
.sidenav-link[aria-current="page"]{background:var(--nav-on);color:var(--nav-strong);font-weight:800}
.sidenav-link[aria-current="page"][aria-controls]{background:transparent}
/* A report with sections opens and closes like a drop-down: the chevron says so, and turns while it is open. */
.sidenav-link .chevron{width:16px;height:16px;margin-left:auto;color:var(--nav-ink);stroke-width:2.4;transition:transform .15s}
.sidenav-link[aria-expanded="true"] .chevron{transform:rotate(180deg)}
.sections{margin:0 0 4px}
.subnav{display:flex;flex-direction:column;gap:1px}
.subnav-link{display:flex;align-items:center;gap:10px;padding:9px 10px 9px 46px;border-radius:7px;color:var(--nav-ink);text-decoration:none;font-size:13px;font-weight:500;white-space:nowrap}
.subnav-link::before{content:"";width:6px;height:6px;border-radius:50%;border:1.5px solid currentColor;opacity:.6;flex:none}
.subnav-link:hover{background:var(--nav-hover);color:var(--nav-strong)}
.subnav-link[aria-current="page"]{background:var(--nav-on);color:var(--nav-strong);font-weight:700}
.subnav-link[aria-current="page"]::before{background:currentColor;opacity:1}
/* Entries still to come: an application says "Later"; a report that does not open yet is closed, with a lock. */
.sidenav-later{display:flex;align-items:center;gap:12px;width:100%;padding:11px 13px;border-radius:7px;border:1px solid transparent;background:transparent;color:var(--nav-ink);font:inherit;font-size:14px;font-weight:600;white-space:nowrap;text-align:left;cursor:default}
.sidenav-later svg{width:21px;height:21px;flex:none;color:var(--nav-icon);stroke-width:2.2}
.sidenav-later .soon{margin-left:auto;font-size:10px;font-weight:600;letter-spacing:.02em;color:var(--nav-later)}
.sidenav-later.closed{cursor:pointer}
.sidenav-later.closed:hover{background:var(--nav-hover)}
.sidenav-later .lock{width:15px;height:15px;margin-left:auto;color:var(--nav-later)}
/* --green is under 3:1 on Charcoal; Earth keeps the focus ring visible in the side menu. */
.sidenav :focus-visible{outline-color:var(--nav-ring)}
/* The place you look at, under the logo: its name, the levels above it, and "Switch" for the choice. */
.scope-card{flex:none;margin:0;padding:14px 20px 12px;border-bottom:1px solid var(--nav-line);font-size:13px}
.scope-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.scope-now{display:flex;flex-direction:column;min-width:0}
.scope-now b{font-size:14px;font-weight:700;color:var(--nav-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scope-now small{font-size:11.5px;color:var(--nav-later);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scope-toggle{flex:none;border:1px solid var(--nav-edge);background:transparent;color:var(--nav-strong);border-radius:999px;padding:4px 11px;font:inherit;font-size:11px;font-weight:700;letter-spacing:.02em;cursor:pointer}
.scope-toggle:hover{background:var(--nav-hover)}
.scope-fields{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.scope-fields[hidden]{display:none}
.scope-card-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.scope-card-row .k{color:var(--nav-ink);font-size:12px}
.scope-card-row .v{color:var(--nav-strong);font-weight:600;text-align:right}
/* The company, site and plant switchers: one per level with more than one choice. */
.scope-card .place-select{min-width:0;width:64%;height:30px;font-size:13px;padding:0 6px}
.scope-card .scope-go{justify-content:center;height:30px;margin-top:2px}

/* Closed: a rail of icons, the logo stacked. */
.nav-collapsed .sidenav{width:var(--rail-w)}
.nav-collapsed .sidenav-top{height:auto;padding:12px 6px 10px;flex-direction:column;justify-content:center;gap:10px}
.nav-collapsed .sidenav-brand{flex:none}
.nav-collapsed .sidenav-brand .brand-full{display:none}
.nav-collapsed .sidenav-brand .brand-mark{display:block}
.nav-collapsed .nav-collapse{position:static;box-shadow:none}
.nav-collapsed .nav-collapse span{transform:rotate(180deg);display:inline-block;padding-bottom:3px}
.nav-collapsed .sidenav-scroll{padding:8px 8px 12px}
.nav-collapsed .navgroup-label,.nav-collapsed .sidenav-link span,.nav-collapsed .sidenav-link .chevron,.nav-collapsed .sidenav-later span,
.nav-collapsed .sidenav-later .lock,.nav-collapsed .sections,.nav-collapsed .scope-card{display:none}
.nav-collapsed .sidenav-link,.nav-collapsed .sidenav-later{justify-content:center;padding:11px 0;cursor:pointer}
.nav-collapsed .sidenav-link[aria-current="page"]{background:var(--nav-on)}

.mainCol{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{background:var(--surface);border-bottom:1px solid var(--line-soft);color:var(--ink);display:flex;align-items:center;gap:10px;padding:0 18px;height:var(--bar-h);position:sticky;top:0;z-index:40}
.navtoggle{display:none;font-size:17px}
.crumbs{display:flex;align-items:center;gap:7px;min-width:0;font-size:13.5px;color:var(--muted);white-space:nowrap;overflow:hidden}
.crumbs b{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.crumbs .sep{color:var(--line)}
.themeswitch{gap:7px;color:var(--muted);font-size:15px;min-height:30px}
.scope,.fresh{display:flex;align-items:center;gap:7px;font-family:var(--mono);font-size:13.5px;color:var(--ink-2);white-space:nowrap;background:none;border:0;padding:0}
.scope b{font-weight:500;color:var(--ink)}
.fresh .dot{width:7px;height:7px;border-radius:50%;background:var(--ok);flex:none}
.fresh .dot.late{background:var(--warn)}
.barbtn{height:30px;padding:0 11px;border-radius:6px;border:1px solid var(--line);background:transparent;color:var(--ink-2);font-size:14.5px}
.barbtn:hover{background:var(--surface-2);color:var(--ink)}
.barbtn.round{width:30px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:15.5px}
.avatar{width:29px;height:29px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-family:var(--mono);font-size:13.5px;font-weight:600;flex:none}
.userchip{display:flex;align-items:center;gap:8px;height:38px;padding:0 6px 0 4px;border-radius:8px;border:0;background:transparent;color:var(--ink)}
.userchip:hover{background:var(--surface-2)}
.userchip .who{display:flex;flex-direction:column;align-items:flex-start;line-height:1.25}
.userchip .who b{font-size:14.5px;font-weight:600}
.userchip .who small{font-size:12.5px;color:var(--muted)}
.userchip .chev{color:var(--muted);font-size:12.5px}
.appfooter{margin-top:auto;display:flex;justify-content:flex-end;gap:16px;padding:12px 20px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:13px;flex-wrap:wrap}

/* ---- "not shipped yet" modal ------------------------------------------------- */
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,22,.5);display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}
.modal-box{background:var(--surface);border-radius:10px;box-shadow:var(--shadow);padding:20px 22px;max-width:380px;width:100%}
.modal-box h3{margin:0 0 8px;font-family:var(--mono);font-size:16.5px}
.modal-box p{margin:0 0 16px;color:var(--ink-2);font-size:15px;line-height:1.5}

/* ---- shared page chrome ----------------------------------------------------- */
.section{padding:18px 20px 44px}
h1.page{font-family:var(--mono);font-weight:500;font-size:22px;margin:0 0 4px;text-wrap:balance}
.sub{color:var(--ink-2);margin:0 0 16px;font-size:15px;max-width:74ch}
.badge{font-family:var(--mono);font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;padding:2px 7px;border-radius:4px;background:var(--surface-2);color:var(--muted);white-space:nowrap}
.btn{height:31px;padding:0 11px;border-radius:6px;border:1px solid var(--line);background:var(--surface);display:inline-flex;align-items:center;gap:6px;font-size:14.5px;white-space:nowrap}
.btn:hover{background:var(--surface-2)}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.btn.primary:hover{filter:brightness(.94);background:var(--green)}
.btn.ghost{border-color:transparent;background:transparent;color:var(--ink-2)}
.btn.ghost:hover{background:var(--surface-2)}
.ctl{display:inline-flex;align-items:center;gap:6px;height:31px;padding:0 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:14.5px;white-space:nowrap}
.ctl:hover{background:var(--surface-2)}
.ctl .lbl{color:var(--muted);font-size:13.5px}
.ctl select,.ctl input{border:0;background:transparent;outline:0;cursor:pointer;color:inherit;font-family:var(--mono);font-size:14px;padding:0;height:auto}
.filters-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}

/* ---- tiles / panels --------------------------------------------------------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(186px,1fr));gap:12px}
.tile{background:var(--surface);border:1px solid var(--line-soft);border-radius:8px;padding:12px 14px 10px;display:flex;flex-direction:column;gap:3px;min-width:0}
.tile .l{font-size:14px;color:var(--ink-2);display:flex;justify-content:space-between;gap:8px}
.tile .l .tag{font-family:var(--mono);font-size:12.5px;color:var(--muted)}
.tile .v{font-family:var(--v57);font-size:27px;font-weight:700;letter-spacing:-.6px;font-variant-numeric:tabular-nums;line-height:1.2;display:flex;align-items:baseline;gap:5px}
.tile .v small{font-size:14.5px;color:var(--muted);font-weight:400}
.tile .d{font-size:13.5px;color:var(--muted);display:flex;gap:6px;align-items:center;min-height:17px}
.tile .d.up{color:var(--err-ink)}
.tile .d.down{color:var(--green-ink)}
.tile .d.warn{color:var(--warn-ink)}
.tile.uncatalogued{opacity:.6}
.tile svg{width:100%;height:36px;margin-top:5px;display:block}
.two{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin-top:12px}
.panel{background:var(--surface);border:1px solid var(--line-soft);border-radius:8px;padding:13px 14px;min-width:0}
.panel h2{font-family:var(--mono);font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0 0 10px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:10px}
.panel h2 .badge{text-transform:none;letter-spacing:0}
.panel .plot{height:236px}
/* Home: two graphs in one panel, each with its own name, a gap between them, and together as tall as the panel. */
.home-charts-panel{display:flex;flex-direction:column}
.home-charts{flex:1;display:flex;flex-direction:column;gap:16px;min-height:0}
.home-chart{flex:1 1 0;display:flex;flex-direction:column;gap:6px;margin:0;min-height:190px}
.home-chart figcaption{display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;color:var(--ink)}
.home-chart figcaption small{font-weight:400;color:var(--muted);font-size:12.5px}
.home-chart figcaption .key{width:12px;height:3px;border-radius:2px;background:var(--s1)}
.home-chart figcaption .key.p{background:var(--s2)}
.home-chart .plot{flex:1;height:auto;min-height:150px;border-radius:6px;overflow:hidden}
.empty-state{color:var(--muted);font-size:14.5px;padding:18px 4px;line-height:1.5}

.alarm{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:14.5px}
.alarm:last-child{border-bottom:0}
.alarm .t{font-family:var(--mono);font-size:13px;color:var(--muted);white-space:nowrap;padding-top:2px}
.alarm .m{flex:1;min-width:0;color:var(--ink-2)}
.alarm .m b{color:var(--ink);font-weight:600}
.status-row{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line-soft);font-size:14.5px}
.status-row:last-child{border-bottom:0}
.status-row .f{font-family:var(--mono);font-size:13.5px}
.status-row .r{color:var(--muted);font-family:var(--mono);font-size:13.5px;white-space:nowrap;text-align:right}

/* ---- tables ------------------------------------------------------------------ */
.table-wrap{overflow:auto;border:1px solid var(--line-soft);border-radius:8px;background:var(--surface)}
table.data{border-collapse:collapse;width:100%;font-size:14.5px}
table.data th{position:sticky;top:0;background:var(--surface);text-align:left;font-family:var(--mono);font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;font-weight:600}
table.data td{padding:6px 10px;border-bottom:1px solid var(--line-soft);white-space:nowrap}
table.data tr:hover td{background:var(--surface-2)}
table.data td.num,table.data th.num{font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:right}
table.data td.msg{white-space:normal;min-width:260px;color:var(--ink-2)}
.pill{display:inline-flex;align-items:center;gap:5px;padding:1px 7px;border-radius:10px;font-size:13px;font-weight:600;font-family:var(--mono)}
.pill.warning{background:var(--warn-tint);color:var(--warn-ink)}
.pill.error{background:var(--err-tint);color:var(--err-ink)}
.pill.neutral{background:var(--surface-2);color:var(--muted)}
.pill.ok{background:var(--green-tint);color:var(--green-ink)}

/* ---- sub-tabs ------------------------------------------------------------- */
.subtabs{display:flex;gap:2px;border-bottom:1px solid var(--line-soft);margin-bottom:14px}
.subtabs button{border:0;background:transparent;padding:8px 12px;font-size:14.5px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.subtabs button[aria-selected="true"]{color:var(--green-ink);border-bottom-color:var(--green);font-weight:600}
.subview{display:none}.subview.active{display:block}

/* Narrow screens: the rail stays in view beside the page; opened, the menu lies over the page until a page is
   chosen or the page is touched. */
@media (max-width:900px){
  :root{ --rail-w:58px; }
  .navtoggle{display:inline-flex;align-items:center;justify-content:center}
  .sidenav{position:fixed;left:0;top:0}
  .mainCol{margin-left:var(--rail-w)}
  .nav-open .sidenav{box-shadow:var(--shadow)}
  .nav-collapsed .sidenav-brand .brand-mark{width:48px}
}
@media (max-width:700px){
  .two{grid-template-columns:1fr}
  .topbar{gap:6px;padding:0 12px}
  .fresh .txt,.userchip .who,.crumbs span{display:none}
  .section{padding-left:12px;padding-right:12px}
}

/* ---- Engineering workbench -------------------------------------------------- */
.filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 20px;background:var(--surface);border-bottom:1px solid var(--line-soft);position:sticky;top:var(--bar-h);z-index:30;min-height:var(--filter-h)}
.ctl.plain{border-color:transparent;background:transparent;color:var(--muted);font-family:var(--mono);font-size:14px;padding-left:0}
.ctl.plain:hover{background:transparent}
.filterbar .btn,.filterbar .ctl{height:36px;font-size:16px;padding:0 13px}
.filterbar .ctl .lbl{font-size:15px}
.filterbar .ctl select{font-size:15.5px}
.filterbar .ctl.plain{font-size:15.5px;padding-left:0}
.filterbar .seg{height:36px}
.filterbar .seg button{font-size:15.5px;min-width:38px}
.filterbar .iconb{width:34px;height:34px;font-size:18px}
.engineering{display:grid;grid-template-columns:300px minmax(0,1fr)}
.sidebar{border-right:1px solid var(--line-soft);background:var(--surface);padding:12px 10px 24px;overflow:auto;position:sticky;top:calc(var(--bar-h) + var(--filter-h));height:calc(100vh - var(--bar-h) - var(--filter-h))}
.main{padding:12px 20px 40px;min-width:0}
.searchbox{position:relative;display:block}
.searchbox svg{position:absolute;left:10px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.searchbox kbd{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-family:var(--mono);font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:0 5px;line-height:17px;background:var(--surface-2);pointer-events:none}
.searchbox:focus-within kbd{display:none}
.searchbox .search{width:100%;height:36px;border:1.5px solid var(--line);border-radius:7px;padding:0 30px 0 32px;background:var(--surface-2);color:var(--ink);font-size:16px}
.searchbox .search:focus{outline:0;border-color:var(--green);background:var(--surface)}
.search::placeholder{color:var(--muted)}
.addto{display:flex;align-items:center;gap:6px;padding:8px 6px 4px;font-size:14.5px;color:var(--muted);white-space:nowrap}
.addto select{flex:1;min-width:0;border:0;background:transparent;font-family:var(--mono);font-size:15px;color:var(--ink-2);outline:0;cursor:pointer}
.group>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:7px 6px;border-radius:4px;font-family:var(--mono);font-size:14px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2)}
.group>summary::-webkit-details-marker{display:none}
.group>summary:hover{background:var(--surface-2)}
.group>summary .count{color:var(--muted);font-size:12.5px;letter-spacing:0;text-transform:none;min-width:2ch;text-align:right}
.group>summary .gname{flex:1;min-width:0}
.group>summary .gacts{display:inline-flex;gap:2px;margin-right:6px;opacity:0;transition:opacity .12s}
.group>summary:hover .gacts,.group>summary:focus-within .gacts,.group[open]>summary .gacts{opacity:1}
.gbtn{border:1px solid var(--line);background:var(--surface);color:var(--ink-2);font-family:var(--mono);font-size:12px;letter-spacing:0;text-transform:none;padding:1px 6px;border-radius:4px;line-height:1.4}
.gbtn:hover{border-color:var(--green);color:var(--green-ink)}
.group>summary::before{content:"▸";display:inline-block;width:11px;color:var(--muted);transition:transform .15s}
.group[open]>summary::before{transform:rotate(90deg)}
.group.locked{opacity:.55}
.group.locked>summary{cursor:default}
.group.locked>summary:hover{background:transparent}
.sig{display:flex;align-items:center;gap:9px;padding:5px 6px 5px 10px;border-radius:4px;cursor:pointer;font-size:16px;user-select:none}
.sig:hover{background:var(--surface-2)}
.sig:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.sig .key{width:13px;height:13px;border-radius:3px;border:1.5px solid var(--muted);flex:none;background:transparent;position:relative}
.sig[aria-checked="true"] .key::after{content:"";position:absolute;left:3.5px;top:0.5px;width:3.5px;height:7px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.sig[aria-checked="true"] .name{color:var(--ink);font-weight:500}
.sig .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sig .tag{font-family:var(--mono);font-size:13.5px;color:var(--muted);white-space:nowrap}

.hintbar{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;background:var(--green-tint);border:1px solid var(--line-soft);border-radius:8px;padding:12px 14px;margin-bottom:12px;font-size:14.5px;color:var(--ink-2);line-height:1.5}
.hintbar[hidden]{display:none}
.hintbar ul{margin:4px 0 0;padding-left:18px}
.hintbar b{color:var(--ink)}
.fine{font-size:13px;color:var(--muted);margin:6px 0 0;line-height:1.45}
.grid{display:grid;gap:12px;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr))}
.card{background:var(--surface);border:1px solid var(--line-soft);border-radius:8px;display:flex;flex-direction:column;min-width:0;position:relative}
.card.target{border-color:var(--green)}
.card.dragover{border-color:var(--green);background:var(--green-tint)}
.card>header{display:flex;align-items:center;gap:8px;padding:9px 8px 2px 12px}
.card .title{flex:1;min-width:0;border:0;background:transparent;font-family:var(--mono);font-size:14.5px;font-weight:600;color:var(--ink);padding:3px 5px;border-radius:4px;margin-left:-5px}
.card .title:hover,.card .title:focus{background:var(--surface-2);outline:0}
.card .unit{font-family:var(--mono);font-size:12.5px;color:var(--muted);white-space:nowrap}
.card .zoomtag{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:12.5px;color:var(--green-ink);background:var(--green-tint);border:0;border-radius:4px;padding:3px 7px;white-space:nowrap}
.card .zoomtag:hover{color:var(--ink);background:var(--surface-2)}
.card .zoomtag b{font-weight:600;font-size:13.5px;line-height:1}
.iconb{width:26px;height:26px;border-radius:6px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;font-size:16.5px;line-height:1;flex:none}
.iconb:hover{background:var(--surface-2);color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;gap:4px 12px;padding:4px 12px 2px}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ink-2);background:none;border:0;padding:0;white-space:nowrap}
.chip .key{width:13px;height:3px;border-radius:2px;flex:none}
.chip .tg{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:inherit;font:inherit;padding:1px 3px;margin-left:-3px;border-radius:3px;cursor:pointer}
.chip .tg:hover{background:var(--surface-2)}
.chip.off .tg{color:var(--muted);text-decoration:line-through}
.chip.off .key{opacity:.35}
.stats{padding:6px 12px 10px;border-top:1px solid var(--line-soft);overflow-x:auto}
.stats table{width:100%;border-collapse:collapse;font-size:13.5px}
.stats th{font-family:var(--mono);font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600;text-align:left;padding:4px 6px;border-bottom:1px solid var(--line-soft)}
.stats td{padding:4px 6px;white-space:nowrap;color:var(--ink-2)}
.stats .num{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}
.stats .u{color:var(--muted);font-size:12px}
.stats td .key{display:inline-block;width:10px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle}
.stats tr.off td{opacity:.45}
.chip .x{border:0;background:transparent;color:var(--muted);padding:0 2px;font-size:14.5px;line-height:1;border-radius:3px;opacity:0;transition:opacity .12s}
.chip:hover .x,.chip .x:focus{opacity:1}
.chip .x:hover{color:var(--err)}
/* PLC limit switch on a signal chip: two dashed rules, grey when off, amber over red when on. */
.chip .lim{border:0;background:transparent;padding:4px 3px;border-radius:3px;line-height:0;margin-left:-2px;cursor:pointer}
.chip .lim i{display:block;width:14px;height:8px;border-top:1.5px dashed var(--muted);border-bottom:1.5px dashed var(--muted);opacity:.55}
.chip .lim:hover{background:var(--surface-2)}
.chip .lim:hover i,.chip .lim[aria-pressed="true"] i{opacity:1}
.chip .lim[aria-pressed="true"] i{border-top-color:var(--warn);border-bottom-color:var(--err)}
.plot{width:100%;height:var(--h,300px)}
/* Graph toolbar: icons over the plot's top-right corner, shown while the pointer (or focus) is on the card. */
.plotwrap{position:relative}
.plottools{position:absolute;top:6px;right:10px;z-index:5;display:flex;align-items:center;gap:1px;padding:2px;background:var(--surface);border:1px solid var(--line-soft);border-radius:7px;box-shadow:var(--shadow);opacity:0;transition:opacity .12s}
.card:hover .plottools,.plottools:focus-within,.card.full .plottools{opacity:1}
@media (hover:none){.plottools{opacity:1}}
.plotwrap:has(.empty) .plottools{display:none}
.plottools button{width:26px;height:26px;border:0;border-radius:5px;background:transparent;color:var(--muted);display:grid;place-items:center;padding:0}
.plottools button:hover:not(:disabled){background:var(--surface-2);color:var(--ink)}
.plottools button[aria-pressed="true"]{background:var(--green-tint);color:var(--green-ink)}
.plottools button:disabled{opacity:.4;cursor:not-allowed}
.plottools svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.plottools .sep{width:1px;height:16px;background:var(--line-soft);margin:0 3px}
.card.panmode .plot div,.card.panmode .plot canvas{cursor:grab !important}
/* One graph over the whole window (the full-screen tool). Above the menu and Layout popover, below the signal picker and toast. */
body.graph-full{overflow:hidden}
.card.full{position:fixed;inset:0;z-index:65;border:0;border-radius:0;overflow:auto}
.card.full .plotwrap{flex:1 0 320px;display:flex;flex-direction:column}
.card.full .plot{flex:1;height:auto}
/* The plotted values as a table (the table tool): header stays put while the rows scroll. */
.datatable{padding:6px 12px 10px;border-top:1px solid var(--line-soft)}
.datatable .scroll{max-height:260px;overflow:auto}
.datatable table{width:100%;border-collapse:collapse;font-size:13.5px}
.datatable th{position:sticky;top:0;background:var(--surface);text-align:left;padding:0;border-bottom:1px solid var(--line-soft)}
.datatable th button{border:0;background:transparent;font-family:var(--mono);font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600;padding:4px 6px;border-radius:4px;white-space:nowrap}
.datatable th button:hover{background:var(--surface-2);color:var(--ink)}
.datatable th.num{text-align:right}
.datatable td{padding:3px 6px;white-space:nowrap;color:var(--ink-2);font-family:var(--mono);font-variant-numeric:tabular-nums}
.datatable td.num{text-align:right}
.empty{height:var(--h,300px);display:grid;place-items:center;color:var(--muted);font-size:14.5px;text-align:center;padding:24px;line-height:1.5;max-width:44ch;margin:0 auto}
.empty b{color:var(--ink-2);font-weight:500}
.menu{position:absolute;right:8px;top:38px;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);padding:4px;z-index:35;min-width:180px}
.menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:7px 10px;border-radius:4px;font-size:14.5px;color:var(--ink)}
.menu button:hover:not(:disabled){background:var(--surface-2)}
.menu button:disabled{color:var(--muted);cursor:not-allowed}
.menu button.danger{color:var(--err-ink)}
.menu hr{border:0;border-top:1px solid var(--line-soft);margin:4px 0}
.notes{margin-top:12px;font-size:13.5px;color:var(--muted);line-height:1.6}

.seg{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;height:28px}
.seg button{border:0;background:var(--surface);padding:0 10px;font-family:var(--mono);font-size:14px;color:var(--ink-2);min-width:32px}
.seg button+button{border-left:1px solid var(--line)}
.seg button:hover{background:var(--surface-2)}
.seg button[aria-pressed="true"]{background:var(--green-tint);color:var(--green-ink);font-weight:600}
.toggle{display:inline-flex;align-items:center;gap:8px;font-size:14.5px;color:var(--ink-2);cursor:pointer;user-select:none;background:none;border:0;padding:0}
.toggle .sw{width:30px;height:16px;border-radius:8px;background:var(--line);position:relative;transition:background .15s;flex:none}
.toggle .sw::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:left .15s}
.toggle[aria-checked="true"] .sw{background:var(--green)}
.toggle[aria-checked="true"] .sw::after{left:16px}
.anchor{position:relative;display:inline-flex}
.pop{position:absolute;top:36px;right:0;z-index:60;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:13px 14px;min-width:250px}
.pop .row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px}
.pop .row:last-child{margin-bottom:0}
.pop .row>.lbl{font-size:14.5px;color:var(--ink-2)}
.pop hr{border:0;border-top:1px solid var(--line-soft);margin:12px 0}

.cal-pop{min-width:264px;left:0;right:auto}
/* Shared date picker (datepicker.js): ‹ [Pick dates ▾] › label */
.dp{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.dp .dp-step{padding:0 10px;font-size:18px;line-height:1;justify-content:center;min-width:34px}
.dp .dp-step:disabled{opacity:.4;cursor:not-allowed}
.dp .dp-label{font-family:var(--mono);padding-left:4px}
.dp .dp-label .tag{margin-left:6px}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal-month{font-family:var(--mono);font-size:14px;color:var(--ink);font-weight:600}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:2px}
.cal-dow span{font-size:12px;color:var(--muted);text-align:center;padding:2px 0}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:11px}
.cal-day{height:28px;border:0;border-radius:6px;background:transparent;color:var(--ink-2);font-family:var(--mono);font-size:13.5px;cursor:pointer}
.cal-day:hover:not(:disabled){background:var(--surface-2);color:var(--ink)}
.cal-day:disabled{color:var(--line);cursor:not-allowed}
.cal-day.in-range{background:var(--green-tint);color:var(--green-ink)}
.cal-day.range-end{background:var(--green);color:#fff;font-weight:600}

.picker{position:fixed;z-index:70;width:min(370px,calc(100vw - 32px));max-height:66vh;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);display:none;flex-direction:column}
.picker.open{display:flex}
.picker .head{padding:9px 11px;border-bottom:1px solid var(--line-soft);display:flex;gap:8px;align-items:center}
.picker .head b{font-family:var(--mono);font-size:13.5px;font-weight:600;white-space:nowrap}
.picker .list{overflow:auto;padding:5px;flex:1}
.picker .hint{padding:8px 12px;font-size:13.5px;color:var(--muted);border-top:1px solid var(--line-soft);line-height:1.4}

.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:var(--ground);padding:10px 14px;border-radius:6px;font-size:14.5px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:90;max-width:min(560px,90vw);text-align:center}
.toast.show{opacity:1}

@media (max-width:1080px){
  .engineering{grid-template-columns:1fr}
  .sidebar{position:static;height:auto;max-height:40vh;border-right:0;border-bottom:1px solid var(--line-soft)}
}
@media (max-width:700px){
  .grid{grid-template-columns:1fr !important}
  .filterbar,.main{padding-left:16px;padding-right:16px}
}

/* ---- Home: KPI category row -------------------------------------------------- */
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:14px}
.kpi-card{background:var(--surface);border:1px solid var(--line-soft);border-radius:8px;padding:13px 14px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:inherit}
.kpi-card>.hd{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.kpi-card>.hd svg{width:15px;height:15px;color:var(--green-ink);flex:none}
.kpi-card .metric{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.kpi-card .metric .l{font-size:14px;color:var(--ink-2)}
.kpi-card .metric .v{font-family:var(--v57);font-size:18px;font-weight:700;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.kpi-card.live{cursor:pointer}
.kpi-card.live:hover{box-shadow:var(--shadow)}


/* ---- Accessibility (see docs/ACCESSIBILITY.md) ------------------------------ */
/* WCAG 2.4.1: skip link, visible only when focused. */
.skiplink{position:absolute;left:12px;top:-60px;z-index:200;background:var(--green);color:#fff;padding:10px 16px;border-radius:6px;font-weight:600;text-decoration:none}
.skiplink:focus{top:12px}
main:focus{outline:none}
/* WCAG 2.5.8: interactive targets at least 24x24 CSS px. */
.chip .x,.gbtn{min-width:24px;min-height:24px}
/* ---- Shared utilities and notices ------------------------------------------------------------- */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.table-wrap{overflow:auto}
.soon-mark{color:var(--muted);font-weight:400}
.muted-note{color:var(--muted);font-size:13.5px}
.via{color:var(--muted);font-size:13.5px;white-space:normal}
.flash{padding:10px 14px;border-radius:8px;background:var(--green-tint);color:var(--green-ink);border:1px solid var(--green);font-size:14.5px}
.flash.error{background:var(--err-tint);color:var(--err-ink);border-color:var(--err)}
/* WCAG 2.3.3: honour reduced-motion preferences. */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important;scroll-behavior:auto !important}}

/* ---- Admin portal (Front End section 8) ------------------------------------------------------------- */
.admin .admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.admin-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line-soft);margin:4px 0 14px;overflow-x:auto;scrollbar-width:thin}
.admin-tabs a{white-space:nowrap}
.admin-tabs a{padding:9px 12px;font-size:15px;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;min-height:24px}
.admin-tabs a:hover{color:var(--ink)}
.admin-tabs a[aria-current="page"]{color:var(--green-ink);border-bottom-color:var(--green);font-weight:600}
.admin .flash{margin:0 0 12px}
.admin table.people td{vertical-align:top;white-space:normal}
.admin .who-cell b{display:block;font-weight:600}
.admin .who-cell .muted{display:block;color:var(--muted);font-size:13.5px}
.admin tr.invited td{background:var(--surface-2)}
.rights{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.right{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:2px 4px 2px 10px;font-size:14px;background:var(--surface);white-space:nowrap}
.right b{font-weight:600}
form.inline{display:inline;margin:0}
.right-take{border:0;background:transparent;color:var(--muted);min-width:24px;min-height:24px;border-radius:50%;font-size:16px;line-height:1}
.right-take:hover{background:var(--err-tint);color:var(--err-ink)}
.btn.small{height:26px;font-size:13.5px;padding:0 8px;margin-left:4px}
.panel.give h2{margin-bottom:12px}
.give .field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.give input[type="email"],.give select,.add input,.add select{width:100%}
.give .check{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.4;margin-top:4px}
.give .check input{margin-top:3px}
.choice{border:1px solid var(--line-soft);border-radius:8px;padding:6px 8px 8px;margin:0 0 12px;min-width:0}
.choice legend{font-size:14.5px;color:var(--ink-2);padding:0 4px}
.choice label{display:flex;align-items:center;gap:8px;padding:6px;border-radius:6px;cursor:pointer;min-height:24px}
.choice label:hover{background:var(--surface-2)}
.choice label:has(input:checked){background:var(--green-tint);font-weight:600}
.choice .kind{color:var(--muted);font-size:13px;font-weight:400}
.place.depth-1{padding-left:24px}.place.depth-2{padding-left:42px}.place.depth-3{padding-left:60px}
.role .name{flex:1}
.role .why{display:none;color:var(--muted);font-size:13px;font-weight:400}
.role.locked{cursor:not-allowed;color:var(--muted)}
.role.locked:hover{background:transparent}
.role.locked .why{display:inline}
.preview .lbl{font-size:14.5px;color:var(--ink-2);margin-bottom:6px}
.area-chips{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.area-chips .area{position:relative;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:3px 12px;min-height:26px;font-size:13.5px;background:var(--surface);cursor:pointer;user-select:none;transition:background .12s,border-color .12s}
/* The tick box itself is not drawn: a chosen area is a filled chip. It stays in the page for the keyboard and screen readers. */
.area-chips .area input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.area-chips .area:hover{background:var(--surface-2)}
.area-chips .area:has(input:checked){background:var(--green-tint);border-color:var(--green)}
.area-chips .area:has(input:focus-visible){outline:2px solid var(--green);outline-offset:1px}
.area-chips .area.locked{cursor:not-allowed;color:var(--muted);border-style:dashed}
.area-chips .area.locked:hover{background:var(--surface)}
.area-chips .area.locked:has(input:checked){background:var(--surface-2);border-color:var(--line)}
/* Why a locked area cannot be changed, next to it while the pointer is on it. */
.area-chips .area .reason{position:absolute;left:0;top:calc(100% + 5px);z-index:5;padding:3px 8px;border-radius:6px;background:var(--ink);color:var(--surface);font-size:12.5px;font-weight:400;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s}
.area-chips .area.locked:hover .reason{opacity:1}
.preview .hint{font-size:13px;color:var(--muted);margin:-4px 0 10px}
.right.own{white-space:normal;border-radius:12px;flex-wrap:wrap}
.own-areas{color:var(--ink-2);font-size:13px}
.give .fine{background:var(--surface-2);border-radius:6px;padding:8px 10px;margin-bottom:12px}
.give .actions,.add .actions{display:flex;gap:8px}
.tree-panel{margin-bottom:14px}
.tree,.tree ul{list-style:none;margin:0;padding:0}
.tree ul{padding-left:22px;border-left:1px solid var(--line-soft);margin:4px 0 6px 6px}
.tree li{padding:4px 0;font-size:14.5px}
.tree .kind{color:var(--muted);font-size:13px;margin-left:4px}
.add-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:14px}
.add .field{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}
.change-list{list-style:none;margin:0 0 12px;padding:0}
/* The admin portal's tabs of design V57: People is a list only, Give access and Roles have their own screens. */
.people-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:12px}
.people-head h2{margin:0;flex:1 1 auto;font-family:inherit;font-size:16px;font-weight:700;text-transform:none;letter-spacing:0;color:var(--ink);display:flex;align-items:center;gap:10px}
.people-search{flex:0 1 320px;min-width:200px}
.people-search .search{height:34px;font-size:14.5px}
.access-heading h2{margin:0 0 2px;font-family:inherit;font-size:18px;font-weight:700;text-transform:none;letter-spacing:0;color:var(--ink)}
.access-heading p{margin:0 0 16px;color:var(--ink-2);font-size:14.5px}
.access-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.access-grid .choice{margin:0}
.preview-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:16px 0 10px}
.preview-head .lbl,.preview-head h2{font-size:15px;font-weight:700;color:var(--ink);margin:0;font-family:inherit;text-transform:none;letter-spacing:0}
.preview-head small{color:var(--muted);font-size:13px}
.page-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.page-group{border:1px solid var(--line-soft);border-radius:8px;padding:10px 12px;min-width:0}
.page-group h3{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.page-group .area-chips{margin:0}
.area-chips .area .later{margin-left:6px;font-size:11px;font-weight:600;padding:0 6px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.access-panel .actions{margin-top:14px}
.roles-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;align-items:start}
.role-list{display:flex;flex-direction:column;gap:4px}
.role-list a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:8px;border:1px solid var(--line-soft);background:var(--surface);color:var(--ink);text-decoration:none}
.role-list a small{color:var(--muted);font-size:12.5px}
.role-list a:hover{background:var(--surface-2)}
.role-list a[aria-current="page"]{border-color:var(--green);background:var(--green-tint);font-weight:600}
.role-list .hint{font-size:12.5px;color:var(--muted);margin:8px 2px 0}
.role-pages .sub{margin-bottom:14px}
.role-pages .actions{display:flex;gap:8px;margin-top:14px}
@media (max-width:1080px){
  .access-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .access-who{grid-column:1 / -1}
}
@media (max-width:820px){
  .page-groups,.access-grid,.roles-layout{grid-template-columns:minmax(0,1fr)}
  .role-list{flex-direction:row;overflow-x:auto;padding-bottom:4px}
  .role-list a{flex:0 0 auto}
  .role-list .hint{display:none}
}

/* ---- Reports (design V57): KPI tiles, chart panels, tables ------------------------------------------ */
.report-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin-bottom:14px}
.report .page{margin:0}
.report-fresh{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-2)}
.report-fresh b{color:var(--ink);font-weight:600}
.report-fresh .dot{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.report-fine{font-size:12.5px;color:var(--muted);margin:10px 0 0;line-height:1.5;max-width:110ch}
.report-panel table.data td.up{color:var(--green-ink)}
.report-panel table.data td.down{color:var(--err-ink)}
/* Charts (Views/Dmrv/_Chart): bars as columns, lines as one stretched SVG, four grid lines on a rounded scale.
   The app's own green for completed periods and its blue for the one still running. */
.chart{--bar:var(--green);--bar-now:var(--s1);--line-0:var(--green);--line-1:var(--s1)}
.chart-plot{position:relative;height:220px;margin:6px 0 0 40px}
.chart-grid{position:absolute;left:0;right:0;border-top:1px solid var(--line-soft)}
.chart-grid span{position:absolute;right:calc(100% + 8px);top:-8px;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.chart-bars{position:absolute;inset:0;display:flex;align-items:flex-end;gap:3px}
.chart-bar{flex:1 1 0;min-width:1px;background:var(--bar);border-radius:3px 3px 0 0}
.chart-bar.current{background:var(--bar-now)}
/* The lighter part on top of a bar: what goes back to the web form. Earth on green, a light blue on the running month. */
.chart-bar{position:relative}
.chart-bar .part{position:absolute;left:0;right:0;top:0;background:var(--earth);border-radius:3px 3px 0 0}
.chart-bar.current .part{background:#a9d9f1}
.chart-legend .key.part{background:var(--earth)}
.chart-legend .key.current.part{background:#a9d9f1}
.chart-bar:hover{filter:brightness(.9)}
.chart-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.chart-lines polyline{fill:none;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.chart-lines .series-0{stroke:var(--line-0)}
.chart-lines .series-1{stroke:var(--line-1)}
.chart-labels{display:flex;gap:3px;margin:6px 0 0 40px;font-size:11.5px;color:var(--muted)}
.chart-labels span{flex:1 1 0;min-width:0;text-align:center;white-space:nowrap;overflow:visible}
.chart-labels.spread{justify-content:space-between}
.chart-labels.spread span{flex:0 0 auto}
.chart-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px;font-size:12.5px;color:var(--ink-2)}
.chart-legend .key{display:inline-block;width:12px;height:12px;border-radius:3px;background:var(--bar);margin-right:6px;vertical-align:-1px}
.chart-legend .key.current{background:var(--bar-now)}
.chart-legend .key.line{height:3px;border-radius:2px;vertical-align:3px}
.chart-legend .key.series-0{background:var(--line-0)}
.chart-legend .key.series-1{background:var(--line-1)}
.report-note{margin:14px 0 0;padding:9px 12px;border-radius:8px;background:var(--surface-2);color:var(--ink-2);font-size:13.5px}
.report-note+.report-note{margin-top:8px}
.report-heading{font-size:16px;font-weight:700;margin:22px 0 10px}
/* Ten tiles are two rows of five: a period per column, a measure per row. */
.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 14px 12px;min-height:132px;min-width:0;display:flex;flex-direction:column;gap:6px}
.kpi.current{background:var(--surface-2)}
.kpi .label{font-size:13px;font-weight:700;color:var(--ink);line-height:1.35;overflow-wrap:anywhere}
.kpi .value{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 7px;margin-top:auto}
/* The numbers in the tiles: bold, in design V57's face, for reading at a glance. */
.kpi .figure{font-family:var(--v57);font-size:27px;font-weight:700;letter-spacing:-.6px;line-height:1.15;font-variant-numeric:tabular-nums}
.kpi.nodata .figure{color:var(--muted);font-weight:700}
.kpi .unit{font-size:13px;color:var(--ink-2)}
.kpi .change{font-size:13px;font-weight:600}
.kpi .change.up{color:var(--green-ink)}
.kpi .change.down{color:var(--err-ink)}
.kpi .foot{font-size:12.5px;color:var(--muted);line-height:1.35;margin-top:6px}
.report-panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 16px 14px;margin-bottom:14px;min-width:0}
.report-panel h2{font-size:16px;font-weight:700;margin:0 0 2px}
.report-sub{font-size:13px;color:var(--muted);margin:0 0 12px}
.report-empty{height:220px;display:grid;place-items:center;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:14px}
.report-empty.short{height:96px}
/* Named counts as bars lying down (stages, statuses, cities): each as long as its share of the largest, no track behind. */
.barlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.barlist li{display:grid;grid-template-columns:minmax(120px,260px) minmax(0,1fr) auto;align-items:center;gap:12px;font-size:14px}
.barlist .name{display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink)}
.barlist .name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.barlist .mark{flex:none;font-size:11.5px;font-weight:600;padding:1px 7px;border-radius:999px;background:var(--warn-tint);color:var(--warn-ink)}
.barlist .track{height:18px;min-width:0}
.barlist .track{display:flex}
.barlist .bar{display:block;height:100%;min-width:2px;background:var(--green)}
.barlist .bar.part{background:var(--earth)}
.report-panel>.chart-legend{margin-top:10px}
.report-panel>.chart-legend .key{background:var(--green)}
.report-panel>.chart-legend .key.part{background:var(--earth)}
.barlist .count{font-family:var(--v57);font-weight:700;font-variant-numeric:tabular-nums;min-width:3ch;text-align:right}
/* Towns on a Google map: the list picks the town the frame shows. */
.mapbox{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,2fr);gap:14px;align-items:stretch}
.mapbox-frame{min-height:380px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface-2)}
.mapbox-frame iframe{display:block;width:100%;height:100%;min-height:380px;border:0}
.mapbox-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.mapbox-places{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;max-height:190px;overflow-y:auto;scrollbar-width:thin}
.mapbox-place{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:13.5px;padding:4px 6px 4px 12px;cursor:pointer}
.mapbox-place b{font-family:var(--v57);font-size:12px;min-width:22px;padding:1px 6px;border-radius:999px;background:var(--surface-2);text-align:center}
.mapbox-place:hover{background:var(--surface-2)}
.mapbox-place[aria-pressed="true"]{background:var(--green-tint);border-color:var(--green);color:var(--green-ink);font-weight:600}
.mapbox-detail{border-top:1px solid var(--line-soft);padding-top:10px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-height:0}
.mapbox-city{font-weight:700;font-size:15px}
.mapbox:has(.bubble-map){grid-template-columns:minmax(0,5fr) minmax(200px,2fr)}
.bubble-map{min-height:420px;height:420px;z-index:0}
.bubble-legend{margin:0;font-size:12.5px;color:var(--ink-2);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bubble-key{display:inline-block;width:12px;height:12px;border-radius:50%;border:2px solid #f59e0b;background:rgba(245,158,11,.45)}
.bubble-key.town{border-style:dashed}
.mapbox-detail ul{margin:0;padding-left:18px;font-size:13.5px;color:var(--ink-2);max-height:150px;overflow-y:auto;align-self:stretch;scrollbar-width:thin}
.report-panel .table-wrap{border-radius:8px}
table.data td.report-norows{color:var(--muted);text-align:center;padding:18px 10px}
@media (max-width:1180px){
  .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---- Dashboard: receivers of biochar (Views/Dashboard, js/receivers.js) ------------------------------------------- */
.rcv-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 16px;margin-bottom:4px}
.rcv-head .sub{margin-bottom:12px}
.rcv-actions{display:flex;gap:8px;flex-wrap:wrap}
.rcv-actions .btn{height:36px;font-size:15px;padding:0 14px}
/* The overview's boxes are links to the deliveries behind them. */
a.kpi.rcv-tile{color:inherit;text-decoration:none;transition:border-color .12s,box-shadow .12s}
a.kpi.rcv-tile:hover{border-color:var(--green);box-shadow:var(--shadow)}
.kpi.warn .figure{color:var(--warn-ink)}
.kpi.err .figure{color:var(--err-ink)}
.rcv-kpis.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.rcv-kpis .kpi{min-height:116px}
.rcv-two{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:14px;align-items:start}
.rcv-count{font-family:var(--mono);font-size:12.5px;font-weight:600;padding:1px 8px;border-radius:10px;background:var(--err-tint);color:var(--err-ink);margin-left:6px;vertical-align:2px}
.seg.rcv-todo-seg,.seg.rcv-side-seg{height:auto;flex-wrap:wrap}
.seg.rcv-todo-seg button,.seg.rcv-side-seg button{min-height:30px;font-size:13px;font-family:var(--sans)}
.rcv-todo{list-style:none;margin:10px 0 0;padding:0;max-height:520px;overflow:auto}
.rcv-item{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"m when" "act act";gap:4px 12px;padding:10px 4px;border-bottom:1px solid var(--line-soft)}
.rcv-item:last-child{border-bottom:0}
.rcv-item .m{grid-area:m;min-width:0}
.rcv-item .who{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:600}
.rcv-item .who a{color:var(--ink)}
.rcv-item .what{color:var(--ink-2);font-size:14px}
.rcv-item .when{grid-area:when;text-align:right;font-size:13px;color:var(--muted);white-space:nowrap}
.rcv-item .when span,.rcv-item .when small{display:block}
.rcv-item .act{grid-area:act;display:flex;gap:6px;flex-wrap:wrap}
.rcv-item .act .btn.small{margin-left:0;height:28px;font-size:13.5px}
/* Receivers: the list on the left, the chosen receiver on the right. */
.rcv-explorer{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px;align-items:start}
.rcv-side{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 10px;position:sticky;top:calc(var(--bar-h) + 12px);max-height:calc(100vh - var(--bar-h) - 24px);display:flex;flex-direction:column;gap:10px}
.rcv-side-list{overflow:auto;min-height:120px;flex:1}
.rcv-pick{display:flex;align-items:center;gap:8px;width:100%;padding:7px 8px;border-radius:6px;border:0;background:none;text-align:left;font-size:14.5px;min-height:34px}
.rcv-pick:hover{background:var(--surface-2)}
.rcv-pick[aria-current="true"]{background:var(--green-tint);color:var(--green-ink);font-weight:600}
.rcv-pick .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcv-pick .flag{width:8px;height:8px;border-radius:50%;background:var(--warn);flex:none}
.rcv-pick .tag{font-family:var(--mono);font-size:12.5px;color:var(--muted)}
.rcv-export{align-self:flex-start;font-size:13.5px}
.rcv-main{min-width:0}
.rcv-profile-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px}
.rcv-name{font-family:var(--mono);font-weight:500;font-size:20px;margin:0}
.rcv-pills{display:inline-flex;gap:6px;flex-wrap:wrap}
.rcv-profile-acts{display:inline-flex;gap:8px;flex-wrap:wrap}
.rcv-start{flex-direction:column;gap:12px;display:flex;align-items:center;justify-content:center}
.rcv-kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 18px;margin:0;font-size:14.5px}
.rcv-field{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid var(--line-soft);min-width:0}
.rcv-field dt{flex:0 0 74px;color:var(--muted)}
.rcv-field dd{margin:0;min-width:0;overflow-wrap:anywhere}
.rcv-kv .muted,table.data .muted{color:var(--muted)}
.rcv-side .searchbox,.rcv-side .seg{flex:none}
/* Rows open the delivery's form. */
table.data.rcv-click tbody tr,#rcv-log tbody tr{cursor:pointer}
table.data tbody tr:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
table.data td.act{text-align:right}
table.data td.act .btn.small{margin-left:0}
#rcv-log th button{border:0;background:none;padding:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit}
#rcv-log th button::after{content:attr(data-arrow);margin-left:4px}
.rcv-table{max-height:calc(100vh - 260px)}
.rcv-filters .ctl select{max-width:16rem}
.rcv-q{width:200px}
.rcv-q .search{height:31px;font-size:14.5px}
.btn.danger{color:var(--err-ink)}
.btn.danger:hover{background:var(--err-tint)}
/* The forms: a dialog over the page. */
.rcv-dialog{border:1px solid var(--line);border-radius:12px;padding:0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);width:min(600px,calc(100vw - 32px));max-height:calc(100vh - 32px)}
.rcv-dialog.narrow{width:min(420px,calc(100vw - 32px))}
.rcv-dialog::backdrop{background:rgba(15,23,22,.5)}
.rcv-form{padding:18px 20px 16px}
.rcv-form h2{font-family:var(--mono);font-size:17px;font-weight:600;margin:0 0 14px}
.rcv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.rcv-form .field{display:flex;flex-direction:column;gap:5px;font-size:14px;color:var(--ink-2);min-width:0}
.rcv-form .field.wide{grid-column:1 / -1}
.rcv-form .field small{color:var(--muted);font-size:12.5px;font-weight:400;margin-left:4px}
.rcv-form .field input:not([type="checkbox"]),.rcv-form .field select,.rcv-form .field textarea{width:100%;height:36px;font-size:15px}
.rcv-form .field textarea{height:auto;min-height:60px;padding:6px 9px;resize:vertical;font-family:inherit}
.rcv-form .field.check{flex-direction:row;align-items:center;gap:8px;color:var(--ink)}
.rcv-form .field.check input{width:18px;height:18px}
.rcv-form .field input[type="tel"],.rcv-form .field input[type="url"]{padding:0 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}
.rcv-form .field :disabled{opacity:.55;cursor:not-allowed}
.rcv-form .req{color:var(--err-ink);font-weight:600}
.rcv-collect-what{margin:-6px 0 12px;color:var(--ink-2)}
.rcv-error{margin:12px 0 0;padding:9px 12px;border-radius:8px;background:var(--err-tint);color:var(--err-ink);font-size:14px}
.rcv-buttons{display:flex;gap:8px;margin-top:16px;align-items:center}
.rcv-buttons .btn{height:36px;font-size:15px;padding:0 14px}
@media (max-width:1080px){
  .rcv-two{grid-template-columns:minmax(0,1fr)}
  .rcv-kpis.four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  .rcv-explorer{grid-template-columns:minmax(0,1fr)}
  .rcv-side{position:static;max-height:340px}
  .rcv-grid{grid-template-columns:minmax(0,1fr)}
  .rcv-q{width:100%}
}
/* Phone and narrow tablet: two tiles side by side. A ten-tile group is read down each column of the wide layout,
   so the two measures of one period stand next to each other (all-time tonnes beside all-time bags). */
@media (max-width:820px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .kpi{padding:12px 10px;min-height:124px}
  .kpi .label{font-size:12px}
  .kpi .figure{font-size:clamp(18px,4.7vw,24px)}
  .kpi .unit,.kpi .foot,.kpi .change{font-size:12px}
  .kpis.ten>:nth-child(1){order:1}.kpis.ten>:nth-child(6){order:2}
  .kpis.ten>:nth-child(2){order:3}.kpis.ten>:nth-child(7){order:4}
  .kpis.ten>:nth-child(3){order:5}.kpis.ten>:nth-child(8){order:6}
  .kpis.ten>:nth-child(4){order:7}.kpis.ten>:nth-child(9){order:8}
  .kpis.ten>:nth-child(5){order:9}.kpis.ten>:nth-child(10){order:10}
  .report-empty{height:160px}
  .mapbox,.mapbox:has(.bubble-map){grid-template-columns:1fr}
  .mapbox-frame,.mapbox-frame iframe{min-height:280px}
  .bubble-map{height:320px;min-height:320px}
  .barlist li{grid-template-columns:minmax(90px,42%) minmax(0,1fr) auto;gap:8px;font-size:13px}
  .chart-plot{height:170px;margin-left:34px}
  .chart-labels{margin-left:34px;font-size:10.5px}
  .chart-bars{gap:1px}
}

/* ---- outside the app: the sign-in page and the signed-out page -----------------------------
   For someone who is not signed in: the B10 PULSE logo and one message in a Charcoal box on the plant's photo, darkened
   like Microsoft's own sign-in page for B10. No menu and no data. */
.outside{--nav:var(--charcoal);--nav-ink:var(--mist);--nav-strong:#ffffff;--nav-hover:rgba(255,255,255,.08);min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--nav) url("../images/brand/plant.jpg") center/cover no-repeat fixed;font-family:var(--v57)}
.outside::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.45)}
.outside-card{position:relative;width:100%;max-width:440px;background:var(--nav);color:var(--nav-ink);border-radius:10px;padding:34px 36px 32px;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.outside-logo{display:block;width:100%;max-width:250px;margin:0 0 26px -4px}
.outside-card h1{margin:0;font-size:22px;font-weight:700;letter-spacing:-.2px;color:var(--nav-strong)}
.outside-card p{margin:10px 0 0;font-size:14px;line-height:1.55;color:var(--nav-ink)}
.outside-choices{display:grid;gap:10px;margin-top:22px}
.outside-btn{display:block;padding:12px 16px;border-radius:8px;border:1px solid rgba(255,255,255,.3);background:transparent;color:var(--nav-strong);text-decoration:none}
.outside-btn b{display:block;font-size:15px;font-weight:700}
.outside-btn small{display:block;margin-top:2px;font-size:12.5px;color:var(--nav-ink)}
.outside-btn:hover{background:var(--nav-hover)}
.outside-btn.primary{background:var(--green);border-color:var(--green)}
.outside-btn.primary small{color:var(--nav-strong)}
.outside-btn.primary:hover{background:var(--green);filter:brightness(.94)}
.outside-link{display:inline-block;margin-top:20px;font-size:14px;font-weight:700;color:var(--earth)}
.outside :focus-visible{outline:2px solid var(--earth);outline-offset:2px}
@media (max-width:520px){
  .outside{padding:14px}
  .outside-card{padding:26px 22px 24px}
}
