/* The page's side padding: what px-3 / px-xl-4 give every container-xxl,
 * for the few things placed against the container's edge by CSS. */
:root { --page-x: 1rem; }
@media (min-width: 1200px) { :root { --page-x: 1.5rem; } }

/* Helion. Bootstrap 5 plus a small amount on top -- deliberately small, since
 * every line here is a line that has to be maintained by one person. */

body { background: var(--bs-body-bg); }

/* Text drawn in an accent (14-dashboard-after-review, Q6): js/colour.js
 * writes a readable ink per theme beside the accent itself, and the theme
 * picks one. Lines, borders and fills keep the accent as chosen. */
.panel-box, .panel-root .panel-label, .supply-group-head, .accent-ink {
  color: var(--ink-l, var(--accent));
}
[data-bs-theme="dark"] :is(.panel-box, .panel-root .panel-label, .supply-group-head, .accent-ink) {
  color: var(--ink-d, var(--accent));
}

/* Centred card used by login and the forced password change. */
.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding-block: 1rem;
}

.brand {
  font-weight: 600;
  letter-spacing: .02em;
}

.metric-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  line-height: 1.1;
}
.metric-unit { font-size: .9rem; opacity: .7; }

/* A meter fed from an already-processed source cannot support the same rigour
 * as a directly polled counter. The UI says so rather than implying precision
 * it does not have. */
.fidelity-derived, .fidelity-lossy { cursor: help; }

.chart-wrap { position: relative; height: 320px; }

/* Total active power now (16-total-power): one line, the number large. */
.power-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: var(--bs-tertiary-bg);
}
.power-band-label { color: var(--bs-secondary-color); }
.power-band-value { font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.power-band-at { color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.power-band-partial { color: var(--bs-warning-text-emphasis); cursor: help; }
/* Live values that stopped updating (17-live-updates): greyed, and the line
 * above says since when. */
.live-status { color: var(--bs-secondary-color); min-height: 1.25rem; font-variant-numeric: tabular-nums; }
.live-status.stale { color: var(--bs-warning-text-emphasis); }
.live-stale { opacity: .5; filter: grayscale(1); transition: opacity .3s; }

.empty-state {
  border: 1px dashed var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

/* ---------------------------------------------------------------------------
 * The panel: one-line diagram drawn with divs and unicode box-drawing.
 * No SVG by decision. The tree glyphs (│ ├ └ ─) need a monospace font and a
 * fixed line height or the verticals stop lining up between rows.
 * ------------------------------------------------------------------------- */

.panel {
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .15rem 0;
  line-height: 1.9;
  white-space: nowrap;
}

.panel-root {
  margin-top: .25rem;
  font-weight: 600;
}

/* The rail: the row's slice of the geometry -- trunk, branch, tap dot --
 * drawn as SVG while all content stays in divs. align-self: stretch is what
 * makes the trunk continuous: each row's verticals run edge to edge, so
 * consecutive rows' segments meet exactly regardless of row height. */
.panel-rail {
  position: relative;
  flex: none;
  align-self: stretch;
  /* Pulls the content toward the branch line without letting it touch:
   * of the .45rem flex gap, .15rem survives as breathing room. */
  margin-right: -0.3rem;
}
.panel-rail svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.panel-rail line {
  stroke: var(--accent, var(--bs-secondary-color));
  stroke-width: 2;
}
.panel-rail circle {
  fill: var(--accent, var(--bs-secondary-color));
}

/* The root's stub: the magistral must leave the designator box, not hang in
 * space below it. Drawn with a pseudo-element on the root row so the trunk's
 * top connects to the box's underside. */
.panel-root {
  position: relative;
}
.panel-root::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 70%;
  bottom: -0.15rem;
  width: 2px;
  background: var(--accent, var(--bs-secondary-color));
}

/* The designator box: what the electrician writes on the physical panel. */
.panel-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: .35rem;
  padding: 0 .4rem;
  line-height: 1.5;
}

.panel-glyph { font-size: .95rem; }

/* Place pill: where this branch feeds. */
.panel-pill {
  font-size: .7rem;
  font-weight: 600;
  /* Black or white, whichever reads on this accent (Q6). */
  color: var(--on-accent, var(--bs-body-bg));
  background: var(--accent, var(--bs-secondary-color));
  border-radius: 999px;
  padding: .05rem .5rem;
}

.panel-label { color: var(--bs-body-color); }

.panel-badge { font-size: .65rem; }
.panel-badge-wrap { display: inline-flex; align-items: center; gap: .15rem; }

/* Things that explain themselves on a tap (Q2): the "?" and its note. */
[data-help] { cursor: help; }
.help-q {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: 50%;
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
}
.help-q:hover, .help-q[aria-expanded="true"] {
  color: var(--bs-body-color);
  border-color: var(--bs-secondary-color);
}
.help-pop {
  position: absolute;
  z-index: 1070;
  max-width: min(20rem, calc(100vw - 16px));
  padding: .5rem .7rem;
  font-size: .82rem;
  line-height: 1.35;
  white-space: normal;
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .45rem;
  box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .15);
}

