/* xcc console: Unveil Technology palette and typography, shared with the other consoles of the
   family (source: muster's colors.css / colors.md). Light theme by default, dark as an override
   (OS setting, or data-theme on <html>). Components use the tokens below, never raw hex codes. */

/* Exo, served from the binary rather than Google Fonts: the console must work without Internet
   access. Variable font, one declaration per Unicode range covering every weight. */
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/exo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/exo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* UnveilTech palette */
  --primary: #4572A7;
  --success: #89A54E;
  --danger: #AA4643;
  --warning: #DB843D;
  --info: #3D96AE;
  --gold: #C9A227; /* the Saving tile's trophy */
  --violet: #80699B; /* the family's 4th chart colour (blue, red, green, violet, …) */
  --silver: #9AA4B1; --bronze: #B87333; /* Statistics: the games' podium */
  /* Chart series, in the family's imposed order (blue, red, green). */
  --chart-1: #4572A7; --chart-2: #AA4643; --chart-3: #89A54E;

  /* Surfaces */
  --bg: #F5F7FB;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F8F9FA;
  --bg-topbar-start: #4572A7;
  --bg-topbar-end: #1e1e1e;
  --text-topbar: white;
  --text-topbar-dim: rgba(255, 255, 255, .72);
  --switch-off: #c3c9d2;

  /* Roles used by the components, derived from the palette */
  --surface: var(--bg-card);
  --surface-2: #EEF1F6;
  --border: #dbe1ea;
  --grid: #e8ecf2;
  --text: #1e1e1e;
  --text-2: #5f6673;
  --text-3: #888;
  --accent: var(--primary);
  /* Green for the cache, red for the Internet (user's choice); theme-aware role colours. */
  --series-hit: var(--success);
  --series-miss: var(--danger);
  --series-lan: var(--info); /* what another member of the cluster sent */
  --series-st-down: var(--violet); /* the Speedtest server's card: what it sent (devices' download) */
  --series-st-up: var(--gold); /* … and received (their upload) */
  --good: var(--success);
  --warn: var(--warning);
  --bad: var(--danger);

  --sans: 'Exo', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* No monospace font anywhere (user's choice): "mono" text is Exo with tabular figures. */
  --mono: var(--sans);
  --radius: 4px;
  --topbar-h: 80px;
  --sidebar-w: 200px;
  --tip-bg: #2b2f36; --tip-fg: #f5f6f8; /* tooltips (muster's values) */
  /* Disks tile backgrounds (user's choice): system disk blue, cache disks violet, a disk in trouble red; pastel. */
  --disk-sys: #dbe7f5; --disk-cache: #e9e0f5; --disk-bad: #f6d6d5; --disk-bad-edge: #7a2421;
  --led-read: #2fb344; --led-write: #f08c00; /* the disks' activity lights: an LED's green and amber */
  --led-check: #0b9fd8; /* and the integrity check's: a cyan blue, apart from the system disk's pale blue */
  --led-evict: #f03e3e; /* XCC making room on the disk (eviction) */
  /* Games page: a cover without image takes its platform's colour; the shade under a game's name on a cover. */
  --plat-steam: #1b2838; --plat-sony: #003791; --plat-blizzard: #0e86ca; --plat-riot: #d13639; --plat-xbox: #107c10;
  --plat-epic: #2a2a2a; --plat-other: #4a3f6b;
  --cover-shade: rgba(0, 0, 0, .78); --cover-text: #fff;
}

/* Dark palette: functional colours lightened ~15% for contrast on dark surfaces. Chart series
   keep their base values, as the family spec prescribes. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #5b8abf; --success: #9dba62; --danger: #c45450; --warning: #e89a52; --info: #4eaac2; --gold: #E3BE45; --violet: #9a85b5; --silver: #B9C2CE; --bronze: #D08A4E;
    --bg: #1a1a2e; --bg-card: #242438; --bg-sidebar: #1e1e32;
    --bg-topbar-start: #2a2a44; --bg-topbar-end: #1a1a2e;
    --text-topbar: #D9D9D9; --text-topbar-dim: rgba(217, 217, 217, .68);
    --switch-off: #45456a;
    --surface-2: #2a2a42; --border: #33334d; --grid: #2c2c44;
    --text: #e6e6e6; --text-2: #b8b8c8; --text-3: #9a9aae;
    --tip-bg: #45456a; --tip-fg: #f0f0f5;
    --disk-sys: #2c3d58; --disk-cache: #3c3058; --disk-bad: #5a2e36; --disk-bad-edge: #e0524c; --led-check: #38c4f5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #5b8abf; --success: #9dba62; --danger: #c45450; --warning: #e89a52; --info: #4eaac2; --gold: #E3BE45; --violet: #9a85b5; --silver: #B9C2CE; --bronze: #D08A4E;
  --bg: #1a1a2e; --bg-card: #242438; --bg-sidebar: #1e1e32;
  --bg-topbar-start: #2a2a44; --bg-topbar-end: #1a1a2e;
  --text-topbar: #D9D9D9; --text-topbar-dim: rgba(217, 217, 217, .68);
  --switch-off: #45456a;
  --surface-2: #2a2a42; --border: #33334d; --grid: #2c2c44;
  --text: #e6e6e6; --text-2: #b8b8c8; --text-3: #9a9aae;
  --tip-bg: #45456a; --tip-fg: #f0f0f5;
  --disk-sys: #2c3d58; --disk-cache: #3c3058; --disk-bad: #5a2e36; --disk-bad-edge: #e0524c; --led-check: #38c4f5;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.mono:not(table), .table.mono td { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
code, kbd, samp, pre { font-family: var(--mono); font-size: inherit; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); font-weight: 400; }
[hidden] { display: none !important; }

/* Top bar: 80 px, horizontal gradient primary → near-black, as in the other UnveilTech consoles. */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 20px 0;
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(90deg, var(--bg-topbar-start), var(--bg-topbar-end));
  color: var(--text-topbar);
}
.brand { display: flex; align-items: center; gap: 16px; flex: none; white-space: nowrap; } /* never squeezed by the promotion */
.brand a { display: block; border-radius: var(--radius); }
.brand a:focus-visible { outline: 2px solid var(--text-topbar); outline-offset: 3px; }
/* Unveil Technology logo, same size and place as in the other consoles of the family. */
.brand-logo { height: 40px; width: auto; display: block; }
.brand-product { display: flex; align-items: baseline; gap: 8px; padding-left: 16px; border-left: 1px solid var(--text-topbar-dim); }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.sub { color: var(--text-topbar-dim); font-size: 13px; }
/* Phones: the product name ("eXtended Cache Center") takes the room, the subtitle goes. */
@media (max-width: 600px) {
  .brand-product .sub { display: none; }
  .logo { font-size: 17px; line-height: 1.2; }
}
/* The setup wizard's wand, the assistant's robot, then the blog's newspaper, left of the connection state (user's requests). */

.topbar-ai { margin-left: 4px; display: flex; align-items: center; justify-content: center; flex: none; padding: 4px;
  background: none; border: 0; border-radius: var(--radius); color: var(--text-topbar-dim); cursor: pointer; }
.topbar-ai svg { width: 20px; height: 20px; }
.topbar-ai:hover { color: var(--text-topbar); }
.topbar-ai:focus-visible { outline: 2px solid var(--text-topbar); outline-offset: 2px; }
.topbar-ai.topbar-wiz { margin-left: auto; }
/* UnveilTech's other products (user, 2026-10-21): centred in the room between the brand and the buttons, in a frame;
   the product's name (no logo: the site's are hard to read on the bar) and its headline, then its text on up to two
   lines: narrow, using the bar's height rather than its width; hidden where the bar has no room for it. */
.topbar-promo { margin-left: auto; position: relative; overflow: hidden; perspective: 300px;
  min-width: 0; width: 330px; max-width: 330px; height: 64px; flex: none; line-height: 1.3;
  border: 1px solid color-mix(in srgb, var(--text-topbar) 45%, transparent); border-radius: 3px;
  color: var(--text-topbar); text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.topbar-promo:hover { background: color-mix(in srgb, var(--text-topbar) 10%, transparent); border-color: var(--text-topbar); }
.topbar-promo:focus-visible { outline: 2px solid var(--text-topbar); outline-offset: 2px; }
/* Each item fills the frame; the change rolls from the bottom up like a drum turning (user): the shown one goes up and
   tips away, the next one comes up from below (startPromo). */
.topbar-promo-item { position: absolute; inset: 0; padding: 6px 12px; display: flex; flex-direction: column;
  justify-content: center; gap: 2px; backface-visibility: hidden; transform-origin: 50% 50% -32px; }
.topbar-promo-item.roll-out { animation: promo-roll-out .6s cubic-bezier(.45, 0, .2, 1) forwards; }
.topbar-promo-item.roll-in { animation: promo-roll-in .6s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes promo-roll-out { from { transform: rotateX(0); opacity: 1; } to { transform: rotateX(90deg); opacity: 0; } }
@keyframes promo-roll-in { from { transform: rotateX(-90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  @keyframes promo-roll-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes promo-roll-in { from { opacity: 0; } to { opacity: 1; } }
}
.topbar-promo-head { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-promo-name { font-weight: 700; }
.topbar-promo-name::after { content: " · "; font-weight: 400; color: var(--text-topbar-dim); }
.topbar-promo-title { font-weight: 600; }
.topbar-promo-line { font-size: 12px; color: var(--text-topbar-dim); display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 1280px) { .topbar-promo { display: none; } } /* the first of the right-hand group (the download button, then the wand) */
.conn { display: flex; align-items: center; gap: 8px; color: var(--text-topbar-dim); font-size: 13px; }
/* The console's language for this browser (js/i18n.js), left of Sign out, in the same quiet style. */
.topbar-lang {
  flex: none; font: inherit; font-size: 13px; color: var(--text-topbar-dim); background: transparent; cursor: pointer;
  border: 1px solid var(--text-topbar-dim); border-radius: var(--radius); padding: 0 6px;
  height: 32px; box-sizing: border-box; /* the same height as Sign out (user) */
}
.topbar-lang:hover { color: var(--text-topbar); border-color: var(--text-topbar); }
.topbar-lang:focus-visible { outline: 2px solid var(--text-topbar); outline-offset: 2px; }
.topbar-lang option { color: var(--text); background: var(--surface); }
.signout {
  display: flex; align-items: center; gap: 6px; flex: none;
  background: none; border: 1px solid var(--text-topbar-dim); border-radius: var(--radius);
  color: var(--text-topbar-dim); font: inherit; font-size: 13px; padding: 0 10px; cursor: pointer;
  height: 32px; box-sizing: border-box;
}
.signout svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signout:hover { color: var(--text-topbar); border-color: var(--text-topbar); }
.signout:focus-visible { outline: 2px solid var(--text-topbar); outline-offset: 2px; }
/* The day/night button: Sign out's frame, an icon alone, square. */
.theme-toggle { width: 32px; padding: 0; justify-content: center; }
.theme-toggle svg { width: 16px; height: 16px; }
/* Phones: Sign out and the connection state as icons only, so the top bar keeps one row. */
@media (max-width: 600px) { .signout span, #conn-label { display: none; } .topbar { gap: 12px; } }
.conn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-topbar-dim); flex: none; }
.conn.ok .dot { background: var(--success); box-shadow: 0 0 0 3px rgba(137, 165, 78, .25); }
.conn.ko .dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(170, 70, 67, .25); }

/* Left navigation menu under the top bar, fixed width 250 px; content scrolls on the right. */
.sidebar {
  position: fixed; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); bottom: 0; left: 0; z-index: 10;
  width: var(--sidebar-w);
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-sidebar); border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex; flex-direction: column; /* the gauges (.sidebar-stats) sit at the bottom */
}
.tabs { display: flex; flex-direction: column; gap: 2px; }
/* Menu entries: an icon (Lucide, in the text colour) and the name; the page shown in the primary colour, its text and
   icon inverted (user's choice, 2026-10-03: no left border any more). */
.tabs button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; color: var(--text-2); font: inherit; font-weight: 500;
  padding: 9px 12px; border-radius: var(--radius); cursor: pointer;
}
.tabs button:hover { background: var(--surface-2); color: var(--text); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tabs button[aria-selected="true"] { color: var(--text-topbar); background: var(--primary); font-weight: 600; }
.tabs button[aria-selected="true"]:hover { background: var(--primary); color: var(--text-topbar); }
.tab-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Speed Test, Documentation: links (new tab) styled like the menu entries. */
.tabs .tab-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius);
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.tabs .tab-link:hover { background: var(--surface-2); color: var(--text); }
.tabs .tab-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tabs .tab-sep { border: 0; border-top: 1px solid var(--border); margin: 8px 12px; } /* before Licensing (user's choice) */

/* Menu gauges, copied from UnveilDNS's sidebar-stats (same sizes and thresholds; tokens for the colours). */
.sidebar-stats { padding: 16px 15px 4px; margin-top: auto; }
.sidebar-stats .quick-stat { margin-bottom: 12px; }
.sidebar-stats .quick-stat:last-child { margin-bottom: 0; }
.sidebar-stats .quick-stat small { color: var(--text-2); font-size: 12px; display: block; margin-bottom: 4px; }
.sidebar-stats .progress { background: var(--border); border-radius: 4px; overflow: hidden; }
.sidebar-stats .progress-sm { height: 6px; }
/* Fixed zones on the whole bar, like Cache usage (user's choice): a fill past a threshold shows every zone
   it crossed. The JS stretches the gradient to the bar's width (background-size). */
.sidebar-stats .progress-bar { height: 100%; width: 0; transition: width .3s;
  background: linear-gradient(90deg, var(--success) 0 50%, var(--warning) 50% 75%, var(--danger) 75% 100%) left / 100% 100% no-repeat; }
