/* OD3X Hub: plain, readable, works on a phone. */
/* Dark mode is the dashboard's look (Paul, 24 October 2026). */
:root {
  color-scheme: dark;
  --ink: #e4e8ef; --muted: #98a2b3; --line: #2b3342; --bg: #0f131a; --card: #171c25; --field: #1e2430;
  --head: #1b212c; --brand: #0b0e14; --accent: #6ea8ff; --on-accent: #0b1220;
  --good: #4cc38a; --warn: #f0b44c; --bad: #f2786d;
  --a: #2f9e6a; --b: #3d7be0; --c: #c98a1a;
  --good-bg: rgba(76,195,138,.14); --warn-bg: rgba(240,180,76,.13); --bad-bg: rgba(242,120,109,.14);
  --info-bg: rgba(110,168,255,.13);
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
       min-height: 100vh; display: flex; flex-direction: column; }   /* the footer sits at the bottom of the window */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.top { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: .6rem 1rem; background: var(--brand); color: #fff; border-bottom: 1px solid var(--line); }
.top .brand { color: #fff; font-weight: 700; letter-spacing: .02em; }
.top nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.top nav a { color: #cfd8ea; padding: .3rem .6rem; border-radius: 6px; }
.top nav a.on, .top nav a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.top .who { display: flex; gap: .6rem; align-items: center; font-size: .85rem; color: #cfd8ea; }
.top .who .link { color: #fff; }

main { flex: 1 0 auto; width: 100%; max-width: 1240px; margin: 0 auto; padding: 1rem; }
.head { margin: .5rem 0 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card.narrow { max-width: 440px; margin: 3rem auto; }
.card.danger { border-color: rgba(242,120,109,.35); }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

button, .button { font: inherit; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); border-radius: 7px; padding: .4rem .8rem; cursor: pointer; display: inline-block; }
button:hover, .button:hover { filter: brightness(1.08); text-decoration: none; }
button.ghost, .button.ghost { background: transparent; color: var(--accent); }
button.bad { background: var(--bad); border-color: var(--bad); color: #1a0b0a; }
button.small { padding: .15rem .5rem; font-size: .8rem; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; }
input, select, textarea { font: inherit; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--ink); max-width: 100%; }
textarea { width: 100%; }
textarea[readonly] { background: var(--bg); color: var(--muted); }
form.inline { display: inline; }
form.stack { display: grid; gap: .6rem; margin-bottom: 1rem; }
form.stack label, label.field { display: grid; gap: .25rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; }

.attention { background: var(--warn-bg); border: 1px solid rgba(240,180,76,.4); border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; }
.attention h2 { font-size: 1rem; margin-bottom: .4rem; }
.attention ul { margin: 0; padding-left: 1.1rem; }
.attention li { margin: .25rem 0; }
.attention li.bad strong { color: var(--bad); }
.attention li.warn strong { color: var(--warn); }
.flash { padding: .6rem .8rem; border-radius: 8px; background: var(--info-bg); border: 1px solid rgba(110,168,255,.35); }
.flash.error { background: var(--bad-bg); border-color: rgba(242,120,109,.4); }
.flash.warn { background: var(--warn-bg); border-color: rgba(240,180,76,.4); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin-bottom: .75rem; }
.filters input[type=search] { min-width: 220px; flex: 1; }
.filters .check, .filters .since { font-size: .85rem; display: flex; gap: .3rem; align-items: center; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.bar .actions { display: flex; gap: .5rem; }

table { width: 100%; border-collapse: collapse; background: var(--card); }
table.leads { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--head); }
tr.unseen td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.sub td { border-top: 0; padding-top: 0; }
table.log td, table.log th { font-size: .9rem; }

.grade { display: inline-block; min-width: 1.6rem; text-align: center; font-weight: 700; color: #fff; border-radius: 6px; padding: 0 .35rem; }
.grade.gA { background: var(--a); } .grade.gB { background: var(--b); } .grade.gC { background: var(--c); }
.sector { display: inline-block; font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 .5rem; background: var(--field); }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; border-radius: 4px; padding: 0 .3rem; margin-left: .3rem; }
.tag.new { background: var(--info-bg); color: var(--accent); }
.tag.changed { background: var(--warn-bg); color: var(--warn); }
.tag.psc { background: var(--info-bg); color: var(--text, inherit); border: 1px solid var(--accent); }
.state { font-size: .75rem; border-radius: 4px; padding: .05rem .4rem; background: var(--field); }
.state.ok, .state.confirmed, .state.matched { background: var(--good-bg); color: var(--good); }
.state.failed, .state.needs-confirming { background: var(--bad-bg); color: var(--bad); }
.state.waiting-for-key { background: var(--warn-bg); color: var(--warn); }

.item { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.item:last-of-type { border-bottom: 0; }
.item.faded { opacity: .55; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: .3rem 0 .6rem .5rem; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .65rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.note { border-left: 3px solid var(--line); padding: .2rem .6rem; margin: .5rem 0; white-space: pre-wrap; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: .2rem 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
.pager { display: flex; justify-content: space-between; margin: 1rem 0; }
.settings h2 { margin-top: 1.25rem; }
.settings h2:first-of-type { margin-top: 0; }
.settings .field { margin-bottom: .9rem; }

/* Phone: the lead table becomes a list of cards. */
@media (max-width: 760px) {
  table.leads thead { display: none; }
  table.leads, table.leads tbody, table.leads tr, table.leads td { display: block; width: 100%; }
  table.leads tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  table.leads td { border: 0; padding: .15rem .75rem; }
  table.leads td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
  .top nav { order: 3; width: 100%; }
  table.log { display: block; overflow-x: auto; }
}

/* Exposure Scanner */
.rag { display: inline-block; min-width: 3.4rem; text-align: center; text-transform: uppercase; font-size: .72rem; font-weight: 700;
  letter-spacing: .03em; border-radius: 6px; padding: .05rem .4rem; border: 1px solid var(--line); color: var(--muted); }
.rag.red { background: var(--bad-bg); color: var(--bad); border-color: rgba(242,120,109,.4); }
.rag.amber { background: var(--warn-bg); color: var(--warn); border-color: rgba(240,180,76,.4); }
.rag.green { background: var(--good-bg); color: var(--good); border-color: rgba(76,195,138,.4); }
.rag.info, .rag.error { background: var(--info-bg); }
.rag.big { font-size: .9rem; padding: .15rem .6rem; vertical-align: middle; }
ul.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
ul.findings li { overflow-wrap: anywhere; }
.support { font-size: .75rem; font-weight: 700; margin-left: .3rem; }

/* Brand (HUB-20261026-04): the OD3X Growth lockup in the header and on the sign-in page. */
header.top .brand { display: inline-flex; align-items: center; padding: 0; }
header.top .brand img { display: block; height: 40px; width: auto; }
.signin-logo { display: block; height: 64px; width: auto; margin: 0 auto 1rem; }

/* Website Exposure Report on screen: the co-brand row heads the report; the title group and
   contact panels are for the PDF only. */
.cb-cover { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1.1rem;
  margin-bottom: 1rem; }
.cb-cover .cb-title, .cb-cover .cb-panels { display: none; }
.cb-attr { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.cb-al { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--warn);
  font-weight: 700; margin-bottom: .35rem; }
.cb-attr b { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.cb-dta, .cb-lockup { height: 17pt; width: auto; max-width: 100%; }
.cb-panels > div > span { display: block; }
p.why { margin: .2rem 0 .6rem; }
.cb-lockup { display: block; }

/* Website Exposure Report as a PDF (HUB-20261025-14, HUB-20261026-01): A4, the approved
   introduced-report design, no navigation, filters or buttons. The running footer with
   "Page n of N" comes from /exposure/<id>/print.css. */
.print-only, .print-only-inline { display: none; }
textarea.email-draft { width: 100%; font: inherit; font-size: .9rem; line-height: 1.45; background: var(--field);
  color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .7rem; }
@media print {
  @page { size: A4; margin: 16mm 15mm 26mm; }
  .cb-cover { background: none; border: 0; border-radius: 0; padding: 0; }
  .cb-cover .cb-title, .cb-cover .cb-panels { display: block; }
  .cb-cover .cb-panels { display: grid; }
  .cb-attr b { font-size: 13pt; }
  .cb-al { color: #8a6200; }
  :root { color-scheme: light; --ink: #111; --muted: #555; --line: #ccc; --bg: #fff; --card: #fff; }
  html, body { background: #fff !important; color: #111 !important; font-size: 9.5pt; }
  header.top, nav, form, button, textarea, .no-print, .attention, .flash:not(.error), .foot, .viewing-as { display: none !important; }
  .print-only { display: block !important; }
  .print-only-inline { display: inline !important; }
  main { max-width: none; margin: 0; padding: 0; }
  .card { border: 1px solid #ddd; break-inside: avoid; box-shadow: none; padding: 3mm 4mm; margin-bottom: 4mm; }
  a { color: #111; text-decoration: none; }
  h2 { font-size: 12pt; }
  .rag { min-width: 0; text-transform: none; letter-spacing: 0; font-size: 7.5pt; padding: .3mm 1.6mm;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rag.red { color: #a8261c; background: #fde3e0; border-color: #f2b8b1; }
  .rag.amber { color: #7a5000; background: #fdf0d5; border-color: #f0d49a; }
  .rag.green { color: #17663f; background: #ddf4e7; border-color: #a9dcbf; }
  .rag.info { color: #2c4f86; background: #e6eefc; border-color: #b9cdf0; }
  .support { color: #111; }

  /* Page 1: the compact attribution row, the centred title group, the contact panels. */
  .cb-cover { margin-bottom: 7mm; }
  .cb-al { display: block; font-size: 7pt; letter-spacing: .14em; text-transform: uppercase; color: #8a6200;
    font-weight: bold; margin-bottom: 1.5mm; }
  .cb-attr { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; align-items: start; }
  .cb-attr b { font-size: 13pt; display: inline-flex; align-items: center; gap: 2.5mm; }
  .cb-dta { height: 17pt; width: auto; }
  .cb-lockup { height: 17pt; width: auto; display: block; }
  .cb-title { text-align: center; margin: 14mm 0 9mm; }
  .cb-kick { font-size: 9pt; letter-spacing: .18em; font-weight: bold; color: #555; }
  .cb-title h1 { font-size: 24pt; margin: 2mm 0 2.5mm; }
  .cb-sub { font-size: 10pt; color: #444; }
  .cb-result { margin-top: 5mm; display: flex; justify-content: center; align-items: center; gap: 3mm; font-size: 10pt; color: #222; }
  .cb-why { max-width: 125mm; text-align: left; }
  .rag.big { font-size: 11pt; padding: 1mm 4mm; text-transform: uppercase; letter-spacing: .06em; }
  .rag { text-transform: uppercase; letter-spacing: .04em; }
  .rag.error { color: #555; background: #eee; border-color: #ccc; }
  .url { word-break: break-all; }
  .cb-panels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3mm; }
  .cb-panels > div { border: 1px solid #ddd; border-radius: 2mm; padding: 2.5mm 3mm; font-size: 8.5pt; color: #444; }
  .cb-panels b { display: block; color: #111; font-size: 10pt; margin-bottom: .8mm; }
}

/* Workspaces (HUB-20261027-05): the name in text until a logo is supplied, the
   "View as" banner, and the footer. */
.wordmark { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; color: #fff; }
p.signin-logo.wordmark { font-size: 1.6rem; margin: 0 0 .5rem; }
.viewing-as { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .5rem 1rem; background: var(--warn-bg); border-bottom: 1px solid rgba(240,180,76,.4); }
.foot { flex-shrink: 0; width: 100%; text-align: center; padding: 1.5rem 1rem 1rem; }   /* centred, every page */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share-bar { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; }
.item.contact dl { margin: .4rem 0; }
.item.contact dd { overflow-wrap: anywhere; }
.item.contact .row { margin: .3rem 0; }
table.spend td.num, table.spend th.num { text-align: right; }
/* Find contact panel (HUB-20261108-08) */
.find-panel { display: inline-block; }
.find-panel > summary { list-style: none; }
.find-panel > summary::-webkit-details-marker { display: none; }
.find-panel[open] { display: block; margin: .4rem 0; }
.find-panel ul.plain li { margin: .3rem 0; }

/* Export selected (HUB-20261109-06): hidden must win over display on .bar and .button. */
[hidden] { display: none !important; }

/* Investment (12 months), UK grant, EU grant badges (HUB-20261109-08) */
.tag.yes { background: var(--good-bg); color: var(--good); }
.tag.no { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Infrastructure (HUB-20261111-01): status lights and one card per asset, phone first. */
.light { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; vertical-align: -.05rem;
  margin-right: .25rem; border: 1px solid rgba(255,255,255,.25); flex: none; }
.light.green { background: var(--good); } .light.amber { background: var(--warn); }
.light.red { background: var(--bad); } .light.grey { background: #6b7280; }
.infra-checked { padding: .5rem .75rem; border-radius: 8px; margin: .5rem 0; }
.infra-checked.ok { background: var(--good-bg); } .infra-checked.bad { background: var(--bad-bg); }
.legend .light { margin-left: .6rem; }
.site { margin: 1.25rem 0; }
.site h2 { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; font-size: 1.15rem; }
.site-counts { margin-left: auto; }
.infra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.infra-card { display: block; background: var(--card); border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 10px; padding: .7rem .85rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.infra-card:hover, .infra-card:focus-visible { border-color: var(--accent); }
.infra-card.green { border-left-color: var(--good); } .infra-card.amber { border-left-color: var(--warn); }
.infra-card.red { border-left-color: var(--bad); } .infra-card.grey { border-left-color: #6b7280; }
.infra-card > div + div { margin-top: .2rem; }
.infra-top { display: flex; align-items: center; gap: .3rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.site-row { margin: 0; }
@media (max-width: 760px) {
  .infra-grid { grid-template-columns: 1fr; }
  .site-row input, .site-row select { flex: 1 1 40%; min-width: 0; }
}

/* --- Phones and the home-screen app (HUB-20261111-04) ------------------------------------ */
:root { --stick: 0px; --tabs-h: 46px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.burger, .drawer { display: none; }

/* The section's tabs: sticky under the header, scroll sideways when they do not fit. */
.infra-tabs { position: sticky; top: var(--stick); z-index: 30; display: flex; gap: .25rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line);
  margin: -1rem -1rem .75rem; padding: 0 .75rem; min-height: var(--tabs-h); align-items: stretch; }
.infra-tabs::-webkit-scrollbar { display: none; }
.infra-tabs a, .infra-tabs .soon { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.infra-tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.infra-tabs a:hover { text-decoration: none; color: var(--ink); }
.infra-tabs .soon { opacity: .45; cursor: default; }

/* One-line summary: the counts filter the page. */
.infra-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; padding: .3rem .5rem;
  border-radius: 8px; margin-bottom: .6rem; background: var(--card); border: 1px solid var(--line); }
.infra-summary.warn { background: var(--warn-bg); border-color: rgba(240,180,76,.45); }
.infra-summary .count { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; border-radius: 6px; color: var(--ink); }
.infra-summary .count:hover { text-decoration: none; background: rgba(255,255,255,.06); }
.infra-summary .count.on { background: rgba(110,168,255,.18); outline: 1px solid var(--accent); }
.infra-summary .checked { color: var(--muted); font-size: .9rem; }
.infra-errors { background: var(--warn-bg); border: 1px solid rgba(240,180,76,.45); border-radius: 8px; padding: 0 .75rem; margin-bottom: .75rem; }
.infra-errors summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--warn); font-weight: 600; }
.infra-errors ul { margin: 0 0 .5rem; padding-left: 1.1rem; }

/* Site headers stay in view, with their counts, while their cards scroll by. */
.site h2 { position: sticky; top: calc(var(--stick) + var(--tabs-h)); z-index: 20; background: var(--bg);
  margin: 0 0 .5rem; padding: .45rem 0; }

/* Cards: four lines; tap to open the rest. */
details.infra-card { padding: 0; }
details.infra-card > summary { list-style: none; display: grid; gap: .15rem; padding: .6rem .8rem; min-height: 44px; cursor: pointer; }
details.infra-card > summary::-webkit-details-marker { display: none; }
details.infra-card .l1 { display: flex; align-items: center; gap: .35rem; min-width: 0; }
details.infra-card .l1 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
details.infra-card .type { margin-left: auto; flex: none; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; }
details.infra-card .ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem;
  background: transparent; color: var(--ink); border: 0; border-radius: 6px; min-height: 44px; margin: -.5rem 0 -.5rem -.4rem;
  padding: 0 .4rem; cursor: copy; justify-self: start; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
details.infra-card .ip:hover { background: rgba(255,255,255,.06); }
details.infra-card .ip.copied { border-color: var(--good); color: var(--good); }
details.infra-card[open] > summary { border-bottom: 1px solid var(--line); }
details.infra-card .facts { padding: .6rem .8rem 0; }
details.infra-card .more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; }

/* Phones, under 640px wide. */
@media (max-width: 639.98px) {
  :root { --stick: calc(56px + env(safe-area-inset-top)); }
  header.top { position: sticky; top: 0; z-index: 40; flex-wrap: nowrap; justify-content: space-between; gap: .5rem;
    height: var(--stick); padding: env(safe-area-inset-top) .75rem 0; }
  header.top .brand img { height: 32px; }
  header.top nav.desk, header.top .who { display: none; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
    padding: 0 10px; border-radius: 8px; margin-right: -6px; }
  .burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .burger:hover { background: rgba(255,255,255,.1); }
  .drawer { position: fixed; inset: 0; z-index: 100; }
  .drawer.open, .drawer:target { display: block; }
  .drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
  .drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--brand);
    border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto;
    padding: calc(env(safe-area-inset-top) + .5rem) 0 calc(env(safe-area-inset-bottom) + 1rem); animation: slide-in .18s ease-out; }
  @keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .25rem .5rem .75rem 1rem;
    border-bottom: 1px solid var(--line); }
  .drawer-head #menu-who { display: flex; flex-direction: column; }
  .drawer-x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.6rem; color: #cfd8ea; }
  .drawer-links { display: flex; flex-direction: column; padding: .5rem 0; }
  .drawer-links a, .drawer-links .soon { display: flex; align-items: center; min-height: 44px; padding: 0 1rem; color: #cfd8ea; }
  .drawer-links a.on { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--accent); }
  .drawer-links .soon { opacity: .5; gap: .4rem; }
  .drawer-form { display: flex; align-items: flex-end; gap: .5rem; padding: .5rem 1rem; border-top: 1px solid var(--line); }
  .drawer-form label { display: flex; flex-direction: column; flex: 1; gap: .2rem; }
  .drawer-form select, .drawer-form button { min-height: 44px; }
  .drawer-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .75rem 1rem 0; border-top: 1px solid var(--line); }
  .drawer-foot a, .drawer-foot button { min-height: 44px; display: inline-flex; align-items: center; }
  body.menu-open { overflow: hidden; }
  /* Room below the last card for the browser's own toolbars and the home indicator. */
  main { padding-bottom: calc(env(safe-area-inset-bottom) + 5rem); }
  .infra-tabs { margin: -1rem -1rem .6rem; }
  /* The summary stays on one line at 375px. */
  .infra-summary { flex-wrap: nowrap; gap: 0; padding: 0 .2rem; font-size: .9rem; overflow-x: auto; scrollbar-width: none; }
  .infra-summary::-webkit-scrollbar { display: none; }
  .infra-summary .count { padding: 0 .35rem; white-space: nowrap; }
  .infra-summary .count .light { margin-right: .2rem; }
  .infra-summary .checked { white-space: nowrap; font-size: .82rem; padding-right: .35rem; }
  .drawer-links .group { padding: .6rem 1rem .1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .site h2 { font-size: 1.05rem; }
}

/* Costs (HUB-20261111-05) */
.cost-card .type { font-size: .85rem; text-transform: none; letter-spacing: 0; color: var(--ink); border: 0; font-weight: 700; }
.cost-lines { list-style: none; margin: 0; padding: .4rem .8rem .7rem; display: grid; gap: .35rem; }
.cost-lines li { display: flex; justify-content: space-between; gap: .75rem; }
.cost-lines li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cost-lines li > span:last-child { flex: none; font-variant-numeric: tabular-nums; }
details.invoice { margin-bottom: .6rem; }

/* Locations, Databases, Storage, Backups and the demo-safe cards (HUB-20261111-06) */
article.infra-card { position: relative; display: grid; gap: .15rem; padding: .6rem .8rem; }
article.infra-card .l1 { display: flex; align-items: center; gap: .35rem; min-width: 0; min-height: 28px; }
article.infra-card .l1 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
article.infra-card .card-link { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
article.infra-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }   /* the whole card opens it */
article.infra-card .card-link:hover { text-decoration: none; }
article.infra-card .above { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
article.infra-card .type { margin-left: auto; flex: none; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; }
article.infra-card:focus-within { border-color: var(--accent); }
article.infra-card { min-height: 44px; }
.subtabs { display: flex; gap: .25rem; margin: 0 0 .75rem; overflow-x: auto; }
.subtabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 8px; color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap; }
.subtabs a.on { color: var(--ink); border-color: var(--accent); background: rgba(110,168,255,.12); }
.subtabs a:hover { text-decoration: none; color: var(--ink); }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.loc h2 { margin-bottom: .4rem; }
.loc-lights { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0 0 .5rem; }
.loc-links { list-style: none; margin: 0; padding: 0; }
.loc-links li { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
.loc-links li a { display: inline-flex; align-items: center; min-height: 44px; }
dl.bk { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .8rem; margin: .3rem 0 0; }
dl.bk dt { color: var(--muted); } dl.bk dd { margin: 0; }
details.connection > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .5rem; }
dl.conn { margin-top: .6rem; } dl.conn dd { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
dl.conn .copy { min-height: 44px; }
.log-form .stack { display: grid; gap: .5rem; margin-top: .6rem; max-width: 520px; }
.log-form label { display: grid; gap: .2rem; }
.log-form summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
