/* TunnelHQ public status page, version 4 (3 Nov 2026, after the design review): incident.io's layout (measured 3 Nov 2026) in
   TunnelHQ's colours, taken from the dashboard's own tokens (frontend/src/index.css). Light by default; .dark on <html> per page.
   One scale everywhere: amber is degraded, orange a partial outage, red a full outage, blue maintenance, grey too few checks. */
:root {
  --page: hsl(220 20% 97%); --bg: #fff; --border: hsl(220 14% 87%); --border-strong: hsl(220 14% 78%); --divider: hsl(220 16% 95%);
  --text: hsl(224 20% 12%); --title: hsl(224 20% 12%); --name: hsl(224 20% 12%);
  --text2: hsl(220 11% 38%); --muted: hsl(220 10% 45%); --body: hsl(220 11% 38%); --flink: hsl(220 11% 38%); --chev: hsl(220 10% 68%);
  --primary: hsl(175 77% 26%); --primary-fg: #fff; --primary-h: hsl(175 77% 21%);
  /* status hues: the dashboard's bright ones for bars and icons; amber darkened to hsl(38 95% 38%) so a mark on white reads at 3:1 */
  --ok: hsl(161 94% 27%); --degraded: hsl(38 95% 38%); --partial: hsl(24 92% 54%); --full: hsl(0 84% 60%); --maint: hsl(217 91% 60%); --nodata: hsl(220 14% 94%);
  --ok-h: hsl(161 94% 21%); --degraded-h: hsl(38 95% 31%); --partial-h: hsl(24 92% 46%); --full-h: hsl(0 74% 50%); --maint-h: hsl(217 80% 50%);
  --ok-strip: hsl(161 60% 95%);
  --ok-t: var(--ok); --degraded-t: hsl(32 92% 34%); --partial-t: hsl(24 92% 38%); --full-t: hsl(0 74% 44%); --maint-t: hsl(217 80% 45%); --degraded-strip: hsl(42 95% 93%); --partial-strip: hsl(24 92% 95%); --full-strip: hsl(0 84% 96%); --maint-strip: hsl(217 91% 96%);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.04);
  --btn-bg: var(--primary); --btn-fg: var(--primary-fg); --btn-bd: var(--primary); --btn-bg-h: var(--primary-h);
  --ovl: rgba(16,24,40,.08); --tab-on: var(--primary); --inp-bd: hsl(220 14% 82%); --ph: hsl(220 10% 62%); --dsub-bg: hsl(220 16% 94%);
  --seg-on: #fff; --seg-shadow: 0 1px 2px rgba(16,24,40,.10);
  color-scheme: light;
}
html.dark {
  --page: hsl(228 14% 7%); --bg: hsl(228 14% 9%); --border: hsl(225 15% 15%); --border-strong: hsl(216 15% 21%); --divider: hsl(225 15% 12%);
  --text: hsl(220 20% 97%); --title: hsl(220 20% 97%); --name: hsl(220 16% 88%);
  --text2: hsl(220 10% 58%); --muted: hsl(220 10% 56%); --body: hsl(220 10% 60%); --flink: hsl(220 10% 70%); --chev: hsl(220 10% 40%);
  --primary: hsl(172 66% 50%); --primary-fg: hsl(228 14% 7%); --primary-h: hsl(172 66% 44%);
  --ok: hsl(160 72% 44%); --degraded: hsl(42 95% 55%); --partial: hsl(24 92% 56%); --full: hsl(0 84% 60%); --maint: hsl(217 91% 62%); --nodata: hsl(225 15% 13%);
  --ok-h: hsl(160 72% 52%); --degraded-h: hsl(42 95% 62%); --partial-h: hsl(24 92% 63%); --full-h: hsl(0 84% 67%); --maint-h: hsl(217 91% 70%);
  --ok-strip: hsl(160 45% 12%);
  --ok-t: var(--ok); --degraded-t: var(--degraded); --partial-t: var(--partial); --full-t: var(--full); --maint-t: var(--maint); --degraded-strip: hsl(42 55% 12%); --partial-strip: hsl(24 50% 13%); --full-strip: hsl(0 45% 14%); --maint-strip: hsl(217 45% 15%);
  --shadow: none;
  --ovl: rgba(5,6,9,.72); --inp-bd: hsl(216 15% 21%); --ph: hsl(220 10% 42%); --dsub-bg: hsl(225 15% 14%);
  --seg-on: hsl(225 15% 17%); --seg-shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); }
