:root {
  --ink-strong: #111;
  --ink-soft: #5a5a55;
  --ink-muted: #9aa0a6;
  --ink-placeholder: #c4c2bc;

  --surface-page: #fafaf7;
  --surface-card: #fff;
  --surface-cream: #f0ede8;
  --surface-mint-soft: #f6fdf9;
  --surface-mint-icon: #ecfdf5;

  --border-soft: #ece9e2;
  --border-cream: #e3dfd6;
  --border-mint-soft: #cfe9dd;

  --mint-fg: #0d8a63;
  --mint-bright: #10b981;
  --mint-glow: #34d399;
  --mint-deep: #054a36;

  --amber-fg: #b45309;
  --amber-bg: #fdf3e7;
  --amber-br: #f0d3a8;

  --red-fg: #b91c1c;
  --red-bg: #fef2f2;
  --red-br: #fecaca;

  --neutral-bg: #f3f1ec;
  --radius-card: 14px;

  /* Both stacks name a webfont first and a real system fallback after it: the
     Google Fonts link above is the one thing on this surface that reaches off
     origin, and an onsite network that blocks it must still render a finished
     page rather than a default-serif one. */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

/* The `hidden` attribute is only `display: none` in the UA stylesheet, so *any*
   author rule that sets `display` silently defeats it — `.c-err { display: flex }`
   made the standing "something went wrong" message show on first paint, and the
   password toggle rendered both of its icons at once. Both were marked `hidden` and
   both ignored it. This makes the attribute mean what it says, everywhere. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink-strong);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint-fg); text-decoration: none; }
a:hover { color: var(--mint-deep); }

/* Every interactive target clears 44px, the phone-sized hit area this surface is
   designed around; it is a floor, not a height. */
.c-app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- header */

.c-top { background: var(--surface-card); border-bottom: 1px solid var(--border-soft); }
.c-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Mobile-first: two rows. Identity and account on top, the pickers on their own
   full-width row beneath. Cramming both into one row on a 390px phone leaves each
   picker a few characters wide, which is useless for a name like "Lakeview Business
   Park". The 860px block below collapses them back into one row. */
/* One wrapping flex row. On a phone the pickers take `flex-basis: 100%` and drop
   to their own line beneath the account controls; at 860px `order` pulls them back
   up beside the mark. Wrapping rather than two separate containers is what lets the
   same markup be one row or two without duplicating it. */
.c-headtop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 2px; }
.c-wordmark { font-size: 13.5px; font-weight: 700; letter-spacing: -0.2px; }

/* Two equal halves, so neither picker starves the other. */
.c-picks {
  flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; padding: 4px 0 2px;
}

/* A dropdown, and the same thing with nothing to choose from. Both draw the same
   label-over-value pair, so a reader with one site and a reader with ten see the
   header laid out identically. */
.c-dd { position: relative; min-width: 0; }
.c-dd > summary, .c-dd-flat {
  display: flex; align-items: center; gap: 6px; min-height: 46px;
  padding: 5px 10px; border-radius: 10px; min-width: 0;
  border: 1px solid var(--border-soft); background: var(--surface-page);
  list-style: none; cursor: pointer;
}
.c-dd-flat { cursor: default; }
.c-dd > summary::-webkit-details-marker { display: none; }
.c-dd > summary:hover { border-color: var(--border-cream); }
.c-dd[open] > summary { border-color: var(--mint-fg); background: var(--surface-card); }
.c-dd > summary svg { flex: none; color: var(--ink-muted); }
.c-picks .txt { min-width: 0; flex: 1; }
.c-picks .lbl {
  display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-muted); line-height: 1.2;
}
.c-picks .val {
  display: block; font-size: 13.5px; font-weight: 650; letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* On a phone the menu spans its own picker rather than a fixed width, so a long
   operator name can never push it off the right edge of the screen. */
.c-ddmenu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  max-height: 60vh; overflow-y: auto;
  padding: 5px; border-radius: 12px;
  background: var(--surface-card); border: 1px solid var(--border-cream);
  box-shadow: 0 8px 24px rgba(15, 12, 8, .12);
}
.c-ddmenu a {
  display: block; min-height: 44px; padding: 10px 11px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-strong);
}
.c-ddmenu a span { display: block; font-size: 11px; font-weight: 400; color: var(--ink-muted); margin-top: 1px; }
.c-ddmenu a:hover { background: var(--surface-page); color: var(--ink-strong); }
.c-ddmenu a.on { color: var(--mint-fg); background: var(--surface-mint-icon); }

.c-sitemeta { font-size: 11px; color: var(--ink-muted); margin: 0; padding: 4px 0 10px 2px; }
.c-plan-hd { flex: none; }

