/* The web UI's one stylesheet. Flat, two colors plus state colors.

   Colors are tokens. Five palettes define them, each for light and dark; every pair of text
   and background meets WCAG AA (4.5:1). The viewer picks a palette and a theme in the page
   footer; static/prefs.js stores the choice in the browser and sets it on <html> as
   data-palette="moss|overworld|deepslate|nether|amethyst" and data-theme="light|dark" (no
   data-theme: follow the device). Without a choice, and without script, the page shows the
   default palette in the device's theme.

   The shape ("sharp": square corners, tight spacing, pixel-style uppercase labels, strong
   lines) is the block at the end of this file. */

@font-face {
  /* Monocraft Bold 4.2, SIL Open Font License 1.1 (fonts/Monocraft-LICENSE.txt): an open
     font in the style of the game's lettering. A Latin subset, used for labels and headings. */
  font-family: "Monocraft";
  src: url("fonts/Monocraft-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --radius: 2px;
  --gap: 0.75rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --width: 72rem;
  /* Labels and headings. Monocraft's grid is 9px: 13.5px is 1.5x (exact on 2x screens) and
     18px is 2x. To let viewers who have the game's own font installed see it instead (nothing
     extra is shipped), put "Mojangles", "Minecraft" first in this list. */
  --display: "Monocraft", var(--mono);
  --display-s: 0.84375rem; /* small labels and badges */
  --display-m: 0.84375rem; /* tabs, buttons, brand */
  --display-l: 1.125rem; /* page heading */
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* palette: overworld (the default). Grass green on oak and dirt browns. Running is emerald-teal so it stays apart from the grass accent. */
:root {
  --bg: #f4ead2;
  --surface: #fffdf5;
  --ink: #2b2014;
  --muted: #6b5637;
  --line: #dfcfa9;
  --accent: #2d7811;
  --accent-ink: #ffffff;
  --accent-text: #2d7811;
  --good: #006957;
  --wait: #884f00;
  --bad: #b0241b;
  --tint: 13%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #19140f;
    --surface: #241c15;
    --ink: #f0e8db;
    --muted: #b5a590;
    --line: #40332a;
    --accent: #92d05c;
    --accent-ink: #13240a;
    --accent-text: #92d05c;
    --good: #4fd3b6;
    --wait: #ebb94c;
    --bad: #f6877b;
    --tint: 16%;
  }
}
:root[data-theme="dark"] {
  --bg: #19140f;
  --surface: #241c15;
  --ink: #f0e8db;
  --muted: #b5a590;
  --line: #40332a;
  --accent: #92d05c;
  --accent-ink: #13240a;
  --accent-text: #92d05c;
  --good: #4fd3b6;
  --wait: #ebb94c;
  --bad: #f6877b;
  --tint: 16%;
}

/* palette: moss. The current colors with the contrast gaps closed: warm paper and one moss green. */
:root[data-palette="moss"] {
  --bg: #f1f4ea;
  --surface: #ffffff;
  --ink: #1b231e;
  --muted: #56625a;
  --line: #d2dac6;
  --accent: #137138;
  --accent-ink: #ffffff;
  --accent-text: #137138;
  --good: #137138;
  --wait: #925000;
  --bad: #b9261c;
  --tint: 13%;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="moss"]:not([data-theme="light"]) {
    --bg: #141816;
    --surface: #1c221f;
    --ink: #e7ebe8;
    --muted: #9aa6a0;
    --line: #2f3833;
    --accent: #58c48c;
    --accent-ink: #0d1f16;
    --accent-text: #58c48c;
    --good: #58c48c;
    --wait: #e0a54a;
    --bad: #f0847c;
    --tint: 16%;
  }
}
:root[data-palette="moss"][data-theme="dark"] {
  --bg: #141816;
  --surface: #1c221f;
  --ink: #e7ebe8;
  --muted: #9aa6a0;
  --line: #2f3833;
  --accent: #58c48c;
  --accent-ink: #0d1f16;
  --accent-text: #58c48c;
  --good: #58c48c;
  --wait: #e0a54a;
  --bad: #f0847c;
  --tint: 16%;
}

