/* Lumcells Cloud console: the one stylesheet.
 *
 * 1. Tokens: every colour, space, radius, type size and shadow the console uses. Nothing below
 *    this block names a colour by its value. Dark mode changes the tokens and nothing else.
 * 2. Base and layout (header, sidebar, main, footer).
 * 3. Components: cards, tables, badges, buttons, forms, notices, empty states, help toggles,
 *    choice cards, icon lines, copy boxes, the server header.
 * 4. The kit's own few helpers (muted, strong, mono).
 *
 * No font, image or script is loaded from anywhere: the console works with no Internet in the browser.
 */

/* ------------------------------------------------------------------ 1. tokens */
:root {
  color-scheme: light dark;

  /* The brand accent, one scale. */
  --brand-50: #eef1ff;
  --brand-100: #dfe4ff;
  --brand-200: #c3cbff;
  --brand-300: #9da6fb;
  --brand-400: #7a80f4;
  --brand-500: #5f61ea;
  --brand-600: #4b49d6;
  --brand-700: #3d3bb3;
  --brand-800: #323189;
  --brand-900: #272763;

  /* Neutrals. */
  --ink: #131722;
  --ink-2: #3b4252;
  --ink-3: #5d6678;
  --ink-4: #8a93a5;
  --line: #e2e5ec;
  --line-2: #cfd4de;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef0f5;

  /* Meaning: soft background, border, text, solid. */
  --green-bg: #e9f7ef;  --green-line: #b4e0c5;  --green-ink: #17663a;  --green: #1f9d57;
  --red-bg: #fdecee;    --red-line: #f3b9c1;    --red-ink: #a3182d;    --red: #d5364c;
  --amber-bg: #fdf4df;  --amber-line: #efd38d;  --amber-ink: #7a4d05;  --amber: #d99a12;
  --blue-bg: #e9f2fd;   --blue-line: #b5d2f5;   --blue-ink: #17508f;   --blue: #2a78d6;

  --accent: var(--brand-600);
  --accent-hover: var(--brand-700);
  --accent-ink: var(--brand-700);
  --accent-soft: var(--brand-50);
  --accent-soft-line: var(--brand-200);
  --on-accent: #ffffff;
  --focus: var(--brand-400);

  /* Space (4px steps). */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;

  /* Radii. */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 999px;

  /* Type. */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-lg: 16px; --t-xl: 20px; --t-2xl: 24px; --t-3xl: 32px;

  /* Shadows. */
  --shadow-1: 0 1px 2px rgba(19, 23, 34, .05);
  --shadow-2: 0 1px 2px rgba(19, 23, 34, .05), 0 4px 12px rgba(19, 23, 34, .06);
  --shadow-3: 0 8px 28px rgba(19, 23, 34, .14);

  /* Charts: axis text, grid, and the two series colours (told apart by hue and by lightness). */
  --chart-ink: #5d6678;
  --chart-grid: #e2e5ec;
  --chart-1: #2a78d6;
  --chart-2: #c2571a;

  --header-h: 56px;
  --side-w: 236px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-50: #1b1d3a;
    --brand-100: #23264d;
    --brand-200: #33377a;
    --brand-300: #4a4fb0;
    --brand-400: #6f74ea;
    --brand-500: #7f84f2;
    --brand-600: #6468e6;
    --brand-700: #a9adff;
    --brand-800: #c5c8ff;
    --brand-900: #e1e3ff;

    --ink: #eceef4;
    --ink-2: #c9cedb;
    --ink-3: #a0a8ba;
    --ink-4: #7b8498;
    --line: #2a2f3d;
    --line-2: #3a4052;
    --bg: #0e1118;
    --surface: #161a24;
    --surface-2: #1b202c;
    --surface-3: #232937;

    --green-bg: #11291c;  --green-line: #1f5236;  --green-ink: #7fdba6;  --green: #2fb46a;
    --red-bg: #33151a;    --red-line: #6b2732;    --red-ink: #ff9aa8;    --red: #e2566a;
    --amber-bg: #2e2410;  --amber-line: #5f4a17;  --amber-ink: #f3cd74;  --amber: #e0a52a;
    --blue-bg: #12233a;   --blue-line: #234a7a;   --blue-ink: #93c2f7;   --blue: #4a93e6;

    --accent: #5b5fe0;
    --accent-hover: #6f73ea;
    --accent-ink: #b3b6ff;
    --accent-soft: #1d2040;
    --accent-soft-line: #3a3f86;
    --focus: #8f93ff;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35);
    --shadow-3: 0 10px 30px rgba(0, 0, 0, .6);

    --chart-ink: #a0a8ba;
    --chart-grid: #2a2f3d;
    --chart-1: #5aa2f0;
    --chart-2: #f0a35e;
  }
}

