/* uptimebox. panel — tokens from brand/uptimebox-brand/tokens.css (+ panel-only: warn, mono, paused grey) */
:root {
  color-scheme: light dark;
  --ub-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ub-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ub-ink: #0E0E12; --ub-paper: #FFFFFF;
  --ub-brand: #2E5BFF;   /* the logo's blue (30 Oct 2026), same in both themes */
  --ub-bg: #FFFFFF; --ub-surface: #FAFAFC; --ub-surface-muted: #F2F2F6; --ub-border: #E2E2EA;
  --ub-text: #0E0E12; --ub-text-secondary: #5B5B66;
  --ub-btn-bg: var(--ub-ink); --ub-btn-text: var(--ub-paper);
  --ub-status-up: #22C55E; --ub-status-down: #FF3B30; --ub-status-warn: #F59E0B;
  --ub-status-paused: #A3A3B0; --ub-status-unknown: #A3A3B0;   /* paused is grey in the panel (decided 2026-10-26) */
  --ub-radius-sm: 6px; --ub-radius-md: 10px; --ub-radius-lg: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ub-bg: #0E0E12; --ub-surface: #17171C; --ub-surface-muted: #1E1E24; --ub-border: #2A2A32;
    --ub-text: #FFFFFF; --ub-text-secondary: #A3A3B0; --ub-btn-bg: var(--ub-paper); --ub-btn-text: var(--ub-ink);
    --ub-status-paused: #6E6E78; --ub-status-unknown: #6E6E78;
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ub-bg: #0E0E12; --ub-surface: #17171C; --ub-surface-muted: #1E1E24; --ub-border: #2A2A32;
  --ub-text: #FFFFFF; --ub-text-secondary: #A3A3B0; --ub-btn-bg: var(--ub-paper); --ub-btn-text: var(--ub-ink);
  --ub-status-paused: #6E6E78; --ub-status-unknown: #6E6E78;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* text of 15 px and below is 1 px larger than before 30 Oct 2026: the panel's zoom (.9) made labels and help text
   too small (Alex: «some fonts became too small… make them a bit bigger… overall to all pages») */
body { margin: 0; font: 400 16px/1.55 var(--ub-font); background: var(--ub-bg); color: var(--ub-text); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 4px; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 32px 0 12px; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.mono, code { font-family: var(--ub-mono); font-size: 0.86em; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; font-weight: 500; }
.muted { color: var(--ub-text-secondary); }
.nowrap { white-space: nowrap; }
.small { font-size: 16px; }
:focus-visible { outline: 2px solid var(--ub-text); outline-offset: 2px; border-radius: 4px; }

/* layout */
.top { border-bottom: 1px solid var(--ub-border); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; color: var(--ub-text); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 14px; flex: 1; min-width: 0; font-weight: 500; font-size: 15px; overflow-x: auto; scrollbar-width: none; }
.nav a, .who a, .who span { white-space: nowrap; }
.nav a { color: var(--ub-text-secondary); padding: 4px 0; }
.nav a.on, .nav a:hover { color: var(--ub-text); text-decoration: none; }
.who { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ub-text-secondary); }
.who select { font: inherit; color: inherit; background: transparent; border: 1px solid var(--ub-border); border-radius: var(--ub-radius-sm); padding: 3px 6px; }
main { max-width: 1080px; margin: 0 auto; padding: 32px 16px 64px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head .sub { color: var(--ub-text-secondary); font-size: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
/* import sources: two per row, each card a column with its button at the bottom */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; max-width: 960px; margin-bottom: 24px; }
.sources .card.form { display: flex; flex-direction: column; gap: 20px; max-width: none; }
.sources .card.form h2 { margin: 0; }
.sources .card.form .btn { margin-top: auto; align-self: flex-start; }
.help.indent { margin-left: 52px; }   /* past the switch (40px) and its gap */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--ub-surface); border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); padding: 14px 16px; }
.stat .k { font-size: 15px; font-weight: 500; color: var(--ub-text-secondary); }
.stat .v { font: 500 22px/1.3 var(--ub-mono); font-variant-numeric: tabular-nums; }

/* cards, lists */
.card { background: var(--ub-surface); border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); padding: 20px; }
.card.nudge { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card.nudge form { margin: 0; flex-shrink: 0; }
.list { border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); overflow: hidden; }
.item { display: grid; grid-template-columns: 16px minmax(0, 1fr) 56px 180px 80px 220px; gap: 12px; align-items: center;
        padding: 12px 16px; border-top: 1px solid var(--ub-border); }
.item:first-child { border-top: 0; }
.item:hover { background: var(--ub-surface); }
.item .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .target { color: var(--ub-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.item .right { text-align: right; }
.item .state { white-space: nowrap; min-width: 0; overflow: hidden; }
.item .col-status { padding-left: 24px; }
.item.head-row { font-size: 15px; font-weight: 500; color: var(--ub-text-secondary); background: var(--ub-surface-muted); }
.item.head-row:hover { background: var(--ub-surface-muted); }
.empty { padding: 48px 16px; text-align: center; color: var(--ub-text-secondary); }
table.t { width: 100%; border-collapse: collapse; font-size: 16px; }
table.t th { text-align: left; font-size: 15px; font-weight: 500; color: var(--ub-text-secondary); padding: 8px 10px; border-bottom: 1px solid var(--ub-border); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--ub-border); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
.tablewrap { border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); overflow-x: auto; }

/* status */
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; background: var(--ub-status-unknown); flex: none; }
.dot.up { background: var(--ub-status-up); } .dot.down { background: var(--ub-status-down); }
.dot.warn { background: var(--ub-status-warn); } .dot.paused { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ub-status-paused); }
.dot.maint { background: var(--ub-status-paused); }
.dot.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ub-text-secondary); border-radius: 50%; }
.idle { width: 4px; height: 4px; border-radius: 50%; display: inline-block; background: var(--ub-text-secondary); opacity: .35; vertical-align: middle; }
table.rounds td, table.rounds th { white-space: nowrap; }
table.rounds .row { flex-wrap: nowrap; }
table.rounds th.cont { font-weight: 600; color: var(--ub-text); border-left: 1px solid var(--ub-border); }
table.rounds .edge { border-left: 1px solid var(--ub-border); }
table.rounds tr.confirm td { background: var(--ub-surface-muted); }
table.rounds .tag { font-family: var(--ub-font); font-size: 15px; color: var(--ub-text-secondary); }
.dot.big { width: 12px; height: 12px; border-radius: 3px; }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; }
.state.down { color: var(--ub-status-down); }
.chip { display: inline-block; font-size: 15px; font-weight: 500; padding: 1px 8px; border-radius: var(--ub-radius-sm);
        border: 1px solid var(--ub-border); color: var(--ub-text-secondary); }
.chip.kind { font-size: 14px; letter-spacing: .04em; padding: 0 6px; margin-right: 8px; vertical-align: 1px; }

/* buttons, forms */
.btn { display: inline-flex; align-items: center; gap: 6px; font: 500 16px/1 var(--ub-font); padding: 10px 16px; border-radius: var(--ub-radius-md);
       border: 1px solid var(--ub-btn-bg); background: var(--ub-btn-bg); color: var(--ub-btn-text); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; opacity: .88; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ub-text); border-color: var(--ub-border); }
.btn.ghost:hover { background: var(--ub-surface-muted); opacity: 1; }
.btn.small { padding: 6px 10px; font-size: 15px; }
.btn.link { background: none; border: 0; padding: 0; color: var(--ub-text-secondary); text-decoration: underline; }
form.inline { display: inline; }
.form { display: grid; gap: 20px; max-width: 640px; }
/* Forms, variant C (Alex, 27 Oct 2026): filled fields, segmented choices, switches for checkboxes */
.field label, .label { display: block; font-size: 16px; font-weight: 500; color: var(--ub-text); margin-bottom: 8px; }
.field .help { font-size: 15px; color: var(--ub-text-secondary); margin-top: 6px; }
.field .err, .errors { font-size: 15px; color: var(--ub-status-down); margin-top: 6px; }
.errors { border: 1px solid var(--ub-status-down); border-radius: var(--ub-radius-md); padding: 10px 14px; margin-bottom: 16px; }
input[type=text], input[type=search], input[type=url], input[type=email], input[type=number], input[type=password],
input[type=tel], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 52px; font: 400 16px/1.4 var(--ub-font); color: var(--ub-text); background: var(--ub-surface-muted);
  border: 1px solid transparent; border-radius: var(--ub-radius-md); padding: 13px 16px; }