.c-signout-form { flex: none; display: flex; }
.c-signout {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px;
  border: 0; background: transparent; color: var(--ink-muted);
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.c-signout:hover { color: var(--ink-strong); }
/* On a phone the label would crowd the site name off the row, so the icon carries
   it alone; the button keeps its full 44px target either way. */
.c-signout-label { display: none; }
/* The brand mark. `.c-brand` and `.c-navrow` size it themselves; this is the base. */
.c-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--mint-fg), var(--mint-glow));
}

.c-av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--surface-cream); border: 1px solid var(--border-cream);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
}

/* ------------------------------------------------------------ live strip */

.c-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
.c-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--mint-fg);
  background: var(--surface-mint-icon); border: 1px solid var(--border-mint-soft);
  padding: 4px 9px; border-radius: 999px;
}
.c-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-bright); display: block; animation: c-beat 1.8s ease-in-out infinite; }
@keyframes c-beat { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* The heartbeat is decoration, and a viewer who asked for less motion should not
   have a pulsing dot in the corner of a page they leave open all day. */
@media (prefers-reduced-motion: reduce) { .c-live i { animation: none; } }
.c-status .c-txt { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.c-status .c-txt b { color: var(--ink-strong); font-weight: 600; }
.c-status .c-stamp { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-placeholder); }

/* ------------------------------------------------------------- tab bars */

/* Phone: a fixed bottom bar. `.c-body` reserves its height plus the home-indicator
   inset so the last card is never trapped under it. */
.c-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--border-soft);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.c-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 48px; border-radius: 12px;
  font-size: 10.5px; font-weight: 600; color: var(--ink-muted);
}
.c-tab:hover { color: var(--ink-soft); }
.c-tab.on { color: var(--mint-fg); }
.c-tab.on:hover { color: var(--mint-fg); }

.c-body { flex: 1; padding: 14px 0 calc(104px + env(safe-area-inset-bottom)); }

/* --------------------------------------------------------------- pieces */

.c-sect {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); margin: 18px 0 9px;
}
.c-sect:first-child { margin-top: 0; }

.c-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.c-tile { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 12px 13px; }
.c-tile .k { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.c-tile .v { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: -0.8px; margin-top: 5px; line-height: 1.05; }
.c-tile .v small { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; margin-left: 4px; }
.c-tile .m { font-size: 11px; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }
.c-tile .m b { color: var(--ink-strong); font-weight: 600; }
.c-tile.good .v { color: var(--mint-fg); }

.c-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface-page); border: 1px solid var(--border-soft);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.c-chip.ok { color: var(--mint-fg); background: var(--surface-mint-icon); border-color: var(--border-mint-soft); }
.c-chip.warn { color: var(--amber-fg); background: var(--amber-bg); border-color: var(--amber-br); }
.c-chip.bad { color: var(--red-fg); background: var(--red-bg); border-color: var(--red-br); }
.c-chip.off { color: var(--ink-muted); background: var(--neutral-bg); border-color: var(--border-cream); }

/* charger card — compact, because four of them plus the tiles and the session list
   is most of a phone screen, and a charger that is just "online, both ready" does not
   deserve six lines. */