/* ------------------------------------------------------------------ 2. base and layout */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font: 400 var(--t-md)/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); border-radius: var(--r-sm); padding: 1px 5px; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); font-size: var(--t-xs); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { vertical-align: middle; }
time { white-space: nowrap; }
time[title] { cursor: help; text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.os-mark { width: 28px; height: 28px; flex: none; border-radius: var(--r-md); }
.os-mark.sm { width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; }

/* Skip link: the first thing the Tab key reaches. */
.skip-link { position: absolute; left: var(--s2); top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: var(--s2); text-decoration: none; }
main:focus { outline: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; gap: var(--s4);
  padding: 0 var(--s4); background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 650; font-size: var(--t-lg); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--accent-ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.product-switcher { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); }
.product-switcher:empty { display: none; }
.top-nav { display: flex; gap: var(--s1); font-size: var(--t-md); }
.top-nav a { padding: 6px 10px; border-radius: var(--r-md); color: var(--ink-3); }
.top-nav a:hover, .top-nav a[aria-current] { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.grow { flex: 1 1 auto; }
.nav-toggle { display: none; place-items: center; width: 38px; height: 38px; margin-left: -6px; padding: 0; cursor: pointer; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-2); background: var(--surface); }
.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle:hover { background: var(--surface-3); }
.side-head { display: none; }
.side-shade { display: none; }
.org-switch { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--ink-3); }
.org-switch select { max-width: 16rem; padding: 6px 28px 6px 10px; }