/* Health: one colour for the whole bar (zones read backwards there): set by the JS. */
.sidebar-stats .progress-bar.inverse { background: var(--success); }
/* Memory: the files kept in memory after the programs' share, lighter (the kernel gives it back when asked). */
#mem-gauge { display: flex; }
#mem-gauge .progress-bar { flex: none; }
.mem-files-pct { color: color-mix(in srgb, var(--accent) 70%, var(--text-2)); }
.sidebar-stats .progress-files { height: 100%; width: 0; flex: none; transition: width .3s; background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* Sub-tabs inside a page (Settings): underlined strip above the panels. */
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.subtabs button {
  background: none; border: 0; color: var(--text-2); font: inherit; font-weight: 500;
  padding: 8px 14px; margin-bottom: -1px; cursor: pointer;
  border-bottom: 2px solid transparent; border-radius: var(--radius) var(--radius) 0 0;
}
.subtabs button:hover { color: var(--text); background: var(--surface-2); }
.subtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.subtabs button[aria-selected="true"] { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* The content takes 98% of the width right of the menu, centred: 1% each side (user's choice). */
main {
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 24px) max(16px, 1%) 40px;
}

/* Narrow screens: the top bar scrolls away and the menu becomes a sticky bar above the content. */
@media (max-width: 800px) {
  .topbar { position: static; height: auto; min-height: 64px; padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px; }
  .sidebar {
    position: sticky; top: 0; bottom: auto; width: auto; padding: 8px 16px; display: block;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .tabs { flex-direction: row; flex-wrap: wrap; }
  .tabs button { width: auto; padding: 6px 10px; }
  .tabs .tab-link { margin-top: 0; padding: 6px 10px; }
  .sidebar-stats { display: none; }
  main { margin-left: 0; padding-top: 20px; }
}

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
/* The six tiles on one line, all the same width (user's choice); three a line on narrower screens, then two, then one. */
@media (max-width: 1250px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi-wide { grid-column: span 2; }
@media (max-width: 640px) { .kpi-wide { grid-column: auto; } }
.kpi-label { color: var(--text-2); font-size: 12.5px; }
.kpi-value { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.req-legend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }
.req-leg { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; padding: 2px 4px;
  margin: -2px -4px; border-radius: 3px; font: inherit; color: inherit; }
.req-leg:hover { background: var(--surface-2); }
.req-leg[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.req-leg.dim { opacity: .45; }
.req-leg-all { font-size: 12.5px; }
.req-badge { cursor: pointer; }
/* Realtime Logs head: title and controls on the left, figures of the shown rows on the right. */
.req-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.req-stats { display: flex; gap: 22px; }
.req-stats div { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.req-stats span { font-size: 11.5px; color: var(--text-3); }
.req-stats b { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
/* Realtime Logs: no scroll bar, the table shows as many rows as the window height allows. */
#tab-requests .table-wrap { overflow-y: hidden !important; overflow-x: auto !important; }
#req-day { min-width: 150px; }
.kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Two figures side by side in one tile (Served from cache · Saving), each label above its value. */
.kpi-pair { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kpi-pair .kpi-label:last-child, .kpi-side { text-align: end; }
.kpi-side { font-size: 20px; }
/* Served from cache · Saving: both figures shrink with the tile's width so "943.2 Mb/s" and "100%" share one line
   in a tile of the page's sixth (user, 2026-10-19: same width for every tile). */
/* Requests / s: HTTP, and DNS beside it while XCC's DNS server is on (2026-11-03); figures shrink with the tile. */
.kpi-rps { container-type: inline-size; }
.kpi-cols { display: flex; justify-content: space-between; gap: 8px; }
.kpi-col { min-width: 0; flex: 1 1 0; }
.kpi-col-end { text-align: end; }
.kpi-cap { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; margin-top: 4px; }
.kpi-rps.two .kpi-value { font-size: min(26px, 13.5cqi); margin-top: 0; }
.kpi-rps.two .kpi-sub { font-size: min(12px, 6.2cqi); line-height: 1.25; }
.kpi-hit { container-type: inline-size; }
/* The rate alone on its line since 2026-11-22 (the saving went to the bar's end): never wraps, shrinks only if it must. */
.kpi-hit .kpi-value { font-size: min(26px, 16cqi); white-space: nowrap; }
.kpi-thumb { display: inline-flex; }
.kpi-end { display: inline-flex; align-items: center; gap: 4px; }
.kpi-thumb.good { color: var(--good); }
.kpi-thumb.warn { color: var(--warn); }
.kpi-thumb.bad { color: var(--bad); }
.kpi-thumb.gold { color: var(--gold); }
.kpi-thumb svg { width: 26px; height: 26px; }
.kpi-value.bad { color: var(--bad); }
.kpi-value.warn { color: var(--warn); }
.kpi-value.good { color: var(--good); }
.kpi-sub { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.meter + .kpi-sub { margin-top: 6px; }
/* Disks tile: how full the cache is, a bar and its % under the disks (2026-10-19, user). */
.k-space { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.k-space .meter { flex: 1; margin-top: 0; height: 6px; }
.k-space[hidden] { display: none; }
/* Cache usage › RAM (user, 2026-10-30): one plain colour (memory full of cached files is good), its light at the end. */
.k-ram { margin-top: 8px; }
/* Saving and Served from cache (2026-11-04, user): "0% [bar] 100%" under the texts, the bar the saving's length and colour. */
.k-sav { margin-top: 8px; font-size: 11px; color: var(--text-3); }
.k-sav::before { content: "0%"; } .k-sav::after { content: "100%"; }
/* Served from cache: the saving of this second in place of "100%" (2026-11-22, user), in the Saving tile's colours. */
.k-sav-live::after { content: none; }
.k-sav-now { min-width: 4ch; text-align: end; } /* the "100%" size it replaces (user), only its colour changes */
.k-sav-now.good { color: var(--good); } .k-sav-now.warn { color: var(--warn); } .k-sav-now.bad { color: var(--bad); }
.k-sav .meter-fill.good { background: var(--good); }
.k-sav .meter-fill.warn { background: var(--warn); }
.k-sav .meter-fill.bad { background: var(--bad); }
.k-ram-lbl { color: var(--text-3); font-size: 11px; }
.k-ram-led { width: 9px; height: 9px; flex: none; }
.kpi-sub a { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
.kpi-sub a:hover { color: var(--accent); text-decoration-style: solid; }
.kpi-sub:empty { display: none; }
.meter { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.meter-fill { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .4s; }
.meter-fill.warn { background: var(--warn); }
/* Downloads in progress: a file relayed because the cache is full (user, 2026-10-22: bold orange). */
.dl-full { color: var(--warn); font-weight: 700; }
.net-slow { color: var(--warn); font-weight: 700; }
/* Cache usage: the zones are fixed on the whole bar (green to 75%, orange to 90%, red above), so a fill
   past 90% shows all three. The JS stretches the gradient to the bar's width (background-size). */
.meter-fill.zones { background: linear-gradient(90deg, var(--good) 0 75%, var(--warn) 75% 90%, var(--bad) 90% 100%) left / 100% 100% no-repeat; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card h2 { font-size: 15px; margin: 0; font-weight: 650; }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chart { position: relative; height: 240px; margin-top: 6px; }
/* Network traffic and Top services side by side; stacked on narrow screens. */
.chart-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } /* half each: ten named columns need the room */
.chart-row > .card { margin-bottom: 16px; }
@media (max-width: 1100px) { .chart-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.chart canvas { width: 100%; height: 100%; display: block; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; box-shadow: 0 4px 16px rgb(0 0 0 / .12);
  min-width: 150px; font-variant-numeric: tabular-nums;
}
.tooltip .tt-title { color: var(--text-2); margin-bottom: 4px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.tooltip .tt-row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.tooltip .tt-row b { color: var(--text); font-weight: 600; }

.btn {
  font: inherit; font-size: 13px; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius);
}
.btn:hover { border-color: var(--text-3); }
a.btn, a.btn:hover { text-decoration: none; display: inline-block; } /* a link shown as a button (Apple Cache's Architecture…) */
.btn:disabled { opacity: .5; cursor: wait; }
.btn.danger { color: var(--bad); }
.btn.danger.confirm { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.icon { display: inline-flex; align-items: center; gap: 4px; padding: 4px; font-size: 12px; line-height: 1; color: var(--text-2); }
.btn.icon.confirm { padding: 4px 8px; }
.btn.icon svg { flex: none; pointer-events: none; }
/* Icon colours: purge in blue, remove in red; the confirm step fills the button with that colour. */
.btn.icon.accent { color: var(--primary); }
.btn.icon.danger { color: var(--bad); }
.btn.icon.accent:hover:not(:disabled) { border-color: var(--primary); }
.btn.icon.danger:hover:not(:disabled) { border-color: var(--bad); }
.btn.icon.accent.confirm { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.icon.danger.confirm { color: #fff; }
.btn.icon:disabled { cursor: default; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions .btn + .btn { margin-left: 6px; }
.table td.actions .purging { margin-right: 8px; color: var(--text-2); font-weight: 600; }
.table td.actions .purging + .btn { margin-right: 6px; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.1); }
input[type="search"], select {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px;
}
input[type="search"] { width: 220px; max-width: 100%; }
.check { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-size: 13px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-2); padding: 7px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
#req-table tr.hit td { background: color-mix(in srgb, var(--success) 22%, transparent); } /* served from the cache */
.table td { padding: 7px 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .trunc { max-width: 480px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .empty { text-align: center; color: var(--text-3); padding: 24px; }
#svc-table td:first-child { font-weight: 600; white-space: nowrap; } /* logo, name and "partial" tag on one line */
/* The description takes the space left and is cut with an ellipsis (full text in its title),
   so the numeric columns and the switches always fit. */
#svc-table td.trunc { max-width: 0; width: 100%; }
.linkish { font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: var(--accent); color: var(--accent); }
.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
#svc-table td:first-child .linkish, #am-table td:first-child .linkish { font-weight: 600; }
.num-link { font-variant-numeric: tabular-nums; }
/* Modals, as in the UnveilTech family (muster): <dialog> brings the backdrop, Escape and the
   focus trap. Head / body / foot in a flex column: only the body scrolls, so the footer
   and its Close button never go under the fold. */
.modal {
  border: none; border-radius: 10px; padding: 0;
  width: min(480px, 92vw); max-height: 88vh; overflow: hidden;
  background: var(--bg-card); color: var(--text);
  box-shadow: 0 18px 48px rgb(0 0 0 / .28);
}
/* Only when open: an author `display` would otherwise beat the browser's `display: none`. */
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgb(15 23 42 / .45); }
/* Backdrop click: the dialog shakes instead of closing. `transform`, not `translate`,
   so it adds to the drag offset. */
.modal.shake { animation: modal-shake .4s ease-in-out; }
@keyframes modal-shake {
  0%, 100% { transform: translateX(0); }
  15%, 55% { transform: translateX(-10px); }
  35%, 75% { transform: translateX(10px); }
  90% { transform: translateX(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .modal.shake { animation: modal-flash .4s ease-in-out; }
  @keyframes modal-flash { 50% { box-shadow: 0 0 0 3px var(--primary), 0 18px 48px rgb(0 0 0 / .28); } }
}
.modal-mid { width: min(600px, 94vw); }
.modal-wide { width: min(736px, 94vw); }
#nics-modal { width: min(820px, 94vw); } /* 820 px: the "XCC's address" badge on one line (user, 2026-11-08) */
#nics-modal .state { white-space: nowrap; }
.modal-xl { width: min(800px, 94vw); }
.modal-head {
  padding: 16px 20px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--grid);
  cursor: move; user-select: none; touch-action: none; /* dragged by its head */
}
.modal-body { padding: 18px 20px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.modal-foot {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  border-top: 1px solid var(--grid); background: var(--bg);
}
.modal-foot .spacer { flex: 1; }
.modal-lead { margin: 0 0 12px; color: var(--text-2); }
.modal-sub { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 16px 0 8px; }
.modal-hint { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
/* Segmented buttons (category filter of the "+ Services" modal); data-count is shown after the label. */
.seg { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.seg button {
  background: var(--surface); border: 0; border-left: 1px solid var(--border); color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; cursor: pointer;
}
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--surface-2); color: var(--text); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.seg.req-live { align-self: stretch; } /* as tall as the fields next to it */
.seg.req-live button { display: inline-flex; align-items: center; padding: 0 10px; }
.seg.req-live svg { width: 14px; height: 14px; fill: currentColor; }
.seg.req-live[hidden] { display: none; }
#req-run[aria-pressed="true"] { background: var(--success); }
#req-pause[aria-pressed="true"] { background: var(--warning); }
/* Dashboard ▸ Requests / s ▸ DNS: the devices' last queries */
#dnsq-run[aria-pressed="true"] { background: var(--success); }
#dnsq-pause[aria-pressed="true"] { background: var(--warning); }
.dnsq-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dnsq-controls input[type="search"] { width: 260px; max-width: 100%; }
.dnsq-controls .spacer { flex: 1; }
.dnsq-only { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; cursor: pointer; }
#dnsq-table { table-layout: fixed; width: 100%; }
#dnsq-table th:nth-child(1) { width: 80px; } #dnsq-table th:nth-child(2) { width: 140px; } #dnsq-table th:nth-child(4) { width: 230px; }
#dnsq-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dnsq-table tbody tr { height: 33px; }
#dnsq-table .dnsq-type { color: var(--text-3); font-size: 11px; margin-left: 6px; }
#dnsq-table .badge { margin-right: 6px; }
#dnsq-table td.dnsq-empty { text-align: center; color: var(--text-3); white-space: normal; }
#k-dns-col.kpi-click:hover .kpi-value { color: var(--primary); }
#k-dns-col.kpi-click:hover { border-color: transparent; }
.req-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--success); white-space: nowrap; }
.req-mode[hidden] { display: none; }
.req-mode i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: req-live 1.6s ease-in-out infinite; }
.req-mode.paused { color: var(--warning); }
.req-mode.paused i { width: 8px; height: 8px; border-radius: 1px; animation: none; }
@keyframes req-live { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .req-mode i { animation: none; } }
.seg button[data-count]::after { content: attr(data-count); margin-left: 6px; font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }

/* Buttons of the family: filled primary (the action that ends the dialog), outlined primary
   (an offer beside it), ghost (pager), soft primary (row action). */
.btn-fill, .btn-outline {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-fill { padding: 9px 16px; background: var(--primary); color: #fff; border: none; }
.btn-fill:hover { filter: brightness(1.1); }
.btn-fill.danger { background: var(--bad); }
.btn-fill:disabled { opacity: .45; cursor: not-allowed; filter: none; }
#confirm-modal .field { display: block; margin-top: 12px; }
.btn-outline { padding: 8px 15px; background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  font: inherit; font-size: 12px; cursor: pointer; background: transparent; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }
.btn-ghost:disabled { opacity: .4; cursor: default; }
.btn-soft {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 6px; padding: 3px 12px;
  background: transparent; color: var(--primary); border: 1px solid var(--primary);
}
.btn-soft:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-soft:disabled { opacity: .45; cursor: wait; }
.btn-fill:focus-visible, .btn-outline:focus-visible, .btn-ghost:focus-visible, .btn-soft:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Paged table: fixed layout pinned to the modal's width, one line per cell (ellipsis +
   title), padding rows keep a short last page at the full ten-row height. */
.paged .table { table-layout: fixed; width: 100%; }
.paged .table th, .paged .table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paged .table .col-name { width: 240px; } /* logo + longest name (12 chars, bold) + "partial" tag */
.paged .table .col-num { width: 90px; }
.paged .table .col-act { width: 80px; }
#cc-table .cc-svc { width: 27%; }  /* the widths leave room for the robot's column (32 px), and for longer headers (Saving: Ersparnis, Risparmio) */
#cc-table .cc-size { width: 15%; }
#cc-table .cc-pct { width: 11%; }
#cc-table .cc-sav { width: 15%; }
/* A name wider than its column is cut with an ellipsis (full name in the cell's title): left to the cell, the
   ellipsis would replace the whole button, name included. */
#cc-table td:first-child .linkish { display: inline-block; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
#cc-table th.ask-col, #cc-table td.ask-col { width: 28px; padding-left: 2px; padding-right: 2px; }
#sd-table td.good, #cc-table td.good, #hf-table td.good, #cm-table td.good, #cli-db-table td.good, #cli-net-table td.good { color: var(--good); } #sd-table td.warn, #cc-table td.warn, #hf-table td.warn, #cm-table td.warn, #cli-db-table td.warn, #cli-net-table td.warn { color: var(--warn); } #sd-table td.bad, #cc-table td.bad, #hf-table td.bad, #cm-table td.bad, #cli-db-table td.bad, #cli-net-table td.bad { color: var(--bad); }
#cc-table tfoot td { font-weight: 650; border-top: 1px solid var(--border); border-bottom: 0; padding: 9px 10px; }
.paged .table td.row-act { overflow: visible; text-align: right; }
/* "+ Services": services already on the page are greyed out, their Add disabled. */
#am-table tr.added td, #am-table tr.added .linkish { color: var(--text-3); }
#am-table tr.added .svc-logo { opacity: .5; }
#am-table tr.added .btn-soft:disabled { cursor: default; }
/* Every row the same height (with or without a button), so pages don't jump. */
.paged .table tbody td { height: 38px; padding-top: 0; padding-bottom: 0; }
.paged .table tr.pad td { border-color: transparent; }
.paged .table tr.pad:hover td { background: none; }
/* A button on the right of a pager row, the pager staying centred on the whole width. */
.pager-row { position: relative; }
.pager-side { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
/* Clients (2026-10-08): four tiles, the network filter, each Total's bar, the compact pager with rows a page. */
.opt-advice { margin-top: 8px; max-width: none; }
.opt-advice .btn { margin-left: 8px; padding: 2px 10px; font-size: 12.5px; }
.cli-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .cli-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cli-kpis { grid-template-columns: 1fr; } }
.cli-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cli-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: 2px 4px 2px 8px; }
.cli-chip button { border: 0; background: none; color: var(--text-3); cursor: pointer; font: inherit; padding: 0 4px; }
.cli-chip button:hover { color: var(--text); }
.cli-auto { margin: 0 0 10px; max-width: none; }
#cli-net-table tbody tr[data-net] { cursor: pointer; }
#cli-net-table tbody tr[data-net]:hover td { background: var(--surface-2); }
/* Total: the volume in a fixed width on the right, the bar takes the rest of the column, which is wide and set apart
   from From internet (user: the bars looked tied to that column). */
#cli-db-table .cli-total-col, #cli-net-table .cli-total-col { width: 22%; padding-left: 28px; }
.cli-total { display: flex; align-items: center; gap: 12px; }
.cli-total-v { flex: none; min-width: 72px; text-align: right; }
.cli-bar { flex: 1; min-width: 40px; height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.cli-bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
@media (max-width: 900px) { .cli-bar { display: none; } }
.cli-pager .pg-num { min-width: 30px; }
.cli-pager .pg-num[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.cli-pager .pg-gap { padding: 0 2px; }
.pager {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  padding: 10px; border-top: 1px solid var(--grid); font-size: 12px; color: var(--text-3);
}
.dns-info { color: var(--text-2); margin-bottom: 10px; font-size: 13px; }
.dns-state { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; margin-right: 6px; border: 1px solid currentColor; }
.dns-state.on { color: var(--good); }
.dns-state.off { color: var(--text-3); }
.dns-state.blocked { color: var(--bad); }
.domains { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.domain { font-family: var(--mono); font-size: 12.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
.domain.wild { border-style: dashed; }
.dns-legend { margin-top: 10px; font-size: 12px; }
.dns-legend .domain { padding: 0 6px; font-size: 11px; }

/* Mini-badges (.badge, .state, .dns-state, .sync-state, .tab-badge, .src-tag): border-radius 3px
   everywhere (user's rule). */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; letter-spacing: .02em; border: 1px solid transparent; }
.badge.HIT { color: var(--series-hit); border-color: currentColor; }
.badge.HEAT { color: var(--info); border-color: currentColor; } /* HEAD answered from the cache */
.badge.MISS { color: var(--series-miss); border-color: currentColor; }
.badge.PARTIAL { color: var(--warn); border-color: currentColor; }
/* Settings › Cluster › LAN: a member's link to the others (cluster linkcheck.go) */
.badge.link-bad { color: var(--bad); border-color: currentColor; margin-left: 4px; }
.lan-low { color: var(--warn); font-weight: 600; }
.badge.BYPASS, .badge.TLS { color: var(--text-3); border-color: currentColor; }
.badge.BLOCKED, .badge.blocked { color: var(--bad); border-color: currentColor; } /* refused: blocked by the operator */
/* Services: a blocked service's row in pastel red (user's choice), its block on or off */
#svc-table tr.row-blocked td { background: color-mix(in srgb, var(--bad) 22%, transparent); }
#svc-table tr.row-blocked:hover td { background: color-mix(in srgb, var(--bad) 28%, transparent); }
/* + Services: the Add and Block icons side by side */
#am-table .row-act { white-space: nowrap; }
/* A confirmation asking a reason (a block): label above, input across the window */
#cm-typed.wide { display: grid; gap: 6px; }
#cm-typed.wide input { width: 100%; box-sizing: border-box; flex: none; height: auto; }
#am-table .row-act .btn.icon + .btn.icon { margin-left: 4px; }
/* Services › a service's window › Blocked. */
.blk-banner { border: 1px solid var(--bad); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.blk-banner b { color: var(--bad); }
.blk-banner.off { border-style: dashed; } /* blocked, the block off */
#dm-blocked .field { margin-bottom: 8px; }
#dm-blocked .text-input { width: 100%; }
#dm-blocked .table { margin-top: 6px; }
#dm-blocked .table td { font-size: 12.5px; }
#dm-blk-refused td:nth-child(3) { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }

/* Toggle switch, as in the other UnveilTech consoles: square-rounded, grey OFF / green ON. */
/* Settings › General: Network and Login side by side, half each (user's choice), stacked on narrow screens;
   their fields two by two. */
.gen-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.gen-row > .card { margin-bottom: 0; }
@media (max-width: 1100px) { .gen-row { grid-template-columns: minmax(0, 1fr); } }
.gen-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gen-col > .card { margin-bottom: 0; }
.gen-col > .card:last-child { flex: 1; }
#net-current { margin-bottom: 10px; }
/* Change…: the network card carrying XCC's address (2026-10-29). */
.net-iface-row { margin: 0 0 6px; }
.net-iface-row .text-input { width: 100%; }
.net-iface-row .help { margin: 6px 0 0; }
.net-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* Network card: Change… on the left, Internal Network… and Attacks… on the right (user's layout; the switch is in the window since 2026-11-29). */
.net-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.net-row .net-actions { margin-top: 0; }
.net-restrict { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* Internal Network window */
.cn-add { margin: 14px 0 10px; }
#cn-table .col-act { width: 100px; }
.cn-sep { border-top: 1px solid var(--border); margin: 16px 0 14px; }
#cn-modal .netsvc-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
/* Internal Network… shows its restriction's state by a light, like 2FA… (green on, grey off: off is normal). */
#cn-open { display: inline-flex; align-items: center; gap: 7px; }
#cn-open .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--switch-off); flex: none; }
#cn-open.on .dot { background: var(--success); }
#cn-modal .help { max-width: none; }
/* Network cards (Settings › General › Network › Network cards…). */
#nics-table td { vertical-align: middle; }
#nics-table .nic-name b { letter-spacing: .02em; }
#nics-table .nic-name .muted, #nics-table .nic-sub { display: block; font-size: 12px; }
.nic-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nic-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.nic-dot.up { background: var(--good); box-shadow: 0 0 6px color-mix(in srgb, var(--good) 60%, transparent); }
.nic-dot.no-link { background: var(--warn); }
.state.main { color: var(--primary); }
#nics-table .row-act { white-space: nowrap; text-align: right; }
.nic-sum { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
.nic-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.nic-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; background: var(--surface-2); }
.nic-mode:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.nic-mode input { margin-top: 3px; accent-color: var(--primary); }
.nic-mode .help { display: block; margin: 2px 0 0; }
.nic-routes-head { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.nic-routes { display: grid; gap: 8px; margin: 8px 0; }
.nic-routes:empty { display: none; }
.nic-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.nic-route .text-input { width: 100%; }
.nic-route .via { color: var(--text-3); font-size: 12.5px; }
.nic-route-add { display: inline-flex; align-items: center; gap: 6px; }
.nic-route-add svg { width: 14px; height: 14px; }
.net-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 10px 0; }
.net-col { display: grid; gap: 10px; align-content: start; }
.net-col[hidden] { display: none; }
@media (max-width: 600px) { .net-grid { grid-template-columns: minmax(0, 1fr); } }
.net-grid .text-input, .net-one .text-input { width: 100%; }
.net-niccol { grid-column: 2; } /* the card's details stay right, also when the fixed address fields are hidden */
@media (max-width: 600px) { .net-niccol { grid-column: auto; } }
.net-nic-facts { margin: 0; }
.net-one { margin-top: 12px; }
.dns-modes { margin: 12px 0 0; display: grid; gap: 6px; } /* one column: the address window, the DNS window (2026-11-12) */
/* My encrypted DNS (2026-11-16): each server and its optional addresses side by side */
.dns-own-row { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
@media (max-width: 640px) { .dns-own-row { grid-template-columns: 1fr; } }
/* DNS…'s Test results (2026-11-16): one line per server */
.dns-test { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; }
.dns-test-row { margin: 4px 0; overflow-wrap: anywhere; }
.dns-test-row.ok b { color: var(--good); }
.dns-test-row.bad b, .dns-test-row.bad:not(:has(b)) { color: var(--bad); }
.net-head { margin: 0; }
/* Login: rows like the Network block beside it, its buttons at the foot on the right like Network's. */
#login-card { display: flex; flex-direction: column; }
#lg-rows { margin-bottom: 10px; }
#lg-rows .badge { margin-inline-start: 8px; }
#lg-2fa { display: inline-flex; align-items: center; gap: 7px; }
#lg-2fa .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; }
#lg-2fa.on .dot { background: var(--success); }
.login-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: auto; }
/* Accounts (Settings › General › Login › Accounts…; read-only accounts: accounts.go, roles.go). */
body.reader .admin-only, body.reader .ask-ai, body.reader #sd-ask, body.reader [data-ask-client], body.reader [data-ask-content],
body.reader [data-ask-prefill], body.reader [data-ask-request], body.reader [data-ask-service] { display: none !important; }
.topbar-ro { display: none; margin-left: auto; padding: 2px 8px; border: 1px solid currentColor; border-radius: 3px;
  color: var(--text-topbar); font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
body.reader .topbar-ro { display: inline-block; }
body:not(.reader) .reader-only { display: none !important; } /* a reader's own way (Login › Change…) */
.acct-add { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.3fr) auto auto; gap: 10px;
  align-items: end; margin: 12px 0 14px; }
.acct-add .text-input { width: 100%; }
.acct-add .btn-soft { align-self: stretch; margin-top: 24px; } /* as tall as the fields beside it (under their labels) */
#acct-table td:nth-child(3), #acct-table th:nth-child(3) { text-align: center; }
#acct-table .row-act { white-space: nowrap; text-align: right; }
#acct-table .row-act .btn-soft + .btn-soft { margin-left: 6px; }
.badge.role-admin { color: var(--primary); border-color: currentColor; }
.badge.role-reader { color: var(--text-3); border-color: currentColor; }
.acct-edit .field { display: block; margin-bottom: 10px; }
/* Its label on the labels' line, its switch centred on the inputs beside it. */
.acct-2fa-field { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.acct-2fa-field .field-label { margin-bottom: 0; }
.acct-2fa-field .toggle-switch { align-self: center; margin-bottom: 6px; }
.acct-2fa-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.acct-edit .text-input { width: 100%; }
/* Two-factor sign-in: block in Login, setup modal. */
.tfa .netsvc-head { margin-bottom: 4px; }
.tfa .netsvc-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.tfa-warn { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--warning); border-radius: var(--radius);
  background: var(--surface-2); font-size: 13px; line-height: 1.5; }
.tfa-steps { padding-left: 20px; margin: 0 0 8px; }
.tfa-qr { display: block; margin: 6px auto 10px; image-rendering: pixelated; border-radius: var(--radius); }
.mob-code { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 3px; margin: 0 0 4px; }
.mob-expires { text-align: center; }
.mob-step { font-weight: 600; margin: 0 0 6px; }
.mob-os-tabs { justify-content: center; margin: 10px 0 8px; }
.mob-app-qr { max-width: 100%; } /* at its own size (8 px a module, scale in mobile.go): never scaled down, it blurs */
.mob-soon { display: flex; align-items: center; justify-content: center; height: 296px; margin: 6px auto 10px; font-size: 22px; font-weight: 700; color: var(--text-2); } /* the QR code's place, kept */
.mob-soon[hidden] { display: none; }
.mob-store { display: block; width: fit-content; margin: 2px auto 8px; } /* Apple's badge, unmodified, 40 px high */
.mob-store[hidden] { display: none; }
.mob-store img { display: block; height: 40px; width: auto; }
.mob-store-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mob-store-light { display: none !important; } :root:not([data-theme="light"]) .mob-store-dark { display: block !important; } }
:root[data-theme="dark"] .mob-store-light { display: none !important; }
:root[data-theme="dark"] .mob-store-dark { display: block !important; }
.tfa-secret { letter-spacing: .05em; user-select: all; white-space: nowrap; }
.tfa-code { width: 140px; margin-left: 20px; font-size: 18px; letter-spacing: .2em; text-align: center; }
.tfa-recovery { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 28px; list-style: none; padding: 0; margin: 10px 0;
  font-size: 15px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* Password field with an eye to show what is typed (as on the sign-in page). */
.pw-wrap { position: relative; display: block; }
.pw-wrap .text-input { padding-right: 70px; }
.pw-wrap .pw-peek { right: 34px; }
.pw-wrap .pw-gen { right: 4px; }
/* Password generator modal. */
.pwgen-modal { width: min(460px, calc(100vw - 32px)); }
.pwgen-out { position: relative; margin-bottom: 14px; }
.pwgen-out .text-input { width: 100%; padding-right: 40px; font-size: 16px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.pwgen-again { right: 4px; }
.pwgen-sets { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.pwgen-len { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.pwgen-len input { flex: 1; accent-color: var(--accent); }
.pwgen-len b { width: 2.2em; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.pw-peek { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; padding: 6px; border: 0;
  border-radius: var(--radius); background: none; color: var(--text-3); cursor: pointer; }
.pw-peek svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pw-peek:hover, .pw-peek[aria-pressed="true"] { color: var(--accent); }
.pw-peek:focus-visible { outline: 2px solid var(--accent); }
.net-pending { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--warn);
  border-left-width: 4px; background: var(--surface); }
.net-pending-actions { display: flex; gap: 8px; }

/* Settings › General: DNS and DHCP blocks. */
/* DNS and DHCP: one card each, side by side (user's choice), the switch in the card's head. */
.netsvc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.netsvc-head h2 { margin: 0; }
.netsvc .help { margin-bottom: 8px; }
.netsvc-warn { padding-left: 20px; }
.netsvc-warn li { margin-bottom: 4px; }
.netsvc-status { color: var(--text); }
.netsvc-status.err { color: var(--bad); }
.dhcp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 12px 0 6px; }
.dhcp-form .btn { justify-self: start; }
.dhcp-form .text-input { width: 100%; }

/* Clients: sortable column titles, machine-name switch. */
#cli-db-table th[data-sort], #cli-net-table th[data-sort] { cursor: pointer; user-select: none; }
#cli-db-table th[data-sort]:hover, #cli-net-table th[data-sort]:hover { color: var(--text); }
#cli-db-table th[aria-sort]::after, #cli-net-table th[aria-sort]::after { content: " ▾"; color: var(--accent); }
#cli-db-table th[aria-sort="ascending"]::after, #cli-net-table th[aria-sort="ascending"]::after { content: " ▴"; }
.cli-names { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 20px; flex: none; vertical-align: middle; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--switch-off); transition: .25s; border-radius: 4px; }
.toggle-slider::before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; top: 3px; background: #fff; transition: .25s; border-radius: 2px; }
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-slider { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle-switch input:disabled + .toggle-slider { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .toggle-slider, .toggle-slider::before { transition: none; } }

.share { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.share .bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.share .bar div { height: 100%; background: var(--series-hit); border-radius: 3px; }
.share span { font-size: 12px; color: var(--text-2); width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
/* Narrower screens: a shorter Saving bar keeps the Services table inside its card. */
@media (max-width: 1300px) {
  #svc-table .share { min-width: 70px; }
  #svc-table th, #svc-table td { padding-inline: 7px; }
}

.config { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.config dt { color: var(--text-2); }
.config dd { margin: 0; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; word-break: break-all; }
.config dd a { color: var(--accent); text-decoration: none; font-weight: 600; }
.config dd a:hover { text-decoration: underline; }
.config .config-sep { grid-column: 1 / -1; border-top: 1px solid var(--border); margin: 6px 0; }
/* Settings › Information › Time Zone */
.tz-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 8px; }
.tz-row select { width: 420px; max-width: 100%; }
.clock-bad { color: var(--bad); }
/* Settings › Information › Backup & restore */
.bk-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
#bk-result { margin-bottom: 10px; color: var(--text); }


.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 8px;
  font-size: 13px; z-index: 50; max-width: calc(100% - 32px);
}
.toast.error { background: var(--bad); color: #fff; }
.toast .pf-spin { display: inline-block; margin-right: 8px; vertical-align: -2px; }

@media (max-width: 640px) {
  main { padding-left: 16px; padding-right: 16px; }
}

/* UnveilDNS tab */
.help { color: var(--text-2); font-size: 13px; margin: 0; max-width: 70ch; }
/* Cache disk card: its text spans the card, like the disk table under it (user's choice). */
/* Settings › Cache disk: every text spans its block (user's choice). */
#sub-disk .help { max-width: none; }
/* Settings › Cluster, › UnveilDNS, › Update and › Information: every text spans its block (user's choices). */
#sub-general .help, #sub-cluster .help, #sub-cluster .cl-legend, #sub-unveil .help, #sub-update .help, #sub-info .help, #sub-monitoring .help, #sub-ookla .help { max-width: none; }
.help a { color: var(--accent); text-decoration: none; font-weight: 600; }
.help a:hover { text-decoration: underline; }
/* Update tab */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; }
.tile span { display: block; color: var(--text-2); font-size: 12px; }
.tile b { display: block; margin-top: 3px; font-size: 15px; font-variant-numeric: tabular-nums; }
.tile b.avail { color: var(--warn); }
.tile b.ok { color: var(--good); }
#upd-body > * { margin: 14px 0 0; }
#upd-body .err { color: var(--bad); }
.tab-badge.bad { background: var(--bad); }
.state { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 3px; border: 1px solid currentColor; }
.state.ok { color: var(--good); }
.state.warn { color: var(--warn); }
.state.bad { color: var(--bad); }
.state.off { color: var(--text-3); }
.sys-warn { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--bad); background: var(--surface-2); border-radius: 0 6px 6px 0; color: var(--text); font-size: 13px; }
#disk-table td:last-child { white-space: nowrap; text-align: right; }
/* One line per disk: only the status detail may wrap. */
#disk-table td { white-space: nowrap; }
#disk-table td.status { white-space: normal; }
/* Health column: the thumb (up good, sideways watch/unknown, down failing), a click explains it */
#disk-table td.hh-cell { white-space: nowrap; }
.hh-thumb { background: none; border: 0; padding: 2px; margin: 0; cursor: pointer; vertical-align: middle; border-radius: 3px; line-height: 0; }
.hh-thumb:hover { background: var(--surface-2); }
.hh-thumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.hh-thumb svg, .hh-state svg { width: 18px; height: 18px; }
.hh-thumb.side svg, .hh-state.side svg { transform: rotate(-90deg); }
.hh-thumb.ok, .hh-state.ok { color: var(--good); }
.hh-thumb.warn, .hh-state.warn { color: var(--warn); }
.hh-thumb.bad, .hh-state.bad { color: var(--bad); }
.hh-thumb.off, .hh-state.off { color: var(--text-3); }
.hh-state { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.hh-state svg { width: 26px; height: 26px; }
.hh-lead p { margin: 8px 0 12px; }
.hh-problem { border-left: 3px solid var(--border); padding: 2px 0 2px 10px; margin: 0 0 10px; }
.hh-problem p { margin: 4px 0 0; color: var(--text-2); }
#hh-table { margin-top: 6px; }
.hh-raid { max-height: 340px; overflow: auto; margin-bottom: 8px; }
.hh-raid td { padding-top: 3px; padding-bottom: 3px; }
.hh-raid .hh-thumb { cursor: default; }
#hh-table td:first-child { color: var(--text-2); }
/* Disk details modal: one paged table (Section · Property · Value). */
#dk-table .dk-sec { width: 200px; }
#dk-table .dk-prop { width: 180px; }
#disk-table td:last-child .btn-soft + .btn-soft { margin-left: 6px; }
.btn-soft.danger { color: var(--bad); border-color: var(--bad); }
.btn-soft.danger:hover:not(:disabled) { background: var(--bad); color: #fff; }
.jobs { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.jobs li { padding: 5px 0; border-bottom: 1px solid var(--grid); color: var(--text-2); }
.jobs li:last-child { border-bottom: 0; }
.jobs .failed { color: var(--bad); }
.tab-badge { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; color: #fff; background: var(--warn); }
.spin { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Inside a button (Check DNS while it asks, 2026-11-04, user): in the button's own text colour. */
.btn .spin { border-color: color-mix(in srgb, currentColor 35%, transparent); border-top-color: currentColor; }
/* busyBox: the popup shown while a long action runs (Authentication Failure, a restart). */
.busy-modal { width: min(380px, 92vw); }
.busy-box { display: grid; justify-items: center; gap: 10px; padding: 28px 26px 24px; text-align: center; }
.busy-spin { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite; margin-bottom: 6px; }
.busy-text { margin: 0; font-size: 15px; font-weight: 650; }
.busy-sub { margin: 0; max-width: none; }
.busy-sub:empty { display: none; }
.fields { display: grid; gap: 14px; margin: 16px 0; }
/* Settings › UnveilDNS: address and token fields take half the card, their icons inside. */
#sub-unveil .input-icons, #sub-monitoring .input-icons { width: 50%; }
@media (max-width: 800px) { #sub-unveil .input-icons, #sub-monitoring .input-icons { width: 100%; } }
/* Settings › Monitoring › Metrics' window. */
.mon-fields .input-icons { width: 100%; }
.mon-prom-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 6px; }
.mon-prom-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
/* Settings › Monitoring › SNMP's window: every field across it. */
.snmp-fields select, .snmp-fields .text-input, .snmp-fields .mono-input, .snmp-fields .input-icons { width: 100%; box-sizing: border-box; }
.snmp-fields .snmp-v3 { display: grid; gap: 14px; }
.snmp-fields .snmp-v3[hidden] { display: none; }
/* Settings › UnveilDNS › Without UnveilDNS: steps, format choice and generated entries. */
.help.steps { padding-left: 20px; margin: 10px 0 14px; }
.help.steps li { margin-bottom: 6px; }
.dns-gen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mono-input.dns-out { display: block; width: 100%; resize: vertical; white-space: pre; }
.dns-note { margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.field-label code { font-weight: 400; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mono-input {
  flex: 1 1 320px; min-width: 0; font: 13.5px/1.4 var(--mono); font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 10px;
}
.mono-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Custom service form (#svc-editor) and added domains (#dm-extra). */
.form { display: grid; gap: 14px; }
.text-input { font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 10px; }
.text-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea.mono-input { resize: vertical; min-height: 90px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.warn-text { color: var(--warn); max-width: none; }
.err-text { color: var(--bad); max-width: none; }
.btn-outline.danger { color: var(--bad); border-color: var(--bad); }
.btn-outline.danger:hover { background: var(--bad); color: #fff; }
.dm-add { margin-bottom: 10px; }
#dm-tabs { margin-top: -4px; }
/* Service modal tabs share one grid cell: the inactive one is invisible but keeps its place, so the
   modal is as high as the taller tab and doesn't jump when switching. */
.dm-panels { display: grid; }
.dm-panels > div { grid-area: 1 / 1; min-width: 0; }
.dm-panels > .off { visibility: hidden; }
#dm-table .col-act { width: 100px; }
/* Service modal: the Important tab (Epic Games) is written in the alert colour. */
.subtabs button.tab-alert, .subtabs button.tab-alert[aria-selected="true"] { color: var(--bad); }
.subtabs button.tab-alert[aria-selected="true"] { border-bottom-color: var(--bad); }
.alert-text { color: var(--bad); }
#dm-important .modal-sub { margin-top: 0; }
.dm-steps { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.dm-steps li + li { margin-top: 4px; }
.dm-script { min-height: 0; max-height: 220px; font-size: 12px; margin-bottom: 10px; white-space: pre; }
.tab-count { margin-left: 4px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* Settings › Cache disk › Maintenance: one button per line, its explanation beside it. */
.opt + .opt { margin-top: 18px; }
.opt .netsvc-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.opt .help { margin-bottom: 8px; }
.opt-ctl { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.opt-ctl input[type="range"] { flex: 1; accent-color: var(--accent); }
.opt-ctl b { min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.opt-ctl .text-input { flex: 1; }
.opt-hint { font-size: 12px; }
.opt-head-btn { margin-left: auto; }
.opt-head-btn.on { color: var(--good); border-color: var(--good); }
.opt-head-btn.on:hover:not(:disabled) { background: var(--good); color: #fff; }
.px-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 6px; }
.px-grid .px-wide { grid-column: 1 / -1; }
.px-grid .text-input { width: 100%; }
@media (max-width: 560px) { .px-grid { grid-template-columns: 1fr; } }
.opt-ctl .text-input.bw-mbps { flex: 0 0 7em; }
.bw-unit { color: var(--text-2); }
.opt-cluster { margin: 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 6px 6px 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.opt-cluster b { color: var(--text); }
.bw-hours { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; color: var(--text-2); }
.bw-hours .text-input.bw-time { width: 5em; text-align: center; font-variant-numeric: tabular-nums; }
.bw-hours.off .bw-time { opacity: .5; }
.maint { display: grid; grid-template-columns: max-content 1fr; gap: 14px 16px; align-items: start; }
.maint .help { margin: 0; }
@media (max-width: 800px) { .maint { grid-template-columns: 1fr; } }
.regen { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--grid); }
.sync-state { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 3px; border: 1px solid currentColor; color: var(--text-3); }
.sync-state.ok { color: var(--good); }
.sync-state.warn { color: var(--warn); }
.sync-state.bad { color: var(--bad); }

/* Services with a caching rule ("partial" tag) */
/* Service logo tile: brand icon as a mask (takes the glyph colour), or a monogram. */
.svc-logo {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 22px; height: 22px; margin-right: 8px; border-radius: 5px; flex: none;
  color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.svc-logo i {
  width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.svc-logo.on-light { color: #1e1e1e; }
.svc-logo.mono { font-size: 10px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.svc-logo.mono.small { font-size: 8.5px; }
.src-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; vertical-align: 1px; cursor: help; }
/* Cards with a sticky header (Services, Requests): the card header stays at the top of the screen,
   and the table scrolls inside a screen-high box whose column titles stay visible. Desktop layout
   only (the menu is a top bar below 800px). --head-h is measured in app.js. */
@media (min-width: 801px) {
  .sticky-card .card-head {
    position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 3;
    margin: -16px -16px 0; padding: 16px 16px 10px;
    background: var(--surface); border-radius: var(--radius) var(--radius) 0 0;
  }
  .sticky-card .table-wrap {
    overflow: auto;
    /* The table ends at the bottom of the screen, the page itself doesn't scroll: 98px = main's
       top (24) and bottom (40) padding, the card's bottom padding (16), borders (2), margin (16). */
    max-height: calc(100vh - var(--topbar-h) - var(--head-h, 60px) - 98px);
    max-height: calc(100dvh - var(--topbar-h) - var(--head-h, 60px) - 98px);
  }
}
/* Every width: column titles stay visible inside the scroll box. */
.sticky-card thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface);
  border-bottom: 0; box-shadow: inset 0 -1px 0 var(--border);
}
/* Narrow screens: the top bar (--top-h) and the menu bar (--menu-h), both measured in app.js, sit
   above the card; the table ends at the bottom of the screen, so the page doesn't scroll either. 120px = main's padding (20 + 40), the
   card's padding (16 + 16), borders (2), margin (16) and the head's bottom margin (10). */
@media (max-width: 800px) {
  .sticky-card .table-wrap {
    overflow: auto;
    max-height: calc(100vh - var(--top-h, 64px) - var(--menu-h, 50px) - var(--head-h, 60px) - 120px);
    max-height: calc(100dvh - var(--top-h, 64px) - var(--menu-h, 50px) - var(--head-h, 60px) - 120px);
  }
}

/* Tooltips (js/tooltip.js, from muster): a styled bubble that replaces the native title=.
   Theme through tokens; the arrow is a rotated square in the bubble colour. */
.tip {
  position: fixed; z-index: 9999; left: 0; top: 0; pointer-events: none;
  max-width: 320px;
  background: var(--tip-bg); color: var(--tip-fg);
  font-family: var(--sans); font-size: 12px; line-height: 1.45;
  padding: 6px 10px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
}
.tip.show { opacity: 1; transform: none; }
.tip.wide { max-width: 620px; white-space: pre-wrap; }
.tip.lines { white-space: pre-line; } /* data-tip-lines: a title written with \n */ /* Exo everywhere: no monospace (user's choice) */
.tip-body { display: block; }
.tip-arrow {
  position: absolute; width: 8px; height: 8px; background: var(--tip-bg);
  transform: translateX(-50%) rotate(45deg); bottom: -4px;
}
.tip.below .tip-arrow { bottom: auto; top: -4px; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* The assistant's robot at the end of a table row (Clients): opens /ai about that row. */
th.ask-col, td.ask-col { width: 40px; text-align: center; padding-left: 4px; padding-right: 4px; }
.ask-ai { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; padding: 0; border: 1px solid transparent;
  border-radius: 3px; background: none; color: var(--text-3); cursor: pointer; }
.ask-ai svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ask-ai:hover, .ask-ai:focus-visible { color: var(--primary); border-color: var(--border); background: var(--surface-2); }

/* Dashboard ▸ Saving: the tile opens its curve (#saving-modal). */
.kpi-click { cursor: pointer; }
.kpi-click:hover { border-color: var(--primary); }
.kpi-click:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* The period selector in a modal's head looks like the Dashboard's ones: not the head's bold title text, and a
   pointer rather than the head's drag cursor. */
.sv-head select { font-weight: 400; cursor: pointer; }
#saving-modal:focus, #cache-modal:focus, #svc-dl-modal:focus, #hour-modal:focus, #cli-modal:focus { outline: none; }
/* Clients ▸ a device's window: its services, each figure and its share. */
#cm-table th:nth-child(1) { width: 18%; }
#cm-table th:nth-child(2n) { width: 11.75%; }
#cm-table th:nth-child(2n+3) { width: 6.5%; } /* "100.0%" whole (user) */
#cm-table th:nth-child(10) { width: 9%; }
#cm-table th, #cm-table td { padding-left: 4px; padding-right: 4px; }
#cm-table td:nth-child(2n+3):not(:nth-child(10)) { font-size: 12px; }
#cm-table tbody td { height: 32px; }
#cm-table tfoot td { font-weight: 650; border-top: 1px solid var(--border); border-bottom: 0; height: 32px; } /* compact rows: the window stays low (user) */
#cm-table td.cm-loading { height: 32px; } /* one low line while loading: the window grows when the rows come (user) */
#cm-table td.cm-loading .spin { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
#cm-table th { white-space: normal; vertical-align: bottom; } /* longer titles in other languages: two lines */
#cli-modal { width: min(900px, 96vw); } /* 900 px: From internet on one line, "100.0%" whole (user) */
#cm-chart { height: 160px; }
#cm-table .svc-cell { display: inline-flex; align-items: center; gap: 8px; }
#cli-db-table tbody tr { cursor: pointer; }
/* Hourly history ▸ an hour's services. */
#hf-table { table-layout: fixed; width: 100%; }
#hf-table th:nth-child(1) { width: 22%; }
#hf-table th:nth-child(2), #hf-table th:nth-child(3) { width: 15%; }
#hf-table th:nth-child(4), #hf-table th:nth-child(6), #hf-table th:nth-child(7) { width: 11%; }
#hf-table th:nth-child(5) { width: 15%; }
#hf-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hf-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-summary { font-size: 14px; color: var(--text-2); }
.sv-summary b { color: var(--text); font-size: 18px; }
.sv-chart { height: 280px; }
.sv-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
.sv-ask { display: inline-flex; align-items: center; gap: 6px; }
.sv-ask svg { width: 16px; height: 16px; }
.cu-h { margin: 14px 0 0; font-size: 13px; font-weight: 600; }
.cu-h .muted { font-weight: 400; margin-left: 6px; }
/* Cache usage ▸ Is the cache big enough? (refetch.go): the verdict, the services fetched again, the advice. */
.cu-room p { margin: 6px 0 0; font-size: 13px; }
/* Dashboard ▸ addresses outside your networks (outside.go) */
.modal-xl.out-modal { width: min(980px, 94vw); }
.out-modal .help { max-width: none; } /* its texts span the window (user) */
.out-flag { width: 20px; height: 15px; margin-right: 8px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }
#out-table tfoot th { border-top: 2px solid var(--border); }
#out-table tbody a { color: var(--accent); text-decoration: none; }
#out-table td:first-child, #out-table th:first-child { width: 1%; white-space: nowrap; }
.badge.out-attacker { color: var(--bad); border-color: currentColor; }
.badge.out-scanner { color: var(--warn); border-color: currentColor; }
#out-table tbody a:hover { text-decoration: underline; }
.out-count { margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--grid); font-size: 11px; }
.out-count:empty { display: none; }
.out-tab-help { margin: 8px 0 4px; }
/* Settings ▸ General ▸ Attacks… (attacks.go): the outside window's cells, a Banned badge, the period beside the lead */
.atk-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.atk-top .modal-lead { margin: 0; }
#atk-table tbody a { color: var(--accent); text-decoration: none; }
#atk-table tbody a:hover { text-decoration: underline; }
#atk-table td:first-child, #atk-table th:first-child { width: 1%; white-space: nowrap; }
#atk-table td:first-child .badge + .badge { margin-left: 4px; }
#atk-table td.atk-loading { padding: 28px 0; }
#atk-table td.atk-loading .spin { width: 18px; height: 18px; margin-right: 10px; vertical-align: -4px; }
.badge.atk-banned { color: var(--text-2); border-color: currentColor; }
.cu-room .cu-room-ok { color: var(--good); font-weight: 600; }
.cu-room .cu-room-bad { color: var(--bad); font-weight: 600; }
.cu-room .cu-room-svc { color: var(--text-2); }
.cu-room a { color: var(--primary); }
.cu-chart { height: 200px; }
#sd-title { display: inline-flex; align-items: center; gap: 8px; }
#sd-legend { margin-top: 10px; }

/* Dashboard ▸ Cache content ▸ a service's window ▸ Details */
#sd-tabs { margin-top: -4px; margin-bottom: 12px; }
.sd-dhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sd-dhead input { flex: 0 1 260px; }
#sd-table { table-layout: fixed; width: 100%; }
.sd-modal { width: min(1120px, 94vw); }
#sd-table th:nth-child(1) { width: 20%; }
#sd-table th:nth-child(2), #sd-table th:nth-child(5) { width: 10%; }
#sd-table th:nth-child(6) { width: 13%; }
#sd-table th:nth-child(4) { width: 11%; }
#sd-table th:nth-child(7) { width: 11%; }
#sd-table th:nth-child(8) { width: 9%; }
#sd-table th:nth-child(3) { width: 7%; }
#sd-table th:nth-child(9) { width: 9%; }
#sd-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sd-table th { white-space: normal; vertical-align: bottom; overflow-wrap: break-word; hyphens: auto; } /* French and German headers are longer: two lines */
.sd-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

/* Dashboard ▸ Disks tile */
.cu-disks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
/* The disks on one line, as wide as the tile allows (54 px at most); app.js switches to bays when one would be
   under 36 px. */
.cu-disks.fit { flex-wrap: nowrap; gap: 4px 6px; }
.dk { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--text-2); }
.dk svg { width: 54px; height: 56px; display: block; }
.cu-disks.fit .dk { flex: 0 1 54px; min-width: 0; }
.cu-disks.fit .dk svg { width: 100%; height: auto; aspect-ratio: 54 / 56; }
.dk svg.flat .dk-pct { font-size: 9px; }
/* Too many disks for the tile's width: drive bays side by side, one row (52 px) or two (25 px each) within one
   line's height; up to 8 a column, wider bays (20 px) to fill the tile. */
.cu-disks.bays { display: grid; grid-template-columns: repeat(var(--bay-cols), minmax(6px, var(--bay-max, 14px))); gap: 3px 3px; }
.cu-disks.bays .dk svg { width: 100%; height: 52px; }
.cu-disks.bays.two .dk svg { height: 25px; }
svg.bay .dk-body { vector-effect: non-scaling-stroke; stroke-width: 1.2; }
.dk-body { fill: none; stroke: var(--text-3); stroke-width: 1.6; }
svg.dk-sys .dk-bg { fill: var(--disk-sys); }
svg.dk-cache .dk-bg { fill: var(--disk-cache); }
svg.dk-bad .dk-bg { fill: var(--disk-bad); }
/* A disk in trouble: a darker red edge (user, 2026-10-30), as thin as the others since 2026-11-04 (user: the red
   background shows it well enough; it was 2.6 thick). */
svg.dk-bad .dk-body { stroke: var(--disk-bad-edge); }
/* Activity lights (user's request): off at rest, green blinking while reading, orange while writing, faster with more
   activity (l1 some, l2 ≥ 1 MB/s, l3 ≥ 20 MB/s); irregular steps so it flickers like a real LED, not a metronome. */
.led { fill: var(--text-3); opacity: .28; }
.led.l1, .led.l2, .led.l3 { opacity: 1; animation: led-blink steps(1, end) infinite; }
.led-r.l1, .led-r.l2, .led-r.l3 { fill: var(--led-read); }
.led-w.l1, .led-w.l2, .led-w.l3 { fill: var(--led-write); }
.led-i.l1, .led-i.l2, .led-i.l3 { fill: var(--led-check); }
.led-i.l2 { animation-delay: -.1s; } .led-i.l3 { animation-delay: -.04s; }
/* Eviction (2026-11-17, user): red, edged to show on a red disk too; blinking at a steady pace while XCC deletes files
   for room (2026-11-18, user: "il devrait clignoter pour faire voir que la purge agit"; it was lit, still, at first). */
.led.ev { opacity: 1; fill: var(--led-evict); stroke: var(--surface); stroke-width: .35;
  animation: led-blink steps(1, end) infinite; animation-duration: .7s; animation-delay: -.3s; }
@media (prefers-reduced-motion: reduce) { .led.ev { animation: none; } }
/* Under the fill bar: what the three lights mean (2026-10-30, user), small. */
.k-leds { display: flex; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; margin-top: 3px; font-size: 10px; color: var(--text-3); }
.k-leds span + span::before { content: "-"; margin: 0 3px; } /* one line (user): "● Read - ● Write - ● Integrity" */
/* English in every language (user, 2026-10-30: the translations did not fit on one line); a narrow tile (6 tiles
   on a screen under ~1300 px) takes a smaller size so it still does. */
#k-disks-tile { container-type: inline-size; }
@container (max-width: 160px) { .k-leds { font-size: 9px; } }
.k-leds i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; vertical-align: 0; }
.k-leds .lg-r { background: var(--led-read); } .k-leds .lg-w { background: var(--led-write); } .k-leds .lg-i { background: var(--led-check); }
.led.l1 { animation-duration: 1.1s; }
.led.l2 { animation-duration: .45s; }
.led.l3 { animation-duration: .16s; }
.led-w.l2 { animation-delay: -.2s; } .led-w.l3 { animation-delay: -.07s; } /* the two lights not in step */
@keyframes led-blink { 0% { opacity: 1; } 35% { opacity: .25; } 55% { opacity: 1; } 70% { opacity: .35; } 85% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .led.l1, .led.l2, .led.l3 { animation: none; } }
svg.good .dk-fill { fill: var(--good); opacity: .55; }
svg.warn .dk-fill { fill: var(--warn); opacity: .6; }
svg.bad .dk-fill { fill: var(--bad); opacity: .65; }
.dk-pct { font-family: var(--sans); font-size: 10.5px; font-weight: 700; fill: var(--text); text-anchor: middle; dominant-baseline: central; }

/* Licensing: what XCC did so far, the Free license and the Pro one (user's request: a marketing page) */
.lic-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 22px 32px; margin-bottom: 10px; border-radius: calc(var(--radius) * 2);
  background: linear-gradient(120deg, var(--bg-topbar-start), var(--bg-topbar-end)); color: var(--text-topbar);
}
.lic-hero h1 { font-size: 30px; font-weight: 700; margin: 10px 0 6px; letter-spacing: -.01em; }
.lic-hero p { margin: 0; color: var(--text-topbar-dim); font-size: 15px; max-width: 560px; }
.lic-badge {
  display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--text-topbar-dim); color: var(--bg-topbar-end);
}
.lic-ring { position: relative; width: 132px; height: 132px; flex: none; }
.lic-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lic-ring-bg { fill: none; stroke: var(--text-topbar-dim); stroke-opacity: .25; stroke-width: 11; }
.lic-ring-fg { fill: none; stroke: var(--success); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 400; transition: stroke-dasharray .8s ease; }
.lic-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lic-ring-text b { font-size: 26px; font-weight: 700; }
.lic-ring-text span { font-size: 12px; color: var(--text-topbar-dim); text-transform: uppercase; letter-spacing: .08em; }

.lic-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
@media (max-width: 1250px) { .lic-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lic-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lic-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.lic-stat b { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.15; margin-top: 6px; }
.lic-stat > span:not(.lic-ico) { font-size: 13px; color: var(--text-2); }
.lic-stat small { font-size: 12px; color: var(--text-3); min-height: 1em; }
.lic-stat.good b { color: var(--good); }
.lic-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px;
  background: var(--surface-2); color: var(--primary); }
.lic-ico svg { width: 18px; height: 18px; }
.lic-stat.good .lic-ico { color: var(--good); }

.lic-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
.lic-row .card { margin-bottom: 0; }
@media (max-width: 1000px) { .lic-row { grid-template-columns: 1fr; } }
.lic-chart { height: 230px; }
.lic-disks { display: flex; flex-direction: column; gap: 12px; }
.lic-disk { display: flex; align-items: center; gap: 12px; }
.lic-disk svg { width: 56px; height: 58px; flex: none; }
.lic-disk div { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); min-width: 0; }
.lic-disk b { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lic-upgrade {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center;
  padding: 22px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 2);
}
@media (max-width: 1000px) { .lic-upgrade { grid-template-columns: 1fr; } }
.lic-badge.pro { background: var(--success); color: var(--text-topbar); }
.lic-pro-facts { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lic-pro-facts div { display: flex; flex-direction: column; gap: 2px; }
.lic-pro-facts dt { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
/* The license agreement (#eula-modal): UnveilTech's text in a scrolling box. */
.eula-text { max-height: min(58vh, 560px); overflow-y: auto; padding: 12px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.55; }
.eula-text h1, .eula-text h2, .eula-text h3 { font-size: 15px; margin: 12px 0 6px; }
.eula-hint { font-size: 12px; }
.lic-pro-facts .lic-cta { align-self: flex-start; }
#rn-renew { text-decoration: none; }
.lic-pro-facts dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Valid until: the date, then the license's year as segments emptying day by day (renderLicense). */
.lic-end-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lic-life { display: inline-flex; gap: 3px; }
.lic-life i { width: 9px; height: 16px; border-radius: 2px; background: color-mix(in srgb, var(--text-3) 45%, transparent); border: 1px solid transparent; } /* grey: the days gone */
.lic-life.good i.on { background: var(--good); border-color: var(--good); }
.lic-life.bad i.on { background: var(--bad); border-color: var(--bad); }
.lic-pitch-title { grid-column: 1 / -1; font-size: 24px; font-weight: 700; margin: 0 0 -6px; } /* above both columns: one line */
.lic-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lic-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.lic-points li svg { flex: none; margin-top: 3px; color: var(--good); }
.lic-points b { color: var(--text); }
.lic-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .lic-plans { grid-template-columns: 1fr; } }
.lic-plan { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); background: var(--bg); }
.lic-plan.best { border: 2px solid var(--primary); background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.lic-plan h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.lic-price { font-size: 34px; font-weight: 700; color: var(--text); line-height: 1.1; }
.lic-price span { font-size: 15px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.lic-perday { font-size: 12px; color: var(--good); font-weight: 600; margin-top: 2px; }
.lic-plan ul { list-style: none; padding: 0; margin: 14px 0 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lic-plan li { font-size: 13px; color: var(--text-2); padding-left: 18px; position: relative; }
.lic-plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--good); }
.lic-ribbon { position: absolute; top: -11px; right: 16px; padding: 3px 9px; border-radius: 3px; background: var(--primary); color: var(--text-topbar); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lic-cta { display: block; text-align: center; text-decoration: none; padding: 11px; font-size: 15px; font-weight: 600; }
.lic-limit { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.lic-limit-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.lic-limit-head b { color: var(--text); }
.lic-limit-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.lic-limit-bar div { height: 100%; border-radius: 5px; transition: width .8s ease; }
.lic-limit-bar .good { background: var(--good); } .lic-limit-bar .warn { background: var(--warn); } .lic-limit-bar .bad { background: var(--bad); }
.lic-limit small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.lic-plan li b { color: var(--text); }
.lic-hero-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.lic-cta-hero {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius); background: var(--success); color: var(--text-topbar);
  font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .12s ease, filter .12s ease;
}
.lic-cta-hero:hover { transform: translateY(-1px); filter: brightness(1.08); }
/* Upgrade to Pro: it shines (user's request): a light sweeping across it and a glow breathing around it. */
.lic-cta-hero, .lic-cta { position: relative; overflow: hidden; isolation: isolate; }
.lic-cta-hero::after, .lic-cta::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--text-topbar) 55%, transparent), transparent);
  transform: skewX(-20deg); animation: lic-shine 3.2s ease-in-out infinite;
}
.lic-cta-hero { animation: lic-glow-ok 2.4s ease-in-out infinite; }
.lic-cta { animation: lic-glow-primary 2.4s ease-in-out infinite; }
.lic-cta-hero:hover, .lic-cta:hover { animation-play-state: paused; filter: brightness(1.1); }
@keyframes lic-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes lic-glow-ok {
  0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); }
  50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 22px 6px color-mix(in srgb, var(--success) 45%, transparent); }
}
@keyframes lic-glow-primary {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent); }
  50% { box-shadow: 0 0 20px 5px color-mix(in srgb, var(--primary) 40%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .lic-cta-hero, .lic-cta { animation: none; }
  .lic-cta-hero::after, .lic-cta::after { animation: none; display: none; }
}
/* Licensing's "!" in the menu: a plain red exclamation mark after the word (user's choice, not a badge). */
.tab-alert { margin-left: 2px; color: var(--bad); font-weight: 800; font-size: 16px; line-height: 1; }
.lic-break { position: absolute; top: 20px; right: 20px; text-align: right; font-size: 17px; font-weight: 800; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .04em; color: var(--warning); transform: rotate(-4deg); }
.lic-ribbon.current { background: var(--text-2); color: var(--surface); }
.lic-disks.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.lic-disks.many .lic-disk { gap: 8px; }
.lic-disks.many .lic-disk svg { width: 40px; height: 42px; }
.lic-disks.many .lic-disk div { font-size: 11.5px; line-height: 1.3; }
.lic-disks.many .lic-disk b { font-size: 12.5px; }
/* More than 8 disks: the same cache disks as one group, their bays in a row under the text. */
.lic-group > div:first-child { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); }
.lic-group b { color: var(--text); font-size: 14px; }
.lic-bays { display: grid; grid-template-columns: repeat(var(--bay-cols), 14px); gap: 6px 4px; margin-top: 8px; }
.lic-bays svg { width: 14px; height: 30px; display: block; }
.k-limit-full { color: var(--warn); font-weight: 600; }

/* Prefill page */
.pf-sched { gap: 10px; flex-wrap: wrap; }
.pf-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.pf-days { display: inline-flex; gap: 4px; }
.pf-day input { display: none; }
.pf-day span { display: inline-block; padding: 4px 7px; border: 1px solid var(--border); border-radius: 3px; font-size: 12px; color: var(--text-3); cursor: pointer; }
.pf-day input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--text-topbar); }
.pf-current { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface-2); font-size: 13px; }
.pf-spin { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: pf-spin 1s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf-spin { animation: none; } }
/* Prefill ▸ the platforms' table */
.pf-table td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
.pf-table .col-toggle { width: 96px; text-align: center; }
.pf-table td.actions { white-space: nowrap; text-align: right; width: 1%; }
.pf-table td.actions .btn-fill { margin-left: 6px; }
.pf-plat { display: flex; align-items: center; gap: 10px; }
.pf-plat .svc-logo { flex: none; }
.pf-sub-line { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.pf-cell-act { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pf-chosen { max-width: 280px; }
.pf-chosen > span:first-child { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.pf-last { white-space: nowrap; }
.pf-last .pf-sub-line { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pf-row-warn { margin: 6px 0 0 42px; font-size: 12px; color: var(--warn); white-space: nowrap; }
.pf-row-warn a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pager:empty { display: none; }
.pf-warn { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--warn); background: var(--surface-2); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.cache-full-warn { margin: 0 0 12px; } /* Prefill, Replica, Upcoming games: the cache full */
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.pf-ok { color: var(--good); font-weight: 600; } .pf-no { color: var(--warn); font-weight: 600; }
.pf-opts { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.pf-opts label, .pf-list label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.pf-num { width: 58px; padding: 2px 6px; }
.pf-sub { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 4px; }
.pf-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; margin-bottom: 8px; }
.pf-add { margin-bottom: 6px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
/* Prefill ▸ Settings window */
.pf-set .modal-head.pf-set-head { display: flex; align-items: center; gap: 12px; }
.pf-set-logo { display: inline-flex; }
.pf-set-logo img, .pf-set-logo svg { width: 32px; height: 32px; }
.pf-set-title { font-size: 16px; font-weight: 600; }
.pf-set-sub { font-size: 12px; font-weight: 400; color: var(--text-3); }
.pf-set-tabs { margin: 0; padding: 0 20px; }
.pf-set-tabs .tab-badge { background: var(--primary); }
.pf-set-body { height: min(570px, 70vh); display: flex; flex-direction: column; }
/* Prefill › Settings windows: every explanation spans the window (user, 2026-11-14). */
.pf-set .help { max-width: none; }
.pf-pane { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1 1 auto; }
.pf-pane[hidden] { display: none; }
.pf-set-note { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.pf-lib-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-lib-bar input[type="search"] { flex: 1 1 200px; min-width: 0; }
.pf-lib-bar select { width: auto; }
.pf-lib td.trunc { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-lib .net { margin-left: 8px; }
.pf-over { color: var(--warn); }
.pf-size-prog { display: flex; align-items: center; gap: 10px; width: min(360px, 80%); font-size: 13px; font-variant-numeric: tabular-nums; }
.pf-size-track { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.pf-size-fill { height: 100%; background: var(--primary); transition: width .3s; }
.pf-lib-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.pf-lib-foot .spacer { flex: 1; }
.pf-ps-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; font-size: 13px; }
.pf-ps-add input { width: 130px; }
.pf-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; color: var(--text-2); padding: 24px; }
.pf-empty p { margin: 0; max-width: 460px; line-height: 1.55; }
.pf-empty .pf-spin { width: 28px; height: 28px; border-width: 3px; }
.pf-auto { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); }
.pf-auto-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--border); }
.pf-auto-row:first-child { border-top: 0; }
.pf-auto-row .txt { flex: 1; min-width: 0; }
.pf-auto-row b { display: block; font-weight: 600; font-size: 14px; color: var(--text); }
.pf-auto-row small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.pf-auto-row .pf-num { width: 64px; }
.pf-auto-row.warn small { color: var(--warn); }
/* Choice tables: 10 rows per page fit the window; on a short screen the table scrolls inside it. */
.pf-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; min-height: 0; flex: 0 1 auto; }
.pf-choices { margin: 0; }
.pf-choices td, .pf-choices th { vertical-align: middle; }
.pf-choices td { padding-top: 5px; padding-bottom: 5px; }
.pf-choices .col-toggle { width: 56px; }
.pf-choices .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-choices tr.pf-on td { background: color-mix(in srgb, var(--primary) 7%, transparent); }
@media (max-width: 640px) { .pf-choices .hide-sm { display: none; } }
.pf-term-out { max-height: 340px; min-height: 160px; overflow: auto; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2);
  font-family: var(--sans); font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; margin: 0 0 10px; }
.pf-term-state { font-size: 13px; color: var(--text-2); }
.pf-warn a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pf-sched select { width: auto; padding: 4px 6px; }
.pf-bad { color: var(--bad); font-weight: 600; }

/* Settings › Cluster */
.cl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 12px; margin: 10px 0 14px; }
@media (max-width: 1100px) { .cl-grid { grid-template-columns: 1fr; } }
.cl-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.cl-grid .field-row { display: flex; gap: 6px; }
.cl-grid .field-row input { flex: 1; min-width: 0; }
#cl-table input { width: 100%; }
.cl-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

/* Cluster page: members table */
#cv-table .cv-cache-col { min-width: 140px; }
#cv-table .cv-id { white-space: nowrap; }
#cv-table .cv-self { display: table; margin: 3px 0 0; }
#cv-table .meter { margin-top: 4px; height: 6px; }
#cv-table tr.cv-stale td { color: var(--text-3); }
.cv-foot { margin: 10px 0 0; font-size: 12.5px; }

/* Settings › Cluster › Shared address */
.cl-vip { border-top: 1px solid var(--border); margin: 14px 0 12px; padding-top: 12px; }
.cl-vip h3 { margin: 0 0 4px; font-size: 14px; }
.cl-vip-row { max-width: 560px; }
.cl-vip-row input { max-width: 180px; }
.cl-vip-free { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.cl-vip-free button { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: 2px 8px; cursor: pointer; }
.cl-vip-free button:hover { border-color: var(--accent); color: var(--accent); }
.cl-vip-status { margin: 8px 0 0; font-size: 13px; min-height: 1.2em; }

/* Settings › Cluster: pairing */
.cl-legacy { margin-bottom: 12px; }
.cl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
@media (max-width: 900px) { .cl-two { grid-template-columns: 1fr; } }
.cl-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2); }
.cl-box h3 { margin: 0 0 4px; font-size: 14px; }
.cl-code { font-size: 38px; font-weight: 700; letter-spacing: .12em; margin: 8px 0 4px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cl-code-sub { margin: 0 0 10px; font-size: 12.5px; color: var(--text-2); }
.cl-key { font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--text-2); }
.cl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.cl-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.cl-form input { width: 150px; flex: none; height: auto; }
.cl-form .cl-code-in { width: 100px; letter-spacing: .08em; }
.cl-box .cl-form { flex-direction: column; align-items: stretch; }
.cl-box .cl-form input { width: 100%; max-width: 260px; }
.cl-box .cl-form button { align-self: flex-start; }
/* A field with icons inside, on its right (Settings › Cluster › UnveilDNS API token). */
.input-icons { position: relative; display: flex; align-items: center; }
.input-icons input { flex: 1; min-width: 0; padding-right: 68px; }
.input-icons .in-ico { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid;
  place-items: center; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--text-2); cursor: pointer; }
.input-icons .in-ico:hover { color: var(--accent); background: var(--surface-2); }
.input-icons .in-ico:nth-of-type(1) { right: 36px; }
.input-icons .in-ico:nth-of-type(2) { right: 6px; }
.input-icons.one input { padding-right: 38px; }
.input-icons.one .in-ico:nth-of-type(1) { right: 6px; }
.cl-token-row { max-width: 640px; }
#cl-table tr.cl-off td:not(:first-child) { color: var(--text-3); }
#cl-table .col-act { white-space: nowrap; }
#cl-table .cl-act { display: inline-flex; gap: 6px; vertical-align: middle; }
#cl-rename-modal .cr-help { margin-top: 10px; }
.cl-legend { margin: 6px 0 4px; font-size: 12.5px; color: var(--text-2); }
.cl-legend p { margin: 6px 0; }
/* A row button's icon beside the legend that explains it (Replace), not clickable. */
.cl-legend-ico { display: grid; grid-template-columns: 40px 1fr; align-items: start; justify-items: start; gap: 8px; margin: 6px 0; }
.cl-legend .cl-legend-ico > p { margin: 0; }
.btn.icon.legend-ico { cursor: default; flex: none; margin-top: -2px; }
.toggle-switch.legend-ico .toggle-slider { cursor: default; }
.cl-legend .cl-legend-ico + .cl-legend-ico { margin-top: 8px; }
.cl-legend ul { margin: 4px 0 6px; padding-left: 20px; }
.cl-legend li { margin: 2px 0; }
.cl-join { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; }
.cl-join-row { display: flex; align-items: center; gap: 10px; }
.cl-join-lbl { width: 64px; font-size: 12.5px; color: var(--text-2); }
.cl-join-addr { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cl-join .cl-code { margin: 0; }
.cl-join .in-ico { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: var(--text-2); cursor: pointer; }
.cl-join .in-ico:hover { color: var(--accent); background: var(--surface); }
.cl-join-actions { justify-content: flex-start; margin-top: 4px; }
.cl-pair-btns { display: inline-flex; gap: 8px; align-items: flex-end; }
.cl-box .cl-pair-btns { align-self: flex-start; }
.dv-row { margin-top: 10px; align-items: center; }
.dv-row input { flex: none; width: 190px; }
.dv-status { margin: 10px 0 6px; font-size: 13px; }
.cl-sub { margin: 14px 0 2px; font-size: 13px; font-weight: 650; }
.cl-dv-table input { width: 110px; }
.cl-dv-table .cl-dv-name { width: 120px; }
/* Discover modal: one card per XCC found */
.dv-modal { width: min(620px, 94vw); }
.dv-modal.dv-rows { width: min(1000px, 96vw); }
.dv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dv-top .dv-row { margin: 0; }
.dv-status { display: flex; align-items: center; gap: 8px; }
.dv-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: dv-spin .8s linear infinite; }
@keyframes dv-spin { to { transform: rotate(360deg); } }
.dv-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 6px 0 10px; align-items: start; }
.dv-two .dv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .dv-two .dv-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dv-grid { grid-template-columns: 1fr; } }
.dv-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.dv-card.off { opacity: .7; }
.dv-card-head { display: flex; align-items: center; gap: 10px; }
.dv-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); color: var(--accent); flex: none; }
.dv-ico svg { width: 20px; height: 20px; }
.dv-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dv-id b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-id span { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dv-badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 3px; white-space: nowrap; border: 1px solid var(--border); color: var(--text-2); }
.dv-badge.ready, .dv-badge.free { color: var(--good); border-color: var(--good); }
.dv-badge.busy { color: var(--warn); border-color: var(--warn); }
.dv-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); }
.dv-hint { margin: 0; font-size: 12.5px; color: var(--text-2); }
.dv-pair { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.dv-pair label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); }
.dv-pair input { width: 110px; flex: none; height: auto; }
.dv-foot { margin-top: 4px; max-width: none; }
.cl-dv-open { justify-content: flex-start; margin: 6px 0 4px; }
.dv-progress { margin: 0 0 12px; transition: opacity .3s; }
.dv-progress .meter-fill { transition: width .25s linear; }
/* Discover modal: a table, its body scrolls inside the modal when many XCC answer */
.dv-wrap { margin: 4px 0 6px; }
.dv-table td { vertical-align: middle; }
.dv-table tr.dv-off td { color: var(--text-3); }
.dv-machine { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dv-table .dv-ico { width: 26px; height: 26px; border-radius: 6px; }
.dv-table .dv-ico svg { width: 15px; height: 15px; }
.dv-table input { width: 96px; flex: none; height: auto; }
.dv-table .dv-name { width: 90px; }
/* Discover: compact lines, so a page of 10 fits without scrolling */
.dv-table td, .dv-table th { padding-top: 5px; padding-bottom: 5px; }
.dv-table input { height: 28px; padding: 2px 8px; font-size: 12.5px; }
.dv-table .btn-fill { padding: 4px 14px; font-size: 12.5px; }
.dv-table .dv-ico { width: 22px; height: 22px; }
.dv-table .dv-ico svg { width: 13px; height: 13px; }
#cv-table tfoot td { font-weight: 650; border-top: 2px solid var(--border); }
/* Replace a member: its cache moving to the others (Settings › Cluster). */
.cl-replace { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 12px 14px; margin: 0 0 14px; }
.cl-replace h3 { margin: 0 0 6px; font-size: 14px; }
.cl-replace .meter { margin: 8px 0 6px; }
.cl-replace .cl-rep-line { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; }
.cl-replace .cl-rep-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cl-replaced { border: 1px solid var(--border); border-left: 3px solid var(--good); border-radius: 6px; padding: 12px 14px;
  background: var(--surface); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
#cv-table .cv-rebuild { display: block; margin-top: 2px; font-size: 11.5px; color: var(--accent); white-space: nowrap; }
#integ-card .card-head { justify-content: flex-start; gap: 12px; }
.integ-meter { margin: 10px 0 0; max-width: 560px; }
.upd-meter { display: block; max-width: 420px; }
.upd-meter .meter-fill { display: block; }
.upd-dl { font-variant-numeric: tabular-nums; }
.upd-auto { margin-top: 12px; }
.integ-status { margin: 10px 0 0; font-size: 13px; line-height: 1.6; }
.opt-sys-state { margin: 4px 0 6px; }
.tabs .tab-alert { margin-left: -6px; }

/* Dashboard › Downloads in progress */
/* No margin of its own: the chart row above already leaves 16 px (its cards' margin-bottom), like every gap of the page. */
#dl-table { table-layout: fixed; width: 100%; }
#dl-table th, #dl-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dl-table .dl-slot { width: 58px; } /* the disk's bay (2026-11-08, user: 64 px with the number on the right was too wide) */
#dl-table .dl-dev { width: 22%; }
#dl-table .dl-bytes { width: 120px; }
#dl-table .dl-speed { width: 130px; } /* Geschwindigkeit */
#dl-table .dl-share { width: 190px; }
#dl-table .dl-member { width: 150px; }
#dl-table td .muted { margin-left: 6px; }
/* Downloads in progress › By service: one card per service (renderDownloadCards). */
#dl-card .card-head h2 { margin-right: auto; }
.dl-filter { font: inherit; font-size: 12px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.dl-filter:hover { border-color: var(--primary); }
.dl-look button { display: inline-flex; align-items: center; padding: 4px 8px; }
.dl-look svg { width: 15px; height: 15px; }
.dl-svc-table tbody tr { cursor: pointer; }
.dl-svc-table tbody tr:hover td { background: var(--surface-2); }
.dl-svc-table tr.done td { color: var(--text-3); }
.dl-svc-table .dl-svc-speed { display: inline-flex; flex-direction: row; gap: 12px; justify-content: flex-end; margin: 0; }
.dl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dl-cards .empty { grid-column: 1 / -1; margin: 6px 0; }
.dl-svc { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; min-width: 0; }
.dl-svc:hover { border-color: var(--primary); }
.dl-svc:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dl-svc.done { opacity: .6; }
.dl-svc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-svc-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-svc-speed { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-svc-speed .net, .dl-svc-speed .cache { display: inline-flex; align-items: center; gap: 5px; }
.dl-svc-speed .net::before, .dl-svc-speed .cache::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.dl-svc-speed .net::before { background: var(--series-miss); }
.dl-svc-speed .cache::before { background: var(--series-hit); }
/* The speed meter (renderDownloadCards): 20 squares, red ones (Internet's share) left, green ones (cache's) right. */
.dl-vu { display: flex; gap: 2px; }
.dl-vu i { flex: 1; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--text-3) 30%, transparent); transition: background .3s; }
.dl-vu i.net { background: var(--series-miss); }
.dl-vu i.cache { background: var(--series-hit); }
/* Settings › Ookla › Router configuration: the commands, as written (copied as they are). */
.sr-code { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; white-space: pre; margin: 0 0 10px; }
.sr-tabs { margin-bottom: 8px; }
/* Settings › Apple Cache */
.net-pending.dash-info { border-color: var(--good); border-left-width: 4px; background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
#sub-apple .help, #apw-modal .help, #ap-mac-modal .help { max-width: none; } /* its explanations across the card (user) */
.badge.ok { color: var(--good); border-color: currentColor; }
.badge.warn { color: var(--warn); border-color: currentColor; }
.badge.bad { color: var(--bad); border-color: currentColor; }
.ap-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.ap-faq { margin: 0; font-size: 13.5px; line-height: 1.5; }
.ap-faq dt { font-weight: 700; margin-top: 10px; }
.ap-faq dt:first-child { margin-top: 0; }
.ap-faq dd { margin: 2px 0 0; color: var(--text-2); }
.ap-router-mac { max-width: 360px; margin-bottom: 8px; }
.ap-checks { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.ap-checks li.ok .ap-mark { color: var(--good); font-weight: 700; }
.ap-checks li.todo .ap-mark { color: var(--warn); font-weight: 700; }
.ap-checks li.note { color: var(--warn); padding-left: 18px; }
.ap-sub { font-size: 14px; margin: 14px 0 4px; }
.ap-disk-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ap-disk-row select { flex: 1; }
/* Apple Cache wizard (user: "beau et pratique"): its height follows the step, a stepper joined by a line, the
   step's title on top, the prerequisites as tiles ticked by a click anywhere on them. */
#apw-modal .modal-body { height: auto; min-height: 300px; max-height: calc(88vh - 190px); padding-top: 18px; }
#apw-steps { gap: 0; padding: 14px 20px; }
#apw-steps li { flex: 1 1 auto; white-space: nowrap; font-size: 12.5px; gap: 6px; }
#apw-steps li:last-child { flex: 0 0 auto; }
#apw-steps li:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 2px; min-width: 10px; margin: 0 8px; background: var(--grid); border-radius: 1px; }
#apw-steps li.done::after { background: var(--good); }
#apw-steps li.done b { background: var(--good); border-color: var(--good); color: var(--text-topbar); font-size: 0; }
#apw-steps li.done b::before { content: "✓"; font-size: 12px; }
.apw-title { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--text); }
.apw-ready { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.apw-ready .check { display: flex; align-items: flex-start; gap: 12px; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: 13.5px; line-height: 1.5; color: var(--text); transition: border-color .12s, background .12s; }
.apw-ready .check:hover { border-color: var(--primary); }
.apw-ready .check:has(input:checked) { border-color: var(--good); background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
.apw-ready .check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--good); }
.apw-on { align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.apw-on input { margin-top: 3px; }
#apw-modal .wiz-note { margin-top: 14px; }
.apw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 10px; }
@media (max-width: 800px) { .apw-grid { grid-template-columns: 1fr; } }
.apw-disk { display: flex; gap: 8px; align-items: center; padding: 8px 10px; margin: 6px 0; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13.5px; }
.apw-size { max-width: 320px; }
.apw-wait { margin-top: 12px; font-size: 14px; }
.apw-on { display: flex; gap: 8px; margin: 12px 0; }
/* A Mac's window: its checks on the left, its disk and settings on the right; buttons on one line (user). */
/* How to set it up / Troubleshooting: closed, opened by a click on their title (user). */
.ap-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; }
.ap-fold > summary::-webkit-details-marker { display: none; }
.ap-fold > summary::before { content: "›"; display: inline-block; font-size: 20px; line-height: 1; color: var(--text-3); transition: transform .15s; }
.ap-fold[open] > summary::before { transform: rotate(90deg); }
.ap-fold[open] > summary { margin-bottom: 10px; }
/* A profile to approve at the Mac's screen: said at every change, red and bold (user). */
.ap-important { margin: 10px 0 0; padding: 10px 12px; border-left: 4px solid var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface));
  border-radius: var(--radius); color: var(--bad); font-weight: 700; font-size: 13px; line-height: 1.5; }
#ap-mac-pending { margin: 0 0 12px; }
.ap-actions { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: 12.5px; line-height: 1.5; }
.ap-actions dt { font-weight: 700; color: var(--text); }
.ap-actions dd { margin: 0 0 8px; color: var(--text-2); }
.ap-actions dd:last-child { margin-bottom: 0; }
.ap-slider { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ap-slider input[type=range] { flex: 1; accent-color: var(--primary); }
.ap-slider-val { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.apw-size { max-width: 420px; }
.ap-mac-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 28px; align-items: stretch; }
/* the right column's Important block at its foot, level with the left column's end (user) */
.ap-mac-grid > div { display: flex; flex-direction: column; }
.ap-mac-grid > div:last-child > .ap-important, .ap-mac-grid > div:first-child > .ap-actions { margin-top: auto; }
.ap-mac-grid > div:first-child > .ap-checks { margin-bottom: 16px; }
@media (max-width: 900px) { .ap-mac-grid { grid-template-columns: 1fr; } }
.ap-sub.ap-first { margin-top: 0; }
.modal-xl.ap-mac { width: min(980px, 94vw); }
.ap-mac .modal-foot button { white-space: nowrap; }
.ap-mac .field { margin-bottom: 8px; }
/* The Speedtest server's card (app.js speedtestCard): its own colours, never the cache's red / green; not clickable. */
.dl-st { cursor: default; }
.dl-st:hover { border-color: var(--border); }
.st-logo { background: var(--violet); }
.st-logo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-svc-speed .st-down, .dl-svc-speed .st-up { display: inline-flex; align-items: center; gap: 5px; }
.dl-svc-speed .st-down::before, .dl-svc-speed .st-up::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.dl-svc-speed .st-down::before, .dl-vu i.st-down { background: var(--series-st-down); }
.dl-svc-speed .st-up::before, .dl-vu i.st-up { background: var(--series-st-up); }
.dl-svc-who { display: flex; gap: 8px; font-size: 12px; white-space: nowrap; }
.dl-svc-who > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dl-svc-left { margin-left: auto; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; } /* left to download, right (user) */
.dl-svc-own { color: var(--text-3); }
/* Time left, under the size left and right against the From internet / From cache line (user, 2026-11-04): the
   card's 6 px gaps taken back on both sides. */
.dl-svc-eta { display: flex; justify-content: space-between; gap: 8px; min-height: 15px; margin: -5px 0 -6px; font-size: 12px; line-height: 15px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dl-svc-nums { display: flex; gap: 12px; font-variant-numeric: tabular-nums; }
.dl-svc-nums > span { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.dl-svc-nums small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.dl-svc-nums > span:last-child { align-items: flex-end; } /* From cache on the right, under the green squares (user) */
.dl-what { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-what > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dl-prog { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-top: 4px; }
/* Under the Download name: a single file's bar, then what the device received / its whole size. */
.dl-progline { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.dl-progline .dl-prog { flex: 1; margin-top: 0; }
.dl-progline > span { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-prog div { height: 100%; background: var(--accent); }
#dl-table tr.done td { color: var(--text-3); }

/* Prefill › Sign in: Login and Password, then the tool's questions; its own text under Details. */
.pf-sign { display: grid; gap: 12px; }
.pf-sign-creds { display: grid; gap: 12px; }
.pf-sign .text-input { width: 100%; }
.pf-sign-status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.pf-sign-status.pf-ok { color: var(--good); font-weight: 600; }
.pf-sign-details summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); }
.pf-sign-details .pf-term-out { margin-top: 8px; max-height: 220px; min-height: 0; }
#pf-sign-link { text-decoration: none; margin-right: 4px; }
.pf-sign-steps { margin: 0; padding-left: 20px; max-width: none; }
.pf-sign-steps li { margin-bottom: 8px; line-height: 2; }

.lic-check-help { margin: 10px 0 0; text-align: center; font-size: 12.5px; }
.lic-check-help .btn-ghost { margin-left: 4px; padding: 3px 9px; }
#lic-pro-renew-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#cl-table .cl-buy { margin-left: 6px; font-weight: 600; white-space: nowrap; color: var(--primary); text-decoration: none; }
#cl-table .cl-buy:hover { text-decoration: underline; }
.lic-activate { margin-top: 16px; }
.lic-activate-row { max-width: 560px; }
.lic-activate-row .text-input { letter-spacing: .04em; text-transform: uppercase; }
.lm-table td { vertical-align: middle; }
.lm-act { display: inline-flex; gap: 8px; align-items: center; }
.lm-act select { max-width: 260px; }
.lm-foot { margin: 0; max-width: 640px; font-size: 12px; }
.lm-code { font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.lm-code, .lm-table td:nth-child(2) { white-space: nowrap; }
.opt-ctl #opt-dscp { width: auto; }

/* Dashboard: no device used the cache (dnscheck.go); Settings › UnveilDNS › Check DNS. */
.dev-warn { border-color: var(--warn); }
/* Messages from UnveilTech (notices.go): info blue, warning orange, urgent red; a 4 px left edge like dash-info. */
.notice { border-left-width: 4px; }
.notice.info { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.notice.warning { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.notice.urgent { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--surface)); }
.notice .notice-text { white-space: pre-line; }
#out-warn { border-color: var(--bad); } /* addresses outside your networks: red (user) */
.dnscheck-row { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; }
.dnscheck-row .text-input { flex: 0 1 260px; }
#dnscheck-table td.ans { overflow-wrap: anywhere; }
.dnscheck-note { margin: 0 0 4px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 4px; font-size: 13px; line-height: 1.5; }

/* Setup wizard: steps on top, one step at a time. */
/* Every step the height of the tallest one, measured in every state (2026-10-06, user's request): DNS › My router with
   the Check DNS line = 544 px (the line is bounded: four names at most; the entries box 6 rows). Within the window on a
   small screen. Measure again (cdp, eval of the children's bottom) when a step gains content. */
.wiz .modal-body { flex: none; height: min(544px, calc(88vh - 190px)); overflow-y: auto; }
.wiz-steps { display: flex; gap: 6px; margin: 0; padding: 12px 20px; list-style: none; border-bottom: 1px solid var(--grid); background: var(--bg); }
.wiz-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.wiz-steps li b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px;
  border: 1px solid var(--border); font-weight: 600; flex: none; }
.wiz-steps li.cur { color: var(--text); font-weight: 600; }
.wiz-steps li.cur b { background: var(--primary); border-color: var(--primary); color: var(--text-topbar); }
.wiz-steps li.done b { border-color: var(--good); color: var(--good); }
.wiz-steps li.ign b { border-style: dashed; }
.wiz-note { margin: 10px 0; padding: 10px 12px; border-left: 4px solid var(--primary); background: var(--bg); border-radius: var(--radius); font-size: 13px; }
.wiz-note.warn { border-left-color: var(--warn); }
.wiz-profiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.wiz-cat { margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.wiz-profiles .muted { align-self: center; margin-left: 4px; font-size: 13px; }
.wiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.wiz-opt { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.wiz-opt b { font-size: 14px; }
.wiz-opt span { font-size: 12px; color: var(--text-3); }
.wiz-opt[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.wiz-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.wiz-row .text-input { flex: 1 1 260px; }
.wiz-out { width: 100%; resize: vertical; }
.wiz-sum li { margin: 6px 0; }
.wiz-svc-table { table-layout: fixed; width: 100%; }
.wiz-svc-table th, .wiz-svc-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paged .table.wiz-svc-table .col-name { width: 170px; } /* 240px on the other paged tables: no "partial" tag here */
.wiz-svc-table .wiz-en { width: 76px; text-align: right; }

/* Statistics (2026-10-08, user's request: "beau et fun, aussi bien que la page Licensing"): the Licensing page's hero,
   tiles and rows, the hours' averages, ranked lists and the games' podium; the last 30 days only. */
.st-pdf { padding: 10px 22px; font-size: 14px; }
.st-tiles .st-lbl { font-size: 13px; color: var(--text-2); }
.st-ring-lbl { font-size: 12px; color: var(--text-topbar-dim); text-transform: uppercase; letter-spacing: .08em; }

@keyframes st-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.st-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.st-rank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.st-rank .st-n { font-weight: 700; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.st-rank .st-name { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); font-weight: 600; }
.st-rank .st-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-rank .st-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.st-rank .st-bar { grid-column: 2 / 4; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; display: flex; }
.st-rank .st-bar i { display: block; height: 100%; background: var(--series-hit); transition: width .8s ease; width: 0; }
.st-rank .st-bar i + i { background: var(--series-miss); }
.st-rank .st-sub { grid-column: 2 / 4; margin-top: -4px; font-size: 11.5px; color: var(--text-3); }
.st-rank .empty, .st-podium .empty { color: var(--text-3); font-size: 13px; padding: 12px 0; }

.st-heat-card .card-head { margin-bottom: 6px; }
.st-head-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.st-head-l .muted { font-size: 13px; }
/* Peak hours: 24 columns, each hour's average over the period (user's choice), the busiest in gold */
.st-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 6px; height: 220px; align-items: end; }
.st-hour { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.st-hcol { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  padding-top: 16px; min-height: 0; }
.st-hcol .st-hb { flex: none; }
.st-hour .st-hv { font-size: 10px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-hour .st-hb { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; height: 0; transition: height .8s ease;
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--surface))); }
.st-hour:hover .st-hb { filter: brightness(1.12); }
.st-hour.top .st-hb { background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 55%, var(--surface))); }
.st-hour.top .st-hv { color: var(--text); font-weight: 700; }
.st-hour .st-hl { font-size: 10.5px; color: var(--text-3); }
.st-hour.top .st-hl { color: var(--text); font-weight: 700; }
@media (max-width: 900px) { .st-hour .st-hv { display: none; } }
.st-row-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.st-pod.vacant .st-step { opacity: .35; }
/* Day by day across the page; Top games beside Top services above Top devices (user's layout) */
.st-chart { height: 260px; }
.st-stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-stack .card { margin-bottom: 0; flex: 1; }
.st-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; margin-bottom: 14px; }
.st-pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; animation: st-rise .6s ease both; }
.st-pod.p1 { order: 2; } .st-pod.p2 { order: 1; animation-delay: .1s; } .st-pod.p3 { order: 3; animation-delay: .2s; }
.st-pod b { font-size: 13px; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pod small { font-size: 11.5px; color: var(--text-3); }
.st-medal { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800;
  font-size: 16px; color: var(--surface); background: var(--medal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--medal) 25%, transparent); }
.st-pod.p1 .st-medal { width: 50px; height: 50px; font-size: 20px; }
.st-step { width: 100%; border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 32%, var(--surface)), color-mix(in srgb, var(--medal) 8%, var(--surface))); }
.st-pod.p1 { --medal: var(--gold); } .st-pod.p2 { --medal: var(--silver); } .st-pod.p3 { --medal: var(--bronze); }
.st-pod.p1 .st-step { height: 92px; } .st-pod.p2 .st-step { height: 66px; } .st-pod.p3 .st-step { height: 48px; }
.st-files td:nth-child(2) { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-times { display: inline-block; padding: 1px 6px; border-radius: 3px; font-weight: 700; color: var(--good);
  background: color-mix(in srgb, var(--good) 14%, transparent); }
@media (prefers-reduced-motion: reduce) { .st-pod { animation: none; } .st-rank .st-bar i, .st-hour .st-hb { transition: none; } }

/* Top bar › Download into the cache (forced downloads) */
.fd-row { display: flex; gap: 8px; margin: 12px 0; }
.fd-row input { flex: 1; }
.fd-h { font-size: 14px; margin: 18px 0 6px; }
.fd-table td { vertical-align: top; }
.fd-table .dl-progline { margin-top: 6px; }
.fd-wait { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.fd-none { margin: 4px 0; }
.fd-game { width: 34%; }
.fd-plat { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; cursor: pointer; }
.fd-plat input { margin-top: 3px; }
.fd-plat.fd-off { cursor: default; color: var(--text-3); }
.fd-plat .pf-sub-line { display: block; }
.fd-confirm { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 10px 0 4px; }
.fd-note { margin: 4px 0 0; }
.fd-st { white-space: nowrap; }
.fd-st.fd-running { color: var(--primary); }
.fd-st.fd-done { color: var(--good); }
.fd-st.fd-failed { color: var(--bad); }
.fd-st.fd-queued, .fd-st.fd-cancelled { color: var(--text-3); }

/* Games page (gamespage.go): cards in a grid, cover on top (image or the platform's colour), figures below. */
.gm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gm-title { display: flex; align-items: center; gap: 12px; }
.gm-title h2 { margin: 0; }
.gm-ico { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.gm-ico svg { width: 22px; height: 22px; }
.gm-totals { display: flex; gap: 8px; }
.gm-pill { border: 1px solid var(--border); border-radius: 3px; padding: 5px 10px; font-size: 13px; color: var(--text-2); }
.gm-pill b { color: var(--text); }
.gm-pill-good { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }
.gm-pill-good b { color: var(--good); }
.gm-help { margin: 12px 0; max-width: none; }
.gm-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.gm-tools input[type=search] { flex: 1 1 260px; min-width: 200px; }
.gm-filters { display: flex; gap: 4px; flex-wrap: wrap; order: 3; flex-basis: 100%; }
.gm-filters button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 3px;
  padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.gm-filters button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--text-topbar); }
.gm-filters .gm-count { font-size: 11px; padding: 0 5px; border-radius: 3px; background: color-mix(in srgb, currentColor 16%, transparent); }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gm-tile { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.gm-cover { position: relative; aspect-ratio: 460 / 215; background: linear-gradient(135deg, var(--plat), color-mix(in srgb, var(--plat) 55%, var(--bg-topbar-end)));
  color: var(--cover-text); overflow: hidden; }
.gm-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-cover.gm-square img { object-fit: contain; background: var(--plat); }
.gm-cover .gm-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; opacity: .55; }
.gm-cover .gm-logo i { width: 64px; height: 64px; background: currentColor; opacity: .6;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.gm-plat { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; }
.gm-plat .svc-logo { width: 28px; height: 28px; margin: 0; border-radius: 3px; box-shadow: 0 1px 3px var(--cover-shade); }
.gm-plat .svc-logo i { width: 17px; height: 17px; }
.gm-plat .svc-logo.mono { font-size: 11px; }
.gm-gen { align-self: center; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 6px;
  border-radius: 3px; background: var(--cover-shade); color: var(--cover-text); }
.gm-filters .svc-logo { width: 18px; height: 18px; margin: 0; border-radius: 3px; }
.gm-filters .svc-logo i { width: 11px; height: 11px; }
.gm-filters .svc-logo.mono { font-size: 8px; }
.gm-cover::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, var(--cover-shade)); }
.gm-badge { position: absolute; top: 8px; z-index: 1; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 7px; border-radius: 3px; }
.gm-state { right: 8px; background: var(--good); color: var(--text-topbar); display: inline-flex; gap: 5px; align-items: center; }
.gm-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gm-state.gm-out { background: var(--cover-shade); color: var(--cover-text); opacity: .85; }
/* A PlayStation game's versions in the cache, on the card's free line under the sizes (user, 2026-11-15). */
.gm-ver { font-size: 11px; color: var(--text-3); line-height: 14px; min-height: 14px; margin: -4px 0; }
.gm-name { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; font-weight: 600; font-size: 15px; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gm-name i { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.gm-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gm-kv { display: flex; justify-content: space-between; gap: 8px; }
.gm-kv small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); }
.gm-kv b { font-size: 16px; font-variant-numeric: tabular-nums; }
.gm-kv .r { text-align: right; }
.gm-kv .gm-del { color: var(--primary); }
.gm-sav { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); }
.gm-sav b { font-size: 13px; text-transform: none; color: var(--text-2); }
.gm-sav b.good { color: var(--good); }
.gm-sav b.warn { color: var(--warn); }
.gm-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.gm-bar > div { height: 100%; background: var(--good); }
.gm-bar > div.warn { background: var(--warn); }
.gm-rm span { display: inline-flex; align-items: center; }
.gm-rm b { color: var(--bad); }
.gm-rm-bar > div { background: var(--bad); transition: width .4s ease; }
.gm-rm-bar.busy > div { background-color: color-mix(in srgb, var(--bad) 40%, transparent);
  background-image: linear-gradient(45deg, var(--bad) 25%, transparent 25%, transparent 50%, var(--bad) 50%, var(--bad) 75%, transparent 75%);
  background-size: 16px 16px; animation: gm-rm-busy .8s linear infinite; transition: none; }
@keyframes gm-rm-busy { from { background-position: 0 0; } to { background-position: 16px 0; } }
.gm-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-3); margin-top: auto; }
.gm-more { display: flex; justify-content: center; margin-top: 16px; }
.gm-none { text-align: center; color: var(--text-3); padding: 30px 0; grid-column: 1 / -1; }
.gm-tile { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.gm-tile:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--text) 18%, transparent); transform: translateY(-2px); }
.gm-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Games ▸ a game's window. */
.gd-modal { width: min(850px, 94vw); padding: 0; overflow: hidden; }
.gd-hero { position: relative; min-height: 150px; display: flex; align-items: flex-end; color: var(--cover-text);
  background: linear-gradient(135deg, var(--plat), color-mix(in srgb, var(--plat) 55%, var(--bg-topbar-end))); overflow: hidden; }
.gd-hero-img { position: absolute; inset: 0; }
.gd-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: blur(0); }
.gd-hero.gd-ps .gd-hero-img img { object-fit: contain; object-position: right center; }
.gd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cover-shade) 0%, transparent 75%); }
.gd-hero-text { position: relative; z-index: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.gd-hero-text h2 { margin: 0; font-size: 22px; }
.gd-hero-sub { font-size: 13px; opacity: .85; }
.gd-hero-plat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.gd-hero-plat .svc-logo { width: 24px; height: 24px; margin: 0; border-radius: 3px; }
.gd-hero-plat .gm-gen { margin-left: 0; }
.gd-hero-line { display: flex; align-items: center; gap: 10px; }
.gd-hero .gm-state { position: static; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 3px 7px; border-radius: 3px; }
.gd-ver { white-space: nowrap; }
.gd-share { display: inline-flex; align-items: center; gap: 8px; }
.gd-share .gm-bar { width: 80px; }
.gd-share .gm-bar > div { background: var(--primary); }
.gm-missing { color: var(--warn); max-width: none; }
#gd-ctable td:first-child .muted { display: block; font-size: 11.5px; }
.gd-modal .modal-body { padding-top: 12px; }
.gd-panels > div { min-height: 430px; }
.gd-tiles { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 800px) { .gd-tiles { grid-template-columns: repeat(2, 1fr); } }
.gd-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.gd-tile small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); }
.gd-tile b { display: block; font-size: 20px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.gd-tile b.good { color: var(--good); }
.gd-tile b.blue { color: var(--primary); }
.gd-tile span { font-size: 12px; color: var(--text-2); }
.gd-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.gd-chart { height: 220px; }
.gd-facts { margin: 10px 0 0; max-width: none; }
.gd-none { margin: 0 0 6px; max-width: none; color: var(--warn); }
.gd-scroll { max-height: 400px; overflow: auto; }
/* The paged tabs show 10 rows a page (user, 2026-11-15): the whole page, no scroll inside it. */
.paged .gd-scroll { max-height: none; overflow: visible; }
.gd-vnote { max-width: none; } /* the Version(s) tab: its note across the window (user) */
.gd-cnote { margin: 0 0 10px; }
.gd-cnote b.good, .gd-ver.good { color: var(--good); }
.gd-ver.old { color: var(--warn); }
.gd-kind { display: inline-block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-radius: 3px;
  padding: 0 5px; margin-left: 6px; border: 1px solid var(--border); color: var(--text-3); vertical-align: 1px; }
.gd-act { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.gd-act:last-child { border-bottom: 0; }
.gd-act p { margin: 4px 0 0; }
.gd-act button { flex: none; min-width: 150px; justify-content: center; }
.gm-state.gm-blocked { background: var(--bad); color: var(--text-topbar); }
.gm-kv .gm-of { font-size: 12px; font-weight: 400; color: var(--text-3); }

/* Replica (2026-10-13) */
#rp-table tr.rp-off td:not(.col-toggle) { opacity: .55; }
#rp-current { display: flex; align-items: center; gap: 8px; }
.rp-error { color: var(--warn); }
#tab-replica .help { max-width: none; }
.rp-act { display: inline-flex; gap: 6px; }
#rp-limit { width: 100%; margin: 8px 0 4px; accent-color: var(--primary); }
.rp-set-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
#rp-limit-val { margin-left: auto; font-weight: 600; }

/* Upcoming games (upcoming.go, renderUpcoming): the Games page's cards, a switch at the bottom of each. */
.up-ico svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.up-tile { cursor: default; }
.up-tile:hover { transform: none; }
.up-chosen { border-color: color-mix(in srgb, var(--good) 55%, var(--border)); }
.gm-state.up-soon { background: var(--primary); }
.up-plats { display: inline-flex; gap: 4px; justify-content: flex-end; align-items: center; margin-top: 2px; }
.up-plats .svc-logo { width: 22px; height: 22px; margin: 0; border-radius: 3px; }
.up-plats .svc-logo i { width: 13px; height: 13px; }
.up-pc { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: 700;
  background: var(--surface-2); color: var(--text-2); }
.up-warn { margin: 0; white-space: normal; }
.up-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; }
.up-reading { display: inline-block; width: 12px; height: 12px; margin-inline-end: 8px; vertical-align: -1px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--primary); animation: up-spin 0.9s linear infinite; }
@keyframes up-spin { to { transform: rotate(360deg); } }

/* The blog strip (Muster's, 2026-10-20): one line fixed at the foot of the window, right of the menu, a wash of the
   primary fading to the right over the card ground; [hidden] needs !important against the display below. */
#blog-ticker {
  position: fixed; bottom: 0; left: var(--sidebar-w); right: 0; z-index: 20;
  height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: linear-gradient(to right, color-mix(in srgb, var(--primary) 10%, transparent), transparent), var(--bg-card);
  border-top: 1px solid var(--border); color: var(--text-2); font-size: 12px;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .04); animation: blogbar-in .3s ease-out;
}
#blog-ticker[hidden] { display: none !important; }
@keyframes blogbar-in { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.blog-ticker-icon { display: flex; flex-shrink: 0; color: var(--primary); }
.blog-ticker-label { flex-shrink: 0; }
.blog-ticker-link {
  color: var(--primary); text-decoration: none; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .25s;
}
.blog-ticker-link:hover { text-decoration: underline; }
.blog-ticker-link.fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #blog-ticker { animation: none; } .blog-ticker-link { transition: none; } }
/* Room for it, or the bottom of the last card sits under the strip. */
body.blogbar-shown main { padding-bottom: 74px; }
@media (max-width: 800px) { #blog-ticker { left: 0; } }

/* The help bubble (Muster's and ATiBox's, 2026-10-20): bottom right, above the blog strip; under the modals. */
.help-fab {
  position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; z-index: 30;
  border: none; border-radius: 50%; background: var(--primary); color: var(--text-topbar);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .12s;
}
.help-fab:hover { transform: scale(1.08); }
body.blogbar-shown .help-fab { bottom: 48px; }
.help-panel {
  position: fixed; right: 20px; bottom: 86px; width: 360px; z-index: 30;
  max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 140px);
  display: none; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
body.blogbar-shown .help-panel { bottom: 114px; }
.help-panel.open { display: flex; }
.help-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  background: var(--primary); color: var(--text-topbar); font-weight: 600; font-size: 14px;
}
.help-head svg { flex: 0 0 auto; }
.help-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.help-msg {
  max-width: 85%; padding: 9px 13px; border-radius: 10px; font-size: 13.5px;
  line-height: 1.45; white-space: pre-wrap; overflow-wrap: break-word;
}
.help-msg.assistant { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.help-msg.user { align-self: flex-end; background: var(--primary); color: var(--text-topbar); }
.help-typing { color: var(--text-2); font-style: italic; }
.help-msg.help-error { color: var(--danger); }
.help-input { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--bg-card); }
.help-input input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px;
  font-size: 13.5px; font-family: inherit; outline: none; color: var(--text); background: var(--bg);
}
.help-input input:focus { border-color: var(--primary); }
.help-send {
  width: 38px; height: 38px; flex-shrink: 0; border: none; border-radius: var(--radius);
  background: var(--primary); color: var(--text-topbar); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.help-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) { .help-panel { right: 12px; left: 12px; width: auto; } }

/* Settings › Information › Network cards: one line per card, the hypervisor's advice under a card with one queue. */
.config .nic-line + .nic-line { margin-top: 4px; }
.config .nic-warn { font-size: 13px; margin-top: 2px; word-break: normal; }
/* Disks tile: ∞ while XCC counts what its cache disks hold (Exo draws it small at the line's size). */
#k-space.k-inf { font-size: 1.6em; line-height: 0.6; }

/* Disk window: the model's benchmarks (UserBenchmark), left of Close (2026-11-08, user). */
.dk-bench { font-size: 13px; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* Cluster: a member's address opens its console (2026-11-08, user). */
a.member-link { text-decoration: underline; text-underline-offset: 2px; }
a.member-link:hover { color: var(--primary); }
.dl-svc-slot { font-weight: 400; color: var(--text-3); } /* the card's Slot, left of the time left (2026-11-08, user) */

/* Prefill › Calculate… (2026-11-08, user) */
#pf-calc-modal .pf-calc-prog { width: 100%; margin: 4px 0 12px; }
.pf-calc-table .pf-plat { display: flex; align-items: center; gap: 8px; }
.pf-calc-table .total-row td { border-top: 1px solid var(--border); }
.pf-calc-verdict { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.5; }
.pf-calc-verdict.ok { border-color: var(--good); background: color-mix(in srgb, var(--good) 10%, transparent); }
.pf-calc-verdict.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }

/* Dashboard ▸ Disks tile ▸ Stats (2026-11-13): the link on the title line keeps the tile's height */
.kpi-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; line-height: inherit; color: var(--primary); cursor: pointer; }
.kpi-link:hover { text-decoration: underline; }
#dstat-modal { width: min(1000px, 94vw); }
#ds-table td.ds-warn { color: var(--warn); font-weight: 600; }
#ds-table td.ds-bad { color: var(--bad); font-weight: 600; }
#ds-table tr.ds-total td { font-weight: 600; border-bottom: 0; }
#ds-table td, #ds-table th { white-space: nowrap; }
#ds-table td:nth-child(3) { white-space: normal; }
#dstat-modal .modal-body { overflow-x: auto; }
#dstat-modal .help { max-width: none; margin-top: 10px; }

/* Settings › Cache disk › Replace… (2026-11-15): what the disk holds. */
.drain-content { margin: 8px 0; }
.drain-content td { padding: 4px 8px; }
.drain-services { margin: 4px 0 10px 18px; padding: 0; }
.drain-services li { margin: 2px 0; }
/* Apple Cache: a Mac's networks / public addresses as a summary + a button opening their table (#ap-rg-modal) */
.ap-rline { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ap-rsum { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-rline .btn-outline { white-space: nowrap; }
#ap-rg-table td.num, #ap-rg-table th.num { text-align: right; }
/* Settings › Apple Cache › Recommended Mac: the Mac's specification beside what Apple Cache covers */
.ap-reco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; margin-top: 8px; }
@media (max-width: 900px) { .ap-reco { grid-template-columns: 1fr; } }
.ap-spec th { width: 90px; text-align: left; vertical-align: top; font-weight: 600; white-space: nowrap; }
.ap-spec td { vertical-align: top; }
.ap-cover { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ap-cover li { padding: 8px 12px; border-left: 4px solid var(--good); background: color-mix(in srgb, var(--good) 8%, var(--surface)); border-radius: 3px; line-height: 1.5; }
.ap-cover li.no { border-left-color: var(--text-2); background: color-mix(in srgb, var(--text-2) 7%, var(--surface)); }
.ap-type-odd { color: var(--warn); }
.ap-ident { margin: 0 0 6px; }
.ap-ident .ap-card-field { grid-column: 1 / -1; }
.ap-card-help { margin-top: 4px; }
.ap-reco-fold { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.ap-reco-fold > summary h3 { margin: 0; }