/* palette: overworld. Grass green on oak and dirt browns. Running is emerald-teal so it stays apart from the grass accent. */
:root[data-palette="overworld"] {
  --bg: #f4ead2;
  --surface: #fffdf5;
  --ink: #2b2014;
  --muted: #6b5637;
  --line: #dfcfa9;
  --accent: #2d7811;
  --accent-ink: #ffffff;
  --accent-text: #2d7811;
  --good: #006957;
  --wait: #884f00;
  --bad: #b0241b;
  --tint: 13%;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="overworld"]:not([data-theme="light"]) {
    --bg: #19140f;
    --surface: #241c15;
    --ink: #f0e8db;
    --muted: #b5a590;
    --line: #40332a;
    --accent: #92d05c;
    --accent-ink: #13240a;
    --accent-text: #92d05c;
    --good: #4fd3b6;
    --wait: #ebb94c;
    --bad: #f6877b;
    --tint: 16%;
  }
}
:root[data-palette="overworld"][data-theme="dark"] {
  --bg: #19140f;
  --surface: #241c15;
  --ink: #f0e8db;
  --muted: #b5a590;
  --line: #40332a;
  --accent: #92d05c;
  --accent-ink: #13240a;
  --accent-text: #92d05c;
  --good: #4fd3b6;
  --wait: #ebb94c;
  --bad: #f6877b;
  --tint: 16%;
}

/* palette: deepslate. Cool stone greys with one diamond cyan. Dark is near-black slate. */
:root[data-palette="deepslate"] {
  --bg: #e3eaf2;
  --surface: #fbfdff;
  --ink: #17202b;
  --muted: #4d5b6b;
  --line: #c2cfdd;
  --accent: #007192;
  --accent-ink: #ffffff;
  --accent-text: #007192;
  --good: #116932;
  --wait: #864e00;
  --bad: #ae231a;
  --tint: 13%;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="deepslate"]:not([data-theme="light"]) {
    --bg: #0f1113;
    --surface: #181b1f;
    --ink: #e4e8ec;
    --muted: #9ba4ae;
    --line: #2f353c;
    --accent: #5cd9ea;
    --accent-ink: #04262d;
    --accent-text: #5cd9ea;
    --good: #6ad07c;
    --wait: #e6b04e;
    --bad: #f48a80;
    --tint: 16%;
  }
}
:root[data-palette="deepslate"][data-theme="dark"] {
  --bg: #0f1113;
  --surface: #181b1f;
  --ink: #e4e8ec;
  --muted: #9ba4ae;
  --line: #2f353c;
  --accent: #5cd9ea;
  --accent-ink: #04262d;
  --accent-text: #5cd9ea;
  --good: #6ad07c;
  --wait: #e6b04e;
  --bad: #f48a80;
  --tint: 16%;
}

/* palette: nether. Netherrack-tinted neutrals with a gold accent. Waiting is lava orange so it stays apart from the gold. */
:root[data-palette="nether"] {
  --bg: #f9e4df;
  --surface: #fff8f5;
  --ink: #2d1416;
  --muted: #74494c;
  --line: #ecc5bf;
  --accent: #f2ab0c;
  --accent-ink: #2b1a00;
  --accent-text: #8a5200;
  --good: #126933;
  --wait: #9f3a09;
  --bad: #b00e42;
  --tint: 13%;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="nether"]:not([data-theme="light"]) {
    --bg: #170d0e;
    --surface: #231516;
    --ink: #f3e7e5;
    --muted: #b99d9d;
    --line: #432b2d;
    --accent: #f0c24a;
    --accent-ink: #2b1d00;
    --accent-text: #f0c24a;
    --good: #69cf8c;
    --wait: #ff9d5c;
    --bad: #ff8aa5;
    --tint: 16%;
  }
}
:root[data-palette="nether"][data-theme="dark"] {
  --bg: #170d0e;
  --surface: #231516;
  --ink: #f3e7e5;
  --muted: #b99d9d;
  --line: #432b2d;
  --accent: #f0c24a;
  --accent-ink: #2b1d00;
  --accent-text: #f0c24a;
  --good: #69cf8c;
  --wait: #ff9d5c;
  --bad: #ff8aa5;
  --tint: 16%;
}