.menu { position: relative; }
.menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; padding: 5px 10px 5px 6px;
  border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); font-size: var(--t-sm); color: var(--ink-2); user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--surface-3); }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: var(--t-xs); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: var(--s2); z-index: 30;
}
.menu-who { padding: var(--s2) var(--s3) var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); }
.menu-who .name { font-weight: 600; }
.menu-who .mail { font-size: var(--t-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: var(--s2); width: 100%; padding: 7px var(--s3); border: 0; background: none; border-radius: var(--r-md);
  color: var(--ink-2); font-size: var(--t-md); text-align: left; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.menu-sep { height: 1px; background: var(--line); margin: var(--s2) 0; }

/* Sidebar and main */
.shell { display: flex; min-height: calc(100vh - var(--header-h) - 40px); }
.side { width: var(--side-w); flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: var(--s4) var(--s3); font-size: var(--t-md); }
.side-group { margin-bottom: var(--s4); }
.side-label { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2); margin-bottom: var(--s1); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4); }
.side-label.staff { color: var(--accent-ink); }
.side-link { display: block; padding: 6px var(--s2) 6px 30px; border-radius: var(--r-md); color: var(--ink-2); }
.side-link:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.side-link.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav-blocked { margin-left: 4px; padding: 1px 5px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--ink-3); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
main { flex: 1 1 auto; min-width: 0; padding: var(--s6); }
.page { max-width: 1280px; }
.page.narrow { max-width: 420px; margin: var(--s7) auto 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.page-head h1 { font-size: var(--t-2xl); font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.page-title { display: flex; align-items: flex-start; gap: var(--s3); min-width: 0; flex: 1 1 20rem; }
.page-title-text { min-width: 0; flex: 1; }
.page-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--accent-soft-line); color: var(--accent-ink); }
.page-ic .ic { width: 22px; height: 22px; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; }
.narrow-mark { display: grid; place-items: center; margin-bottom: var(--s4); }
.narrow-mark .brand-mark { width: 48px; height: 48px; }
.page.narrow .page-head { justify-content: center; text-align: center; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (min-width: 1024px) {
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two > .span-2 { grid-column: span 2; }
}
.block { min-width: 0; }
.site-footer { height: 40px; display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s4); background: var(--surface); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-3); }
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ 3. components */

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card.pad { padding: var(--s4); }
.card-title { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-md); font-weight: 650; color: var(--ink); }
.card-title .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.card > .card-title, .card > form > .card-title { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.card.pad > .card-title, .form > .card-title { margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s1); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.card.pad > .card-title { margin-bottom: var(--s4); }
.card-foot { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.scroll-x { overflow-x: auto; }

/* A titled card that holds several blocks (the server page). */
.group { display: flex; flex-direction: column; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.group-head h2 { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-md); font-weight: 650; }
.group-head h2 .ic { color: var(--accent-ink); width: 18px; height: 18px; }
.group-head a { font-size: var(--t-sm); }
.group-body { padding: var(--s2) var(--s4) var(--s4); }
.group-body > .block { padding-top: var(--s3); }
.group-body > .block + .block { border-top: 1px solid var(--line); margin-top: var(--s3); }
.group-body .card { border: 0; box-shadow: none; background: none; border-radius: 0; }
.group-body .card.pad, .group-body .card > form.form { padding: 0; }
.group-body .card-title, .group-body .card > .card-title, .group-body .card.pad > .card-title, .group-body .form > .card-title { margin: 0; padding: 0 0 var(--s2); border: 0; font-size: var(--t-sm); color: var(--ink-2); }
.group-body .card-title .ic { display: none; }
.group-body .tbl th:first-child, .group-body .tbl td:first-child { padding-left: 0; }
.group-body .tbl th:last-child, .group-body .tbl td:last-child { padding-right: 0; }
.group-body .kv { padding: 0; }
.group-body .tbl td { overflow-wrap: anywhere; }
.group-body .tbl td:first-child { white-space: nowrap; }
.group-body .empty { margin: 0; }
.group.danger { border-color: var(--red-line); }
.group.danger > .group-head { background: var(--red-bg); border-bottom-color: var(--red-line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.group.danger > .group-head h2, .group.danger > .group-head h2 .ic { color: var(--red-ink); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-md); }
.tbl th { text-align: left; padding: 10px var(--s4); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.card > .scroll-x:first-child .tbl th:first-child { border-top-left-radius: var(--r-lg); }
.card > .scroll-x:first-child .tbl th:last-child { border-top-right-radius: var(--r-lg); }
.group-body .tbl th { background: none; }
.tbl td { padding: 10px var(--s4); vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; }

/* Empty states */
.empty { margin: var(--s4); padding: var(--s6) var(--s4); border: 1px dashed var(--line-2); border-radius: var(--r-md); text-align: center; color: var(--ink-3); font-size: var(--t-md); display: grid; justify-items: center; gap: var(--s2); }
.empty-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-full); background: var(--surface-3); color: var(--ink-4); }
.empty-ic .ic { width: 22px; height: 22px; }
.empty p { max-width: 38rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface-3); color: var(--ink-2); font-size: var(--t-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; opacity: .8; flex: none; }
.badge.plain::before { display: none; }
.badge-green { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.badge-red { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.badge-amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.badge-blue { background: var(--blue-bg); border-color: var(--blue-line); color: var(--blue-ink); }
.badge-brand { background: var(--accent-soft); border-color: var(--accent-soft-line); color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: var(--t-md); font-weight: 550; line-height: 1.35;
  cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-1); transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(.93); background: var(--green); color: #fff; }
.btn-danger { border-color: var(--red-line); color: var(--red-ink); }
.btn-danger:hover { background: var(--red-bg); color: var(--red-ink); }
.btn-warn { border-color: var(--amber-line); color: var(--amber-ink); }
.btn-warn:hover { background: var(--amber-bg); color: var(--amber-ink); }
.btn-sm { padding: 4px 9px; font-size: var(--t-sm); }
.btn-lg { padding: 10px 18px; font-size: var(--t-lg); }
form.inline { display: inline; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* Forms */
.form { padding: var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (min-width: 761px) { .tbl .badge { white-space: nowrap; } }
/* A long word without a break (a reverse DNS name, a task id) in the last column wraps there and
   does not squeeze the other columns to one letter per line. */
.tbl td:last-child { overflow-wrap: anywhere; }
@media (min-width: 761px) { .tbl .person .strong, .tbl .named > .strong { overflow-wrap: normal; word-break: normal; } }
.form > .btn { justify-self: end; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s2); }
.field { display: block; font-size: var(--t-md); min-width: 0; }
.field > label { display: block; }
.field > label.check { display: flex; }
.field .label { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.field .label code { font-weight: 400; color: var(--ink-3); }
.field .now { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--ink-2); }
.form-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.form-inline > .card-title, .form-inline > .help, .form-inline > .lead { grid-column: 1 / -1; }
.form-inline .field + .field { grid-column: 1; }
/* The button stands beside the fields, over exactly the rows they take (one or two): a span over
   rows that do not exist would add their gaps as empty space under the field. */
.form-inline .form-actions { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
.form-inline:not(:has(> .card-title)) .form-actions { grid-row: 1 / span 2; }
@media (min-width: 761px) {
  .form-inline:not(:has(.field ~ .field)) .form-actions { grid-row: 2 / span 1; }
  .form-inline:not(:has(> .card-title)):not(:has(.field ~ .field)) .form-actions { grid-row: 1 / span 1; }
}
@media (min-width: 761px) {
  .form-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); align-items: start; }
  .form-cols > .card-title, .form-cols > .help, .form-cols > .lead, .form-cols > .form-actions, .form-cols > .field:has(textarea) { grid-column: 1 / -1; }
}
.form.bare { padding: 0; }
.form-actions .hint.grow { margin: 0; text-align: left; }
.findings { display: grid; gap: var(--s1); margin-top: var(--s2); }
.finding { display: flex; align-items: flex-start; gap: var(--s2); }
.finding .ic { margin-top: 3px; }
.check-result + .form-actions, .force-save { margin-top: var(--s1); }
.help.hint { margin-top: 4px; font-size: var(--t-xs); }
.help.hint .help-q, .help.sub .help-q { width: 16px; height: 16px; font-size: 10px; }
.hint { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--ink-3); }
.input, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="search"] {
  display: block; width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: var(--t-md); line-height: 1.4;
}
select { width: auto; max-width: 100%; }
.field select, .form select { width: 100%; }
textarea { font-family: var(--mono); font-size: var(--t-sm); }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; }
input[type="file"] { font-size: var(--t-sm); }
.check { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--t-md); }
.check input { margin-top: 3px; }