/* room for a scrollbar on every page, long or short: without it a long page sat 7px left of a short one */
html { scrollbar-gutter: stable; }
body { font: 400 16px/24px Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
var { font-style: normal; }
.container { max-width: 868px; margin: 0 auto; padding: 16px 8px; }
.col { padding: 0 16px; display: flex; flex-direction: column; gap: 24px; }
#live { display: contents; }
/* a private page's password form (renderAccess): one narrow column, the field and Open, the error line always holding its room */
.acc { width: 100%; max-width: 360px; margin: 14vh auto 0; display: flex; flex-direction: column; }
.acc-m { margin-bottom: 20px; }
.acc-n { display: block; font: 600 18px/24px Inter, Arial, sans-serif; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-t { margin: 0; font: 650 22px/28px Inter, Arial, sans-serif; color: var(--title); }
.acc-d { margin: 4px 0 20px; font-size: 14px; line-height: 20px; color: var(--muted); }
.acc form { display: flex; flex-direction: column; }
.acc label { margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--title); }
.acc input { height: 40px; padding: 0 12px; border: 1px solid var(--inp-bd); border-radius: 8px; background: var(--bg); color: var(--text); font: 400 15px Inter, Arial, sans-serif; }
.acc input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.acc-e { min-height: 20px; margin: 6px 0 8px; font-size: 13px; line-height: 20px; color: var(--full-t); }
.acc-b { height: 40px; justify-content: center; font-weight: 500; }   /* what keeps itself current: its blocks stay the column's own, gaps and all */
.nw { white-space: nowrap; }

/* header */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: max(36px, var(--lg-h, 32px)); margin-top: 16px; }
/* The name gives way to the buttons, one line cut with …: on a phone it wrapped and touched Get in touch */
.logo { min-width: 0; margin: 0; font: 500 24px/32px Inter, Arial, sans-serif; }
.wm { display: block; font: 600 20px/24px Inter, Arial, sans-serif; letter-spacing: -.4px; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Bordered in light and dark: filled, it was the loudest thing on the page (owner's pick, 4 Nov 2026, after Better Stack's) */
.sub-btn { height: 34px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border-strong); background: none; color: var(--title);
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -.07px; white-space: nowrap; cursor: pointer; }
.sub-btn:hover { background: var(--divider); }
/* Get in touch and Subscribe 8px apart, as in the tabs header; Go to … keeps its 20px */
.hd-r { display: flex; flex: none; align-items: center; gap: 4px; }
.hd-r > .site { margin-inline-end: 16px; }
.site { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; color: var(--text2); white-space: nowrap; text-decoration: none; cursor: pointer; }
.site:hover { color: var(--title); }