textarea { min-height: 104px; }
input[type=search] { min-height: 44px; padding: 10px 14px; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238A8A96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input::placeholder, textarea::placeholder { color: var(--ub-text-secondary); opacity: .7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ub-text); background-color: var(--ub-surface); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
.form .btn:not(.small):not(.link) { min-height: 48px; padding: 0 22px; font-size: 16px; }
/* checkboxes are switches */
input[type=checkbox] { --track: var(--ub-border); --knob: #FFFFFF; appearance: none; -webkit-appearance: none; flex: none;
  width: 40px; height: 24px; margin: 0; border-radius: 12px; cursor: pointer; vertical-align: middle;
  background: radial-gradient(circle, var(--knob) 8.5px, transparent 9px) 0 0 / 24px 24px no-repeat, var(--track);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); transition: background-position .15s, background-color .15s; }
input[type=checkbox]:checked { --track: var(--ub-text); --knob: var(--ub-bg); background-position: 16px 0, 0 0; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--ub-text); outline-offset: 2px; }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .5; cursor: not-allowed; }
/* radios in lists: black and white, never the browser's blue */
input[type=radio] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; cursor: pointer;
  border-radius: 50%; border: 2px solid var(--ub-text-secondary); vertical-align: middle; }
input[type=radio]:checked { border-color: var(--ub-text); background: radial-gradient(circle, var(--ub-text) 4.5px, transparent 5px); }
.check, .field label.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 400;
  color: var(--ub-text); margin: 0; cursor: pointer; }
.check input[type=radio] { margin-top: 2px; }
/* two or three short choices: a segmented control */
.seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; padding: 4px;
  background: var(--ub-surface-muted); border-radius: var(--ub-radius-md); }
.seg label { margin: 0; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; text-align: center;
  border-radius: 8px; font-size: 16px; font-weight: 500; color: var(--ub-text-secondary); }
.seg label:hover span { color: var(--ub-text); }
.seg input:checked + span { background: var(--ub-btn-bg); color: var(--ub-btn-text); }
.seg input:focus-visible + span { outline: 2px solid var(--ub-text); outline-offset: 2px; }
/* fields shown or hidden together (e.g. the business details on the buy form) keep the form's spacing */
.form [data-business-only] { display: grid; gap: 20px; }
.form [data-business-only][hidden] { display: none; }
/* the buy form's price box while a new quote is on its way */
.card.pending [data-q=label], .card.pending [data-q=net], .card.pending [data-q=vat], .card.pending [data-q=total] { opacity: .35; transition: opacity .15s; }
/* several checkboxes */
.checks { display: grid; gap: 12px; }
.field > .check + .check, .field > label + .check { margin-top: 12px; }
/* longer choices (a title and a description): filled rows */
.choices { display: grid; gap: 8px; }
.choices label { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; cursor: pointer;
  background: var(--ub-surface-muted); border: 1px solid transparent; border-radius: var(--ub-radius-md);
  font-size: 16px; font-weight: 400; color: var(--ub-text); }
.choices label:has(input:checked) { border-color: var(--ub-text); background: var(--ub-surface); }
.choices input { margin-top: 2px; }
.choices small { display: block; font-size: 15px; color: var(--ub-text-secondary); margin-top: 2px; }
.choices.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
fieldset { border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; }
legend { font-size: 16px; font-weight: 600; padding: 0 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.secret { font-family: var(--ub-mono); font-size: 15px; background: var(--ub-surface-muted); border-radius: var(--ub-radius-sm); padding: 8px 10px; word-break: break-all; }
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li { border: 1px solid var(--ub-border); background: var(--ub-surface); border-radius: var(--ub-radius-md); padding: 10px 14px; margin-bottom: 8px; font-size: 16px; }
.messages li.error { border-color: var(--ub-status-down); }
.messages li { display: flex; align-items: flex-start; gap: 12px; }
.messages li > span { flex: 1; }
.messages .dismiss { flex: none; width: auto; background: none; border: 0; border-radius: 0; padding: 0 2px; margin: -2px -4px 0 0;
  color: var(--ub-text-secondary); font: 400 20px/1 var(--ub-font); cursor: pointer; }   /* not the full-width sign-in buttons */
.messages .dismiss:hover { color: var(--ub-text); }
/* good news stands out: a payment that went through, a saved change */
.messages li.success, .card.ok { border-color: var(--ub-status-up); background: color-mix(in srgb, var(--ub-status-up) 12%, var(--ub-surface)); }
.card.bad { border-color: var(--ub-status-down); background: color-mix(in srgb, var(--ub-status-down) 10%, var(--ub-surface)); }
.chart { width: 100%; height: 140px; display: block; }
.chart .line { fill: none; stroke: var(--ub-text); stroke-width: 1.5; }
.chart .area { fill: var(--ub-surface-muted); }
.chart .grid { stroke: var(--ub-border); stroke-width: 1; }
.chart text { font: 12px var(--ub-mono); fill: var(--ub-text-secondary); }
.bar { display: flex; gap: 2px; height: 28px; align-items: stretch; }
.bar span { flex: 1; border-radius: 2px; background: var(--ub-surface-muted); }
.bar span.up { background: var(--ub-status-up); } .bar span.down { background: var(--ub-status-down); }
.bar span.warn { background: var(--ub-status-warn); }
.bar span.blip { position: relative; }
.bar span.blip::after, .blip-key { content: ''; position: absolute; top: -6px; left: 50%; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--ub-status-warn); box-shadow: 0 0 0 1.5px var(--ub-bg); }
.blip-key { position: static; display: inline-block; margin: 0 4px 1px 0; vertical-align: middle; }
.bar { margin-top: 6px; }
tr:target td { background: var(--ub-surface-muted); }
.bar.mini { height: 18px; gap: 2px; }
table.ops td, table.ops th { white-space: nowrap; }
table.t .r { text-align: right; }
table.ops td.bad, .bad { color: var(--ub-status-down); }
table.ops td.warn { color: var(--ub-status-warn); }
.stat .v.warnv { color: var(--ub-status-warn); }
.rm.down { color: var(--ub-status-down); } .rm.warn { color: var(--ub-status-warn); } .rm.up { color: var(--ub-status-up); }
.bar.mini span { border-radius: 1px; }
.bar-pct { display: block; text-align: right; margin-top: 2px; font-size: 14px; }

@media (max-width: 720px) {
  .top-inner { flex-wrap: wrap; gap: 12px 20px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .item { grid-template-columns: 16px minmax(0, 1fr) 80px; }
  .item .hide-sm, .hide-sm { display: none; }
  .item.pick { grid-template-columns: 18px 16px minmax(0, 1fr) 90px 28px; }
  #monitor-list .item.head-row { display: none; }
  .groupby { margin-left: 0; }
  .two { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
}

/* sign in / sign up (allauth's plain markup) */
.auth main { max-width: 440px; padding-top: 56px; }
.auth main form p { margin: 0 0 18px; }
.auth main form p label { display: block; font-size: 15px; font-weight: 500; color: var(--ub-text); margin-bottom: 8px; }
.auth main form p input[type=checkbox] + label { display: inline; margin: 0 0 0 10px; font-size: 16px; font-weight: 400; vertical-align: middle; }
.auth main form p span { display: block; font-size: 15px; color: var(--ub-text-secondary); margin-top: 4px; }
.auth main button, .auth main a[href][type] { font: 500 16px/1 var(--ub-font); padding: 16px 22px; border-radius: var(--ub-radius-md);
  border: 1px solid var(--ub-btn-bg); background: var(--ub-btn-bg); color: var(--ub-btn-text); cursor: pointer; width: 100%; margin-top: 4px; }
.auth main ul.errorlist { list-style: none; padding: 0; margin: 0 0 8px; color: var(--ub-status-down); font-size: 15px; }
.auth main p a, .auth main a { text-decoration: underline; }
.auth main hr { border: 0; border-top: 1px solid var(--ub-border); margin: 24px 0; }
/* our sign-in / sign-up pages (account/login.html, signup.html): providers, "or", the form */
.auth main .entrance { padding-top: 24px; }
.entrance h1 { font-size: 32px; margin: 0 0 8px; }
.entrance .lead { color: var(--ub-text-secondary); margin: 0 0 28px; }
.entrance .oauth { display: grid; gap: 10px; }
.auth main .entrance .passkey-btn { margin-bottom: 10px; }
.entrance .oauth form { margin: 0; }
.auth main .entrance .oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0;
  padding: 13px 16px; font: 500 16px/1 var(--ub-font); background: transparent; color: var(--ub-text); border: 1px solid var(--ub-border); }
.auth main .entrance .oauth-btn:hover { background: var(--ub-surface); opacity: 1; }
.entrance .or { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--ub-text-secondary); font-size: 15px; }
.entrance .or::before, .entrance .or::after { content: ''; flex: 1; height: 1px; background: var(--ub-border); }
.entrance .field { margin-bottom: 18px; }
.auth main .entrance .btn.block { justify-content: center; padding: 14px 22px; }
.entrance .labelrow { display: flex; align-items: baseline; justify-content: space-between; }
.entrance .labelrow a { color: var(--ub-text-secondary); }
.entrance .check { margin: 0 0 20px; font-size: 16px; }
.entrance .errors p { margin: 0 0 12px; }
.entrance .fine { font-size: 14px; color: var(--ub-text-secondary); margin: 16px 0 0; line-height: 1.5; }
.entrance .fine a, .entrance .lead a { color: var(--ub-text); }
/* allauth's TOTP QR code is a transparent SVG: give it a light, quiet-zone background so phones can scan it in dark mode */
.auth main img[src^="data:image/svg+xml"] { background: #fff; padding: 12px; border-radius: 8px; width: 200px; height: auto; display: block; margin: 8px 0 16px; }

/* ── app shell (layout B, 27 Oct 2026): top bar = logo cell · section tabs · account; sidebar; full-width content ── */
.app .top { display: flex; align-items: stretch; min-height: 60px; border-bottom: 1px solid var(--ub-border); }
.app .brandcell { flex: 0 0 240px; display: flex; align-items: center; gap: 10px; padding: 0 24px;
                  border-right: 1px solid var(--ub-border); min-width: 0; }
.app .menu { display: none; background: none; border: 0; color: var(--ub-text); padding: 10px; margin-left: -10px;
             cursor: pointer; border-radius: var(--ub-radius-sm); }
.app .tabs { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 8px; padding: 0 24px; overflow-x: auto;
             scrollbar-width: none; font-size: 15px; font-weight: 500; }
.app .tabs::-webkit-scrollbar { display: none; }
.app .tabs a { display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--ub-text-secondary); white-space: nowrap; }
.app .tabs a:hover { color: var(--ub-text); text-decoration: none; }
.app .tabs a.on { color: var(--ub-text); box-shadow: inset 0 -2px 0 var(--ub-text); }
.app .tabs .n, .side .n { font-size: 14px; color: var(--ub-text-secondary); }
.app .tabs .chip { font-size: 14px; padding: 0 7px; }
.app .who { display: flex; align-items: center; gap: 16px; padding: 0 24px; border-left: 1px solid var(--ub-border);
            font-size: 15px; color: var(--ub-text-secondary); white-space: nowrap; }