/* Notices */
.form-legal { margin: 0; color: var(--ink-3); font-size: var(--t-sm); line-height: 1.5; overflow-wrap: anywhere; }
.form-legal a { color: var(--blue-ink); text-decoration: underline; }
.note { position: relative; padding: 10px var(--s4) 10px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: var(--t-md); overflow: hidden; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink-4); }
.note-green { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.note-green::before { background: var(--green); }
.note-red { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.note-red::before { background: var(--red); }
.note-amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.note-amber::before { background: var(--amber); }
.note-blue { background: var(--blue-bg); border-color: var(--blue-line); color: var(--blue-ink); }
.note-blue::before { background: var(--blue); }
.note.with-ic { display: flex; align-items: flex-start; gap: var(--s2); }
.note.with-ic > .ic, .note.help > summary > .ic { flex: none; width: 17px; height: 17px; margin-top: 2px; opacity: .85; }
.note.help > summary > .ic { margin-top: 0; }
.note.with-ic > div { min-width: 0; overflow-wrap: anywhere; }
.note + .note, .banner + .banner { margin-top: var(--s2); }
.banner { margin-bottom: var(--s3); }
.failing-banner { font-weight: 600; }

/* The blocker card: the only thing a blocked screen shows. It carries no drawing file and no
   inline picture: the lock is made of two boxes. */
.blocker-card { padding: var(--s6); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-1); max-width: 62rem; background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--surface-2) 14px 28px); }
.blocker-head { display: flex; align-items: center; gap: var(--s4); }
.blocker-head h2 { margin-top: 4px; font-size: var(--t-xl); font-weight: 680; letter-spacing: -.015em; line-height: 1.2; }
.blocker-tag { display: inline-block; padding: 2px 10px; border-radius: var(--r-full); background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.blocker-lock { position: relative; flex: none; width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--surface-3); border: 1px solid var(--line-2); }
.blocker-lock::before { content: ""; position: absolute; left: 20px; top: 11px; width: 16px; height: 16px; border: 3px solid var(--ink-3); border-bottom: 0; border-radius: 9px 9px 0 0; }
.blocker-lock::after { content: ""; position: absolute; left: 15px; top: 25px; width: 26px; height: 20px; border-radius: 5px; background: var(--ink-3); }
.blocker-lead { margin-top: var(--s4); color: var(--ink-3); }
.blocker-steps { margin-top: var(--s4); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3); }
.blocker-step { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-top: 3px solid var(--ink-4); border-radius: var(--r-md); background: var(--surface); }
.blocker-step.missing { border-top-color: var(--red); }
.blocker-step.have { border-top-color: var(--green); }
.blocker-step.unblocks { border-top-color: var(--accent); }
.blocker-step.keys { grid-column: 1 / -1; }
.blocker-step dt { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.blocker-step dd { margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; }
.blocker-foot { margin-top: var(--s4); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: var(--s4); }
.stat { padding: var(--s4); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-top { display: flex; align-items: center; gap: var(--s2); }
.stat-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: var(--r-md); background: var(--surface-3); color: var(--ink-3); }
.stat-ic .ic { width: 17px; height: 17px; }
.stat-green .stat-ic { background: var(--green-bg); color: var(--green-ink); }
.stat-red .stat-ic { background: var(--red-bg); color: var(--red-ink); }
.stat-amber .stat-ic { background: var(--amber-bg); color: var(--amber-ink); }
.stat-blue .stat-ic { background: var(--accent-soft); color: var(--accent-ink); }
.stat-red { border-color: var(--red-line); }
.stat-amber { border-color: var(--amber-line); }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); min-width: 0; }
.stat-value { font-size: var(--t-2xl); font-weight: 650; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.stat-value a { color: inherit; }
.stat .meter-track { margin: 2px 0; }
.stat-hint { font-size: var(--t-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.tone-green { color: var(--green-ink); } .tone-red { color: var(--red-ink); } .tone-amber { color: var(--amber-ink); } .tone-blue { color: var(--accent-ink); }

/* Tabs: the filters or views of one screen. */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); width: fit-content; max-width: 100%; }
.tab { padding: 6px 12px; border-radius: var(--r-md); color: var(--ink-3); font-weight: 550; white-space: nowrap; }
.tab:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.tab.active { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-soft-line); }

/* A conversation: one bubble per message, staff on the right. */
.thread { padding: var(--s4); display: grid; gap: var(--s4); }
.msg { display: flex; gap: var(--s3); align-items: flex-start; max-width: 52rem; }
.msg .avatar { width: 32px; height: 32px; background: var(--surface-3); color: var(--ink-2); }
.msg-body { min-width: 0; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); background: var(--surface-2); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--t-sm); margin-bottom: 4px; }
.msg-text p { min-height: .6em; overflow-wrap: anywhere; }
.msg.staff { flex-direction: row-reverse; margin-left: auto; }
.msg.staff .avatar { background: var(--accent-soft); color: var(--accent-ink); }
.msg.staff .msg-body { border-radius: var(--r-lg) 4px var(--r-lg) var(--r-lg); background: var(--accent-soft); border-color: var(--accent-soft-line); }
.msg.internal .msg-body { background: var(--amber-bg); border-color: var(--amber-line); border-style: dashed; }
.msg-via svg { width: 13px; height: 13px; flex: none; }
/* The HTML twin of a mail (Outbox, the draft of a notice): a frame that runs nothing. The mail
   brings its own light and dark colours. */
.mail-twin { display: block; width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.msg-file { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s2); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); font-size: var(--t-sm); }