/* the page's headline: the state in a few words, centred (owner's pick, 4 Nov 2026, after Better Stack's); one line */
.hl { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0 8px; }
.hl .ic { width: 32px; height: 32px; margin: 0 0 12px; }
.hl-t { max-width: 100%; margin: 0; font-size: 30px; line-height: 36px; font-weight: 650; color: var(--title);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-m { max-width: 100%; margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.dark .hl-m { color: var(--text2); }
.hl-d { max-width: 560px; margin: 12px 0 0; font-size: 15px; line-height: 22px; color: var(--text2); }
/* "Get in touch" beside Subscribe, the same bordered button */
.ct-btn { display: inline-flex; align-items: center; margin-inline-end: 4px; text-decoration: none; }
/* a brand colour (Appearance, as Hyperping's "Buttons and links"): buttons filled with it, links in its readable shades */
html[data-brand] .sub-btn { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
html[data-brand] .sub-btn:hover { background: var(--btn-bg-h); }
html[data-brand] .lnk { color: var(--lnk-l); }
html.dark[data-brand] .lnk { color: var(--lnk-d); }

/* incidents and maintenance: white cards under the headline, the state only in the icon and the status words (the
   tinted strip and coloured border read as an alarm box) */
.banner { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); box-shadow: var(--shadow); }
.b-ok .bstat { color: var(--ok-t); } .b-degraded .bstat { color: var(--degraded-t); } .b-partial .bstat { color: var(--partial-t); }
.b-full .bstat { color: var(--full-t); } .b-maint .bstat { color: var(--maint-t); }
.bt { margin: 0; font: inherit; color: inherit; }
.bin { border-radius: 7px; background: var(--bg); overflow: hidden; }
.bhead { padding: 14px 16px; }
.btitle { display: flex; align-items: flex-start; padding: 2px 0; font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -.2px; color: var(--title); }
.btitle .ic { margin-top: 4px; }
.back { display: inline-flex; color: var(--title); opacity: .45; margin-top: 4px; margin-inline-end: 8px; }
.back .ch16 { width: 16px; height: 16px; }
.bbody { padding: 16px; font-size: 14px; line-height: 20px; color: var(--title); }
.bstat { padding: 12px 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bmsg { margin-top: 12px; padding: 4px 16px 0; font-size: 14px; line-height: 21px; color: var(--title); white-space: pre-line; }
.bmeta { padding: 12px 16px; font-size: 14px; line-height: 20px; color: var(--text2); }
.lnk { color: var(--primary); font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
/* an address inside an update: underlined so it reads as a link in running text, and broken anywhere so a long one never widens the page */
.ubody .lnk, .bmsg .lnk { font-weight: inherit; white-space: normal; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }

/* cards */
.card { padding: 1px; border-radius: 8px; background: var(--border); box-shadow: var(--shadow); }
.cin { border-radius: 7px; background: var(--bg); }
.chead { display: flex; align-items: center; gap: 16px; min-height: 53px; padding: 14px 16px; border-bottom: 1px solid var(--divider); }
.chead h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -.2px; color: var(--title); white-space: nowrap; }
.range { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.rarr { display: inline-flex; color: var(--muted); } .rarr.dis { color: var(--border); }
.ch16 { width: 16px; height: 16px; }
.grow { flex: 1; }
.overall { font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.overall var { color: var(--title); font-weight: 500; }
.up var, .overall var { font-variant-numeric: tabular-nums; }
.view { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--divider); }
.view button { border: 0; background: none; padding: 3px 10px; border-radius: 6px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text2); white-space: nowrap; cursor: pointer; }
.view button.on { background: var(--seg-on); color: var(--title); box-shadow: var(--seg-shadow); }

/* rows */
.rows > .row + .row { border-top: 1px solid var(--divider); }
.row { position: relative; padding: 12px 16px; }
.rhead { display: flex; align-items: center; height: 28px; min-width: 0; }
.ic { width: 16px; height: 16px; flex: none; margin-inline-end: 8px; }
.rhead h3 { min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { margin-inline-start: 8px; font-size: 14px; line-height: 20px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cnt { display: inline-flex; align-items: center; margin-inline-start: 8px; padding: 0; border: 0; background: none; font-size: 14px; line-height: 20px; color: var(--text2); white-space: nowrap; cursor: pointer; }
.cnt:hover { color: var(--title); }
.chw { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 24px; margin-inline-start: 4px; margin-top: 2px; color: var(--chev); }
.chs { width: 10px; height: 6px; transform: rotate(-90deg); transition: transform .2s ease-out; } .chs.open { transform: none; }
.up { margin-inline-start: 16px; font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.up.ok { color: var(--ok-t); } .up.degraded { color: var(--degraded-t); } .up.partial { color: var(--partial-t); }
.up.full { color: var(--full-t); } .up.maint { color: var(--maint-t); }
.up var { color: inherit; font-weight: 500; }
.phchev { display: none; }
.barwrap { position: relative; margin: 4px 0; }
.bars { display: block; width: 100%; height: 32px; }
rect.b.ok { fill: var(--ok); } rect.b.degraded { fill: var(--degraded); } rect.b.partial { fill: var(--partial); }
rect.b.full { fill: var(--full); } rect.b.maint { fill: var(--maint); } rect.b.nodata { fill: var(--nodata); }
/* the bar the card is about */
rect.b.ok.hov { fill: var(--ok-h); } rect.b.degraded.hov { fill: var(--degraded-h); } rect.b.partial.hov { fill: var(--partial-h); }
rect.b.full.hov { fill: var(--full-h); } rect.b.maint.hov { fill: var(--maint-h); } rect.b.nodata.hov { fill: var(--border-strong); }
.axis { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted); }
.rows + .axis { padding: 0 16px 12px; }
.row.open .kids { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.kid .barwrap { margin: 4px 0; }

/* bar tooltip, and the same box under a dot */
.tip { position: fixed; top: 0; left: 0; z-index: 90; width: 256px; padding-top: 4px; pointer-events: none; }
.tbox { display: block; padding: 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); box-shadow: var(--shadow); }
.tdate { display: block; padding: 4px; font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; }
html.dark .tdate { color: var(--text2); }
.tline { display: flex; align-items: flex-start; min-height: 32px; padding: 4px 8px; border-radius: 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--name); }
.tline .ic { margin-top: 2px; }
.tfoot { display: block; margin-top: 4px; padding: 6px 8px 4px; border-top: 1px solid var(--divider); font-size: 12px; line-height: 16px; color: var(--text2); white-space: nowrap; }
.tip[hidden], .tfoot[hidden] { display: none; }
.tic { display: contents; }
/* an incident's name is cut, never wrapped, in the 256px card */
.tline .tword { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* footer */
.ft { margin-top: 24px; padding-bottom: 24px; text-align: center; }
.pw { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--muted); }
html.dark .pw { color: var(--text2); }
.pw-logo { height: 15px; width: auto; color: var(--text2); }
.flinks { margin: 16px 0 0; font-size: 12px; line-height: 16px; color: var(--flink); }

/* subscribe dialog (ours: Telegram beside email, Slack and RSS; the page's services by name; maintenance as its own choice) */
.ovl { position: fixed; inset: 0; z-index: 100; overflow: auto; background: var(--ovl); }
.dlg { width: 624px; max-width: calc(100vw - 32px); margin: 90px auto; border-radius: 8px; background: var(--bg); filter: drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1)); }
html.dark .dlg { border: 1px solid var(--border); filter: none; }
.dhead { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.dhead h2 { margin: 0; font-size: 18px; line-height: 28px; font-weight: 500; color: var(--title); }
.dx { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 9999px; background: none; color: var(--body); cursor: pointer; }
.dbody { padding: 16px; }
.tabs { display: flex; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 8px 12px 6px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: pointer; }
html.dark .tab { color: var(--text2); }
.tab.on { color: var(--title); border-bottom-color: var(--tab-on); }
.lbl { display: block; margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--title); }
.inp { display: block; width: 100%; height: 38px; padding: 8px 12px; border: 1px solid var(--inp-bd); border-radius: 8px; background: var(--bg); font-size: 14px; line-height: 20px; }
.inp::placeholder { color: var(--ph); }
.fs { margin: 16px 0 0; padding: 0; border: 0; }
.fs legend { margin-bottom: 8px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--title); }
.rbox { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 16px; border: 1px solid var(--inp-bd); border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--title); cursor: pointer; }
html.dark .rbox { border-color: var(--border); }
.rbox.sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.radio { width: 16px; height: 16px; flex: none; border-radius: 9999px; box-shadow: inset 0 0 0 1.5px var(--inp-bd); }
.radio.on { box-shadow: inset 0 0 0 5px var(--primary); }
.rbox .rtext { flex: 1; min-width: 0; }
.rcount { font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.rbox.two { align-items: flex-start; } .rbox.two .radio { margin-top: 2px; }
.rsub { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); }
.chkrow { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--title); cursor: pointer; }
.chk { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--inp-bd); color: transparent; }
.chk.on { background: var(--primary); box-shadow: none; color: var(--primary-fg); }
.dfoot { display: flex; justify-content: flex-end; padding: 16px; border-top: 1px solid var(--border); }
.dfoot.v4 { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.dconf { font-size: 13px; line-height: 18px; color: var(--muted); }
.dsub { height: 36px; padding: 8px 12px; border: 0; border-radius: 6px; background: var(--dsub-bg); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--title); cursor: pointer; white-space: nowrap; }
.dsub.primary { background: var(--primary); color: var(--primary-fg); }
.dsub.primary:hover { background: var(--primary-h); }