.c-grid { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; }
.c-cc { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; }
.c-cc.dim { background: var(--neutral-bg); }
.c-cc-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-cc-name { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.c-cc-name b { font-size: 13.5px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.c-cc-id { font-family: var(--mono); font-size: 10.5px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-cc-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.c-cc-note { font-size: 11px; color: var(--red-fg); font-weight: 500; margin-top: 7px; line-height: 1.4; }

.c-conns { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.c-conn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 32px; padding: 5px 9px; border-radius: 8px;
  background: var(--surface-page); border: 1px solid var(--border-soft);
}
.c-conn.live { background: var(--surface-mint-soft); border-color: var(--border-mint-soft); }
.c-conn .l { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.c-conn .r { text-align: right; display: flex; align-items: center; gap: 6px; }
/* a charging connector: opens its session's live figures */
.c-conn-btn { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.c-conn-btn:hover { border-color: var(--mint-fg); }
.c-conn-btn:focus-visible { outline: 2px solid var(--mint-fg); outline-offset: 2px; }
.c-conn-go { color: var(--ink-muted); flex: none; }

/* one recent session */
.c-srow {
  display: flex; align-items: center; gap: 11px; min-height: 44px;
  background: var(--surface-card); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 7px;
}
.c-srow .t { font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); width: 58px; flex: none; }
/* the day above the time: "Today", "Yesterday", "28 Sep" */
.c-srow .t small { display: block; font-size: 10px; line-height: 1.3; }
.c-srow .c { flex: 1; min-width: 0; }
.c-srow .c b { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 600; word-break: break-all; }
.c-srow .c span { font-size: 11px; color: var(--ink-muted); }
.c-srow .a { text-align: right; flex: none; }
.c-srow .a b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.c-srow .a span { font-size: 10.5px; color: var(--ink-muted); }
/* The site picker renders this row as a link; it must read as a row, not as prose
   that happens to be clickable, so it keeps the page's ink and takes the accent on
   its border instead. */
a.c-srow { color: inherit; }
a.c-srow:hover { color: inherit; border-color: var(--mint-fg); }
a.c-srow .a { color: var(--ink-muted); display: flex; align-items: center; }

/* A session row that opens its detail. It is a <button>, so it needs the type and
   alignment resets a div never did. */
.c-srow-btn {
  width: 100%; font-family: inherit; text-align: left; color: inherit; cursor: pointer;
}
.c-srow-btn:hover { border-color: var(--mint-fg); }
.c-srow-btn:focus-visible { outline: 2px solid var(--mint-fg); outline-offset: 2px; }

/* ------------------------------------------------------------- modal */

.c-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 12, 8, .38);
}
/* Mobile-first: a sheet anchored to the bottom of the screen, which is where a
   thumb is. It becomes a centred dialog once there is room. */
.c-modal {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0;
  max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface-card);
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  box-shadow: 0 -8px 32px rgba(15, 12, 8, .18);
}
.c-modal-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--border-soft);
}
.c-modal-hd h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.c-modal-eyebrow { font-size: 11px; color: var(--ink-muted); margin: 0 0 3px; }
.c-modal-x {
  flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink-muted); cursor: pointer;
}
.c-modal-x:hover { color: var(--ink-strong); }
.c-modal-bd { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; }
.c-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.c-modal-amt { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.c-modal-amt.unpaid { color: var(--red-fg); }
.c-modal-amt.running { color: var(--mint-deep); }
.c-modal-amt.muted { color: var(--ink-muted); }
.c-modal-amt.returned { color: var(--ink-muted); text-decoration: line-through; }

/* a running session's live figures, inside its modal */
.c-live-sess {
  background: var(--surface-mint-soft); border: 1px solid var(--border-mint-soft);
  border-radius: 10px; padding: 11px 12px; margin-bottom: 14px;
}
.c-live-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.c-live-hd .k { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.c-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.c-live-grid .k { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.c-live-grid .v { display: block; font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--mint-deep); margin-top: 3px; }
.c-live-grid .v small { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-muted); margin-left: 3px; }
.c-live-note { font-size: 12px; color: var(--ink-soft); margin: 0; }
.c-live-since { font-size: 11px; color: var(--ink-muted); margin: 9px 0 0; }

.c-more { display: block; text-align: center; font-size: 13px; font-weight: 600; padding: 13px; margin-top: 4px; }
.c-empty { color: var(--ink-muted); font-size: 13px; text-align: center; padding: 22px 0; }

/* ---------------------------------------------------- centred auth pages */

.c-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 16px; }
.c-col { width: 100%; max-width: 400px; margin: 0 auto; }
.c-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.c-brand .c-mark { width: 30px; height: 30px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--mint-fg), var(--mint-glow)); }
.c-brand .c-who { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.c-brand .c-who span { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }

.c-card { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 22px 20px; }
/* `overflow-wrap` because both of these interpolate values nobody here controls — a
   first name, an operator's organisation name, a sign-in email set in prose rather
   than in `.c-whobox`, which breaks them itself. None of those are guaranteed to carry
   a break opportunity (an address offers none at `@` or `.`), and one long enough
   overruns the ~246px of card a 320px phone has. */
.c-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin: 0; overflow-wrap: anywhere; }
.c-card .c-lead { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.5; overflow-wrap: anywhere; }

.c-field { margin-top: 16px; }
.c-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.c-wrap {
  display: flex; align-items: center;
  background: var(--surface-page); border: 1px solid var(--border-cream); border-radius: 10px;
}
.c-wrap:focus-within { border-color: var(--mint-fg); box-shadow: 0 0 0 3px var(--surface-mint-icon); }
.c-wrap.bad { border-color: var(--red-br); background: var(--red-bg); }
/* 16px is a floor, not a taste: iOS Safari zooms the page in when a focused input's
   font-size is below it, and it does not zoom back out on blur — so the invitee taps
   First name and spends the rest of the form on a magnified, side-scrolling page. */
.c-wrap input {
  flex: 1; min-width: 0; min-height: 44px; padding: 11px 12px;
  border: 0; background: transparent; color: var(--ink-strong);
  font-family: inherit; font-size: 16px;
}
.c-wrap input:focus { outline: none; }
.c-wrap input::placeholder { color: var(--ink-placeholder); }
.c-eye {
  flex: none; min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink-muted); cursor: pointer;
}
.c-eye:hover { color: var(--ink-soft); }

