/* ---------------------------------------------------------------------------
   vigie — the console's look (step 19).

   A lighthouse watching a fleet. Graphite, like the night sea of the
   moodboard; Team Break's red is THE BEAM: it lights only what needs looking
   at — anomalies, failures, the logo — never decoration, never a plain
   button. Everything else stays quiet so that the red reads at a glance, on
   a desk as on a phone in a corridor.

   Barlow, self-hosted (SIL OFL, fonts/OFL.txt): a type drawn from road and
   harbour signage, legible small; its semi-condensed cut for titles and
   figures. No request leaves for another site.
   --------------------------------------------------------------------------- */

@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url(fonts/BarlowSemiCondensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url(fonts/BarlowSemiCondensed-700.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --sea: #1d2124;          /* the page */
  --hull: #262b2e;         /* panels — the moodboard's graphite */
  --hull-2: #2f3539;       /* raised: hover, inputs */
  --line: #3a4146;
  --ink: #eceeef;
  --ink-soft: #9aa4ab;
  --beam: #e84031;         /* Team Break red: what needs looking at */
  --beam-soft: rgba(232, 64, 49, 0.14);
  --ok: #4cb782;
  --ok-soft: rgba(76, 183, 130, 0.14);
  --warn: #e3a33c;
  --warn-soft: rgba(227, 163, 60, 0.15);
  --calm: #7fa7c4;         /* links and neutral information: the sea, by day */
  --focus: #9cc3e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --font: Barlow, system-ui, sans-serif;
  --font-title: "Barlow Semi Condensed", Barlow, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-small: 6px;
  --rail: 232px;
  --tabbar: 64px;
  --gap: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --sea: #eef1f3;
    --hull: #ffffff;
    --hull-2: #f4f6f7;
    --line: #d9dee2;
    --ink: #1d2124;
    --ink-soft: #5d6870;
    --beam: #d2321f;
    --beam-soft: rgba(210, 50, 31, 0.09);
    --ok: #23885a;
    --ok-soft: rgba(35, 136, 90, 0.1);
    --warn: #a86a06;
    --warn-soft: rgba(168, 106, 6, 0.1);
    --calm: #2f6d97;
    --focus: #2f6d97;
    --shadow: 0 10px 30px rgba(29, 33, 36, 0.14);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sea);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  min-height: 100dvh;
}

a { color: var(--calm); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-size: 0.875em; overflow-wrap: anywhere; }
.muted { color: var(--ink-soft); }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
/* Confirmation of an action that cannot be undone from here (power-off). */
.confirm-box { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--radius-small); padding: 12px 14px; margin: 0 0 12px; }
.confirm-box p { margin: 0 0 8px; }
.confirm-box .form-row { margin: 8px 0 0; }
.confirm-box input { flex: 1 1 260px; min-width: 0; }
.confirm-box[hidden] { display: none; }
.alarm-text { color: var(--beam); }

/* --- The frame: a rail on a desk, a tab bar on a phone ---------------------- */

.app { min-height: 100dvh; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--hull);
  border-right: 1px solid var(--line);
  padding: 20px 12px 16px;
  overflow-y: auto;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 52px; height: auto; }
.brand-name { font: 700 1.6rem/1 var(--font-title); letter-spacing: 0.02em; }
.brand-sub { display: block; font: 500 0.75rem/1.2 var(--font); color: var(--ink-soft); letter-spacing: 0; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { margin-top: 18px; padding: 0 10px 6px; font-size: 0.8rem; color: var(--ink-soft); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item:hover { background: var(--hull-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--hull-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.nav-count { margin-left: auto; font: 600 0.85rem/1 var(--font-title); color: var(--ink-soft); }
.nav-count.alarm { color: #fff; background: var(--beam); border-radius: 999px; padding: 4px 8px; }

.rail-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.who { display: block; font-weight: 500; overflow-wrap: anywhere; }
.who-role { color: var(--ink-soft); }
.rail-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.rail-links a, .rail-links button { color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; font-size: 0.875rem; }
.rail-links a:hover, .rail-links button:hover { color: var(--ink); text-decoration: underline; }
/* Team Break's own logo: the signature of the tool, small and quiet — the
   lighthouse stays the console's mark. */
.signature { display: block; width: 76px; height: auto; margin: 0 0 12px; opacity: 0.9; }
.signin .signature { width: 84px; margin: 22px auto 0; opacity: 0.75; }

.version-tag { margin-top: 10px; font-size: 0.75rem; color: var(--ink-soft); }

/* The lamp: lit while the live stream is connected. */
.lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); display: inline-block; margin-right: 6px; vertical-align: 1px; }
.lamp.lit { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

.main {
  margin-left: var(--rail);
  padding: 28px clamp(16px, 3vw, 40px) 48px;
  max-width: calc(var(--rail) + 1240px);
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 2rem; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--ink-soft); max-width: 62ch; }
.live { font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; }

.tabbar, .topbar { display: none; }

/* --- Phones ------------------------------------------------------------------ */

@media (max-width: 820px) {
  .rail { display: none; }
  .main { margin-left: 0; padding: 72px 16px calc(var(--tabbar) + 28px); }

  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    inset: 0 0 auto 0;
    height: 56px;
    padding: 0 16px;
    background: var(--hull);
    border-bottom: 1px solid var(--line);
    z-index: 20;
  }
  .topbar img { width: 34px; }
  .topbar .brand-name { font-size: 1.3rem; }
  .topbar .live { margin-left: auto; }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    inset: auto 0 0 0;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--hull);
    border-top: 1px solid var(--line);
    z-index: 20;
  }
  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
  }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--ink); }
  .tab .nav-count { position: absolute; top: 6px; left: calc(50% + 6px); font-size: 0.7rem; }
  /* On a phone the top bar carries the live line, and a tab only its alarm. */
  .page-head .live, .tab [data-count="parc"] { display: none; }
  .page-head h1 { font-size: 1.6rem; }
}