/* Dotted leader between the label and the live reading, like a table of
 * contents -- the eye follows it across the row. */
.panel-leader {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--bs-secondary-color);
  opacity: .5;
  transform: translateY(-.3em);
}

.panel-reading {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .35rem;
  padding: 0 .5rem;
  background: var(--bs-body-bg);
}

.panel-gap { height: .6rem; }

/* Tag chips: the name readable on the chip's tint in both themes (Q6). */
.tag-chip { font-weight: 500; }
[data-bs-theme="dark"] .tag-chip { color: var(--tag-ink-d, var(--tag)); }

/* Panel rows that chart something on click. */
.panel-row[data-click] {
  cursor: pointer;
  border-radius: 0.375rem;
}
.panel-row[data-click]:hover {
  background: rgba(128, 128, 128, 0.12);
}

/* The footer: version left, the RO/EN device switcher right. Present on
 * every page including login (00-i18n). */
.app-footer {
  margin-top: 1.5rem;
}
.app-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--bs-border-color);
}
.app-footer-locale {
  border: 0;
  background: none;
  padding: 0 0.15rem;
  color: var(--bs-secondary-color);
  font: inherit;
  cursor: pointer;
}
.app-footer-locale.active {
  color: var(--bs-body-color);
  font-weight: 600;
  text-decoration: underline;
  cursor: default;
}

/* --------------------------------------------------------------------------
 * The shell: top menu, avatar dropdown, offcanvas, settings layout.
 * ------------------------------------------------------------------------ */

.shell-nav { position: relative; }
.shell-nav-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.25rem;
}
.shell-navlink {
  color: var(--bs-secondary-color);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.shell-navlink.active {
  color: var(--bs-body-color);
  border-bottom-color: var(--bs-body-color);
}

.shell-burger {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
/* The corner button (Q3, after Solar Indicator): initials, name, caret. */
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: none;
  color: var(--bs-body-color);
  padding: .15rem .6rem .15rem .15rem;
  cursor: pointer;
}
.account-btn:hover, .account-btn[aria-expanded="true"] { background: var(--bs-tertiary-bg); }
.account-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caret { font-size: .75rem; color: var(--bs-secondary-color); }
@media (max-width: 575.98px) {
  .account-name { display: none; }
}
.shell-burger { font-size: 1.35rem; line-height: 1; }
/* The quick light/dark switch (24-grid-and-theme): an icon button the size
 * of a finger on a phone. */
.theme-btn {
  border: 0;
  background: none;
  color: var(--bs-body-color);
  font-size: 1.15rem;
  line-height: 1;
  padding: .35rem;
  border-radius: .4rem;
  cursor: pointer;
}
.theme-btn:hover { background: var(--bs-tertiary-bg); }
.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
}

/* The dropdown: rich rows, icon + title + subtitle (tenispremium pattern,
 * our layout). */
