/* Tellus Diagnostics — operations console.
   Type: Barlow (body) and Barlow Semi Condensed (headings, figures), drawn from US highway signage.
   Colour is reserved for meaning: health and port status. Steel blue marks what you can click. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --ground: #e8ecea; --surface: #ffffff; --inset: #f4f6f5; --ink: #1c2622; --ink-2: #56635d; --ink-3: #85918b;
  --line: #d3dad6; --line-soft: #e5e9e7;
  --rail: #163a30; --rail-2: #1d4a3d; --rail-ink: #bcd0c6; --rail-dim: #7f9d90; --leaf: #6cbf4a;
  --accent: #24527a; --accent-soft: #e6eef5;
  --good: #2e8549; --warn: #b47400; --fault: #bd3328; --offline: #7a8580; --charging: #2f86c4;
  --good-bg: #e9f4ec; --warn-bg: #fbf1dc; --fault-bg: #fbe9e7; --offline-bg: #eceeed; --charging-bg: #e5f0f9;
  --display: "Barlow Semi Condensed", "Barlow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.45 var(--body); color: var(--ink); background: var(--ground); font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.15; }
h1 { font-size: 28px; letter-spacing: -.2px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 8px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.code { font-family: var(--code); font-size: 12px; }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }

/* ---------- controls ---------- */
button, .btn { font: 500 14px/1 var(--body); cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; }
button:hover { border-color: #aab5af; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .btn.primary:hover { background: #1c4566; }
button.danger { color: var(--fault); border-color: #e6bdb8; }
button.danger:hover { background: var(--fault-bg); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
input, select { font: 400 14px var(--body); padding: 7px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); min-height: 34px; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=search] { min-width: 240px; }
label.field { display: block; }
label.field span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
label.field input, label.field select { width: 100%; }

/* segmented control: mutually exclusive choices such as a period or a state */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); overflow: hidden; }
.seg button { border: 0; border-radius: 0; border-right: 1px solid var(--line-soft); padding: 7px 12px; color: var(--ink-2); background: none; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.seg .count { font-family: var(--display); color: var(--ink-3); font-weight: 600; }
.seg button.on .count { color: var(--accent); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 18px 18px 16px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand svg { flex: none; }
.brand b { display: block; font: 700 19px/1 var(--display); color: #fff; letter-spacing: .2px; }
.brand span { display: block; font-size: 12.5px; color: var(--rail-dim); margin-top: 3px; }
.org-plate { margin: 14px 14px 4px; padding: 10px 12px; background: var(--rail-2); border-radius: 3px; }
.org-plate b { display: block; color: #fff; font: 600 15px/1.2 var(--display); }
.org-plate span { font-size: 12.5px; color: var(--rail-dim); }
.navgroup { padding: 14px 0 2px; }
.navgroup h4 { margin: 0 18px 6px; font: 600 12.5px var(--body); color: var(--rail-dim); }
.navgroup a { display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 15px; color: var(--rail-ink); border-left: 3px solid transparent; font-weight: 500; }
.navgroup a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.navgroup a.on { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--leaf); }
.navgroup a svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .85; }
.navgroup a .pill { margin-left: auto; font: 600 12px/1 var(--display); padding: 3px 6px; border-radius: 2px; background: var(--fault); color: #fff; }
.navgroup a .pill.quiet { background: rgba(255,255,255,.12); color: var(--rail-ink); }
.me { margin-top: auto; padding: 14px 18px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.me b { color: #fff; display: block; font-size: 14px; font-weight: 600; }
.me .role { color: var(--rail-dim); }
.me button { margin-top: 10px; background: transparent; color: var(--rail-ink); border-color: rgba(255,255,255,.2); padding: 6px 10px; font-size: 13px; }
.me button:hover { border-color: rgba(255,255,255,.45); color: #fff; }

.topbar { display: flex; align-items: center; gap: 14px; padding: 10px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; min-height: 56px; }
.crumbs { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.crumbs .sep { color: var(--ink-3); }
.crumbs b { color: var(--ink); font-weight: 600; }
.scope { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.scope select { min-width: 190px; }
.jump { position: relative; }
.jump input { min-width: 260px; }
.jump .results { position: absolute; top: 38px; right: 0; width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 8px 24px rgba(20,40,32,.16); z-index: 20; max-height: 360px; overflow: auto; }
.jump .results a { display: block; padding: 8px 12px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.jump .results a:hover, .jump .results a.hl { background: var(--accent-soft); text-decoration: none; }
.jump .results small { color: var(--ink-2); display: block; }
.live { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--offline); }
.live.on i { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }

.page { padding: 22px 28px 48px; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .lede { color: var(--ink-2); margin-top: 6px; max-width: 72ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .count { font-size: 13px; color: var(--ink-2); margin-left: auto; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.panel > header h2 { font-size: 17px; }
.panel > header .sub { color: var(--ink-2); font-size: 13px; }
.panel > header .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel > .body { padding: 14px 16px; }
.panel > .flush { padding: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.grid-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.note { font-size: 13px; color: var(--ink-2); padding: 10px 12px; background: var(--inset); border-left: 3px solid var(--line); }
.empty { padding: 26px 16px; color: var(--ink-2); text-align: left; }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* figures: a strip of readings sharing one frame, not separate cards */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.figure { padding: 14px 16px 13px; border-right: 1px solid var(--line-soft); min-width: 0; }
.figure:last-child { border-right: 0; }
.figure .k { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.figure .v { font: 600 30px/1.1 var(--display); margin-top: 4px; letter-spacing: -.3px; }
.figure .v small { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.figure .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.figure.alert .v { color: var(--fault); }
.figure.warn .v { color: var(--warn); }

/* ---------- status vocabulary ---------- */
.lamp { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.lamp::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--offline)); box-shadow: 0 0 0 2px var(--cb, var(--offline-bg)); flex: none; }
.c-Good { --c: var(--good); --cb: var(--good-bg); }
.c-Warning { --c: var(--warn); --cb: var(--warn-bg); }
.c-Fault, .c-Faulted { --c: var(--fault); --cb: var(--fault-bg); }
.c-Offline, .c-Unknown { --c: var(--offline); --cb: var(--offline-bg); }
.c-Charging { --c: var(--charging); --cb: var(--charging-bg); }
.c-Available { --c: var(--good); --cb: var(--good-bg); }
.c-Unavailable { --c: var(--warn); --cb: var(--warn-bg); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 2px; background: var(--inset); color: var(--ink-2); border: 1px solid var(--line-soft); white-space: nowrap; }
.sev { display: inline-block; font: 600 12.5px/1 var(--display); padding: 4px 7px 3px; border-radius: 2px; white-space: nowrap; }
.sev-Critical { background: var(--fault); color: #fff; }
.sev-Major { background: var(--fault-bg); color: var(--fault); }
.sev-Minor { background: var(--warn-bg); color: var(--warn); }
.sev-Warning { background: var(--warn-bg); color: var(--warn); }
.sev-Info { background: var(--inset); color: var(--ink-2); }

/* ports: one tile per gun, coloured by what a driver would find there now */
.ports { display: inline-flex; gap: 4px; flex-wrap: nowrap; vertical-align: middle; }
.port { position: relative; width: 26px; height: 26px; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--display); color: #fff; background: var(--c, var(--offline)); }
.port.Available { --c: var(--good); }
.port.Charging { --c: var(--charging); }
.port.Unavailable { --c: var(--warn); }
.port.Faulted { --c: var(--fault); }
.port.Offline, .port.Unknown { --c: #a3ada8; }
.port.flag::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: var(--fc); }
.port.flag-Warning { --fc: var(--warn); }
.port.flag-Fault { --fc: var(--fault); }
.port.lg { width: 38px; height: 38px; font-size: 16px; }
.port-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.port-key span { display: inline-flex; gap: 6px; align-items: center; }
.port-key i { width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
.port-key b { color: var(--ink); font-family: var(--display); font-size: 15px; }

/* distribution bar for counts */
.dist { display: flex; height: 8px; border-radius: 1px; overflow: hidden; background: var(--line-soft); min-width: 120px; }
.dist span { height: 100%; }

/* ---------- port board (overview and sites) ---------- */
.board { width: 100%; border-collapse: collapse; }
.board td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.board .site-cell { width: 260px; }
.board .site-cell a { font: 600 16px var(--display); color: var(--ink); }
.board .site-cell small { display: block; color: var(--ink-2); font-size: 13px; }
.board .units { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.board .unit { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 3px; color: var(--ink); }
.board .unit:hover { background: var(--inset); text-decoration: none; }
.board .unit .name { font-size: 13px; line-height: 1.2; }
.board .unit .name small { display: block; color: var(--ink-2); font-size: 12px; }
.board .unit.sys { border: 1px dashed var(--line); }

/* ---------- tables ---------- */
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { text-align: left; font: 600 13px var(--body); color: var(--ink-2); padding: 9px 12px; background: var(--inset); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.grid th.num { text-align: right; }
table.grid th.sortable { cursor: pointer; user-select: none; }
table.grid th.sortable:hover { color: var(--ink); }
table.grid th .arrow { color: var(--accent); margin-left: 3px; }
table.grid td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.click { cursor: pointer; }
table.grid tr.click:hover td { background: #f3f7f9; }
table.grid tr.on td { background: var(--accent-soft); }
table.grid tr.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.grid td .primary-line { font-weight: 600; display: block; }
table.grid td a.primary-line { color: var(--ink); }
table.grid td a.primary-line:hover { color: var(--accent); }
table.grid td .second-line { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
table.grid td.wrap { min-width: 220px; }
.scroll { overflow: auto; }
.scroll.tall { max-height: 520px; }

/* ---------- charger nameplate ---------- */
.plate { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; margin-bottom: 0; }
.plate .id { padding: 18px 20px; border-right: 1px solid var(--line-soft); }
.plate .id h1 { font-size: 30px; }
.plate .id .model { color: var(--ink-2); margin-top: 4px; }
.plate .id .states { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.plate dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.plate dl div { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); min-width: 0; }
.plate dl div:nth-child(4n) { border-right: 0; }
.plate dt { font-size: 12.5px; color: var(--ink-2); }
.plate dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.plate .portline { grid-column: 1 / -1; display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line-soft); align-items: center; flex-wrap: wrap; background: var(--inset); }
.plate .portline .p { display: flex; gap: 10px; align-items: center; }
.plate .portline .p b { display: block; font-weight: 600; font-size: 14px; }
.plate .portline .p small { color: var(--ink-2); font-size: 12.5px; }
.system-strip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-top: 10px; }
.system-strip a { padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--surface); }
.system-strip a.here { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 16px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabs a .n { font: 600 12px var(--display); color: var(--fault); margin-left: 5px; }

/* charger blocks on a site page */
.chargers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.charger { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; color: var(--ink); border-top: 3px solid var(--c, var(--offline)); }
.charger:hover { border-color: #aab5af; border-top-color: var(--c); text-decoration: none; }
.charger h3 { font-size: 17px; }
.charger .model { font-size: 13px; color: var(--ink-2); }
.charger .ports { margin-top: 10px; }
.charger .issue { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.system-group { border: 1px dashed #b7c2bc; border-radius: 3px; padding: 12px; background: rgba(255,255,255,.45); }
.system-group > .head { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.system-group > .head b { color: var(--ink); }

/* ---------- component health ---------- */
.health-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--body); }
.diagram .comp { cursor: pointer; }
.diagram .comp:hover rect.box { stroke: #8f9b95; }
.diagram .comp.sel rect.box { stroke: var(--accent); stroke-width: 2; }
.diagram .comp:focus { outline: none; }
.diagram .comp:focus-visible rect.box { stroke: var(--accent); stroke-width: 2; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; vertical-align: top; }
.kv td:first-child { color: var(--ink-2); padding-right: 12px; }
.kv td:last-child { text-align: right; font-weight: 500; }
.chart { width: 100%; display: block; }
.fault-item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.fault-item:last-child { border-bottom: 0; }
.fault-item .t { font-weight: 600; margin-left: 6px; }
.fault-item .m { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.fault-item .a { font-size: 13px; margin-top: 4px; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.action { border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; background: var(--surface); }
.action h3 { margin-bottom: 4px; }
.action p { font-size: 13px; color: var(--ink-2); min-height: 38px; }
.action .row { margin-top: 8px; }

/* bar list (failures by stage etc.) */
.barlist { width: 100%; border-collapse: collapse; }
.barlist td { padding: 7px 0; font-size: 13.5px; }
.barlist td.bar { width: 45%; padding: 0 12px; }
.barlist td.bar i { display: block; height: 10px; background: var(--fault); border-radius: 1px; opacity: .8; }
.barlist td.bar i.neutral { background: var(--accent); }

/* ---------- troubleshooting guide ---------- */
.guide .summary { font-size: 15.5px; line-height: 1.5; margin-bottom: 12px; max-width: 70ch; }
.guide h3 { margin: 18px 0 8px; }
.safety { border-left: 3px solid var(--fault); background: var(--fault-bg); padding: 10px 12px; font-size: 14px; }
.safety b { display: block; color: var(--fault); margin-bottom: 2px; }
.causes { margin: 0; padding-left: 20px; }
.causes li { padding: 2px 0; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.step::before { grid-row: span 2; }
.step::before { content: counter(step); font: 700 18px/1 var(--display); color: var(--ink-2); width: 28px; height: 28px; border: 1.5px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step .who { display: flex; gap: 8px; align-items: baseline; }
.step .who b { font-size: 13.5px; }
.step .who span { font-size: 12.5px; color: var(--ink-2); }
.step.who-remote .who b { color: var(--accent); }
.step.who-site .who b { color: var(--good); }
.step.who-tellus .who b { color: var(--warn); }
.step .what p { margin: 0; }
.step .what button { margin-top: 8px; }
.guide-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.guide-foot b { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.fault-item a.t { color: var(--ink); }
.fault-item a.t:hover { color: var(--accent); }
textarea { font: 400 14px/1.4 var(--body); padding: 8px 9px; border: 1px solid var(--line); border-radius: 3px; resize: vertical; }
textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
details.panel summary { cursor: pointer; font-weight: 600; }
.btn { text-decoration: none; }
.btn:hover { text-decoration: none; border-color: #aab5af; }
.grid-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
@media (max-width: 1180px) { .grid-guide { grid-template-columns: 1fr; } }

/* ---------- remote help ---------- */
.checkup-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 10px; border-left: 4px solid var(--c); background: var(--cb); }
.checkup-head b { font-size: 15.5px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.checklist li:first-child { border-top: 0; }
.checklist .mark { width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-top: 3px; position: relative; }
.checklist .c-Good .mark::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist .c-Fault .mark::after, .checklist .c-Warning .mark::after { content: "!"; position: absolute; inset: 0; color: #fff; font: 700 10px/14px var(--body); text-align: center; }
.checklist .next { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.checklist.compact li { padding: 6px 0; }
.symptoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 14px; }
.symptoms button { justify-content: flex-start; text-align: left; padding: 11px 12px; line-height: 1.3; font-weight: 500; }
.symptoms button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.trouble { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.answer { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 12px; margin: 10px 0 12px; }
.answer b { display: block; color: var(--accent); margin-bottom: 2px; }
.answer p { margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-grid .wide { grid-column: 1 / -1; }
.plan-grid .lbl { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
label.check { display: inline-flex; gap: 6px; align-items: center; margin-right: 10px; }
ul.plain { margin: 0; padding-left: 16px; }
ul.plain li { padding: 1px 0; }

/* ---------- account and security ---------- */
.stack-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.stack-form button.primary { align-self: flex-start; }
.stack-form .err { color: var(--fault); font-size: 13.5px; min-height: 0; }
.setup-steps { margin: 0; padding-left: 20px; }
.setup-steps li { padding: 4px 0; }
.secret { font: 600 17px/1.4 var(--code); letter-spacing: 1px; background: var(--inset); border: 1px solid var(--line); padding: 8px 10px; margin-top: 6px; user-select: all; word-break: normal; }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { padding: 10px 14px; border-left: 4px solid var(--fault); background: var(--fault-bg); font-size: 14px; }
.alert.ok { border-left-color: var(--good); background: var(--good-bg); }
.me .acct { display: block; color: var(--rail-ink); margin-top: 6px; text-decoration: underline; text-underline-offset: 2px; }
.signin .form-side { padding: 44px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.signin .form-side .inner { width: 100%; max-width: 420px; }
.signin .form-side h2 { font-size: 26px; margin-bottom: 14px; }

/* ---------- sign in ---------- */
.signin { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100vh; }
.signin .story { background: var(--rail); color: var(--rail-ink); padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.signin .story .middle { max-width: 640px; }
.signin .story .brand { padding: 0; border: 0; }
.signin .story h1 { font: 600 46px/1.04 var(--display); color: #fff; max-width: 15ch; letter-spacing: -.5px; }
.signin .story p { max-width: 50ch; margin-top: 16px; font-size: 16px; color: var(--rail-ink); }
.signin .story svg.oneline { width: 100%; max-width: 640px; height: auto; margin: 0 0 40px; display: block; }
.signin .story .foot { font-size: 12.5px; color: var(--rail-dim); margin-top: 28px; }
.signin form { padding: 44px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.signin form .inner { width: 100%; max-width: 380px; }
.signin form h2 { font-size: 26px; margin-bottom: 6px; }
.signin form .lede { color: var(--ink-2); margin-bottom: 22px; }
.signin form label.field { margin-bottom: 14px; }
.signin form button.primary { width: 100%; justify-content: center; padding: 11px; font-size: 15px; margin-top: 4px; }
.signin .err { color: var(--fault); font-size: 13.5px; min-height: 20px; margin-top: 10px; }
.signin .help { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.demo { margin-top: 28px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.demo h3 { font-size: 14px; margin-bottom: 6px; }
.demo p { font-size: 12.5px; color: var(--ink-2); }
.demo button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 8px 4px; background: none; font-weight: 500; font-size: 14px; line-height: 1.3; }
.demo button:hover { background: var(--inset); }
.demo button span { display: block; }
.demo button span:last-child { color: var(--ink-2); font-weight: 400; font-size: 12.5px; }

.toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: #fff; padding: 11px 15px; border-radius: 3px; font-size: 14px; max-width: 440px; box-shadow: 0 10px 26px rgba(0,0,0,.22); z-index: 50; }
.loading { padding: 40px 0; color: var(--ink-2); }

@media (max-width: 1180px) {
  .grid-2, .health-layout { grid-template-columns: 1fr; }
  .plate { grid-template-columns: 1fr; }
  .plate .id { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .plate dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate dl div:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .plate dl div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; }
  .navgroup { display: flex; flex-wrap: wrap; padding: 4px 8px; }
  .navgroup h4 { display: none; }
  .navgroup a { border-left: 0; padding: 8px 10px; }
  .me, .org-plate { display: none; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; position: static; }
  .jump input, input[type=search] { min-width: 0; width: 100%; }
  .page { padding: 18px 16px 40px; }
  .panel > header { flex-wrap: wrap; }
  .panel > header .tools { margin-left: 0; }
  .signin { grid-template-columns: 1fr; }
  .signin .story { padding: 28px 24px; }
  .signin .story h1 { font-size: 34px; }
  .signin .story svg.oneline { margin: 0 0 20px; }
  .signin form { padding: 28px 24px; }
  .board .site-cell { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Charger configuration */
.stack-form.wide { max-width: none; }
.module-groups { display: flex; flex-direction: column; gap: 10px; }
.module-group { display: grid; grid-template-columns: 90px minmax(150px, 1.2fr) 130px minmax(120px, 1fr) auto; gap: 10px; align-items: end; padding: 10px 12px; background: var(--inset); border: 1px solid var(--line-soft); border-radius: 3px; }
.module-group .link { padding-bottom: 9px; }
.erp-preview > * + * { margin-top: 10px; }
@media (max-width: 760px) { .module-group { grid-template-columns: 1fr 1fr; } }
label.field .row { flex-wrap: nowrap; }
label.field .row input { flex: 1; width: auto; min-width: 0; }

/* Predicted service */
.predict-card { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 3px; padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.predict-card.u-Urgent { border-left-color: var(--fault); }
.predict-card.u-Plan { border-left-color: var(--warn); }
.predict-card .due { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.predict-card .finding { margin: 8px 0; font-size: 14px; }
.predict-card canvas.trend { width: 100%; height: 160px; display: block; margin: 4px 0 10px; }
.predict-card dl.why { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; margin: 0 0 10px; font-size: 13.5px; }
.predict-card dl.why dt { color: var(--ink-2); }
.predict-card dl.why dd { margin: 0; }

/* Root causes */
ol.causes { margin: 0; padding-left: 20px; }
ol.causes > li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
ol.causes > li:first-child { border-top: 0; padding-top: 0; }
ol.causes > li.top > .row b { font-size: 15.5px; }
ol.causes .evidence { margin: 4px 0; padding-left: 16px; color: var(--ink-2); font-size: 13.5px; }
ol.causes .next { font-size: 13.5px; }
ul.hotspots { margin: 0; padding-left: 18px; }
ul.hotspots li { padding: 3px 0; }

/* Automatic fixes and firmware */
ul.rules { list-style: none; margin: 0; padding: 0; }
ul.rules > li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
ul.rules > li:first-child { border-top: 0; }
ul.rules > li.off { opacity: .7; }
ul.rules > li > div + div { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .form-grid, .form-grid.four { grid-template-columns: 1fr 1fr; } }
label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.bar { flex: 1; max-width: 260px; height: 8px; background: var(--inset); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--good); }
ol.waves { list-style: none; margin: 0; padding: 0; counter-reset: w; }
ol.waves > li { padding: 8px 0 8px 12px; border-left: 3px solid var(--line); margin-bottom: 6px; }
ol.waves > li.now { border-left-color: var(--accent); }
.wave-units { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.wave-units .wu { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.wave-units .wu .small { color: var(--fault); }

/* Work orders, visits and alerts */
.prio { display: inline-block; font: 600 12px/1 var(--body); padding: 4px 6px; border-radius: 3px; border: 1px solid var(--line); white-space: nowrap; }
.prio.p-P1 { background: var(--fault-bg); color: var(--fault); border-color: #e6bdb8; }
.prio.p-P2 { background: var(--warn-bg); color: #8a5a00; border-color: #ecd3a0; }
.job-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
button.big { padding: 12px 18px; font-size: 15px; }
ol.job-steps { margin: 0; padding-left: 20px; }
ol.job-steps li { padding: 6px 0; }
ol.job-steps .who { font-size: 12px; font-weight: 600; color: var(--ink-2); }
ol.job-steps .who-site { color: var(--good); }
ol.job-steps .who-tellus { color: var(--warn); }
.safety { background: var(--fault-bg); border-left: 3px solid var(--fault); padding: 8px 12px; margin-bottom: 10px; font-size: 13.5px; }
ul.timeline { list-style: none; margin: 0; padding: 0; }
ul.timeline li { padding: 7px 0; border-top: 1px solid var(--line-soft); }
ul.timeline li:first-child { border-top: 0; }
.visit-list { display: grid; gap: 10px; max-width: 640px; }
a.visit { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; color: var(--ink); text-decoration: none; }
a.visit:hover { border-color: var(--accent); }
@media (max-width: 860px) {
  .job-actions button { flex: 1 1 100%; }
  .rail .navgroup { display: none; }
  .rail.open .navgroup { display: flex; }
  .rail .menu-toggle { display: inline-flex; }
}
.rail .menu-toggle { display: none; margin: 8px 12px; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
@media (max-width: 860px) { .rail .menu-toggle { display: inline-flex; } }

/* Support desk cases */
ol.stagebar { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
ol.stagebar li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink-2); font-weight: 500; border-left: 1px solid var(--line-soft); }
ol.stagebar li:first-child { border-left: 0; }
ol.stagebar .n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid var(--line); background: var(--inset); }
ol.stagebar li.done { color: var(--ink); }
ol.stagebar li.done .n { background: var(--good); border-color: var(--good); color: #fff; }
ol.stagebar li.now { color: var(--ink); background: var(--inset); box-shadow: inset 0 -3px 0 var(--accent); }
ol.stagebar li.now .n { background: var(--accent); border-color: var(--accent); color: #fff; }
details.stage-panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
details.stage-panel > summary::-webkit-details-marker { display: none; }
details.stage-panel > summary .n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid var(--line); }
details.stage-panel.done > summary .n { background: var(--good); border-color: var(--good); color: #fff; }
details.stage-panel.now { border-color: var(--accent); }
details.stage-panel.now > summary .n { background: var(--accent); border-color: var(--accent); color: #fff; }
details.stage-panel > summary b { font-family: var(--head); font-size: 17px; }
details.stage-panel > summary .sub { color: var(--ink-2); font-size: 13px; }
details.stage-panel[open] > summary { border-bottom: 1px solid var(--line-soft); }
details.stage-panel > .body { padding: 14px 16px; }
details.stage-panel .next-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.triage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.triage-grid .k { font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
ol.fix-steps { margin: 0; padding-left: 22px; }
ol.fix-steps > li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
ol.fix-steps > li:first-child { border-top: 0; }
ol.fix-steps .who { font-size: 12px; font-weight: 600; color: var(--accent); }
ol.fix-steps .who-site .who, ol.fix-steps li.who-site .who { color: var(--good); }
ol.fix-steps li.who-tellus .who { color: var(--warn); }
ol.fix-steps .result { font-size: 13px; margin-top: 4px; padding: 4px 8px; border-left: 3px solid var(--line); background: var(--inset); }
ol.fix-steps .result.ok { border-left-color: var(--good); }
ol.fix-steps .result.bad { border-left-color: var(--fault); }
@media (max-width: 860px) { ol.stagebar { grid-template-columns: 1fr; } .triage-grid { grid-template-columns: 1fr 1fr; } }
