/* ═══════════════════════════════════════════════════════════════════════════
   RACK & SIGNAL — the console design system
   Brushed aluminium (light) / anodised graphite (dark), signal orange,
   silkscreen labels, LEDs, segment displays and 1U rack units.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bg: #e7e5df;
  --bg-deep: #dcd9d1;
  --panel: #f4f3ef;
  --panel-hi: #fbfaf7;
  --line: #cbc7bc;
  --line-soft: #dedbd2;
  --ink: #141311;
  --ink-2: #3b3934;
  --muted: #6f6b63;
  --faint: #a19c92;
  --grid: rgba(20, 19, 17, .055);

  --signal: #ff4f00;
  --signal-hi: #ff6a24;
  --signal-deep: #c43c00;
  --signal-ink: #ffffff;
  --signal-wash: #ffe6da;
  --signal-text: #b83a00; /* signal as small text on its wash: AA (4.8:1) */

  --ok: #12b76a;
  --busy: #2e90fa;
  --warn: #f79009;
  --err: #f04438;
  --off: #9b978e;
  --ok-wash: #dcf5e8;
  --warn-wash: #fdf0db;
  --err-wash: #fde4e2;
  --busy-wash: #e0edff;

  --lcd-bg: #121210;
  --lcd-ink: #ff7a33;
  --lcd-ghost: rgba(255, 122, 51, .08);
  --lcd-glow: rgba(255, 106, 36, .55);

  /* The rail follows the theme: brushed aluminium here, graphite in the dark theme. */
  --rail-bg: #d9d6ce;
  --rail-ink: #1d1c19;
  --rail-muted: #7d796f;
  --rail-line: #c3bfb4;
  --rail-item: #3b3934;
  --rail-strong: #141311;
  --rail-hover: rgba(20, 19, 17, .055);
  --rail-active: rgba(255, 255, 255, .62);
  --rail-num: #a19c92;
  --rail-faint: #7d796f;
  --rail-tool: #57534c;
  --rail-tool-line: #c3bfb4;
  --rail-tool-line-hi: #9e9a90;
  --rail-avatar: #c7c3b8;
  --rail-avatar-ink: #1d1c19;
  --rail-screw: radial-gradient(circle at 35% 35%, #fbfaf7 0 30%, #a9a59b 70%);
  --rail-screw-edge: #8f8b81;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(23, 20, 14, .06), 0 14px 32px -22px rgba(23, 20, 14, .35);
  --shadow-key: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 0 rgba(23, 20, 14, .08), 0 2px 0 var(--line);
  --shadow-pop: 0 24px 60px -20px rgba(23, 20, 14, .45), 0 2px 6px rgba(23, 20, 14, .08);
  --focus: 0 0 0 3px rgba(255, 79, 0, .28);

  /* Layout: gutters grow with the screen; content fills it up to a wide
     reading measure and only then centres (topbar and page stay aligned). */
  --gutter: clamp(16px, 2.6vw, 52px);
  --content-max: 2200px;
  --pad-inline: max(var(--gutter), calc((100% - var(--content-max)) / 2));
  --side: clamp(320px, 23vw, 420px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0c; --bg-deep: #080807; --panel: #161614; --panel-hi: #1c1c1a; --line: #2e2d2a; --line-soft: #232220;
    --ink: #f2f0ea; --ink-2: #d1cdc4; --muted: #8f8b81; --faint: #5e5b55; --grid: rgba(242, 240, 234, .045);
    --signal: #ff5a14; --signal-hi: #ff7438; --signal-deep: #b83a00; --signal-wash: #2d1609; --signal-text: #ff7438;
    --ok-wash: #0c2a1c; --warn-wash: #2c1f08; --err-wash: #2e1211; --busy-wash: #0c1d33;
    --lcd-bg: #060605; --rail-bg: #0a0a09; --rail-line: #22211f;
    --rail-ink: #e9e6df; --rail-muted: #8b877e; --rail-item: #c9c5bc; --rail-strong: #fff; --rail-hover: rgba(255, 255, 255, .05); --rail-active: rgba(255, 255, 255, .07);
    --rail-num: #5f5c56; --rail-faint: #77736b; --rail-tool: #a8a49b; --rail-tool-line: #2c2b28; --rail-tool-line-hi: #44423d; --rail-avatar: #2d2c29; --rail-avatar-ink: #f0ede6;
    --rail-screw: radial-gradient(circle at 35% 35%, #4a4945 0 30%, #1b1b19 70%); --rail-screw-edge: #000;
    --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -26px rgba(0, 0, 0, .9);
    --shadow-key: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 rgba(0, 0, 0, .5), 0 2px 0 #050504;
    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0c; --bg-deep: #080807; --panel: #161614; --panel-hi: #1c1c1a; --line: #2e2d2a; --line-soft: #232220;
  --ink: #f2f0ea; --ink-2: #d1cdc4; --muted: #8f8b81; --faint: #5e5b55; --grid: rgba(242, 240, 234, .045);
  --signal: #ff5a14; --signal-hi: #ff7438; --signal-deep: #b83a00; --signal-wash: #2d1609; --signal-text: #ff7438;
  --ok-wash: #0c2a1c; --warn-wash: #2c1f08; --err-wash: #2e1211; --busy-wash: #0c1d33;
  --lcd-bg: #060605; --rail-bg: #0a0a09; --rail-line: #22211f;
  --rail-ink: #e9e6df; --rail-muted: #8b877e; --rail-item: #c9c5bc; --rail-strong: #fff; --rail-hover: rgba(255, 255, 255, .05); --rail-active: rgba(255, 255, 255, .07);
  --rail-num: #5f5c56; --rail-faint: #77736b; --rail-tool: #a8a49b; --rail-tool-line: #2c2b28; --rail-tool-line-hi: #44423d; --rail-avatar: #2d2c29; --rail-avatar-ink: #f0ede6;
  --rail-screw: radial-gradient(circle at 35% 35%, #4a4945 0 30%, #1b1b19 70%); --rail-screw-edge: #000;
  --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -26px rgba(0, 0, 0, .9);
  --shadow-key: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 rgba(0, 0, 0, .5), 0 2px 0 #050504;
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 24px 0; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.icon { width: 18px; height: 18px; flex: none; }
.mono, code, kbd { font-family: var(--font-mono); font-size: .92em; }
code { padding: .1em .35em; border-radius: 4px; background: var(--bg-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }
.display { font-weight: 760; font-stretch: 125%; letter-spacing: -.025em; line-height: .98; }
.expanded { font-stretch: 116%; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }

/* Silkscreen label — the uppercase mono text printed on hardware. */
.label {
  font: 500 10.5px/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label b { color: var(--ink); font-weight: 600; }

/* ─── Shell: rack-ear rail + main ───────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--rail-bg); color: var(--rail-ink);
  border-right: 1px solid var(--rail-line);
  padding: 22px 14px 18px;
  overflow-y: auto;
}
.rail::before, .rail::after {          /* mounting screws */
  content: ""; position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--rail-screw);
  box-shadow: inset 0 0 0 1px var(--rail-screw-edge), 0 1px 0 rgba(255, 255, 255, .06);
}
.rail::before { top: 8px; }
.rail::after { bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 20px; text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none; position: relative;
  background: linear-gradient(180deg, var(--signal-hi), var(--signal));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 var(--signal-deep);
}
.brand__mark::before, .brand__mark::after {
  content: ""; position: absolute; left: 7px; right: 7px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .95);
}
.brand__mark::before { top: 9px; }
.brand__mark::after { top: 17px; box-shadow: none; opacity: .7; }
.brand__name { font-weight: 720; font-stretch: 118%; font-size: 15px; letter-spacing: -.01em; line-height: 1.1; }
.brand__sub { display: block; font: 500 9.5px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rail-muted); margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__group { margin: 18px 8px 6px; font: 500 9.5px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--rail-muted); }
.nav__item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none;
  color: var(--rail-item); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav__item .icon { width: 17px; height: 17px; opacity: .8; }
.nav__item:hover { background: var(--rail-hover); color: var(--rail-strong); }
.nav__num { margin-left: auto; font: 500 10px/1 var(--font-mono); color: var(--rail-num); letter-spacing: .06em; }
.nav__item.is-active { background: var(--rail-active); color: var(--rail-strong); }
.nav__item.is-active::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--signal); box-shadow: 0 0 12px var(--signal);
}
.nav__item.is-active .icon { opacity: 1; color: var(--signal-hi); }
.nav__badge { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--signal); color: #fff; font: 600 10.5px/1.3 var(--font-mono); text-align: center; }
/* The staff menu's groups that open and close (29 Oct 2026): each a native <details>, its <summary> the group's
   heading — the same small capitals — with a chevron that turns as it opens, and room enough to tap. No browser's
   own marker (Chrome and Firefox: list-style, ::marker; Safari: its -webkit- one). A closed group's heading shows the
   total of its items' badges; open, the items show their own, so the total hides. Items keep the 2px .nav's gap gave
   them. No animation of the items themselves: open groups would then move on every page load. Reduced motion stops
   the chevron's turn with every other transition (the prefers-reduced-motion rule below). */
.nav__fold > .nav__item + .nav__item { margin-top: 2px; }
.nav__fold > summary.nav__group {
  display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 12px 0 4px; padding: 0 8px; border-radius: 6px;
  list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: color .15s, background .15s;
}
.nav__fold > summary.nav__group::-webkit-details-marker { display: none; }
.nav__fold > summary.nav__group::marker { content: ""; }
.nav__fold > summary.nav__group:hover { color: var(--rail-strong); background: var(--rail-hover); }
.nav__fold-name { flex: 1; min-width: 0; }
.nav__fold > summary .nav__badge { margin-left: 0; min-width: 18px; padding: 1px 6px; font-size: 10px; letter-spacing: 0; }
.nav__fold[open] > summary .nav__badge { display: none; }
.nav__chev { width: 13px; height: 13px; opacity: .75; transition: transform .18s ease; }
.nav__fold[open] > summary .nav__chev { transform: rotate(90deg); }