.c-go {
  display: block; width: 100%; min-height: 46px; margin-top: 20px;
  border: 0; border-radius: 10px;
  background: var(--mint-fg); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 650; text-align: center;
  cursor: pointer;
}
.c-go:hover { background: var(--mint-deep); color: #fff; }
/* htmx's `hx-disabled-elt` drives this while the sign-in request is in flight. */
.c-go:disabled { opacity: .6; cursor: default; }

.c-err {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 16px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--red-bg); border: 1px solid var(--red-br);
  color: var(--red-fg); font-size: 12.5px; line-height: 1.45;
}
.c-err svg { flex: none; margin-top: 1px; }

.c-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.c-row .c-muted { color: var(--ink-muted); }
.c-foot { font-size: 12px; color: var(--ink-muted); line-height: 1.55; margin: 18px 0 0; }
.c-foot b { color: var(--ink-soft); font-weight: 650; }

/* The quiet line under a field or a button. `invite/done` and `client/pricing_rate_modal`
   both used this class against no rule at all, so it rendered as a bare `<p>` — 16px
   near-black with 16px margins, the loudest thing in a card of 12px muted text. */
.c-hint { font-size: 11.5px; color: var(--ink-muted); line-height: 1.45; margin: 6px 0 0; }
/* Following the primary button it is introducing the row *below* it, so it needs to
   sit with that row rather than tight against the button. */
.c-go + .c-hint { margin-top: 18px; }

/* ------------------------------------------------------ invite flow */

.c-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.c-steps .n { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-right: 4px; }
.c-steps .bar { flex: 1; height: 3px; border-radius: 999px; background: var(--neutral-bg); }
.c-steps .bar.on { background: var(--mint-fg); }

.c-gets { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.c-get { display: flex; align-items: flex-start; gap: 10px; }
.c-get .ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--mint-fg); background: var(--surface-mint-icon);
  border: 1px solid var(--border-mint-soft);
}
.c-get .tx { font-size: 13px; font-weight: 650; line-height: 1.35; }
.c-get .tx span { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-muted); margin-top: 2px; line-height: 1.45; }

.c-whobox {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; margin-top: 16px;
  border: 1px dashed var(--border-cream); border-radius: 10px;
  background: var(--surface-page);
}
.c-whobox .k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.c-whobox .v { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.c-whobox .lock { flex: none; color: var(--ink-placeholder); display: flex; }

.c-expiry { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--ink-muted); }
.c-expiry svg { flex: none; }

/* Two fields side by side is a width the phone does not have: a bare `1fr` is
   `minmax(auto, 1fr)`, so each track is floored at its content's min-content width —
   and a text input's is its default `size=20`, about 180px. Two of those plus the gap
   wants ~400px against the ~300px a card has on a phone, and the last-name field went
   off the side of the screen. So the pair stacks like every other field and the
   860px breakpoint buys the second column back, the same way it does for `.c-cols`.
   `minmax(0, 1fr)` there rather than `1fr`, so the row can never be pushed wider than
   its card again — a `0` min also drops the grid item's automatic minimum size, so the
   field collapses to its track and the input shrinks with it.

   No gap while stacked: `.c-field`'s own top margin is the form's field rhythm, and a
   row gap would add to it and space these two further apart than every other pair. */
.c-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.c-grid2 .c-field { margin-top: 16px; }

/* The live password checklist. Every rule starts unmet and the page's script turns
   them green; the rules mirror `validate_password`, not the design's shorter list. */
.c-rules { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.c-rule { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-muted); }
.c-rule .dot {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--border-cream); background: transparent;
  position: relative;
}
.c-rule.met { color: var(--mint-fg); }
.c-rule.met .dot { border-color: var(--mint-fg); background: var(--mint-fg); }
/* The tick is drawn in CSS so a rule flipping green costs no request. */
.c-rule.met .dot::after {
  content: ""; position: absolute; left: 3.5px; top: 1px;
  width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.c-tick {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
  color: var(--mint-fg); background: var(--surface-mint-icon);
  border: 1px solid var(--border-mint-soft);
}
.c-tick.expired { color: var(--amber-fg); background: var(--amber-bg); border-color: var(--amber-br); }
.c-tick.gone { color: var(--red-fg); background: var(--red-bg); border-color: var(--red-br); }
.c-tick.used { color: var(--ink-muted); background: var(--neutral-bg); border-color: var(--border-cream); }

/* An anchor styled as the primary button. */
.c-go-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.c-go-link:hover { color: #fff; }

.c-copy { display: flex; align-items: stretch; gap: 8px; margin-top: 6px; }
.c-url {
  flex: 1; min-width: 0; padding: 9px 11px;
  border: 1px dashed var(--border-cream); border-radius: 8px;
  background: var(--surface-page); color: var(--ink-soft);
  font-family: var(--mono); font-size: 11.5px; word-break: break-all;
}
.c-btn-sm {
  flex: none; min-height: 44px; padding: 0 13px;
  border: 1px solid var(--border-cream); border-radius: 8px;
  background: var(--surface-card); color: var(--ink-soft);
  font-family: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
}
.c-btn-sm:hover { border-color: var(--mint-fg); color: var(--mint-fg); }

/* ------------------------------------------------- navigation pages */

.c-col-wide { max-width: 560px; }
.c-mark.sm { width: 26px; height: 26px; border-radius: 8px; }

.c-navrow {
  display: flex; align-items: center; gap: 11px; min-height: 56px;
  background: var(--surface-card); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 12px 14px; margin-top: 9px;
  color: inherit;
}
.c-navrow:hover { color: inherit; border-color: var(--mint-fg); }
.c-navrow .c { flex: 1; min-width: 0; }
.c-navrow .c b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -0.2px; }
.c-navrow .c span { display: block; font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }
.c-navrow .a { flex: none; color: var(--ink-muted); display: flex; align-items: center; }
.c-navrow .c-plan { flex: none; }

.c-plan {
  font-size: 8.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--mint-fg); background: var(--surface-mint-icon);
  border: 1px solid var(--border-mint-soft); padding: 2px 7px; border-radius: 999px;
}