/* What stands in a table cell: lines, a name with a quieter line, a person, a text with an icon. */
.lines > div + div, .named .sub, .person .sub { font-size: var(--t-sm); color: var(--ink-3); }
.named { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.named > .help.sub { font-size: var(--t-sm); max-width: 34rem; }
/* Words a person wrote (the text of a notice): whole, with their line breaks. */
.named > .words { margin: 2px 0 0; max-width: 44rem; white-space: pre-line; overflow-wrap: anywhere; font-size: var(--t-sm); font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.tbl td:first-child > .named:has(.words) { min-width: 18rem; }
.person { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }
.person .avatar { width: 30px; height: 30px; flex: none; }
.with-icon { display: inline-flex; align-items: center; gap: 7px; }
.tbl .with-icon { white-space: nowrap; }
.tbl td:first-child > .named:has(.sub) { min-width: 15rem; }
.tbl .actions { flex-wrap: nowrap; }
.tbl .btn { padding: 4px 9px; font-size: var(--t-sm); }
.named .sub, .person .sub, .named .help { font-weight: 400; }
.tbl .help-label { white-space: normal; overflow: visible; }
.tbl .help { max-width: 30rem; min-width: 9rem; }
.tbl .named > .strong, .tbl td > .strong, .tbl td > a.strong { overflow-wrap: anywhere; }
.tbl td > .badge, .tbl .named .badge { white-space: normal; text-align: left; }
.with-icon .ic { color: var(--ink-4); }
.small { font-size: var(--t-xs); }

/* Label and value rows */
.kv { padding: var(--s4); display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr; gap: var(--s2) var(--s4); font-size: var(--t-md); }
.kv dt { color: var(--ink-3); font-size: var(--t-sm); padding-top: 1px; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }

/* Meters */
.meter { min-width: 9rem; }
.meter-track { height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.meter-fill { height: 100%; border-radius: var(--r-full); background: var(--ink-4); }
.meter-fill.bar-green { background: var(--green); } .meter-fill.bar-red { background: var(--red); } .meter-fill.bar-amber { background: var(--amber); } .meter-fill.bar-blue { background: var(--accent); }
.meter-label { margin-top: 4px; font-size: var(--t-xs); color: var(--ink-3); }
.meter-label.alarm { color: var(--red-ink); font-weight: 650; }
.meter-track.busy .meter-fill { width: 35%; animation: busy 1.3s ease-in-out infinite alternate; }
@keyframes busy { from { margin-left: 0; } to { margin-left: 65%; } }
@media (prefers-reduced-motion: reduce) { .meter-track.busy .meter-fill, .pulse { animation: none; } }

/* Help toggles: a one-line label, and the whole text behind "?". */
.help { font-size: var(--t-md); color: var(--ink-3); max-width: 62rem; }
.help > summary { list-style: none; display: flex; align-items: center; gap: var(--s2); cursor: pointer; min-width: 0; }
.help > summary::-webkit-details-marker { display: none; }
.help-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-q { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font-size: 11px; font-weight: 700; line-height: 1; }
.help > summary:hover .help-q, .help[open] .help-q { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.help[open] > summary .help-label { display: none; }
.help[open] > summary::after { content: "Hide"; font-size: var(--t-xs); color: var(--ink-4); }
.help-full { margin-top: var(--s2); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); line-height: 1.6; }
.page-head .help, .page-head .lead { margin-top: 6px; }
.lead { color: var(--ink-3); max-width: 62rem; }
.note.help { max-width: none; padding: 0; }
.note.help > summary { padding: 9px var(--s4) 9px 18px; color: inherit; }
.note.help > .help-full { margin: 0 var(--s4) var(--s3) 18px; }

/* Folds: a block behind a one-line summary. */
.fold { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.fold > summary { list-style: none; display: flex; align-items: center; gap: var(--s2); padding: 9px var(--s3); cursor: pointer; font-weight: 600; font-size: var(--t-md); color: var(--ink-2); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4); transform: rotate(45deg); transition: transform .12s; flex: none; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold > summary .fold-hint { font-weight: 400; color: var(--ink-3); min-width: 0; }
.fold-body { padding: var(--s3); }
.fold-body .card { border: 0; box-shadow: none; background: none; }
.fold-body .card.pad, .fold-body .form, .fold-body .kv { padding: 0; }
.fold-body .card-title { display: none; }
.fold.fold-red { border-color: var(--red-line); }
.fold.fold-red > summary { color: var(--red-ink); }
.fold.fold-green > summary .fold-hint { color: var(--green-ink); }
.fold.fold-amber > summary .fold-hint { color: var(--amber-ink); }
.fold.fold-red > summary .fold-hint { color: var(--red-ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--ink-4); flex: none; }
.dot-green { background: var(--green); } .dot-red { background: var(--red); } .dot-amber { background: var(--amber); } .dot-blue { background: var(--blue); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Hero: the picture at the top of "Create a server" and of the price list. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s6); border-radius: var(--r-xl); border: 1px solid var(--accent-soft-line); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); margin-bottom: var(--s5); overflow: hidden; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero h1, .hero h2 { font-size: var(--t-2xl); font-weight: 680; letter-spacing: -.02em; line-height: 1.2; }
.hero p { margin-top: var(--s2); color: var(--ink-3); }
.hero-art { width: 100%; max-width: 420px; height: auto; justify-self: center; }
.captions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.caption { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); font-weight: 550; color: var(--ink-2); }
.caption .ic { width: 30px; height: 30px; padding: 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--accent-soft-line); color: var(--accent-ink); }

/* Steps and choice cards */
.step { margin-bottom: var(--s5); }
.step-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.step-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: var(--t-xs); font-weight: 700; flex: none; }
.step-head h2 { font-size: var(--t-lg); font-weight: 650; }
.step-head .help { flex: 1 1 12rem; min-width: 0; font-size: var(--t-sm); }
.step > .help-full, .step > details { margin-bottom: var(--s3); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: var(--s3); }
.choices.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.choice { position: relative; display: block; }
.choice > input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.choice-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); transition: border-color .12s, box-shadow .12s; }
a.choice:hover { text-decoration: none; }
.choice:hover .choice-body { border-color: var(--brand-300); }
.choice > input:checked + .choice-body, a.choice[aria-current="true"] .choice-body { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.choice > input:focus-visible + .choice-body { outline: 2px solid var(--focus); outline-offset: 3px; }
.choice > input:disabled + .choice-body { opacity: .6; }
.choice > input:disabled { cursor: not-allowed; }
.choice-top { display: flex; align-items: center; gap: var(--s2); }
.choice-name { font-weight: 650; font-size: var(--t-lg); color: var(--ink); }
.choice-top .ic { width: 22px; height: 22px; color: var(--accent-ink); }
.choice-tick { margin-left: auto; width: 18px; height: 18px; border-radius: var(--r-full); border: 1.5px solid var(--line-2); flex: none; }
.choice > input:checked + .choice-body .choice-tick, a.choice[aria-current="true"] .choice-tick { border: 5px solid var(--accent); background: var(--on-accent); }
.choice-text { font-size: var(--t-sm); color: var(--ink-3); }
.price { display: flex; align-items: baseline; gap: 5px; }
.price-big { font-size: var(--t-2xl); font-weight: 680; letter-spacing: -.02em; color: var(--ink); }
.price-unit { font-size: var(--t-sm); color: var(--ink-3); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--s3); margin-top: var(--s1); font-size: var(--t-sm); color: var(--ink-2); }
.specs li { display: flex; align-items: center; gap: 6px; }
.specs .ic { color: var(--ink-4); }
.line-through { text-decoration: line-through; }