/* incident page: affected services and updates. The updates list (a dot column) is the page's one timeline, reused by Past incidents. */
.aff .tl { position: relative; height: 36px; border-bottom: 1px solid var(--divider); }
.aff .tlab { position: absolute; top: 10px; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.aff .tlab.r { right: 16px; }
.aff .tick { position: absolute; top: 28px; width: 1px; height: 8px; background: var(--divider); }
.arow { padding: 12px 16px 16px; }
.arow .cnt { margin-inline-start: 8px; }
.dur { position: relative; height: 16px; margin-top: 4px; }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 1px; }
.seg.ok { background: var(--ok); } .seg.partial { background: var(--partial); } .seg.degraded { background: var(--degraded); } .seg.full { background: var(--full); }
.ups { padding: 16px 16px 16px 8px; }
.up-i { display: flex; gap: 8px; }
.dotcol { position: relative; flex: none; width: 16px; }
.dot { position: absolute; left: 5px; top: 7px; width: 6px; height: 6px; border-radius: 9999px; }
.vline { position: absolute; left: 7.5px; top: 20px; bottom: -7px; width: 1px; }
.utext { min-width: 0; padding-bottom: 24px; }
.up-i:last-child .utext { padding-bottom: 0; }
.ulab { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--title); }
.ubody { margin: 12px 0; font-size: 14px; line-height: 21px; color: var(--title); white-space: pre-line; }
.uts { font-size: 14px; line-height: 20px; color: var(--body); }
html.dark .uts { color: rgb(149,149,157); }

