/* ─────────────────────────────────────────────────────────────
   Cosmic: deep-space navy, starfield, plasma-pink accents on an
   orbit, ion-blue for links and light. One moving thing: the
   light sweeping around the orbit.
   ───────────────────────────────────────────────────────────── */
:root {
  --space: #04050D;
  --space-2: #0A0E26;
  --space-3: #121A42;
  --line: #1B2452;
  --line-strong: #2F3B7E;

  --star: #EEF0FF;
  --dim: #A6AEDA;
  --faint: #828BBE;

  --plasma: #FF5C8A;
  --plasma-soft: rgba(255, 92, 138, 0.16);
  --ion: #8CCBFF;
  --nebula: #8B7CFF;
  --mint: #5EE6A8;
  --sun: #FFD166;
  --blurple: #5865F2;
  --focus: #8CCBFF;

  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --body: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --wrap: 1520px;
  /* where a sticky side column stops: just under the top bar (taller when the bar is two rows, see below) */
  --sticky: 96px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
}

*, *::before, *::after { box-sizing: border-box; }
/* The site is dark on its own. Said out loud, so a browser's "force dark pages" (Opera GX has one) leaves it alone:
   otherwise it darkens the page again, turning it grey with black boxes behind the text, and lags while doing it. */
:root { color-scheme: dark; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background-color: var(--space);
  background-image: url('/static/img/stars.svg'), url('/static/img/stars.svg');
  background-size: 420px 420px, 700px 700px;
  background-position: 0 0, 130px 210px;
  color: var(--star);
  font: 17px/1.65 var(--body);
}
/* the sky, fixed behind everything: a faint band of light, three soft nebulas, and darker edges */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 28%, rgba(72, 110, 255, 0.07) 45%, rgba(140, 203, 255, 0.05) 52%, transparent 70%),
    radial-gradient(46rem 30rem at 86% -8%, rgba(120, 104, 255, 0.2), transparent 70%),
    radial-gradient(38rem 26rem at 6% 2%, rgba(60, 146, 236, 0.13), transparent 70%),
    radial-gradient(42rem 30rem at -6% 106%, rgba(255, 92, 138, 0.09), transparent 70%),
    radial-gradient(ellipse 120% 95% at 50% 38%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}
main { flex: 1; width: 100%; }
img { max-width: 100%; }
a { color: var(--ion); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #C4E4FF; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.92em; }
p { margin: 0 0 0.8em; }
.sprite { position: absolute; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* A small blue light that glides after the mouse (added by main.js; never shown for touch).
   No blend mode on purpose: blending makes the browser repaint the page under the light on
   every move, which is what makes a light like this lag behind the cursor. */
.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  /* screen: it adds light to dark things and leaves light things alone, so it glows on the night sky
     and fades away over white text and bright buttons */
  mix-blend-mode: screen;
  /* a small bright core inside a wide faint halo, in many small steps so there is no edge and no ring */
  background: radial-gradient(
    circle closest-side,
    rgba(176, 226, 255, 0.340) 0%,
    rgba(170, 222, 255, 0.333) 5%,
    rgba(165, 217, 255, 0.311) 10%,
    rgba(159, 213, 255, 0.280) 15%,
    rgba(153, 209, 255, 0.241) 20%,
    rgba(147, 205, 255, 0.201) 25%,
    rgba(142, 200, 255, 0.163) 30%,
    rgba(136, 196, 255, 0.129) 35%,
    rgba(130, 192, 255, 0.101) 40%,
    rgba(125, 187, 255, 0.078) 45%,
    rgba(119, 183, 255, 0.060) 50%,
    rgba(113, 179, 255, 0.047) 55%,
    rgba(107, 175, 255, 0.036) 60%,
    rgba(102, 170, 255, 0.026) 65%,
    rgba(96, 166, 255, 0.017) 70%,
    rgba(96, 166, 255, 0.011) 75%,
    rgba(96, 166, 255, 0.006) 80%,
    rgba(96, 166, 255, 0.003) 85%,
    rgba(96, 166, 255, 0.001) 90%,
    rgba(96, 166, 255, 0.000) 95%,
    rgba(96, 166, 255, 0.000) 100%
  );
  transition: opacity 0.25s ease;
  will-change: transform, opacity;
}
.cursor-light.is-on { opacity: 1; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; }
.skip:focus { left: 16px; background: var(--star); color: var(--space); padding: 8px 14px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 5, 13, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}
@media (min-width: 700px) { .topbar-inner { padding: 0 28px; } }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 17px var(--display);
  color: var(--star);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand img, .brand-logo { display: block; flex: none; }
.mainnav { display: flex; gap: 4px; flex: 1; }
/* each page name keeps its own size, and the row sits in the middle of the bar between the logo and the account
   button; the auto margins (not justify-content: center) let a row too long for a narrow screen still scroll from its start */
.mainnav a { display: inline-flex; flex: none; border-radius: 999px; text-decoration: none; }
.mainnav a:first-child { margin-left: auto; }
.mainnav a:last-child { margin-right: auto; }
/* the link itself stays still so the pointer never slips off it; the pill inside is what floats */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  color: var(--dim);
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.mainnav a:hover .nav-pill { color: var(--star); background: rgba(0, 0, 0, 0.42); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.mainnav a[aria-current="page"] .nav-pill { color: var(--star); background: var(--space-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.mainnav a[aria-current="page"]:hover .nav-pill { background: #0D1433; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--line-strong); }
.nav-emoji { font-size: 15px; line-height: 1; }
/* a page with a picture in place of an emoji; the negative margin keeps its pill the same height as the others */
.nav-icon { display: block; flex: none; width: 22px; height: 22px; margin: -3px 0; object-fit: contain; }

.topbar-user { display: flex; align-items: center; gap: 8px; flex: none; }
/* Staff Panel and Developer Panel: logo, then the name on its right, after the account pill.
   A click on the logo folds the button down to the logo alone (the name's column slides shut), and a click
   on the logo again opens it out. The name is the link into the panel. */
.panel-link {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--star);
  white-space: nowrap;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  transition: grid-template-columns 0.28s ease, transform 0.15s, border-color 0.15s, background-color 0.15s;
}
.panel-logo { display: block; border-radius: 50%; cursor: pointer; }
.panel-logo img { display: block; width: 32px; height: 32px; transition: transform 0.2s ease; }
.panel-logo:hover img { transform: scale(1.1) rotate(-6deg); }
.panel-name { min-width: 0; overflow: hidden; transition: visibility 0s; }
.panel-name a { display: block; padding: 0 11px 0 8px; line-height: 32px; color: inherit; text-decoration: none; }
.panel-name a:hover { color: #fff; }
.panel-link:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }
.panel-link.is-current { background: var(--space-3); border-color: var(--line-strong); }
.panel-link.is-folded { grid-template-columns: auto 0fr; }
/* once it has slid shut the name is really gone: not read out, and not a stop for the Tab key */
.panel-link.is-folded .panel-name { visibility: hidden; transition: visibility 0s 0.28s; }
html.less-motion .panel-link, html.less-motion .panel-link .panel-name, html.less-motion .panel-logo img { transition: none; }
@media (prefers-reduced-motion: reduce) { .panel-link, .panel-link .panel-name, .panel-logo img { transition: none; } }

.usermenu { position: relative; }
.usermenu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--dim);
  border: 1px solid var(--line);
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu summary img { border-radius: 50%; display: block; }
.usermenu summary:hover, .usermenu[open] summary { color: var(--star); border-color: var(--line-strong); }
.usermenu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  display: grid;
  padding: 6px;
  background: var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(2, 4, 18, 0.6);
}
.usermenu-panel a,
.usermenu-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 15px var(--body);
  color: var(--star);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}
.usermenu-panel a:hover,
.usermenu-panel button:hover { background: var(--space-3); }
.usermenu-panel form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.usermenu-panel button { color: #FF9AB6; }
.menu-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; font-size: 16px; line-height: 1; }

/* How the bar fits, measured in a browser with eight page names: one row needs about 1,185px of window with
   no panel button, 1,325px with one and 1,505px with two. Before the page names drop to a row of their own,
   the bar with panel buttons first sits a little tighter (about 85px narrower). */
@media (max-width: 1340px) {
  .topbar.panels-1 .topbar-inner { gap: 12px; }
  .topbar.panels-1 .nav-pill { padding: 8px 7px; gap: 5px; }
}
@media (max-width: 1520px) {
  .topbar.panels-2 .topbar-inner { gap: 12px; }
  .topbar.panels-2 .nav-pill { padding: 8px 7px; gap: 5px; }
}
@media (max-width: 1210px) {
  :root { --sticky: 140px; }
  .topbar-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .brand { flex: 1; }
  .mainnav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 8px 12px 10px;
  }
  .mainnav::-webkit-scrollbar { display: none; }
  /* when the page names run past the edge, that edge fades, so it shows there is more to scroll to */
  .mainnav[data-more~="right"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .mainnav[data-more~="left"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
  .mainnav[data-more~="left"][data-more~="right"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
  .nav-pill { padding: 8px 12px; gap: 7px; }
}
@media (max-width: 1260px) {
  :root:has(.topbar.panels-1) { --sticky: 140px; }
  .topbar.panels-1 .topbar-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .topbar.panels-1 .brand { flex: 1; }
  .topbar.panels-1 .mainnav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 8px 12px 10px;
  }
  .topbar.panels-1 .mainnav::-webkit-scrollbar { display: none; }
  .topbar.panels-1 .nav-pill { padding: 8px 12px; gap: 7px; }
}
@media (max-width: 1430px) {
  :root:has(.topbar.panels-2) { --sticky: 140px; }
  .topbar.panels-2 .topbar-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .topbar.panels-2 .brand { flex: 1; }
  .topbar.panels-2 .mainnav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 8px 12px 10px;
  }
  .topbar.panels-2 .mainnav::-webkit-scrollbar { display: none; }
  .topbar.panels-2 .nav-pill { padding: 8px 12px; gap: 7px; }
}
@media (max-width: 880px) {
  .usermenu summary { padding: 3px; }
  .usermenu summary span { display: none; }
}
/* on phones the panel buttons are logos only; their names are still read out, and show as a tooltip */
@media (max-width: 760px) {
  .panel-link, .panel-link.is-folded { grid-template-columns: auto 0fr; transition: none; }
  .panel-link .panel-name { visibility: hidden; }
}

/* ── Building blocks ─────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, rgba(20, 27, 74, 0.62), rgba(9, 13, 34, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.panel h2 { font-size: 22px; }
@media (max-width: 520px) { .panel { padding: 22px 20px; } }

.section-title, .section-head h2 { font-size: 24px; }
.section-title > span[aria-hidden="true"]:first-child { margin-right: 6px; } /* an emoji in front of a title, clear of its first letter */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 15px/1.2 var(--body);
  color: var(--star);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { color: #fff; border-color: var(--ion); background: rgba(140, 203, 255, 0.08); }
.btn-primary { background: var(--star); color: var(--space); border-color: var(--star); }
.btn-primary:hover { background: #fff; color: var(--space); border-color: #fff; box-shadow: 0 0 0 4px rgba(140, 203, 255, 0.25); }
.btn-discord { background: var(--blurple); border-color: var(--blurple); color: #fff; }
.btn-discord:hover { background: #6A75F5; border-color: #6A75F5; box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.3); }
.btn-small { font-size: 14px; padding: 7px 14px; }
.btn-block { width: 100%; }
.btn-danger { color: #FF9AB6; border-color: rgba(255, 92, 138, 0.45); }
.btn-danger:hover { color: #fff; background: rgba(255, 92, 138, 0.18); border-color: var(--plasma); }

.tag {
  display: inline-block;
  font: 700 12px/1 var(--body);
  letter-spacing: 0.02em;
  text-transform: capitalize;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--star);
  background: var(--space-3);
  border: 1px solid var(--line-strong);
}
.tag-plain { text-transform: none; }
.tag-server { color: #9AF0C6; background: rgba(94, 230, 168, 0.1); border-color: rgba(94, 230, 168, 0.35); }
.tag-bot { color: #B9C0FF; background: rgba(88, 101, 242, 0.16); border-color: rgba(120, 132, 255, 0.45); }
.tag-website { color: #FFC1D2; background: var(--plasma-soft); border-color: rgba(255, 92, 138, 0.4); }
.tag-in-game { color: #FFE2A8; background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.4); }

.notice { border-radius: var(--r-md); padding: 13px 16px; margin: 0 0 20px; font-weight: 600; border: 1px solid; }
.notice-error { background: rgba(255, 92, 138, 0.12); border-color: rgba(255, 92, 138, 0.5); color: #FFD3DF; }
.notice-info { background: rgba(140, 203, 255, 0.1); border-color: rgba(140, 203, 255, 0.4); color: #D6ECFF; }
.notice-ok { background: rgba(94, 230, 168, 0.1); border-color: rgba(94, 230, 168, 0.45); color: #C9F7E1; }

.empty { color: var(--dim); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 18px 20px; margin: 0; }
/* the whole page has nothing to show yet: the box takes the page's width and says so in the middle */
.empty-wide { display: grid; place-items: center; min-height: 240px; padding: 40px 24px; text-align: center; font-size: 18px; border-radius: var(--r-lg); background: rgba(10, 14, 38, 0.5); }

/* ── Rows of cards that always fill the row ──────────────────
   Cards share a row equally and the last row stretches, so no row stops halfway across the page.
   A card that ends up wide (alone in its row) lays itself out sideways: see the @container rules. */
.fill-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.fill-cell { flex: 1 1 var(--cell, 260px); display: flex; container-type: inline-size; }
.fill-cell > * { flex: 1; min-width: 0; }

.page-head { padding: 64px 0 36px; }
.page-head h1, .page-title { font-size: clamp(34px, 5.5vw, 54px); }
.page-head p { color: var(--dim); max-width: 60ch; font-size: 18px; margin: 0; }
.page-head-tight { padding: 40px 0 26px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--space-2); }
.data-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.data-table th, .data-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 13px; font-weight: 700; color: var(--faint); background: rgba(255, 255, 255, 0.02); }
.data-table tbody th { font-weight: 700; white-space: nowrap; }
.data-table tbody th code { color: var(--ion); }
.data-table tbody td { color: var(--dim); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* ── Orbit + mascot (the signature element) ─────────────── */
.orbit {
  --size: 360px;
  --mascot: 214px;
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: none;
}
.orbit-lg { --size: 320px; --mascot: 190px; }
/* The light that sweeps round the ring is a square turning behind a round mask. Its corners are invisible, but
   as it turns they reach past the edge of the page and made it scroll sideways for a moment, a few times a
   second, on screens up to about 1,460px wide. What is drawn stops a little outside the orbit, where nothing is. */
.hero-visual, .login-visual { padding: 18px; margin: -18px; contain: paint; }
.orbit-ring {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.orbit-ring-outer { inset: -6px; border: 1px dashed rgba(54, 66, 143, 0.55); }
.orbit-ring:not(.orbit-ring-outer)::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(140, 203, 255, 0) 70%, rgba(140, 203, 255, 0.95) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}
.orbit-moons { position: absolute; inset: 22px; border-radius: 50%; }
.block { position: absolute; display: block; }
.block-1 { width: 26px; height: 26px; left: calc(50% - 13px); top: -13px; filter: drop-shadow(0 0 10px rgba(140, 210, 255, 0.7)); }
.block-2 { width: 20px; height: 20px; left: calc(17.9% - 10px); top: calc(88.3% - 10px); filter: drop-shadow(0 0 8px rgba(80, 130, 230, 0.6)); }
.block-3 { width: 16px; height: 16px; left: calc(95.3% - 8px); top: calc(71.1% - 8px); filter: drop-shadow(0 0 10px rgba(127, 224, 216, 0.8)); }
.orbit-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.orbit-center::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 150, 255, 0.36), rgba(139, 124, 255, 0.12) 50%, transparent 72%);
  filter: blur(6px);
}
.orbit .mascot { width: var(--mascot); position: relative; margin-top: 4px; }

/* the BlubMC cube */
.mascot {
  display: block;
  width: 200px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mascot svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 28px rgba(60, 146, 236, 0.35)); }
.mascot:focus-visible { outline-offset: 8px; border-radius: 24px; }
.mascot-sm { width: 80px; }
.mascot-md { width: 160px; }
.mascot-shadow { fill: rgba(3, 8, 30, 0.55); transform-box: fill-box; transform-origin: center; }
.mascot-eye { transform-box: fill-box; transform-origin: center; transition: transform 0.08s ease-in; }
.mascot.is-blinking .mascot-eye { transform: scaleY(0.12); }
.mascot-iris { transition: transform 0.12s ease-out; }
.mascot-say { opacity: 0; pointer-events: none; }
.mascot-say text { font: 700 15px var(--display); fill: var(--space); }
.mascot.is-blub .mascot-say { animation: say 1.2s ease-out; }
.mascot-float { transform-box: fill-box; transform-origin: 50% 100%; }
.mascot-squash { transform-box: fill-box; transform-origin: 50% 50%; }

@media (prefers-reduced-motion: no-preference) {
  .orbit-ring:not(.orbit-ring-outer)::after { animation: sweep 6s linear infinite; }
  .orbit-moons { animation: sweep 48s linear infinite; }
  .block { animation: tumble 7s ease-in-out infinite alternate; }
  .block-2 { animation-duration: 9s; animation-delay: -3s; }
  .block-3 { animation-duration: 6s; animation-delay: -1s; }
  .mascot-float { animation: hop 1.8s infinite; }
  .mascot-shadow { animation: hop-shadow 1.8s infinite; }
  .mascot.is-blub .mascot-squash { animation: flip 0.8s cubic-bezier(0.3, 0.9, 0.4, 1); }
  .mainnav a:hover .nav-pill { animation: nav-float 1.3s ease-in-out infinite; }
}
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes nav-float { 0%, 100% { transform: translateY(1.5px); } 50% { transform: translateY(-2.5px); } }
@keyframes tumble { from { transform: rotate(-18deg) translateY(-3px); } to { transform: rotate(18deg) translateY(3px); } }
/* jump loop like the banner: squash, launch, tilt in the air, land */
@keyframes hop {
  0%   { transform: translateY(0) scale(1.1, 0.88); animation-timing-function: ease-out; }
  12%  { transform: translateY(0) scale(0.94, 1.08); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  45%  { transform: translateY(-44px) rotate(-7deg) scale(1, 1); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  78%  { transform: translateY(0) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  86%  { transform: translateY(0) scale(1.1, 0.88); }
  100% { transform: translateY(0) scale(1.1, 0.88); }
}
@keyframes hop-shadow {
  0%, 12%, 78%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(0.62); opacity: 0.45; }
}
@keyframes flip {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-60px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
@keyframes say {
  0% { opacity: 0; transform: translateY(8px); }
  18%, 75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ── Home ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero-hello { font-size: 20px; font-weight: 600; color: var(--dim); margin: 0 0 4px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); margin: 0 0 18px; overflow-wrap: anywhere; }
.hero-sub { max-width: 42ch; font-size: 19px; color: var(--dim); margin: 0 0 32px; }

.join { display: grid; gap: 12px; justify-items: start; }
.ip-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 6px 6px 20px;
  background: var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.ip-pill code { font-size: 17px; color: var(--star); overflow-wrap: anywhere; padding-right: 8px; }
.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font: 700 14px var(--body);
  color: var(--space);
  background: var(--star);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}
.ip-copy:hover { background: #fff; box-shadow: 0 0 0 4px rgba(140, 203, 255, 0.25); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; font-size: 15px; margin: 0; padding-left: 4px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.status-online .status-dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(94, 230, 168, 0.18); }
.status-offline .status-dot { background: var(--plasma); box-shadow: 0 0 0 4px rgba(255, 92, 138, 0.18); }
.copy-feedback:empty { display: none; }
.copy-feedback { margin: 0; padding-left: 4px; font-size: 14px; font-weight: 600; color: var(--mint); }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: stretch;
  padding-bottom: 24px;
}
/* the latest update and the rules beside it end at the same line */
.home-grid > section { display: flex; flex-direction: column; min-width: 0; }
.home-grid > section > .panel { flex: 1; }
.update-card h3 { font-size: 22px; margin: 14px 0 14px; }
.update-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; color: var(--faint); font-size: 14px; font-weight: 600; }
.update-card .changes { margin: 0; }
.more { margin: 14px 0 0; font-weight: 600; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 40px; }
  .hero-visual { order: -1; justify-self: center; }
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .orbit { --size: 280px; --mascot: 166px; }
  .orbit-lg { --size: 260px; --mascot: 154px; }
}

/* ── Update logs ─────────────────────────────────────────── */
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.changes li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--dim); }
.mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  font: 700 14px/1 var(--mono);
}
.k-added .mark { color: var(--mint); background: rgba(94, 230, 168, 0.12); }
.k-changed .mark { color: var(--sun); background: rgba(255, 209, 102, 0.12); }
.k-fixed .mark { color: var(--ion); background: rgba(140, 203, 255, 0.12); }
.k-removed .mark { color: var(--plasma); background: var(--plasma-soft); }

/* the timeline, with the filter and the key to the marks in a column beside it */
.updates-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-bottom: 88px; }
.updates-main { grid-column: 1; grid-row: 1; min-width: 0; }
.updates-side { grid-column: 2; grid-row: 1; position: sticky; top: var(--sticky); display: grid; gap: 14px; }
.updates-side .panel { padding: 18px 20px 20px; }
.side-title, .panel h2.side-title { font: 700 12.5px/1 var(--body); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.updates-side .filters { display: grid; gap: 2px; padding: 0; background: none; border: 0; border-radius: 0; }
.updates-side .filters a { padding: 9px 14px; border-radius: var(--r-sm); font-size: 15px; }
.updates-side .filters a:hover { background: rgba(255, 255, 255, 0.05); }
.updates-side .filters a[aria-current="page"]:hover { background: var(--star); }
.updates-side .legend { display: grid; gap: 10px; font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--space-2); border: 1px solid var(--line); border-radius: 999px; }
.filters a { font-weight: 600; font-size: 14px; color: var(--dim); text-decoration: none; padding: 8px 16px; border-radius: 999px; }
.filters a:hover { color: var(--star); }
.filters a[aria-current="page"] { background: var(--star); color: var(--space); }
/* On a phone, rows of tabs and filters stay one row that scrolls sideways (like the page names at the top) rather than
   piling up inside a big rounded box; an edge with more past it fades (main.js marks it). */
@media (max-width: 640px) {
  .filters, .updates-side .filters, nav.side-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .filters::-webkit-scrollbar, nav.side-nav::-webkit-scrollbar { display: none; }
  .filters a, nav.side-nav a { flex: none; white-space: nowrap; }
  .filters[data-more~="right"], nav.side-nav[data-more~="right"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .filters[data-more~="left"], nav.side-nav[data-more~="left"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
  .filters[data-more~="left"][data-more~="right"], nav.side-nav[data-more~="left"][data-more~="right"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--faint); font-size: 14px; font-weight: 600; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend dd { margin: 0; }
.legend .mark { margin: 0; }

/* timeline: updates really are a sequence over time */
.update-list { position: relative; padding: 6px 0 0; }
.update:last-child { padding-bottom: 0; }
.update {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 36px;
  padding: 0 0 40px;
}
.update::before {
  content: '';
  position: absolute;
  left: 189px;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
}
.update:last-child::before { bottom: 0; background: linear-gradient(var(--line-strong), transparent); }
.update::after {
  content: '';
  position: absolute;
  left: 184px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--space);
  border: 2px solid var(--ion);
  box-shadow: 0 0 12px rgba(140, 203, 255, 0.6);
}
.update:first-child::after { background: var(--ion); }
.update-meta { text-align: right; }
.update-meta p { margin: 0 0 6px; color: var(--faint); font-size: 14px; font-weight: 600; }
.update-meta .update-version { font: 600 22px/1.2 var(--display); color: var(--star); margin-bottom: 6px; }
.update-body { padding-left: 4px; }
.update-body h2 { font-size: 22px; margin-bottom: 16px; }
.update-body .changes { background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.update-author { color: var(--faint); font-size: 14px; margin: 0 0 0 4px; }
.update-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; }
.update-foot form { margin: 0; }
/* the form for an update log: only shown to developers */
.update-post { margin-bottom: 22px; }
/* the composers in the Developer Panel's Updates and Media tabs, with their posted lists below */
.dev-composer { margin-bottom: 22px; }
.dev-composer > h2 { margin: 0 0 18px; }
/* an update's own words above its changes, and its photos and videos below them */
.update-text { color: var(--dim); margin-bottom: 14px; }
.update-files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.update-files a, .update-files video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #000; overflow: hidden; }
.update-files img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.update-files a:hover img { transform: scale(1.04); }
.uf-form .field { margin-bottom: 14px; }
@media (max-width: 1020px) {
  .updates-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .updates-main, .updates-side { grid-column: 1; grid-row: auto; }
  .updates-side { position: static; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
  .updates-side .filters { display: flex; flex-wrap: wrap; gap: 4px; }
  .updates-side .legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 640px) { .updates-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .update { grid-template-columns: 1fr; gap: 10px; padding-left: 26px; }
  .update::before { left: 5px; }
  .update::after { left: 0; }
  .update-meta { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .update-body { padding-left: 0; }
}

/* ── Rules ───────────────────────────────────────────────── */
.rules-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-bottom: 26px; }
.rules-facts { display: flex; gap: 12px; margin: 0; }
.rules-facts div { display: grid; gap: 4px; padding: 12px 18px; border-radius: var(--r-md); background: rgba(10, 14, 38, 0.6); border: 1px solid var(--line); }
.rules-facts dt { font: 700 12px/1 var(--body); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.rules-facts dd { margin: 0; font: 600 18px/1.2 var(--display); }
/* the sections, as a strip that stays in reach while the page is read */
.toc.rules-tabs { position: sticky; top: calc(var(--sticky) - 20px); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(6, 8, 22, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: fit-content; max-width: 100%; }
.toc.rules-tabs a { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; border: 0; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--dim); text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.toc.rules-tabs a:hover { color: var(--star); background: rgba(255, 255, 255, 0.06); }
.toc.rules-tabs a[aria-current="true"] { color: var(--space); background: var(--star); }
.rules-tab-count { font: 700 12px/1 var(--body); padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.toc.rules-tabs a[aria-current="true"] .rules-tab-count { background: rgba(4, 5, 13, 0.14); }
.rules-layout { display: grid; gap: 34px; padding-bottom: 88px; }
.rule-section { scroll-margin-top: calc(var(--sticky) + 50px); }
.rule-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.rule-section-head h2 { font-size: 24px; margin: 0; }
.rule-section-head h2 span { margin-right: 6px; }
.rule-note { color: var(--faint); font-weight: 600; margin: 0; }
/* one rule, one card: its number, what it is called, what it says */
.rule-cards { gap: 12px; }
.rule-cards .fill-cell { --cell: 320px; }
.rule-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r-md); transition: border-color 0.15s, transform 0.15s; }
.rule-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.rule-card .rule-num { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; font: 600 14px/1 var(--display); color: var(--plasma); background: var(--plasma-soft); }
.rule-card strong { display: block; font-size: 16.5px; line-height: 1.35; }
.rule-card p { margin: 4px 0 0; color: var(--dim); font-size: 15px; line-height: 1.55; }
.rule-card-note { grid-template-columns: minmax(0, 1fr); border-color: rgba(255, 209, 102, 0.3); background: linear-gradient(180deg, rgba(255, 209, 102, 0.07), rgba(9, 13, 34, 0.9)); }
.rule-important .fill-cell { --cell: 420px; }
html.less-motion .rule-card, html.less-motion .toc.rules-tabs a { transition: none; }
@media (prefers-reduced-motion: reduce) { .rule-card { transition: none; } .rule-card:hover { transform: none; } }
/* the short list of key rules on Home */
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list.compact li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.rule-list.compact li:first-child { border-top: 0; padding-top: 4px; }
.rule-list.compact li:last-child { padding-bottom: 0; }
.rule-list.compact .rule-num { font: 600 15px/1.6 var(--display); color: var(--plasma); }
.rule-list.compact strong { display: block; font-size: 17px; }
.rule-list.compact p { margin: 2px 0 0; color: var(--dim); }
.lead { color: var(--dim); max-width: 60ch; }
@media (max-width: 700px) {
  .toc.rules-tabs { border-radius: var(--r-md); }
  .toc.rules-tabs a { padding: 7px 12px; font-size: 14px; }
  .rules-facts div { padding: 10px 14px; }
}

/* ── About ───────────────────────────────────────────────── */
.prose p { max-width: 62ch; font-size: 19px; color: var(--dim); }
.prose p:first-child { color: var(--star); font-size: 21px; }
/* what the server is on the left, who runs it on the right */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; padding: 72px 0 20px; }
.about-top .page-title { margin-bottom: 28px; }
.about-top .prose p:last-child { margin-bottom: 0; }
.about-top .team { display: flex; flex-wrap: wrap; }
/* the cards of a row share it, and one left on its own row takes the whole row instead of half */
.about-top .team > li { flex: 1 1 250px; min-width: 0; }
.about-block { padding: 36px 0 20px; }
.about-block:last-child { padding-bottom: 88px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.member { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); }
.member img { border-radius: 50%; display: block; flex: none; width: 64px; height: 64px; object-fit: cover; box-shadow: 0 0 0 2px var(--space-2), 0 0 0 3px var(--line-strong); }
.member-name { font: 600 16px var(--display); margin: 0 0 2px; }
.member > div { min-width: 0; }
.member-name { overflow-wrap: anywhere; }
.member-role { margin: 0; color: var(--faint); font-size: 15px; font-weight: 600; }
.member-id { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); }
.member-id code { background: none; padding: 0; color: inherit; overflow-wrap: anywhere; }
@media (max-width: 980px) { .about-top { grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 56px; } }

/* ── BlubMC ──────────────────────────────────────────────── */
.bot-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: end; padding: 64px 0 28px; }
.bot-title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.bot-title .page-title { margin: 0; }
.bot-tagline { font-size: 20px; color: var(--dim); max-width: 44ch; margin-bottom: 26px; }
.bot-account h2 { font-size: 15px; font-family: var(--body); font-weight: 700; color: var(--faint); letter-spacing: 0; margin-bottom: 16px; }
.bot-account-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bot-account-row img { border-radius: 50%; display: block; box-shadow: 0 0 0 2px var(--space-2), 0 0 0 3px var(--line-strong); }
.bot-account-name { font: 600 18px var(--display); margin: 0; }
.bot-account-user { margin: 0; color: var(--faint); }
.verified { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: #9AF0C6; padding: 10px 14px; border-radius: var(--r-md); background: rgba(94, 230, 168, 0.08); border: 1px solid rgba(94, 230, 168, 0.3); }
.unverified { margin: 0; font-weight: 600; font-size: 15px; color: var(--dim); padding: 10px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); }
.check { width: 16px; height: 16px; flex: none; background: var(--mint); clip-path: polygon(0 55%, 16% 40%, 40% 62%, 84% 12%, 100% 28%, 40% 94%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  font: 600 18px var(--display);
  color: var(--ion);
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 35% 30%, #1B2760, var(--space-2));
  box-shadow: 0 0 24px rgba(140, 203, 255, 0.18);
}
.steps h3 { font-size: 17px; margin: 10px 0 6px; }
.steps p { color: var(--dim); margin: 0; }
@media (max-width: 900px) {
  .bot-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .steps { grid-template-columns: 1fr; }
}

/* ── FAQ ─────────────────────────────────────────────────── */
/* the FAQ page (views/faq.ejs): a search, the topics as shortcuts, then each topic's questions */
/* The FAQ (views/faq.ejs): one column on a phone; from 980px a column at the side that stays in view (search, topics with
   the one being read lit, where to go next) beside the questions, which go two to a row from 1320px. */
.faq-page { display: grid; gap: 22px; padding-bottom: 88px; }
.faq-side { display: contents; } /* on a phone its parts are laid out with the rest, the help last */
.faq-search { order: 1; }
.faq-topics { order: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-main { order: 3; display: grid; gap: 30px; min-width: 0; }
.faq-help { order: 4; }
.faq-search { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space); transition: border-color 0.15s, box-shadow 0.15s; }
.faq-search:focus-within { border-color: var(--ion); box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); }
.faq-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ion); stroke-width: 2; stroke-linecap: round; }
.faq-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--star); font: 500 16px var(--body); outline: none; }
.faq-search input::placeholder { color: var(--faint); }
.faq-topic { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--dim); font: 600 14px var(--body); text-decoration: none; transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.faq-topic:hover { color: var(--star); border-color: var(--ion); background: rgba(140, 203, 255, 0.07); }
.faq-count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--space-3); color: var(--faint); font-size: 12px; text-align: center; }
.faq-topic[aria-current="true"] { color: var(--star); border-color: var(--ion); background: rgba(140, 203, 255, 0.1); }
.faq-topic[aria-current="true"] .faq-count { background: rgba(140, 203, 255, 0.2); color: var(--ion); }
.faq-help { display: grid; gap: 6px; margin: 0; padding: 18px 20px; }
.faq-help strong { color: var(--star); font-size: 16px; }
.faq-help p { margin: 0; color: var(--dim); font-size: 14.5px; }
.faq-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.faq-group { display: grid; gap: 12px; scroll-margin-top: calc(var(--sticky) + 12px); }
.faq-group[hidden] { display: none; }
.faq-group-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.faq-group-title { margin: 0; font: 700 13px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.faq-group-head span { color: var(--faint); font-size: 13px; }
.faq-list { display: grid; gap: 10px; }
@media (min-width: 980px) {
  .faq-page { grid-template-columns: 290px minmax(0, 1fr); gap: 44px; align-items: start; }
  .faq-side { display: grid; gap: 16px; position: sticky; top: calc(var(--sticky) + 14px); }
  .faq-topics { flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(6, 8, 22, 0.55); }
  .faq-topic { justify-content: space-between; padding: 9px 12px; border-color: transparent; border-radius: 10px; }
  .faq-topic[aria-current="true"] { border-color: transparent; box-shadow: inset 3px 0 0 var(--ion); }
}
@media (min-width: 1320px) {
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.faq-none { margin: 0; color: var(--faint); }
.faq-answer { padding: 0 24px 22px; max-width: 70ch; color: var(--dim); }
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer strong { color: var(--star); }
.faq-answer a { color: var(--ion); }
.faq-answer code { padding: 1px 6px; border-radius: 5px; background: var(--space-3); color: var(--star); font: 600 0.92em var(--mono); }
.faq-item mark { background: rgba(255, 209, 102, 0.28); color: inherit; border-radius: 3px; }
.faq-item { padding: 0; border-radius: var(--r-md); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
  padding: 20px 60px 20px 24px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--ion);
  border-bottom: 2px solid var(--ion);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item[open] { border-color: var(--line-strong); }

/* ── Profile ─────────────────────────────────────────────── */
/* the account card on the left, the member's tickets and moderation log on the right */
.profile-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 88px; }
.profile-side { display: grid; gap: 18px; min-width: 0; }
.profile { display: grid; gap: 20px; justify-items: start; position: sticky; top: var(--sticky); }
.profile > div { width: 100%; min-width: 0; }
.profile-avatar { border-radius: 50%; display: block; width: 120px; height: 120px; box-shadow: 0 0 0 4px var(--space-2), 0 0 0 5px var(--line-strong), 0 0 60px rgba(139, 124, 255, 0.4); }
.profile-head { border-radius: 22px; image-rendering: pixelated; }
.profile h2 { font-size: 26px; margin-bottom: 16px; overflow-wrap: anywhere; }
.profile h3 { font: 700 14px var(--body); color: var(--faint); margin: 22px 0 10px; letter-spacing: 0; }
.facts { display: grid; gap: 0; margin: 0; }
.facts dt { color: var(--faint); font-weight: 600; font-size: 14px; }
.facts dd { margin: 0 0 12px; font-weight: 700; overflow-wrap: anywhere; }
.facts dd:last-child { margin-bottom: 0; }
.roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.role { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--space); border: 1px solid var(--line-strong); }
.role i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.muted-ink { color: var(--dim); }
.profile-actions { margin-top: 24px; }
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile { position: static; }
}