/* Icon lines: a small picture, a short label, the rest behind "?" */
.icon-lines { display: grid; gap: var(--s3); }
.icon-line { display: flex; align-items: flex-start; gap: var(--s3); }
.icon-line > .ic { width: 34px; height: 34px; padding: 7px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink); }
.icon-line.off > .ic { background: var(--surface-3); color: var(--ink-4); }
.icon-line-text { min-width: 0; flex: 1; }
.icon-line-title { font-weight: 600; color: var(--ink); }
.icon-line-sub { font-size: var(--t-sm); color: var(--ink-3); }

/* Copy boxes */
.copybox { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; }
.copybox code { display: flex; align-items: center; padding: 6px 11px; background: none; border-radius: 0; font-size: var(--t-sm); min-width: 0; }
.copybox button { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 0; border-left: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; cursor: pointer; white-space: nowrap; }
.copybox button:hover { background: var(--surface-3); color: var(--ink); }
.copybox.big code { font-size: var(--t-xl); letter-spacing: .06em; padding: 12px 16px; }
.copybox.big button { font-size: var(--t-md); padding: 0 16px; background: var(--accent); color: var(--on-accent); border-left-color: var(--accent); }
.copybox.big button:hover { background: var(--accent-hover); }

/* The top of a server's page */
.server-head { padding: var(--s5); display: grid; gap: var(--s4); }
.server-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.server-title h2 { font-size: var(--t-2xl); font-weight: 680; letter-spacing: -.02em; overflow-wrap: anywhere; }
.server-facts { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); }
.server-facts .copybox code { white-space: nowrap; overflow-wrap: normal; }
.fact-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 3px; }
.fact-value { font-weight: 600; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.fact-sub { font-size: var(--t-xs); color: var(--ink-3); font-weight: 400; }
.server-head .btn-row { padding-top: var(--s4); border-top: 1px solid var(--line); }
.server-busy { display: flex; align-items: center; gap: var(--s3); color: var(--amber-ink); font-weight: 550; }

/* Hostname check */
.live-check { min-height: 1.4em; margin-top: 4px; font-size: var(--t-sm); }
.live-check .ok { color: var(--green-ink); } .live-check .bad { color: var(--red-ink); }

/* Summary bar of the order form */
.order-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); margin-top: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); }