/* palette: amethyst. Geode purples: pale lilac paper in light, deep violet-black in dark, one amethyst accent. */
:root[data-palette="amethyst"] {
  --bg: #f1eafb;
  --surface: #ffffff;
  --ink: #23183a;
  --muted: #5f5280;
  --line: #dacbf0;
  --accent: #8a3ad6;
  --accent-ink: #ffffff;
  --accent-text: #8a3ad6;
  --good: #126d34;
  --wait: #8a5000;
  --bad: #b2241b;
  --tint: 13%;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="amethyst"]:not([data-theme="light"]) {
    --bg: #15111d;
    --surface: #1f1829;
    --ink: #ece7f5;
    --muted: #a79fbd;
    --line: #372d49;
    --accent: #cba4f3;
    --accent-ink: #26103f;
    --accent-text: #cba4f3;
    --good: #62cf95;
    --wait: #e6b04e;
    --bad: #f58a84;
    --tint: 16%;
  }
}
:root[data-palette="amethyst"][data-theme="dark"] {
  --bg: #15111d;
  --surface: #1f1829;
  --ink: #ece7f5;
  --muted: #a79fbd;
  --line: #372d49;
  --accent: #cba4f3;
  --accent-ink: #26103f;
  --accent-text: #cba4f3;
  --good: #62cf95;
  --wait: #e6b04e;
  --bad: #f58a84;
  --tint: 16%;
}

*, *::before, *::after { box-sizing: border-box; }
html { font: 16px/1.5 var(--font); background: var(--bg); color: var(--ink); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: var(--width); margin: 0 auto; padding: var(--gap); flex: 1; }
main > * + * { margin-top: var(--gap); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--accent-text); } /* the accent as text; --accent is the fill */
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.grow { flex: 1; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: var(--surface); padding: 0.25rem 0.5rem; z-index: 10; }

/* layout */
.stack > * + *, .stack > * + :is(.facts, .rows) { margin-top: 0.75rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* minmax(0, ...): a column never grows past the screen for a wide child (a long <select>). */
.split { display: grid; gap: var(--gap); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap); }
.card.narrow { max-width: 28rem; margin-inline: auto; }
.card.narrow > * + *, .card > h2 + *, .card > p + * { margin-top: 0.75rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; }

/* top bar, tabs, footer */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; padding: 0.5rem var(--gap); background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar a { text-decoration: none; }
.brand { font-weight: 700; color: var(--ink); }
.brand, .menu > summary { white-space: nowrap; }
.avatar { border-radius: 50%; vertical-align: middle; }
.menu { position: relative; }
.menu > summary { cursor: pointer; list-style: none; padding: 0.25rem 0.5rem; border-radius: var(--radius); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: " ▾"; color: var(--muted); }
.menu > ul { position: absolute; z-index: 5; margin: 0.25rem 0 0; padding: 0.25rem; list-style: none; min-width: 12rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.menu.end { margin-left: auto; } /* stays right when the bar wraps on a narrow phone */
.menu.end > ul { right: 0; }
.menu li > *, .menu li > button.link { display: block; width: 100%; padding: 0.4rem 0.6rem; text-align: left; border-radius: calc(var(--radius) - 2px); }
.menu li > *:hover, .menu [aria-current] { background: color-mix(in srgb, var(--accent) var(--tint), transparent); }
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 0 var(--gap); background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs a { padding: 0.6rem 0.75rem; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs.sub { background: transparent; }
.tabs-title { align-self: center; font-weight: 600; padding-right: 0.5rem; white-space: nowrap; }
.footer { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center; align-items: center; padding: var(--gap); color: var(--muted); font-size: 0.875rem; }

/* actions */
.btn, button.link { font: inherit; cursor: pointer; }
.btn { display: inline-block; padding: 0.4rem 0.85rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.btn.small { padding: 0.15rem 0.55rem; font-size: 0.875rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn[aria-pressed="true"] { border-color: var(--accent); font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--accent-text); }
.htmx-request.btn, .htmx-request .btn { opacity: 0.6; pointer-events: none; }

/* status */
.badge { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.8rem; border: 1px solid var(--line); color: var(--muted); --c: var(--muted); }
.badge.running, .badge.active, .badge.ok, .badge.approved, .badge.succeeded, .badge.online { --c: var(--good); }
.badge.starting, .badge.stopping, .badge.pending, .badge.queued, .badge.warn { --c: var(--wait); }
.badge.crashed, .badge.blocked, .badge.failed, .badge.error, .badge.rejected, .badge.suspended { --c: var(--bad); }
.badge:not(.plain) { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) var(--tint), transparent); }
.banner { --c: var(--accent); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.6rem 0.85rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) var(--tint), transparent); }
.banner.warn { --c: var(--wait); }
.banner.error { --c: var(--bad); }
.banner > .btn:last-child { margin-left: auto; }
.flash { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; display: grid; gap: 0.5rem; max-width: min(24rem, calc(100vw - 2rem)); }
.toast { --c: var(--good); display: flex; gap: 0.75rem; align-items: start; padding: 0.6rem 0.85rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--c); border-left-width: 4px; }
.toast.warn { --c: var(--wait); }
.toast.error { --c: var(--bad); }
.toast button { margin-left: auto; color: var(--muted); }