.shell-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  /* Under the account button: the container's right edge, less its padding. */
  right: max(var(--page-x), calc((100% - 1320px) / 2 + var(--page-x)));
  z-index: 1050;
  min-width: 17rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  padding: 0.4rem 0;
}
.shell-dropdown-header {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem 0.6rem;
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 0.35rem;
}
.shell-section {
  padding: 0.35rem 1rem 0.15rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-secondary-color);
}
.shell-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.45rem 1rem;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  color: var(--bs-body-color);
  cursor: pointer;
}
.shell-item:hover:not(.disabled) { background: var(--bs-tertiary-bg); }
.shell-item.active { background: var(--bs-tertiary-bg); }
.shell-item.disabled { opacity: 0.45; cursor: default; }
.shell-item > span:last-child { display: flex; flex-direction: column; }
.shell-item small { display: none; } /* one line per entry, as the sidebar */
.shell-icon { width: 1.4rem; text-align: center; }
.shell-divider {
  height: 1px;
  background: var(--bs-border-color);
  margin: 0.35rem 0;
}

/* Offcanvas: the burger's panel, from the right. */
.shell-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.4);
}
.shell-offcanvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 85vw);
  background: var(--bs-body-bg);
  padding: 0.5rem 0 1rem;
  overflow-y: auto;
  box-shadow: -0.5rem 0 1.5rem rgba(0, 0, 0, 0.2);
}
.shell-offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 0.4rem;
}

/* The settings layout: the list 3 columns, the page 9 (shell.js); the
 * widths are the grid's, not ours (24-grid-and-theme). */
.settings-wrap { padding-top: 1.5rem; }
.settings-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.settings-top { display: flex; align-items: center; justify-content: space-between; }
.settings-back {
  color: var(--bs-body-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.75rem 0.9rem;
}
.settings-group {
  padding: 0.7rem 0.75rem 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-secondary-color);
}
.settings-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.4rem;
  text-decoration: none;
  color: var(--bs-body-color);
}
.settings-link small { display: none; } /* subtitles live in the dropdown */
.settings-link:hover:not(.disabled) { background: var(--bs-tertiary-bg); }
/* One line, plain weight, as JetKVM's menu (the owner, 2026-10-17): the page
 * you are on is marked by its background, not by bold. */
.settings-link.active { background: var(--bs-tertiary-bg); }
.settings-link strong, .shell-item strong { font-weight: 400; }
.settings-link.disabled { opacity: 0.45; cursor: default; }
.settings-content { min-width: 0; }
.settings-title { font-size: 1.5rem; font-weight: 600; margin-bottom: .2rem !important; }

/* Below 992px the list is one wrapping row of pills above the page: no
 * headings, no subtitles, the active page marked. */
@media (max-width: 991.98px) {
  .settings-wrap { padding-top: 1rem; }
  .settings-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  /* On a phone the back pill and the switch lead the row of pills. */
  .settings-top { display: contents; }
  .settings-group { display: none; }
  .settings-back, .settings-link {
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .9rem;
  }
  .settings-link .shell-icon { display: none; }
  .settings-link.active { border-color: var(--bs-body-color); }
}

/* The profile page's larger avatar. Same deterministic colour as the shell's,
 * just bigger -- one identity, drawn at two sizes. */
.avatar-lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.15rem;
}

/* -- 04 utilities / 05 supplies ------------------------------------------- */

/* The icon picker. A grid of the glyphs we ship, plus a field for a pasted
   one -- the registry exists so a utility nobody anticipated does not need a
   developer, and an icon list that only we can extend would rebuild exactly
   that problem one level up. */
.icon-grid {
  /* As many cells as fit the column the page gives it (24-grid-and-theme). */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr));
  gap: .25rem;
}
.icon-cell {
  aspect-ratio: 1;
  font-size: 1.1rem;
  line-height: 1;
  border: 1px solid var(--bs-border-color);
  border-radius: .35rem;
  background: var(--bs-body-bg);
  padding: 0;
}
.icon-cell:hover { border-color: var(--bs-primary); }
.icon-cell.active {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .25);
}
.icon-own { max-width: 4.5rem; text-align: center; }

/* The utility's colour and glyph together, so the accent is legible as the
   thing the dashboard will actually draw rather than as a hex code. */