/* ── Folding sections ─────────────────────────────────────
   A section whose heading is a button: pressed, the body slides shut and the section takes one line. */
.fold { padding: 0; overflow: hidden; }
.fold-head { margin: 0; font-size: 20px; }
.fold-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 22px; background: none; border: 0; color: var(--star); font: inherit; text-align: left; cursor: pointer; }
.fold-toggle:hover { background: rgba(255, 255, 255, 0.03); }
.fold-toggle:focus-visible { outline: 2px solid var(--ion); outline-offset: -2px; }
.fold-title { flex: 1; min-width: 0; }
.fold-count { font: 700 12px/1 var(--body); color: var(--dim); background: rgba(255, 255, 255, 0.07); padding: 6px 9px; border-radius: 999px; }
.fold-chevron { flex: none; color: var(--faint); transition: transform 0.3s ease; }
.fold-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.32s ease; }
.fold-inner { min-height: 0; overflow: hidden; }
.fold-pad { padding: 2px 22px 22px; transition: opacity 0.25s ease; }
.fold.is-shut .fold-body { grid-template-rows: 0fr; }
.fold.is-shut .fold-pad { opacity: 0; }
.fold.is-shut .fold-chevron { transform: rotate(-90deg); }
/* the state a section was left in is put back on load without playing the slide */
html.fold-instant .fold-body, html.fold-instant .fold-chevron, html.fold-instant .fold-pad { transition: none; }
html.less-motion .fold-body, html.less-motion .fold-chevron, html.less-motion .fold-pad { transition: none; }
@media (prefers-reduced-motion: reduce) { .fold-body, .fold-chevron, .fold-pad { transition: none; } }

/* ── Developer Panel ─────────────────────────────────────────── */
.panel-head { display: flex; align-items: center; gap: 26px; }
.panel-head img { display: block; flex: none; width: 112px; height: 112px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55)); }
.panel-head h1 { margin-bottom: 8px; }
.panel-head > div { flex: 1; min-width: 0; }
.panel-head-action { flex: none; }
/* narrower: the words keep a sensible width and the button goes under them; on a phone the logo is small beside the
   title and the words run under both, so nothing gets squeezed into a column a word wide */
@media (max-width: 760px) { .panel-head { flex-wrap: wrap; } .panel-head > div { flex: 1 1 260px; } .panel-head-action { margin-left: 0; } }
@media (max-width: 560px) {
  .panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; }
  .panel-head img { width: 60px; height: 60px; }
  .panel-head > div { display: contents; }
  .panel-head h1 { margin: 0; align-self: center; font-size: clamp(28px, 9vw, 40px); }
  .panel-head > div > :not(h1) { grid-column: 1 / -1; }
  .panel-head-action { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
}

