/* SentriCloud portal, in the SentriCore website's look (website/sentricore-theme: sentricore.css):
   Archivo headings, Public Sans text, IBM Plex Mono figures, the website's greens, rounded cards,
   pill buttons and a dark top bar. Variable names below are the portal's own,
   set from the website's tokens. */
@font-face { font-family: 'Archivo'; font-weight: 500 800; font-display: swap; src: url(archivo.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400 600; font-display: swap; src: url(public-sans.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(ibm-plex-mono-500.woff2) format('woff2'); }
:root {
  --bg:#f2f5f1; --panel:#ffffff; --panel2:#f2f5f1; --surface-2:#e8eee6; --ink:#171b18; --ink2:#2b322c; --muted:#5a655d; --line:#dbe2d9;
  --green:#3f8c27; --green-dk:#2c6a1a; --green-tint:#eaf4e4; --green-line:color-mix(in srgb, #3f8c27 30%, transparent);
  --deep:#0d130e; --deep-ink:#eef3ec; --deep-muted:#b9c6b8; --glow:rgba(116,194,80,.35);
  --amber:#9c6410; --amber-bg:#fbf0dd; --red:#b03326; --red-bg:#fbe9e6; --blue:#2f5d8a; --blue-bg:#e7eef6;
  --grid:#e3e9e1; --shadow:0 1px 2px rgba(19,26,20,.04),0 6px 18px -10px rgba(19,26,20,.12); --r:14px;
  --display:'Archivo',"Helvetica Neue",Arial,sans-serif; --font:'Public Sans',-apple-system,"Segoe UI",Arial,sans-serif;
  --mono-font:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0f120f; --panel:#161b16; --panel2:#1d241e; --surface-2:#232b24; --ink:#edf1ec; --ink2:#d3dbd2; --muted:#9ca79e; --line:#2a322b;
    --green:#74c250; --green-dk:#8ed26b; --green-tint:#1a2c17; --deep:#060906;
    --amber:#e0a94e; --amber-bg:#2c2416; --red:#e78478; --red-bg:#2e1a17; --blue:#8fb7e3; --blue-bg:#17222f;
    --grid:#232a24; --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0f120f; --panel:#161b16; --panel2:#1d241e; --surface-2:#232b24; --ink:#edf1ec; --ink2:#d3dbd2; --muted:#9ca79e; --line:#2a322b;
  --green:#74c250; --green-dk:#8ed26b; --green-tint:#1a2c17; --deep:#060906;
  --amber:#e0a94e; --amber-bg:#2c2416; --red:#e78478; --red-bg:#2e1a17; --blue:#8fb7e3; --blue-bg:#17222f;
  --grid:#232a24; --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--green-dk); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* Header: a dark bar, the website's hero colour */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 22px; padding: 0 24px; min-height: 58px; flex-wrap: wrap;
  background: var(--deep); color: var(--deep-ink); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { height: 24px; width: auto; display: block; }
.brand span { color: #8ed26b; }
nav { display: flex; gap: 2px; flex: 1; min-width: 0; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
nav a { display: flex; align-items: center; color: var(--deep-muted); text-decoration: none; padding: 0 12px; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
nav a:hover { color: #fff; }
nav a.on { color: #fff; border-bottom-color: #74c250; }
.who { color: var(--deep-muted); font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.who a { color: #fff; text-decoration: none; font-weight: 500; }
.who button { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 13px; }
.who button:hover { border-color: #74c250; }
/* Release 25 (T1-1, T1-10): the menu's links sit in .navlinks; Tier 1's Customers and Admin are drop-downs, and on a
   phone the whole menu folds behind a Menu button, with Help as its last item. */
.navlinks { display: flex; gap: 2px; flex: 1; min-width: 0; align-self: stretch; }
.navmenu, .navhelp { display: none; }
.ngroup { position: relative; display: flex; }
.ngb { display: flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--deep-muted); padding: 0 12px;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.ngb::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.ngb:hover, .ngroup.open > .ngb { color: #fff; }
.ngroup:has(a.on) > .ngb { color: #fff; border-bottom-color: #74c250; }
.ngm { display: none; position: absolute; top: 100%; left: 0; z-index: 45; min-width: 190px; padding: 6px; background: var(--deep); border: 1px solid rgba(255,255,255,.12);
  border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0,0,0,.25); flex-direction: column; }
.ngroup.open > .ngm { display: flex; }
.ngm a { padding: 9px 12px; border-bottom: 0; border-radius: 6px; }
.ngm a.on { background: rgba(255,255,255,.08); }
nav { overflow: visible; }
@media (max-width: 760px) {
  nav { overflow: visible !important; position: relative; flex: 0 0 auto !important; order: 0 !important; margin-left: auto; }
  .navmenu { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 8px;
    padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .navmenu::before { content: ''; width: 14px; height: 10px; background: linear-gradient(#fff,#fff) 0 0/14px 2px no-repeat, linear-gradient(#fff,#fff) 0 4px/14px 2px no-repeat, linear-gradient(#fff,#fff) 0 8px/14px 2px no-repeat; }
  .navlinks { display: none; position: fixed; left: 0; right: 0; top: var(--navtop, 58px); bottom: 0; z-index: 60; overflow-y: auto; flex-direction: column; gap: 0;
    padding: 8px 16px 24px; background: var(--deep); }
  nav.open .navlinks { display: flex; }
  .navlinks a, .ngm a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
  .navlinks a.on { border-bottom-color: rgba(255,255,255,.07); color: #8ed26b; }
  .ngroup { flex-direction: column; }
  .ngb { padding: 16px 4px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: default; border: 0 !important; color: var(--deep-muted) !important; }
  .ngb::after { display: none; }
  .ngm { display: flex; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; background: none; }
  .navhelp { display: flex; }
  #helpbtn { display: none; }
}

/* When the menu doesn't fit beside the logo and the sign-out (laptops, Tier 1's long menu), it gets its own
   row under them, wrapping if it must, instead of running off the right-hand edge (fitNav in app.js). */
@media (min-width: 761px) {
  .top.navrow { padding-top: 8px; }
  .top.navrow .brand { margin-right: auto; }
  .top.navrow nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; margin: 0 -12px; }
  .top.navrow nav a, .top.navrow .ngb { padding: 10px 12px; }
  .top.navrow .navlinks { flex-wrap: wrap; }
}

/* Site filter (top bar): all sites, or the ones ticked */
.sitepick { position: relative; }
.sp-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 8px;
  padding: 7px 12px; cursor: pointer; font-size: 13.5px; font-weight: 500; max-width: 240px; white-space: nowrap; }
.sp-btn:hover { border-color: rgba(255,255,255,.3); }
.sp-ic { width: 12px; height: 10px; flex: none; background: linear-gradient(#cfd9cd,#cfd9cd) 0 0/12px 2px no-repeat, linear-gradient(#cfd9cd,#cfd9cd) 2px 4px/8px 2px no-repeat, linear-gradient(#cfd9cd,#cfd9cd) 4px 8px/4px 2px no-repeat; }
.sp-car { width: 7px; height: 7px; border: solid #cfd9cd; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); margin-left: 2px; }
.sp-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); padding: 10px; z-index: 50; }
.sp-menu input[type=text], .sp-menu #spq { margin-bottom: 8px; padding: 8px 10px; font-size: 14px; }
.sp-menu label { display: flex; align-items: center; gap: 9px; margin: 0; padding: 7px 6px; border-radius: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.sp-menu label:hover { background: var(--panel2); }
.sp-menu label input { width: auto; accent-color: var(--green); }
.sp-menu label small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.sp-all { border-bottom: 1px solid var(--line); border-radius: 0 !important; margin-bottom: 4px !important; }
.sp-list { max-height: 300px; overflow: auto; }
.sp-foot { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.btn.sm { padding: 6px 14px; font-size: 13.5px; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 72px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.08; margin: 4px 0 6px; letter-spacing: -.03em; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
h3 { font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono-font); font-size: .92em; }

.eyebrow { color: #9be27a; }
.hero .btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.hero .tiles { margin: 18px 0 0; }
.hero .tile { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.hero .tile .n { color: #fff; }
.hero .tile .l { color: var(--deep-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dk); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #74c250; box-shadow: 0 0 0 4px rgba(116,194,80,.2); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.tile .n { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.tile .l { color: var(--muted); font-size: 13.5px; }

.site { display: block; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  box-shadow: var(--shadow); position: relative; transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.site::before { content: ""; position: absolute; left: 18px; top: 0; width: 36px; height: 4px; border-radius: 0 0 4px 4px; background: var(--green); }
.site:hover { transform: translateY(-3px); border-color: var(--green-line); }
.site.amber::before { background: var(--amber); }
.site.red::before { background: var(--red); }
.site b { display: block; font-family: var(--display); font-size: 16.5px; letter-spacing: -.01em; margin-top: 4px; }
.site .meta { color: var(--muted); font-size: 13.5px; margin: 2px 0 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-family: var(--display); font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.green { background: var(--green-tint); color: var(--green-dk); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.pill.amber { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.pill.red { background: var(--red-bg); color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.pill.grey { background: var(--panel2); color: var(--muted); border-color: var(--line); }
.pill.blue { background: var(--blue-bg); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 25%, transparent); }
.tag { display: inline-block; background: var(--green-tint); color: var(--green-dk); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 600; font-family: var(--display); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--panel); border: 1px solid var(--line); color: var(--ink2); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 500; font-size: 13.5px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
td.wrap { white-space: normal !important; min-width: 180px; }
tr.editing td { background: var(--panel2); }
.outcome { display: grid; gap: 10px; padding: 6px 0; }
.outcome textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; }
label.radio { display: inline-flex; gap: 6px; align-items: center; margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 500; }
label.radio input { width: auto; }
#rf label { margin: 0; }
#rf input, #rf select { width: auto; }
.history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.history h3 { font-size: 14px; margin: 20px 0 8px; color: var(--ink2); }
.strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.strip span { height: 24px; border-radius: 5px; background: var(--green); }
.strip span.fail { background: var(--red); }
.strip span.none { background: var(--line); }
.spec { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 12px 0 4px; font-size: 14px; }
.spec .muted { font-size: 13px; }
.warn { color: var(--amber); font-weight: 600; }
.rank i.bad { background: var(--red); }
.area-sel { width: auto; min-width: 110px; padding: 4px 8px; font-size: 13.5px; }
.strip-axis { display: flex; justify-content: space-between; font-size: 12px; margin-top: 4px; }

/* Tables: the website's price table */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
.scroll td { white-space: nowrap; }
tr.click:hover td { background: var(--panel2); }
tr.sel td { background: var(--green-tint); }
.scroll { overflow-x: auto; }
/* Laptops (item 76): wide tables wrap their longer text instead of running off the card. Buttons, pills,
   serials and pickers stay on one line. Phones keep the stacked or sideways-scrolling layout. */
@media (min-width: 761px) {
  .scroll td { white-space: normal; }
  .scroll td .btn, .scroll td .pill, .scroll td .mono, .scroll td select, .scroll td button { white-space: nowrap; }
}

/* Tabs: the website's pill tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a, .tabs button { font-family: var(--display); font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  padding: 8px 15px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.tabs a.on, .tabs button.on { background: var(--green); border-color: var(--green); color: #fff; }

/* Buttons: the website's pill buttons */
.btn { font-family: var(--display); font-weight: 600; font-size: 14.5px; border-radius: 999px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--green); color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 88%, #fff) 0%, var(--green) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -8px var(--glow); transition: transform .15s ease, box-shadow .2s ease, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--green); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }

.health { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.health div { background: var(--panel2); border-radius: 14px; padding: 12px 14px; }
.health b { display: block; font-family: var(--display); font-size: 18px; }
.health span { color: var(--muted); font-size: 12.5px; }

.charts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-top: 12px; }
.chart { position: relative; }
.chart h3 { font-size: 13.5px; margin: 0 0 4px; color: var(--ink2); }
.chart svg { width: 100%; height: 160px; display: block; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--mono-font); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
.chart .limit { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 4 3; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .dot { fill: var(--green); stroke: var(--panel); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--deep); color: var(--deep-ink); font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); }

/* Forms: the website's inputs */
.signin { max-width: 420px; margin: 64px auto; }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.err { color: var(--red); margin-top: 10px; }
.note { background: var(--green-tint); border: 1px solid var(--green-line); color: var(--ink2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-top: 16px; }
.empty { color: var(--muted); padding: 18px 4px; }

@media (max-width: 760px) {
  .top { padding: 8px 16px; gap: 8px; }
  nav { order: 3; flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .who a { display: none; }
  .who { margin-left: auto; }
  .hide-sm { display: none; }
  main { padding: 20px 16px 60px; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stack td { border: 0; padding: 3px 4px; white-space: normal !important; }
  table.stack td[data-l]::before { content: attr(data-l); display: inline-block; width: 74px; color: var(--muted); font-size: 12px; }
  table.stack td[data-l]:empty { display: none; }
}

/* Report assistant's answer */
.answer { margin-top: 12px; border-left: 3px solid var(--green); padding: 4px 0 4px 14px; }
.answer h3 { margin: 12px 0 6px; }
.answer p, .answer ul { margin: 6px 0; }

/* Engineer visits on the home screen */
.visit { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--amber);
  border-radius: 18px; padding: 12px 16px; margin-bottom: 12px; }
.visit.accepted { border-left-color: var(--green); }
.visit.declined { border-left-color: var(--red); }
.visit .row { margin-top: 6px; }
.ok { color: var(--green-dk); font-weight: 600; }
.stackl { display: flex; flex-direction: column; gap: 4px; }

/* Maps */
.map-card { padding: 8px; }
.map { height: 380px; border-radius: 14px; z-index: 0; }
.map.small { height: 240px; margin: 12px 0; }
.legend { padding: 8px 6px 2px; font-size: 13px; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.eng-pin span, .eng-key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #2F6FD6; border: 2px solid #fff; box-shadow: 0 0 0 1px #2F6FD6; vertical-align: middle; }
.stop-pin span { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-dk); color: #fff; font-size: 12px; font-weight: 700; border: 2px solid #fff; }
@media (max-width: 600px) { .map { height: 300px; } .two { grid-template-columns: 1fr; } }
.alist { display: flex; flex-direction: column; }
.aitem { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.aitem:first-child { border-top: 0; padding-top: 0; }
.aitem .row { margin-top: 4px; gap: 8px; }
.aitem .btn { white-space: nowrap; }

/* Reports: high to low ranking */
.rank { display: flex; flex-direction: column; gap: 8px; }
.rank div { display: grid; grid-template-columns: 24px minmax(90px, 240px) 1fr 36px; gap: 10px; align-items: center; font-size: 14px; }
.rank .pos { font-family: var(--mono-font); color: var(--muted); font-size: 12.5px; }
.rank .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank i { display: block; height: 10px; border-radius: 6px; background: var(--green); }
.rank b { font-family: var(--mono-font); font-weight: 500; text-align: right; }
.two > .card { margin-bottom: 18px; }

/* SentriCalling (call-out add-on) */
.addon { background: var(--green-tint); border: 1px solid var(--green-line); border-radius: 18px; padding: 16px 20px; }
.addon h2 { margin-top: 0; }
.callnums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px 16px; }
.callnum { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 8px; align-items: center; }
.callnum b { font-family: var(--mono-font); color: var(--green-dk); text-align: center; }
.callnum input { min-width: 0; }
/* Item 147: each number in its own box, the consent tick on one line under its name and number. */
.callnum { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
.callnum .coagree { grid-column: 2 / -1; margin-top: 0; white-space: normal; }
@media (max-width: 600px) { .callnum { grid-template-columns: 22px 1fr; } .callnum input[data-phone] { grid-column: 2; } }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.check input { width: auto; }
#codev td { vertical-align: middle; }
#codev input[type=checkbox], .coed input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
#codev input.delay, .coed input.delay { width: 76px; padding-left: 6px; padding-right: 6px; text-align: center; font-family: var(--mono-font); }
.cnums { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; max-width: 420px; }
.cnum { display: inline-block; border: 1px solid var(--green-line); background: var(--panel); border-radius: 7px; padding: 2px 8px; font-size: 13px; white-space: nowrap; }
.cnum b { color: var(--green-dk); font-family: var(--mono-font); margin-right: 2px; }
.cdef { font-size: 12.5px; margin-left: 4px; }
.nowrap { white-space: nowrap; }
.btn.small { padding: 6px 12px; font-size: 13px; }
tr.coedit > td { background: var(--green-tint); padding: 4px 10px 14px; }
.coed { white-space: normal; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; background: var(--panel); border: 1px solid var(--green-line); border-radius: 14px; padding: 14px 18px; }
.coed h3 { font-size: 14.5px; margin: 0 0 8px; }
.coed h3:not(:first-child) { margin-top: 16px; }
.coline { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.coline b { color: var(--muted); } .coline.on b { color: var(--green-dk); }
.arrows { display: flex; gap: 4px; }
.arrows button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 6px; width: 28px; height: 26px; cursor: pointer; font-size: 11px; }
.arrows button:disabled { opacity: .35; cursor: default; }
.cosave { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 14px; }
.cosay > div { background: var(--green-tint); border: 1px solid var(--green-line); border-radius: 12px; padding: 10px 14px; margin-top: 6px; font-weight: 500; }
.locknote { background: var(--blue-bg); color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); border-radius: 12px; padding: 11px 14px 11px 38px; font-size: 13.5px; margin: 16px 0 0; position: relative; }
.locknote::before { content: ""; position: absolute; left: 14px; top: 13px; width: 12px; height: 9px; border: 1.6px solid currentColor; border-radius: 2px; margin-top: 5px; }
.locknote::after { content: ""; position: absolute; left: 16.5px; top: 11px; width: 7px; height: 7px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.cohow { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.cohow summary { cursor: pointer; font-family: var(--display); font-weight: 600; }
.cohow table.kv th { text-transform: none; letter-spacing: 0; font-size: 13.5px; width: 110px; vertical-align: top; }
.ctiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 18px; }
.ctiles .tile { padding: 16px 18px; }
.ctiles .tile.good .n { color: var(--green-dk); }
.ctiles .tile.bad { border-color: var(--red); }
.ctiles .tile.bad .n { color: var(--red); }
tr.total td { border-bottom: 0; }
@media (max-width: 760px) {
  .coed, .cosave { grid-template-columns: 1fr; }
}

/* Most active (customer home) */
.three { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.three > .card { margin-bottom: 18px; }
#top .rank div { grid-template-columns: 22px minmax(0, 1.5fr) minmax(40px, 1fr) 30px; }
@media (max-width: 600px) { .three { grid-template-columns: 1fr; } }
#top .rank .nm { white-space: normal; line-height: 1.3; }
#top .rank .nm small { display: block; font-size: 12.5px; }

/* Home: greeting, site chips, the trend and the four live cards */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot.amber { background: var(--amber); } .dot.red { background: var(--red); } .dot.grey { background: var(--line); }
.banner { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 11px 16px; margin-bottom: 22px; font-size: 14px; border: 1px solid; }
.banner.red { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--ink); }
.banner.amber { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 30%, transparent); color: var(--ink); }
.banner .bi { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.banner.red .bi { background: var(--red); } .banner.amber .bi { background: var(--amber); }
.banner .bi::after { content: "!"; color: #fff; font: 700 13px var(--display); }
.banner > div { flex: 1; min-width: 0; }
.banner b { font-family: var(--display); }
.banner span { color: var(--ink2); }
.banner a { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.banner.red a { color: var(--red); } .banner.amber a { color: var(--amber); }
.greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.greet h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em; margin: 0 0 4px; }
.greet .sub { margin: 0; }
.schips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.schip { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.schip:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.schip.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.trend { padding: 18px 20px 12px; }
.trend header { align-items: flex-start; margin-bottom: 6px; }
.trend h2 { margin: 0 0 2px; }
.trend .sub { margin: 0; font-size: 14px; }
.trend .sub b { color: var(--ink); font-family: var(--mono-font); font-weight: 500; }
.trend .up { color: var(--red); font-weight: 600; } .trend .down { color: var(--green-dk); font-weight: 600; }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 14px; border-radius: 7px; cursor: pointer; font-size: 13.5px; font-weight: 600; font-family: var(--display); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bars { position: relative; }
.bars svg { display: block; width: 100%; height: auto; }
.bars .axis text { fill: var(--muted); font-size: 11px; font-family: var(--mono-font); }
.bars .gridline { stroke: var(--grid); stroke-width: 1; }
.bars .b { fill: var(--green); }
.bars .b.hl { fill: var(--green-dk); }
.bars .hit { fill: transparent; cursor: default; }
.bars .tip { transform: translate(-50%, calc(-100% - 8px)); }
.board { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (max-width: 820px) { .board { grid-template-columns: 1fr; } }
.bcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); box-shadow: var(--shadow); }
.bcard.top-amber { border-top-color: var(--amber); } .bcard.top-red { border-top-color: var(--red); } .bcard.top-blue { border-top-color: var(--blue); }
.bcard header { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.bcard h2 { margin: 0; font-size: 16px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dk); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.bbody { padding: 10px 20px 4px; flex: 1; }
.bcard footer { padding: 10px 20px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.bcard footer a { text-decoration: none; font-weight: 600; font-family: var(--display); }
.stat { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.stat span { display: inline-flex; align-items: center; gap: 6px; }
.stat b { color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.lis { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 14px; }
.li:first-child { border-top: 0; }
.li:hover b { color: var(--green-dk); }
.li-main { flex: 1; min-width: 0; }
.li-main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-end { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-family: var(--mono-font); }
.li-end.open { color: var(--red); font-weight: 500; }
.li .t { font-family: var(--mono-font); font-size: 13px; color: var(--ink2); width: 42px; flex: none; }
.more { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.calm { color: var(--muted); margin: 6px 0 12px; }
.small { font-size: 12.5px; }
.meter-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; font-size: 13px; line-height: 1.35; }
.meter-row .big { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.meter { height: 8px; border-radius: 6px; background: var(--panel2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.hbar { display: flex; gap: 2px; width: 120px; height: 8px; flex: none; }
.hbar i { display: block; height: 100%; border-radius: 3px; }
.hbar i[style*="width:0%"] { display: none; }
.hbar i.green { background: var(--green); } .hbar i.amber { background: var(--amber); } .hbar i.red { background: var(--red); }
@media (max-width: 600px) { .hbar { width: 60px; } .sp-menu { position: fixed; left: 16px; right: 16px; width: auto; top: 110px; } }
/* Site filter: regions, then every site */
.schip .n { font-family: var(--mono-font); font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.schip.on .n { color: color-mix(in srgb, var(--panel) 70%, transparent); }
.bars .hit { cursor: pointer; }

/* Guaranteed uptime */
.upcard { padding: 20px; }
.uphead { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.uphead > div:last-child { flex: 1; min-width: 260px; }
.uphead p { margin: 8px 0 0; font-size: 13.5px; }
.upbig { font-family: var(--display); font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--green-dk); }
.uplist h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.uprow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 72px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.uprow:first-of-type { border-top: 0; }
.uprow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uprow .muted { font-size: 12.5px; }
.uprow b { font-family: var(--mono-font); font-weight: 500; text-align: right; }
.upcard .two > .uplist { margin-bottom: 0; }

/* Reports: the AI report builder */
.card.ai { border-top: 3px solid var(--green); }
.aibox { display: flex; gap: 10px; align-items: flex-end; }
.aibox textarea { flex: 1; resize: vertical; min-height: 52px; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
.aibox textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
@media (max-width: 600px) { .aibox { flex-direction: column; align-items: stretch; } }
.sp-h { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 6px 2px; }
.sp-reg span:nth-of-type(1) { flex: 1; }
.sp-reg .muted { font-family: var(--mono-font); font-size: 12px; }

/* Service report */
.svc-cover .big .muted { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.meter.green i { background: var(--green); }
.svc header { align-items: flex-start; }
.svc h2 { margin: 0 0 4px; }
.svc header p { margin: 0; font-size: 13.5px; }
.svc-n { text-align: right; line-height: 1.2; }
.svc-n b { display: block; font-family: var(--display); font-size: 24px; }
.svc-n span { font-size: 12.5px; }
.counts { margin: 4px 0 12px; font-size: 14.5px; color: var(--ink2); }
.counts b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.card.ai { margin-top: 6px; }

/* ---- v24: search, maintenance, reports, diary, partners, service history, planner, settings, watches and apps ---- */
.greet-act { gap: 10px; flex-wrap: wrap; flex: 1 1 320px; justify-content: flex-end; }
.hsearch { position: relative; flex: 1 1 280px; max-width: 420px; }
.hsearch input { width: 100%; }
.hres { position: absolute; z-index: 1000; top: calc(100% + 4px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.hres:empty { display: none; }
.hres button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 9px 12px; color: inherit; cursor: pointer; }
.hres button:first-child { border-top: 0; }
.hres button:hover, .hres button:focus-visible { background: var(--green-tint); }
.hres button span:last-child { display: flex; flex-direction: column; min-width: 0; }
.hres small { color: var(--muted); }
.hres .tag { flex: none; min-width: 86px; text-align: center; }
.hres .empty { padding: 12px; }
.maint .mtiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 14px 0 10px; }
.mtile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--green);
  background: var(--panel2); color: var(--ink); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.mtile b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.mtile span { font-size: 13px; color: var(--muted); }
.mtile.amber { border-left-color: var(--amber); } .mtile.red { border-left-color: var(--red); }
.mtile.on { outline: 2px solid var(--green); outline-offset: 0; background: var(--panel); }
.reps .replinks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 10px; }
.replinks a { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: inherit; }
.replinks a:hover { border-color: var(--green-line); background: var(--green-tint); }
.replinks small { color: var(--muted); }
.diary .dgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .6fr)); gap: 4px; margin-top: 12px; }
.dwk { font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.dday { min-height: 78px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; background: var(--panel); }
.dday.wkend { background: var(--panel2); }
.dday.past { opacity: .55; }
.dday.today { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.dday.free { background: var(--green-tint); border-style: dashed; }
.dd { font-size: 12px; color: var(--muted); font-weight: 600; }
.ditem { display: block; font-size: 11.5px; line-height: 1.3; padding: 2px 5px; border-radius: 5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface-2); color: var(--ink); border-left: 3px solid var(--muted); }
.legend .ditem { display: inline-block; margin: 2px 2px; }
.ditem.inst { border-left-color: var(--blue); background: var(--blue-bg); }
.ditem.serv { border-left-color: var(--green); background: var(--green-tint); }
.ditem.pend { border-left-color: var(--amber); background: var(--amber-bg); }
.ditem.sugg { border: 1px dashed var(--amber); border-left-width: 3px; background: transparent; }
.ditem.due { border-left-color: var(--red); background: transparent; color: var(--muted); }
.ditem.due.off { text-decoration: line-through; }
.dfree { font-size: 12px; color: var(--green-dk); font-weight: 600; }
.sday { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.sday h3 { margin: 0 0 2px; }
.sday p { margin: 0 0 6px; }
.sday input[type=date], .sday input[type=time] { width: auto; padding: 5px 6px; }
.pset { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.docrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.docrow label.btn { cursor: pointer; }
.svc.focus, tr.focus { box-shadow: 0 0 0 2px var(--green); }
tr.focus td { background: var(--green-tint); }
@media (max-width: 720px) {
  .diary .dgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .ditem { font-size: 0; padding: 0; height: 6px; }
  .legend .ditem { font-size: 11.5px; height: auto; padding: 2px 5px; }
  .dday { min-height: 44px; padding: 3px; }
  .hsearch { width: 100%; }
}

/* ---- Tiers, accounts and the customer home (v26) ---- */
.tierb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 11px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.tierb::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #74c250; }
@media (max-width: 760px) { .tierb { display: none; } }
/* Tier 1 has the most menu items: the tier badge gives way to them on narrower desktops (the name beside it still says the tier). */
@media (max-width: 1440px) { body:has(nav a[data-nav="competitors"]:not([hidden])) .tierb { display: none; } }
.ttag { display: inline-block; border-radius: 6px; padding: 1px 7px; font-family: var(--display); font-size: 12px; font-weight: 600; margin-right: 6px; white-space: nowrap; }
.ttag.t2 { background: var(--blue-bg); color: var(--blue); }
.ttag.t3 { background: var(--green-tint); color: var(--green-dk); }
.ttag.t4 { background: var(--amber-bg); color: var(--amber); }
.home2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .home2 { grid-template-columns: 1fr; } }
.tile.fa { background: var(--blue-bg); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.tile.fa .n { color: var(--blue); }
.tile .n small { font-size: 14px; font-weight: 600; }
.inc { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.inc:first-of-type { border-top: 0; }
.inc .t { font-family: var(--mono-font); font-size: 13px; color: var(--ink2); width: 44px; flex: none; }
.inc-main { flex: 1; min-width: 0; }
.inc .why { margin-top: 3px; color: var(--ink2); }
.rl { font-family: var(--display); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 4px; }
.lock { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.rbars { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.2fr) 32px; gap: 10px 14px; align-items: center; font-size: 14px; }
.rbars b { text-align: right; font-family: var(--mono-font); font-weight: 500; }
.rbar { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.rbar i.fa { background: var(--blue); }
.pairs { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 16px; margin: 0 0 12px; font-size: 14px; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; }
.tree .branch { margin-bottom: 12px; }
.tree .node { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; background: var(--panel); }
.tree .node a { color: inherit; text-decoration: none; }
.tree .node .grow { flex: 1; }
.tree .kids { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--green-line); }
fieldset.sees { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
fieldset.sees legend { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
fieldset.sees .opt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0; }
fieldset.sees .opt:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
fieldset.sees input[type=radio] { width: auto; }
fieldset.sees select { width: auto; max-width: 100%; }

/* A reason for every incident: the pop-up at the top of the page that waits for the reason (item 63) */
dialog.reasonask { margin: 72px auto auto; width: min(580px, calc(100% - 32px)); max-height: calc(100vh - 96px); overflow: auto;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
dialog.reasonask::backdrop { background: rgba(10, 14, 11, .6); }
dialog.reasonask h2 { margin: 4px 0 0; }
.rq-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rq-top button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
dl.rq-inc { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding: 12px 14px; background: var(--panel2); border-radius: 10px; font-size: 14px; }
dl.rq-inc dt { color: var(--muted); }
dl.rq-inc dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { dialog.reasonask { margin-top: 16px; max-height: calc(100vh - 32px); padding: 16px; } }

/* Manage (item 78): each setting on its own line with its button */
.manage .mrow { padding: 12px 0; border-top: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.manage h2 + .mrow { border-top: 0; padding-top: 4px; }
.manage .mrow > div { flex: 1 1 260px; min-width: 0; }
/* SentriCalling: the site's own message (item 79) */
.comsg { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--green-line); }
.comsg input { width: 100%; margin-top: 4px; }
.cosay > .cohead, .cosay > .comsg { background: none; border: 0; border-radius: 0; padding: 0; font-weight: 400; }
.cosay > .comsg { margin-top: 12px; }
/* The reason pop-up's X, and the bar that stays while it is closed (item 80) */
.rq-top .rq-x { font-size: 28px; line-height: 1; text-decoration: none; color: var(--muted); padding: 0 4px; }
.rq-top .rq-x:hover { color: var(--ink, inherit); }
.reasonbar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px;
  background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); font-weight: 500; }
/* SentriCalling: save the calling number as a contact (item 83) */
.savecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.savecard > div { flex: 1 1 260px; min-width: 0; }
/* Watches and apps: Notify of alerts under an app code's permission (item 85) */
.notifytick { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }
.notifytick[hidden] { display: none; }
.fallset[hidden], .falltimer[hidden] { display: none; }
.fallset { margin-left: 22px; }
.falltimer .row { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.falltimer input[type=time] { width: auto; }
.falldays { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.falldays label { display: flex; align-items: center; gap: 4px; font-weight: 400; }
.falldays input { width: auto; margin: 0; accent-color: var(--accent, #3e7f2f); }
.notifytick input { width: auto; flex: none; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--accent, #3e7f2f); }

/* Which devices alarm which (release 18, item 27): devices down the side, a column per watch, app, email, text or screen. */
.tickgrid { border-collapse: collapse; min-width: 100%; }
.tickgrid th, .tickgrid td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tickgrid thead th { text-align: center; font-weight: 600; min-width: 96px; }
.tickgrid thead th:first-child, .tickgrid tbody th { text-align: left; font-weight: 500; min-width: 160px; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.tickgrid td { text-align: center; }
.tickgrid input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent, #3e7f2f); }
.tickgrid tr.all th, .tickgrid tr.all td { background: var(--panel2); }
.tickgrid tr.msgs td, .tickgrid tr.msgs th { border-bottom: 0; }
/* Watches and apps, Mode and Lone working columns (item 115, render 8), and the site's Lone working log (renders 7 and 10) */
.lonecol .fallset { margin-left: 0; }
.lonecol .notifytick:first-child { margin-top: 0; }
.lonestate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.notifytick select { width: auto; margin-left: 4px; }
.lonecounts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 4px 0 14px; color: var(--muted); }
.lonecount b { font-size: 20px; color: var(--ink); margin-right: 4px; }
.lonelog tr.lone-red td { background: var(--red-bg); }
.lonelog tr.lone-amber td { background: var(--amber-bg); }

/* Release 21 (items 138, 140 to 142): breadcrumbs, the Add and code pop-ups, Set up this system */
html { scroll-padding-top: 120px; }                 /* a row jumped to is never under the top bar */
@media print { .top { position: static; } .crumbs, dialog.wadlg { display: none; } }   /* a printed page has no bar over its tables (item 141) */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--green-dk); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
dialog.wadlg { margin: 72px auto auto; width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 96px); overflow: auto;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
dialog.wadlg.wide { width: min(720px, calc(100% - 32px)); }
dialog.wadlg::backdrop { background: rgba(10, 14, 11, .6); }
dialog.wadlg h2 { margin: 0 0 6px; }
dialog.wadlg form#codeadd20 { margin-top: 10px !important; }
.bigcode { font-size: 34px; font-weight: 600; letter-spacing: .1em; text-align: center; padding: 18px 12px; margin: 12px 0; border: 2px dashed var(--green); border-radius: 12px; background: var(--green-tint); user-select: all; }
.setupbar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.setupbar div { height: 100%; background: var(--green); }
ol.setupsteps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
ol.setupsteps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
ol.setupsteps li.st-done { background: var(--green-tint); border-color: var(--green-line); }
ol.setupsteps li.st-skipped { opacity: .7; }
ol.setupsteps .stn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--line); }
ol.setupsteps li.st-done .stn { background: var(--green); border-color: var(--green); color: #fff; }
ol.setupsteps .stb { flex: 1; min-width: 200px; }
@media (max-width: 600px) { dialog.wadlg { margin-top: 16px; max-height: calc(100vh - 32px); padding: 16px; } .bigcode { font-size: 26px; } }

/* ---- Release 22: the editable dashboard (items 144, 145), Customers (146) and Move… (148) ---- */
.dash { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; align-items: start; }
.dblock { position: relative; min-width: 0; }
.dblock.s { grid-column: span 1; } .dblock.m { grid-column: span 2; } .dblock.l { grid-column: 1 / -1; }
.dblock > .card, .dblock > .bcard, .dblock > .tile, .dblock > div > .card { margin: 0; height: 100%; }
.dblock > .tile { display: block; }
@media (max-width: 900px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dblock.m { grid-column: 1 / -1; } }
.dash.editing .dblock { outline: 2px dashed color-mix(in srgb, var(--green) 45%, var(--line)); outline-offset: 4px; border-radius: 14px; }
.dash.editing .dblock > :not(.dx):not(.dh) { pointer-events: none; }
.dash.editing .dblock.dragging { opacity: .55; pointer-events: none; }
.dblock > .dx, .dblock > .dh { position: absolute; z-index: 5; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--panel); background: var(--ink); color: var(--panel); font-size: 12px; line-height: 1; padding: 0; cursor: pointer; }
.dblock .dx { top: -11px; right: -11px; }
.dblock > .dh { top: -11px; left: -11px; cursor: grab; touch-action: none; letter-spacing: -2px; }
.dashbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--blue-bg); color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.dashbar p { margin: 0; flex: 1 1 360px; font-weight: 600; font-size: 14px; }
.dlib { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dlibi { display: grid; gap: 6px; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.dlibi.custom { background: color-mix(in srgb, #7a5cc4 7%, var(--panel)); border-color: color-mix(in srgb, #7a5cc4 30%, var(--line)); }
.cbadge { justify-self: center; display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 1px 7px; margin-top: 4px;
  background: color-mix(in srgb, #7a5cc4 14%, transparent); color: #6a4fb0; }
.ctile .cbadge { justify-self: start; }
.ctile .clist { margin-top: 6px; display: grid; gap: 2px; }
a.tile { text-decoration: none; color: inherit; }
.dashno { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 10px 12px; }
.movewhat { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.movesteps { margin: 8px 0 10px; padding-left: 22px; } .movesteps li { margin: 4px 0; }

/* Release 25 (T1-6): overdue services counted in red on the Maintenance tile */
.mtile .overdue { font-style: normal; color: var(--red); font-weight: 600; }

/* Release 25 (F3): the live alarm strip at the top of Home and the site page */
.alarmnow .an-row { display: block; white-space: normal; color: inherit; text-decoration: none; margin-top: 4px; }
.alarmnow .an-row:hover { text-decoration: underline; }
.alarmnow .an-stuck { display: block; font-weight: 600; }
.rlist td { vertical-align: middle; }