/* past incidents: title, the date in grey beside it, then the same updates list as the incident page */
.prev { padding-top: 8px; }
.prev h1, .prev h2 { margin: 0 0 4px; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--title); }
.pi { padding: 20px 0; border-bottom: 1px solid var(--border); }
.pi-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pi-t { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--title); min-width: 0; }
.pi-d { flex: none; font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.pi .ups { padding: 0; }
.pi .vline { background: var(--border); }
.pi .utext { padding-bottom: 16px; }
.pi .up-i:last-child .utext { padding-bottom: 0; }
.more5 { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 20px 0 8px; font-size: 14px; font-weight: 500; color: var(--title); cursor: pointer; }

/* ---------------- version 4 options (3 Nov 2026): every variant is in the page; a class on <html> picks one ---------------- */
.o { display: none; }
html.hd-a .o-hd-a, html.hd-b .o-hd-b, html.parts-a .o-parts-a, html.parts-b .o-parts-b, html.cal-e .o-cal-e, html.past-1 .o-past-1 { display: contents; }

/* header option b: a website header with tabs (Better Stack) */
.tn { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 61px; margin-top: -8px; }
.tn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--border); }
.tn-l { display: flex; align-items: center; min-width: 0; }
.tn-c { display: flex; justify-content: center; gap: 8px; }
.tab5 { display: inline-flex; align-items: center; height: 30px; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; cursor: pointer; }
.tab5.on { background: var(--divider); color: var(--title); }
.tn-r { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; background: none; color: var(--title); cursor: pointer; }

/* services option b: folded grey rows (Better Stack's fold); open and closed headers look the same, and line up */
.rows5 { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.g5 { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 12px 10px 16px; border: 0; border-radius: 8px; background: var(--divider); font: inherit; text-align: start; cursor: pointer; }
.g5.open { background: none; }
.g5 .ic { margin-inline-end: 0; } .g5 .up { margin-inline-start: 0; }
.g5n { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--title); white-space: nowrap; }
.g5k { font-size: 14px; line-height: 20px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g5c { display: inline-flex; color: var(--chev); flex: none; }
.g5o { display: flex; flex-direction: column; }
.g5kids { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 8px; }
.g5kids .axis { margin-top: -4px; }

/* calendar option e: six months of dots (updown.io's grid) in the bars' colours; future days blank; the dot's tooltip says the duration */
.months5 .e-body { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 10px; padding: 16px; }
.e-mh { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--title); white-space: nowrap; }
.e-mu { margin-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.e-mu var { font-variant-numeric: tabular-nums; }
.e-grid { display: grid; grid-template-columns: repeat(7, 8px); gap: 5px; }
.e-dot { position: relative; width: 8px; height: 8px; border-radius: 9999px; background: var(--ok); }
.e-dot.blank { background: transparent; }
.e-dot.degraded { background: var(--degraded); } .e-dot.partial { background: var(--partial); } .e-dot.full { background: var(--full); } .e-dot.maint { background: var(--maint); }
.e-dot.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--primary); }
.dtip { position: absolute; top: 12px; left: 50%; z-index: 90; width: 232px; transform: translateX(-50%); pointer-events: none; }
.lg5 { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 14px; border-top: 1px solid var(--divider); font-size: 12px; line-height: 16px; color: var(--muted); }
.lg5 span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.e-k { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; }
.e-k.ok { background: var(--ok); } .e-k.degraded { background: var(--degraded); } .e-k.partial { background: var(--partial); } .e-k.full { background: var(--full); } .e-k.maint { background: var(--maint); }