.rail__foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rail__wallet {
  display: block; padding: 12px; border-radius: 10px; text-decoration: none;
  background: #000; border: 1px solid #2a2926;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7);
}
.rail__wallet .label { color: #77736b; }
.rail__wallet .lcd { margin-top: 6px; background: transparent; padding: 0; box-shadow: none; }
/* A Team member's account: not billed — said next to the wallet. */
.rail__team { float: right; padding: 1px 6px; border: 1px solid color-mix(in srgb, var(--signal) 55%, transparent); border-radius: 999px; color: var(--signal-hi); }
.rail__user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; }
a.rail__user:hover { background: var(--rail-hover); }
.avatar {
  width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: #2d2c29; color: #f0ede6; font: 650 13px/1 var(--font-sans); font-stretch: 120%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.rail .avatar { background: var(--rail-avatar); color: var(--rail-avatar-ink); }
.rail__user-name { font-size: 13px; font-weight: 600; color: var(--rail-ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__user-mail { font: 11px/1.3 var(--font-mono); color: var(--rail-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__tools { display: flex; gap: 6px; }
.rail__tool {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px;
  border: 1px solid var(--rail-tool-line); border-radius: 8px; background: transparent; color: var(--rail-tool); cursor: pointer;
  font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.rail__tool:hover { color: var(--rail-strong); border-color: var(--rail-tool-line-hi); }
.rail__tool .icon { width: 15px; height: 15px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 14px var(--pad-inline);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs__sep { color: var(--faint); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn.menu-btn { display: none; }

.content { width: 100%; padding: 30px var(--pad-inline) 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 680; font-stretch: 114%; letter-spacing: -.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Buttons (key caps) ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel-hi); color: var(--ink);
  box-shadow: var(--shadow-key);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .06s, box-shadow .06s, background .15s, border-color .15s;
}
.btn:hover { background: var(--panel); border-color: var(--faint); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 var(--line); }
.btn .icon { width: 16px; height: 16px; }
.btn--primary {
  background: linear-gradient(180deg, var(--signal-hi), var(--signal)); border-color: var(--signal-deep); color: var(--signal-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 0 rgba(0, 0, 0, .1), 0 2px 0 var(--signal-deep);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.btn--primary:hover { background: linear-gradient(180deg, #ff7a3d, var(--signal-hi)); border-color: var(--signal-deep); }
.btn--primary:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2); }
.btn--dark { background: #1d1d1b; border-color: #000; color: #f4f2ec; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 0 #000; }
.btn--dark:hover { background: #2a2a27; border-color: #000; }
.btn--danger { color: var(--err); }
.btn--danger:hover { border-color: var(--err); background: var(--err-wash); }
.btn--danger-solid { background: var(--err); border-color: #b42318; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 #9b1c14; }
.btn--danger-solid:hover { background: #e2372b; border-color: #b42318; }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--bg-deep); border-color: transparent; }
.btn--sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn--icon { width: 36px; padding: 0; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .25) rgba(255, 255, 255, .25);
  animation: spin .7s linear infinite;
}
.btn:not(.btn--primary):not(.btn--dark):not(.btn--danger-solid).is-loading::after { border-color: var(--ink) var(--line) var(--line); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LEDs ──────────────────────────────────────────────────────────────── */
.led { --c: var(--off); display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 18%, transparent), 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); }
.led--ok { --c: var(--ok); }
.led--busy { --c: var(--busy); animation: blink 1.1s ease-in-out infinite; }
.led--warn { --c: var(--warn); }
.led--err { --c: var(--err); animation: blink 1.6s ease-in-out infinite; }
.led--off { --c: var(--off); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 18%, transparent); }
.led--lg { width: 11px; height: 11px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.status { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-hi);
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.pill--ok { background: var(--ok-wash); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.pill--warn { background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: color-mix(in srgb, var(--warn) 65%, var(--ink)); }
.pill--err { background: var(--err-wash); border-color: color-mix(in srgb, var(--err) 35%, transparent); color: color-mix(in srgb, var(--err) 75%, var(--ink)); }
.pill--busy { background: var(--busy-wash); border-color: color-mix(in srgb, var(--busy) 35%, transparent); color: color-mix(in srgb, var(--busy) 75%, var(--ink)); }
.pill--signal { background: var(--signal-wash); border-color: color-mix(in srgb, var(--signal) 40%, transparent); color: var(--signal-text); }

/* ─── Segment display ───────────────────────────────────────────────────── */
.lcd {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 12px; border-radius: 6px; background: var(--lcd-bg);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .5);
}
.lcd__digits {
  position: relative; font: 600 20px/1 var(--font-mono); letter-spacing: .04em;
  color: var(--lcd-ink); text-shadow: 0 0 10px var(--lcd-glow), 0 0 2px rgba(255, 180, 120, .6);
  font-variant-numeric: tabular-nums;
}
.lcd__digits::before { content: attr(data-ghost); position: absolute; inset: 0; color: var(--lcd-ghost); text-shadow: none; pointer-events: none; }
/* Sliders: no leading zeros, but the box keeps the width of the largest value. */
.fader__value .lcd__digits { display: inline-block; min-width: calc(var(--digits, 3) * (1ch + .04em)); text-align: right; }
.lcd__unit { font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 122, 51, .55); }
.lcd--sm .lcd__digits { font-size: 15px; }
.lcd--lg { padding: 12px 16px; }
.lcd--lg .lcd__digits { font-size: 34px; }
.lcd--xl { padding: 16px 20px; }
.lcd--xl .lcd__digits { font-size: 46px; letter-spacing: .02em; }
.lcd--green .lcd__digits { color: #45f0a0; text-shadow: 0 0 10px rgba(30, 220, 140, .55); }
.lcd--green .lcd__digits::before { color: rgba(69, 240, 160, .07); }

/* ─── Panels ────────────────────────────────────────────────────────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-panel); }
.panel__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.panel__head h2, .panel__head h3 { font-size: 15px; font-weight: 650; font-stretch: 108%; }
.panel__head .label { margin-right: auto; }
.panel__head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel__head .label + .label, .panel__head .panel__head-actions { margin-right: 0; }
.panel__body { padding: 18px; }
.panel__foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; align-items: center; }
.panel--flush .panel__body { padding: 0; }
.panel--sunk { background: var(--bg-deep); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08); border-color: var(--line-soft); }
.panel + .panel, .stack > * + * { margin-top: 18px; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--side { grid-template-columns: minmax(0, 1fr) var(--side); align-items: start; }
.grid--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.grid > .panel + .panel, .metrics-grid > .panel + .panel, .settings-grid > .panel + .panel { margin-top: 0; } /* grid cells line up */

/* Key/value spec list */
.spec { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; }
.spec dt, .spec dd { margin: 0; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.spec dt { padding-right: 18px; font: 500 10.5px/1.6 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-size: 14px; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.spec > :nth-last-child(-n + 2) { border-bottom: 0; }
/* Server page, Plan: a coupon's offers with the server, one a line. */
.offers { list-style: none; margin: 0; padding: 0; flex: 1 1 100%; display: grid; gap: 4px; font-size: 13.5px; }

/* Port label: an IP or id printed on a little tag */
.port {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 4px 8px 4px 7px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--panel-hi); font: 500 12.5px/1.2 var(--font-mono); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.port::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--faint); flex: none; }
.port--v4::before { background: var(--signal); }
.port--v6::before { background: var(--busy); }
.port__kind { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); }
.copy-btn {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; flex: none;
}
.copy-btn:hover { background: var(--bg-deep); color: var(--ink); }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn.is-done { color: var(--ok); }

/* ─── Stats strip ───────────────────────────────────────────────────────── */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-panel);
  margin-bottom: 22px; overflow: hidden;
}
/* Dividers drawn as shadows so the outer ones are clipped away, whatever the wrap. */
.strip__cell { padding: 16px 18px; min-width: 0; box-shadow: 1px 0 0 var(--line-soft), 0 1px 0 var(--line-soft); }
.strip__value { margin-top: 8px; font-size: 26px; font-weight: 680; font-stretch: 112%; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.strip__value small { font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; font-stretch: 100%; }
.strip__cell .lcd { margin-top: 4px; } /* its digits on the other cells' baseline */
/* A figure with a note beside it: the note drops under the figure when the two don't fit side by side,
   so the figure itself never breaks. */
.strip__value--note { flex-wrap: wrap; row-gap: 4px; }
.strip__value--note small { white-space: nowrap; }

/* ─── The rack: 1U units ────────────────────────────────────────────────── */
.rack {
  container: rack / inline-size;
  position: relative; padding: 10px; border-radius: 12px;
  background: linear-gradient(90deg, var(--bg-deep), color-mix(in srgb, var(--bg-deep) 60%, var(--bg)) 50%, var(--bg-deep));
  border: 1px solid var(--line); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .08);
  display: flex; flex-direction: column; gap: 6px;
}
.unit {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 22px minmax(190px, 1.4fr) minmax(150px, 1fr) minmax(170px, 1.2fr) minmax(96px, .9fr) 26px;
  gap: 18px; min-height: 74px; padding: 0 16px 0 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  box-shadow: var(--shadow-panel); text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.unit:hover { border-color: var(--faint); transform: translateY(-1px); }
a.unit:hover .unit__handle { color: var(--signal); }
.unit__ear {
  align-self: stretch; position: relative; border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--panel-hi), var(--bg-deep));
}
.unit__ear::before, .unit__ear::after {
  content: ""; position: absolute; left: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--panel-hi) 0 25%, var(--faint) 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent);
}
.unit__ear::before { top: 9px; }
.unit__ear::after { bottom: 9px; }
.unit__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.unit__name { font-weight: 650; font-size: 15.5px; font-stretch: 106%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit__sub { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 3px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.unit__specs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 500 12.5px/1.2 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.unit__specs b { font-weight: 600; color: var(--ink); }
.unit__ports { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.unit__ports .port { font-size: 11.5px; padding: 2px 7px 2px 6px; }
.unit__vent {
  height: 34px; border-radius: 4px; opacity: .9;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 6px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.unit__handle { color: var(--faint); transition: color .15s; }
.unit__activity { font: 500 11px/1.3 var(--font-mono); color: var(--busy); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit__progress { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--busy); box-shadow: 0 0 8px var(--busy); transition: width .6s ease; }
.unit.is-building .unit__vent { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--busy) 45%, transparent) 0 2px, transparent 2px 6px); animation: vent 1.8s linear infinite; }
@keyframes vent { to { background-position: 24px 0; } }
.unit.is-dim { opacity: .62; }
.unit.is-dim:hover { opacity: 1; }

@container rack (max-width: 900px) {
  .unit { grid-template-columns: 22px minmax(150px, 1.2fr) minmax(170px, 1fr) minmax(160px, 1fr) 26px; gap: 14px; }
  .unit__vent { display: none; }
}
@container rack (max-width: 640px) {
  .unit { grid-template-columns: 18px minmax(0, 1fr) 22px; gap: 12px; padding: 12px 12px 12px 0; }
  .unit > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .unit__ports { grid-column: 2; grid-row: 3; flex-direction: row; flex-wrap: wrap; }
  .unit__handle { grid-column: 3; grid-row: 1; }
  .unit__ear { grid-row: 1 / span 3; }
}
/* A server's auto-renew switch, beside its unit (a form can't sit inside the unit's link). */
.unit-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 6px; }
.unit-renew {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow-panel);
}
.unit-renew__label, .unit-renew__state { font: 500 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini-switch {
  appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 22px; padding: 0; flex: none;
  border-radius: 6px; background: var(--bg-deep); border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12); cursor: pointer; transition: background .15s;
}
.mini-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 4px; background: var(--panel-hi); box-shadow: var(--shadow-key); transition: transform .15s; }
.mini-switch[aria-checked="true"] { background: var(--signal); border-color: var(--signal-deep); }
.mini-switch[aria-checked="true"]::after { transform: translateX(18px); }
.mini-switch:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@container rack (max-width: 640px) {
  .unit-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .unit-row > .unit { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .unit-renew { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 12px; border-top: 0; border-radius: 0 0 7px 7px; }
}
.rack__slot {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 74px;
  border: 1.5px dashed var(--line); border-radius: 7px; color: var(--muted); text-decoration: none;
  font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; transition: border-color .15s, color .15s;
}
.rack__slot:hover { border-color: var(--signal); color: var(--signal); }

/* ─── Empty states ──────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 56px 24px; }
.empty h2 { font-size: 22px; font-stretch: 112%; margin-top: 18px; }
.empty p { color: var(--muted); max-width: 440px; margin: 10px auto 22px; }
.empty__art { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--line); }
.empty__art span { display: block; width: 210px; height: 24px; border-radius: 4px; border: 1.5px dashed var(--line); }
.empty__art span:nth-child(2) { border-style: solid; border-color: var(--signal); background: var(--signal-wash); }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field__label { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.field__opt { color: var(--faint); letter-spacing: .08em; }
.field__hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.field__error { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--err); }
.field__error .icon { width: 14px; height: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel-hi); color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input.mono, textarea.mono { font-family: var(--font-mono); font-size: 13.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: var(--focus); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
input[readonly] { background: var(--bg-deep); color: var(--muted); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.select--sm select { padding-top: 5px; padding-bottom: 5px; font-size: 13px; max-width: 200px; }
.select__chev { position: absolute; right: 11px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.input-wrap__btn { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.input-wrap__btn:hover { color: var(--ink); background: var(--bg-deep); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; margin-bottom: 14px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel-hi); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.check input:checked { background: var(--signal); border-color: var(--signal-deep); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }

/* Rocker switch (boolean settings) */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; margin-bottom: 14px; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 24px; border-radius: 6px; background: var(--bg-deep); border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12); cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 4px; background: var(--panel-hi); box-shadow: var(--shadow-key); transition: transform .15s; }
.switch input:checked { background: var(--signal); border-color: var(--signal-deep); }
.switch input:checked::after { transform: translateX(20px); }

/* Segmented strength meter */
.meter { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 3px; height: 6px; }
.meter i { border-radius: 2px; background: var(--line-soft); }
.meter i.on { background: var(--c, var(--signal)); box-shadow: 0 0 6px color-mix(in srgb, var(--c, var(--signal)) 60%, transparent); }

/* ─── Notices & toasts ──────────────────────────────────────────────────── */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; margin-bottom: 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-hi); font-size: 14px;
}
.notice .icon { margin-top: 1px; }
.notice--success { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-wash); }
.notice--success .icon { color: var(--ok); }
.notice--error { border-color: color-mix(in srgb, var(--err) 40%, transparent); background: var(--err-wash); }
.notice--error .icon { color: var(--err); }
.notice--warning { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-wash); }
.notice--warning .icon { color: var(--warn); }
.notice--info { border-color: color-mix(in srgb, var(--busy) 35%, transparent); background: var(--busy-wash); }
.notice--info .icon { color: var(--busy); }
.notice__body { flex: 1; min-width: 0; }
.notice__body strong { display: block; margin-bottom: 2px; }
.notice .btn { margin-left: auto; align-self: center; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px;
  padding: 11px 14px; border-radius: 9px; background: #1b1b19; color: #f3f1eb; box-shadow: var(--shadow-pop);
  font-size: 13.5px; animation: toast-in .25s ease;
}
.toast .led { margin-right: 2px; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ─── Dialog ────────────────────────────────────────────────────────────── */
dialog.modal {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow-pop);
}
dialog.modal::backdrop { background: rgba(10, 10, 9, .55); backdrop-filter: blur(3px); }
.modal__body { padding: 22px 22px 8px; }
.modal__body h3 { font-size: 18px; font-stretch: 110%; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.modal__body p { margin: 0 0 12px; color: var(--ink-2); }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }

/* ─── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line);
  font: 500 10px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  background: color-mix(in srgb, var(--bg-deep) 45%, transparent);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--bg-deep) 40%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .mono { font-size: 12.5px; }
.table a.row-link { font-weight: 600; text-decoration: none; }
.table a.row-link:hover { color: var(--signal-deep); }
.table td.actions { text-align: right; white-space: nowrap; }
.table td.actions .inline-form { flex-wrap: nowrap; }
/* A key's Roll while staff are signed in as the customer: "Staff key" with what it means written out beside the box
   (a title alone never shows on a touch screen), wrapped in a narrow block so the actions column stays a column. */
.table td.actions .roll-staff { width: 260px; white-space: normal; text-align: left; font-size: 12.5px; line-height: 1.4; gap: 8px; }
.table--compact td { padding: 9px 14px; }
.table--compact th { padding-left: 14px; padding-right: 14px; } /* each heading on its column's line */

/* Stacked tables: app.js labels each cell from its header and adds
   .is-stacked whenever a table can't fit its box — phones, but also narrow
   side columns — so every row becomes a card instead of scrolling sideways. */