.app .who select { width: auto; min-width: 160px; min-height: 40px; font-size: 15px; background: var(--ub-surface); }
.shell { display: flex; align-items: stretch; min-height: calc(100vh - 61px); }
.side { flex: 0 0 240px; border-right: 1px solid var(--ub-border); padding: 20px 12px; position: relative; z-index: 10; }
.side nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; min-height: calc(100vh - 101px); }
.side a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
          border-radius: var(--ub-radius-sm); color: var(--ub-text-secondary); font: 400 16px/1.2 var(--ub-font); }
.side .ic { flex: none; }
/* theme: auto / light / dark (cookie ub_theme, read by base.html so the page never flashes the wrong theme) */
.side .theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  background: var(--ub-surface-muted); border-radius: var(--ub-radius-md); }
.side .theme button { display: flex; align-items: center; justify-content: center; height: 32px; border: 0; border-radius: 7px;
  background: none; color: var(--ub-text-secondary); cursor: pointer; }
.side .theme button:hover { color: var(--ub-text); }
.side .theme button[aria-pressed="true"] { background: var(--ub-btn-bg); color: var(--ub-btn-text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.side .label { display: inline; font: inherit; color: inherit; margin: 0; }   /* not the form .label */
.side .n { margin-left: auto; }
/* collapse: a round button on the corner where the top bar's line meets the sidebar's */
.side .edge { position: absolute; top: -16px; right: -16px; z-index: 5; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--ub-border); background: var(--ub-bg); color: var(--ub-text-secondary); cursor: pointer; padding: 0; }
.side .edge:hover { color: var(--ub-text); border-color: var(--ub-text-secondary); }
/* the user: avatar at the bottom of the sidebar, its menu opens upwards */
.usermenu { margin-top: auto; position: relative; padding-top: 8px; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px;
  border-radius: var(--ub-radius-sm); cursor: pointer; color: var(--ub-text); }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover, .usermenu[open] > summary { background: var(--ub-surface); }
.usermenu .avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ub-text); color: var(--ub-bg); font: 600 14px/1 var(--ub-font); letter-spacing: .02em; }
.usermenu summary .label { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.usermenu .uname, .usermenu .uacct { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usermenu .uname { font-size: 15px; font-weight: 500; }
.usermenu .uacct { font-size: 14px; color: var(--ub-text-secondary); }
.usermenu .chev { margin-left: auto; color: var(--ub-text-secondary); }
.usermenu[open] .chev { transform: rotate(180deg); }
.usermenu .pop { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 40; width: 100%; min-width: 230px; padding: 6px;
  background: var(--ub-bg); border: 1px solid var(--ub-border); border-radius: var(--ub-radius-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.usermenu .uhead { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; overflow-wrap: anywhere; }
.side .usermenu .pop a { min-height: 36px; padding: 0 10px; font-size: 15px; justify-content: flex-start; }
.usermenu .sep { height: 1px; background: var(--ub-border); margin: 6px 4px; }
.usermenu .theme { margin: 0 4px; }
.app .logo .glyph { display: none; }
.app .logo .glyph svg { display: block; }
.app .logo .wordmark svg { display: block; height: 24px; width: auto; }   /* the file says 21; a touch bigger in the app (Alex) */
/* collapsed sidebar (desktop): icons only, the brand glyph instead of the wordmark */
@media (min-width: 901px) {
  .side-collapsed .brandcell { flex-basis: 72px; padding: 0; justify-content: center; }
  .side-collapsed .logo .wordmark { display: none; }
  .side-collapsed .logo .glyph { display: block; }
  .side-collapsed .logo.brand img { max-width: 48px; }
  .side-collapsed .side { flex-basis: 72px; padding: 20px 10px; }
  .side-collapsed .side a { justify-content: center; padding: 0; }
  .side-collapsed .usermenu > summary { justify-content: center; padding: 6px 0; }
  .side-collapsed .usermenu .chev { display: none; }
  .side-collapsed .side .label, .side-collapsed .side .n { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .side-collapsed .side hr { margin: 14px 6px; }
}
.side a:hover { color: var(--ub-text); text-decoration: none; background: var(--ub-surface); }
.side a.on { background: var(--ub-surface-muted); color: var(--ub-text); }
.side hr { border: 0; height: 1px; background: var(--ub-border); margin: 14px 12px; }
.app main.content { flex: 1; min-width: 0; max-width: none; margin: 0; padding: 0 32px 64px; }
.app main.content > .head { margin: 0 -32px 24px; padding: 20px 32px; border-bottom: 1px solid var(--ub-border);
                            align-items: center; }
.app main.content > .head h1 { font-size: 26px; margin: 0; }
.app main.content > .head .sub { max-width: 720px; }
/* Fixed places (Alex, 6 Nov 2026): the page title, then .notices (what needs you, most urgent first: paused or out of
   credits, no alert channel, security, the result of what you just did), then the page's own work, then tips at the
   end. Pages write their title first in the template; flex order puts the notices right under it. */
.app main.content { display: flex; flex-direction: column; }
.app main.content > .head { order: -2; }
.app main.content > .notices { order: -1; max-width: 960px; margin: 0 0 16px; }
.app main.content > .notices:not(:has(*)) { display: none; }
.app main.content > .notices > .banner, .app main.content > .notices > .messages, .app main.content > .notices > .card { margin: 0 0 8px; }
.app main.content > .notices > .messages li:last-child { margin-bottom: 0; }
.app main.content > p, .app main.content > .card, .app main.content > form:not(.wide):not(.form), .app main.content > fieldset { max-width: 960px; }
.app main.content .list.flush { margin: 0 -32px; border: 0; border-radius: 0; border-bottom: 1px solid var(--ub-border); }
.app main.content .list.flush .item { padding-left: 32px; padding-right: 32px; }
.app main.content .list.flush .item:first-child { border-top: 0; }
/* dashboard: selectable rows and the bulk bar */
.item.pick { grid-template-columns: 18px 16px minmax(0, 1fr) 56px 190px 130px 170px 28px; }
/* picking rows (dashboard, import): a small square box, not the settings switch */
input[type=checkbox].tick { width: 18px; height: 18px; border-radius: 5px; background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ub-text-secondary); transition: background-color .1s, box-shadow .1s; }
input[type=checkbox].tick:hover { box-shadow: inset 0 0 0 1.5px var(--ub-text); }
input[type=checkbox].tick:checked { background: var(--ub-text) no-repeat center / 12px 12px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.5 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: none; }
:root[data-theme=dark] input[type=checkbox].tick:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.5 3.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) input[type=checkbox].tick:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.5 3.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.item .rowlink { display: contents; color: inherit; text-decoration: none; }
.bulkbar { position: sticky; bottom: 16px; z-index: 20; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
           margin: 16px 0 0; padding: 10px 14px; max-width: 960px; background: var(--ub-surface);
           border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.bulkbar[hidden] { display: none; }
.bulkbar [data-bulk-count] { font-weight: 500; margin-right: 8px; }
/* dashboard: the four figures beside the title (status colours only for status) */
.app main.content > .head .kpis { display: flex; gap: 0; margin-left: auto; align-self: center; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 2px 18px; border-left: 1px solid var(--ub-border);
       color: inherit; text-decoration: none; white-space: nowrap; }
.kpi:first-child { border-left: 0; }
.kpi .k { font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ub-text-secondary); }
.kpi .v { font-size: 17px; font-weight: 600; line-height: 1.4; }
.kpi .v.mono { font-family: var(--ub-mono); font-weight: 500; }
.kpi .v.state { gap: 6px; }
a.kpi:hover .k { color: var(--ub-text); }
/* dashboard: summary cards (status colours only for status) */
.stats.cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.stats.cards .stat { padding: 16px 18px; }
.stats.cards .k { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.stats.cards .v { font-size: 26px; margin: 4px 0 2px; }
.stats.cards .v.state { font: 600 20px/1.6 var(--ub-font); }
.stat .v.downv, .downt { color: var(--ub-status-down); } .warnt { color: var(--ub-status-warn); }
/* monitor page: Check now */
.checknow { margin-bottom: 16px; }
.checknow .cn-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.checknow .cn-sum { margin-left: auto; }
.checknow .cn-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; }
.checknow .cn-rows li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.checknow .cn-where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checknow .cn-rows .mono { margin-left: auto; white-space: nowrap; }
.checknow .cn-why { flex-basis: 100%; padding-left: 16px; margin-top: -2px; }
.checknow .cn-why:empty { display: none; }
.checknow .cn-rows li { flex-wrap: wrap; }
/* dashboard: filter chips and "group by" */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 15px;
         font-weight: 500; border: 1px solid var(--ub-border); color: var(--ub-text); text-decoration: none; white-space: nowrap; }
.fchip:hover { background: var(--ub-surface-muted); }
.fchip .n { color: var(--ub-text-secondary); font-family: var(--ub-mono); font-size: 14px; }
.fchip.on { background: var(--ub-text); border-color: var(--ub-text); color: var(--ub-bg); }
.fchip.on .n { color: inherit; opacity: .7; }
.groupby { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.groupby .fchip { padding: 4px 10px; }
/* dashboard rows: note under the bars, response bar, status pill, row menu */
.bar-note { display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resp { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.resp-top { display: inline-flex; align-items: center; gap: 8px; }
.chip.slow { color: var(--ub-status-warn); border-color: currentColor; font-size: 14px; padding: 0 7px; }
.load { display: block; width: 100%; max-width: 110px; height: 4px; border-radius: 2px; background: var(--ub-surface-muted); overflow: hidden; }
.load span { display: block; height: 100%; background: var(--ub-text-secondary); border-radius: 2px; }
.load.over span { background: var(--ub-status-warn); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 15px; font-weight: 500;
        border: 1px solid var(--ub-border); color: var(--ub-text-secondary); white-space: nowrap; }
.pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill.up { color: var(--ub-status-up); border-color: color-mix(in srgb, var(--ub-status-up) 45%, transparent); }
.pill.down { color: var(--ub-status-down); border-color: color-mix(in srgb, var(--ub-status-down) 45%, transparent); }
.pill.warn, .pill.maint { color: var(--ub-status-warn); border-color: color-mix(in srgb, var(--ub-status-warn) 45%, transparent); }
.col-status .since { display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowmenu { position: relative; justify-self: end; }
.rowmenu > summary { list-style: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--ub-radius-sm);
                     cursor: pointer; color: var(--ub-text-secondary); }
.rowmenu > summary::-webkit-details-marker { display: none; }
.rowmenu > summary:hover, .rowmenu[open] > summary { background: var(--ub-surface-muted); color: var(--ub-text); }
.rowmenu > summary svg { width: 16px; height: 16px; fill: currentColor; }
.rowmenu .pop { position: absolute; right: 0; top: 32px; z-index: 30; min-width: 170px; padding: 6px; background: var(--ub-bg);
                 border: 1px solid var(--ub-border); border-radius: var(--ub-radius-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.rowmenu .pop form { margin: 0; }
.rowmenu .pop a, .rowmenu .pop button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none;
                                         font: 500 15px/1.3 var(--ub-font); color: var(--ub-text); border-radius: var(--ub-radius-sm);
                                         cursor: pointer; text-decoration: none; }
.rowmenu .pop a:hover, .rowmenu .pop button:hover { background: var(--ub-surface-muted); }
/* dashboard: filter bar and collapsible groups */
.filters { margin: 0 0 16px; }
.filters .frow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters input[type=search] { min-height: 36px; padding: 6px 12px; font-size: 16px; width: 240px; max-width: 100%; }
.filters select { width: auto; max-width: 180px; min-height: 36px; padding: 6px 34px 6px 12px; font-size: 15px;
                  border-radius: 999px; background-position: right 10px center; background-size: 16px; }
@media (min-width: 1180px) {
  .filters .frow { flex-wrap: nowrap; }
  .filters input[type=search] { flex: 1 1 240px; width: auto; min-width: 140px; max-width: 280px; }
  .filters select, .filters .btn.link, .groupby { flex-shrink: 0; }
}
@media (max-width: 720px) { .filters input[type=search] { width: 100%; } }
details.mgroup { margin: 0 -32px; border-bottom: 1px solid var(--ub-border); }
details.mgroup > summary { display: flex; align-items: center; gap: 12px; padding: 12px 32px; cursor: pointer; list-style: none;
                           background: var(--ub-surface-muted); font-weight: 500; }
details.mgroup > summary::-webkit-details-marker { display: none; }
details.mgroup > summary::before { content: '▸'; display: inline-block; width: 10px; color: var(--ub-text-secondary);
                                   transition: transform .15s; }
details.mgroup[open] > summary::before { transform: rotate(90deg); }
details.mgroup > summary .ginitial { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--ub-radius-sm);
                                     border: 1px solid var(--ub-border); font: 600 13px/1 var(--ub-font); color: var(--ub-text-secondary); }
.app main.content details.mgroup > .list.flush { margin: 0; border-bottom: 0; }
.app main.content .list.flush { overflow: visible; }          /* the row menus open past the list */

@media (max-width: 900px) {
  .app .top { flex-wrap: wrap; }
  .app .brandcell { flex: 1 1 auto; border-right: 0; padding: 0 16px; min-height: 56px; }
  .app .menu { display: inline-flex; }
  .app .who { border-left: 0; padding: 0 16px; gap: 12px; }
  .app .who select { min-width: 0; max-width: 46vw; }
  .app .tabs { order: 3; flex-basis: 100%; border-top: 1px solid var(--ub-border); min-height: 48px; padding: 0 12px; }
  .shell { display: block; }
  .side .edge { display: none; }
  .side { display: none; position: fixed; z-index: 50; inset: 0 auto 0 0; width: 264px; background: var(--ub-bg);
          overflow-y: auto; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
  body.menu-open .side { display: block; }
  .app main.content { padding: 0 16px 48px; }
  .app main.content > .head { margin: 0 -16px 20px; padding: 16px; }
  .app main.content > .list.flush { margin: 0 -16px; }
  .app main.content > .list.flush .item { padding-left: 16px; padding-right: 16px; }
  .app main.content details.mgroup, .app main.content #monitor-list > .list.flush { margin: 0 -16px; }
  .app main.content > .head .kpis { order: 3; flex-basis: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr;
                                    gap: 10px 0; }
  .kpi { padding: 2px 12px 2px 0; border-left: 0; }
  .stats.cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats.cards .stat { padding: 12px 14px; }
  .stats.cards .v { font-size: 20px; }
  .stats.cards .v.state { font-size: 16px; }
  .app main.content details.mgroup > summary, .app main.content details.mgroup .list.flush .item { padding-left: 16px; padding-right: 16px; }
}

/* support tickets: the thread */
.thread { display: grid; gap: 12px; max-width: 760px; margin: 0 0 24px; }
.thread .msg .body { margin-top: 8px; white-space: normal; overflow-wrap: anywhere; }
.thread .msg.staff { border-color: var(--ub-text-secondary); }
.msg .body.md > :first-child { margin-top: 0; }
.msg .body.md > :last-child { margin-bottom: 0; }
.msg .body.md p, .msg .body.md ol, .msg .body.md ul, .msg .body.md pre, .msg .body.md blockquote { margin: 0 0 10px; }
.msg .body.md ol, .msg .body.md ul { padding-left: 22px; }
.msg .body.md code { font-family: var(--ub-mono, ui-monospace, Menlo, monospace); font-size: .92em; background: var(--ub-surface-2, rgba(127,127,127,.12)); border-radius: 4px; padding: 1px 4px; }
.msg .body.md pre { padding: 10px 12px; background: var(--ub-surface-2, rgba(127,127,127,.12)); border-radius: 6px; overflow-x: auto; }
.msg .body.md pre code { background: none; padding: 0; }
.msg .body.md a { text-decoration: underline; }

/* desktop: the main pane at 90%, header and sidebar at 95% (Alex picked it from a ?test trial, 2026-10-30) */
@media (min-width: 901px) {
  .app main.content { zoom: .9; }
  .app > .top, .app .side { zoom: .95; }
  .app .side { min-width: 0; }   /* else the user menu's text widens it past the logo cell above */
}

/* AI incident explanations (monitors.explain) under their incident row */
tr.explain td { border-top: 0; padding-top: 0; }
.ai { max-width: 760px; padding: 10px 14px; border-left: 3px solid var(--ub-border); background: var(--ub-surface); border-radius: var(--ub-radius-sm); font-size: 15px; }
.ai p { margin: 6px 0 0; }
.ai ol { margin: 6px 0 0; padding-left: 20px; }

/* Monitors → quick add: one line, like updown.io; free text is read by AI into drafts (quick_preview.html) */
.quickadd { display: flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--ub-brand) 6%, var(--ub-bg));
  border: 1px solid color-mix(in srgb, var(--ub-brand) 28%, var(--ub-border));
  border-radius: var(--ub-radius-lg); padding: 8px 8px 8px 14px; margin: 0 0 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.quickadd .qa-plus { font-size: 20px; line-height: 1; color: var(--ub-text-secondary); }
.quickadd input, .quickadd select { min-height: 38px; font-size: 16px; border: 0; background: transparent; padding: 6px 8px; }
.quickadd input:focus, .quickadd select:focus { outline: none; background: color-mix(in srgb, var(--ub-brand) 10%, var(--ub-bg));
  border-radius: var(--ub-radius-sm); }
.quickadd .qa-opt, .quickadd select { border-left-color: color-mix(in srgb, var(--ub-brand) 22%, var(--ub-border)); }
.quickadd .qa-q { flex: 1 1 auto; min-width: 0; }
.quickadd .qa-opt { flex: 0 1 170px; min-width: 0; border-left: 1px solid var(--ub-border); border-radius: 0; }
.quickadd select { width: auto; flex: 0 0 auto; border-left: 1px solid var(--ub-border); border-radius: 0; padding-right: 30px; }
.qa-hint { margin: 0 0 16px 14px; }
.quickwrap { margin: 0 0 6px; }
.quickadd .qa-close { border: 0; background: none; color: var(--ub-text-secondary); font-size: 20px; line-height: 1; padding: 4px 6px;
  cursor: pointer; border-radius: var(--ub-radius-sm); }
.quickadd .qa-close:hover { background: var(--ub-surface); color: var(--ub-text); }
.newmenu > summary.addbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--ub-brand); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.newmenu > summary.addbtn:hover, .newmenu[open] > summary.addbtn { background: var(--ub-brand); color: #fff; filter: brightness(1.1); }
.newmenu > summary.addbtn:focus-visible { outline: 2px solid var(--ub-brand); outline-offset: 2px; }
.newmenu > summary.addbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.newmenu .pop { top: calc(100% + 8px); min-width: 330px; padding: 8px; }
.newmenu .pop a, .newmenu .pop button { padding: 12px 14px; }
.newmenu .pop strong { display: block; font-size: 17px; font-weight: 600; }
.newmenu .pop span { display: block; font-size: 16px; line-height: 1.4; color: var(--ub-text-secondary); margin-top: 3px; }
.quickadd + .filters, .quickadd + .qa-hint + .filters { margin-top: 10px; }
.qa-table input[name^="name-"] { min-width: 160px; width: 100%; min-height: 34px; padding: 4px 10px; font: inherit; font-size: 16px;
  color: inherit; background: var(--ub-bg); border: 1px solid var(--ub-border); border-radius: var(--ub-radius-sm); }
.qa-table select { width: auto; min-height: 34px; font-size: 15px; }
.qa-table .qa-target { word-break: break-all; }
.qa-table .err { color: var(--ub-status-down); margin-top: 4px; }
@media (max-width: 760px) {
  .quickadd { flex-wrap: wrap; padding: 8px; }
  .quickadd .qa-q { flex-basis: calc(100% - 30px); }
  .quickadd .qa-opt, .quickadd select { flex: 1 1 40%; border-left: 0; border-top: 1px solid var(--ub-border); }
  .quickadd .btn { flex: 1 1 100%; }
}

/* reselling: what you get, the setup checklist, Add a customer (mockups approved 30 Oct 2026) */
.gets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 960px; margin-bottom: 16px; }
.gets .card p { margin: 0; font-size: 15px; }
.setup { max-width: 960px; margin-bottom: 24px; }
.setup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.setup-head h2 { margin: 0; }
.progress { height: 6px; border-radius: 3px; background: var(--ub-surface-muted); margin: 10px 0 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ub-brand); border-radius: 3px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--ub-border); }
.steps li:first-child { border-top: 0; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--ub-font);
  border: 1.5px solid var(--ub-border); color: var(--ub-text-secondary); }
.steps li.done .n { background: var(--ub-brand); border-color: var(--ub-brand); color: #fff; }
.steps li.locked { opacity: .7; }
.steps .body strong { display: block; }
.steps .body .small { display: block; font-size: 15px; }
.steps .act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-self: center; }
.setup-done { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 960px; margin-bottom: 16px; }
.setup-done a { text-decoration: underline; }
.customers-row { grid-template-columns: 16px minmax(0, 1fr) 110px 110px 110px 90px; }
.customers-row.with-usage { grid-template-columns: 16px minmax(0, 1fr) 90px 70px 110px 130px 80px; }
@media (max-width: 720px) {
  .steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .steps .act { grid-column: 2; justify-content: flex-start; }
  .customers-row, .customers-row.with-usage { grid-template-columns: 16px minmax(0, 1fr) 70px 80px; }
  .customers-row > :nth-child(4), .customers-row > :nth-child(5) { display: none; }
  .customers-row.with-usage > :nth-child(3) { display: none; }
}
dialog.modal { border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); background: var(--ub-bg); color: var(--ub-text);
  padding: 24px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
dialog.modal::backdrop { background: rgba(14, 14, 18, .45); }
dialog.modal .form { max-width: none; }
dialog.modal.confirm { width: min(440px, calc(100vw - 32px)); padding: 24px 24px 20px; }
dialog.modal.confirm h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
dialog.modal.confirm p { margin: 0; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn.danger { background: var(--ub-status-down); border-color: var(--ub-status-down); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--ub-status-down) 88%, #000); border-color: color-mix(in srgb, var(--ub-status-down) 88%, #000); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; }
.modal-head .x { background: none; border: 0; font: 400 24px/1 var(--ub-font); color: var(--ub-text-secondary); cursor: pointer; padding: 0 4px; }
.modal-head .x:hover { color: var(--ub-text); }
/* a reseller's brand: the reseller fields stand apart, a live preview of the alert email beside them */
.brand-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; max-width: 1180px; }
.brand-wrap > .form { max-width: none; }
.brand-wrap .preview { position: sticky; top: 16px; }
fieldset.reseller { border-color: color-mix(in srgb, var(--ub-brand) 35%, var(--ub-border)); background: color-mix(in srgb, var(--ub-brand) 4%, var(--ub-bg)); }
fieldset.reseller legend { color: var(--ub-brand); }
fieldset .lead { margin: -4px 0 0; font-size: 15px; color: var(--ub-text-secondary); }
.mail { border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); overflow: hidden; background: var(--ub-bg); font-size: 15px; }
.mail .hdrs { padding: 12px 14px; background: var(--ub-surface-muted); display: grid; gap: 4px; }
.mail .hdrs div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
.mail .hdrs span:first-child { color: var(--ub-text-secondary); }
.mail .bar { padding: 12px 16px; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mail .bar img { max-height: 28px; max-width: 160px; }
.mail .msg { padding: 16px; background: #fff; color: #15171c; }
.mail .msg p { margin: 0 0 10px; }
.mail .msg .cta { display: inline-block; background: #15171c; color: #fff; padding: 8px 14px; border-radius: 8px; }
.mail .foot { padding: 10px 16px 14px; background: #fff; color: #5d6370; font-size: 14px; border-top: 1px solid #e5e7eb; }
.lockline { font-size: 15px; color: var(--ub-text-secondary); }
.lockline a { text-decoration: underline; }
/* a reseller's customer with nothing monitored yet: the next steps */
.next-steps { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 20px; }
.next-steps .qa-opt, .next-steps .qa-close { display: none; }
@media (max-width: 900px) { .next-steps { grid-template-columns: 1fr; } }
.next-steps .card h3 { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.next-steps .card h3 .n { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ub-brand); color: #fff; font-size: 14px; }
.next-steps .card p { font-size: 15px; }
.accept-box { border: 1px solid var(--ub-border); border-radius: var(--ub-radius-md); padding: 12px 14px; background: var(--ub-surface-muted); font-size: 15px; }
.accept-box ul { margin: 6px 0; padding-left: 18px; }
.accept-box a { text-decoration: underline; }
@media (max-width: 960px) { .brand-wrap { grid-template-columns: 1fr; } .brand-wrap .preview { position: static; } }
/* a reseller's Overview and its lists across customers (panel.across) */
.stats.tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats.tiles a.stat { color: inherit; text-decoration: none; }
.stats.tiles a.stat:hover { border-color: var(--ub-text-secondary); }
.stats.tiles .stat .small { font-size: 15px; }
.overview-row { grid-template-columns: 16px minmax(0, 1fr) 90px 70px 110px 130px 110px; }
.across-row { grid-template-columns: 16px minmax(0, 1.4fr) minmax(0, 1fr) 110px 110px 80px; }
@media (max-width: 720px) {
  .overview-row { grid-template-columns: 16px minmax(0, 1fr) 60px 50px 90px; }
  .overview-row > :nth-child(5), .overview-row > :nth-child(6) { display: none; }
  .across-row { grid-template-columns: 16px minmax(0, 1fr) 80px; }
  .across-row > :nth-child(3), .across-row > :nth-child(4), .across-row > :nth-child(5) { display: none; }
}
.note-icon { display: inline-flex; vertical-align: -2px; color: var(--ub-text-secondary); }
.card.notes { white-space: normal; overflow-wrap: anywhere; }

/* Speed by city (monitor page): one bar per city, its parts side by side */
.spd { display: flex; height: 10px; min-width: 4px; border-radius: 3px; overflow: hidden; background: var(--ub-surface-muted); }
.spd > span { display: block; height: 100%; }
.spd .p-network, .spd-dot.p-network { background: color-mix(in srgb, var(--ub-brand) 30%, var(--ub-surface)); }
.spd .p-setup, .spd-dot.p-setup { background: color-mix(in srgb, var(--ub-brand) 60%, var(--ub-surface)); }
.spd .p-server, .spd-dot.p-server { background: var(--ub-brand); }
.spd .p-rest, .spd-dot.p-rest { background: color-mix(in srgb, var(--ub-text-secondary) 40%, var(--ub-surface)); }
.spd .total { background: var(--ub-text-secondary); }
.spd-key { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; }
.spd-key .spd-k { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.spd-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 2px; }
.speed-cities td { vertical-align: middle; }
.speed-cities tr.muted .spd, .speed-cities tr.muted .mono { opacity: .5; }

/* a brand's logo at the top of the panel (panel/_brand_logo.html) */
.logo.brand img { display: block; max-height: 32px; max-width: 180px; }
.logo.brand .brand-dark { display: none; }
:root[data-theme="dark"] .logo.brand.has-dark .brand-light { display: none; }
:root[data-theme="dark"] .logo.brand.has-dark .brand-dark { display: block; }
:root[data-theme="dark"] .logo.brand:not(.has-dark) .brand-light { background: #fff; padding: 4px 8px; border-radius: 6px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo.brand.has-dark .brand-light { display: none; }
  :root:not([data-theme="light"]) .logo.brand.has-dark .brand-dark { display: block; }
  :root:not([data-theme="light"]) .logo.brand:not(.has-dark) .brand-light { background: #fff; padding: 4px 8px; border-radius: 6px; }
}

/* the integration page's Sync now: always at hand, bottom right */
.sync-fab { position: fixed; right: 24px; bottom: 24px; z-index: 50; margin: 0; }
.sync-fab .btn { box-shadow: 0 6px 20px rgba(14, 14, 18, .18); padding: 12px 20px; }
@media (max-width: 640px) { .sync-fab { right: 16px; bottom: 16px; } }

/* monitor add/edit: five section cards and a guide rail that stays in view (Alex, 4 Nov 2026) */
.form.mf { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "main rail";
           gap: 24px; align-items: start; }
.mf-main { grid-area: main; display: grid; gap: 20px; min-width: 0; }
.mf-sec { display: grid; gap: 16px; scroll-margin-top: 16px; }
.mf-sec[hidden] { display: none; }
.mf-sec { border-width: 1px; transition: border-color .15s, box-shadow .15s; }
.mf-sec h2 { margin: 0 0 2px; font-size: 22px; display: flex; align-items: center; gap: 12px; padding-bottom: 14px;
             border-bottom: 1px solid var(--ub-border); }
.mf-sec h2 .mf-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
                     font-size: 14px; border: 1px solid var(--ub-border); color: var(--ub-text-secondary); }
.mf-sec.on { border-color: var(--ub-brand); box-shadow: 0 0 0 1px var(--ub-brand); }
.mf-sec.on h2 .mf-num { background: var(--ub-brand); border-color: var(--ub-brand); color: #fff; }
.mf-sub { display: grid; gap: 14px; }
.mf-sub[hidden] { display: none; }
.mf-rail { grid-area: rail; position: sticky; top: 16px; display: grid; gap: 14px; background: var(--ub-surface);
           border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); padding: 14px; }
.mf-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mf-rail li[hidden] { display: none; }
.mf-rail a { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.mf-rail a:hover { background: var(--ub-surface-muted); }
.mf-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
          border: 1px solid var(--ub-border); color: var(--ub-text-secondary); }
.mf-rail li.done .mf-dot { background: var(--ub-status-up); border-color: var(--ub-status-up); color: #fff; font-size: 0; }
.mf-rail li.done .mf-dot::after { content: "✓"; font-size: 12px; }
.mf-rail li.on .mf-dot { background: var(--ub-brand); border-color: var(--ub-brand); color: #fff; }
.mf-rail li.on .mf-dot::after { content: none; }
.mf-rail li.on.done .mf-dot { font-size: 0; }
.mf-rail li.on.done .mf-dot::after { content: "✓"; font-size: 12px; }
.mf-rail li.on a { background: var(--ub-surface-muted); }
.mf-txt { display: grid; gap: 2px; min-width: 0; }
.mf-name { font-weight: 600; font-size: 14px; }
.mf-txt small { color: var(--ub-text-secondary); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.mf-foot { display: grid; gap: 8px; border-top: 1px solid var(--ub-border); padding-top: 12px; }
.mf-cost { font-size: 13px; line-height: 1.45; }
.mf-cost .mono { font-weight: 600; }
.mf-foot .btn { width: 100%; justify-content: center; }
.mf-dirty { color: var(--ub-status-warn); min-height: 1em; }
@media (max-width: 900px) {
  .form.mf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "main"; }
  .mf-rail { position: sticky; top: 0; z-index: 25; padding: 8px; margin: 0 -4px; border-radius: 0 0 var(--ub-radius-lg) var(--ub-radius-lg);
             background: var(--ub-bg); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
  .mf-rail ol { display: flex; gap: 6px; overflow-x: auto; }
  .mf-rail a { padding: 6px 10px 6px 6px; border: 1px solid var(--ub-border); border-radius: 999px; align-items: center; white-space: nowrap; }
  .mf-txt small, .mf-foot { display: none; }
}

/* an option's info icon: the longer explanation on hover, focus or tap. Not li: messages.info() renders <li class="info">
   in .messages, which took this icon's 18 px circle and italic serif (Alex, 6 Nov 2026) */
.info:not(li) { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 0 0 6px; padding: 0;
        border-radius: 50%; border: 1px solid var(--ub-border); background: var(--ub-surface); color: var(--ub-text-secondary);
        font: italic 600 11px/1 Georgia, serif; vertical-align: 2px; cursor: help; }
.info:not(li):hover, .info:not(li):focus-visible, .info.open:not(li) { color: var(--ub-text); border-color: var(--ub-text-secondary); }
.info:not(li) .tip { display: none; position: absolute; z-index: 30; left: -10px; bottom: calc(100% + 8px);
             width: min(360px, 80vw); padding: 10px 12px; border-radius: 10px; background: var(--ub-text); color: var(--ub-bg);
             font-family: var(--ub-font, system-ui, sans-serif); font-size: 13px; line-height: 1.5; font-weight: 400;
             font-style: normal; text-align: left; white-space: normal; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); pointer-events: none; }
.info:not(li):hover .tip, .info:not(li):focus-visible .tip, .info.open:not(li) .tip { display: block; }
@media (max-width: 640px) { .info:not(li) .tip { left: auto; right: -40px; width: min(300px, 78vw); } }

/* collapsed sidebar: an icon's name next to it at once on hover or keyboard focus (panel.js; the browser's own tooltip
   was slow and small, Alex 4 Nov 2026). Fixed, so the sidebar's scroll area can't clip it. */
.navtip { position: fixed; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ub-text); color: var(--ub-bg);
          font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
          pointer-events: none; transform: translateY(-50%); }
.navtip::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
                  background: inherit; transform: rotate(45deg); border-radius: 2px; }
.navtip[hidden] { display: none; }
.mf-group { padding: 16px; border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); }
.mf-h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 2px; }
[data-audience-boxes][hidden] { display: none; }

/* a «smart» suggestion we computed for this monitor (e.g. the slow threshold) */
.suggest { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--ub-radius-lg);
           border: 1px solid color-mix(in srgb, var(--ub-brand) 35%, var(--ub-border));
           background: color-mix(in srgb, var(--ub-brand) 9%, var(--ub-surface)); }
.suggest[hidden] { display: none; }
.suggest p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; color: var(--ub-text-secondary); }
.suggest p strong { color: var(--ub-text); font-weight: 600; }
.suggest-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
              background: var(--ub-brand); color: #fff; }
.suggest .btn { flex: none; background: var(--ub-brand); color: #fff; border-color: var(--ub-brand); }
@media (max-width: 640px) { .suggest { flex-wrap: wrap; } .suggest .btn { width: 100%; } }
@media (max-width: 900px) { .mf-sec { scroll-margin-top: 76px; } }   /* below the chips, which stay on top */

/* Ops → MCP: calls a day */
.mcpbars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 120px;
           padding: 8px; border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); max-width: 960px; }