.c-navout {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 20px; font-size: 12px; color: var(--ink-muted);
}
.c-navout b { color: var(--ink-soft); font-weight: 650; }
.c-navout button {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border-cream); border-radius: 10px;
  background: var(--surface-card); color: var(--ink-soft);
  font-family: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
}
.c-navout button:hover { border-color: var(--mint-fg); color: var(--mint-fg); }

/* Written for the `<a>` in `client/sites`, then reused on the `<button>` in
   `invite/form` — where, with no global `button` reset in this sheet, it kept the UA
   grey fill, outset border and system font and rendered as a raw platform button.
   Every other button class here (`.c-go`, `.c-eye`, `.c-btn-sm`) clears those itself. */
.c-back {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-muted);
}
.c-back:hover { color: var(--ink-strong); }

/* ------------------------------------------------------- tab pages */

.c-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.c-hd h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.5px; margin: 0; }
.c-spacer { flex: 1; }
.c-lead-wide { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin: 6px 0 14px; max-width: 62ch; }
.c-lead-wide b { color: var(--ink-strong); font-weight: 650; }
.c-count { font-size: 11.5px; color: var(--ink-muted); margin-top: 14px; }
.c-srcnote { font-size: 11.5px; color: var(--ink-muted); line-height: 1.55; margin-top: 16px; }
.c-srcnote b { color: var(--ink-soft); font-weight: 650; }

/* segmented period control, and the session filters — same idea, both plain links */
.c-seg { display: flex; gap: 2px; background: var(--neutral-bg); border-radius: 10px; padding: 3px; }
.c-seg a {
  min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted);
}
.c-seg a.on { background: var(--surface-card); color: var(--ink-strong); box-shadow: 0 1px 2px rgba(15,12,8,.06); }