/* phone (390): one 358px column; bars, range, counts and the view switch hidden; a row is icon, name, uptime, chevron */
@media (max-width: 640px) {
  .tn .ct-btn { display: none; }   /* in the tabs header the phone menu has it */
  .hl { padding: 8px 0 0; } .hl .ic { width: 28px; height: 28px; margin-bottom: 10px; } .hl-t { font-size: 22px; line-height: 28px; }
  .container { padding: 8px 0; }
  .hd { margin-top: 17px; }
  .bars, .barwrap, .axis, .range, .overall, .site, .sub, .cnt, .view, .tip, .dtip, .aff .tl, .aff .dur { display: none; }
  .row { padding: 16px; }
  .phchev { display: inline-flex; flex: none; margin-inline-start: 10px; color: var(--chev); }
  .phchev.none { visibility: hidden; }
  .row.open .kids { padding-top: 12px; gap: 12px; }
  .dlg { width: 100%; max-width: 100%; margin: 84px 0 0; border-radius: 8px 8px 0 0; }
  .dfoot.v4 { flex-direction: column; align-items: stretch; }
  .dfoot.v4 .dsub { width: 100%; }
  .tn { grid-template-columns: minmax(0, 1fr) auto; height: 52px; margin-inline-end: -10px; }   /* the burger's tap area reaches into the gutter so its icon ends at the content edge */
  .tn::before { right: 10px; }
  .tn-c { display: none; }
  .burger { display: inline-flex; }
  .months5 .e-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g5 .g5k { display: none; }
  .pi-h { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---- served by TunnelHQ (server/services/status-pages/render.js): what the server page adds to the mockup ---- */
/* the dashboard used .dark on <html> per frame; the page sets it from the visitor's setting before the first paint */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.row.grp > summary { display: block; }
.row.grp[open] > summary .gbar { display: none; }
.row.grp[open] .chs { transform: none; }
.row.grp .kids { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.g5o[open] > summary .g5c svg { transform: rotate(90deg); }
.lgl { display: inline-flex; align-items: center; }
/* the page's logo height (--lg-h on <html>, 24 to 48px); a logo wider than its room is shrunk whole, never squashed */
.lg { display: block; height: var(--lg-h, 32px); width: auto; max-width: min(calc(var(--lg-h, 32px) * 7), 60vw); object-fit: contain; }
.lg-d { display: none; }
html.dark .lg-l:not(:only-child) { display: none; }
html.dark .lg-d { display: block; }
.subw { position: relative; }
.subw > summary.sub-btn { display: inline-flex; align-items: center; }
/* the visitor's language (when the page offers more than one): the Subscribe button's look, its name in its own words */
.langw { margin-inline-end: 4px; }
.subm a.on { background: var(--divider); }
/* right to left (Persian, Arabic): the bars and their axis still run left to right in time, as the day card expects */
[dir="rtl"] .barwrap, [dir="rtl"] .axis, [dir="rtl"] .aff .tl, [dir="rtl"] .aff .dur { direction: ltr; }
[dir="rtl"] .back .ch16, [dir="rtl"] .rarr .ch16, [dir="rtl"] .more5 .ch16, [dir="rtl"] .phchev .ch16 { transform: scaleX(-1); }
.subm { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 50; min-width: 160px; padding: 4px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); box-shadow: 0 8px 24px rgba(16,24,40,.12); }
.subm a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 14px; line-height: 20px; color: var(--title); text-decoration: none; white-space: nowrap; }
.subm a:hover { background: var(--divider); }
a.pi-t { color: var(--title); text-decoration: none; }
a.pi-t:hover { text-decoration: underline; }
a.more5, a.back, a.pw { text-decoration: none; }
.pi-none { margin: 0; font-size: 14px; line-height: 20px; color: var(--text2); }
a.tab5, a.site, a.lnk { text-decoration: none; }
.g5o[open] > summary.g5 { background: none; }
.arow .cnt { cursor: auto; }
.arow .cnt:hover { color: var(--text2); }
.view a { padding: 3px 10px; border-radius: 6px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text2); white-space: nowrap; text-decoration: none; }
.view a.on { background: var(--seg-on); color: var(--title); box-shadow: var(--seg-shadow); }
.view a:not(.on):hover, a.rarr:hover { color: var(--title); }
a.rarr { text-decoration: none; }
.arow .rhead { height: auto; min-height: 28px; }   /* a long list of places hit wraps under its own line height */
.arow .cnt { min-width: 0; white-space: normal; }
@media (max-width: 640px) { .aff .arow .cnt { display: inline-flex; } }   /* the places hit stay named on a phone */

/* the phone menu (the approved design's burger) and the website link beside Subscribe in the tabs header (4 Nov 2026) */
.burgw { position: relative; display: none; }
.burgw > summary::-webkit-details-marker { display: none; }
.burgw .subm a.on { background: var(--divider); }
a.lgl { color: inherit; text-decoration: none; }
@media (max-width: 640px) { .burgw { display: block; } }