.mcpbars .b { height: 100%; display: flex; align-items: flex-end; }
.mcpbars .b span { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--ub-brand); }
.mcpbars .b span.err { background: linear-gradient(var(--ub-status-down) 0 30%, var(--ub-brand) 30%); }
.mcpaxis { display: flex; justify-content: space-between; max-width: 960px; margin-top: 4px; }

/* allauth's own account pages inside the app (change password, two-factor, sign-in methods, …): panel look instead
   of the sign-in page's full-width buttons (Alex, 4 Nov 2026) */
.app.auth main.content { max-width: none; padding-top: 28px; }
.app.auth main.content > h1 { font-size: 26px; margin: 0 0 20px; }
.app.auth main.content h2 { font-size: 18px; margin: 0 0 6px; }
.app.auth main.content > form, .app.auth main.content > section, .app.auth main.content > p { max-width: 560px; }
.app.auth main.content section { padding: 18px 20px; margin: 0 0 14px; border: 1px solid var(--ub-border);
                                  border-radius: var(--ub-radius-lg); background: var(--ub-surface); }
.app.auth main.content section p { margin: 0 0 10px; color: var(--ub-text-secondary); }
.app.auth main.content section ul, .app.auth main.content > ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.app.auth main.content section ul a { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--ub-radius-md);
                                      border: 1px solid var(--ub-border); color: var(--ub-text); text-decoration: none; font-weight: 500; }