.c-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.c-fchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--border-soft); border-radius: 999px;
  background: var(--surface-card); color: var(--ink-soft);
  font-size: 12.5px; font-weight: 600;
}
.c-fchip:hover { border-color: var(--mint-fg); color: var(--mint-fg); }
.c-fchip.on { background: var(--mint-fg); border-color: var(--mint-fg); color: #fff; }
.c-fchip.on:hover { color: #fff; }
.c-fchip .n { font-family: var(--mono); font-size: 11px; opacity: .75; }

/* ------------------------------------------------------- session card */

.c-sc {
  background: var(--surface-card); border: 1px solid var(--border-soft);
  border-radius: 12px; margin-bottom: 7px;
}
.c-sc[open] { border-color: var(--border-cream); }
.c-sc summary {
  list-style: none; cursor: pointer; padding: 11px 14px; min-height: 44px;
  display: flex; flex-direction: column; gap: 5px;
}
/* Safari draws its own marker unless this is hidden too. */
.c-sc summary::-webkit-details-marker { display: none; }
.c-sc summary:hover { background: var(--surface-page); border-radius: 12px; }
.c-sc-l1 { display: flex; align-items: baseline; gap: 8px; }
.c-sc-l1 .cid { font-family: var(--mono); font-size: 13px; font-weight: 600; word-break: break-all; }
.c-sc-l1 .conn { font-size: 11px; color: var(--ink-muted); }
.c-sc-l1 .amt { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 650; }
.c-sc-l1 .amt.unpaid { color: var(--red-fg); }
.c-sc-l1 .amt.running { color: var(--mint-deep); }
.c-sc-l1 .amt.muted { color: var(--ink-muted); }
/* A refunded amount is struck through: the figure is real, the money is not. */
.c-sc-l1 .amt.returned { color: var(--ink-muted); text-decoration: line-through; }
.c-sc-l2 { display: flex; align-items: center; gap: 8px; }
.c-sc-l2 .meta { font-size: 11.5px; color: var(--ink-muted); }
.c-sc-l2 .chev { margin-left: auto; color: var(--ink-muted); display: flex; transition: transform .15s ease; }
.c-sc[open] .c-sc-l2 .chev { transform: rotate(180deg); }

/* Status is a coloured **pill**, not tinted text — on a list where every row looks
   alike, the fill is what lets someone find the one bad session at a glance. Colours
   follow the design: mint for money in, red for money missing, amber for "look at
   this", grey for reversed. */
.c-st {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.c-st i { display: block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-st.live { color: var(--mint-fg); background: var(--surface-mint-icon); border-color: var(--border-mint-soft); }
.c-st.live i { animation: c-beat 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .c-st.live i { animation: none; } }
.c-st.paid { color: var(--mint-deep); background: var(--surface-mint-soft); border-color: var(--border-mint-soft); }
.c-st.declined { color: var(--red-fg); background: var(--red-bg); border-color: var(--red-br); }
.c-st.fault { color: var(--red-fg); background: var(--red-bg); border-color: var(--red-br); }
.c-st.flag { color: var(--amber-fg); background: var(--amber-bg); border-color: var(--amber-br); }
.c-st.refunded { color: var(--ink-soft); background: var(--neutral-bg); border-color: var(--border-cream); }

/* The itemised charges inside an expanded session. */
.c-charges { display: flex; flex-direction: column; gap: 4px; }
.c-chg { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; }
.c-chg .k { color: var(--ink-muted); }
.c-chg .v { font-family: var(--mono); font-size: 11.5px; }
.c-chg.total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--border-soft); font-weight: 650; }
.c-chg.total .k { color: var(--ink-strong); }
.c-chg.total .v { font-size: 13px; font-weight: 700; }

.c-detail { padding: 2px 14px 14px; border-top: 1px solid var(--border-soft); }
.c-dtitle { font-size: 12.5px; font-weight: 650; margin: 12px 0 10px; }
.c-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 12px; margin: 0; }
.c-dl dt { font-size: 11.5px; color: var(--ink-muted); }
.c-dl dd { font-size: 12px; margin: 0; word-break: break-word; }
.c-dl dd.mono { font-family: var(--mono); font-size: 11.5px; }
.c-dl dd small { display: block; font-size: 10.5px; color: var(--ink-muted); margin-top: 2px; }
.c-join { font-size: 11.5px; color: var(--ink-soft); line-height: 1.55; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--border-soft); }

/* ------------------------------------------------------ pricing tab */

.c-cols { display: grid; grid-template-columns: 1fr; gap: 11px; align-items: start; margin-top: 12px; }
.c-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--border-soft); }
.c-card-hd h3 { font-size: 13px; font-weight: 650; margin: 0; }
.c-card-hd .sub { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.c-card-bd { padding: 14px 15px; }
/* The card wrapper doubles as a plain panel elsewhere, so headed cards zero its
   padding and let the header and body own their own. */
.c-cols .c-card, .c-body .c-card { padding: 0; margin-bottom: 11px; }
.c-body .c-card h1, .c-body .c-card h3:not(.c-card-hd h3) { padding: 0; }

.c-rate { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.c-rate .amt { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.c-rate .per { font-size: 11.5px; color: var(--ink-muted); line-height: 1.35; }
.c-rate .per b { display: block; color: var(--ink-soft); font-weight: 650; }
.c-rate .act { margin-left: auto; }
.c-primary {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--mint-fg); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}
.c-primary:hover { background: var(--mint-deep); }
.c-primary:disabled { background: var(--neutral-bg); color: var(--ink-muted); cursor: not-allowed; }

.c-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.c-meta .line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.c-meta .line b { font-family: var(--mono); font-size: 12.5px; color: var(--ink-strong); font-weight: 650; }

/* The "set by Energy Maestro" boxes. A tone per card so the eye can tell a live tax
   or a set fee from one that is simply off, instead of eight identical grey rows. */
.c-lgrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.c-lbox {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface-page); border: 1px solid var(--border-soft);
}
.c-lbox .ic {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--ink-muted); background: var(--surface-card);
  border: 1px solid var(--border-soft);
}
.c-lbox .tx { min-width: 0; }
.c-lbox .nm {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-muted);
}
.c-lbox .vl { display: block; font-size: 12.5px; font-weight: 600; margin-top: 2px; line-height: 1.4; }

/* Money in, and how it is collected. */
.c-lbox.tone-mint { background: var(--surface-mint-soft); border-color: var(--border-mint-soft); }
.c-lbox.tone-mint .ic { color: var(--mint-fg); background: var(--surface-mint-icon); border-color: var(--border-mint-soft); }
.c-lbox.tone-mint .vl { color: var(--mint-deep); }

/* Tax — money that is collected but is not the site's. */
.c-lbox.tone-amber { background: var(--amber-bg); border-color: var(--amber-br); }
.c-lbox.tone-amber .ic { color: var(--amber-fg); background: var(--surface-card); border-color: var(--amber-br); }
.c-lbox.tone-amber .vl { color: var(--amber-fg); }