/* data */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.table td, .facts dd { font-variant-numeric: tabular-nums; }
.table caption { text-align: left; padding-bottom: 0.4rem; color: var(--muted); font-size: 0.875rem; }
.scroll-x { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* forms */
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0.6rem; max-width: 100%; min-width: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; padding: 0; }
textarea { width: 100%; }
.field { display: grid; gap: 0.25rem; grid-template-columns: minmax(0, 1fr); }
.field > label { font-weight: 600; }
/* Label and control on one line, the hint below. Flex, not grid: a long hint must not size
   the columns, and a long label wraps instead of pushing its checkbox off a phone screen. */
.field.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.field.inline > label { max-width: calc(100% - 2rem); }
.field.inline > .hint { flex-basis: 100%; }
.hint { color: var(--muted); font-size: 0.875rem; }
.field-error { color: var(--bad); font-size: 0.875rem; }
.field-error::before { content: "! "; font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 0.4rem; }

/* dialog */
dialog { width: min(30rem, calc(100vw - 2rem)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: var(--gap); }
dialog > * + * { margin-top: 0.75rem; }
dialog::backdrop { background: rgb(0 0 0 / 45%); }

/* tooltip: fades in on hover/focus/tap, vanishes at once; no fade with reduced motion */
.tooltip { position: relative; display: inline-flex; }
.tooltip-icon { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--wait); background: color-mix(in srgb, var(--wait) var(--tint), transparent); color: var(--wait); font: 700 0.8rem/1 var(--font); cursor: help; padding: 0; }
.tooltip-box { position: absolute; z-index: 6; top: calc(100% + 0.4rem); left: 0; width: min(22rem, 80vw); padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); visibility: hidden; opacity: 0; }
.tooltip:hover .tooltip-box, .tooltip:focus-within .tooltip-box { visibility: visible; opacity: 1; transition: opacity 120ms ease-out; }
@media (prefers-reduced-motion: reduce) { .tooltip:hover .tooltip-box, .tooltip:focus-within .tooltip-box { transition: none; } }
/* On a phone the box would run off the screen next to its icon: pin it to the bottom edge. */
@media (max-width: 52rem) { .tooltip-box { position: fixed; top: auto; left: 1rem; right: 1rem; bottom: 1rem; width: auto; } }

/* ---- shape: sharp. Dense and square, monospace uppercase labels, lines strong enough to read
   as edges, a filled current tab. Colors stay in the tokens at the top. ---- */