.app.auth main.content section ul a:hover { background: var(--ub-surface-muted); }
.app.auth main.content button { width: auto; padding: 12px 20px; }
.app.auth main.content form p span ul { padding-left: 18px; margin: 6px 0 0; font-size: 14px; }

/* sign-in page: the email link first, the password form folded under it */
.pwlogin { margin-top: 18px; border-top: 1px solid var(--ub-border); padding-top: 14px; }
.pwlogin > summary { cursor: pointer; color: var(--ub-text-secondary); font-size: 15px; list-style: none; }
.pwlogin > summary::-webkit-details-marker { display: none; }
.pwlogin > summary::after { content: " ▾"; }
.pwlogin[open] > summary { margin-bottom: 14px; }

/* click-to-copy values (status page Own address DNS records) */
.clickcopy { position: relative; display: inline-block; word-break: break-all; cursor: copy; padding: 2px 4px; margin: -2px -4px;
             border-radius: 4px; }
.clickcopy:hover, .clickcopy:focus-visible { background: color-mix(in srgb, var(--ub-brand) 16%, transparent); outline: none; }
.clickcopy.copied { background: color-mix(in srgb, var(--ub-status-up) 22%, transparent); }
.clickcopy.copied::after { content: 'Copied'; position: absolute; left: 0; bottom: calc(100% + 4px); padding: 2px 6px; border-radius: 4px;
                           font: 12px/1.4 var(--ub-font, inherit); background: var(--ub-text); color: var(--ub-bg, #000); white-space: nowrap; }
/* incident page (/incidents/<id>/) */
.ihead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip.sev-critical { color: var(--ub-status-down); } .chip.sev-major { color: var(--ub-status-warn); }
.ifacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1200px; margin: 0 0 24px; }
.ifacts > div { border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); padding: 12px 14px; min-width: 0; }
.ifacts span, .ifacts strong { display: block; }
.ifacts strong { margin: 4px 0 2px; overflow-wrap: anywhere; }
.igrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; max-width: 1200px; }
.itl { list-style: none; margin: 0; padding: 0; }
/* time on its own line above the event (a fixed time column overlapped the title at larger mono sizes; Alex, 7 Nov) */
.itl > li { position: relative; display: block; padding: 0 0 18px 22px; }
.itl > li::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--ub-border); }
.itl > li:last-child::before { display: none; }
.itl-dot { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ub-text-secondary); }
.itl .k-down .itl-dot, .itl .k-confirmed .itl-dot, .itl .k-alert_failed .itl-dot { background: var(--ub-status-down); }
.itl .k-resolved .itl-dot { background: var(--ub-status-up); }
.itl .k-ack .itl-dot, .itl .k-now .itl-dot { background: var(--ub-status-paused); }
.itl .k-update .itl-dot, .itl .k-alert .itl-dot { background: var(--ub-brand); }
.itl-at { display: block; color: var(--ub-text-secondary); font-size: 13px; line-height: 1.4; margin-bottom: 2px; white-space: nowrap; }
.itl-items { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ub-text-secondary); }
.itl-items > li { padding: 2px 8px; border: 1px solid var(--ub-border); border-radius: 999px; white-space: nowrap; }
.itl-quote { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--ub-border); font-size: 14px; white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .ifacts { grid-template-columns: 1fr 1fr; } .igrid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ifacts { grid-template-columns: 1fr; } }
/* monitor page: Logs tab filters on one line */
.logfilters select { width: auto; min-width: 170px; }
.logfilters .check { margin: 0; }
/* ⌘K search (panel.search) */
.kbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--ub-border);
        border-radius: var(--ub-radius-sm); background: transparent; color: var(--ub-text-secondary); cursor: pointer; font: inherit; font-size: 14px; }