/* Price list */
.center { text-align: center; }
.pricing-head { text-align: center; margin: var(--s2) auto var(--s6); max-width: 46rem; }
.pricing-head h1 { font-size: var(--t-3xl); font-weight: 680; letter-spacing: -.025em; line-height: 1.15; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s4); }
.plan { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.plan-name { font-weight: 680; color: var(--accent-ink); }
.plan .specs { grid-template-columns: 1fr; flex: 1; margin: var(--s2) 0; }
.cols-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s6); }
@media (min-width: 1024px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ticks { display: grid; gap: 6px; margin-top: var(--s3); font-size: var(--t-md); color: var(--ink-2); }
.ticks li { display: flex; gap: var(--s2); align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: var(--r-full); background: var(--accent); }
.not-open { text-align: left; margin: 0 auto var(--s5); }
.not-open ul { list-style: disc; padding-left: var(--s5); margin-top: 4px; }

/* Error page */
.error-body { display: grid; place-items: start center; padding: var(--s4); }
.error-page { width: 100%; max-width: 460px; margin: min(12vh, 96px) auto 0; padding: var(--s7) var(--s6); text-align: center; display: grid; justify-items: center; gap: var(--s3); }
.error-brand { margin-bottom: var(--s2); }
.error-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: var(--r-full); background: var(--accent-soft); border: 1px solid var(--accent-soft-line); color: var(--accent-ink); }
.error-art .ic { width: 40px; height: 40px; }
.error-code { font-size: var(--t-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); }
.error-page h1 { font-size: var(--t-2xl); font-weight: 680; letter-spacing: -.02em; line-height: 1.2; }
.error-text { overflow-wrap: anywhere; }
.error-actions { justify-content: center; margin: var(--s2) 0; }

/* Small layout helpers of the kit: things one under the other, and an inner heading of a card. */
.vstack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-width: 0; }
.card.pad { min-width: 0; }
.grid.two > * { min-width: 0; }
.vstack.loose { gap: var(--s4); }
.vstack.tight { gap: var(--s1); }
.sub-title { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4); margin-bottom: var(--s2); font-size: var(--t-md); font-weight: 650; color: var(--ink); }
.sub-title .ic { color: var(--accent-ink); }
.vstack > .sub-title { margin: var(--s2) 0 0; }
.hero-help { margin-top: var(--s4); }
.prefilled { margin-top: var(--s3); }
.address-note { margin-top: var(--s3); }
.pricing-foot { margin-top: var(--s4); }
.pricing-head { display: grid; gap: var(--s3); justify-items: center; }
.dns-records { margin-top: var(--s2); }