/* The "More" sheet on a phone. */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 40; }
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  background: var(--hull);
  border-radius: 16px 16px 0 0;
  padding: 10px 12px calc(20px + env(safe-area-inset-bottom));
  z-index: 41;
  box-shadow: var(--shadow);
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet .rail-foot { border-top: 1px solid var(--line); margin-top: 10px; }

/* --- Building blocks --------------------------------------------------------- */

.panel { background: var(--hull); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel.padded, .padded { padding: 18px 20px; }
.panel > h2, .section-title { font-size: 1.15rem; margin: 0 0 12px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; }
.section-title .count { font: 500 0.9rem var(--font); color: var(--ink-soft); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: var(--hull-2);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { border-color: var(--ink-soft); }
.button.primary { background: var(--ink); color: var(--sea); border-color: var(--ink); }
.button.primary:hover { opacity: 0.9; }
.button.danger { color: var(--beam); border-color: var(--beam); background: transparent; }
.button.danger:hover { background: var(--beam-soft); }
.button.small { min-height: 32px; padding: 4px 10px; font-size: 0.875rem; }
.button:disabled { opacity: 0.45; cursor: default; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"],
input[type="datetime-local"], select, textarea {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: var(--hull-2);
  color: var(--ink);
  max-width: 100%;
}
textarea { width: 100%; font-family: var(--mono); font-size: 0.875rem; }
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 0.8; }
label { color: var(--ink-soft); font-size: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.form-row .grow { flex: 1 1 260px; }
.form-row .grow input { width: 100%; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }

/* Status, said in words and in color — never in color alone. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--hull-2);
  color: var(--ink-soft);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.alarm { background: var(--beam-soft); color: var(--beam); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ink-soft); }
.dot.up { background: var(--ok); }
.dot.down { background: var(--beam); }
.dot.quiet { background: var(--warn); }
.state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.notice { padding: 12px 16px; border-radius: var(--radius-small); margin-bottom: 16px; background: var(--hull-2); border-left: 3px solid var(--calm); }
.notice.ok { border-color: var(--ok); }
.notice.warn { border-color: var(--warn); }
.notice.alarm { border-color: var(--beam); }
.empty { padding: 28px 20px; color: var(--ink-soft); text-align: center; margin: 0; }

/* --- Tables, which become cards on a phone ------------------------------------ */

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font: 600 0.8rem/1.2 var(--font);
  color: var(--ink-soft);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
/* A node's name breaks at its hyphens, never inside a word. */
.table td.mono { overflow-wrap: normal; word-break: normal; min-width: 14ch; }
/* Dates, sites, ages: short, on one line. */
.table td[data-label] { white-space: nowrap; }
.table tr.clickable:hover td { background: var(--hull-2); }
/* The fleet is one table per site: sized by their own content, their columns
   would not line up from one site to the next. Fixed shares keep them aligned. */
@media (min-width: 821px) {
  .table.fleet { table-layout: fixed; }
  .table.fleet th:nth-child(1) { width: 34%; }
  .table.fleet th:nth-child(2) { width: 19%; }
  .table.fleet th:nth-child(3) { width: 12%; }
  .table.fleet th:nth-child(4) { width: 14%; }
  .table.fleet th:nth-child(5) { width: 10%; }
  .table.fleet th:nth-child(6) { width: 11%; }
}

@media (max-width: 820px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 2px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-soft); font-size: 0.85rem; }
  .table td.primary { font-weight: 600; margin-bottom: 4px; }
  .table td.wide-only { display: none; }
}

/* --- The fleet ----------------------------------------------------------------- */

/* One line of figures: what is reachable, what reports, what needs looking at. */
.watch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.watch > div { background: var(--hull); padding: 16px 20px; }
.watch .figure { font: 700 2.2rem/1 var(--font-title); }
.watch .figure small { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }
.watch .what { margin-top: 6px; font-weight: 500; }
.watch .detail { margin: 4px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 0.875rem; }
.watch .alarm .figure { color: var(--beam); }
@media (max-width: 820px) {
  .watch { grid-template-columns: 1fr 1fr; }
  .watch > div:last-child { grid-column: 1 / -1; }
  .watch .figure { font-size: 1.8rem; }
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.filters input[type="search"] { flex: 1 1 240px; }
.filters .checks { margin-left: 4px; }

.site-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.site-head h2 { margin: 0; font-size: 1.3rem; }

.version { font-family: var(--mono); font-size: 0.85rem; }
.version.approximative { color: var(--ink-soft); }
.version.absente { color: var(--ink-soft); font-style: italic; font-family: var(--font); }
.provenance { margin-left: 6px; font-size: 0.75rem; color: var(--ink-soft); }
.age.perime { color: var(--warn); }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; }

/* --- The modal: a node's page and the forms ----------------------------------- */

.modal {
  width: min(820px, calc(100vw - 48px));
  max-height: min(88dvh, 920px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--hull);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(10, 12, 14, 0.62); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 600 1.15rem/1.3 var(--mono); overflow-wrap: anywhere; }
.modal-close {
  margin-left: auto;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--hull-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
/* The body grows to the bottom of the dialog: on a full-screen phone modal,
   no part of the box is left to the <dialog> itself, which reads as backdrop. */
.modal-body { flex: 1 1 auto; overflow-y: auto; padding: 6px 22px 28px; overscroll-behavior: contain; }
.modal-body h3 { font-size: 1.05rem; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-body h3:first-child { border-top: 0; padding-top: 6px; }
/* On a desk, a node's page reads in two columns: what it is, what to do. */
@media (min-width: 900px) {
  .node-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
  .node-page > section > h3:first-child { border-top: 0; padding-top: 6px; }
}
@media (max-width: 820px) {
  .modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: rise 0.18s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
}

/* A tooltip, for buttons whose effect a word cannot say whole: on hover and
   on keyboard focus. A phone has no hover: the page says it in words too. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: var(--sea);
  font: 400 0.82rem/1.4 var(--font);
  text-align: left;
  white-space: normal;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 50;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: none; }
.legend { font-size: 0.875rem; color: var(--ink-soft); margin: -8px 0 20px; }
.legend strong { color: var(--ink); font-weight: 500; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }

pre.log, pre.command {
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--sea);
  border: 1px solid var(--line);
  font: 0.8rem/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
}
pre.command { user-select: all; }

.steps { margin: 8px 0 0; padding-left: 22px; }
.steps li { margin-bottom: 12px; padding-left: 4px; }

/* --- The add-a-device wizard ----------------------------------------------------- */

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: var(--hull-2);
  cursor: pointer;
  font-weight: 500;
}
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* --- Motion: one moment, the beam's first sweep -------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .brand img { transform-origin: 44% 26%; }
  .beam-sweep { animation: sweep 1.6s ease-out 1; }
  @keyframes sweep {
    0% { opacity: 0.2; }
    40% { opacity: 1; }
    100% { opacity: 1; }
  }
}

/* --- The sign-in page ------------------------------------------------------------ */

.signin {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 400px);
  place-content: center;
  justify-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--beam-soft), transparent 60%),
    var(--sea);
}
.signin-card {
  width: min(400px, 100%);
  background: var(--hull);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px 26px;
  box-shadow: var(--shadow);
}
.signin-card .brand { padding: 0 0 22px; }
.signin-card .brand img { width: 72px; }
.signin-card form { display: flex; flex-direction: column; gap: 14px; }
.signin-card input { width: 100%; }
.signin-card .button { width: 100%; margin-top: 6px; }
.signin-alert { margin: 0 0 4px; padding: 10px 12px; border-radius: var(--radius-small); background: var(--beam-soft); color: var(--beam); font-size: 0.9rem; }
.signin-foot { margin: 18px 0 0; font-size: 0.85rem; color: var(--ink-soft); }

/* --- The installation guide: one readable column ------------------------------ */

.doc { max-width: 72ch; margin: 0 auto; padding: 28px 16px 64px; line-height: 1.6; }
.doc .brand { padding: 0 0 24px; }
.doc .brand img { width: 52px; }
.doc h1 { font-size: 2rem; margin: 0 0 10px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc .lead { font-size: 1.05rem; color: var(--ink-soft); }
.doc code { font-family: var(--mono); font-size: 0.88em; background: var(--hull-2); padding: 1px 5px; border-radius: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px; margin: 18px 0 8px; background: var(--hull); border: 1px solid var(--line); border-radius: var(--radius); }
.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); }
.note { margin-top: 32px; padding: 12px 16px; border-left: 3px solid var(--warn); background: var(--hull); border-radius: var(--radius-small); }

/* The package line of the Nodes page: one line, the guide one click away. */
.package-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