.util-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .4rem;
  flex-shrink: 0;
  filter: saturate(.9);
}

/* A supplies group: the utility heading owns the accent, its supplies sit
   under it. The grouping IS the dashboard's trunk order. */
.supply-group + .supply-group { margin-top: 1.25rem; }
.supply-group-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--accent, var(--bs-border-color));
}
.supply-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0 .5rem .75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

/* -- 06 arrangement -------------------------------------------------------- */

/* Tree beside the detail pane on wide screens; stacked on a phone. The
   settings layout already makes this split for the sidebar, so it is the
   familiar shape rather than a new one. */
/* Columns from the grid (panel.html); the pane stays in view while the
 * tree scrolls, when they sit side by side. */
@media (min-width: 1200px) {
  .arrange-pane { position: sticky; top: .5rem; }
}

/* A row is a selection target: same drawing as the dashboard, plus a hover
   ring, a selected state, and the action buttons on the right. */
.arrange-row { cursor: pointer; border-radius: .3rem; }
.arrange-row:hover { background: rgba(var(--bs-primary-rgb), .06); }
.arrange-row.selected {
  background: rgba(var(--bs-primary-rgb), .12);
  outline: 1px solid rgba(var(--bs-primary-rgb), .4);
}
.arrange-actions { margin-left: auto; display: inline-flex; gap: .2rem; }
.arrange-actions .btn { padding: 0 .35rem; line-height: 1.4; }

/* The card's last row is the meter's dial, not a consumption: under a rule,
 * apart from the rows above it (Q1). */
.period-reading { border-top: 1px solid var(--bs-border-color); }
.period-reading th, .period-reading td { padding-top: .4rem; }

/* Keyboard focus is visible on everything that takes it (Q5). */
.panel-row[tabindex]:focus-visible, .shell-item:focus-visible, .settings-link:focus-visible,
.account-btn:focus-visible, .shell-burger:focus-visible, .help-q:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 1px;
}

/* Fingers (Q4): on a phone every control is about 44 px, and a delete sits
 * apart from its neighbours. The desktop stays compact. A "?" keeps its
 * small circle but answers to a 44 px area around it. */
@media (max-width: 575.98px) {
  main .btn, .settings-content .btn, .form-select, .form-control, .settings-back, .settings-link {
    min-height: 44px;
  }
  .arrange-actions { gap: .35rem; }
  .arrange-actions .btn, .btn-group > .btn { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn ~ .btn-outline-danger, .btn ~ .btn-danger { margin-left: 1rem; }
  .tag-chip { font-size: .85rem; }
  .tag-chip-x {
    min-width: 44px; min-height: 44px; margin: -.75rem -.6rem -.75rem -.3rem;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .help-q { position: relative; }
  .help-q::after { content: ""; position: absolute; inset: -14px; }
  /* That halo must not widen the page: next to a card's edge it reached
   * past it, and a phone scrolled sideways (24-grid-and-theme's test, in
   * English). The popup lives on <body>, so nothing visible is cut. */
  .card { overflow-x: clip; }
}

/* -- 07 tags --------------------------------------------------------------- */

/* A chip is a hashtag: the tag's colour as a thin ring and text, never a
   solid block that fights the trunk accent beside it. */
.tag-chips { display: inline-flex; gap: .3rem; flex-wrap: wrap; margin-left: .5rem; }
.tag-chip {
  display: inline-flex; align-items: center; gap: .15rem;
  font-size: .72rem; line-height: 1.3; padding: .05rem .45rem;
  border: 1px solid var(--tag); color: var(--tag-ink-l, var(--tag)); border-radius: 999px;
  background: color-mix(in srgb, var(--tag) 10%, transparent);
  white-space: nowrap;
}
.tag-chip-x {
  border: 0; background: none; color: inherit; padding: 0 0 0 .15rem;
  font-size: .9rem; line-height: 1; cursor: pointer; opacity: .7;
}
.tag-chip-x:hover { opacity: 1; }
.tag-row { cursor: pointer; border-radius: .3rem; }
.tag-row:hover { background: rgba(var(--bs-primary-rgb), .06); }
.tag-row.selected { background: rgba(var(--bs-primary-rgb), .12); }
.tag-editor { padding: .35rem 0 .5rem 3.5rem; }
.tag-swatch { width: 1.6rem; height: 1.6rem; border-radius: .35rem; flex-shrink: 0; }

/* -- 08 updates ------------------------------------------------------------ */

.update-row {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .4rem 0; border-bottom: 1px solid var(--bs-border-color);
  cursor: pointer;
}
.update-row:last-child { border-bottom: 0; }
.update-row:hover { background: rgba(var(--bs-primary-rgb), .05); }

/* apt's own output. Monospace, scrolled, capped -- a long upgrade must not
   push the rest of the page off the screen. */
.apt-log {
  font-size: .78rem; line-height: 1.35; max-height: 22rem; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
  background: var(--bs-tertiary-bg);
}

/* 12-devices: the page's own modal (the pages do not load Bootstrap's JS). */
.hmodal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1050;
          display: flex; align-items: flex-start; justify-content: center; padding: 4rem 1rem; overflow: auto; }
.hmodal-dialog { width: 100%; max-width: 640px; }
.status-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; flex-shrink: 0; }
.module-type:hover { background: rgba(var(--bs-primary-rgb), .05); }
.probe-entities { max-height: 14rem; overflow: auto; }