body { --line: color-mix(in srgb, var(--muted) 75%, var(--surface)); } /* stronger lines from the same palette */
h1, h2, h3, .brand, .tabs a, .btn, .badge, .table th, .facts dt, .field > label, legend { font-family: var(--display); font-weight: 700; font-synthesis: none; }
h2, h3, .badge, .table th, .facts dt, .field > label, legend { font-size: var(--display-s); text-transform: uppercase; }
.brand, .tabs a, .btn, .btn.small { font-size: var(--display-m); }
h1 { font-size: var(--display-l); }
.tabs a, .btn { line-height: 1.3125rem; } /* controls keep the height they had with the system font */
.badge { line-height: 1.125rem; }
.brand::before { content: "> "; color: var(--accent-text); }
.topbar, .tabs, main { padding-inline: 1rem; } /* the tighter --gap must not shrink the phone gutter */
.tabs { gap: 0; }
.tabs a { padding: 0.45rem 0.75rem; }
.tabs a[aria-current] { background: var(--ink); color: var(--surface); border-bottom-color: var(--ink); }
.stack > * + *, .stack > * + :is(.facts, .rows) { margin-top: 0.5rem; }
.facts { align-items: baseline; gap: 0.15rem 1rem; }
.btn { padding: 0.3rem 0.7rem; }
.badge { border-radius: var(--radius); padding: 0.1rem 0.4rem; }
.table th, .table td { padding: 0.3rem 0.5rem; }
.table th { border-bottom-width: 2px; }
/* A row's heading is data (a gamertag, a person, a role), not a label: as typed, no capitals. */
.table tbody th { font: inherit; font-weight: 600; text-transform: none; color: var(--ink); border-bottom-width: 1px; }
.toast { border-left-width: 6px; }
.empty { text-align: left; padding: 0.75rem; }
progress { width: 100%; height: 0.6rem; accent-color: var(--accent); }

/* the viewer's colors and theme, in the footer */
.prefs label { display: inline-flex; align-items: center; gap: 0.35rem; }
.prefs select { padding: 0.15rem 0.4rem; font-size: 0.875rem; }

/* Log in with Discord: Discord's own colours and logo, so the button reads as theirs at a glance.
   The logo path is Simple Icons' "Discord" (CC0 data; the mark is Discord's, used as their
   brand guidelines allow for login buttons). */
.btn.discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
}
.btn.discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn.discord:focus-visible { outline-color: #5865f2; }
.btn.discord .discord-logo { width: 1.25em; height: 1.25em; flex: none; }

/* folds: a card whose body opens from its heading (World page: packs, less-used setting groups) */
details.fold > summary { display: flex; align-items: baseline; gap: 0.75rem; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary > :is(h2, h3) { margin: 0; }
details.fold > summary::before { content: "+"; font-family: var(--display); width: 1ch; color: var(--accent-text); }
details.fold[open] > summary::before { content: "\2212"; }
details.fold > summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
details.fold .fold-hint { font-size: 0.875rem; }
details.fold[open] .fold-hint { display: none; }
details.fold > .fold-body { margin-top: var(--gap); }

/* join values: what Minecraft's Add Server form asks for, each with a copy button
   (templates/_join.html; the button is handled in app.js). */
.join { display: grid; gap: 0.4rem; }
.join-row { display: grid; grid-template-columns: minmax(6.5rem, max-content) minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.join-row > label { color: var(--muted); font-size: var(--display-s); font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.join-row > input { font: inherit; font-family: var(--mono); min-width: 0; padding: 0.25rem 0.5rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
.join-row > .btn.copied { border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 30rem) { .join-row { grid-template-columns: minmax(0, 1fr) auto; } .join-row > label { grid-column: 1 / -1; } }

/* Getting Started: a device's video and its steps */
.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.video-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.6rem; }
.video-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.video-item:not(.primary) .video-link { font-weight: 400; }
.play-icon { flex: none; color: var(--accent); }
.play-glyph { fill: var(--bg); }
.guide-toc { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; list-style: none; margin: 0; padding: 0; }
.guide ol { margin: 0; padding-left: 1.4rem; }
.guide ol > li + li { margin-top: 0.25rem; }