/* Staff Panel: who you are and the numbers on the left, the work on the right */
.dash { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 88px; }
.dash-side { display: grid; gap: 14px; position: sticky; top: var(--sticky); }
.dash-main { display: grid; gap: 18px; min-width: 0; }
/* a message from BlubMC in a ticket: the close request, drawn like the bot's message in Discord */
.msg-bot .msg-avatar-bot { background: #1E1F22; padding: 5px; border-radius: 50%; }
.msg-app { font: 700 10px/1 var(--body); padding: 3px 5px; border-radius: 4px; background: #5865F2; color: #fff; }
.msg-embed { display: grid; gap: 6px; margin-top: 4px; padding: 12px 16px 14px 14px; border-radius: 6px; border-left: 4px solid #3498DB; background: rgba(0, 0, 0, 0.25); max-width: 560px; }
.msg-embed p { margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.msg-embed .msg-embed-title { font-weight: 700; color: var(--star); }
.msg-embed-warn { border-left-color: #FEE75C; } /* a reminder: the bot's warning colour, as in Discord */
.msg-embed .msg-embed-note { font-size: 13px; color: var(--faint); }
.msg-embed .msg-embed-outcome { font-weight: 600; color: var(--star); }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.msg-actions form { margin: 0; }
.btn-close-ticket { color: #fff; background: #DA373C; border-color: #DA373C; }
.btn-close-ticket:hover { background: #A12828; border-color: #A12828; color: #fff; }
.btn-continue { color: #fff; background: #248046; border-color: #248046; }
.btn-continue:hover { background: #1A6334; border-color: #1A6334; color: #fff; }
/* The Staff and Developer Panels: a header, then a row of tabs, then the tab's page across the full width. */
.panel-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin: 0 0 22px; background: var(--space-2); border: 1px solid var(--line); border-radius: 14px; }
.panel-tabs a { font-weight: 600; font-size: 15px; color: var(--dim); text-decoration: none; padding: 10px 18px; border-radius: 10px; }
.panel-tabs a:hover { color: var(--star); background: rgba(255, 255, 255, 0.05); }
.panel-tabs a[aria-current="page"] { background: var(--star); color: var(--space); }
.panel-tabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.staff-page, .dev-page { padding-bottom: 88px; }

/* The owners' announcement (Site settings), under the top bar on every page */
.site-banner { border-bottom: 1px solid var(--line); background: rgba(140, 203, 255, 0.1); color: #D6ECFF; }
.site-banner-warn { background: rgba(255, 209, 102, 0.12); color: #FFE9B0; }
.site-banner-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 28px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }

/* Site settings */
.form.settings-form { display: grid; gap: 14px; }
.site-setting { display: grid; gap: 12px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
.site-setting-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.site-setting-head h3 { margin: 0; font-size: 17px; }
.site-setting .hint { margin: 0; }
.site-setting-fields { display: grid; gap: 12px; }
.site-setting-fields.is-wide-narrow { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.site-setting-fields.is-halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .site-setting-fields.is-wide-narrow, .site-setting-fields.is-halves { grid-template-columns: 1fr; } }
.form .site-setting .field { margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--dim); cursor: pointer; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ion); }
.choice small { color: var(--faint); font-weight: 500; }

/* The Developer Panel and the Staff Panel: a sidebar on a wide screen, a row of tabs on a narrow one */
/* one column as wide as the screen: without the limit, one wide thing (a table, a row of cards) stretched the whole
   column past the edge of a phone */
.side-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.side-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; align-content: start; }
.side-main > .notice { margin: 0; }
.side-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--space-2); border: 1px solid var(--line); border-radius: 14px; }
.side-group { display: contents; }
.side-nav .side-title { display: none; }
.side-nav a { font-weight: 600; font-size: 15px; color: var(--dim); text-decoration: none; padding: 10px 18px; border-radius: 10px; }
.side-nav a:hover { color: var(--star); background: rgba(255, 255, 255, 0.05); }
.side-nav a[aria-current="page"] { background: var(--star); color: var(--space); }
.side-nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 1100px) {
  .side-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
  .side-nav { position: sticky; top: calc(var(--sticky) + 8px); flex-flow: column nowrap; gap: 16px; padding: 14px 10px; border-radius: var(--r-lg); }
  .side-group { display: grid; gap: 2px; }
  /* each group's name in a bubble, so it stands apart from the links under it */
  .side-nav .side-title {
    display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin: 0 0 6px; padding: 6px 12px;
    font: 800 11.5px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--star);
    background: rgba(139, 124, 255, 0.2); border: 1px solid rgba(139, 124, 255, 0.5); border-radius: 999px;
  }
  .side-nav .side-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nebula); }
  .side-nav a { padding: 9px 12px; }
}
.dev-page .panel-head { margin-bottom: 4px; }
.staff-whoami { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--dim); }
.panel-head .staff-whoami img { width: 28px; height: 28px; border-radius: 50%; filter: none; }
.staff-whoami > span:first-of-type { font-weight: 600; color: var(--star); margin-right: 4px; }
.role-small { font-size: 13px; padding: 4px 10px; }
.stats.stats-row { margin: 0 0 18px; }
.stats.stats-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat-l small { display: block; color: var(--faint); font-weight: 500; font-size: 12.5px; }
.staff-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.staff-grid > .panel { margin: 0; min-width: 0; }
@media (max-width: 980px) { .staff-grid { grid-template-columns: minmax(0, 1fr); } }
.crumb { margin: -6px 0 16px; color: var(--faint); font-size: 14px; }
.crumb a { color: var(--ion); }
/* one person's page: who they are on the left, what can be done and their records on the right */
.person-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.person-side, .person-main { display: grid; gap: 18px; min-width: 0; }
.person-side > .panel, .person-main > .panel { margin: 0; min-width: 0; }
.person-layout h2 { font-size: 18px; margin: 0 0 14px; }
.person-where { font: 600 13px var(--body); color: var(--faint); margin-left: 6px; }
.person-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.person-top img { border-radius: 50%; flex: none; background: var(--space-3); }
.person-name { margin: 0; font: 700 18px var(--display); color: var(--star); overflow-wrap: anywhere; }
.person-facts { display: grid; gap: 10px; margin: 0 0 12px; }
.person-facts > div { display: grid; gap: 1px; }
.person-facts dt { font-size: 12.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.person-facts dd { margin: 0; color: var(--star); overflow-wrap: anywhere; }
.person-facts dd.is-bad { color: #FF9AB6; }
.person-roles { margin: 4px 0 0; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.action-note { grid-column: 1 / -1; margin: 0; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(94, 230, 168, 0.18); vertical-align: middle; }
a.mod-who { color: inherit; text-decoration: none; }
a.mod-who:hover .mod-name { text-decoration: underline; }
.people-table { min-width: 720px; }
/* On a phone each person is a small card (name on top, the rest two to a row, each with its label) instead of a table
   that hides everything but the name off to the side */
@media (max-width: 640px) {
  .table-scroll:has(> .people-table) { overflow: visible; }
  .people-table { min-width: 0; }
  .people-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .people-table tbody { display: block; }
  .people-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .people-table tbody tr:last-child { border-bottom: 0; }
  .people-table th, .people-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .people-table tbody th { grid-column: 1 / -1; white-space: normal; }
  .people-table td { font-size: 14px; overflow-wrap: anywhere; }
  .people-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
}
.server-title { font-size: 20px; margin: 0; }
.server-title .muted-ink { font: 500 14px var(--body); margin-left: 8px; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--dim); }
@media (max-width: 900px) { .person-layout { grid-template-columns: minmax(0, 1fr); } }
/* the moderation panels: a tab for each, the actions as cards, then what an action came to or a history */
.mod-panel { scroll-margin-top: var(--sticky); }
.mod-panel > h2 { font-size: 20px; margin-bottom: 8px; }
.mod-panel .mod-intro { margin: 0 0 18px; max-width: 90ch; }
.mod-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--space-2); border: 1px solid var(--line); border-radius: 999px; }
.mod-tabs [role="tab"] { border: 0; background: none; color: var(--dim); font: 600 14px/1 var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.mod-tabs [role="tab"]:hover { color: var(--star); }
.mod-tabs [role="tab"][aria-selected="true"] { background: var(--star); color: var(--space); }
.mod-tabs [role="tab"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mod-tabpanel[hidden] { display: none; }
.mod-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mod-card { display: grid; align-content: start; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); margin: 0; min-width: 0; }
.mod-card h3 { font-size: 16px; margin: 0; }
.mod-card .hint { margin: 0 0 6px; }
.mod-card label { font-weight: 700; font-size: 13.5px; margin-top: 4px; }
.mod-card button[type="submit"] { justify-self: start; margin-top: 8px; }
.mod-card-wide { grid-column: 1 / -1; }
.mod-row { display: flex; gap: 8px; }
.mod-row input { flex: 1; min-width: 0; max-width: 360px; }
.mod-row button { margin-top: 0 !important; }
.mod-result { margin-bottom: 16px; }
.mod-result-title { font-weight: 700; margin: 0 0 6px; }
.mod-result-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.mod-result-rows dt { font-weight: 600; opacity: 0.8; }
.mod-result-rows dd { margin: 0; overflow-wrap: anywhere; }
.mod-result-rows dd:first-child { grid-column: 1 / -1; }
.mod-history { margin-top: 18px; }
.mod-history h3 { font-size: 16px; margin: 0 0 10px; }
.mod-removed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mod-removed li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mod-removed form { margin: 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { display: grid; gap: 4px; padding: 16px 18px; }
.stat-n { font: 600 30px/1 var(--display); color: var(--star); }
.stat-l { color: var(--faint); font-size: 14px; font-weight: 600; }
.staff-card { display: flex; align-items: center; gap: 18px; }
.staff-card > img { display: block; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--space-2), 0 0 0 4px var(--line-strong); }
.staff-card > img { width: 56px; height: 56px; }
.staff-card > div { min-width: 0; }
.staff-card h2 { font-size: 18px; margin-bottom: 8px; overflow-wrap: anywhere; }
.staff-card-label { font-size: 14px; font-weight: 700; color: var(--faint); margin: 0 0 8px; }
.staff-card .muted-ink { margin: 0; }

/* Developer Panel: every block is a panel on one grid, forms beside their lists */
.dash-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; padding-bottom: 88px; }
.dash-grid > .panel { margin: 0; min-width: 0; scroll-margin-top: var(--sticky); } /* a wide table scrolls in its own box instead of widening the page */
.dash-grid > .panel > h2 { font-size: 20px; margin-bottom: 16px; }
.dash-wide { grid-column: 1 / -1; }
.dash-list .staff-list { margin-bottom: 0; }
.dash-list .staff-list li { background: var(--space); }
/* Mod control: the counts, the filter and search, and the accounts */
.mod-linked { display: inline-flex; align-items: center; gap: 2px; margin: 4px 0 0 44px; }
.btn-ghost { background: transparent; }
.mod-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mod-stat { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
.mod-stat strong { font: 700 30px/1.1 var(--display); color: var(--star); }
.mod-stat span { font-weight: 600; color: var(--dim); }
.mod-stat small { color: var(--faint); font-size: 13px; }
/* On a phone the number boxes go two to a row instead of one, so they take half the scrolling */
@media (max-width: 560px) {
  .mod-stats, .stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mod-stat, .stats-4 .stat { padding: 12px 14px; }
  .mod-stat strong, .stats-4 .stat-n { font-size: 24px; }
  .mod-stat span, .stats-4 .stat-l { font-size: 13.5px; }
  .mod-stat small, .stats-4 .stat-l small { font-size: 12px; }
}

/* The Store, when PayNow sells: one name box for the purchase, a Buy button on each item */
.form.store-buy { display: grid; gap: 8px; }
.store-for { display: grid; gap: 8px; max-width: 520px; margin-bottom: 18px; }
.store-for label { font-weight: 700; }
.store-for .hint { margin: 0; }
/* their own Minecraft account: no name to type; a gift for someone else opens the box */
.store-for-name { margin: 0; }
.store-for-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.store-name-status { font-size: 13px; font-weight: 600; color: var(--mint); }
.store-name-status.is-error { color: var(--plasma); }
.store-for-name strong { color: var(--ion); }
.store-gift > summary { width: fit-content; color: var(--dim); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.store-gift > summary:hover { color: var(--star); }
.store-gift > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.store-gift label { display: block; margin: 12px 0 6px; }
.store-gift .hint { margin-top: 6px; }
.shop-foot .btn { flex: none; }
.shop-was { color: var(--faint); font-weight: 500; margin-right: 4px; }
.shop-price small { color: var(--faint); font-weight: 600; }
.store-testing { border-color: rgba(255, 209, 102, 0.5); background: rgba(255, 209, 102, 0.08); color: var(--star); }
.btn.is-disabled { opacity: 0.55; cursor: default; pointer-events: none; }
/* the owners' editing on the Store page: + next to a section adds an item there; ✏️ edits an item in its own box */
.offer-new > summary, .offer-edit > summary { list-style: none; width: fit-content; }
.offer-new > summary::-webkit-details-marker, .offer-edit > summary::-webkit-details-marker { display: none; }
.shop-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
/* more specific than .shop-section .section-title, whose space underneath would push the + below the words */
.shop-section .shop-section-head .section-title { margin-bottom: 0; line-height: 1.15; }
.shop-section { scroll-margin-top: calc(var(--sticky) + 12px); }
.add-btn { position: relative; flex: none; width: 32px; height: 32px; padding: 0; border: 2px solid var(--ion); border-radius: 50%; background: var(--ion); color: var(--space); cursor: pointer; box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.18), 0 6px 18px rgba(140, 203, 255, 0.28); transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.add-btn:hover { background: #fff; border-color: #fff; box-shadow: 0 0 0 4px rgba(140, 203, 255, 0.3), 0 8px 22px rgba(140, 203, 255, 0.4); }
.add-btn[aria-expanded="true"] { background: var(--star); border-color: var(--star); }
/* the plus is drawn, not typed, so it sits in the exact middle whatever the font; while the form is open it turns into an x */
.add-btn-plus, .add-btn-plus::after { position: absolute; top: 50%; left: 50%; width: 14px; height: 2.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.add-btn-plus { transition: transform 0.2s; }
.add-btn-plus::after { content: ''; transform: translate(-50%, -50%) rotate(90deg); }
.add-btn[aria-expanded="true"] .add-btn-plus { transform: translate(-50%, -50%) rotate(45deg); }
.add-btn:focus-visible, .shop-edit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.offer-panel { margin-bottom: 16px; }
.offer-panel-title { margin: 0 0 12px; font-size: 18px; }
.shop-card { position: relative; }
.shop-edit { position: absolute; top: 12px; right: 12px; border: 1px solid var(--line-strong); background: var(--space-2); cursor: pointer; }
.shop-edit[aria-expanded="true"] { background: var(--star); }
.shop-editor { min-width: 0; }
/* an item being edited takes the whole row (the cells are a wrapping flex row), and its form sits on a line of its
   own under the item, even where a wide item lays out side by side */
.shop-grid .fill-cell.is-editing { flex-basis: 100%; }
.shop-card:has(> .shop-editor:not([hidden])) { flex-wrap: wrap; }
.shop-card > .shop-editor { flex: 1 0 100%; min-width: 0; }
/* while an item is edited, the editor takes the place of its picture, words, price and ✏️ */
.shop-card:has(> .shop-editor:not([hidden])) > :not(.shop-editor) { display: none; }
.upload-btn { width: fit-content; cursor: pointer; }
.upload-btn:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
/* a category's ✏️ (rename or remove it), its small form, and New category under the last one */
.category-edit { flex: none; border: 1px solid var(--line-strong); background: var(--space-2); cursor: pointer; }
.category-edit[aria-expanded="true"] { background: var(--star); }
/* ↑ and ↓: move a category up or down the page */
.category-move { display: inline-flex; gap: 6px; margin: 0; }
.category-move .category-edit svg { width: 15px; height: 15px; fill: none; stroke: var(--dim); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.category-move .category-edit:hover:not(:disabled) svg { stroke: var(--star); }
.category-move .category-edit:disabled { opacity: 0.35; cursor: default; }
.category-edit:focus-visible, .add-line:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.category-panel { max-width: 560px; margin-bottom: 16px; }
.category-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; }
.category-label { grid-column: 1 / -1; font-weight: 700; }
.category-actions { display: flex; gap: 8px; }
.category-note { margin-top: 10px; }
@media (max-width: 520px) {
  .category-form { grid-template-columns: minmax(0, 1fr); }
  .category-actions { justify-content: flex-end; }
}
.shop-empty { margin-bottom: 8px; }
.add-line { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; color: var(--dim); font: 600 18px var(--display); cursor: pointer; }
.add-line:hover { color: #fff; }
.add-line .add-btn { display: inline-block; }
.add-line:hover .add-btn { background: #fff; border-color: #fff; }
.add-line[aria-expanded="true"] .add-btn { background: var(--star); border-color: var(--star); }
.add-line[aria-expanded="true"] .add-btn-plus { transform: translate(-50%, -50%) rotate(45deg); }
.shop-new-category .category-panel { margin: 14px 0 0; }
/* a category's name, double-clicked to rename it in place */
.category-title { cursor: text; }
.category-title.is-saving { opacity: 0.6; }
.category-inline { max-width: min(100%, 70vw); margin: -3px 0 -3px -9px; padding: 2px 8px; font: inherit; color: inherit; letter-spacing: inherit; background: var(--space); border: 1px solid var(--ion); border-radius: var(--r-sm); box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); outline: none; }

/* An offer edited in place (views/partials/offer-form.ejs): the picture, name, text and price where they show, with a
   dashed edge to say they can be changed; the section and the commands in one compact row under them. */
.offer-inline { display: grid; gap: 14px; width: 100%; min-width: 0; }
.oi-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 22px; align-items: start; }
.oi-pic-face { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--space-2); overflow: hidden; cursor: pointer; list-style: none; }
.oi-pic-face::-webkit-details-marker { display: none; }
.oi-pic-face img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.oi-pic-none { color: var(--faint); font-size: 13px; font-weight: 700; text-align: center; }
/* like changing a profile picture in Discord: the picture darkens and says Change */
.oi-pic-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; background: rgba(4, 5, 13, 0.66); color: var(--star); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transition: opacity 0.15s; }
.oi-pic-pencil { font-size: 20px; letter-spacing: 0; }
.oi-pic-face:hover .oi-pic-overlay, .oi-pic-face:focus-visible .oi-pic-overlay, .oi-pic-pop[open] .oi-pic-overlay { opacity: 1; }
/* and a small pencil that always shows, for screens with no mouse to hover with */
.oi-pic-face::after { content: '✏️'; position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ion); font-size: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transition: opacity 0.15s; }
.oi-pic-face:hover::after, .oi-pic-pop[open] .oi-pic-face::after { opacity: 0; }
.oi-pic-face:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.oi-pic-panel { width: min(300px, 86vw); }
.oi-pic-title { margin: 0; font-weight: 800; color: var(--star); }
.oi-pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; max-height: 196px; overflow: auto; }
.oi-pic-choice { aspect-ratio: 1; padding: 4px; border: 2px solid transparent; border-radius: 10px; background: var(--space-2); cursor: pointer; }
.oi-pic-choice img { display: block; width: 100%; height: 100%; object-fit: contain; }
.oi-pic-choice:hover { border-color: var(--line-strong); }
.oi-pic-choice.is-on { border-color: var(--ion); }
.oi-pic-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.oi-pic-panel .hint { margin: 0; font-size: 12px; }
.oi-words { display: grid; gap: 6px; min-width: 0; }
.oi-name, .oi-text, .oi-price-box input { width: 100%; padding: 4px 8px; border: 1px dashed var(--line-strong); border-radius: 8px; background: rgba(255, 255, 255, 0.02); color: var(--star); }
.oi-name { font: 600 20px/1.3 var(--display); }
.oi-text { font: 500 15px/1.5 var(--body); color: var(--dim); resize: vertical; }
.oi-name:hover, .oi-text:hover, .oi-price-box input:hover { border-color: var(--ion); }
.oi-name:focus, .oi-text:focus, .oi-price-box input:focus { border-style: solid; border-color: var(--ion); outline: none; box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); }
.oi-name::placeholder, .oi-text::placeholder, .oi-price-box input::placeholder { color: #5F6896; }
.oi-price { display: grid; justify-items: end; gap: 4px; }
.oi-price-box { display: flex; align-items: center; gap: 4px; font: 600 24px var(--display); color: var(--star); }
.oi-price-box input { width: 4.4em; font: inherit; text-align: right; }
.oi-price-note { color: var(--faint); font-size: 12px; font-weight: 700; }
.oi-more { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.offer-inline .oi-more .field { display: grid; gap: 6px; align-content: start; margin: 0; }
.oi-more label { color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.form textarea.oi-cmd { font: 13px/1.45 var(--mono); padding: 8px 10px; }
.oi-more select, .oi-more .oi-new-section { padding-top: 8px; padding-bottom: 8px; }
.oi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.oi-foot .checkbox { font-size: 14px; }
.oi-gap { flex: 1; }
@container (max-width: 640px) {
  .oi-main { grid-template-columns: auto minmax(0, 1fr); }
  .oi-price { grid-column: 2; justify-items: start; }
  .oi-more { grid-template-columns: minmax(0, 1fr); }
  .oi-pic-face { width: 88px; height: 88px; }
}
@media (max-width: 640px) {
  .oi-main { grid-template-columns: auto minmax(0, 1fr); }
  .oi-price { grid-column: 2; justify-items: start; }
  .oi-more { grid-template-columns: minmax(0, 1fr); }
  .oi-pic-face { width: 88px; height: 88px; }
}
/* Developer Panel → Store */
.dev-store { display: grid; gap: 16px; }
.store-status { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
.store-status p { margin: 0; color: var(--dim); font-size: 14px; }
.tag.is-live { color: var(--mint); border-color: rgba(94, 230, 168, 0.45); }
.tag.is-test { color: var(--sun); border-color: rgba(255, 209, 102, 0.45); }
.offer-new[open] > summary { margin-bottom: 12px; }
/* Rules page, for the owners: ✏️ turns a rule into its editor in place, + next to a section adds one */
.rule-section-title { display: flex; align-items: center; gap: 14px; }
.rule-section-title h2 { margin: 0; }
.rule-card { position: relative; }
.rule-edit { position: absolute; top: 10px; right: 10px; border: 1px solid var(--line-strong); background: var(--space-2); cursor: pointer; }
.rule-card:has(> .rule-edit) > div:not(.rule-editor) { padding-right: 30px; }
.rule-card:has(> .rule-editor:not([hidden])) > :not(.rule-editor) { display: none; }
.rule-card > .rule-editor { grid-column: 1 / -1; min-width: 0; }
.rule-card:has(> .rule-editor:not([hidden])) { transform: none; }
.rule-cards .fill-cell.is-editing { flex-basis: 100%; }
.rule-add { margin: 0 0 14px; }
.rule-inline { display: grid; gap: 12px; width: 100%; }
.ri-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.ri-words { display: grid; gap: 6px; min-width: 0; }
.ri-num, .ri-title, .ri-text { width: 100%; padding: 4px 8px; border: 1px dashed var(--line-strong); border-radius: 8px; background: rgba(255, 255, 255, 0.02); color: var(--star); }
.ri-num { width: 3.6em; font: 600 16px var(--mono); color: var(--plasma); text-align: center; }
.ri-title { font: 700 17px/1.35 var(--body); }
.ri-text { font: 500 15px/1.5 var(--body); color: var(--dim); resize: vertical; }
.ri-num:hover, .ri-title:hover, .ri-text:hover { border-color: var(--ion); }
.ri-num:focus, .ri-title:focus, .ri-text:focus { border-style: solid; border-color: var(--ion); outline: none; box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); }
.ri-num::placeholder, .ri-title::placeholder, .ri-text::placeholder { color: #5F6896; }
.ri-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ri-foot .checkbox { font-size: 14px; }

/* Developer Panel → Store: give or take back by hand */
.store-give { display: grid; gap: 12px; margin: 4px 0 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
.store-give h3 { margin: 0; font-size: 18px; }
.store-give .hint { margin: 0; }
.store-give-forms { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 28px; align-items: end; }
.give-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.store-give .give-form .field { flex: 1 1 160px; display: grid; gap: 6px; margin: 0; }
.give-form .btn { flex: none; }
.player-items { display: grid; gap: 8px; }
.player-items-title { margin: 0; color: var(--dim); }
.player-item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.player-item-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--space-2); }
.pi-name { font-weight: 700; color: var(--star); }
.pi-meta { flex: 1; color: var(--faint); font-size: 13px; }
.player-item-list form { margin: 0; }
.store-give-warn { color: var(--sun); }
@media (max-width: 800px) { .store-give-forms { grid-template-columns: minmax(0, 1fr); } }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
.offer-row.is-hidden { opacity: 0.7; border-style: dashed; }
.offer-row img { border-radius: 10px; object-fit: contain; }
.offer-noimg { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: var(--space-2); font-size: 24px; }
.offer-main { min-width: 0; display: grid; gap: 4px; }
.offer-name { margin: 0; font-weight: 700; color: var(--star); }
.offer-meta, .offer-cmd { margin: 0; color: var(--dim); font-size: 14px; overflow-wrap: anywhere; }
.offer-cmd code { font-size: 12px; color: var(--ion); }
.offer-cmd.is-warn { color: var(--sun); }
.offer-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.offer-actions form { margin: 0; }
.offer-edit[open] { grid-column: 1 / -1; }
.offer-row:has(.offer-edit[open]) { grid-template-columns: 56px minmax(0, 1fr); }
.offer-row:has(.offer-edit[open]) .offer-actions { grid-column: 1 / -1; justify-content: flex-start; }
.offer-edit[open] .offer-inline { margin-top: 12px; }
@media (max-width: 640px) { .offer-row { grid-template-columns: 56px minmax(0, 1fr); } .offer-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* Developer Panel: Statistics (the site's visits and logins, the bot's commands) */
.dev-stats, .dev-bot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dev-stats h2, .dev-bot h2 { margin: 0; }
.stats-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.stats-now { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-weight: 600; }
.stats-now strong { color: var(--star); font: 700 20px/1 var(--display); }
.stats-range { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.form.stats-dates { display: flex; flex-flow: row wrap; align-items: center; gap: 8px; margin: 0; }
.form.stats-dates label { color: var(--dim); font-weight: 600; font-size: 14px; }
.form.stats-dates input[type="date"] { width: auto; min-width: 150px; padding-top: 8px; padding-bottom: 8px; color-scheme: dark; }
.stats-showing { margin: -6px 0 0; }
.stats-cards { margin-bottom: 0; }
.stats-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.chart { margin: 0; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); display: grid; gap: 10px; min-width: 0; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--dim); font-weight: 600; }
.chart figcaption strong { color: var(--star); font: 700 18px/1 var(--display); }
.chart svg { display: block; width: 100%; height: 90px; }
.chart rect { fill: var(--ion); opacity: 0.85; }
.chart rect:hover { opacity: 1; fill: var(--star); }
.chart-logins rect { fill: var(--mint); }
.chart-commands rect { fill: var(--nebula); }
.chart-axis { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--faint); }
.chart-empty { margin: 0; min-height: 90px; display: grid; place-items: center; color: var(--faint); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.stats-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.stats-lists h3 { margin: 0 0 8px; font-size: 15px; color: var(--dim); }
.rank-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
.rank-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list code { color: var(--ion); overflow-wrap: anywhere; }
.rank-list li > :nth-child(2) { font-weight: 700; color: var(--star); font-variant-numeric: tabular-nums; }
.rank-list small { grid-column: 1 / -1; color: var(--faint); font-size: 12px; }

/* Developer Panel: Bot control (every command and who may run it) */
.bot-lead { margin: 0; color: var(--dim); }
.bot-lead strong { color: var(--star); }
.bot-table { min-width: 760px; }
.bot-table tbody th { white-space: normal; min-width: 240px; }
.bot-table .bot-name { display: block; font-size: 15px; }
.bot-desc { display: block; margin-top: 4px; font-weight: 500; font-size: 14px; color: var(--dim); }
.bot-subs, .bot-sub-note { display: block; margin-top: 4px; font-weight: 500; font-size: 13px; color: var(--faint); }
.bot-ranks { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--dim); }
.bot-who.is-owners { color: var(--plasma); }
.bot-who.is-rank { color: var(--ion); }
.bot-who.is-team { color: var(--sun); }
.bot-who.is-anyone { color: var(--mint); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bot-ranks-heading { margin: 8px 0 0; }
.rank-table td { line-height: 2; }
.role-tag { display: inline-flex; align-items: baseline; gap: 6px; margin: 2px 6px 2px 0; }
.role-tag small { color: var(--faint); font-size: 11px; }
.bot-summary { display: grid; gap: 4px; }
.form.add-role { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
.form.add-role h3 { margin: 0; font-size: 17px; }
.form.add-role .hint { margin: 0 0 6px; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 420px) { .cmd-grid { grid-template-columns: 1fr; } }
.cmd-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); scroll-margin-top: calc(var(--sticky) + 12px); }
.cmd-card:target { border-color: var(--ion); box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.18); }
.cmd-card.is-off { border-style: dashed; background: rgba(255, 92, 138, 0.05); }
.cmd-card.is-off .cmd-name { color: var(--faint); text-decoration: line-through; }
.cmd-top { display: flex; align-items: center; gap: 10px; }
.cmd-name { font-size: 16px; font-weight: 700; color: var(--ion); overflow-wrap: anywhere; }
.cmd-switch { margin: 0; flex: none; }
/* the switch always sits at the card's right edge */
.cmd-top .cmd-switch { margin-left: auto; }
.cmd-desc { margin: 0; color: var(--dim); font-size: 14px; }
.cmd-subs { margin: -4px 0 0; color: var(--faint); font-size: 13px; }
.cmd-facts { margin: 0; display: grid; gap: 6px; }
.cmd-facts div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.cmd-facts dt { color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cmd-facts dd { margin: 0; color: var(--dim); font-size: 14px; }
.cmd-note { margin: 0; color: var(--faint); font-size: 13px; }
/* Which ranks: a button with how many, opening onto one pill per rank in the rank's colour */
.cmd-ranks summary { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 8px 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space-2); color: var(--star); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.cmd-ranks summary::-webkit-details-marker { display: none; }
.cmd-ranks summary::before { content: '▸'; color: var(--ion); transition: transform 0.15s; }
.cmd-ranks[open] summary::before { transform: rotate(90deg); }
.cmd-ranks summary:hover { border-color: var(--ion); }
.cmd-ranks-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--space-3); color: var(--ion); font-size: 12px; text-align: center; }
.rank-pills { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rank-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space-2); color: var(--star); font-size: 13px; font-weight: 600; }
.rank-pill .role-dot { width: 10px; height: 10px; }
.cmd-roles { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space-2); font-size: 13px; font-weight: 600; color: var(--star); }
.role-chip small { margin-left: 6px; color: var(--faint); font-size: 11px; font-weight: 500; }
.role-chip.is-gone { opacity: 0.6; }
.role-chip form { margin: 0; display: inline-flex; }
.chip-x { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint); font-size: 16px; line-height: 1; cursor: pointer; }
.chip-x:hover, .chip-x:focus-visible { background: rgba(255, 92, 138, 0.16); color: var(--plasma); }
.cmd-add-link { width: fit-content; font-size: 13px; font-weight: 700; color: var(--ion); text-decoration: none; }
.cmd-add-link:hover { text-decoration: underline; }
.cmd-none { margin: 0; color: var(--faint); font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space-2); color: var(--faint); font: 700 13px/1 var(--body); cursor: pointer; }
.switch-knob { width: 18px; height: 18px; border-radius: 50%; background: var(--faint); transition: background 0.15s; }
.switch.is-on { color: var(--mint); border-color: rgba(94, 230, 168, 0.45); }
.switch.is-on .switch-knob { background: var(--mint); }
.switch:not(.is-on) { color: var(--plasma); border-color: rgba(255, 92, 138, 0.45); }
.switch:not(.is-on) .switch-knob { background: var(--plasma); }
.switch:hover { background: var(--space-3); }
/* it reads like a switch: on, the knob sits on the right; off, on the left */
.switch.is-on { flex-direction: row-reverse; padding: 4px 4px 4px 12px; }
.cmd-filters { width: fit-content; max-width: 100%; }
.filter-count { margin-left: 4px; font-size: 12px; opacity: 0.7; font-variant-numeric: tabular-nums; }
/* Pop-up panels in Bot control: rename, and the Add role / Remove role menus, dark like Discord's */
.pop { position: relative; display: inline-block; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(300px, 80vw); padding: 12px; border: 1px solid #2B2D31; border-radius: 10px; background: #111214; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); display: grid; gap: 10px; }
.cmd-top .pop-panel { left: auto; right: -60px; }
.pop-form { display: grid; gap: 8px; margin: 0; }
.pop-form label { font-size: 13px; font-weight: 700; color: var(--dim); }
.pop-form .hint { margin: 0; font-size: 12px; }
.pop-row { display: flex; align-items: center; gap: 4px; }
.pop-slash { color: var(--faint); font: 700 16px var(--mono); }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; color: var(--faint); }
.icon-btn:hover, .pop[open] > .icon-btn { background: var(--space-3); }
.role-menu-panel { width: 270px; padding: 8px; }
.role-search { width: 100%; padding: 7px 10px; border: 0; border-radius: 4px; background: #1E1F22; color: var(--star); font: 500 14px var(--body); }
.role-search:focus { outline: 2px solid var(--blurple); }
.role-picks { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; display: grid; gap: 1px; }
.role-picks .role-group { padding: 8px 8px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #949BA4; }
.role-pick { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #DBDEE1; font: 600 14px var(--body); text-align: left; cursor: pointer; }
.role-pick:hover, .role-pick:focus-visible { background: #35373C; color: #fff; outline: none; }
.role-pick small { margin-left: auto; color: #949BA4; font-size: 11px; }
.role-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c, #99AAB5); }
.role-chip .role-dot { margin-right: 2px; }
.role-chip .pop, .role-tag .pop { margin-left: 2px; }
.role-tag { position: relative; }
.role-menu-fallback { margin: 0; }
.cmd-role-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cmd-delete { margin: 0 0 0 auto; }
/* the commands deleted from the page, to bring back */
.cmd-deleted { display: grid; gap: 10px; margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.cmd-deleted h3 { margin: 0; font-size: 17px; }
.cmd-deleted .hint { margin: 0; }
.cmd-deleted-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cmd-deleted-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--space); }
.cmd-deleted-list .cmd-note { flex: 1; min-width: 12em; }
.cmd-deleted-list form { margin: 0; }
.cmd-mode { display: inline-flex; flex-wrap: wrap; width: fit-content; max-width: 100%; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--space-2); }
.cmd-mode form { margin: 0; display: flex; }
.seg { padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: 600 13px var(--body); cursor: pointer; }
.seg.is-on { background: var(--star); color: var(--space); cursor: default; }
.seg:disabled:not(.is-on) { opacity: 0.45; cursor: not-allowed; }
.seg:not(:disabled):hover { color: var(--star); background: rgba(255, 255, 255, 0.06); }
.rank-roles summary { cursor: pointer; font-weight: 700; color: var(--dim); width: fit-content; }
.rank-roles[open] summary { margin-bottom: 10px; }
.mod-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.mod-search { display: flex; gap: 8px; align-items: center; flex: 1 1 260px; max-width: 420px; }
.mod-search input { flex: 1; min-width: 0; }
.form.mod-search input { padding-top: 8px; padding-bottom: 8px; }
.mod-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mod-who img { border-radius: 50%; flex: none; background: var(--space-3); }
.mod-who > span { display: grid; min-width: 0; }
.mod-name { font-weight: 700; color: var(--star); overflow-wrap: anywhere; }
.mod-id { font-size: 13px; color: var(--faint); overflow-wrap: anywhere; }
.mod-state { font-weight: 600; color: var(--mint); }
.mod-state.is-removed { color: #FF9AB6; }
.mod-state.is-staff { color: #FF6B6B; }
.mod-state.is-developer { color: #B98CFF; }
.form .field { display: grid; gap: 7px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form label { font-weight: 700; font-size: 14px; }
.optional { font-weight: 500; color: var(--faint); }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form select,
.form textarea {
  font: 500 16px/1.5 var(--body);
  color: var(--star);
  background: var(--space);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  width: 100%;
}
.form textarea { resize: vertical; font-family: var(--mono); font-size: 15px; }
.form textarea.plain { font-family: var(--body); font-size: 16px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ion) 50%), linear-gradient(135deg, var(--ion) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ion); outline: none; box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); }
.form ::placeholder { color: #5F6896; }
.hint { font-size: 14px; color: var(--faint); margin: 0; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 15px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--ion); }
.staff-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.staff-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.staff-list p { margin: 0; }
.staff-list form { margin: 0; flex: none; }
.staff-list-title { font-weight: 700; }
.staff-list-meta { color: var(--faint); font-size: 14px; margin-top: 6px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 920px) {
  .dash, .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row .field:first-child { grid-column: 1 / -1; } }

/* ── Shop ────────────────────────────────────────────────── */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.shop-section { padding: 0 0 44px; scroll-margin-top: var(--sticky); }
.shop-section:last-child { padding-bottom: 88px; }
.shop-section .section-title { margin-bottom: 16px; }
.shop-grid { gap: 18px; }
.shop-grid .fill-cell { --cell: 250px; }
.shop-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.shop-art { display: block; flex: none; width: 136px; height: 136px; object-fit: contain; align-self: center; margin-bottom: 4px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5)); }
.shop-words { display: grid; gap: 10px; min-width: 0; }
.shop-card h3 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.shop-card p { margin: 0; color: var(--dim); font-size: 15px; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
/* a card with a row to itself: the picture, the words and the price side by side */
@container (min-width: 560px) {
  .shop-card { flex-direction: row; align-items: center; gap: 28px; padding: 22px 32px 22px 26px; }
  .shop-art { width: 112px; height: 112px; margin: 0; }
  .shop-words { flex: 1; }
  .shop-card h3 { font-size: 20px; }
  .shop-card p { max-width: 70ch; }
  .shop-foot { flex: none; margin: 0; padding: 0; }
  .shop-price { font-size: 24px; }
}
.shop-price { font: 600 20px var(--display); color: var(--star); }
.shop-price.is-free { color: var(--mint); }
/* next to every price: PayNow's prices are the visitor's own, VAT included (src/paynow.js) */
.shop-vat { font: 700 11px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; vertical-align: middle; }

/* ── Moderation log (on the profile): Discord on the left, in-game on the right ── */
.modlog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.modlog-side { padding: 16px 18px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); }
.modlog-side h3 { font-size: 16px; margin-bottom: 12px; }
.modlog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.modlog-list li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--space); border: 1px solid var(--line); }
.modlog-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0; color: var(--faint); font-size: 14px; font-weight: 600; }
.modlog-kind { font: 700 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; }
.modlog-warn { color: #FFD479; background: rgba(255, 196, 87, 0.12); }
.modlog-mute { color: #FFB38A; background: rgba(255, 140, 80, 0.14); }
.modlog-ban { color: #FF9AB6; background: rgba(255, 92, 138, 0.16); }
.modlog-lifted { color: var(--mint); background: rgba(94, 230, 168, 0.12); }
.modlog-reason { margin: 10px 0 0; overflow-wrap: anywhere; }
.modlog-code { margin: 6px 0 0; color: var(--faint); font-size: 14px; }
.modlog-empty { color: var(--dim); margin: 0; }
/* adding the other account, right where its record would be */
.modlog-action { margin-top: 12px; }
.profile-connect { margin-left: 8px; vertical-align: middle; }
.modlog-add { display: flex; gap: 8px; margin: 12px 0 6px; }
.modlog-add input { flex: 1; min-width: 0; }
.modlog-side .hint { margin: 0; }
.linked-name { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; }
.linked-name img { border-radius: 4px; image-rendering: pixelated; }
.linked-warn { display: block; font-size: 13px; font-weight: 600; margin: 2px 0 4px; color: #FFB86B; }
.modlog-alert { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 184, 107, 0.1); border: 1px solid rgba(255, 184, 107, 0.35); color: #FFD3A0; font-size: 14px; }
.inline-form { display: inline; margin: 0; }
.link-button { border: 0; padding: 0; background: none; color: var(--ion); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--star); }
@media (max-width: 1100px) { .modlog-grid { grid-template-columns: 1fr; } }

/* ── Settings (personal) ─────────────────────────────────── */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings .panel { display: grid; gap: 6px; align-content: start; }
.settings noscript { grid-column: 1 / -1; }
@media (max-width: 900px) { .settings { grid-template-columns: minmax(0, 1fr); } }
.settings h2 { font-size: 20px; margin-bottom: 6px; }
.settings .panel > .hint { margin-bottom: 6px; }
.setting { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: var(--r-sm); cursor: pointer; }
.setting:hover { background: rgba(255, 255, 255, 0.04); }
.setting input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ion); cursor: pointer; }
.setting span { display: grid; gap: 2px; min-width: 0; }
.setting strong { font-weight: 700; }
.setting small { color: var(--faint); font-size: 14px; }
.setting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 24px; margin-bottom: 6px; }
.settings-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 14px; }
.settings-foot .hint { flex: 1; min-width: 220px; }
.settings-foot form { margin: 0; }
.settings-after { padding: 18px 0 88px; }
.settings-status { font-weight: 700; color: var(--mint); }
.settings-status:not(:empty) { margin-right: 6px; }
.settings-status.is-error { color: #FF9AB6; }

/* The light and the eyes switched off on the Settings page: gone at once, even before the mouse moves again */
html.no-light .cursor-light { display: none; }
html.no-follow .mascot-iris { transform: none !important; }

/* "Animations" switched off on the Settings page: nothing moves on its own */
html.less-motion *, html.less-motion *::before, html.less-motion *::after { animation: none !important; }

/* ── Recruitment ─────────────────────────────────────────── */
/* one window per application, the width of the page: the team and the Apply button, then what it asks of you */
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.empty + .apps { margin-top: 18px; }
.app-card { display: grid; grid-template-columns: minmax(340px, 4fr) minmax(0, 4fr) minmax(0, 4fr); padding: 0; overflow: hidden; }
.app-card > * { padding: 26px 28px; min-width: 0; }
.app-card > * + * { border-left: 1px solid var(--line); }
.app-id { display: grid; gap: 18px; align-content: start; background: rgba(255, 255, 255, 0.022); }
.app-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; }
/* the team's logo, big, beside its name */
.app-logo { display: block; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.app-logo-emoji { display: grid; place-items: center; font-size: 54px; line-height: 1; border-radius: 26px; background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--line-strong); filter: none; }
.app-title h3 { font-size: 22px; margin: 0 0 8px; overflow-wrap: anywhere; }
.app-title p { color: var(--dim); margin: 0; }
.app-state { flex: none; align-self: start; font: 700 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; }
.app-state.is-open { color: var(--mint); background: rgba(94, 230, 168, 0.12); }
.app-state.is-closed { color: #FF9AB6; background: rgba(255, 92, 138, 0.16); }
.app-title .app-state { display: inline-block; margin-bottom: 10px; }
/* applying, right here */
.app-apply { display: grid; gap: 10px; justify-items: start; }
.app-apply form { margin: 0; }
.app-apply .hint { max-width: 44ch; }
/* the requirements and rules, as smaller text inside the window */
.app-part { display: grid; gap: 12px; align-content: start; }
.app-part h4 { font: 700 12.5px/1 var(--body); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.app-part .ticks { gap: 8px; font-size: 14.5px; color: var(--dim); }
.app-part .ticks li { padding-left: 22px; }
.app-part .ticks li::before { left: 2px; top: 0.5em; width: 8px; height: 8px; }
.app-part p { font-size: 14.5px; color: var(--dim); margin: 0; }
.app-part .app-note { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.app-manage { display: grid; gap: 10px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.app-manage form { margin: 0; }
/* a window with one column of text, or none, still takes its whole width */
.app-card > .app-id:only-child { grid-column: 1 / -1; }
.app-card > .app-part:nth-child(2):last-child { grid-column: span 2; }
.applied-text { font-weight: 500; white-space: pre-line; }
@media (max-width: 1100px) {
  .app-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-id { grid-column: 1 / -1; }
  .app-card > .app-id + * { border-left: 0; }
  .app-card > .app-part { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .app-card { grid-template-columns: minmax(0, 1fr); }
  .app-card > * { padding: 22px 20px; }
  .app-card > * + * { border-left: 0; }
  .app-logo { width: 76px; height: 76px; }
  .app-logo-emoji { font-size: 36px; border-radius: 18px; }
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 10px; height: 10px; border-radius: 3px; background: var(--mint); }
.ticks-warn li::before { background: var(--plasma); }

/* ── Developer Panel: the API key ─────────────────────────── */

/* ── Tickets ─────────────────────────────────────────────── */
.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 14px 18px; color: inherit; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.ticket-row:hover { color: inherit; border-color: var(--line-strong); background: var(--space-3); }
.ticket-row-main { display: grid; gap: 2px; min-width: 0; }
.ticket-row-main strong { font: 600 16px var(--display); }
.ticket-row-kind { color: var(--faint); font-size: 14px; overflow-wrap: anywhere; }
.ticket-row-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 14px; font-weight: 600; }
.ticket-row-go { color: var(--ion); font-weight: 700; }
/* a closed ticket of one's own has a small button beside it that takes it off the account */
.ticket-item.has-remove { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.ticket-remove { margin: 0; display: flex; }
.ticket-remove-button { display: grid; place-items: center; width: 44px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(10, 14, 38, 0.6); color: var(--faint); cursor: pointer; transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
.ticket-remove-button:hover { color: #FF9AB6; border-color: rgba(255, 92, 138, 0.45); background: rgba(255, 92, 138, 0.12); }

.ticket-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 26px 0 18px; }
.ticket-head h1 { font-size: clamp(26px, 4vw, 40px); margin: 0; overflow-wrap: anywhere; }
.ticket-crumb { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
/* a page that is one form: what it is for on the left, the form itself on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; padding: 64px 0 88px; }
.split-head { position: sticky; top: var(--sticky); }
.split-head img { display: block; width: 112px; height: 112px; margin-bottom: 22px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55)); }
.split-head h1 { font-size: clamp(30px, 3.4vw, 46px); overflow-wrap: anywhere; }
.split-head p { color: var(--dim); font-size: 18px; max-width: 44ch; margin: 0; }
.split-body { min-width: 0; }
.split-body .notice:last-child { margin: 0; }
.ticket-form { margin: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 44px; }
  .split-head { position: static; }
  .split-head img { width: 76px; height: 76px; margin-bottom: 16px; }
}

/* the conversation, with what the ticket was opened with beside it */
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; padding-bottom: 72px; }
.ticket-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: min(72vh, 760px); min-height: 440px; }
.ticket-chat[data-status="closed"] { height: auto; min-height: 0; }
.ticket-details { padding: 20px 22px; position: sticky; top: var(--sticky); }
.ticket-details h2 { font: 700 13px/1 var(--body); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }
.ticket-facts { display: grid; gap: 10px; margin: 0 0 16px; }
.ticket-facts div { display: flex; justify-content: space-between; gap: 14px; }
.ticket-facts dt { color: var(--faint); font-weight: 600; }
.ticket-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ticket-opening { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.ticket-q { margin: 0 0 3px; color: var(--faint); font-size: 13px; font-weight: 700; }
.ticket-a { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.msgs { list-style: none; margin: 0; padding: 14px 14px 10px; display: grid; align-content: start; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ticket-chat[data-status="closed"] .msgs { overflow: visible; }
.msgs:empty { display: none; }
.msgs-empty { margin: 0; padding: 28px 20px; color: var(--faint); text-align: center; flex: 1; display: grid; place-items: center; }
.msgs-empty[hidden], .tray[hidden], .slash[hidden] { display: none; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 10px; border-radius: 12px; transition: background-color 0.12s; }
.msg:hover, .msg:focus-within { background: rgba(255, 255, 255, 0.035); }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; display: block; object-fit: cover; background: var(--space-3); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 2px; }
.msg-head strong { font-weight: 700; overflow-wrap: anywhere; }
.msg-head time { color: var(--faint); font-size: 13px; font-weight: 600; }
/* staff carry their rank beside their name: the Developer logo for developers, the Staff logo for the rest */
.msg-badge { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1 var(--body); padding: 2px 9px 2px 3px; border-radius: 999px; }
.msg-badge img { display: block; width: 20px; height: 20px; }
.msg-badge-staff { color: #FFB3C4; background: rgba(255, 92, 138, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 92, 138, 0.35); }
.msg-badge-developer { color: #D9C9FF; background: rgba(139, 124, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(139, 124, 255, 0.4); }
.msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg-file-box { margin: 0; max-width: min(420px, 100%); }
.msg-files-many .msg-file-box { max-width: min(240px, 100%); }
.msg-file { display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
a.msg-file { width: fit-content; }
a.msg-file img { display: block; max-width: 100%; width: auto; height: auto; max-height: 420px; }
.msg-files-many a.msg-file img { max-height: 240px; }
video.msg-file { width: 100%; max-height: 420px; }
.msg-file-name { margin: 4px 0 0; color: var(--faint); font-size: 13px; overflow-wrap: anywhere; }
/* your own message can be taken back: the button shows when you point at the message */
.msg-delete { margin: 0; opacity: 0; transition: opacity 0.12s; }
.msg:hover .msg-delete, .msg:focus-within .msg-delete { opacity: 1; }
@media (hover: none) { .msg-delete { opacity: 1; } }
.msg-delete button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 0; background: none; color: var(--faint); cursor: pointer; }
.msg-delete button:hover { color: #FF9AB6; background: rgba(255, 92, 138, 0.14); }
.msg.is-going { opacity: 0.45; }

.composer { position: relative; display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.composer-box { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 8px; background: var(--space); border: 1px solid var(--line-strong); border-radius: 16px; transition: border-color 0.15s; }
.composer-box:focus-within { border-color: var(--ion); }
.composer textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 180px; resize: none; font: inherit; color: var(--star); background: none; border: 0; outline: none; padding: 7px 4px; }
.composer-file { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--dim); background: rgba(255, 255, 255, 0.06); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.composer-file:hover { color: var(--star); background: rgba(255, 255, 255, 0.12); }
.composer-send { flex: none; }
.composer-send:disabled { opacity: 0.5; cursor: default; }
.composer-status { min-height: 0; }
.composer-status:empty { display: none; }
.composer-status.is-error { color: #FF9AB6; }
/* photos and videos that are uploaded and waiting to go with the next message */
.tray { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tray-item { position: relative; display: flex; align-items: center; gap: 9px; max-width: 240px; padding: 6px 34px 6px 6px; border-radius: 12px; background: var(--space); border: 1px solid var(--line-strong); overflow: hidden; }
.tray-thumb { flex: none; display: block; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--space-3); }
.tray-video { display: grid; place-items: center; font-size: 20px; }
.tray-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-remove { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: var(--star); font: 700 14px/1 var(--body); cursor: pointer; }
.tray-remove:hover { background: rgba(255, 92, 138, 0.35); }
.tray-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ion); transition: width 0.15s linear; }
.tray-item.is-uploading .tray-name { color: var(--faint); }
/* what staff are offered when a message starts with "/" */
.slash { position: absolute; left: 14px; right: 14px; bottom: calc(100% + 6px); z-index: 3; padding: 6px; border-radius: 14px; background: var(--space-2); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.slash-item { display: grid; gap: 3px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.slash-item:hover, .slash-item:focus-visible { background: var(--space-3); outline: none; }
.slash-item code { color: var(--ion); font-weight: 700; background: none; padding: 0; }
.slash-arg { color: var(--faint); font-size: 12px; font-weight: 700; border: 1px dashed var(--line-strong); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.slash-what { color: var(--faint); font-size: 13px; }
.support-where { color: var(--dim); margin: -4px 0 16px; }
@media (max-width: 980px) {
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-details { position: static; order: -1; }
  .ticket-chat { height: min(70vh, 640px); }
}

/* ── A question in the middle of the screen (in place of the browser's own "this page says" box) ── */
dialog.confirm { width: min(440px, calc(100vw - 32px)); padding: 0; color: var(--star); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--space-3), var(--space-2)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
dialog.confirm::backdrop { background: rgba(2, 3, 10, 0.68); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.confirm form { display: grid; gap: 10px; margin: 0; padding: 24px 26px 22px; }
.confirm h2 { font-size: 20px; margin: 0; }
.confirm p { color: var(--dim); margin: 0; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.less-motion) dialog.confirm[open] { animation: confirm-in 0.18s ease; }
}
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ── Support ─────────────────────────────────────────────── */
.support-grid .fill-cell { --cell: 250px; }
.support-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px; }
.support-emoji { font-size: 28px; line-height: 1; margin: 0 0 14px; }
.support-words { min-width: 0; }
.support-card h3 { font-size: 18px; margin-bottom: 6px; }
.support-words > :last-child { margin-bottom: 0; }
.support-words p { color: var(--dim); }
/* the buttons of a row line up along its bottom edge, whatever the length of the words above them */
.support-card > .btn { margin-top: auto; }
.support-card > .support-words:has(+ .btn) { margin-bottom: 16px; }
@container (min-width: 620px) {
  .support-card { flex-direction: row; align-items: center; gap: 22px; padding: 20px 26px; }
  .support-emoji { margin: 0; font-size: 34px; }
  .support-words { flex: 1; }
  .support-card > .support-words:has(+ .btn) { margin-bottom: 0; }
  .support-card > .btn { flex: none; margin: 0; }
}

/* About us lives on Home: links to it stop below the sticky bar, not under it */
#about, #blubmc { scroll-margin-top: var(--sticky); }

/* ── Media ───────────────────────────────────────────────── */
/* the form for an official post: only shown to the people who may post one.
   The form on the left; beside it, what the bot will post in Discord, drawn as it is typed. */
.media-post { margin-bottom: 22px; }
.media-composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.media-composer:has(.media-preview:not([hidden])) { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
.media-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.media-form .field { margin-bottom: 14px; }
.field-label { font-weight: 700; font-size: 14px; }
.media-form-foot { justify-content: space-between; align-items: center; }
.media-form-foot .hint { flex: 1; min-width: 240px; max-width: 78ch; }
.media-add { justify-self: start; cursor: pointer; }
.media-add:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.media-tray { margin-bottom: 2px; }
.media-tray[hidden] { display: none; }
/* the text box with its row of formatting buttons on top */
.md-editor { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--space); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.md-editor:focus-within { border-color: var(--ion); box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); }
.md-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 7px 9px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.md-group { display: inline-flex; align-items: center; gap: 3px; }
.md-label { font: 700 11.5px/1 var(--body); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.md-tool { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--dim); font: 600 14px/1 var(--body); cursor: pointer; }
.md-tool:hover { color: var(--star); background: rgba(255, 255, 255, 0.09); }
.md-tool:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.md-tool-word { font-size: 13px; }
/* the four kinds of change, with the mark the Updates page shows beside each */
.md-tool.md-mark { display: inline-flex; gap: 6px; padding: 0 9px 0 5px; }
.md-mark .mark { width: 20px; height: 20px; margin: 0; font-size: 12px; }
.form .md-editor textarea { display: block; border: 0; border-radius: 0; background: none; box-shadow: none; min-height: 150px; }
.form .md-editor textarea:focus { box-shadow: none; }
.md-count { text-align: right; margin-top: 5px; }
.md-count.is-near { color: var(--sun); }
/* text with the marks drawn: on the Media page's cards and in the preview */
.md { display: grid; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.md > * { margin: 0; }
.md .md-h { font-family: var(--display); font-weight: 600; line-height: 1.25; color: var(--star); }
.md .md-h1 { font-size: 1.5em; }
.md .md-h2 { font-size: 1.25em; }
.md .md-h3 { font-size: 1.06em; }
.md .md-small { font-size: 0.8em; color: var(--faint); }
.md blockquote { padding: 2px 0 2px 12px; border-left: 4px solid var(--line-strong); }
.md ul, .md ol { padding-left: 1.4em; display: grid; gap: 3px; }
.md code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.09); }
.md pre { padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); overflow-x: auto; }
.md pre code { padding: 0; background: none; }
/* the preview: a Discord message, as the bot will post it */
.media-preview { position: sticky; top: var(--sticky); min-width: 0; display: grid; gap: 10px; }
.media-preview[hidden] { display: none; }
.dc { --dc-ink: #DBDEE1; --dc-faint: #949BA4; padding: 16px 16px 18px; border-radius: 12px; background: #313338; color: var(--dc-ink); font-size: 15px; line-height: 1.4; border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1E1F22; padding: 5px; }
.dc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.dc-head strong { color: #F2F3F5; font-weight: 600; }
.dc-app { font: 700 10px/1 var(--body); padding: 3px 5px; border-radius: 4px; background: #5865F2; color: #fff; }
.dc-head time, .dc-footer { color: var(--dc-faint); font-size: 12px; }
.dc-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dc-files img, .dc-files .dc-clip { display: grid; place-items: center; width: 150px; height: 100px; border-radius: 8px; object-fit: cover; background: #1E1F22; font-size: 28px; }
.dc-embed { display: grid; gap: 8px; max-width: 520px; padding: 12px 16px 14px 14px; border-radius: 4px; border-left: 4px solid #3498DB; background: #2B2D31; }
.dc-embed > * { margin: 0; min-width: 0; }
.dc-author { font-size: 14px; font-weight: 600; color: #F2F3F5; }
.dc-title { font-size: 16px; font-weight: 600; color: #F2F3F5; overflow-wrap: anywhere; }
.dc-title.is-link { color: #00A8FC; }
.dc-title.is-empty { color: var(--dc-faint); font-weight: 500; }
.dc .md { font-size: 14px; gap: 6px; }
.dc .md .md-h { font-family: var(--body); font-weight: 700; color: #F2F3F5; }
.dc .md a { color: #00A8FC; text-decoration: none; }
.dc .md blockquote { border-left-color: #4E5058; }
.dc .md code, .dc .md pre { background: #1E1F22; border: 0; }
/* an update's changes in the preview, as the bot posts them: one ```ansi box, each line in its kind's colour (Discord's
   ANSI colours: 32 green, 33 yellow, 34 blue, 31 red) */
.dc-ansi { margin: 6px 0 2px; padding: 7px 9px; border-radius: 4px; background: #1E1F22; font: 13.5px/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: #DBDEE1; }
.dc-ansi-line.k-added { color: #859900; }
.dc-ansi-line.k-changed { color: #B58900; }
.dc-ansi-line.k-fixed { color: #268BD2; }
.dc-ansi-line.k-removed { color: #DC322F; }
.dc .md .md-small { color: var(--dc-faint); }
.dc-field strong { display: block; font-size: 14px; color: #F2F3F5; margin-bottom: 2px; }
.dc-fields { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.dc-field > span:not(.dc-mention) { font-size: 14px; }
.dc-mention { display: inline-block; padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #C9CDFB; font-weight: 500; font-size: 14px; }
.dc-image { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 4px; background: #1E1F22; }
.dc-buttons { margin-top: 8px; }
.dc-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px; background: #4E5058; color: #fff; font-weight: 500; font-size: 14px; }
@media (max-width: 1100px) { .media-composer:has(.media-preview:not([hidden])) { grid-template-columns: minmax(0, 1fr); } .media-preview { position: static; } }
@media (max-width: 700px) { .media-form-row { grid-template-columns: minmax(0, 1fr); } .md-tools { gap: 4px 8px; } }
.media-grid { gap: 22px; padding-bottom: 88px; }
.media-grid .fill-cell { --cell: 320px; }
/* the newest post gets a row to itself */
.media-grid .fill-cell:first-child { flex-basis: 100%; }
.media-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.media-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 30%, var(--space-3), var(--space-2)); overflow: hidden; }
.media-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.media-thumb:hover img { transform: scale(1.04); }
.media-play { position: relative; width: 62px; height: 62px; border-radius: 50%; background: rgba(4, 5, 13, 0.72); border: 1px solid rgba(255, 255, 255, 0.3); }
.media-play::after { content: ''; position: absolute; left: 25px; top: 20px; border-left: 17px solid var(--star); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.media-host { font: 600 17px var(--display); color: var(--ion); padding: 0 16px; text-align: center; overflow-wrap: anywhere; }
.media-body { display: grid; gap: 8px; justify-items: start; padding: 20px 22px 22px; }
.media-body h2 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.media-body p { margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.media-body .media-meta { color: var(--faint); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.media-body .md { color: var(--dim); width: 100%; }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.media-actions form { margin: 0; }
.media-actions:empty { display: none; }
.media-thumb-clip { background: #000; }
.media-thumb-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.media-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.media-more a { display: block; width: 84px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--space-3); }
.media-more img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-more-clip { display: grid; place-items: center; width: 100%; height: 100%; font-size: 22px; }
/* a post with a row to itself: the picture on the left, the words beside it */
@container (min-width: 820px) {
  .media-card { flex-direction: row; }
  .media-thumb { flex: 0 0 min(52%, 640px); }
  .media-body { flex: 1; align-content: center; gap: 12px; padding: 28px 36px; }
  .media-body h2 { font-size: 28px; }
  .media-body p { font-size: 18px; max-width: 56ch; }
  .media-body .md { font-size: 18px; max-width: 62ch; }
}

/* ── Login ───────────────────────────────────────────────── */
.login {
  display: grid;
  grid-template-columns: auto minmax(0, 440px);
  justify-content: center;
  align-items: center;
  gap: 72px;
  padding: 72px 16px 88px;
}
.login-card {
  background: linear-gradient(180deg, rgba(20, 27, 74, 0.74), rgba(9, 13, 34, 0.95));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 34px 34px 30px;
  box-shadow: 0 30px 80px rgba(2, 4, 18, 0.55);
}
.login-server { font: 600 15px var(--display); color: var(--plasma); margin: 0 0 14px; }
.login-card h1 { font-size: 30px; margin-bottom: 12px; }
.login-lead { color: var(--dim); margin-bottom: 24px; }
.login-card .btn { font-size: 16px; padding: 14px 20px; margin-bottom: 20px; }
.login-alt { margin: 0; color: var(--faint); font-size: 15px; }
/* the second way in: a Minecraft username */
.login-or { display: flex; align-items: center; gap: 14px; margin: 2px 0 18px; color: var(--faint); font-size: 14px; font-weight: 600; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.login-mc { margin-bottom: 22px; }
.login-mc .field { margin-bottom: 12px; }
.login-card .login-mc .btn { margin-bottom: 10px; }
@media (max-width: 860px) {
  .login { grid-template-columns: minmax(0, 440px); gap: 36px; padding-top: 40px; }
  .login-visual { justify-self: center; }
}
@media (max-width: 480px) { .login-card { padding: 26px 22px 24px; } }

/* ── Error ───────────────────────────────────────────────── */
.lost { text-align: center; padding: 72px 16px 104px; display: grid; justify-items: center; }
.lost-mascot { margin-bottom: 18px; }
.lost-code { font: 600 15px var(--display); color: var(--plasma); margin: 0 0 12px; }
.lost h1 { font-size: clamp(28px, 5vw, 42px); max-width: 20ch; margin-bottom: 14px; }
.lost-msg { font-size: 18px; color: var(--dim); max-width: 46ch; margin-bottom: 32px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: rgba(2, 3, 9, 0.78); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 40px; padding-top: 32px; padding-bottom: 32px; color: var(--faint); font-size: 15px; }
.footer-inner p { margin: 0 0 4px; }
.footer-inner code { color: var(--dim); }
.footer-name { font: 600 16px var(--display); color: var(--star); }
.footer-links { display: flex; gap: 22px; font-weight: 600; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--star); }
.legal { flex-basis: 100%; font-size: 13px; color: #6A73A6; }

/* Developer Panel: Embed messages. The form on the left, what the bot will send on the right. */
.embed-composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.embed-preview { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 1100px) {
  .embed-composer { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
  .embed-preview { position: sticky; top: calc(var(--sticky) + 8px); }
}
.embed-mode { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--space-2); border: 1px solid var(--line); border-radius: 18px; }
.embed-mode .seg { padding: 8px 16px; font-size: 14px; }
.embed-mode .seg.is-on { cursor: pointer; }
.embed-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.embed-row-end { align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.embed-inline { display: flex; gap: 8px; }
.embed-inline input { flex: 1 1 auto; min-width: 0; }
.embed-editing { margin: 0 0 18px; display: grid; gap: 4px; }
.embed-editing a { color: inherit; font-weight: 700; }
.embed-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form .embed-chips select { width: auto; min-width: 200px; padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.embed-ping-bad { color: #FF9AB6; }
.embed-part { margin: 0 0 18px; padding: 14px 16px 0; border: 1px solid var(--line); border-radius: var(--r-md); min-width: 0; }
.embed-part legend { padding: 0 8px; font-weight: 800; font-size: 14px; color: var(--star); }
.embed-fields { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; counter-reset: field; }
.embed-fields:empty { display: none; }
.embed-field { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.02); }
.embed-field::before { counter-increment: field; content: 'Field ' counter(field); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.embed-field-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.embed-fieldset-foot { margin: 0 0 16px; }
.embed-picture { display: grid; gap: 7px; margin-bottom: 16px; }
.embed-picture-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form .embed-picture-row input[type="url"] { flex: 1 1 220px; width: auto; min-width: 0; }
.embed-picture-thumb { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 8px; background: var(--space); border: 1px solid var(--line); }
.embed-upload { cursor: pointer; }
.embed-colour { display: flex; align-items: center; gap: 8px; }
.embed-colour label { margin: 0; }
.form #em-colour { width: 46px; height: 38px; padding: 3px; cursor: pointer; }
.form #em-colour-code, .form [data-embed-colour-code] { width: 104px; font-family: var(--mono); font-size: 15px; }
.embed-count.is-near { color: var(--sun); }
.embed-count.is-over { color: #FF9AB6; font-weight: 700; }

/* the preview: the parts of an embed the media and update previews don't use */
.dc-pings { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.dc-embed-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.dc-embed-main { display: grid; gap: 8px; min-width: 0; }
.dc-embed-main > * { margin: 0; min-width: 0; }
.dc-thumb { width: 80px; height: 80px; object-fit: contain; border-radius: 4px; }
.dc-author, .dc-footer { display: flex; align-items: center; gap: 8px; }
.dc-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dc-footer img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dc-author a, .dc-title a { color: inherit; text-decoration: none; }
.dc-title a { color: #00A8FC; }
.dc-field-row { display: grid; gap: 8px 16px; }
.dc-field-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dc-field-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-field .md { font-size: 14px; }
.dc-embed .dc-image { object-fit: contain; max-height: 340px; }
.dc-placeholder { color: var(--dc-faint); font-size: 14px; font-style: italic; }
/* a button's own display would otherwise show it while it is hidden */
.embed-composer [hidden] { display: none !important; }

/* Developer Panel, Mod control: one line per account, everything that can be done to it behind Manage */
.members { container: members / inline-size; display: grid; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space); }
/* every column has a size that doesn't depend on what is in it, so the headings (which have no Manage button) line up */
.members-head, .member-row { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(96px, 0.7fr) minmax(88px, 0.8fr) minmax(88px, 0.8fr) minmax(184px, 1.5fr) 108px; gap: 16px; align-items: center; padding: 12px 18px; }
.members-head { padding-top: 10px; padding-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.member-row + .member-row { border-top: 1px solid var(--line); }
.member-row:hover { background: rgba(255, 255, 255, 0.025); }
.member-row.is-removed { background: rgba(255, 92, 138, 0.05); }
.member-who { min-width: 0; }
.member-who .mod-who img, .member-initial { width: 36px; height: 36px; border-radius: 50%; }
.member-initial { display: grid; place-items: center; flex: none; background: var(--space-3); color: var(--dim); font-weight: 800; }
.member-who .mod-linked { margin: 4px 0 0 46px; }
.member-date { color: var(--dim); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.member-label { display: none; }
.member-access { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.member-access small { color: var(--faint); font-size: 12.5px; overflow-wrap: anywhere; }
.member-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgba(94, 230, 168, 0.35); border-radius: 999px; background: rgba(94, 230, 168, 0.1); color: var(--mint); font-size: 13px; font-weight: 700; }
.member-state::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.member-state.is-removed { color: #FF9AB6; background: var(--plasma-soft); border-color: rgba(255, 92, 138, 0.4); }
/* what they can open: Logged (mint, above), Staff in red (the Staff Panel) or Developer in purple (the Developer Panel) */
.member-state.is-staff { color: #FF6B6B; background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.45); }
.member-state.is-developer { color: #B98CFF; background: rgba(185, 140, 255, 0.12); border-color: rgba(185, 140, 255, 0.45); }
.member-manage { justify-self: end; }
.member-menu > summary { white-space: nowrap; }
.member-menu .pop-panel { left: auto; right: 0; width: min(320px, 86vw); }
.member-panel-name { margin: 0; font-weight: 800; color: var(--star); overflow-wrap: anywhere; }
.member-form, .member-delete { display: grid; gap: 8px; margin: 0; padding-top: 10px; border-top: 1px solid #2B2D31; }
.member-step { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.member-form .btn, .member-delete .btn { justify-self: start; }
/* Where the list is too narrow for its columns (a phone, or a small window beside the sidebar), each account is a
   small card: who it is on the whole first line; how they log in and when they were seen, each date under its label;
   then their access, with Manage at the right. The access is too wide to join the line above, so it starts its own. */
@container members (width < 890px) {
  .members-head { display: none; }
  .member-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 14px 16px; }
  .member-who { flex: 1 1 100%; }
  .member-kind { align-self: flex-end; }
  .member-date { font-size: 13px; }
  .member-label { display: block; margin-bottom: 3px; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
  .member-access { flex: 1 1 calc(100% - 140px); }
  .member-manage { flex: none; margin-left: auto; }
  .member-idnum { display: none; } /* the long ID is on their account page */
}

/* ── The BlubMC Assistant: the button at the bottom right and its chat window (views/partials/assistant.ejs) ── */
/* Its three colours (data-tone): blue for members, red for staff, purple for the owners. The cube and every accent of the
   chat follow them. */
.assistant { --tone: #8CCBFF; --tone-rgb: 140, 203, 255; --cube-top: #6CC4FF; --cube-side: #1D468F; --cube-front: #3A78D6; --cube-edge: #0B1D45; --tone-bg: #1B2766; }
.assistant[data-tone="staff"] { --tone: #FF8A9A; --tone-rgb: 255, 120, 140; --cube-top: #FF9C9C; --cube-side: #8F1D2C; --cube-front: #D63A4A; --cube-edge: #45070F; --tone-bg: #5A1222; }
.assistant[data-tone="owner"] { --tone: #C3A6FF; --tone-rgb: 180, 150, 255; --cube-top: #D2B4FF; --cube-side: #4A2A8F; --cube-front: #8B5CF6; --cube-edge: #1E0B45; --tone-bg: #36196B; }
.assistant .cube-top { fill: var(--cube-top); }
.assistant .cube-side { fill: var(--cube-side); }
.assistant .cube-front { fill: var(--cube-front); }
.assistant .cube-edge { stroke: var(--cube-edge); }
.assistant .cube-top, .assistant .cube-side, .assistant .cube-front { transition: fill 0.3s; }
.assistant-launch { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--tone-bg), var(--space-2) 70%); box-shadow: 0 0 0 4px rgba(var(--tone-rgb), 0.12), 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 26px rgba(var(--tone-rgb), 0.28); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.assistant-launch:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(var(--tone-rgb), 0.2), 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 32px rgba(var(--tone-rgb), 0.4); }
.assistant-launch[aria-expanded="true"] { border-color: var(--tone); }
.assistant-launch:focus-visible, .assistant-icon:focus-visible, .assistant-send:focus-visible, .assistant-chip:focus-visible, .assistant-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.assistant-panel { position: fixed; right: 22px; bottom: 94px; z-index: 70; display: flex; flex-direction: column; width: 380px; height: 520px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); overflow: hidden; background: linear-gradient(180deg, #141B4A, #090D22); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--tone-rgb), 0.06); }
.assistant-panel[hidden] { display: none; }
.assistant-panel.is-resizing { user-select: none; }
/* the corner to drag: the window grows up and to the left, away from its button */
.assistant-grip { position: absolute; top: 0; left: 0; z-index: 1; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; }
.assistant-grip::before { content: ''; position: absolute; top: 6px; left: 6px; width: 9px; height: 9px; border-top: 2px solid var(--line-strong); border-left: 2px solid var(--line-strong); border-top-left-radius: 4px; transition: border-color 0.15s; }
.assistant-grip:hover::before, .assistant-panel.is-resizing .assistant-grip::before { border-color: var(--tone); }
.assistant-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 18px; border-bottom: 1px solid var(--line); }
.assistant-head .assistant-cube { flex: none; width: 32px; height: 32px; }
.assistant-name { flex: 1; min-width: 0; }
.assistant-title { margin: 0; font: 600 15px var(--display); color: var(--star); }
.assistant-sub { margin: 0; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistant-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.assistant-icon:hover { background: var(--space-3); color: var(--star); }
.assistant-icon svg, .assistant-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assistant-panel .when-big, .assistant-panel.is-big .when-small { display: none; }
.assistant-panel.is-big .when-big { display: block; }
.assistant-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; overflow-y: auto; overscroll-behavior: contain; }
.assistant-msg { max-width: 88%; padding: 9px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.assistant-msg p { margin: 0; }
.assistant-msg p + p { margin-top: 6px; }
.assistant-msg.is-bot { align-self: flex-start; background: var(--space-3); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--star); }
.assistant-msg.is-me { align-self: flex-end; background: var(--tone); color: var(--space); font-weight: 600; border-bottom-right-radius: 5px; }
.assistant-cards { display: grid; gap: 6px; margin-top: 9px; }
.assistant-card { display: grid; gap: 2px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(0, 0, 0, 0.25); color: var(--star); text-decoration: none; transition: border-color 0.15s; }
a.assistant-card:hover { border-color: var(--tone); }
.assistant-card strong { font-size: 14px; }
.assistant-card-meta { font-size: 12.5px; font-weight: 700; color: var(--tone); }
.assistant-card-text { font-size: 13px; color: var(--dim); line-height: 1.45; white-space: pre-line; }
.assistant-msg .assistant-note { margin-top: 9px; font-size: 13px; color: var(--dim); }
.assistant-msg .assistant-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.assistant-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assistant-chip { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--tone); font: 600 13px var(--body); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.assistant-chip:hover { background: rgba(var(--tone-rgb), 0.1); border-color: var(--tone); }
.assistant-msg.is-typing { display: flex; gap: 4px; padding: 13px 14px; }
.assistant-msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: assistant-dot 1.1s infinite ease-in-out; }
.assistant-msg.is-typing span:nth-child(2) { animation-delay: 0.15s; }
.assistant-msg.is-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes assistant-dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.assistant-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space); color: var(--star); font: 500 15px var(--body); }
.assistant-form input:focus { border-color: var(--tone); outline: none; box-shadow: 0 0 0 3px rgba(var(--tone-rgb), 0.2); }
.assistant-send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--tone); color: var(--space); cursor: pointer; }
.assistant-send:hover { background: #fff; }
/* on a phone the window spans the screen above the button; bigger takes nearly all of it */
@media (max-width: 560px) {
  .assistant-launch { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .assistant-panel { left: 8px; right: 8px; bottom: 78px; width: auto; height: min(68vh, 560px); max-width: none; }
  .assistant-panel.is-big { top: 8px; height: auto; max-height: none; }
  .assistant-grip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-launch, .assistant-card, .assistant-chip { transition: none; }
  .assistant-launch:hover { transform: none; }
  .assistant-msg.is-typing span { animation: none; opacity: 0.7; }
}
/* the cube: it floats, blinks now and then, hops when pointed at, and its mouth moves while the bot is typing. Until the
   chat has been opened once, a soft ring goes out from the button now and then. */
.assistant-cube { display: block; overflow: visible; }
.assistant-launch .assistant-cube { width: 38px; height: 38px; animation: cube-float 3.2s ease-in-out infinite; }
.assistant-head .assistant-cube { animation: cube-float 3.8s ease-in-out infinite 0.6s; }
.assistant-eyes, .assistant-mouth { transform-box: fill-box; transform-origin: center; }
.assistant-eyes { animation: cube-blink 5s infinite 1s; }
.assistant-head .assistant-eyes { animation-duration: 6.4s; animation-delay: 2.6s; }
.assistant.is-talking .assistant-mouth { animation: cube-talk 0.22s ease-in-out infinite alternate; }
.assistant-launch:hover .assistant-cube { animation: cube-hop 0.55s ease-out; }
.assistant-launch::after { content: ''; position: absolute; inset: -1px; border: 2px solid var(--tone); border-radius: 50%; opacity: 0; pointer-events: none; animation: cube-ring 4.5s ease-out infinite 1.5s; }
.assistant.was-opened .assistant-launch::after { animation: none; }
@keyframes cube-float { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-2px); } }
@keyframes cube-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
@keyframes cube-talk { from { transform: scaleY(1); } to { transform: scaleY(2.6); } }
@keyframes cube-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-6px) scale(1.06, 0.94); } 70% { transform: translateY(0) scale(0.96, 1.04); } }
@keyframes cube-ring { 0% { transform: scale(1); opacity: 0.55; } 55%, 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .assistant-cube, .assistant-eyes, .assistant-launch::after, .assistant.is-talking .assistant-mouth, .assistant-launch:hover .assistant-cube { animation: none; }
}
@media print { .assistant { display: none; } }

/* the mode buttons under the head, for staff and the owners */
.assistant-tones { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.15); }
.assistant-tone { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--dim); font: 600 12.5px var(--body); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.assistant-tone:hover { color: var(--star); }
.assistant-tone-dot { width: 9px; height: 9px; border-radius: 50%; }
.assistant-tone.tone-member .assistant-tone-dot { background: #6CC4FF; }
.assistant-tone.tone-staff .assistant-tone-dot { background: #FF7A8C; }
.assistant-tone.tone-owner .assistant-tone-dot { background: #B794FF; }
.assistant-tone[aria-pressed="true"] { color: var(--star); border-color: var(--tone); background: rgba(var(--tone-rgb), 0.14); }
.assistant-tone:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* a change the owner mode is about to make, and what it did */
.assistant-card.is-change { border-color: rgba(var(--tone-rgb), 0.6); background: rgba(var(--tone-rgb), 0.08); }
/* code in the chat: a light tag of the mode's colour that never breaks in the middle ("/post-" … "ticket-info") */
.assistant-msg code { padding: 1px 6px; border: 1px solid rgba(var(--tone-rgb), 0.2); border-radius: 5px; background: rgba(var(--tone-rgb), 0.1); color: var(--star); font: 500 0.86em var(--mono); white-space: nowrap; overflow-wrap: normal; }
.assistant-msg.is-me code { border-color: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.12); color: inherit; }

/* a written answer drawn as a small page (public/js/main.js drawBlocks) */
.assistant-msg.is-rich { max-width: 100%; width: 100%; padding: 12px 14px; }
.assistant-msg.is-rich > * + * { margin-top: 8px; }
.as-title { color: var(--tone); font: 700 15.5px/1.3 var(--body); }
.as-rows { display: grid; gap: 7px; }
.as-row { display: grid; gap: 6px; padding: 9px 11px; border: 1px solid var(--line); border-left: 3px solid rgba(var(--tone-rgb), 0.6); border-radius: 9px; background: rgba(0, 0, 0, 0.22); }
.as-term { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; color: var(--star); font-weight: 700; }
.as-plus { color: var(--faint); font: 600 11.5px var(--body); }
.as-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.assistant-msg .as-tag { display: inline-flex; align-items: baseline; gap: 5px; margin: 0; padding: 3px 8px; border: 1px solid rgba(var(--tone-rgb), 0.25); border-radius: 6px; background: rgba(var(--tone-rgb), 0.1); color: var(--star); font: 500 12.5px var(--mono); white-space: nowrap; box-shadow: none; }
.as-tag small { color: var(--faint); font: 500 11px var(--body); white-space: normal; }
/* an example to say, as a tag that says it when pressed */
.assistant-msg .as-tag.is-ask { cursor: pointer; font: 500 13px var(--body); white-space: normal; text-align: left; transition: background 0.15s, border-color 0.15s; }
.assistant-msg .as-tag.is-ask:hover, .assistant-msg .as-tag.is-ask:focus-visible { border-color: rgba(var(--tone-rgb), 0.6); background: rgba(var(--tone-rgb), 0.2); outline: none; }
.as-note { display: grid; gap: 8px; margin-top: 10px; }
.as-note > p { margin: 0; }
.as-row-text { margin: 0; color: var(--dim); font-size: 13.5px; }
.as-list { display: grid; gap: 5px; margin: 0; padding-left: 20px; }
.as-list li::marker { color: var(--tone); }
.as-list.is-steps { padding: 0; list-style: none; counter-reset: step; }
.as-list.is-steps li { position: relative; padding-left: 31px; counter-increment: step; }
.as-list.is-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: rgba(var(--tone-rgb), 0.18); color: var(--tone); font: 700 12px/21px var(--body); text-align: center; }
.as-callout { padding: 8px 11px 8px 34px; position: relative; border: 1px solid rgba(255, 196, 0, 0.28); border-radius: 9px; background: rgba(255, 196, 0, 0.08); }
.as-callout::before { content: '⚠️'; position: absolute; left: 11px; top: 8px; }

/* ── The update composer (Updates page, views/updates.ejs): a title line with its version, the category as coloured
   buttons, editors with tidy toolbars, the change lines coloured by their kind as they are typed, a drop zone for
   photos and videos, and where the update goes. Shared by the composers that post to Discord (.uf-form, on the Updates
   and Media pages); their fields are named by id, to outrank the plain form style (.form input:not(…)). ── */
.uf-form .uf-head { display: grid; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--line-strong); }
.uf-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.uf-form :is(#up-title, #mp-title, #em-title) { flex: 1 1 260px; min-width: 0; width: auto; padding: 6px 2px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 -2px 0 var(--line); font: 600 clamp(22px, 2.4vw, 30px)/1.25 var(--display); color: var(--star); transition: box-shadow 0.15s; }
.uf-form :is(#up-title, #mp-title, #em-title)::placeholder { color: rgba(130, 139, 190, 0.6); }
.uf-form :is(#up-title, #mp-title, #em-title):focus { box-shadow: inset 0 -2px 0 var(--ion); }
.uf-version { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 4px 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space); color: var(--faint); font: 600 14px var(--display); cursor: text; transition: border-color 0.15s, box-shadow 0.15s; }
.uf-version:focus-within { border-color: var(--ion); box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); }
.uf-form #up-version { width: 70px; padding: 0 10px 0 2px; border: 0; background: none; box-shadow: none; font: 600 14px var(--display); color: var(--star); }
.uf-link { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 6px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--space); cursor: text; transition: border-color 0.15s, box-shadow 0.15s; }
.uf-link:focus-within { border-color: var(--ion); box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.2); }
.uf-link svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ion); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.uf-form :is(#mp-link, #em-url) { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: none; box-shadow: none; font: 500 15px var(--body); color: var(--star); }
.uf-form :is(#mp-link, #em-url)::placeholder { color: var(--faint); }
.uf-cats { margin: 0; padding: 0; border: 0; min-width: 0; }
.uf-cats legend { padding: 0; margin-bottom: 10px; }
.uf-cat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.uf-cat { position: relative; }
.uf-cat input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.uf-cat > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--space); color: var(--dim); font: 600 14px var(--body); transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.uf-cat:hover > span { color: var(--star); border-color: var(--c); }
.uf-cat input:checked + span { color: var(--star); border-color: var(--c); background: var(--t); box-shadow: 0 0 0 3px var(--t), 0 6px 18px var(--t); }
.uf-cat input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.uf-cat-server { --c: #5EE6A8; --t: rgba(94, 230, 168, 0.14); }
.uf-cat-in-game { --c: #FFD166; --t: rgba(255, 209, 102, 0.14); }
.uf-cat-bot { --c: #8C9BFF; --t: rgba(120, 132, 255, 0.18); }
.uf-cat-website { --c: #FF8FB0; --t: rgba(255, 92, 138, 0.15); }

.uf-form .uf-field { margin-bottom: 20px; }
.uf-label { display: inline-block; font: 700 12.5px/1.2 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }
.uf-label .optional { margin-left: 6px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.uf-label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 2px; }
.uf-label-row .md-count { margin: 0 0 0 auto; }
.uf-summary { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.uf-count { padding: 4px 9px; border-radius: 999px; font: 700 11.5px/1 var(--body); text-transform: lowercase; }
.uf-count.k-added { color: var(--mint); background: rgba(94, 230, 168, 0.12); }
.uf-count.k-changed { color: var(--sun); background: rgba(255, 209, 102, 0.12); }
.uf-count.k-fixed { color: var(--ion); background: rgba(140, 203, 255, 0.12); }
.uf-count.k-removed { color: var(--plasma); background: var(--plasma-soft); }

.uf-form .uf-editor { border-radius: var(--r-md); background: rgba(4, 5, 13, 0.7); }
.uf-form .uf-editor .md-tools { gap: 6px; padding: 8px 10px; background: rgba(255, 255, 255, 0.025); }
.uf-form .uf-editor .md-group + .md-group { margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line); }
.uf-form :is(#up-text, #mp-text) { min-height: 0; padding: 14px 16px; font: 500 15px/1.7 var(--body); resize: none; overflow: hidden; }
.uf-form .md-mark { border: 1px solid transparent; transition: filter 0.15s, transform 0.15s; }
.uf-form .md-mark:hover { filter: brightness(1.2); transform: translateY(-1px); }
.uf-form .md-mark.k-added { color: #A9F3CF; background: rgba(94, 230, 168, 0.08); border-color: rgba(94, 230, 168, 0.25); }
.uf-form .md-mark.k-changed { color: #FFE3A3; background: rgba(255, 209, 102, 0.08); border-color: rgba(255, 209, 102, 0.25); }
.uf-form .md-mark.k-fixed { color: #BFE0FF; background: rgba(140, 203, 255, 0.08); border-color: rgba(140, 203, 255, 0.25); }
.uf-form .md-mark.k-removed { color: #FFB8C8; background: rgba(255, 92, 138, 0.08); border-color: rgba(255, 92, 138, 0.25); }

/* the size menu: one "Aa" button instead of five words, each size shown at its size */
.md-size { position: relative; }
.md-size > summary { list-style: none; display: inline-flex; gap: 4px; }
.md-size > summary::-webkit-details-marker { display: none; }
.md-size > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.md-size[open] > summary { color: var(--star); background: rgba(255, 255, 255, 0.09); }
.md-size[open] > summary svg { transform: rotate(180deg); }
.md-size-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; display: grid; gap: 2px; min-width: 160px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--space-2); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55); }
.md-size-menu .md-tool { display: flex; justify-content: flex-start; width: 100%; height: auto; padding: 8px 10px; }
.md-size-menu .md-size-big { font: 700 19px/1.2 var(--body); color: var(--star); }
.md-size-menu .md-size-medium { font: 700 16.5px/1.2 var(--body); color: var(--star); }
.md-size-menu .md-size-small { font: 700 14px/1.2 var(--body); }
.md-size-menu .md-size-tiny { font: 500 12.5px/1.2 var(--body); color: var(--faint); }

/* the change lines: the box is see-through, and the same words are drawn behind it in their kind's colour. Both use
   exactly the same letters, size and spacing, so they line up; the box grows with its text, so neither scrolls. */
.uf-lines { position: relative; }
.uf-lines-colour, .uf-form #up-changes { margin: 0; padding: 14px 16px; font: 500 15px/1.75 var(--body); letter-spacing: normal; word-spacing: normal; white-space: pre-wrap; overflow-wrap: break-word; tab-size: 4; }
.uf-lines-colour { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--star); }
.uf-form #up-changes { position: relative; z-index: 1; display: block; width: 100%; min-height: 150px; border: 0; border-radius: 0; background: transparent; box-shadow: none; resize: none; overflow: hidden; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--star); }
.uf-form #up-changes::placeholder { color: var(--faint); -webkit-text-fill-color: var(--faint); }
.uf-form #up-changes::selection { background: rgba(140, 203, 255, 0.3); }
.uf-line.k-added { color: #A9F3CF; }
.uf-line.k-changed { color: #FFE3A3; }
.uf-line.k-fixed { color: #BFE0FF; }
.uf-line.k-removed { color: #FFB8C8; }
.uf-mark { border-radius: 4px; }
.k-added > .uf-mark { color: var(--mint); background: rgba(94, 230, 168, 0.22); }
.k-changed > .uf-mark { color: var(--sun); background: rgba(255, 209, 102, 0.22); }
.k-fixed > .uf-mark { color: var(--ion); background: rgba(140, 203, 255, 0.22); }
.k-removed > .uf-mark { color: var(--plasma); background: rgba(255, 92, 138, 0.25); }
.uf-hint { margin-top: 8px; }
.uf-hint b { display: inline-grid; place-items: center; min-width: 18px; padding: 0 4px; border-radius: 5px; font: 700 13px/18px var(--mono); }
.uf-hint b.k-added { color: var(--mint); background: rgba(94, 230, 168, 0.14); }
.uf-hint b.k-changed { color: var(--sun); background: rgba(255, 209, 102, 0.14); }
.uf-hint b.k-fixed { color: var(--ion); background: rgba(140, 203, 255, 0.14); }
.uf-hint b.k-removed { color: var(--plasma); background: var(--plasma-soft); }

/* photos and videos: a drop zone (click to browse; drop and paste work anywhere on the composer) */
.uf-form .uf-drop { justify-self: stretch; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: rgba(140, 203, 255, 0.03); color: var(--dim); font-size: 15px; transition: border-color 0.15s, background 0.15s; }
.uf-form .uf-drop:hover { border-color: var(--ion); background: rgba(140, 203, 255, 0.07); }
.uf-drop svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--ion); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uf-drop strong { color: var(--star); }
.uf-drop-link { color: var(--ion); text-decoration: underline; text-underline-offset: 3px; }

.uf-form .uf-foot { margin-top: 4px; padding-top: 20px; border-top: 1px dashed var(--line-strong); align-items: center; }
.uf-goes { flex: 1; min-width: 240px; margin: 0; color: var(--faint); font-size: 14px; line-height: 1.8; }
.uf-dest { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--space-3); border: 1px solid var(--line); color: var(--dim); font-size: 13px; font-weight: 600; line-height: 1.7; }
.uf-post { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 16px; }
.uf-post svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.uf-post:hover svg { transform: translateX(3px); }
/* the Developer Panel's embed form in the same style: its parts are sections between dashed lines, named like the
   composers' labels, with the head as the big title line */
.embed-form.uf-form .embed-part { margin: 22px 0 0; padding: 20px 0 0; border: 0; border-top: 1px dashed var(--line-strong); border-radius: 0; }
.embed-form.uf-form .embed-part > legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; }
.embed-form.uf-form .embed-part > legend + * { clear: both; }
.embed-form.uf-form :is(.embed-part > legend, .field > label, .field-label) { font: 700 12.5px/1.2 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }
.embed-form.uf-form :is(.embed-part > legend, .field > label, .field-label) .optional { margin-left: 6px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.embed-form.uf-form .field > label { display: inline-block; margin-bottom: 8px; }
.embed-form.uf-form .uf-title-row { margin-bottom: 14px; }
.em-head-link { margin-bottom: 18px; }
.uf-form #em-text { padding: 14px 16px; font: 500 15px/1.7 var(--body); resize: vertical; }
.embed-form.uf-form .uf-foot { margin-top: 22px; }
.uf-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uf-preview-head .side-title { margin: 0; }
.uf-channel { padding: 4px 11px; border-radius: 999px; background: #313338; border: 1px solid rgba(255, 255, 255, 0.06); color: #DBDEE1; font: 600 12.5px var(--body); }
.uf-form .uf-kinds { flex-wrap: wrap; }
@media (max-width: 560px) {
  .uf-form .uf-drop { padding: 14px; }
  .uf-form .uf-editor .md-group + .md-group { margin-left: 0; padding-left: 0; border-left: 0; }
  .uf-post { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .uf-form .md-mark, .uf-post svg, .md-size > summary svg { transition: none; }
  .uf-form .md-mark:hover { transform: none; }
}

/* ── Free rewards on the Store page (views/partials/rewards.ejs) ── */
.rewards { margin-bottom: 26px; padding: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(94, 230, 168, 0.08), transparent 55%), radial-gradient(120% 140% at 100% 0%, rgba(140, 203, 255, 0.08), transparent 55%), linear-gradient(180deg, rgba(20, 27, 74, 0.62), rgba(9, 13, 34, 0.9)); }
.rewards-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.rewards-head .section-title { margin: 0; }
.rewards-head .hint { margin: 0; }
.rewards-gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid rgba(255, 209, 102, 0.35); border-radius: var(--r-md); background: rgba(255, 209, 102, 0.07); color: var(--star); }
.rewards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.reward-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: rgba(4, 5, 13, 0.55); }
.reward-card h3 { margin: 0; font-size: 18px; }
.reward-card p { margin: 0; color: var(--dim); font-size: 14.5px; }
.reward-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; background: var(--space-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.reward-welcome .reward-icon { background: rgba(255, 209, 102, 0.14); }
.reward-daily .reward-icon { background: rgba(94, 230, 168, 0.14); }
.reward-code .reward-icon { background: rgba(140, 203, 255, 0.14); }
.reward-claim { margin-top: auto; padding-top: 6px; }
.reward-claim .btn { width: 100%; justify-content: center; }
.reward-wait { margin-top: auto !important; padding-top: 6px; color: var(--mint) !important; font-weight: 600; }
.reward-daily.is-done { border-color: rgba(94, 230, 168, 0.35); }
.streak { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.streak-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--space-3); border: 1px solid var(--line-strong); font-size: 11px; }
.streak-dot.is-on { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 10px rgba(94, 230, 168, 0.45); }
.streak-dot.is-bonus { border-color: rgba(255, 209, 102, 0.6); }
.streak-dot.is-bonus.is-on { background: var(--sun); border-color: var(--sun); }
.streak-words { margin: 0 !important; }
.reward-code-form { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.form.reward-code-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.rewards-setup { margin-top: 20px; border-top: 1px dashed var(--line-strong); padding-top: 16px; }
.rewards-setup > summary { cursor: pointer; font-weight: 700; color: var(--dim); list-style: none; display: flex; align-items: center; gap: 8px; }
.rewards-setup > summary::-webkit-details-marker { display: none; }
.rewards-setup > summary:hover { color: var(--star); }
.rewards-setup > summary .hint { font-weight: 500; }
.rewards-setup[open] > summary { margin-bottom: 10px; }
.rewards-setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 20px; }
.reward-form { padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: rgba(4, 5, 13, 0.45); }
.reward-form .field { margin-bottom: 10px; }
.reward-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reward-form-head h3 { margin: 0; font-size: 16px; }
.reward-form > .hint { margin: 2px 0 12px; }
.rewards-codes, .rewards-log { margin-top: 6px; }
.rewards-codes h3, .rewards-log h3 { font-size: 16px; margin: 0 0 10px; }
.code-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(4, 5, 13, 0.45); font-size: 14px; }
.code-row.is-off { opacity: 0.6; }
.code-word { font-size: 14px; font-weight: 700; color: var(--ion); }
.code-name { color: var(--star); }
.code-uses, .code-until, .code-state { color: var(--faint); }
.code-state { margin-left: auto; font-weight: 600; }
.code-add { padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); margin-bottom: 18px; }
.code-add-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.rewards-log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.rewards-log li { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--dim); }
.rewards-log time { color: var(--faint); font-variant-numeric: tabular-nums; }

/* ── Verifying the Minecraft account on the profile ── */
.linked-ok { display: inline-block; margin: 2px 8px 4px 0; font-size: 13px; font-weight: 700; color: var(--mint); }
a.linked-warn { display: inline-block; margin-right: 8px; }
.verify-card { margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(140, 203, 255, 0.35); border-radius: var(--r-md); background: rgba(140, 203, 255, 0.06); scroll-margin-top: calc(var(--sticky) + 16px); }
.verify-card h3 { margin: 0 0 8px; }
.verify-card p { margin: 0 0 12px; }
.verify-card .notice { margin-bottom: 12px; }
.verify-done { display: flex; flex-wrap: wrap; gap: 8px; }
.verify-code { margin-top: 14px; display: grid; gap: 6px; max-width: 360px; }
.verify-row { display: flex; gap: 8px; }
.form .verify-row input { flex: 1; min-width: 0; letter-spacing: 0.3em; font: 700 20px var(--mono); text-align: center; text-transform: none; }
.verify-code .hint { margin: 0; }
.verify-wait { font-weight: 600; }
.verify-pulse { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94, 230, 168, 0.6); animation: verify-pulse 1.6s ease-out infinite; }
@keyframes verify-pulse { to { box-shadow: 0 0 0 10px rgba(94, 230, 168, 0); } }
@media (prefers-reduced-motion: reduce) { .verify-pulse { animation: none; } }
.verify-again { margin-top: 10px; }
[data-verify-left] { font-variant-numeric: tabular-nums; color: var(--dim); font-weight: 400; }

/* The profile's game numbers (views/profile.ejs, public/js/main.js): tiles, each a label and its value */
.stat-for { margin: 0 0 12px; color: var(--dim); font-size: 14px; }
.stat-for strong { color: var(--star); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat-tile { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--space-2); min-width: 0; }
.stat-label { color: var(--faint); font: 600 12px/1.3 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
.stat-value { color: var(--star); font: 700 20px/1.25 var(--body); overflow-wrap: anywhere; }
.stat-hint { color: var(--faint); font-size: 12px; line-height: 1.3; }
.stat-note { margin: 12px 0 0; color: var(--faint); font-size: 13.5px; }

/* ── The home page's status line, a link to the Status page ── */
.status-link { width: fit-content; color: var(--star); text-decoration: none; padding: 6px 12px 6px 8px; margin-left: -4px; border-radius: 999px; transition: background-color 0.15s; }
.status-link:hover { background: rgba(255, 255, 255, 0.06); }
.status-more { color: var(--faint); font-size: 18px; line-height: 1; transition: transform 0.15s, color 0.15s; }
.status-link:hover .status-more { color: var(--star); transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .status-link, .status-more { transition: none; } }

/* ── The Status page (views/status.ejs, src/statusChart.js) ──
   One series in ion blue: a 2px line over a 10% wash, hairline grid, labels in the text colours. Up, down and partly
   down are the status colours, always with a shape or texture as well (the legend names each). */
.status-page { display: grid; gap: 18px; max-width: 1180px; padding-bottom: 72px; }
.status-page .page-head { padding-bottom: 14px; }
.status-page .community-tabs { margin-bottom: 4px; } /* the page's grid gap makes up the rest */
.status-page .panel h2 { margin: 0 0 14px; }
.status-state { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 22px/1.2 var(--display); }
.state-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 800 16px/1 var(--body); color: var(--space); background: var(--faint); flex: none; }
.state-online .state-icon { background: var(--mint); box-shadow: 0 0 0 5px rgba(94, 230, 168, 0.16); }
.state-offline .state-icon { background: var(--plasma); box-shadow: 0 0 0 5px rgba(255, 92, 138, 0.16); }
.status-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.status-tiles .stat-value { font-size: 24px; font-variant-numeric: tabular-nums; }
.status-address { margin: 16px 0 0; color: var(--dim); font-size: 14px; }
.status-address code { color: var(--star); }

.status-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.status-chart-head h2, .status-page .status-chart-head h2 { margin: 0; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--space-2); border: 1px solid var(--line); border-radius: 999px; }
.seg[hidden] { display: none; }
.seg-btn { font: 600 14px var(--body); color: var(--dim); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn:hover { color: var(--star); }
.seg-btn[aria-pressed="true"] { background: var(--star); color: var(--space); }
.seg-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.status-chart { margin: 14px 0 0; }
.status-chart + .status-chart { margin-top: 26px; }
.status-chart[hidden] { display: none; }
.status-chart .side-title { margin-bottom: 8px; }
.chart-box { position: relative; height: 260px; padding: 10px 10px 30px 40px; border-radius: var(--r-sm); outline: none; }
.chart-box:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.chart-plot { position: relative; height: 100%; touch-action: pan-y; cursor: crosshair; }
.chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.chart-plot .wash { fill: var(--ion); fill-opacity: 0.1; }
.chart-plot .line { fill: none; stroke: var(--ion); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 0 2px #0B1030; pointer-events: none; }
.chart-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--dim); pointer-events: none; }
.chart-tip { position: absolute; top: 0; z-index: 2; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--space); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55); color: var(--dim); font-size: 13px; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.chart-tip strong { display: block; color: var(--star); font-size: 15px; font-variant-numeric: tabular-nums; }
.chart-y, .chart-x { position: absolute; color: var(--faint); font: 600 12px/1 var(--body); font-variant-numeric: tabular-nums; pointer-events: none; }
.chart-y { left: 0; top: 10px; bottom: 30px; width: 30px; }
.chart-y span { position: absolute; right: 0; transform: translateY(-50%); }
.chart-x { left: 40px; right: 10px; bottom: 6px; height: 14px; }
.chart-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 560px) {
  .chart-box { height: 220px; padding-left: 32px; }
  .chart-x { left: 32px; }
  .chart-y { width: 24px; }
  .chart-x span:nth-child(even) { visibility: hidden; }
}
.status-table { margin-top: 18px; }
.status-table > summary { width: fit-content; color: var(--dim); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.status-table[open] > summary { margin-bottom: 12px; }
.status-table .data-table { min-width: 0; font-variant-numeric: tabular-nums; }
.status-table .data-table th, .status-table .data-table td { padding: 9px 16px; }
.status-table .data-table tbody th { font-weight: 600; color: var(--star); }
.status-table .hint { margin-top: 8px; }

.uptime-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--dim); font-size: 14px; font-weight: 600; }
.uptime-legend li { display: inline-flex; align-items: center; gap: 8px; }
.uptime-legend .u-cell { width: 16px; height: 16px; }
.uptime-grid { display: grid; grid-template-columns: 60px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; }
.u-hours { color: var(--faint); font: 600 11px/1 var(--body); font-variant-numeric: tabular-nums; padding-bottom: 3px; white-space: nowrap; }
.u-day { grid-column: 1; align-self: center; color: var(--dim); font: 600 12.5px/1 var(--body); white-space: nowrap; }
/* Up fills the cell; partly down fills half of it; down is striped; no reading is an empty outline. */
.u-cell { display: block; height: 18px; border-radius: 3px; }
.u-up { background: var(--mint); }
.u-part { background: linear-gradient(to top, var(--sun) 0 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--sun); }
.u-down { background: repeating-linear-gradient(135deg, var(--plasma) 0 3px, rgba(255, 92, 138, 0.35) 3px 6px); }
.u-none { box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (max-width: 560px) {
  .uptime-grid { grid-template-columns: 44px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .u-cell { height: 14px; border-radius: 2px; }
  .u-day { font-size: 11px; }
}
.uptime-grid + .hint { margin-top: 10px; }
.status-sub { margin: 26px 0 12px; font-size: 17px; }
.outage-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.outage-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--star); }
.outage-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--plasma-soft); color: var(--plasma); font: 800 12px/1 var(--body); }
.status-since { margin-top: 18px; }

/* ── Appeals (views/appeals.ejs): each punishment with its own Appeal, written right there ── */
.appeals-page .page-head { padding-bottom: 20px; }
.appeal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .appeal-grid { grid-template-columns: 1fr; } }
.appeal-side h3 { font-size: 18px; margin: 0 0 14px; }
.appeal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.appeal-item { padding: 14px 16px; border-radius: var(--r-md); background: var(--space); border: 1px solid var(--line); scroll-margin-top: calc(var(--sticky) + 16px); }
.appeal-item:target { border-color: var(--ion); box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.18); }
.appeal-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 14px; }
.appeal-facts div { display: flex; gap: 6px; align-items: baseline; }
.appeal-facts dt { color: var(--faint); font-weight: 600; }
.appeal-facts dd { margin: 0; color: var(--star); }
.appeal-facts code { color: var(--ion); }
.appeal-item > .btn, .appeal-form, .appeal-state, .appeal-wait { margin-top: 12px; }
.appeal-form > summary { list-style: none; width: fit-content; }
.appeal-form > summary::-webkit-details-marker { display: none; }
.appeal-form .when-open, .appeal-form[open] .when-shut { display: none; }
.appeal-form[open] .when-open { display: inline; }
.appeal-form[open] > summary { margin-bottom: 12px; background: transparent; color: var(--star); border-color: var(--line-strong); box-shadow: none; }
.appeal-form .form { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--space-2); }
.appeal-form .field { margin: 0; }
.appeal-form .form-foot { margin: 0; }
.appeal-state { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.appeal-state.is-open { color: var(--ion); background: rgba(140, 203, 255, 0.1); }
.appeal-state.is-closed { color: var(--dim); background: rgba(255, 255, 255, 0.05); }
.appeal-state:hover { color: var(--star); }
.appeal-other { margin-top: 12px; }

/* The open Store (not logged in) and PayNow's line in the footer */
.store-guest .store-for-name { margin: 0; }
.legal-paynow a { color: var(--dim); text-underline-offset: 3px; }
.legal-paynow a:hover { color: var(--star); }

/* ── Community (views/community.ejs, leaderboards, events, suggestions, vote) ── */
.community-page { padding-bottom: 72px; }
.community-page .page-head { padding-bottom: 18px; }
.community-tabs { width: fit-content; max-width: 100%; overflow-x: auto; margin: 0 0 22px; scrollbar-width: none; }
.community-tabs::-webkit-scrollbar { display: none; }
.community-tabs a { white-space: nowrap; }
.community-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.community-card { display: grid; align-content: start; gap: 6px; color: var(--star); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.community-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.community-card h2 { margin: 4px 0 0; font-size: 20px; }
.community-card p { margin: 0; color: var(--dim); }
.community-emoji { font-size: 28px; line-height: 1; }
.community-peek { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; padding-top: 10px; border-top: 1px solid var(--line); color: var(--star) !important; font-size: 14px; }
.community-peek img { border-radius: 4px; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .community-card { transition: none; } .community-card:hover { transform: none; } }

.lb-boards { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.lb-boards a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--space-2); color: var(--dim); font-size: 14px; font-weight: 600; text-decoration: none; }
.lb-boards a:hover { color: var(--star); border-color: var(--line-strong); }
.lb-boards a[aria-current="page"] { background: var(--star); color: var(--space); border-color: var(--star); }
.lb-panel { max-width: 760px; }
.lb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.lb-head h2 { margin: 0; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 40px 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--space); border: 1px solid var(--line); }
.lb-row.lb-1 { border-color: rgba(255, 209, 102, 0.55); background: linear-gradient(90deg, rgba(255, 209, 102, 0.1), var(--space) 60%); }
.lb-row.lb-2 { border-color: rgba(200, 210, 230, 0.4); }
.lb-row.lb-3 { border-color: rgba(205, 140, 90, 0.45); }
.lb-row.is-me { box-shadow: 0 0 0 2px var(--ion); }
.lb-rank { text-align: center; font: 700 16px/1 var(--display); color: var(--faint); }
.lb-top .lb-rank { font-size: 22px; }
.lb-head-img { border-radius: 6px; image-rendering: pixelated; }
.lb-name { font-weight: 700; overflow-wrap: anywhere; }
.lb-you { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(140, 203, 255, 0.15); color: var(--ion); font-size: 12px; }
.lb-value { font: 700 16px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--star); }
.lb-note { margin-top: 14px; }

.events-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 1000px) { .events-grid { grid-template-columns: 1fr; } }
.event-card h2 { margin: 2px 0 6px; }
.event-koth { border-color: rgba(140, 203, 255, 0.35); }
.event-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.event-count { font: 700 26px/1.2 var(--display); color: var(--ion); font-variant-numeric: tabular-nums; }
.event-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--dim); }
.event-week { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.event-week li { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--space); border: 1px solid var(--line); }
@media (max-width: 560px) { .event-week li { grid-template-columns: 1fr; } }
.event-slots { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.event-slot { display: inline-flex; gap: 8px; align-items: baseline; }
.event-day { font-weight: 700; }
.event-time { font-variant-numeric: tabular-nums; color: var(--ion); font-weight: 700; }
.event-arena { color: var(--dim); }

.sugg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .sugg-layout { grid-template-columns: 1fr; } .sugg-side { order: -1; } }
.sugg-side { position: sticky; top: calc(var(--sticky) + 8px); }
@media (max-width: 1000px) { .sugg-side { position: static; } }
.sugg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sugg-statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.sugg-statuses a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: 13px; font-weight: 600; text-decoration: none; }
.sugg-statuses a span { color: var(--faint); }
.sugg-statuses a[aria-current="page"] { color: var(--star); border-color: var(--line-strong); background: var(--space-3); }
.sugg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sugg { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 20px; scroll-margin-top: calc(var(--sticky) + 16px); }
.sugg:target { border-color: var(--ion); }
.sugg-vote button { display: grid; justify-items: center; gap: 2px; width: 64px; padding: 10px 0; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--space-2); color: var(--dim); font: 700 16px/1 var(--body); cursor: pointer; }
.sugg-vote button:hover:not(:disabled) { color: var(--star); border-color: var(--ion); }
.sugg-vote button[aria-pressed="true"] { color: var(--space); background: var(--ion); border-color: var(--ion); }
.sugg-vote button:disabled { cursor: not-allowed; opacity: 0.6; }
.sugg-body h3 { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.sugg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; color: var(--faint); font-size: 13px; font-weight: 600; }
.sugg-status { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--dim); background: rgba(255, 255, 255, 0.06); }
.sugg-planned { color: #C9B8FF; background: rgba(139, 124, 255, 0.16); }
.sugg-progress { color: #FFD479; background: rgba(255, 196, 87, 0.14); }
.sugg-done { color: var(--mint); background: rgba(94, 230, 168, 0.13); }
.sugg-declined { color: #FF9AB6; background: var(--plasma-soft); }
.sugg-text { margin: 0; color: var(--dim); white-space: pre-line; overflow-wrap: anywhere; }
.sugg-reply { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--ion); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(140, 203, 255, 0.06); }
.sugg-reply p { margin: 0; white-space: pre-line; }
.sugg-reply-by { color: var(--ion); font-size: 13px; font-weight: 700; margin-bottom: 4px !important; }
.sugg-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 12px; }
.sugg-answer > summary { cursor: pointer; color: var(--dim); font-size: 14px; font-weight: 700; }
.sugg-answer .form { display: grid; gap: 8px; margin-top: 8px; min-width: min(420px, 80vw); }
.sugg-remove { font-size: 14px; }
.sugg-new h2 { margin-top: 0; font-size: 20px; }
.sugg-new .form { display: grid; gap: 10px; }

.vote-panel, .vote-setup { max-width: 760px; margin-bottom: 18px; }
.vote-rewards { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(94, 230, 168, 0.08); border: 1px solid rgba(94, 230, 168, 0.3); color: var(--star); }
.vote-sites { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.vote-sites li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--space); border: 1px solid var(--line); }
.vote-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--space-3); font-weight: 700; }
.vote-name { font-weight: 700; overflow-wrap: anywhere; }
.vote-edit { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.vote-edit li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.vote-url { color: var(--faint); font-size: 13px; overflow-wrap: anywhere; flex: 1; min-width: 160px; }
.vote-add { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: end; margin-bottom: 14px; }
@media (max-width: 700px) { .vote-add { grid-template-columns: 1fr; } }
.vote-rewards-form { display: grid; gap: 8px; }

/* the rank comparison and the supporters on the Store, the purchases on the profile */
.rank-compare { margin-top: 16px; }
.rank-compare h3 { margin: 0 0 12px; }
.rank-table { min-width: 0; }
.rank-table thead th { text-align: center; color: var(--star); }
.rank-table thead th:first-child { text-align: left; }
.rank-table thead small { display: block; color: var(--faint); font-weight: 600; margin-top: 2px; }
.rank-table td { text-align: center; color: var(--dim); }
.rank-table .rc-yes { color: var(--mint); font-weight: 800; }
.rank-table .rc-no { color: var(--faint); }
.rank-table tbody th { color: var(--star); font-weight: 600; }
.rank-edit { margin-top: 12px; }
.rank-edit > summary { cursor: pointer; color: var(--dim); font-weight: 700; width: fit-content; }
.rank-row-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rank-row-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rank-row-form input { width: 130px; min-width: 0; }
.rank-row-form input[name="label"] { width: 200px; }
.rank-row-new { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.store-supporters { margin: 0 0 22px; }
.store-supporters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.store-supporters li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--space-2); font-size: 14px; color: var(--dim); }
.store-supporters li img { border-radius: 50%; image-rendering: pixelated; }
.store-supporters li strong { color: var(--star); }
.store-supporters time { color: var(--faint); font-size: 12px; }
.purchase-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.purchase { padding: 10px 14px; border-radius: var(--r-sm); background: var(--space-2); border: 1px solid var(--line); }
.purchase-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.purchase-total { font-variant-numeric: tabular-nums; color: var(--star); font-weight: 700; }
.purchase-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; color: var(--faint); font-size: 13px; }
.purchase-state { font-weight: 700; color: var(--dim); }
.purchase-state.is-delivered { color: var(--mint); }
.purchase-state.is-stuck, .purchase-state.is-refunded, .purchase-state.is-chargeback { color: #FF9AB6; }
.supporter-toggle { display: flex; align-items: flex-start; gap: 8px; color: var(--dim); font-size: 14px; cursor: pointer; }
.supporter-toggle input { margin-top: 3px; }
.supporter-status { display: block; margin-top: 4px; }

/* player pages, badges, KOTH history, the owners' Discord posts setup */
a.lb-name { color: var(--star); text-decoration: none; }
a.lb-name:hover { color: var(--ion); text-decoration: underline; text-underline-offset: 3px; }
.player-page .community-tabs { margin-top: 28px; }
.player-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-bottom: 18px; }
.player-body { image-rendering: pixelated; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); }
.player-intro h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 46px); overflow-wrap: anywhere; }
.player-intro .hint { margin: 0 0 12px; }
.player-page > .panel { margin-bottom: 18px; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--star); background: var(--space-3); border: 1px solid var(--line-strong); }
.badge-staff { color: #FF9AB6; background: var(--plasma-soft); border-color: rgba(255, 92, 138, 0.4); }
.badge-top { color: #FFD479; background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.4); }
.badge-koth { color: #C9B8FF; background: rgba(139, 124, 255, 0.14); border-color: rgba(139, 124, 255, 0.4); }
.badge-supporter { color: var(--ion); background: rgba(140, 203, 255, 0.12); border-color: rgba(140, 203, 255, 0.4); }
.badge-verified { color: var(--mint); background: rgba(94, 230, 168, 0.1); border-color: rgba(94, 230, 168, 0.35); }
.player-places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.player-places a { display: inline-block; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--dim); text-decoration: none; }
.player-places a:hover { color: var(--star); border-color: var(--line-strong); }
.player-places strong { color: var(--star); }
.koth-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.koth-history li { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 9px 14px; border-radius: var(--r-sm); background: var(--space); border: 1px solid var(--line); }
@media (max-width: 560px) { .koth-history li { grid-template-columns: 1fr auto; } .kh-when { grid-column: 1 / -1; } }
.kh-when { color: var(--faint); font-size: 14px; font-weight: 600; }
.kh-arena { color: var(--dim); }
.kh-winner a { display: inline-flex; align-items: center; gap: 6px; color: var(--star); font-weight: 700; text-decoration: none; }
.kh-winner a:hover { color: var(--ion); }
.kh-winner img { image-rendering: pixelated; border-radius: 3px; }
.koth-leaders { margin: 0 0 12px; color: var(--dim); }
.koth-leaders a { color: var(--star); text-decoration: none; }
.community-setup { margin-top: 22px; max-width: 760px; }
.setup-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px 14px; align-items: end; margin: 12px 0; }
@media (max-width: 700px) { .setup-form { grid-template-columns: 1fr; } }
.recap-preview > summary { cursor: pointer; color: var(--dim); font-weight: 700; width: fit-content; }
.recap-embed { margin-top: 10px; padding: 12px 16px; border-left: 4px solid #3498DB; border-radius: 4px; background: #2B2D31; color: #DBDEE1; font-size: 14px; }
.recap-embed p { margin: 0 0 8px; white-space: pre-line; }
.recap-title { font-weight: 800; color: #FFF; }