/* Readings nobody placed (23-sums-and-unassigned): set aside, never summed. */
.panel-unassigned {
  opacity: 0.55;
}

/* A field sized by what it holds, not by the layout: a day of the month is
 * two digits plus the spinner (24-grid-and-theme lists this exception). */
.input-digits-2 { width: 4.5rem; }

/* A driver's icon on the Devices page: generic, the same size everywhere. */
.driver-icon { font-size: 1.1rem; color: var(--bs-secondary-color); flex-shrink: 0; }

/* The Disk page (28): the space bar as macOS draws it, a meter for life
 * left, small bars for writes per day. Widths and heights set from script. */
.disk-bar { display: flex; height: 1.1rem; border-radius: .4rem; overflow: hidden; background: var(--bs-secondary-bg); }
.disk-slice { height: 100%; min-width: 2px; }
.disk-swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: .2rem; vertical-align: -.05rem; }
.disk-slice-system { background: var(--bs-secondary); }
.disk-slice-docker { background: var(--bs-info); }
.disk-slice-database { background: var(--bs-primary); }
.disk-slice-backups { background: var(--bs-success); }
.disk-slice-logs { background: var(--bs-warning); }
.disk-slice-snapshots { background: var(--bs-purple, #6f42c1); }
.disk-slice-free { background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); }
.disk-track { height: .45rem; background: var(--bs-secondary-bg); border-radius: 1rem; overflow: hidden; }
.disk-fill { height: 100%; width: 0; }
.disk-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4rem; align-items: end; }
.disk-day { text-align: center; }
.disk-day-holder { height: 4rem; display: flex; align-items: flex-end; justify-content: center; }
.disk-day-bar { width: 70%; background: var(--bs-primary); border-radius: .2rem .2rem 0 0; }
.disk-day-bar.partial { opacity: .45; }
.disk-day-value { white-space: nowrap; font-size: .7rem; }

/* The System page's health tiles (2026-10-19), as the hub's machine page:
 * two to a row, one on a phone; the meters' widths set from script. */
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 420px) { .health-grid { grid-template-columns: minmax(0, 1fr); } }
.health-tile { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .55rem .75rem; }
.health-value { font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; margin: .1rem 0 .2rem; }
.health-track { height: .375rem; background: var(--bs-secondary-bg); border-radius: 1rem; overflow: hidden; }
.health-fill { height: 100%; width: 0; }

/* The Helion card on the Updates page (docs/gherkin/31). */
.release-notes { white-space: pre-wrap; font-family: inherit; background: var(--bs-tertiary-bg); padding: .5rem .75rem; border-radius: .375rem; }
.release-steps { padding-left: 1.25rem; }