/* A fee that is actually set. */
.c-lbox.tone-ink .ic { color: var(--ink-strong); }
.c-lbox.tone-ink .vl { color: var(--ink-strong); }

/* Not set — deliberately quiet, so "none" does not compete with a real number. */
.c-lbox.tone-off { background: var(--surface-card); }
.c-lbox.tone-off .ic { color: var(--ink-placeholder); }
.c-lbox.tone-off .vl { color: var(--ink-muted); font-weight: 500; }

.c-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.c-chip.mono { font-family: var(--mono); }
.c-callout { font-size: 12px; color: var(--ink-soft); line-height: 1.55; background: var(--amber-bg); border: 1px solid var(--amber-br); border-radius: 10px; padding: 11px 12px; }
.c-callout b { color: var(--amber-fg); font-weight: 650; }

/* Saved banner after a pricing write. */
.c-saved {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface-mint-icon); border: 1px solid var(--border-mint-soft);
}
.c-saved .tick { flex: none; color: var(--mint-fg); display: flex; margin-top: 1px; }
.c-saved .txt { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.c-saved .txt b { display: block; color: var(--mint-deep); font-size: 13px; font-weight: 700; margin-bottom: 2px; }

/* A button that reads as a link — for a secondary action inside a card header. */
.c-linkbtn {
  border: 0; background: transparent; padding: 4px 0;
  font-family: inherit; font-size: 11.5px; font-weight: 650;
  color: var(--mint-fg); cursor: pointer;
}
.c-linkbtn:hover { color: var(--mint-deep); text-decoration: underline; }

/* Modal footer, and the two buttons every confirmation uses. */
.c-modal-ft { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.c-modal-ft .c-primary, .c-modal-ft .c-ghost { min-height: 44px; }
.c-ghost {
  padding: 0 14px; border: 1px solid var(--border-cream); border-radius: 10px;
  background: var(--surface-card); color: var(--ink-soft);
  font-family: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}
.c-ghost:hover { border-color: var(--ink-muted); color: var(--ink-strong); }

/* Before / after, on a confirmation. */
.c-beforeafter {
  display: flex; flex-direction: column; gap: 8px; margin-top: 14px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface-page); border: 1px solid var(--border-soft);
}
.c-ba { display: flex; flex-direction: column; gap: 2px; }
.c-ba .k { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.c-ba .v { font-size: 13px; font-weight: 600; }
.c-callout-warn { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.c-callout-warn svg { flex: none; margin-top: 1px; color: var(--amber-fg); }

/* The price-rule picker. */
.c-rules-list { display: flex; flex-direction: column; gap: 7px; }
.c-rulepick {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--surface-card); border: 1px solid var(--border-soft);
}
.c-rulepick:hover { border-color: var(--mint-fg); }
.c-rulepick.on { background: var(--surface-mint-soft); border-color: var(--border-mint-soft); }
.c-rulepick input { flex: none; margin-top: 2px; accent-color: var(--mint-fg); width: 17px; height: 17px; }
.c-rulepick .tx { flex: 1; min-width: 0; }
.c-rulepick .tx b {
  display: block; font-size: 14px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis;
}
.c-rulepick .meta { display: block; font-size: 11px; color: var(--ink-muted); margin-top: 2px; line-height: 1.45; }
/* Right-aligned so a column of rates lines up and can be read down. */
.c-rulepick .rate { flex: none; text-align: right; padding-left: 4px; }
.c-rulepick .rate b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.c-rulepick .rate span { display: block; font-size: 10px; color: var(--ink-muted); margin-top: 1px; }
.c-rulepick.on .rate b { color: var(--mint-deep); }

/* Currency prefix inside the rate input. */
.c-cur { flex: none; padding-left: 12px; font-size: 15px; font-weight: 650; color: var(--ink-muted); }

.c-hrow { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.c-hrow .v { font-family: var(--mono); font-size: 14px; font-weight: 650; }
.c-hrow .w { flex: 1; font-size: 12px; color: var(--ink-soft); }
.c-hrow .w span { display: block; font-size: 11px; color: var(--ink-muted); }
.c-hrow .tag { flex: none; }

/* -------------------------------------------------- performance tab */

.c-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.c-mini { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 11px 13px; }
.c-mini .k { display: block; font-size: 10.5px; color: var(--ink-muted); }
.c-mini .v { display: block; font-family: var(--mono); font-size: 15px; font-weight: 650; margin-top: 3px; }

.c-plot { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 4px; }
.c-bar { flex: 1; min-width: 3px; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--mint-glow); }
.c-bar:hover { background: var(--mint-fg); }
.c-xaxis { display: flex; gap: 3px; margin-top: 6px; }
.c-xaxis span { flex: 1; min-width: 0; font-size: 9.5px; color: var(--ink-muted); text-align: center; overflow: hidden; white-space: nowrap; }
.c-plotnote { font-size: 11px; color: var(--ink-muted); margin: 10px 0 0; }

.c-crow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.c-crow:last-child { border-bottom: 0; }
.c-crow .id { font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.c-crow .sub { font-family: inherit; }
.c-crow .n { font-family: var(--mono); font-size: 12.5px; font-weight: 650; text-align: right; }
.c-crow .sub { font-size: 11px; color: var(--ink-muted); }
.c-crow .sub.r { text-align: right; }
.c-crow .track { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--neutral-bg); margin-top: 6px; overflow: hidden; }
.c-crow .track i { display: block; height: 100%; background: var(--mint-glow); border-radius: 999px; }

/* ------------------------------------------------------------- ≥ 860px */

@media (min-width: 860px) {
  /* The bar stops floating and becomes a row of top tabs under the header. */
  .c-tabbar {
    position: static; z-index: auto;
    max-width: 1180px; margin: 0 auto; padding: 0 16px;
    background: transparent; border-top: 0;
    display: flex; gap: 2px;
  }
  .c-tab {
    flex-direction: row; gap: 8px;
    min-height: 44px; padding: 11px 15px 12px; border-radius: 0;
    border-bottom: 2px solid transparent; font-size: 13.5px;
  }
  .c-tab.on { border-bottom-color: var(--mint-fg); }

  .c-in { padding: 0 20px; }
  .c-body { padding: 18px 0 28px; }
  .c-status { padding-bottom: 14px; }
  .c-status .c-txt { font-size: 13px; }
  .c-status .c-stamp { font-size: 11px; }

  /* Width buys one row back: `order` lifts the pickers up beside the mark, and the
     account controls stay at the far edge. */
  .c-headtop { flex-wrap: nowrap; gap: 10px; padding: 14px 0 0; }
  .c-mark { width: 32px; height: 32px; border-radius: 10px; order: 0; }
  /* The wordmark is what tells a phone reader which app they are in while the
     pickers sit on their own line. With the pickers alongside, it is noise. */
  .c-wordmark { display: none; }
  .c-picks {
    order: 1; flex: 0 1 auto; flex-basis: auto;
    display: flex; gap: 6px; padding: 0; min-width: 0;
  }
  .c-headtop .c-spacer { order: 2; }
  .c-headtop .c-plan-hd, .c-headtop .c-av, .c-headtop .c-signout-form { order: 3; }
  .c-picks .c-dd, .c-picks .c-dd-flat { max-width: 240px; min-width: 0; }
  .c-picks .val { font-size: 14.5px; }
  /* Back to a menu sized by its content once there is room for it. */
  .c-ddmenu { right: auto; min-width: 260px; max-width: 340px; }
  .c-sitemeta { padding: 6px 0 12px 2px; }

  .c-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
  .c-tile { padding: 13px 15px; }
  .c-tile .v { font-size: 25px; }
  .c-tile .m { font-size: 11.5px; }

  .c-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .c-cc { padding: 12px 14px; }
  .c-sect { margin: 20px 0 10px; }

  .c-srow { gap: 14px; padding: 11px 15px; }
  .c-srow .t { width: 64px; }
  .c-srow .c b { display: inline; font-size: 13px; }
  .c-srow .c span { font-size: 11.5px; margin-left: 8px; }
  .c-srow .a b { font-size: 13.5px; }
  .c-more { display: inline-block; text-align: left; padding: 10px 2px; }

  /* Room to centre the sheet as a proper dialog. */
  .c-modal {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 48px));
    max-height: 82vh; border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 12, 8, .22);
  }
  .c-modal-bd { padding: 16px 20px 20px; }

  .c-col { max-width: 420px; }
  .c-col-wide { max-width: 620px; }
  .c-card { padding: 26px 24px; }
  .c-cols .c-card, .c-body .c-card { padding: 0; }

  /* Room for the word, now that the row is not fighting for it. */
  .c-signout-label { display: inline; }

  .c-hd { margin-bottom: 6px; }
  .c-hd h1 { font-size: 24px; }
  .c-cols { grid-template-columns: 1fr 1fr; }
  .c-lgrid { grid-template-columns: 1fr 1fr; }
  /* First and last name fit on one line again. */
  .c-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .c-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
  .c-plot { height: 190px; gap: 4px; }
  .c-xaxis { gap: 4px; }

  /* Two lines of session become one wide row: identity left, figures right. */
  .c-sc summary { padding: 12px 15px; }
  .c-dl { grid-template-columns: 180px minmax(0, 1fr); }
  .c-crow { grid-template-columns: 200px 1fr auto; }
  .c-crow .id { grid-row: 1; }
  .c-crow .n { grid-row: 1; grid-column: 3; }
}