.table-wrap:has(table.is-stacked) { overflow: visible; }
table.table.is-stacked thead { display: none; }
table.table.is-stacked, table.table.is-stacked tbody, table.table.is-stacked tr, table.table.is-stacked td { display: block; width: 100%; }
table.table.is-stacked tr { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
table.table.is-stacked tr:last-child { border-bottom: 0; }
table.table.is-stacked td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 0; border: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
table.table.is-stacked td > * { min-width: 0; }
table.table.is-stacked td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; font: 500 10px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
table.table.is-stacked td:not([data-label])::before, table.table.is-stacked td[data-label=""]::before { display: none; }
table.table.is-stacked td[data-primary] { justify-content: flex-start; text-align: left; font-size: 15px; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; }
table.table.is-stacked td.nowrap, table.table.is-stacked td .nowrap { white-space: normal; }
table.table.is-stacked td.num { text-align: right; }
table.table.is-stacked td.actions { justify-content: flex-end; flex-wrap: wrap; white-space: normal; }
table.table.is-stacked td.actions .inline-form { flex-wrap: wrap; }
table.table.is-stacked td[colspan] { justify-content: center; text-align: center; }
table.table.is-stacked input, table.table.is-stacked .select { max-width: 60%; }
/* Header-less lists flow their cells along a wrapping line instead. */
table.table.is-stacked.is-bare tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
table.table.is-stacked.is-bare td { display: block; width: auto; flex: 0 1 auto; padding: 0; text-align: left; }
table.table.is-stacked.is-bare td.is-wide { flex: 1 1 0; min-width: 60%; }
table.table.is-stacked.is-bare td.actions { margin-left: auto; }

/* Filter chips & tabs */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.toolbar .search input { padding-left: 36px; height: 38px; }
.toolbar .search .icon { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.chips { display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--bg-deep); border: 1px solid var(--line-soft); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 6px; text-decoration: none; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--panel-hi); color: var(--ink); box-shadow: var(--shadow-key); }
.chip .count { color: var(--faint); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 10px 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--ink); border-color: var(--signal); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.pager__info { font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pager__info b { color: var(--ink); font-weight: 600; }
.pager__pages { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.pager__num, .pager__btn {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--panel-hi); color: var(--ink-2); text-decoration: none;
  font: 500 12.5px/1 var(--font-mono); font-variant-numeric: tabular-nums;
}
.pager__btn .icon { width: 15px; height: 15px; }
a.pager__num:hover, a.pager__btn:hover { border-color: var(--faint); color: var(--ink); background: var(--panel); }
.pager__num.is-current { background: var(--signal); border-color: var(--signal-deep); color: #fff; box-shadow: 0 1px 0 var(--signal-deep); }
.pager__btn.is-disabled { opacity: .4; cursor: default; }
.pager__gap { padding: 0 2px; color: var(--faint); font-family: var(--font-mono); }
.pager__size { margin: 0; }
.pager__size label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager__size .select select { height: 32px; padding: 0 28px 0 10px; font-size: 12.5px; }
/* A pager that stands on its own (not at the foot of a panel) */
.pager--bare { border-top: 0; padding: 14px 0 0; }

/* ─── Boot sequence (provisioning timeline) ─────────────────────────────── */
.boot { list-style: none; margin: 0; padding: 0; }
.boot__row {
  display: grid; grid-template-columns: 74px 14px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 12px 18px; border-bottom: 1px dashed var(--line-soft); position: relative;
}
.boot__row:last-child { border-bottom: 0; }
.boot__time { font: 500 11.5px/1.5 var(--font-mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.boot__row .led { margin-top: 6px; }
.boot__label { font-size: 14px; font-weight: 550; line-height: 1.45; }
.boot__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; font: 11px/1.4 var(--font-mono); color: var(--muted); }
.boot__meta .upid { color: var(--faint); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boot__dur { font: 500 11.5px/1.5 var(--font-mono); color: var(--muted); white-space: nowrap; }
.boot__row.is-running { background: linear-gradient(90deg, var(--busy-wash), transparent 70%); }
.boot__row.is-running .boot__label { color: color-mix(in srgb, var(--busy) 70%, var(--ink)); }
.boot__row.is-error { background: linear-gradient(90deg, var(--err-wash), transparent 70%); }
.boot__row.is-skipped .boot__label { color: var(--muted); }
.boot__detail { margin-top: 6px; font: 11.5px/1.5 var(--font-mono); color: var(--muted); word-break: break-word; }
.blocks { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 8px; margin-top: 8px; max-width: 420px; }
.blocks i { background: var(--line-soft); border-radius: 1px; }
.blocks i.on { background: var(--busy); box-shadow: 0 0 5px color-mix(in srgb, var(--busy) 70%, transparent); }
.build-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.build-hero h2 { font-size: 20px; font-stretch: 112%; }
.build-hero p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.build-hero .blocks { height: 12px; grid-template-columns: repeat(36, 1fr); max-width: none; margin-top: 14px; }

/* Terminal / task log */
.term {
  margin: 0; padding: 14px 16px; border-radius: 8px; background: #0b0b0a; color: #d6d3cb;
  font: 12px/1.6 var(--font-mono); max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-all;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7);
}
.term .ok { color: #45f0a0; }
.term .err { color: #ff7a6b; }
details.disclose summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
details.disclose summary .icon { width: 15px; height: 15px; }
details.disclose summary:hover { color: var(--ink); }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose[open] summary { margin-bottom: 10px; }

/* ─── Deploy configurator ───────────────────────────────────────────────── */
.deploy { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 26px; align-items: start; }
/* The configurator column reflows on its own width (container queries). */
.deploy__main { container: configurator / inline-size; min-width: 0; }
@container configurator (min-width: 860px) {
  .faders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faders .fader { border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .faders .fader:last-child { border-right: 0; }
}
.step { margin-bottom: 26px; }
.step__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.step__num { font: 600 12px/1 var(--font-mono); color: var(--signal); letter-spacing: .1em; }
.step__title { font-size: 19px; font-weight: 680; font-stretch: 114%; letter-spacing: -.01em; }
.step__hint { margin-left: auto; font-size: 13px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.choice {
  position: relative; display: block; padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-panel);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; text-align: left; width: 100%;
}
.choice:hover { border-color: var(--faint); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.is-selected, .choice:has(input:checked) { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), 0 10px 26px -14px color-mix(in srgb, var(--signal) 60%, transparent); }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.choice__top { display: flex; align-items: center; gap: 10px; }
.choice__flag { font-size: 22px; line-height: 1; }
.choice__title { font-weight: 650; font-size: 16px; font-stretch: 108%; }
.choice__meta { margin-top: 10px; font: 500 10.5px/1.5 var(--font-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.choice__state { position: absolute; top: 14px; right: 14px; }
.choice__tick { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--signal); color: #fff; display: none; place-items: center; }
.choice.is-selected .choice__tick, .choice:has(input:checked) .choice__tick { display: grid; }
.choice.is-selected .choice__state, .choice:has(input:checked) .choice__state { display: none; }
/* A location without room for the memory picked: said under the card, even when it is the one selected. */
.choice.is-short .choice__state, .choice.is-short:has(input:checked) .choice__state { display: block; position: static; margin-top: 10px; }
.choice.is-short .choice__state .status { color: var(--warn); }
.choice__tick .icon { width: 13px; height: 13px; stroke-width: 2.6; }

.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.os-tile { padding: 14px; }
.os-tile .select { margin-top: 12px; }
.os-tile select { height: 34px; font-size: 13px; }
.os-badge {
  --os: #57534e; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--os) 82%, #fff), var(--os));
  color: #fff; font: 800 15px/1 var(--font-sans); font-stretch: 125%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 color-mix(in srgb, var(--os) 70%, #000);
}
.os-badge svg { width: 62%; height: 62%; fill: #fff; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .18)); }
.os-badge--sm { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
.os-badge--lg { width: 46px; height: 46px; border-radius: 11px; font-size: 20px; }

.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.preset {
  padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-hi); cursor: pointer; text-align: left;
  box-shadow: var(--shadow-key); transition: border-color .15s;
}
.preset:hover { border-color: var(--faint); }
.preset.is-active { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.preset__name { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.preset__name .pill { height: 18px; padding: 0 6px; font-size: 9px; }
.preset__spec { margin-top: 4px; font: 500 11px/1.3 var(--font-mono); color: var(--muted); }

.fader { padding: 16px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.fader:last-child { border-bottom: 0; }
.fader__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fader__top .icon { color: var(--muted); }
.fader__name { font-weight: 650; font-size: 15px; }
.fader__price { font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.fader__bonus { margin-top: 5px; font: 600 10.5px/1.3 var(--font-mono); color: var(--ok); letter-spacing: .04em; }
.fader__value { margin-left: auto; }
.fader__value .lcd { padding: 6px 10px; }
.fader__value .lcd__digits { font-size: 18px; }
.fader__ticks { display: flex; justify-content: space-between; margin-top: 6px; font: 500 10px/1 var(--font-mono); color: var(--faint); }
.fader__step { display: inline-flex; gap: 4px; }
.fader__step button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-hi); cursor: pointer; font: 600 14px/1 var(--font-mono); color: var(--ink-2); box-shadow: var(--shadow-key); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0;
  --pct: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px; border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--signal) 0 var(--pct), transparent var(--pct)),
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%),
    var(--bg-deep);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-deep); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--signal); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 26px; margin-top: -10px; border-radius: 4px;
  border: 1px solid var(--faint);
  background: linear-gradient(90deg, transparent 7px, var(--ink-2) 7px 8px, transparent 8px 10px, var(--ink-2) 10px 11px, transparent 11px), linear-gradient(180deg, var(--panel-hi), var(--bg-deep));
  box-shadow: 0 2px 0 var(--line), 0 3px 8px rgba(0, 0, 0, .18);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 24px; border-radius: 4px; border: 1px solid var(--faint);
  background: linear-gradient(180deg, var(--panel-hi), var(--bg-deep)); box-shadow: 0 2px 0 var(--line);
}
input[type="range"]:focus-visible { box-shadow: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }

.sheet { position: sticky; top: 84px; }
.sheet .panel__body { padding: 0; }
.sheet__rows { margin: 0; padding: 6px 18px; }
.sheet__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.sheet__row:last-child { border-bottom: 0; }
.sheet__row dt { color: var(--muted); }
.sheet__row dd { margin: 0; text-align: right; font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__row dd small { font: 11px/1 var(--font-mono); color: var(--muted); font-weight: 400; margin-left: 6px; }
.sheet__free { color: var(--ok); font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.sheet__free--soon { color: var(--muted); } /* not on sale yet (IPv6): the same type, not the green of what comes free */
.sheet__total { padding: 16px 18px; background: var(--bg-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sheet__total .lcd { display: flex; width: 100%; justify-content: flex-end; }
.sheet__tax { display: flex; justify-content: space-between; margin-top: 10px; font: 11px/1.4 var(--font-mono); color: var(--muted); }
.sheet__cta { padding: 16px 18px 18px; }
.sheet__wallet { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 12px; }
.sheet__note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.sheet__cap { margin: 12px 0 0; padding: 10px 12px; font-size: 12.5px; }
.sheet__row--discount dd { color: var(--ok); font-family: var(--font-mono); }
.coupon { padding: 12px 18px 14px; border-top: 1px solid var(--line-soft); }
.own-ips { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-deep); }
.own-ips .label { display: block; margin-bottom: 10px; }
.own-ips__list { display: grid; gap: 8px; }
.coupon .label { display: block; margin-bottom: 8px; }
.coupon__entry { display: flex; gap: 8px; }
.coupon__entry input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon__entry input::placeholder { text-transform: none; }
.coupon .field__error { margin: 8px 0 0; }
.coupon__applied { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 12.5px; color: var(--ok); }
.coupon__applied.is-warn { color: var(--warn); }
.coupon__applied svg { width: 14px; height: 14px; flex: none; }
.coupon__applied span { flex: 1; min-width: 0; }
.coupon__remove { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.coupon__remove:hover { color: var(--ink); }

/* ─── Server detail ─────────────────────────────────────────────────────── */
.hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 28px; align-items: flex-end; margin-bottom: 22px; }
.hero > :first-child { flex: 1 1 420px; min-width: 0; }
.grid--panels { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.hero__name { font-size: clamp(28px, 4vw, 42px); font-weight: 760; font-stretch: 122%; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.switchboard { display: inline-flex; gap: 0; padding: 4px; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1); }
.switchboard form { display: contents; }
.switchboard .btn { border-radius: 7px; height: 38px; }
.switchboard .btn + .btn, .switchboard form + form .btn { margin-left: 4px; }
.meterbar { height: 8px; border-radius: 4px; background: var(--bg-deep); border: 1px solid var(--line-soft); overflow: hidden; }
.meterbar i { display: block; height: 100%; background: var(--c, var(--signal)); border-radius: 3px; transition: width .5s ease; box-shadow: 0 0 6px color-mix(in srgb, var(--c, var(--signal)) 50%, transparent); }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.live-grid > div { padding: 16px 18px; min-width: 0; box-shadow: 1px 0 0 var(--line-soft), 0 1px 0 var(--line-soft); }
.live-grid .value { font-size: 19px; font-weight: 650; font-stretch: 108%; margin: 8px 0; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.secret { display: inline-flex; align-items: center; gap: 4px; font: 500 13px/1 var(--font-mono); }
.secret__mask { letter-spacing: .2em; color: var(--muted); }
/* Bandwidth: totals and a 30-day bar per day (in at the bottom, out on top) */
.bw { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 18px 30px; align-items: end; }
.bw__totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bw__totals > div { min-width: 0; }
.bw__value { font-size: 21px; font-weight: 650; font-stretch: 108%; margin: 6px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bw__io { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 500 11.5px/1.45 var(--font-mono); color: var(--muted); }
.bw__io span { white-space: nowrap; }
.bw-chart { display: flex; align-items: flex-end; gap: 3px; height: 92px; border-bottom: 1px solid var(--line); }
.bw-chart__day { flex: 1 1 0; min-width: 0; height: max(var(--h), 3px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--busy); border-radius: 2px 2px 0 0; overflow: hidden; }
.bw-chart__day i { display: block; height: var(--p); background: var(--signal); }
.bw-chart__day.is-empty { height: 3px; background: var(--line-soft); }
.bw-chart__day.is-future { opacity: .45; }
.bw__left { display: grid; gap: 16px; min-width: 0; }
.bw__usage { min-width: 0; }
.bw__meter { height: 10px; margin-top: 8px; }
.bw__value--sm { font-size: 17px; }
.bw-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.bw-pack { display: inline-flex; align-items: center; gap: 6px; }
.group-step { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.bw-chart__day:hover { filter: brightness(1.15); }
.bw-chart__axis { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font: 500 10.5px/1 var(--font-mono); color: var(--muted); }
.bw-chart__axis .legend { gap: 12px; font-size: 10px; }
@media (max-width: 860px) {
  .bw { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .bw__totals { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bw__value { font-size: 18px; }
}
.danger-zone { border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.danger-zone .panel__head { border-bottom-color: color-mix(in srgb, var(--err) 20%, var(--line-soft)); }
.danger-zone .label { color: var(--err); }

/* ─── Auth screens ──────────────────────────────────────────────────────── */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth__art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px; background: #0e0e0d; color: #f1eee7;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.auth__art::after { content: ""; position: absolute; right: -120px; top: 20%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 79, 0, .22), transparent 65%); pointer-events: none; }
.auth__art .brand__name { color: #fff; }
.auth__headline { position: relative; z-index: 1; font-size: clamp(36px, 4.4vw, 60px); font-weight: 760; font-stretch: 125%; letter-spacing: -.03em; line-height: .98; margin: 0; }
.auth__headline em { font-style: normal; color: var(--signal); }
.auth__lede { position: relative; z-index: 1; max-width: 460px; color: #aaa69d; font-size: 16px; margin: 18px 0 0; }
.auth__ticker { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #77736b; }
.auth__ticker span { display: inline-flex; align-items: center; gap: 8px; }
.mini-rack { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px; width: min(440px, 100%); margin: 30px 0; padding: 9px; border-radius: 10px; background: #050505; border: 1px solid #262522; }
.mini-rack div { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-radius: 5px; background: linear-gradient(180deg, #1d1d1b, #151514); border: 1px solid #2a2926; font: 500 10px/1 var(--font-mono); letter-spacing: .12em; color: #8b877e; }
.mini-rack div b { color: #e9e6df; font-weight: 600; }
.mini-rack div i { margin-left: auto; width: 74px; height: 14px; background: repeating-linear-gradient(90deg, #34332f 0 2px, transparent 2px 5px); }
.mini-rack .led { --c: var(--ok); }
.mini-rack div:nth-child(2) .led { animation-delay: .3s; }
.mini-rack div:nth-child(4) .led { --c: var(--busy); animation: blink 1s infinite; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 28px; background: var(--bg); }
.auth__card { width: min(420px, 100%); }
.auth__card h1 { font-size: 30px; font-weight: 720; font-stretch: 118%; letter-spacing: -.02em; margin-bottom: 8px; }
.auth__card > p { color: var(--muted); margin: 0 0 26px; }
.auth__foot { margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth__foot a { color: var(--ink); font-weight: 600; }
/* Continue with Google: Google's own button (white, its "G", dark text) in either theme; then "or" before the form. */
.btn--google { background: #fff; color: #1f1f1f; border: 1px solid #747775; gap: 10px; font-weight: 600; text-decoration: none; }
.btn--google:hover { background: #f2f2f2; color: #1f1f1f; }
.btn--google__mark { flex: none; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__mobile-brand { display: none; margin-bottom: 28px; }
.auth__mobile-brand .brand__name { color: var(--ink); }
.big-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--signal-wash); color: var(--signal); margin-bottom: 20px; border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent); }
.big-icon .icon { width: 28px; height: 28px; }

/* Onboarding stepper */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.stepper__item { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); }
.stepper__item .label { display: flex; align-items: center; gap: 8px; }
.stepper__item strong { display: block; margin-top: 6px; font-size: 14px; }
.stepper__item.is-done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.stepper__item.is-done .label { color: var(--ok); }
.stepper__item.is-current { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.stepper__item.is-current .label { color: var(--signal); }

/* ─── Invoice sheet ─────────────────────────────────────────────────────── */
.invoice { position: relative; max-width: 860px; margin: 0 auto; padding: 48px 52px; background: #fffdf9; color: #161513; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.invoice__top { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 2px solid #161513; }
.invoice__title { font-size: 34px; font-weight: 780; font-stretch: 125%; letter-spacing: -.02em; line-height: 1; }
.invoice__meta { margin-top: 12px; font: 12px/1.7 var(--font-mono); color: #57534e; }
.invoice__seller { text-align: right; font-size: 13px; line-height: 1.6; color: #44403c; }
.invoice__seller strong { font-size: 15px; color: #161513; }
.invoice__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 26px 0; }
.invoice__parties .label { color: #78716c; margin-bottom: 8px; }
.invoice__parties p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.invoice table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.invoice th { text-align: left; padding: 10px 8px; border-bottom: 1px solid #161513; font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #57534e; }
.invoice td { padding: 11px 8px; border-bottom: 1px solid #e7e5e4; }
.invoice .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice__totals { margin-left: auto; width: 320px; margin-top: 18px; font-size: 14px; }
.invoice__totals div { display: flex; justify-content: space-between; padding: 6px 8px; }
.invoice__totals .grand { margin-top: 6px; padding: 12px 8px; border-top: 2px solid #161513; font-size: 18px; font-weight: 750; font-stretch: 112%; }
.invoice__foot { margin-top: 34px; padding-top: 16px; border-top: 1px dashed #d6d3d1; font: 11px/1.6 var(--font-mono); color: #78716c; }
.invoice__lines { overflow-x: auto; }
.invoice__words { margin: 18px 0 0; font-size: 13px; font-weight: 600; color: #161513; }
.invoice__words .label { display: block; margin-bottom: 4px; color: #78716c; font-weight: 500; }
.invoice__note { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #161513; background: #f5f3ee; font-size: 12.5px; line-height: 1.55; color: #44403c; }
.invoice__credits { margin-top: 18px; font-size: 13px; line-height: 1.7; }
.invoice__credits .label { color: #78716c; margin-bottom: 4px; }
.invoice__credits a { color: #161513; font-weight: 600; }
.invoice__credits .num { float: right; font-variant-numeric: tabular-nums; }
.stamp {
  position: absolute; top: 196px; right: 64px; transform: rotate(-9deg);
  padding: 8px 16px; border: 3px double currentColor; border-radius: 8px;
  font: 800 22px/1 var(--font-sans); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; opacity: .82;
  mix-blend-mode: multiply;
}
.stamp--paid { color: #12b76a; }
.stamp--unpaid { color: #f04438; }
.stamp--void, .stamp--refunded { color: #78716c; }
.mini-stamp { display: inline-block; padding: 3px 7px; border: 1.5px solid currentColor; border-radius: 4px; transform: rotate(-3deg); font: 700 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.mini-stamp--paid { color: var(--ok); }
.mini-stamp--unpaid { color: var(--err); }
.mini-stamp--void, .mini-stamp--refunded { color: var(--muted); }

/* Wallet hero */
.wallet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px; }
.amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.amounts button { height: 34px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-hi); box-shadow: var(--shadow-key); cursor: pointer; font: 500 13px/1 var(--font-mono); }
.amounts button.is-active { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }

/* Checkout */
.checkout { max-width: 520px; margin: 30px auto; }
.sandbox-card { padding: 24px; border-radius: 14px; color: #f1eee7; background: linear-gradient(135deg, #1c1c1a, #0b0b0a); border: 1px solid #2b2a27; box-shadow: var(--shadow-pop); position: relative; overflow: hidden; }
.sandbox-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 79, 0, .05) 18px 36px); }
.sandbox-card > * { position: relative; }
.pay-options .label { display: block; margin-bottom: 10px; }
.pay-error { margin: 0 18px 4px; }
.pay-options__list { display: grid; gap: 10px; }
.pay-option { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 44px 14px 16px; }
.pay-option__name { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
.pay-option .pay-marks { margin: 8px 0 2px; }
.pay-option__methods { font-size: 12.5px; color: var(--muted); }
.pay-option__fee { margin-top: 6px; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pay-sum { margin: 16px 0 0; display: grid; gap: 6px; font-size: 13.5px; }
.pay-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.pay-sum dt { color: var(--muted); }
.pay-sum dd { margin: 0; font-family: var(--font-mono); }
.pay-sum__total { padding-top: 8px; border-top: 1px dashed var(--line-soft); font-weight: 650; }
.pay-sum__total dt { color: var(--ink); }
/* Payment marks (pay_logo(), public/assets/pay/): each brand's own logo on a white chip, so its colours read the
   same in the dark theme. A gateway's is square; a way to pay's and a saved card's are card-shaped. */
.pay-logo { display: inline-block; flex: none; vertical-align: middle; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); }
.pay-logo--gateway { width: 30px; height: 30px; padding: 4px; border-radius: var(--radius-sm); }
.pay-logo--method { width: 38px; height: 24px; padding: 3px 4px; border-radius: 4px; }
.pay-logo--card { width: 40px; height: 26px; padding: 4px 5px; }
.pay-logo--sm.pay-logo--gateway { width: 20px; height: 20px; padding: 2px; border-radius: 5px; }
.pay-logo--sm.pay-logo--method { width: 30px; height: 19px; padding: 2px 3px; border-radius: 3px; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 4px; }
/* Billing's "Add funds": the marks of the ways to pay, then the same in words with each gateway's mark. */
.pay-via { display: grid; gap: 8px; margin-top: 12px; }
.pay-via p { margin: 0; }
.pay-via .pay-logo--sm { margin: 0 4px 0 1px; }
/* A wallet line for a payment: its gateway's mark beside the words. */
.pay-line { display: flex; align-items: center; gap: 8px; }
/* The sandbox's approve / decline only when it is the chosen way to pay; the Pay button otherwise. */
[data-checkout]:has(input[name="gateway"][value="sandbox"]:checked) [data-pay-real],
[data-checkout]:has(input[name="gateway"]:not([value="sandbox"]):checked) [data-pay-sandbox] { display: none; }
/* Checkout: "Pay my renewals automatically" — shown only while Stripe is the chosen way to pay. */
.pay-autopay { display: none; margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.checkout:has(input[name="gateway"][value="stripe"]:checked) .pay-autopay { display: block; }
.pay-autopay .check { margin-bottom: 6px; }
.pay-autopay__words { margin: 0 0 0 28px; font-size: 12.5px; color: var(--muted); }
/* …and, only while it is ticked: the payment raised to the customer's largest renewal (the bank's limit), the ₹15,000 cap. */
.pay-autopay__raise { display: none; margin: 8px 0 0 28px; font-size: 12.5px; color: var(--ink-2); }
.pay-autopay:has([data-autopay]:checked) .pay-autopay__raise { display: block; }
/* A card that pays automatically: its mark, "Visa •••• 0123", then expiry and where it was issued in grey. */
.card-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.card-line__meta { font-size: 12.5px; color: var(--muted); }

/* ─── Admin bits ────────────────────────────────────────────────────────── */
.node-card .panel__body { display: grid; gap: 14px; }
.node-bar__top { display: flex; justify-content: space-between; margin-bottom: 5px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.node-bar__top b { color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.health-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.health-cell { padding: 14px 16px; border-right: 1px solid var(--line-soft); }
.health-cell:last-child { border-right: 0; }
.health-cell strong { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 6px; }
.ip-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; padding: 14px; }
.ip {
  aspect-ratio: 1; border-radius: 3px; border: 0; padding: 0; cursor: pointer; position: relative;
  background: var(--panel-hi); box-shadow: inset 0 0 0 1px var(--line-soft); font: 500 8.5px/1 var(--font-mono); color: var(--faint);
}
.ip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); z-index: 1; }
.ip--assigned { background: var(--signal); color: #fff; box-shadow: none; }
.ip--reserved { background: #57534e; color: #fff; box-shadow: none; }
.ip--blocked { background: repeating-linear-gradient(135deg, var(--err) 0 3px, var(--err-wash) 3px 6px); box-shadow: none; }
.ip--cooldown { background: var(--warn-wash); box-shadow: inset 0 0 0 1px var(--warn); color: var(--warn); }
.ip.is-selected { outline: 2px solid var(--busy); outline-offset: 1px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.kv-inline { display: flex; gap: 18px; flex-wrap: wrap; font: 12px/1.4 var(--font-mono); color: var(--muted); }
.kv-inline > * { min-width: 0; overflow-wrap: anywhere; }
.kv-inline b { color: var(--ink); font-weight: 600; }

/* ─── Add-on modules (deploy step 05, server page) ──────────────────────── */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.addon {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-panel);
  transition: border-color .15s, box-shadow .15s;
}
.addon:hover { border-color: var(--faint); }
.addon__main { display: flex; flex-direction: column; gap: 10px; padding: 16px; cursor: pointer; flex: 1; }
.addon__main > input { position: absolute; opacity: 0; pointer-events: none; }
.addon:has(.addon__main > input:checked), .addon.is-on {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), 0 10px 26px -14px color-mix(in srgb, var(--signal) 60%, transparent);
}
.addon:has(.addon__main > input:focus-visible) { box-shadow: var(--focus); }
.addon.is-disabled { opacity: .55; }
.addon.is-disabled .addon__main { cursor: not-allowed; }
.addon__top { display: flex; align-items: center; gap: 12px; }
.addon__icon {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--bg-deep); border: 1px solid var(--line-soft); color: var(--ink-2);
}
.addon:has(.addon__main > input:checked) .addon__icon, .addon.is-on .addon__icon { background: var(--signal-wash); color: var(--signal); border-color: color-mix(in srgb, var(--signal) 30%, transparent); }
.addon__name { font-weight: 650; font-size: 15.5px; font-stretch: 108%; line-height: 1.2; }
.addon__price { margin-top: 3px; font: 500 11px/1.35 var(--font-mono); color: var(--muted); letter-spacing: .03em; }
.addon__desc { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
/* A coupon's free add-on (deploy): said in green, and kept on while the coupon is. */
.addon__perk { font: 600 11px/1.4 var(--font-mono); color: var(--ok); letter-spacing: .03em; }
.addon.is-perk .addon__main { cursor: default; }
.addon__extra { padding: 12px 16px 14px; border-top: 1px dashed var(--line-soft); }
.addon__extra .field { margin-bottom: 0; }
.addon:not(:has(.addon__main > input:checked)) .addon__extra--when-on { display: none; }
/* Rocker that mirrors the hidden checkbox */
.rocker { margin-left: auto; position: relative; width: 38px; height: 22px; border-radius: 6px; flex: none; background: var(--bg-deep); border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12); transition: background .15s; }
.rocker::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 4px; background: var(--panel-hi); box-shadow: var(--shadow-key); transition: transform .15s; }
.addon:has(.addon__main > input:checked) .rocker, .addon.is-on .rocker { background: var(--signal); border-color: var(--signal-deep); }
.addon:has(.addon__main > input:checked) .rocker::after, .addon.is-on .rocker::after { transform: translateX(16px); }

/* Quantity stepper (extra IPv4, disk size) */
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-hi); box-shadow: var(--shadow-key); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty button .icon { width: 14px; height: 14px; }
.qty input[type="number"] { width: 64px; height: 30px; text-align: center; padding: 0 4px; font: 600 14px/1 var(--font-mono); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Quota gauge: used of allowed, as a row of slots */
.quota { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quota__slots { display: flex; gap: 3px; flex-wrap: wrap; }
.quota__slots i { width: 14px; height: 14px; border-radius: 3px; background: var(--panel-hi); box-shadow: inset 0 0 0 1px var(--line); }
.quota__slots i.on { background: var(--signal); box-shadow: 0 0 6px color-mix(in srgb, var(--signal) 55%, transparent); }
.quota__slots i.add { background: repeating-linear-gradient(135deg, var(--signal) 0 2px, var(--signal-wash) 2px 5px); box-shadow: inset 0 0 0 1px var(--signal); }
.quota__text { font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.quota__text b { color: var(--ink); font-weight: 600; }

/* Disk / backup / IP rows on the server page */
.vols { list-style: none; margin: 0; padding: 0; }
.vol { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.vol:last-child { border-bottom: 0; }
.vol__icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-deep); border: 1px solid var(--line-soft); color: var(--ink-2); }
.vol__name { font-weight: 620; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vol__meta { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 4px; font: 500 11px/1.4 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.vol__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.vol__actions form { display: contents; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type="number"], .inline-form input[type="text"], .inline-form input[type="tel"] { height: 34px; }

/* Monitor state badge for call alerting */
.monitor { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.monitor__state { font-size: 18px; font-weight: 680; font-stretch: 110%; display: flex; align-items: center; gap: 10px; }
.phone-list { display: grid; gap: 8px; }
.toggles { display: flex; gap: 6px 22px; flex-wrap: wrap; margin: 14px 0 4px; }
.toggles .switch { margin-bottom: 0; }

/* Server types: VPS (virtual CPU) and VDS (host CPU) */
.type-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.type-tile__tagline { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.type-badge { display: inline-grid; place-items: center; height: 28px; padding: 0 10px; border-radius: 7px; font: 700 12px/1 var(--font-mono); letter-spacing: .1em; color: #fff; background: var(--busy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 color-mix(in srgb, var(--busy) 70%, #000); }
.type-badge--host { background: var(--signal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 var(--signal-deep); }
.type-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--busy) 45%, transparent); color: var(--busy); font: 700 9.5px/1 var(--font-mono); letter-spacing: .1em; vertical-align: middle; }
.type-tag--vds { border-color: color-mix(in srgb, var(--signal) 50%, transparent); color: var(--signal-deep); }

/* Order terms: how long (paid in advance) and how many identical servers, on the deploy page */
.duration-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 520px) { .duration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .duration-tile { padding: 12px; } }
.duration-tile .choice__top { justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; padding-right: 24px; }
.duration-tile__price { display: block; margin-top: 10px; font: 600 14px/1.3 var(--font-mono); color: var(--ink); }
.duration-tile__per { display: block; margin-top: 2px; font: 11px/1.4 var(--font-mono); color: var(--muted); }
.duration-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--line-soft); color: var(--ink-2); }
.duration-note .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--muted); }
.order-qty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; }
.order-qty__more { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-soft); }
.order-qty__more .mono { word-break: break-all; }
.sheet__hint { justify-content: flex-start; color: var(--ink-2); }
.sheet__hint span { white-space: normal; }

/* Template downloads: progress cells and the timeline */
.dl { min-width: 190px; }
.timeline { list-style: none; margin: 0; padding: 6px 18px 14px; }
.timeline__item { display: grid; grid-template-columns: 62px 10px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.timeline__item:last-child { border-bottom: 0; }
.timeline__item .led { align-self: center; }
.timeline__time { font-size: 11.5px; color: var(--muted); }
.timeline__msg { min-width: 0; overflow-wrap: anywhere; }
.timeline__item--progress .timeline__msg { font: 12.5px/1.5 var(--font-mono); color: var(--ink-2); }
.timeline__item--success .timeline__msg { font-weight: 600; }
.timeline__item--warning .timeline__msg { color: var(--warn); }
.timeline__item--error .timeline__msg { color: var(--err); }

/* Radio-driven sections (node sign-in: password or token) */
[data-modes]:has(input[name="auth_mode"][value="password"]:checked) [data-mode="token"],
[data-modes]:has(input[name="auth_mode"][value="token"]:checked) [data-mode="password"],
[data-modes]:has(input[name="ssh_auth"][value="password"]:checked) [data-mode="key"],
[data-modes]:has(input[name="ssh_auth"][value="key"]:checked) [data-mode="password"] { display: none; }
/* Coupon form: the value hint for the chosen type, the audience picker for the chosen audience. */
[data-coupon-form]:has(input[name="type"][value="percent"]:checked) [data-type]:not([data-type="percent"]),
[data-coupon-form]:has(input[name="type"][value="flat"]:checked) [data-type]:not([data-type="flat"]),
[data-coupon-form]:has(input[name="type"][value="override"]:checked) [data-type]:not([data-type="override"]),
[data-coupon-form]:has(input[name="type"][value="none"]:checked) [data-type]:not([data-type="none"]),
[data-coupon-form]:has(input[name="type"][value="none"]:checked) [data-coupon-money],
[data-coupon-form]:has(input[name="audience"][value="all"]:checked) [data-audience],
[data-coupon-form]:has(input[name="audience"][value="groups"]:checked) [data-audience="users"],
[data-coupon-form]:has(input[name="audience"][value="users"]:checked) [data-audience="groups"] { display: none; }
/* IP addresses: the location only for an address bought for no server. */
[data-own-ip-form]:has(select[name="server"] option:checked:not([value=""])) [data-own-ip-location] { display: none; }
/* Disks: the location only for a disk of its own (the coupon is for either). */
[data-disk-form]:has(select[name="server"] option:checked:not([value=""])) [data-own-disk],
[data-disk-form]:has(select[name="server"] option[value=""]:checked) [data-attached-note] { display: none; }
.coupon-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-deep); }
/* Coupon form: its offers on new servers (a counted add-on says how many, once ticked); the list names them in green. */
.coupon-offers { margin: 0 0 16px; padding: 12px 14px 2px; border: 1px solid var(--line-soft); border-radius: 10px; }
.coupon-offers:not([open]) { padding-bottom: 12px; }
.coupon-offers .coupon-groups { margin-top: 6px; }
.coupon-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.coupon-offer__qty { display: inline-flex; align-items: center; gap: 6px; margin-left: 28px; }
.coupon-offer__qty input { width: 72px; height: 30px; padding: 4px 8px; }
.coupon-offer:not(:has(input[type="checkbox"]:checked)) .coupon-offer__qty { display: none; }
.coupon-offer-label { color: var(--ok); }

/* Mobile order bar (deploy) */
.deploy-bar { display: none; }

/* List + detail split (mail, notifications) */
.split { display: grid; grid-template-columns: minmax(0, var(--side)) minmax(0, 1fr); gap: 18px; align-items: start; }
.topbar__search { position: relative; }
.topbar__search input { height: 34px; width: 230px; padding-left: 34px; }
.topbar__search .icon { position: absolute; left: 10px; top: 8px; color: var(--muted); }
.channel { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--bg-deep); border: 1px solid var(--line-soft); color: var(--ink-2); flex: none; }
.channel .icon { width: 14px; height: 14px; }
.channel--sms { color: var(--busy); }
.channel--call { color: var(--signal); }
.sms-bubble { max-width: 420px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--bg-deep); border: 1px solid var(--line-soft); font-size: 14px; white-space: pre-wrap; word-break: break-word; }

/* ─── Public home page ──────────────────────────────────────────────────── */
.site { width: min(1280px, 100%); align-self: start; }
.site__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 6px 0 40px; }
.site__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.site__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.site__title { font-size: clamp(38px, 5.5vw, 76px); margin: 22px 0 18px; overflow-wrap: break-word; }
.site__lede { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.site__features { margin-top: 56px; }
.site__foot { padding: 40px 0 10px; text-align: center; }

/* ─── Error pages & misc ────────────────────────────────────────────────── */
.bare { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 30px; background: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.error-card { width: min(520px, 100%); padding: clamp(22px, 6vw, 34px); overflow-wrap: anywhere; }
.error-card .lcd { margin-bottom: 22px; }
.error-card__brand { padding: 0 0 22px; }
.error-card h1 { font-size: 28px; font-stretch: 118%; margin-bottom: 10px; }
.devbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 999px; background: #161614; color: #e7e4dc; border: 1px solid #2c2b28; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; box-shadow: var(--shadow-pop); }
.devbar a { color: var(--signal-hi); }
@media (max-width: 720px) { .devbar { left: auto; right: 12px; transform: none; font-size: 10px; white-space: nowrap; padding: 6px 10px; } .devbar span + * { display: none; } }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.text-right { text-align: right; }
.small { font-size: 13px; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .deploy { grid-template-columns: minmax(0, 1fr) 320px; }
  .grid--side { grid-template-columns: minmax(0, 1fr) 320px; }
  .split { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 60; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-pop); }
  .shell.nav-open .rail { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding-block: 12px; }
  .content { padding-top: 22px; padding-bottom: 70px; }
  .deploy, .grid--side { grid-template-columns: minmax(0, 1fr); }
  .sheet { position: static; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .site__hero { grid-template-columns: minmax(0, 1fr); }
  .site__head { padding-bottom: 28px; }
  .site__features { margin-top: 36px; }
  .auth__art { display: none; }
  .auth__mobile-brand { display: flex; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .content.has-deploy-bar { padding-bottom: 120px; }
  .deploy-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--panel) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35);
  }
  .deploy-bar .lcd { padding: 6px 10px; }
  .deploy-bar .lcd__digits { font-size: 17px; }
  .deploy-bar .btn { margin-left: auto; }
  .deploy-bar:has(.deploy-bar__note) { flex-wrap: wrap; row-gap: 6px; }
  .deploy-bar__note { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.35; color: var(--muted); text-align: center; }
  .content.has-deploy-bar:has(.deploy-bar__note) { padding-bottom: 150px; }
  .devbar { bottom: 84px; }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4, .form-row, .form-row--3 { grid-template-columns: minmax(0, 1fr); }
  .switchboard { flex-wrap: wrap; }
  .page-head h1 { font-size: 25px; }
  .bare { padding: 20px 16px; }
  .site__lede { font-size: 16px; }
  .site__nav .btn { height: 36px; padding: 0 12px; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .invoice { padding: 26px 20px; }
  .invoice__top, .invoice__parties { grid-template-columns: minmax(0, 1fr); flex-direction: column; }
  .invoice__seller { text-align: left; }
  .invoice__totals { width: 100%; }
  .stamp { top: 20px; right: 16px; font-size: 16px; }
  .invoice thead { display: none; }
  .invoice tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid #e7e5e4; }
  .invoice tbody td { padding: 0; border: 0; font-size: 12.5px; color: #57534e; }
  .invoice tbody td:first-child { flex: 1 0 100%; font-size: 13.5px; color: #161513; }
  .invoice tbody td[data-label]::before { content: attr(data-label) " "; font: 500 9.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #78716c; }
  .invoice tbody td:empty { display: none; } /* an included line's blank SAC: no gap where it would be */
  .invoice tbody td:last-child { margin-left: auto; font-size: 13.5px; font-weight: 650; color: #161513; }
  .wallet { grid-template-columns: minmax(0, 1fr); }
  /* The wallet's balance and checkout's amount: a lakh and more still fits the screen. */
  .lcd--xl { padding: 12px 14px; max-width: 100%; }
  .lcd--xl .lcd__digits { font-size: clamp(22px, 8.5vw, 46px); }
  .boot__row { grid-template-columns: 14px minmax(0, 1fr); }
  .boot__time, .boot__dur { display: none; }
  .ip-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }

  /* Horizontal scrollers instead of overflowing rows */
  .chips { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; gap: 18px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; }
  .toolbar .search { max-width: none; min-width: 0; flex-basis: 100%; }
  .topbar { gap: 10px; }
  .topbar__search { display: none; }
  .topbar__actions .btn--sm { padding: 0 10px; }
  .page-head { margin-bottom: 20px; }
  .page-head__actions { width: 100%; }
  .panel__head { flex-wrap: wrap; }
  .panel__body { padding: 16px; }
  .spec dt { padding-right: 12px; }
  .hero__meta { gap: 8px 12px; }
  .switchboard { width: 100%; }
  .switchboard .btn { flex: 1 1 calc(50% - 4px); }
  .switchboard .btn + .btn, .switchboard form + form .btn { margin-left: 0; }
  .switchboard { gap: 4px; }
  .vol { grid-template-columns: 38px minmax(0, 1fr); }
  .vol__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .addon-grid { grid-template-columns: minmax(0, 1fr); }
  .os-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
  .modal__foot .btn { flex: 1; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Print (invoices) ──────────────────────────────────────────────────── */
@media print {
  body { background: #fff; }
  .rail, .topbar, .no-print, .devbar, .toasts { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .invoice { box-shadow: none; border: 0; padding: 0; max-width: none; }
}

/* ── Server console (VNC) ────────────────────────────────────────────────── */
.console { display: flex; flex-direction: column; gap: 10px; }
.console:fullscreen { background: #0b0d10; padding: 10px; }
.console__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.console__bar .grow { flex: 1 1 auto; }
.console__host { color: var(--muted); }
.console__screen { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 240px;
  background: #0b0d10; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: auto; }
.console__screen canvas { display: block; image-rendering: auto; cursor: default; outline: none; background: #000; }
.console__screen canvas:focus { box-shadow: 0 0 0 2px var(--focus); }
.console__msg { position: absolute; inset: auto 0 0 0; margin: 0 auto 18px; width: fit-content; max-width: 90%; padding: 10px 14px;
  border-radius: 8px; background: rgba(12, 14, 18, .88); color: #e6e9ee; font: 500 13px/1.4 var(--font-sans); text-align: center; }
.console__msg[hidden] { display: none; }
.console__hint { margin: 0; }
.console__dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); padding: 18px; width: min(520px, 92vw); }
.console__dialog::backdrop { background: rgba(0, 0, 0, .45); }
.console__dialog textarea { width: 100%; }

/* ── Metric charts ───────────────────────────────────────────────────────────
   Two series colours, validated for colour-blind separation and 3:1 against
   the panel in each theme (dark gets its own steps, not a flip). */
:root { --viz-1: #e64800; --viz-2: #1f7ae0; --viz-3: #0b8f63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --viz-1: #ec5410; --viz-2: #2e90fa; --viz-3: #2fbf8a; } }
:root[data-theme="dark"] { --viz-1: #ec5410; --viz-2: #2e90fa; --viz-3: #2fbf8a; }

.metrics-filters { gap: 12px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.mchart { margin: 0; }
.mchart__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.mchart__title { font-weight: 650; font-size: 15px; }
.mchart__caption { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.mchart__legend { display: inline-flex; gap: 14px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mchart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.mchart__key { width: 14px; height: 2px; border-radius: 1px; display: inline-block; flex: none; }
.mchart__key--1 { background: var(--viz-1); }
.mchart__key--2 { background: var(--viz-2); }
.mchart__body { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.mchart__y { position: relative; height: 180px; font: 500 10.5px/1 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.mchart__y span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.mchart__plot { position: relative; height: 180px; border-bottom: 1px solid var(--line); outline: none; touch-action: pan-y; }
.mchart__plot:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.mchart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mchart__grid { stroke: var(--line-soft); stroke-width: 1; }
.mchart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mchart__line--1 { stroke: var(--viz-1); }
.mchart__line--2 { stroke: var(--viz-2); }
.mchart__fill { stroke: none; }
.mchart__fill--1 { fill: var(--viz-1); opacity: .1; }
.mchart__fill--2 { fill: var(--viz-2); opacity: .08; }
.mchart__x { position: relative; height: 16px; margin: 7px 0 0 74px; font: 500 10.5px/1 var(--font-mono); color: var(--muted); }
.mchart__x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.mchart__cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-2); opacity: .4; pointer-events: none; }
.mchart__dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.mchart__dot--1 { background: var(--viz-1); }
.mchart__dot--2 { background: var(--viz-2); }
.mchart__tip { position: absolute; top: 6px; z-index: 2; min-width: 150px; padding: 9px 11px; border-radius: 8px; background: var(--panel-hi); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 12.5px; pointer-events: none; }
.mchart__tip time { display: block; font: 500 10.5px/1.2 var(--font-mono); color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.mchart__tip div { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.mchart__tip b { font-weight: 650; font-variant-numeric: tabular-nums; }
.mchart__tip span { color: var(--muted); }
.mchart__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .mchart__body { grid-template-columns: 52px minmax(0, 1fr); }
  .mchart__x { margin-left: 62px; }
  .mchart__plot, .mchart__y { height: 150px; }
}

/* Deploy: the network the chosen size comes with (port speed follows the price). */
.net-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-deep); border: 1px solid var(--line-soft); }
.net-strip > span { display: inline-flex; align-items: center; gap: 7px; }
.net-strip .icon { width: 16px; height: 16px; color: var(--muted); }
.net-strip b { font-variant-numeric: tabular-nums; }

/* Uploaded brand logos: one for each theme, switched with it (the rail follows the theme too).
   The sign-in page's artwork is always dark and an invoice always paper-white, so those keep one. */
.brand__logos { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand__logo { display: block; max-width: 180px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.brand__logo--dark { display: none; }
.auth__art .brand__logo--light { display: none !important; }
.auth__art .brand__logo--dark { display: block !important; }
.invoice .brand__logo { max-height: 36px; }
.site__head .brand__sub { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }

/* Message log: filters, the e-mail's head, a desktop / phone preview and its history. */
.msg-filters .select { min-width: 200px; }
.msg-filters input[type="date"] { width: auto; height: 38px; }
.msg-filters__count { margin-left: auto; }
.msg-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head { margin-bottom: 12px; }
.msg-head__subject { font-weight: 650; font-size: 16px; line-height: 1.35; margin-bottom: 8px; overflow-wrap: anywhere; }
.msg-head__rows { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 3px 10px; margin: 0; font-size: 13px; }
.msg-head__rows dt { font: 500 10.5px/1.7 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.msg-head__rows dd { margin: 0; overflow-wrap: anywhere; }
.msg-preview__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.msg-preview__bar .chip .icon { width: 14px; height: 14px; }
.msg-preview__stage { background: #e8e6e0; padding: 0; display: flex; justify-content: center; }
.msg-preview__stage iframe { display: block; width: 100%; max-width: 100%; height: 64vh; border: 0; background: #fff; transition: width .2s ease; }
.msg-preview.is-phone .msg-preview__stage { padding: 16px 0; }
.msg-preview.is-phone iframe { border-radius: 18px; box-shadow: 0 0 0 8px #161513, var(--shadow-pop); }
.msg-more { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.msg-more .term { max-height: 340px; overflow: auto; white-space: pre-wrap; }
.msg-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msg-events li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 8px; font-size: 13px; }
.msg-events li > div { grid-column: 2 / -1; overflow-wrap: anywhere; }
.msg-events li .mono { justify-self: end; }

/* Sign-up step two: a card per code (e-mail, phone). */
.otp-cards { display: grid; gap: 12px; }
.otp-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-panel); }
.otp-card.is-done { background: var(--ok-wash); border-color: color-mix(in srgb, var(--ok) 35%, transparent); box-shadow: none; }
.otp-card__head { display: flex; align-items: center; gap: 12px; }
.otp-card__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--bg-deep); color: var(--ink-2); }
.otp-card.is-done .otp-card__icon { background: var(--ok); color: #fff; }
.otp-card__icon .icon { width: 17px; height: 17px; }
.otp-card__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.otp-card__who .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otp-form { display: flex; gap: 8px; margin-top: 12px; }
.otp-form input { flex: 1; min-width: 0; }
.otp-input { font-size: 22px !important; letter-spacing: .4em; text-align: center; font-weight: 600; }
.otp-input.has-error { border-color: var(--err); }
.otp-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; }
.otp-card__foot form { margin: 0; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--signal-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:disabled { color: var(--faint); cursor: default; text-decoration: none; }

/* Announcements: kind, audience, checks, reach. */
.kind-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 6px 0 16px; }
.kind-pick { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-hi); cursor: pointer; }
.kind-pick:has(input:checked) { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal) inset; background: var(--signal-wash); }
.kind-pick > span { display: flex; flex-direction: column; gap: 3px; }
.kind-pick input { margin-top: 3px; }
.audience-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; margin: 6px 0 10px; }
.audience-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 16px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
[data-show-when][hidden] { display: none !important; }
.checks { list-style: none; margin: 0; padding: 6px 0; }
.checks__item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; padding: 7px 16px; font-size: 13px; line-height: 1.45; }
.checks__item .icon { width: 16px; height: 16px; margin-top: 1px; }
.checks__item--ok .icon { color: var(--ok); }
.checks__item--warn .icon { color: var(--warn); }
.checks__item--err { background: var(--err-wash); }
.checks__item--err .icon { color: var(--err); }
.reach__n { font: 650 28px/1 var(--font-sans); font-stretch: 112%; font-variant-numeric: tabular-nums; margin-bottom: 4px; }

/* Staff: never suspend / never terminate (a server, or a whole customer). */
.exempt { display: grid; gap: 10px; }
.exempt__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exempt__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; }
.exempt__opts .check { align-items: flex-start; }
.exempt__foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.exempt__foot .field { flex: 1 1 220px; margin-bottom: 0; }
.exempt__foot .field:has(input[type="date"]) { flex: 0 1 190px; }

/* Staff signed in as a customer: always in view. */
.impersonating { position: sticky; top: 0; z-index: 45; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px var(--pad-inline); background: var(--warn-wash); border-bottom: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); font-size: 13px; color: var(--ink); }
.impersonating > .icon { width: 17px; height: 17px; color: var(--warn); flex: none; }
.impersonating > span { flex: 1 1 260px; min-width: 0; }
.impersonating .mono { font-size: 12px; color: var(--muted); }
.impersonating form { margin: 0; }

/* Server page: uptime for one calendar month, a bar per day (the columns are the month's days, set on the list). */
.uptime-days__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.uptime-days__pct { font: 650 30px/1 var(--font-sans); font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ok); margin-bottom: 6px; }
.uptime-days__pct.is-bad { color: var(--err); }
.uptime-days__pct.is-none { color: var(--muted); }
.uptime-days__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.uptime-days__legend span { display: inline-flex; align-items: center; gap: 6px; }
.uptime-days__key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.uptime-days__bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 38px; margin: 0; padding: 0; list-style: none; }
.uptime-days__bar { border-radius: 3px; min-width: 0; transition: transform .12s, filter .12s; cursor: default; }
.uptime-days__bar:hover { transform: scaleY(1.12); filter: brightness(1.08); }
.uptime-days__bar--ok, .uptime-days__key--ok { background: var(--ok); }
.uptime-days__bar--warn, .uptime-days__key--warn { background: var(--warn); }
.uptime-days__bar--err, .uptime-days__key--err { background: var(--err); }
.uptime-days__bar--off, .uptime-days__key--off { background: var(--line); }
.uptime-days__bar--none, .uptime-days__key--none { background: repeating-linear-gradient(135deg, var(--line-soft) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--line-soft); }
.uptime-days__bar--soon { background: transparent; box-shadow: inset 0 0 0 1px var(--line-soft); }
.uptime-days__bar.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.uptime-days__axis { display: flex; justify-content: space-between; margin-top: 7px; font: 500 10.5px/1 var(--font-mono); color: var(--muted); }
@media (max-width: 520px) { .uptime-days__bars { gap: 2px; height: 32px; } }

/* Settings: the sections, as tabs on every settings page and cards on its front page. */
.settings-tabs { margin-bottom: 18px; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tabs .tab { flex: none; font-size: 13.5px; white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.settings-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; text-decoration: none; }
.settings-card .icon { width: 22px; height: 22px; color: var(--signal); margin-top: 2px; }
.settings-card b { display: block; font-size: 15px; }
.settings-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.settings-card:hover { box-shadow: var(--shadow-pop); }
/* How many tasks run now, on the Task monitor's card and tab (its badge left the staff menu on 29 Oct 2026). */
.settings-count, .settings-card .settings-count {
  display: inline-block; margin: 0 0 0 7px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  background: var(--signal); color: #fff; font: 600 10.5px/1.4 var(--font-mono); letter-spacing: 0;
}
.settings-group { margin: 26px 0 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.settings-group:first-of-type { margin-top: 8px; }

/* Settings search */
.settings-hero { margin: 4px 0 22px; }
.settings-hero__tips { margin: 10px 2px 0; }
.settings-hero__tips kbd, .settings-search__kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--panel-hi); box-shadow: 0 1px 0 var(--line); font: 500 11px/1 var(--font-mono); color: var(--muted);
}
.settings-bar { margin: -4px 0 14px; }
.settings-search { position: relative; max-width: 760px; }
.settings-search--sm { max-width: 520px; }
.settings-search__box { position: relative; display: block; margin: 0; }
.settings-search__box > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.settings-search__box input { width: 100%; height: 42px; padding: 0 44px 0 42px; border-radius: 10px; }
.settings-search--lg .settings-search__box input {
  height: 58px; padding-left: 50px; font-size: 17px; border-radius: 14px; border-color: var(--line);
  background: var(--panel-hi); box-shadow: var(--shadow-panel);
}
.settings-search--lg .settings-search__box > .icon { left: 18px; width: 20px; height: 20px; }
.settings-search__box input:focus { border-color: var(--signal); box-shadow: var(--focus); }
.settings-search__kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.settings-search__box input:focus ~ .settings-search__kbd { opacity: 0; }
.settings-search__box input::-webkit-search-cancel-button { cursor: pointer; }
.settings-search__results {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); max-height: min(440px, 62vh); overflow: auto; padding: 6px;
  background: var(--panel-hi); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop);
  animation: results-in .14s ease-out;
}
@keyframes results-in { from { opacity: 0; transform: translateY(-4px); } }
.settings-results__head { padding: 8px 10px 6px; }
.settings-results__empty { padding: 18px 14px; color: var(--muted); font-size: 14px; }
.settings-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.settings-result__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--bg-deep); color: var(--signal-deep); }
.settings-result__icon .icon { width: 17px; height: 17px; }
.settings-result__text { min-width: 0; }
.settings-result__text b { display: block; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-result__text > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-result__go { font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); opacity: 0; }
.settings-result.is-active { background: var(--signal-wash); }
.settings-result.is-active .settings-result__icon { background: var(--signal); color: #fff; }
.settings-result.is-active .settings-result__go { opacity: 1; color: var(--signal-deep); }
.settings-result mark, .settings-found mark { background: none; color: var(--signal-deep); font-weight: 700; }
.settings-found { list-style: none; margin: 0; padding: 6px; }
.settings-found a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.settings-found a:hover { background: var(--bg-deep); }
.settings-found .icon { color: var(--signal); }
.settings-found b { display: block; }
/* The setting a search (or a #link) led to */
.is-found { animation: found 2.4s ease-out; border-radius: 8px; }
@keyframes found {
  0%, 30% { box-shadow: 0 0 0 3px var(--signal), 0 0 0 9px color-mix(in srgb, var(--signal) 22%, transparent); background: color-mix(in srgb, var(--signal-wash) 70%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; background: transparent; }
}

/* Server page: rename, main IPv4, Windows licence */
.rename { display: inline-block; margin: -4px 0 10px; }
.rename > summary { list-style: none; cursor: pointer; }
.rename > summary::-webkit-details-marker { display: none; }
.rename[open] > summary { color: var(--ink); background: var(--bg-deep); }
.rename__form { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-hi); max-width: 560px; }
.rename__form input { min-width: 260px; flex: 1; }
.choice-list { display: flex; flex-direction: column; gap: 6px; }
.choice-list .check { margin: 0; }
.licence { display: grid; gap: 14px; }
.licence__state { display: flex; gap: 14px; align-items: flex-start; }
.licence__state > .pill { flex: none; margin-top: 2px; }
.licence__form { padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.licence__form .field__label { display: block; margin-bottom: 6px; }

/* Support tickets */
.ticket-title { overflow-wrap: anywhere; }
.tickets-table tr.is-unread td { background: color-mix(in srgb, var(--signal-wash) 45%, transparent); }
.tickets-table tr.is-unread .row-link { font-weight: 700; }
.tickets-table td .icon { width: 13px; height: 13px; vertical-align: -2px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); vertical-align: 1px; }
.ticket-filters { margin-top: -6px; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.thread__msg { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-panel); max-width: 92%; }
.thread__msg.is-mine { margin-left: auto; background: var(--panel-hi); border-color: color-mix(in srgb, var(--signal) 30%, var(--line)); }
.thread__msg.is-staff { border-left: 3px solid var(--signal); }
.thread__msg.is-internal { background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 45%, transparent); border-style: dashed; }
.thread__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.thread__head .faint { margin-left: auto; }
.thread__body { font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.thread__body a { color: var(--signal-deep); }
.thread__event { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
.thread__event .icon { width: 14px; height: 14px; flex: none; }
.thread__event.is-internal { color: color-mix(in srgb, var(--warn) 65%, var(--ink)); }
.avatar--sm { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.avatar--staff { background: var(--signal); color: #fff; }
form.is-internal { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: var(--warn-wash); }
.ticket-mini { list-style: none; margin: 0; padding: 4px 0; }
.ticket-mini li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.ticket-mini li:first-child { border-top: 0; }
.ticket-mini a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 8px; }

/* Policy links: footer, sign-in pages, checkout */
.policy-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.policy-links a { color: var(--muted); text-decoration: none; }
.policy-links a:hover { color: var(--ink); text-decoration: underline; }
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 36px; padding: 16px 0 6px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }
.auth__policies { justify-content: center; margin-top: 26px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.agree input { margin-top: 3px; }
.agree a { color: var(--ink); }
.brand-slot { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.brand-slot:first-of-type { border-top: 0; }
.brand-slot__preview { height: 64px; border-radius: var(--radius-sm); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; }
.brand-slot__preview img { max-width: 100%; max-height: 56px; object-fit: contain; }
.brand-slot__preview--dark { background: #121210; border-color: #2e2d2a; }
.brand-slot__preview--light { background: #fbfaf7; }

/* Saved SSH keys to tick while deploying or rebuilding. */
.key-picks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.key-picks .check { margin: 0; }
.free-licence { color: var(--ok); font-weight: 600; }

/* ── Control panels (OS with control panel) ───────────────────────────────── */
.panel-logo { width: 26px; height: 26px; flex: none; object-fit: contain; border-radius: 6px; }
.panel-logo--sm { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; }
.panel-logo--lg { width: 44px; height: 44px; border-radius: 10px; padding: 6px; background: var(--panel); border: 1px solid var(--line-soft); box-shadow: var(--shadow-panel); }
/* Deploy: the system on the left | a free control panel on the right. */
/* The system step: Operating system | Control panel — two headings to switch between; one card per OS, its versions in a list. */
.step__head--tabs { flex-wrap: wrap; }
.os-tabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.os-tabs__sep { font-size: 19px; color: var(--faint); }
.os-tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 19px; font-weight: 680; font-stretch: 114%; letter-spacing: -.01em; color: var(--muted); transition: color .15s;
}
.os-tab:hover, .os-tab[aria-selected="true"] { color: var(--ink); }
.os-tab:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.os-tab .free-badge { align-self: center; padding: 4px 8px 4px 7px; font-size: 9.5px; }
.os-pane[hidden] { display: none; }
@container configurator (max-width: 560px) {
  .step__head--tabs { gap: 10px; }
  .os-tabs { gap: 4px 8px; }
  .os-tab, .os-tabs__sep { font-size: 15px; font-stretch: 104%; }
  .os-tab { gap: 6px; }
  .os-tab .free-badge { padding: 3px 6px; font-size: 8px; letter-spacing: .1em; }
  .os-tab .free-badge .icon { display: none; }
  .step__head--tabs .step__hint { flex-basis: 100%; margin-left: 0; }
}
.os-tile { position: relative; cursor: pointer; }
.os-tile:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.os-tile .os-tile__version { display: block; margin: 10px 0 2px; }
.os-tile__version select { width: 100%; height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; cursor: pointer; }
.os-tile__version--one { font-size: 13px; color: var(--muted); padding: 6px 0 4px; }
.os-tile.is-disabled select { pointer-events: none; }
.cp-search { position: relative; display: block; margin: 0 0 10px; }
.cp-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.cp-search input { width: 100%; height: 40px; padding-left: 38px; }
.cp-pick--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; padding: 0 8px 8px; max-height: 470px; align-content: start; }
.cp-pick--grid .cp-pick__group { grid-column: 1 / -1; margin: 0 -8px; padding-top: 10px; }
.cp-pick--grid .cp-opt { border: 1px solid var(--line-soft); border-radius: 8px; }
.cp-pick--grid .cp-opt + .cp-opt { border-top: 1px solid var(--line-soft); }
.cp-pick--grid .cp-opt--none { grid-column: 1 / -1; margin-top: 8px; }
.cp-pick__empty { grid-column: 1 / -1; margin: 0; padding: 22px 12px; text-align: center; font-size: 13px; color: var(--muted); }
.cp-opt[hidden], .cp-pick__group[hidden], .cp-pick__empty[hidden] { display: none; }
.cp-pick__head { display: flex; align-items: center; gap: 10px; }
.cp-pick__title { font-weight: 680; font-size: 16px; font-stretch: 108%; }
.cp-pick__sub { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.free-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px;
  font: 700 10.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #12b76a 0%, #0b8f63 55%, #0a7a55 100%);
  box-shadow: 0 6px 16px -8px rgba(18, 183, 106, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.free-badge .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.free-tag { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; font: 700 9.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #0b8f63; background: color-mix(in srgb, #12b76a 14%, transparent); vertical-align: 1px; }
.cp-pick { max-height: 336px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-panel); overscroll-behavior: contain; }
.cp-pick__group { position: sticky; top: 0; z-index: 1; padding: 9px 12px 5px; font: 500 10px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line-soft); }
.cp-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 40px 8px 12px; cursor: pointer; transition: background .12s; }
.cp-opt + .cp-opt { border-top: 1px solid var(--line-soft); }
.cp-opt:hover { background: var(--panel-hi); }
.cp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cp-opt__logo { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; color: var(--muted); }
.cp-opt__logo .icon { width: 17px; height: 17px; }
.cp-opt__name { font-weight: 600; font-size: 14px; }
.cp-opt__name small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.cp-opt__tick { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--signal); color: #fff; display: none; place-items: center; }
.cp-opt__tick .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.cp-opt:has(input:checked) { background: color-mix(in srgb, var(--signal) 9%, transparent); box-shadow: inset 3px 0 0 var(--signal); }
.cp-opt:has(input:checked) .cp-opt__tick { display: grid; }
.cp-opt:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: -2px; }
.cp-opt.is-disabled { opacity: .45; cursor: not-allowed; }
.cp-picked { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, #12b76a 35%, var(--line)); background: color-mix(in srgb, #12b76a 6%, var(--panel)); }
.cp-picked[hidden] { display: none; }
.cp-picked__logo { flex: none; display: block; }
.cp-picked__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-picked__name b { font-size: 15px; }
.cp-picked__text { font-size: 13px; }
.cp-picked__meta { font-size: 12px; color: var(--muted); }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.panel-tile { padding: 14px; }
.panel-grid__group { grid-column: 1 / -1; margin: 10px 0 -2px; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.panel-grid__group:first-of-type { margin-top: 4px; }
.table tr.table__group td { padding-top: 16px; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); background: transparent; }
.panel-tile .choice__top { padding-right: 24px; }
.panel-tile .choice__meta:not(.small) { text-transform: none; letter-spacing: 0; font: 13px/1.45 var(--font-sans); color: var(--muted); }
.panel-tile__none { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--bg-deep); color: var(--muted); flex: none; }
.panel-tile__none .icon { width: 15px; height: 15px; }
.panel-step__note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 6px; font-size: 13px; color: var(--muted); max-width: 820px; }
.panel-step__note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--signal); }

.cp-card { margin-bottom: 18px; border-color: color-mix(in srgb, var(--signal) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--signal) 25%, transparent), var(--shadow-panel); overflow: hidden; }
.cp-card__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, color-mix(in srgb, var(--signal-wash) 55%, transparent), transparent); }
.cp-card__name { font-size: 22px; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; margin-top: 2px; }
.cp-card--failed { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); box-shadow: var(--shadow-panel); }
.cp-card--failed .cp-card__head { background: linear-gradient(180deg, color-mix(in srgb, var(--err-wash) 70%, transparent), transparent); }
.cp-login { margin-bottom: 6px; }
.cp-login__url { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; }
.cp-login__url:hover { color: var(--signal-deep); }
.cp-card__actions { gap: 10px; margin-top: 12px; }
.cp-card__note { margin: 12px 0 0; max-width: 820px; }
.cp-progress .blocks { height: 12px; grid-template-columns: repeat(36, 1fr); max-width: none; margin: 0 0 12px; }
.cp-progress p + p { margin-top: 6px; }
.cp-access { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-deep); border: 1px solid var(--line-soft); display: grid; gap: 10px; }
.cp-access__state { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.cp-access__state > .icon { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--signal); }
.cp-access__state .small { display: block; margin-top: 2px; }
.cp-access__actions { gap: 8px; }
.rack-panel { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .cp-card__head { flex-wrap: wrap; }
  .cp-card__name { font-size: 19px; }
}

/* ── Staff: moving a server ───────────────────────────────────────────────── */
.migrate-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.migrate-target { padding: 14px; }
.migrate-target__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.migrate-ip { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-deep); border: 1px solid var(--line-soft); }

/* ── Staff reports: stacked money bars, share strips, B2B / B2C / Export tags, deltas ── */
.bchart__cols { position: absolute; inset: 0; display: flex; align-items: stretch; gap: 3px; padding: 0 2px; }
.bchart__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; }
.bchart__col:hover { background: var(--grid); }
.bchart__seg { display: block; width: 100%; flex: none; min-height: 1px; }
.bchart__seg:last-child { border-radius: 3px 3px 0 0; }
.bchart__seg--1 { background: var(--viz-1); }
.bchart__seg--2 { background: var(--viz-2); }
.bchart__seg--3 { background: var(--viz-3); }
.bchart__grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line-soft); }
.bchart .mchart__key { width: 9px; height: 9px; border-radius: 2px; }
.bchart__key--1 { background: var(--viz-1); }
.bchart__key--2 { background: var(--viz-2); }
.bchart__key--3 { background: var(--viz-3); }
.share { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line-soft); }
.share > i { display: block; height: 100%; }
.share > i + i { box-shadow: inset 2px 0 0 var(--panel); }
.share__1 { background: var(--viz-1); }
.share__2 { background: var(--viz-2); }
.share__3 { background: var(--viz-3); }
.share__age1 { background: var(--ok); }
.share__age2 { background: var(--warn); }
.share__age3 { background: #e8710a; }
.share__age4 { background: var(--err); }
.share__age5 { background: #9b1c14; }
.share__dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }
.stype { display: inline-block; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; padding: 3px 6px 2px; border-radius: 5px; vertical-align: 1px; white-space: nowrap; }
.stype--b2b { color: var(--viz-1); background: color-mix(in srgb, var(--viz-1) 13%, transparent); }
.stype--b2c { color: var(--viz-2); background: color-mix(in srgb, var(--viz-2) 13%, transparent); }
.stype--export { color: var(--viz-3); background: color-mix(in srgb, var(--viz-3) 14%, transparent); }
.delta { display: inline-block; margin-left: 8px; font: 600 11px/1 var(--font-mono); vertical-align: 0; white-space: nowrap; }
.delta--up { color: var(--ok); }
.delta--down { color: var(--err); }
.delta--flat, .delta--new { color: var(--muted); }
.report-period { flex-wrap: wrap; row-gap: 10px; }
.report-period input[type="date"] { width: 150px; }
.table tfoot td { font-weight: 650; border-top: 1px solid var(--line); background: var(--panel-hi); }
.table tr.is-credit td { color: var(--err); }
.table tr.is-credit td a { color: inherit; }
/* Report strips hold long money figures: they shrink to fit their cell instead of spilling over. */
.strip--money { --figure: clamp(17px, 1.7vw, 26px); }
.strip--money .strip__value { font-size: var(--figure); flex-wrap: wrap; row-gap: 4px; }
.strip--money .strip__value small { flex-basis: 100%; }
/* An LCD among them keeps its digits on the figures' baseline as they shrink (the figures' baseline sits .827
   of their size down, the digits' .875 under the LCD's 8px padding): no bigger than the figures allow, and
   only as far down as the figures are (26px figures: 20px digits, 4px down — .strip__cell .lcd). */
.strip--money .lcd__digits { font-size: min(20px, var(--figure) * .945); }
.strip--money .lcd { margin-top: max(0px, var(--figure) * .827 - 20px * .875); }
@media (max-width: 720px) {
  .strip--money { --figure: 18px; }
  .strip--money .lcd { max-width: 100%; padding-inline: 10px; }
  .report-period .inline-form { width: 100%; }
  .report-period input[type="date"] { flex: 1 1 0; width: auto; min-width: 0; }
}
/* A phone, two cells a row from 375px (about 135px each): no figure runs out of its cell and under the next one or
   past the strip's edge — a count in the millions, "Suspended", an LCD of a lakh and more (the Servers strip's wallet). */
@media (max-width: 420px) {
  .strip__value { font-size: 20px; }
  .strip--money .strip__cell { padding-inline: 14px; }
  .strip--money .lcd__digits { font-size: 15px; }
}

/* ── Reports → GST: the filing panel ─────────────────────────────────────── */
.filing__state { display: grid; gap: 14px; }
.filing__verdict { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ok-wash); }
.filing__verdict > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ok); }
.filing__verdict--warn { background: var(--warn-wash); }
.filing__verdict--warn > svg { color: var(--warn); }
.filing__verdict--err { background: var(--err-wash); }
.filing__verdict--err > svg { color: var(--err); }
.filing__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.filing__checks li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.filing__checks .pill { justify-self: start; }
.filing__docs { margin-top: 4px; overflow-wrap: anywhere; line-height: 1.7; }
.filing__tables .table td:first-child { min-width: 210px; }
@media (max-width: 640px) {
  .filing__checks li { grid-template-columns: 1fr; gap: 4px; }
  .filing__tables .table td:first-child { min-width: 0; }
}

/* ── Sign-in security: recovery codes, the authenticator set-up ──────────── */
.recovery__codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px; margin: 0; padding: 12px 16px 12px 36px; border-radius: 10px; background: var(--bg-deep); font-size: 15px; letter-spacing: .04em; }
.totp-setup__steps { margin: 0; padding-left: 20px; display: grid; gap: 18px; }
.totp-setup__steps > li::marker { font-weight: 600; color: var(--muted); }
.totp-setup__qr { display: block; width: max-content; margin: 10px 0 8px; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); line-height: 0; }
.totp-setup__qr svg { width: 192px; height: 192px; }
.totp-setup__key { font-size: 15px; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: var(--bg-deep); overflow-wrap: anywhere; }
.security__forms { border-top: 1px solid var(--line-soft); gap: 0; }
.security__forms > form + form { border-left: 1px solid var(--line-soft); }
.text-warn { color: var(--warn); }
@media (max-width: 720px) {
  .security__forms { grid-template-columns: 1fr; }
  .security__forms > form + form { border-left: 0; border-top: 1px solid var(--line-soft); }
}
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.announce-new { max-width: 860px; }

/* API keys: the secret shown once, the permission picker, the key list. */
.secret-once { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal) inset, var(--shadow-panel); }
.secret-once__key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-deep); border: 1px dashed var(--line); }
.secret-once__key code { flex: 1; min-width: 0; font-size: 14px; word-break: break-all; color: var(--ink); }
.scope-picker { display: grid; gap: 10px; margin: 6px 0 14px; }
.scope-picker__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.scope-picker__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.scope-picker__group { margin: 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); display: grid; gap: 8px; min-width: 0; }
.scope-picker__group legend { padding: 0 4px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scope-picker__group .check { align-items: flex-start; }
.scope-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.scope-chips code { font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--bg-deep); border: 1px solid var(--line-soft); }
tr.is-muted td { opacity: .55; }
tr.key-edit td { background: var(--bg-deep); padding: 16px; }

/* API documentation. */
.docs { min-height: 100vh; background: var(--bg); }
.docs__top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad-inline); background: color-mix(in srgb, var(--panel) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.docs__links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.docs__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 28px var(--pad-inline) 80px; max-width: 1400px; }
.docs__nav { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.docs__nav a { padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.docs__nav a:hover { background: var(--bg-deep); color: var(--ink); }
.docs__nav .label { margin: 4px 8px 6px; }
.docs__nav-group { font-weight: 650; margin-top: 8px; }
.docs__nav-op { font-size: 12.5px; padding-left: 14px !important; }
.docs__main { min-width: 0; max-width: 920px; }
.docs__main section { margin-bottom: 44px; scroll-margin-top: 80px; }
.docs__main h1 { font-size: 36px; font-weight: 720; font-stretch: 118%; letter-spacing: -.02em; margin: 6px 0 10px; }
.docs__main h2 { font-size: 24px; font-weight: 700; margin: 0 0 12px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.docs__main h3 { font-size: 17px; margin: 14px 0 6px; }
.docs__main p, .docs__main li { line-height: 1.65; color: var(--ink-2); }
.docs__main ul { padding-left: 20px; }
.docs__main code { font-family: var(--font-mono); font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--bg-deep); }
.docs__main pre.term code, .docs__main .table code { background: none; padding: 0; }
.docs__lede { font-size: 17px; }
.docs__main .term { white-space: pre-wrap; word-break: break-word; }
.op { padding: 18px 0 22px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.op__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op__head .pill .icon { width: 12px; height: 12px; }
.op__path { font-size: 15px !important; font-weight: 600; background: none !important; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
/* The Permissions table's endpoints: one block, so as a card on a phone they wrap beside their label instead of
   each link being its own sliver of a column; there a path breaks after a "/" (<wbr>). As a table the column keeps
   the width of its paths, as before. */
.docs__eps { min-width: 0; }
table:not(.is-stacked) .docs__eps wbr { display: none; }
.op__table { margin: 6px 0 14px; }
.op__req { font: 600 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--err); }
.op__examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.op__examples .term { max-height: 360px; overflow: auto; font-size: 12px; }
.method { display: inline-block; min-width: 52px; padding: 3px 7px; border-radius: 5px; text-align: center; font: 700 10.5px/1.3 var(--font-mono); letter-spacing: .04em; color: #fff; }
.method--get { background: #12805c; }
.method--post { background: #1f6feb; }
.method--patch { background: #9a6700; }
.method--put { background: #9a6700; }
.method--delete { background: #cf222e; }
.docs__nav .method { min-width: 44px; font-size: 9px; padding: 2px 4px; }
.docs__foot { border-top: 1px solid var(--line-soft); padding-top: 16px; }
@media (max-width: 900px) {
  .docs__body { grid-template-columns: minmax(0, 1fr); }
  .docs__nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .docs__nav-op { display: none !important; }
}

/* ── Identity verification: the documents DigiLocker shared (staff) ───────── */
.kyc-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kyc-doc { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-deep); color: var(--ink); text-decoration: none; max-width: 100%; }
.kyc-doc:hover { border-color: var(--signal); }
.kyc-doc img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--line); }
.kyc-doc svg { width: 18px; height: 18px; margin: 0 4px; }
.kyc-doc > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }

/* Files on a ticket message. */
.thread__files { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.thread__files li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.thread__files a { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-deep); text-decoration: none; min-width: 0; }
.thread__files a:hover span:first-of-type { text-decoration: underline; }
.thread__files a span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.thread__files .icon { width: 14px; height: 14px; flex: none; }

/* Disks page: moving a disk of one's own (a toggle in its row) */
.disk-move { display: inline-block; vertical-align: middle; }
.disk-move > summary { list-style: none; cursor: pointer; }
.disk-move > summary::-webkit-details-marker { display: none; }
.disk-move[open] > summary { color: var(--ink); background: var(--bg-deep); }
.disk-move form { flex-wrap: wrap; }

/* Sortable columns: the heading is a link (paged lists, sorted on the server)
   or a button (whole tables, sorted in the browser). The arrow shows the
   direction of the column the list is sorted by; others show a faint pair. */
.table th .th-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.table th .th-sort:hover, .table th .th-sort:focus-visible { color: var(--ink); }
.table th .th-sort:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.table th.num .th-sort { flex-direction: row-reverse; }
.th-sort__arrow { position: relative; width: 8px; height: 11px; flex: none; }
.th-sort__arrow::before, .th-sort__arrow::after { content: ''; position: absolute; left: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .3; }
.th-sort__arrow::before { top: 0; border-bottom: 4px solid currentColor; }
.th-sort__arrow::after { bottom: 0; border-top: 4px solid currentColor; }
.th-sort:hover .th-sort__arrow::before, .th-sort:hover .th-sort__arrow::after { opacity: .6; }
.th-sort.is-asc, .th-sort.is-desc { color: var(--ink); }
.th-sort.is-asc .th-sort__arrow::before { opacity: 1; border-bottom-color: var(--signal); }
.th-sort.is-asc .th-sort__arrow::after { opacity: 0; }
.th-sort.is-desc .th-sort__arrow::after { opacity: 1; border-top-color: var(--signal); }
.th-sort.is-desc .th-sort__arrow::before { opacity: 0; }
/* On cards (no headings), the same choice as a picker above the list. */
.table-sortbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.table-sortbar[hidden] { display: none; }
.table-sortbar__label { font: 500 10px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.table-sortbar .select { flex: 1; max-width: 320px; }
.table-sortbar .select select { max-width: none; }

/* Proxmox nodes: one row each — name, servers, whether it takes orders, and
   three meters (what the host really uses), with what is sold underneath. */
.node-sum { padding: 16px 18px; }
.node-sum + .node-sum { border-top: 1px solid var(--line-soft); }
.node-sum__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.node-sum__name { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; margin-right: auto; }
.node-sum__name strong { font-size: 15px; }
.node-sum__meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.node-sum__note { display: block; margin-top: 6px; font: 500 11px/1.3 var(--font-mono); color: var(--muted); }
.node-sum__note.is-over { color: color-mix(in srgb, var(--err) 75%, var(--ink)); }
.node-sum__error { margin: 12px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--err); }
.node-sum__error .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.node-sum__sync { display: contents; }
@media (max-width: 720px) {
  .node-sum__meters { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .node-sum__sync .btn { margin-left: auto; }
}
/* The overview's node table: a small meter and its percentage. */
.node-table__meter { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.node-table__meter .meterbar { flex: 1; height: 6px; }
table.table.is-stacked .node-table__meter { flex: 0 0 55%; min-width: 0; } /* as a card on a phone: still a readable bar */
.strip--four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.strip__cell > .label { display: block; } /* the figure always starts on its own line, however wide the cell */

/* ── Tunnels (customer) ───────────────────────────────────────────────────── */
/* Six tabs: on a narrow screen they scroll sideways (like the settings tabs). */
.tunnel-tabs { overflow-x: auto; scrollbar-width: none; }
.tunnel-tabs::-webkit-scrollbar { display: none; }
.tunnel-tabs .tab { flex: none; white-space: nowrap; }
/* Get started: one system's commands at a time, each with its copy button in the corner. */
.tunnel-os { margin-bottom: 14px; }
.tunnel-os__pane[hidden] { display: none; }
.tunnel-os__pane > p { margin: 0 0 8px; }
.tunnel-cmd { position: relative; margin-bottom: 12px; }
.tunnel-cmd .term { padding-right: 46px; word-break: normal; overflow-wrap: anywhere; } /* breaks at spaces first */
.tunnel-cmd .copy-btn { position: absolute; top: 8px; right: 8px; color: #d6d3cb; }
.tunnel-cmd .copy-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tunnel-keys { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.tunnel-keys li { padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel-hi); min-width: 0; overflow-wrap: anywhere; }
/* Live tunnels: a refresh that failed says so inside the panel. */
.tunnel-live__error { margin: 12px 16px; }
/* A tunnel's counts under its traffic (staff's and the customer's live lists): they wrap between the parts,
   the "·" kept on the first one's line. */
.table .num .tunnel-live__counts { white-space: normal; }
/* The customer's list: a public address gets room for two lines at most — where the columns can't give it
   that (a tablet), the list is cards. */
[data-tunnels-live] .table:not(.is-stacked) td.tunnel-live__address { min-width: 230px; }
/* Domains: name + our tunnel domain on one line; each domain with its DNS records under it. */
.tunnel-sub { display: flex; align-items: center; gap: 6px; }
.tunnel-sub input { flex: 1; min-width: 0; }
.tunnel-sub .select { flex: 1.4; min-width: 0; }
.tunnel-sub .select select { width: 100%; }
.tunnel-sub__dot, .tunnel-sub__suffix { color: var(--muted); white-space: nowrap; }
.tunnel-domain { padding: 14px 18px; }
.tunnel-domain + .tunnel-domain { border-top: 1px solid var(--line-soft); }
.tunnel-domain__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tunnel-domain__name { font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.tunnel-domain__actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tunnel-domain__dns { margin-top: 12px; }
.tunnel-domain__dns > p { margin: 8px 0; }
.tunnel-domain__dns .table-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.tunnel-dns td { vertical-align: middle; }
.tunnel-dns__cell { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; } /* a value and its copy button, kept together */
.tunnel-dns__value { overflow-wrap: anywhere; min-width: 0; }
/* A feature the plan doesn't include: which plans have it. */
.tunnel-upgrade { margin-bottom: 18px; border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); background: linear-gradient(180deg, var(--signal-wash), transparent 75%), var(--panel); }
.tunnel-upgrade .panel__body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tunnel-upgrade__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--signal-wash); color: var(--signal-deep); flex: none; }
.tunnel-upgrade__text { flex: 1; min-width: 220px; }
.tunnel-upgrade__text h2 { font-size: 17px; font-weight: 650; font-stretch: 110%; margin: 0; }
.tunnel-upgrade__text p { margin: 4px 0 0; }
/* Usage */
.tunnel-month__name { font-weight: 650; font-stretch: 110%; padding: 0 6px; }
.tunnel-meter { height: 12px; border-radius: 6px; }
/* Plans side by side; the customer's own outlined. */
.tunnel-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.tunnel-plans > .panel + .panel { margin-top: 0; }
/* Every card's head (room for a pill) and foot (room for a small button) the same height: they line up. */
.tunnel-plans .panel__head { min-height: 55px; }
.tunnel-plans .panel__foot { min-height: 57px; }
.tunnel-plan { display: flex; flex-direction: column; }
.tunnel-plan .panel__body { flex: 1; }
.tunnel-plan.is-current { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal) inset, var(--shadow-panel); }
.tunnel-plan__price { font-size: 26px; font-weight: 680; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tunnel-plan__price small { font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; font-stretch: 100%; }
.tunnel-plan__limits { margin: 14px 0 0; }
.tunnel-plan__limits > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.tunnel-plan__limits dt { color: var(--muted); }
.tunnel-plan__limits dd { margin: 0; font-weight: 600; text-align: right; }
.tunnel-plan__limits .is-off dd { color: var(--faint); font-weight: 400; }
@media (max-width: 720px) {
  .tunnel-domain { padding: 12px 14px; }
  .tunnel-domain__actions { margin-left: 0; }
  .tunnel-upgrade .panel__body { align-items: flex-start; } /* wrapped: the icon stays by the heading */
}
/* ── /Tunnels (customer) ──────────────────────────────────────────────────── */

/* ── Tunnels (staff) ──────────────────────────────────────────────────────── */
/* A tunnel server's install log: taller than a task log, the times dimmed. */
.tunnel-log { min-height: 160px; max-height: 520px; }
.tunnel-log__time { color: #8c877d; }
/* Its lines: the control server's own steps (cp) bright, what the server printed (remote, "> …") dimmer. */
.tunnel-log__line--cp { color: #e9e6de; }
.tunnel-log__line--remote { color: #a9a499; }
/* The overview's "Needs attention": one line per thing, a small heading over each table — all on the panel
   head's 18px line (a flush panel's bodies have no padding of their own, hence the > rules). */
.tunnel-attention { margin-bottom: 22px; }
.tunnel-attention__row + .tunnel-attention__row, .tunnel-attention .table-wrap + .tunnel-attention__row { border-top: 1px solid var(--line-soft); }
.tunnel-attention__row { overflow-wrap: anywhere; }
.panel--flush > .tunnel-attention__row { padding: 10px 18px; }
.tunnel-attention__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line-soft); }
.panel--flush > .tunnel-attention__head { padding: 12px 18px 6px; }
.tunnel-attention .table:not(.is-stacked) :is(th, td):first-child { padding-left: 18px; }
.tunnel-attention .table:not(.is-stacked) :is(th, td):last-child { padding-right: 18px; }
.tunnel-attention td { vertical-align: baseline; } /* customer, what's wrong and when start on one line */
/* What's wrong: the pill, then the message with what to do under it; on a card, under its label, full width. */
.tunnel-attention__what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tunnel-attention__what > .pill { flex: none; }
.tunnel-attention__what > .tunnel-attention__text { flex: 1 1 260px; }
.tunnel-attention__text { min-width: 0; overflow-wrap: anywhere; }
.tunnel-attention__text > * { margin: 0; }
.tunnel-attention__text > * + * { margin-top: 4px; }
.tunnel-attention table.table.is-stacked tr { padding-inline: 18px; }
table.table.is-stacked td.tunnel-attention__cell { flex-direction: column; align-items: stretch; gap: 4px; text-align: left; }
/* A server's Disable / Delete forms: what it does, the "may be hacked" box, the button. */
.tunnel-danger + .tunnel-danger { border-top: 1px dashed var(--line-soft); }
.tunnel-danger .check { font-size: 13px; margin-bottom: 10px; }
/* The add-domain form: Cloudflare token or manual records (the SSH login picker uses the node form's rules). */
[data-modes]:has(input[name="dns_provider"][value="cloudflare"]:checked) [data-mode="manual"],
[data-modes]:has(input[name="dns_provider"][value="manual"]:checked) [data-mode="cloudflare"] { display: none; }
/* A line of text in a flush panel (no table to show); a hint led by a small icon. */
.panel--flush > .tunnel-note { padding: 16px 18px; }
.tunnel-hint { display: flex; gap: 8px; align-items: flex-start; }
.tunnel-hint > .icon { width: 15px; height: 15px; margin-top: 2px; }
/* A problem in words: the icon and its lead in the error colour, the rest in ink (readable). */
.tunnel-hint--err { color: var(--ink-2); }
.tunnel-hint--err > .icon { color: var(--err); }
.tunnel-hint--err b { color: color-mix(in srgb, var(--err) 75%, var(--ink)); }
/* Plans as cards, side by side (the grid is the customer's .tunnel-plans; each card a .tunnel-plan). */
.tunnel-plans__name { font-size: 20px; font-stretch: 112%; margin: 0; }
.tunnel-plans__price { font: 600 15px/1.4 var(--font-mono); margin: 4px 0 12px; }
.tunnel-plans .panel__foot { flex-wrap: wrap; gap: 6px; }
.tunnel-plans__end { margin-left: auto; }
/* A customer's Tunnels card: what the tunnel server said, set off by a dashed line. */
.tunnel-card__part { border-top: 1px dashed var(--line-soft); }
.tunnel-card__domains { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.tunnel-card__domains li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
/* Settings: under each setting, where its value comes from and when it applies (pills), then a line each for
   what runs now, what server.yml says and who changed it last. */
.tunnel-setting__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tunnel-setting__line { display: block; margin-top: 4px; overflow-wrap: anywhere; }
/* ── end Tunnels (staff) ──────────────────────────────────────────────────── */

/* ── Own servers (staff) ──────────────────────────────────────────────────── */
/* The add form: the password field only with "With the password". */
[data-modes]:has(input[name="mode"][value="adopt"]:checked) [data-mode="password"] { display: none; }
/* A run's log: taller than a task log, the times dimmed, each line coloured by its level. */
.hostlog { min-height: 120px; max-height: 520px; }
.hostlog__time { color: #8c877d; }
.hostlog__line--info { color: #e9e6de; }
.hostlog__line--ok { color: #45f0a0; }
.hostlog__line--warn, .hostlog__line--wait { color: #f5b544; }
.hostlog__line--error { color: #ff7a6b; }
.hostlog__line--remote { color: #a9a499; }
/* The terminal page: the screen fills what is left of the window under the bar. */
.content--terminal { display: flex; flex-direction: column; padding-bottom: 20px; }
.page-head--tight { margin-bottom: 12px; }
.term-confirm { max-width: 520px; }
.term-page { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 420px; height: calc(100vh - 210px); border-radius: 10px; overflow: hidden; background: #0b0b0a; border: 1px solid #2c2b28; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7); }
.term-page__bar { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-bottom: 1px solid #2c2b28; color: #c9c5bb; background: #121210; }
.term-page__meta { color: #8c877d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.term-page__screen { flex: 1; min-height: 0; padding: 6px 4px 4px 8px; }
.term-page__screen.is-ended { opacity: .35; filter: grayscale(1); }
.term-page__ended { position: absolute; inset: 44px 0 0; display: grid; place-content: center; text-align: center; gap: 8px; color: #e9e6de; background: rgba(11, 11, 10, .72); padding: 20px; }
.term-page__ended h2 { color: #fff; margin: 0; }
.term-page__ended p { margin: 0 auto 8px; max-width: 520px; color: #c9c5bb; }
.term-page__ended .big-icon { margin: 0 auto; }
@media (max-width: 720px) { .term-page { height: calc(100vh - 170px); } .term-page__meta { display: none; } }
/* Own servers is a Settings section: the settings tabs above the terminal take about 60px of the window. */
.settings-tabs ~ .term-page { height: calc(100vh - 270px); }
@media (max-width: 720px) { .settings-tabs ~ .term-page { height: calc(100vh - 230px); } }

/* ── CPU cores (staff, VDS core pinning) ─────────────────────────────────────── */
/* The node's layout map: one cell per physical core, coloured by its role, NUMA node by NUMA node. */
.cpu-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); }
.cpu-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -1px; margin-right: 3px; }
.cpu-numa { padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.cpu-numa:first-of-type { border-top: 0; }
.cpu-numa__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.cpu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.cpu-core { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 7px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-hi); font-size: 12px; line-height: 1.25; }
.cpu-core__key { font-weight: 650; }
.cpu-core__cpus { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.cpu-core__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpu-core__hold { align-self: flex-start; font: 600 10px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 0 5px; border-radius: 4px; background: var(--warn-wash); color: color-mix(in srgb, var(--warn) 65%, var(--ink)); }
.cpu-core--host, .cpu-key--host { background: var(--bg-deep); border-style: dashed; }
.cpu-core--shared, .cpu-key--shared { background: var(--panel-hi); }
.cpu-core--free, .cpu-key--free { background: var(--ok-wash); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.cpu-core--held, .cpu-key--held { background: var(--busy-wash); border-color: color-mix(in srgb, var(--busy) 40%, transparent); }
.cpu-core--hold, .cpu-key--hold { background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.cpu-core--missing, .cpu-key--missing { background: var(--err-wash); border-color: color-mix(in srgb, var(--err) 40%, transparent); opacity: .85; }
.cpu-core.has-problem { box-shadow: 0 0 0 2px color-mix(in srgb, var(--err) 55%, transparent); }
@media (max-width: 720px) { .cpu-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); } .cpu-numa { padding: 12px; } }

/* ── Object Storage (/storage): plan cards, the traffic meter in two parts (the month's allowance, then top-ups) ── */
.os-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.os-plan { border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.os-plan.is-picked { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.os-plan__price { font: 600 20px/1.2 var(--font-mono); }
.os-plan__price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.os-meter { display: flex; height: 8px; border-radius: 4px; background: var(--bg-deep); border: 1px solid var(--line-soft); overflow: hidden; }
.os-meter i { display: block; height: 100%; background: var(--c, var(--signal)); }
.os-meter i + i { opacity: .65; }
.os-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.os-meters .label { display: block; margin-bottom: 6px; }
.os-list-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.os-secret { word-break: break-all; }
@media (max-width: 720px) { .os-meters, .os-list-row { grid-template-columns: minmax(0, 1fr); } }