/* Charts */
.chart { position: relative; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.chart-head h3 { font-size: var(--t-md); font-weight: 650; }
.chart-head h3 span { font-weight: 400; color: var(--ink-3); }
.chart-now { font-size: var(--t-xs); color: var(--ink-3); }
.chart svg text { fill: var(--chart-ink); }
.chart svg .chart-grid { stroke: var(--chart-grid); }
.chart svg .chart-hair { stroke: var(--ink); stroke-opacity: .35; }
.chart-legend { display: flex; gap: var(--s4); margin-top: 4px; font-size: var(--t-xs); color: var(--ink-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-tip { position: absolute; top: 28px; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 8px; font-size: var(--t-xs); color: var(--ink); box-shadow: var(--shadow-2); white-space: nowrap; }
.chart-tip-time { color: var(--ink-3); margin-bottom: 2px; }
.chart-tip-key { display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: middle; }

/* The dependency graph of the Feature Registry: every colour is a token, so it follows dark mode. */
.feature-graph { font-family: var(--font); }
.feature-graph .fg-edge { stroke: var(--ink-4); opacity: .7; }
.feature-graph .fg-head { fill: var(--ink-4); }
.feature-graph .fg-node { fill: var(--surface-3); stroke: var(--line-2); }
.feature-graph .fg-live { fill: var(--green-bg); stroke: var(--green); }
.feature-graph .fg-building { fill: var(--amber-bg); stroke: var(--amber); }
.feature-graph .fg-planned { fill: var(--blue-bg); stroke: var(--blue); }
.feature-graph .fg-blocked { fill: var(--surface-3); stroke: var(--ink-4); stroke-dasharray: 4 3; }
.feature-graph .fg-name { fill: var(--ink); font-weight: 600; }
.feature-graph .fg-key { fill: var(--ink-3); }
.feature-graph a:hover .fg-node, .feature-graph a:focus-visible .fg-node { stroke: var(--accent); stroke-width: 2; }
.feature-graph a:hover { text-decoration: none; }
.graph-legend { display: flex; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s3); font-size: var(--t-xs); color: var(--ink-3); }
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.graph-legend i { width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--surface-3); }
.graph-legend i.live { background: var(--green-bg); border-color: var(--green); }
.graph-legend i.building { background: var(--amber-bg); border-color: var(--amber); }
.graph-legend i.blocked { border-style: dashed; border-color: var(--ink-4); }
.graph-legend i.planned { background: var(--blue-bg); border-color: var(--blue); }

/* The server's screen in the browser */
.console-screen { height: 70vh; border-radius: var(--r-md); background: #000; }

/* ------------------------------------------------------------------ 4. helpers
   The kit's own few helpers. There is no list of utility names from another framework any more:
   a screen that writes its own markup uses the components above. */
.muted { color: var(--ink-3); }
.strong { font-weight: 650; }
.mono { font-family: var(--mono); }
.check-result, .force-save { position: relative; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small screens: the menu is a drawer behind a button, tables stack, forms are one column. */
@media (max-width: 760px) {
  .top { gap: var(--s2); padding: 0 var(--s3); }
  /* Without script the menu stays in the flow, above the content. With it, it is a drawer. */
  .shell { flex-direction: column; }
  .side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .js .shell { flex-direction: row; }
  .js .nav-toggle { display: inline-grid; }
  .js .side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(86vw, 300px); overflow-y: auto; border-right: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-3); transform: translateX(-105%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .js body.nav-open .side { transform: none; visibility: visible; }
  .js .side-head { display: flex; align-items: center; justify-content: space-between; margin: calc(-1 * var(--s2)) 0 var(--s3); padding: 0 var(--s2); }
  .side-title { font-weight: 650; }
  .side-close { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; border-radius: var(--r-md); color: var(--ink-2); cursor: pointer; }
  .side-close:hover { background: var(--surface-3); }
  .side-link { padding-top: 9px; padding-bottom: 9px; }
  .js body.nav-open .side-shade { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 20, .5); }
  body.nav-open { overflow: hidden; }
  main { padding: var(--s4) var(--s3); }
  .menu-name, .account-menu > summary > .badge { display: none; }
  .org-switch label { display: none; }
  .top .grow { display: none; }
  .brand { flex: none; margin-right: auto; }
  .org-switch { flex: 0 1 9.5rem; min-width: 0; }
  .org-switch select { width: 100%; max-width: none; min-width: 0; padding: 6px 22px 6px 8px; font-size: var(--t-sm); }
  .menu > summary { padding: 4px; }
  .menu-panel { max-width: calc(100vw - 2 * var(--s3)); }
  .top-nav a { padding: 6px; }
  .top > .btn { padding: 6px 9px; }
  .page-head { margin-bottom: var(--s4); }
  .page-head h1 { font-size: var(--t-xl); }
  .page-ic { width: 34px; height: 34px; }
  .page-actions { justify-content: flex-start; width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .stat { padding: var(--s3); }
  .stat-value { font-size: var(--t-xl); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { margin-top: var(--s2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
  .kv dt:first-child { margin-top: 0; }
  .form-inline { grid-template-columns: minmax(0, 1fr); }
  .form-inline .form-actions, .form-inline:not(:has(> .card-title)) .form-actions { grid-column: 1; grid-row: auto; }
  .form-actions .btn, .form > .btn { flex: 1 1 auto; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  time { white-space: normal; }
  input, select, textarea { font-size: 16px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-footer { height: auto; flex-wrap: wrap; padding: var(--s3); gap: var(--s2) var(--s4); }
  .server-facts { gap: var(--s3) var(--s5); }
  .hero { padding: var(--s4); }
  /* A table of the kit becomes one card per row; each value has its column's heading in front. */
  .tbl.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
  .tbl.stack tbody tr:last-child { border-bottom: 0; }
  .tbl.stack td { padding: 3px 0; border: 0; display: grid; grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr); gap: var(--s3); overflow-wrap: anywhere; }
  .tbl.stack td::before { content: attr(data-label); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: 3px; }
  .tbl.stack td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .tbl.stack td[data-label=""]::before { display: none; }
  .tbl.stack td:first-child { font-weight: 600; }
  .tbl.stack td:empty { display: none; }
  .tbl.stack tbody tr:hover td { background: none; }
  .tbl.stack .actions { justify-content: flex-start; padding-top: var(--s1); flex-wrap: wrap; }
  .tbl td:first-child > .named:has(.sub) { min-width: 0; }
  .tbl td:first-child > .named:has(.words) { min-width: 0; }
  .tbl.stack .btn { padding: 7px 13px; font-size: var(--t-md); }
  .group-body .tbl.stack tr { padding-left: 0; padding-right: 0; }
  .group-body .tbl td:first-child { white-space: normal; }
  /* The bar with the total stays in the flow, so it never lies over a button. */
  .order-bar { position: static; }
  .copybox { max-width: 100%; }
  .copybox code { overflow-wrap: anywhere; white-space: normal; }
  .server-facts .copybox code { white-space: normal; overflow-wrap: anywhere; }
}
@media print {
  .top, .side, .site-footer, .btn { display: none !important; }
  body { background: #fff; }
}

/* Sign in with an outside account (Google): a full-width button under the form, after an "or". */
.sso { display: grid; gap: var(--s3); }
.or-line { display: flex; align-items: center; gap: var(--s3); color: var(--ink-4); font-size: var(--t-sm); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso-btn { width: 100%; justify-content: center; gap: var(--s2); }
.sso-btn .os-mark { width: 20px; height: 20px; flex: none; }

/* The status page: one bar per day. */
.day-bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.day { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--surface-3); }
.day-ok { background: var(--green); }
.day-minor { background: var(--amber); }
.day-major { background: var(--red); }
.day-maintenance { background: var(--blue); }
.day-none { background: var(--line-2); }
.day-ends { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--ink-3); }
.day-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--t-xs); color: var(--ink-3); }
.day-legend span { display: inline-flex; align-items: center; gap: var(--s1); }
.day-legend .day { flex: none; width: 10px; height: 10px; }
.day-words summary { cursor: pointer; font-size: var(--t-sm); color: var(--accent-ink); }
.day-words ul { margin: var(--s2) 0 0; padding-left: var(--s5); font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 760px) { .day-bars { gap: 1px; } }