.kbtn:hover { color: var(--ub-text); border-color: var(--ub-text-secondary); }
.kbtn kbd { font: 12px/1 inherit; padding: 3px 5px; border: 1px solid var(--ub-border); border-radius: 4px; }
@media (max-width: 760px) { .kbtn .kbtn-t, .kbtn kbd { display: none; } }
.ksearch { width: min(640px, 94vw); max-height: 70vh; padding: 0; margin: 12vh auto auto; border: 1px solid var(--ub-border);
           border-radius: var(--ub-radius-lg); background: var(--ub-surface); color: var(--ub-text); overflow: hidden; }
.ksearch[open] { display: flex; flex-direction: column; }
.ksearch::backdrop { background: rgba(0, 0, 0, .45); }
.ks-box { margin: 0; border-bottom: 1px solid var(--ub-border); }
.ks-box input { width: 100%; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 17px; padding: 16px 18px; }
.ks-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.ks-g { padding: 10px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ub-text-secondary); }
.ks-i { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: var(--ub-radius-sm); cursor: pointer; }
.ks-i.on, .ks-i:hover { background: color-mix(in srgb, var(--ub-brand) 18%, transparent); }
.ks-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-s { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ub-text-secondary); font-size: 13px; }
.ks-empty { padding: 18px 10px; color: var(--ub-text-secondary); }
.ks-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--ub-border); }
/* ⌘K second pass: icon + status dot, two-line rows, a kind label */
.ks-i { align-items: center; justify-content: flex-start; }
.ks-ic { position: relative; flex: none; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
         border-radius: 6px; background: color-mix(in srgb, var(--ub-text) 7%, transparent); color: var(--ub-text-secondary); }
.ks-dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ub-surface); }
.ks-dot.d-up { background: var(--ub-status-up); } .ks-dot.d-down { background: var(--ub-status-down); }
.ks-dot.d-warn { background: var(--ub-status-warn); } .ks-dot.d-paused, .ks-dot.d-unknown { background: var(--ub-text-secondary); }
.ks-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ks-tx .ks-s { max-width: none; font-size: 12.5px; }
.ks-k { flex: none; font-size: 11px; color: var(--ub-text-secondary); border: 1px solid var(--ub-border); border-radius: 4px; padding: 1px 6px; }
.ks-foot kbd { font: 11px/1 inherit; padding: 2px 4px; border: 1px solid var(--ub-border); border-radius: 4px; }

/* the bell (accounts.notify, Alex 6 Nov 2026): account events only; red count when something needs action */
.bell { position: relative; }
.bell > summary { list-style: none; position: relative; display: grid; place-items: center; width: 34px; height: 34px;
                  border-radius: 50%; border: 1px solid var(--ub-border); color: var(--ub-text-secondary); cursor: pointer; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary:hover, .bell[open] > summary { color: var(--ub-text); border-color: var(--ub-text-secondary); }
.bell .bcount { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
                background: var(--ub-brand); color: #fff; font: 600 11px/18px var(--ub-font, system-ui, sans-serif); text-align: center; }
.bell .bcount.urgent { background: var(--ub-status-down); }
.bell .bpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(380px, 92vw); max-height: 70vh;
                overflow: auto; background: var(--ub-surface); border: 1px solid var(--ub-border); border-radius: 12px;
                box-shadow: 0 12px 32px rgba(0, 0, 0, .28); text-align: left; }
.bell .bhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--ub-border); }
.bell .bhead form { margin: 0; }
.bell .bsec { padding: 8px 14px 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ub-text-secondary); }
.bell .bitem { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ub-border); color: var(--ub-text); text-decoration: none; }
.bell .bitem:hover { background: color-mix(in srgb, var(--ub-text) 5%, transparent); }
.bell .bitem .dot { margin-top: 6px; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.bell .bitem .bt { display: block; font-size: 14px; }
.bell .bitem .bd { display: block; font-size: 12px; color: var(--ub-text-secondary); margin-top: 2px; }
.bell .bitem .bact { display: block; font-size: 12px; color: var(--ub-brand); margin-top: 4px; }
.bell .bitem.read .bt { color: var(--ub-text-secondary); }
.bell .bempty { padding: 24px 14px; text-align: center; }
.bell .bfoot { display: block; padding: 10px 14px; text-align: center; font-size: 13px; color: var(--ub-brand); }
.dot.info { background: var(--ub-brand); width: 8px; height: 8px; margin: 0; border: 0; border-radius: 50%; display: inline-block; cursor: inherit; vertical-align: baseline; }   /* beats the 18 px .info icon rule */
/* notifications page: title (+ detail) left, time or action right; wraps under on narrow screens */
.nlist { max-width: 960px; margin-bottom: 24px; }
.nitem { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ub-border);
         color: var(--ub-text); text-decoration: none; }
.nitem:first-child { border-top: 0; }
.nitem:hover { background: var(--ub-surface); }
.nitem .dot { margin-top: 7px; border-radius: 50%; }
.nitem .nbody { flex: 1; min-width: 0; }
.nitem .nt { display: block; font-weight: 600; }
.nitem.read .nt { font-weight: 400; color: var(--ub-text-secondary); }
.nitem .nd { display: block; font-size: 14px; color: var(--ub-text-secondary); margin-top: 2px; }
.nitem .nwhen { flex: none; font-size: 14px; color: var(--ub-text-secondary); white-space: nowrap; }
.nitem .nact { flex: none; font-size: 14px; color: var(--ub-brand); white-space: nowrap; }
@media (max-width: 640px) { .nitem { flex-wrap: wrap; } .nitem .nwhen, .nitem .nact { flex-basis: 100%; padding-left: 20px; } }

/* bell Inbox / Archive (Alex, 7 Nov 2026), CSS-only tabs */
.bell .btab-r { position: absolute; opacity: 0; pointer-events: none; }
.bell .btabs { display: flex; gap: 4px; }
.bell .btab { padding: 4px 10px; border-radius: 7px; font-size: 13px; color: var(--ub-text-secondary); cursor: pointer; }
.bell #btab-in:checked ~ .bhead .btab-in, .bell #btab-ar:checked ~ .bhead .btab-ar { background: color-mix(in srgb, var(--ub-text) 9%, transparent); color: var(--ub-text); font-weight: 600; }
.bell #btab-in:focus-visible ~ .bhead .btab-in, .bell #btab-ar:focus-visible ~ .bhead .btab-ar { outline: 2px solid var(--ub-brand); }
.bell .bl-ar { display: none; }
.bell #btab-ar:checked ~ .bl-in { display: none; }
.bell #btab-ar:checked ~ .bl-ar { display: block; }
.bell .brow { padding: 0; align-items: stretch; }
.bell .brow .bmain { display: flex; gap: 10px; flex: 1; min-width: 0; padding: 10px 0 10px 14px; color: inherit; text-decoration: none; }
.bell .brow form { margin: 0; display: flex; }
.bell .barch { border: 0; background: none; color: var(--ub-text-secondary); padding: 0 12px; cursor: pointer; opacity: .55; }
.bell .brow:hover .barch, .bell .barch:focus-visible { opacity: 1; }
.bell .barch:hover { color: var(--ub-text); }
.bell .bfoot-f { margin: 0; border-bottom: 1px solid var(--ub-border); }
.bell button.bfoot { width: 100%; border: 0; background: none; cursor: pointer; color: var(--ub-text-secondary); }
.ntabs { margin: 4px 0 16px; }
.app main.content > .ntabs { flex: none; }      /* not the top bar's flex: 1 (main.content is a column): an empty page stretched it */
.nrow { padding: 0; align-items: center; }
.nrow .nmain { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; padding: 12px 0 12px 16px; color: inherit; text-decoration: none; }
.nrow form { margin: 0; padding-right: 12px; }

/* Ops → Support list, by whose turn it is (Alex, 8 Nov 2026) */
.sup-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.sup-bar .ntabs { margin: 0; flex: 1; min-width: 0; padding: 0; }
.sup-who select { width: auto; }
.sup-list { max-width: 1100px; }
.item.sup-row { grid-template-columns: 110px minmax(0, 1fr) 140px 110px; text-decoration: none; color: inherit; align-items: start; }
.item.head-row.sup-row { align-items: center; }
.sup-pill { font-size: 14px; white-space: nowrap; }
.sup-pill.ours { color: var(--ub-status-warn); border-color: currentColor; }
.sup-pill.theirs { color: var(--ub-brand); border-color: currentColor; }
.sup-ours { color: var(--ub-brand); }
.sup-preview { display: block; font-size: 14px; color: var(--ub-text-secondary); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.sup-cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-late { color: var(--ub-status-warn); }
.sup-unmatched { max-width: 1100px; margin-top: 28px; }
.sup-unmatched > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 12px 16px; border: 1px solid var(--ub-border); border-radius: var(--ub-radius-lg); font-weight: 500; }
.sup-unmatched > summary .small { margin-left: auto; font-weight: 400; }
.sup-unmatched[open] > summary { margin-bottom: 8px; }
@media (max-width: 760px) { .item.sup-row { grid-template-columns: 96px minmax(0, 1fr) 80px; } }

/* Ops → Sign-ups not finished (Alex, 9 Nov 2026) */
.item.su-row { grid-template-columns: minmax(0, 1fr) 170px 220px 130px; align-items: start; }
.item.head-row.su-row { align-items: center; }
@media (max-width: 760px) { .item.su-row { grid-template-columns: minmax(0, 1fr) 110px; } .item.su-row > :nth-child(3) { display: none; } }

/* PingWise Business page (ledger/business.html) */
.biz-amount { font-size: 15px; } .biz-amount .mono { font-size: 30px; font-weight: 700; color: var(--ub-text); }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; max-width: 960px; }
.biz-grid .card h3 { margin: 0 0 6px; font-size: 16px; } .biz-grid .card p { margin: 0; font-size: 14px; color: var(--ub-text-secondary); }
.biz-take { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; max-width: 960px; margin-top: 24px; }

/* Ops → Emails (Alex, 9 Nov 2026) */
.em-list { max-width: 1100px; }
.item.em-row { grid-template-columns: minmax(0, 1fr) 90px 90px 100px 90px; text-decoration: none; color: inherit; }
.chip.em-on { color: var(--ub-status-up); border-color: currentColor; }
.em-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 4px 0 16px; }
.em-bar form { display: flex; gap: 8px; align-items: center; margin: 0; }
.em-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; max-width: 1300px; }
.em-frame { border: 1px solid var(--ub-border); border-radius: 12px; background: #F1F2F6; margin-top: 6px; overflow: hidden; color: #1D1F27; }
.em-frame a { color: #2E5BFF; }
@media (max-width: 760px) { .item.em-row { grid-template-columns: minmax(0, 1fr) 70px 70px; } .item.em-row > :nth-child(n+4) { display: none; } }
