/* Biome Atlas
 * A night sky over Sol's world. Every biome carries its own colour (--bh, set inline from app.js) and an orb glyph.
 * The three rare biomes are jackpot cards with a turning foil edge; on a biome's own page the whole sky takes its colour.
 * Two working accents only: Sol gold for actions and progress, aurora cyan for anything live or switched on.
 * Rainbow foil is reserved for rare biomes and the Rare pill.
 * Fonts: Unbounded (display), Figtree (everything else), JetBrains Mono for code only. Dark only, on purpose. */

:root {
  color-scheme: dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.125rem; --text-xl: 1.3rem; --text-2xl: 1.5rem; --text-3xl: 2rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-micro: 140ms; --dur-short: 240ms; --dur-long: 900ms;
  --container: 1280px; --gutter: 32px; --side: 252px; --layout-gap: var(--space-xl); /* centred and contained, like Sapphire (owner's call, 2026-11-15) */ --control-h: 42px; --top-h: 64px;
  --z-dropdown: 100; --z-nav: 150; --z-sticky: 200; --z-toast: 500;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;

  --bg: #070b11; --bg-2: #0c131b; --bg-3: #142030;
  --field: #081018;
  --line: rgb(150 185 215 / 0.12); --line-2: rgb(150 185 215 / 0.22); --line-3: rgb(150 185 215 / 0.36); --line-field: #56697c;
  --ink: #eef4f9; --ink-2: #c3d0db; --muted: #93a5b6;
  --gold: #ffc53d; --gold-2: #ffdb7a; --gold-ink: #1b1302;
  --live: #3fe0f0; --live-ink: #03161a;
  --error: #ff7070; --error-ink: #1e0606;
  --foil: #22d3ee, #39ff88, #ffd23f, #ff8fd0, #ff7a1a, #22d3ee;
  --panel: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01)), var(--bg-2);
  --glass: rgb(12 19 27 / 0.66);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 18px 40px -24px rgb(0 0 0 / 0.9);

  --font-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--bg-3) var(--bg); scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.5; -webkit-font-smoothing: antialiased; caret-color: var(--gold);
  background:
    radial-gradient(900px 520px at 8% -8%, rgb(34 211 238 / 0.12), transparent 62%),
    radial-gradient(760px 480px at 96% -4%, rgb(255 197 61 / 0.09), transparent 60%),
    radial-gradient(1100px 700px at 50% 120%, rgb(57 255 136 / 0.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* the starfield sits over the biome tint, under everything else */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, #cfe8ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 210px 170px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 80px 210px, #ffe9a3 50%, transparent 51%),
    radial-gradient(1px 1px at 260px 40px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 170px 260px, #8ef0d2 50%, transparent 51%);
  background-size: 290px 290px;
  mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.3) 55%, transparent 100%);
}
#app, .banner, .toasts { position: relative; z-index: 1; }
.toasts { position: fixed; }
::selection { background: rgb(255 197 61 / 0.35); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
a { color: inherit; text-decoration-thickness: 1.5px; text-decoration-color: rgb(255 197 61 / 0.6); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--gold); }
.board-row a:focus-visible, .todo-link:focus-visible, .dest a:focus-visible { outline-offset: -3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-code); font-weight: 500; font-size: 0.86em; background: var(--bg-3); color: var(--gold-2); padding: 0.1em 0.45em; border-radius: 6px; border: 1px solid var(--line-2); white-space: nowrap; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 999; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; text-decoration: none; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus-visible { top: 8px; }
.muted { color: var(--muted); }
.noscript { padding: 24px; }

/* ---------- the biome sky tint (editor pages) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 420ms linear;
  background: radial-gradient(1100px 620px at 72% -12%, color-mix(in oklab, var(--bh, #9aa7b4) 24%, transparent), transparent 64%), radial-gradient(800px 520px at -6% 108%, color-mix(in oklab, var(--bh, #9aa7b4) 11%, transparent), transparent 62%); }
.backdrop[data-biome] { opacity: 1; }
.backdrop[data-biome="glitched"] { background:
  radial-gradient(820px 480px at 80% -8%, rgb(255 46 99 / 0.22), transparent 62%),
  radial-gradient(820px 480px at 70% 0%, rgb(57 255 136 / 0.22), transparent 62%),
  radial-gradient(700px 420px at 0% 100%, rgb(57 255 136 / 0.08), transparent 60%),
  repeating-linear-gradient(0deg, transparent 0 3px, rgb(57 255 136 / 0.03) 3px 4px); }
.backdrop[data-biome="dreamspace"] { background:
  radial-gradient(700px 460px at 80% -6%, rgb(255 143 208 / 0.26), transparent 64%),
  radial-gradient(620px 420px at 30% 10%, rgb(255 190 225 / 0.10), transparent 66%),
  radial-gradient(900px 600px at 10% 110%, rgb(255 143 208 / 0.14), transparent 62%); }
.backdrop[data-biome="cyberspace"] { background:
  radial-gradient(900px 520px at 72% -10%, rgb(34 211 238 / 0.22), transparent 62%),
  linear-gradient(rgb(34 211 238 / 0.07) 1px, transparent 1px) 0 0 / 46px 46px,
  linear-gradient(90deg, rgb(34 211 238 / 0.07) 1px, transparent 1px) 0 0 / 46px 46px; }
.backdrop[data-biome="cyberspace"] { mask-image: radial-gradient(140% 90% at 70% 0%, #000 30%, transparent 85%); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--control-h); padding: 0 18px; border: 1px solid var(--line-3); border-radius: 999px; background: rgb(255 255 255 / 0.03); color: var(--ink); font-family: var(--font-body); font-weight: 650; font-size: var(--text-sm); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-micro) linear, border-color var(--dur-micro) linear, transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn:hover { background: rgb(255 255 255 / 0.08); border-color: var(--ink-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.45; transform: none; }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent; box-shadow: 0 0 0 1px rgb(255 219 122 / 0.5) inset, 0 8px 24px -10px rgb(255 197 61 / 0.7); font-weight: 700; }
.btn-primary:hover { background: linear-gradient(180deg, #ffe596, var(--gold-2)); border-color: transparent; box-shadow: 0 0 0 1px rgb(255 235 170 / 0.7) inset, 0 10px 30px -8px rgb(255 197 61 / 0.85); }
.btn-primary:active { background: var(--gold); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { background: rgb(255 255 255 / 0.06); border-color: transparent; color: var(--ink); }
.btn-danger { border-color: rgb(255 112 112 / 0.55); color: var(--error); background: rgb(255 112 112 / 0.06); }
.btn-danger:hover { background: var(--error); color: var(--error-ink); border-color: var(--error); }
.btn-small { min-height: 36px; padding: 0 14px; }
.btn-big { min-height: 54px; padding: 0 28px; font-size: var(--text-md); }
.link-btn { background: none; border: 0; padding: 0; font-weight: 650; color: var(--gold-2); text-decoration: underline; text-decoration-color: rgb(255 197 61 / 0.5); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; cursor: pointer; }
.link-btn:hover { text-decoration-color: var(--gold); }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-h); min-width: var(--control-h); justify-content: center; padding: 0 10px; background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 650; font-size: var(--text-sm); color: var(--ink-2); transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear; }
.icon-btn:hover { background: rgb(255 255 255 / 0.07); color: var(--ink); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: var(--z-sticky); background: rgb(7 11 17 / 0.74); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter); height: var(--top-h); display: flex; align-items: center; gap: var(--space-md); }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.wordmark { gap: 10px; }
.wordmark .logo { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.wordmark span { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; line-height: 1; color: var(--ink); }
.top-guild { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; padding: 0 14px 0 6px; margin-left: 6px; text-decoration: none; font-weight: 650; font-size: var(--text-sm); border: 1px solid var(--line-2); border-radius: 999px; background: rgb(255 255 255 / 0.03); transition: background-color var(--dur-micro) linear, border-color var(--dur-micro) linear; }
.top-guild span:not(.gicon) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-guild:hover { background: rgb(255 255 255 / 0.07); border-color: var(--line-3); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.me { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-sm); font-weight: 650; padding-right: 4px; color: var(--ink-2); }
.avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--live), var(--gold)); color: #04140e; font-weight: 800; font-size: var(--text-sm); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-3); }
.menu-btn { display: none; }
.busy { height: 2px; margin-bottom: -2px; background: linear-gradient(90deg, transparent, var(--live), var(--gold), transparent); transform: scaleX(0); transform-origin: left; opacity: 0; }
body[data-busy] .busy { opacity: 1; animation: busy 1.1s var(--ease-out) infinite; }
@keyframes busy { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- banner ---------- */
.banner { display: flex; align-items: center; justify-content: center; gap: var(--space-md); flex-wrap: wrap; padding: 8px var(--gutter); font-size: var(--text-sm); text-align: center; }
.banner-demo { background: linear-gradient(90deg, rgb(34 211 238 / 0.14), rgb(255 197 61 / 0.12)); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.banner-demo strong { color: var(--ink); }
.banner-demo strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); margin-right: 8px; vertical-align: 0.12em; }
.banner-off { background: var(--gold); color: var(--gold-ink); }
.banner-off .btn { border-color: var(--gold-ink); color: var(--gold-ink); background: transparent; }
.banner-off :focus-visible { outline-color: var(--gold-ink); }

/* ---------- layout ---------- */
.layout { max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: var(--layout-gap); align-items: start; }
/* the content area is the container the wide layouts below ask about, so they track the space left beside the nav, not the window */
.page { padding: var(--space-xl) 0 var(--space-2xl); min-width: 0; container: page / inline-size; }
.page:focus { outline: none; }
.page-narrow { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.page-title { font-size: var(--text-3xl); max-width: 24ch; }
.page-title:focus { outline: none; }
.page-narrow > h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.lead { color: var(--ink-2); max-width: 64ch; margin-top: var(--space-xs); }
.sub { color: var(--muted); font-size: var(--text-sm); margin-top: 4px; }
.fine, .hint { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-xs); max-width: 62ch; }
.center-page { min-height: 60vh; display: grid; place-content: center; justify-items: start; gap: var(--space-md); padding: var(--space-xl) var(--gutter); max-width: 640px; margin-inline: auto; }
.center-page h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }

/* ---------- side nav: a glass panel on desktop ---------- */
.side { position: sticky; top: calc(var(--top-h) + 24px); margin: var(--space-xl) 0; padding: 14px 10px 18px; max-height: calc(100dvh - var(--top-h) - 48px); overflow-y: auto; scrollbar-width: thin;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.side-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 650; text-decoration: none; color: var(--muted); min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); }
.side-back:hover { color: var(--ink); }
.side-head { font-weight: 650; font-size: var(--text-xs); color: var(--muted); margin: var(--space-md) 0 var(--space-2xs) 12px; }
.side-list { display: grid; gap: 2px; }
.side-list a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 6px 12px; text-decoration: none; font-weight: 550; color: var(--ink-2); border-radius: var(--r-sm); transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear; }
.side-list a:hover { background: rgb(255 255 255 / 0.05); color: var(--ink); }
.side-list a[aria-current="page"] { background: linear-gradient(90deg, rgb(255 197 61 / 0.16), rgb(255 197 61 / 0.03)); color: var(--ink); font-weight: 700; }
.side-list a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: var(--text-xs); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- groups and fields ---------- */
.group { margin-top: var(--space-2xl); }
.group:first-child { margin-top: 0; }
.group-title { font-size: var(--text-xl); max-width: 30ch; }
.page-title + .lead, .group-title + .lead { margin-bottom: var(--space-md); }
.group-title + .fields, .group-title + .tiers, .group-title + .empty-line, .group-title + .dest { margin-top: var(--space-md); }
.fields { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fields > .field:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.fields > .field:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.page-title + .lead + .fields { margin-top: var(--space-lg); }
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-sm) var(--space-xl); padding: 18px 22px; border-top: 1px solid var(--line); align-items: start; transition: background-color var(--dur-short) linear; }
.field:first-child { border-top: 0; }
.field:hover { background: rgb(255 255 255 / 0.015); }
.field-wide { grid-template-columns: minmax(0, 1fr); }
.field-label { display: block; font-weight: 650; }
.help { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; margin-top: 3px; max-width: 52ch; }
.field-control { min-width: 0; display: grid; gap: var(--space-xs); justify-items: start; }
.field-control > .combo-wrap, .field-control > .input:not(.input-num):not(.input-emoji), .field-control > .select, .field-control > .inline-add, .field-control > details { width: 100%; }
.field-action { margin-top: 2px; }
.field.is-flagged { animation: flag 2.4s var(--ease-out) 1; }
@keyframes flag { 0%, 30% { background: rgb(255 197 61 / 0.16); } 100% { background: transparent; } }
.why { display: flex; gap: 7px; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-2); }
.why .ic { margin-top: 2px; width: 16px; height: 16px; color: var(--gold); }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }

/* ---------- inputs ---------- */
.input, .select select, .combo-input { background: var(--field); border: 1px solid var(--line-field); border-radius: var(--r-md); transition: border-color var(--dur-micro) linear, box-shadow var(--dur-short) var(--ease-out); }
.input:hover, .select select:hover, .combo-input:hover { border-color: var(--muted); }
.input:focus, .select select:focus, .combo-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(255 197 61 / 0.14); }
.input { width: 100%; min-height: var(--control-h); padding: 8px 14px; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:disabled { opacity: 0.5; cursor: not-allowed; }
.input-num { width: 8.5rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.input-emoji { width: 6rem; font-size: 1.2rem; text-align: center; }
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.unit { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--text-sm); }
.select { position: relative; display: inline-block; width: 100%; max-width: 100%; }
.select select { appearance: none; width: 100%; min-height: var(--control-h); padding: 8px 40px 8px 14px; cursor: pointer; text-overflow: ellipsis; }
.select select option { background: var(--bg-2); color: var(--ink); }
.select select:disabled { cursor: not-allowed; color: var(--muted); border-style: dashed; }
.select .ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
/* Chrome 135+ lets the open list be styled; elsewhere the native list (dark, via color-scheme) stays.
   Without this, Windows Chrome paints the hovered option light blue under light text: unreadable. */
@supports (appearance: base-select) {
  .select select, .select select::picker(select) { appearance: base-select; }
  .select select::picker-icon { display: none; }
  .select select::picker(select) { margin-top: 6px; padding: 6px; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-3); border-radius: var(--r-md); box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); }
  .select select option { padding: 9px 12px; border-radius: calc(var(--r-md) - 4px); background: transparent; color: var(--ink); cursor: pointer; }
  .select select option::checkmark { color: var(--gold); }
  .select select option:hover, .select select option:focus-visible { background: var(--bg-3); outline: none; }
  .select select option:checked { color: var(--gold); font-weight: 650; }
  .select select option:disabled { color: var(--muted); cursor: not-allowed; }
  /* the closed select shows one line, ellipsized, instead of wrapping (base-select ignores text-overflow) */
  .select select > button { all: unset; display: block; min-width: 0; overflow: hidden; }
  .select selectedcontent { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.inline-add { display: flex; gap: var(--space-xs); }
.inline-add .input { flex: 1; min-width: 0; }

/* switch: on is the same cyan as everything live */
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: var(--control-h); padding: 0; background: none; border: 0; cursor: pointer; font-weight: 650; font-size: var(--text-sm); color: var(--ink-2); }
.switch-track { width: 52px; height: 30px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-field); position: relative; flex: none; transition: background-color var(--dur-short) linear, box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-short) linear; }
.switch-knob { position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform var(--dur-short) var(--ease-spring), background-color var(--dur-short) linear; }
.switch[aria-checked="true"] { color: var(--ink); }
.switch[aria-checked="true"] .switch-track { background: rgb(63 224 240 / 0.3); border-color: rgb(63 224 240 / 0.75); box-shadow: 0 0 18px -4px rgb(63 224 240 / 0.7); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); background: #e8fdff; box-shadow: 0 0 10px rgb(63 224 240 / 0.9); }
.switch:hover .switch-track { border-color: var(--ink-2); }
.switch:focus-visible { outline: none; }
.switch:focus-visible .switch-track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* segmented hours / points */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-field); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: inline-flex; align-items: center; min-height: calc(var(--control-h) - 10px); padding: 0 20px; border-radius: 999px; font-weight: 650; font-size: var(--text-sm); color: var(--ink-2); transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear; }
.seg-opt input:checked + span { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 4px 14px -6px rgb(255 197 61 / 0.8); }
.seg-opt input:not(:checked):hover + span { background: rgb(255 255 255 / 0.06); color: var(--ink); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.ask { width: 100%; background: rgb(255 197 61 / 0.06); padding: var(--space-md); display: grid; gap: var(--space-sm); border: 1px solid rgb(255 197 61 / 0.35); border-radius: var(--r-md); }
.ask p { font-size: var(--text-sm); }
.ask-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2); font-size: var(--text-sm); font-weight: 550; max-width: 100%; }
.chip > span:not(.dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-default { padding-right: 12px; color: var(--muted); border-style: dashed; }
.chip-x { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: none; border: 0; cursor: pointer; flex: none; color: var(--muted); }
.chip-x::before { content: ""; position: absolute; inset: -5px; }
.chip-x:hover { background: rgb(255 112 112 / 0.18); color: var(--error); }
.chip-x .ic { width: 14px; height: 14px; }

/* role dot: the role's own Discord colour */
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; display: inline-block; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.28), 0 0 8px color-mix(in oklab, var(--dot) 60%, transparent); }
.dot-none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- combobox ---------- */
.combo-wrap { display: grid; gap: 8px; min-width: 0; }
.combo { position: relative; display: flex; align-items: center; }
.combo-input { width: 100%; min-height: var(--control-h); padding: 8px 42px 8px 14px; text-overflow: ellipsis; cursor: pointer; }
.combo-input:focus { cursor: text; }
.combo-input::placeholder { color: var(--muted); opacity: 1; }
.combo-input:disabled { cursor: not-allowed; opacity: 0.5; }
.combo.has-dot .combo-input, .is-multi .combo-input { padding-left: 34px; }
.combo-dot, .combo-lead { position: absolute; left: 14px; pointer-events: none; }
.combo-lead { left: 11px; display: inline-flex; color: var(--gold); }
.combo-lead .ic { width: 16px; height: 16px; }
.combo-chev { position: absolute; right: 12px; pointer-events: none; display: inline-flex; color: var(--muted); }
.combo-clear { position: absolute; right: 1px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; cursor: pointer; color: var(--muted); }
.combo-clear:hover { background: rgb(255 255 255 / 0.08); color: var(--ink); }
.combo-clear .ic { width: 16px; height: 16px; }
.combo-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: var(--z-dropdown); max-height: min(340px, 52vh); overflow-y: auto; overscroll-behavior: contain; background: #0f1923; border: 1px solid var(--line-3); border-radius: var(--r-md); box-shadow: 0 24px 50px -16px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(0 0 0 / 0.4); padding: 6px; container-type: inline-size; animation: drop 160ms var(--ease-out); transform-origin: top; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px) scaleY(0.98); } }
.opt { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; }
.opt-label { font-weight: 600; flex: 1 1 auto; min-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-note { color: var(--muted); font-size: var(--text-xs); margin-left: auto; padding-left: 8px; text-align: right; flex: 0 1 auto; min-width: 0; max-width: 50%; line-height: 1.3; }
.opt-why { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.opt-why .ic { width: 12px; height: 12px; }
.opt-check { width: 16px; height: 16px; color: var(--gold); margin-left: 4px; }
.opt-note + .opt-check { margin-left: 4px; }
.opt-label + .opt-check { margin-left: auto; }
.opt:hover, .opt.is-active { background: rgb(255 197 61 / 0.12); color: var(--ink); }
.opt[aria-selected="true"] { background: rgb(255 197 61 / 0.08); }
.opt[aria-disabled="true"] { cursor: not-allowed; }
.opt[aria-disabled="true"] .opt-label { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.opt[aria-disabled="true"]:hover, .opt[aria-disabled="true"].is-active { background: rgb(255 255 255 / 0.03); }
.opt-empty { padding: 10px 12px; color: var(--muted); font-size: var(--text-sm); }

/* ---------- tags and pills ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 11px; border-radius: 999px; font-weight: 650; font-size: var(--text-xs); border: 1px solid var(--line-3); color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag-rare { color: #1a1203; border: 0; background: linear-gradient(100deg, #39ff88, #ffd23f 45%, #ff8fd0); font-weight: 800; letter-spacing: 0.02em; }
.tag-quiet { border-color: var(--line-2); color: var(--ink-2); }
/* a channel name, in the biome's own colour */
.pill { display: inline-block; max-width: 100%; min-height: 26px; line-height: 20px; padding: 2px 11px 2px 9px; border-radius: 999px; font-weight: 650; font-size: var(--text-xs); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: color-mix(in oklab, var(--bh, var(--live)) 62%, #fff); border: 1px solid color-mix(in oklab, var(--bh, var(--live)) 42%, transparent); background: color-mix(in oklab, var(--bh, var(--live)) 11%, transparent); }
.pill::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 0.1em; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); margin-right: 8px; vertical-align: 0.1em; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- orbs: the biome glyph ---------- */
.orb { --o: var(--bh, #9aa7b4); display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; font-size: 1.25rem; line-height: 1;
  background: radial-gradient(circle at 32% 26%, rgb(255 255 255 / 0.5), transparent 42%), radial-gradient(circle at 50% 62%, color-mix(in oklab, var(--o) 72%, #000), color-mix(in oklab, var(--o) 28%, #05080c) 80%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--o) 60%, transparent), 0 0 22px -4px color-mix(in oklab, var(--o) 75%, transparent), inset 0 -6px 12px rgb(0 0 0 / 0.35);
  transition: transform var(--dur-short) var(--ease-spring), box-shadow var(--dur-short) var(--ease-out); }
.orb-g { display: block; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45)); }
/* off: a clean slate orb with a visible ring, the glyph dimmed. Reads as "switched off", not broken. */
.orb.is-off { background: radial-gradient(circle at 32% 26%, rgb(255 255 255 / 0.14), transparent 46%), linear-gradient(180deg, #2a3746, #18222e); box-shadow: inset 0 0 0 1.5px rgb(170 195 220 / 0.38), inset 0 -6px 10px rgb(0 0 0 / 0.3); }
.orb.is-off .orb-g { opacity: 0.62; filter: grayscale(1) contrast(1.1); }
/* real artwork (the bot's own biome thumbnails / wiki merchant headshots) laid over the glyph, which shows if it fails */
.orb { position: relative; overflow: hidden; }
.orb-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.orb.has-art .orb-g { visibility: hidden; }
.orb.coin .orb-art { object-position: 50% 18%; }
.orb.is-off .orb-art { filter: grayscale(1) brightness(0.62) contrast(1.05); }
/* merchants: a struck coin with initials */
.orb.coin { border-radius: 30%; font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em; color: #120d03;
  background: radial-gradient(circle at 30% 24%, rgb(255 255 255 / 0.55), transparent 44%), linear-gradient(160deg, color-mix(in oklab, var(--o) 92%, #fff), color-mix(in oklab, var(--o) 70%, #000)); }
.orb.coin .orb-g { filter: none; }
.orb.coin.is-off { color: var(--ink-2); background: linear-gradient(180deg, #2a3746, #18222e); }
.orb.coin.is-off .orb-g { opacity: 0.8; filter: none; }
.orb-xs { width: 26px; height: 26px; font-size: 0.85rem; box-shadow: 0 0 0 1px color-mix(in oklab, var(--o) 55%, transparent); }
.orb-xs.coin { font-size: 0.55rem; }

/* ---------- foil: the rare biomes' rainbow edge ----------
 * One oversized conic square turns behind the card (transform only, so the compositor does the work);
 * ::after paints the card face 1.5px inside it, leaving the foil showing only at the edge. */
.foil { position: relative; isolation: isolate; overflow: hidden; border: 0 !important; }
.foil::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--foil)); transform: translate(-50%, -50%) rotate(0deg); animation: foil 9s linear infinite; will-change: transform; }
.foil::after { content: ""; position: absolute; z-index: -1; inset: 1.5px; border-radius: calc(var(--r-lg) - 1.5px); pointer-events: none;
  background: radial-gradient(360px 200px at 0% 0%, color-mix(in oklab, var(--bh) 26%, transparent), transparent 75%), var(--bg-2); }
@keyframes foil { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: var(--space-xl) var(--gutter); }
.login:focus { outline: none; }
.login-inner { max-width: 640px; display: grid; gap: var(--space-md); justify-items: start; padding: var(--space-xl); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.login h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.2rem); max-width: 14ch; }
.wordmark-big span { font-size: 1.3rem; }
.login-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin-top: var(--space-xs); }
.login-actions[hidden], .login-or[hidden] { display: none; }
.btn-discord { gap: 10px; background: #5865f2; color: #fff; border-color: transparent; font-weight: 700; min-height: 48px; padding: 0 22px; }
.btn-discord:hover { background: #4752c4; }
.login-or { margin: var(--space-md) 0 0; color: var(--muted); font-size: var(--text-sm); }

/* ---------- servers ---------- */
.page-narrow { padding-top: var(--space-2xl); }
.page-narrow .lead { margin-bottom: var(--space-xl); font-size: var(--text-lg); }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--space-lg); }
.server { position: relative; display: flex; flex-direction: column; min-height: 96px; overflow: hidden; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short) linear, box-shadow var(--dur-short) var(--ease-out); }
.server-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; border-radius: inherit; }
/* Soft banner: the server's own icon, blurred; the initials gradient when it has none. */
.server-banner { position: relative; display: block; height: 76px; flex: none; overflow: hidden; background: var(--bg-2); }
.server-banner img { position: absolute; inset: -40%; width: 180%; height: 180%; object-fit: cover; filter: blur(26px); }
.server-banner img.is-banner { inset: 0; width: 100%; height: 100%; filter: none; }
.server-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 14 21 / 0.15), rgb(8 14 21 / 0.75)); }
.server-head { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 0 20px; margin-top: -30px; }
.server-head .gicon { width: 64px; height: 64px; border-radius: 20px; box-shadow: 0 0 0 4px var(--bg-2), 0 8px 18px -8px rgb(0 0 0 / 0.7); }
.server-text { display: grid; min-width: 0; flex: 1; gap: 2px; padding-top: 40px; }
.server-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.server-meta { color: var(--muted); font-size: var(--text-sm); }
.server-cta { flex: none; margin-top: 42px; }
.server-out .server-head { padding-bottom: 20px; }
.server-link .server-head + .server-stats { margin-top: auto; }
.server-link .server-head:last-child { padding-bottom: 20px; }
.server:has(.server-link) { border-color: rgb(255 197 61 / 0.3); }
.server:has(.server-link):hover { transform: translateY(-2px); border-color: rgb(255 197 61 / 0.75); box-shadow: var(--shadow), 0 20px 40px -24px rgb(255 197 61 / 0.6); }
.server-link:hover .server-cta { background: linear-gradient(180deg, #ffe596, var(--gold-2)); }
.server-link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.server-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 16px 20px 20px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.sstat { display: grid; align-content: start; gap: 3px; padding: 10px 12px; background: var(--bg-2); min-width: 0; }
.sstat-v { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sstat-l { color: var(--muted); font-size: 0.72rem; line-height: 1.25; }
.sstat-on .sstat-v { color: var(--live); }
.sstat-on .sstat-v::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.sstat-off .sstat-v { color: var(--muted); }
.sstat-off .sstat-v::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.sstat-done .sstat-v { color: var(--live); }
.sstat-done .ic { width: 16px; height: 16px; }
.sstat-todo .sstat-v { color: var(--gold); flex-wrap: wrap; row-gap: 4px; }
.setup-bars { display: flex; gap: 2px; flex-basis: 100%; }
.setup-bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }
.setup-bars i.on { background: var(--gold); }
.server-out { border: 1.5px dashed var(--line-3); box-shadow: none; background: rgb(12 19 27 / 0.35); }
.server-out .server-banner { filter: grayscale(1); opacity: 0.45; }
.server-out:hover { border-color: var(--ink-2); }
.server-out .gicon { filter: grayscale(1) brightness(0.8); }
.server-add { border: 1.5px dashed var(--line-3); background: transparent; box-shadow: none; min-height: 200px; }
.server-add-link { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center; text-decoration: none; color: inherit; border-radius: inherit; }
.server-add-link .server-meta { max-width: 30ch; }
.server-add-plus { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; color: var(--gold); background: rgb(255 197 61 / 0.1); box-shadow: inset 0 0 0 1.5px rgb(255 197 61 / 0.45); transition: transform var(--dur-short) var(--ease-out); }
.server-add-plus .ic { width: 22px; height: 22px; }
.server-add:hover { border-color: var(--gold); }
.server-add:hover .server-add-plus { transform: scale(1.08); }
.server-add-link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.gicon { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 16px; }
.gicon-none { display: inline-grid; place-items: center; color: #06121a; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.02em;
  background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.server-out .gicon-none { background: var(--bg-2); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-2); filter: none; }
.gicon.sm { width: 28px; height: 28px; font-size: 0.6rem; border-radius: 50%; }
.gicon.lg { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 22px; }
.skel { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-lg); }
.server.skel { min-height: 200px; border: 0; }
.skel-title { height: 44px; width: 60%; margin-bottom: var(--space-lg); }
.skel-block { height: 180px; margin-bottom: var(--space-lg); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty { padding: var(--space-lg); display: grid; gap: var(--space-md); justify-items: start; background: var(--panel); border: 1px dashed var(--line-3); border-radius: var(--r-lg); }
.empty-line { color: var(--ink-2); padding: var(--space-md) var(--space-lg); border: 1px dashed var(--line-3); border-radius: var(--r-md); }

/* ---------- setup ---------- */
.setup-head { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); margin-bottom: var(--space-lg); padding: 24px 28px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(500px 220px at 0% 0%, rgb(34 211 238 / 0.18), transparent 70%), radial-gradient(420px 220px at 100% 100%, rgb(255 197 61 / 0.13), transparent 70%), var(--bg-2); box-shadow: var(--shadow); }
.setup-name { flex: 1 1 220px; min-width: 0; }
.setup-head .page-title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); }
.setup-head .sub { color: var(--ink-2); font-weight: 600; }
.power { display: flex; align-items: center; gap: var(--space-md); padding: 10px 12px 10px 18px; border-radius: var(--r-lg); background: rgb(63 224 240 / 0.07); border: 1px solid rgb(63 224 240 / 0.3); }
.power.is-off { background: rgb(255 197 61 / 0.07); border-color: rgb(255 197 61 / 0.4); }
.power-text { display: grid; line-height: 1.3; }
.power-text strong { font-size: var(--text-sm); }
.power-text span { color: var(--ink-2); font-size: var(--text-xs); }
.power .switch-text { display: none; }

/* the checklist: a progress ring that fills from where it was */
.checklist { margin-top: 0; }
.check-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.check-head .lead { margin: 4px 0 0; }
.ring { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring-bg { stroke: var(--bg-3); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; animation: ring-fill var(--dur-long) var(--ease-out) both; }
@keyframes ring-fill { from { stroke-dasharray: calc(var(--p0) * 100) 100; } }
.ring-n { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1; display: inline-flex; align-items: baseline; }
.ring-of { font-size: 0.62em; color: var(--muted); }
.ring.is-full .ring-fg { stroke: var(--live); }
.ring.is-full .ring-n .ic { width: 26px; height: 26px; color: var(--live); animation: pop 500ms var(--ease-spring) 300ms both; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.checklist.is-done .check-head { margin-bottom: 0; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid rgb(63 224 240 / 0.35); background: radial-gradient(420px 160px at 0% 0%, rgb(63 224 240 / 0.14), transparent 70%), var(--bg-2); }
.todo { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.todo-item + .todo-item { border-top: 1px solid var(--line); }
.todo-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--space-sm) var(--space-md); align-items: center; padding: 16px 20px; text-decoration: none; transition: background-color var(--dur-micro) linear; }
a.todo-link:hover { background: rgb(255 197 61 / 0.06); }
.todo-box { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--gold); transition: transform var(--dur-short) var(--ease-spring), border-style 0s; }
a.todo-link:hover .todo-box { border-style: solid; transform: scale(1.12); box-shadow: 0 0 12px rgb(255 197 61 / 0.5); }
.todo-text { display: grid; gap: 2px; min-width: 0; }
.todo-label { font-weight: 700; font-size: var(--text-lg); text-decoration: underline; text-decoration-color: rgb(255 197 61 / 0.55); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a.todo-link:hover .todo-label { text-decoration-color: var(--gold); }
.todo-help { color: var(--muted); font-size: var(--text-sm); }
.todo-where { font-weight: 650; font-size: var(--text-xs); color: var(--ink-2); white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--line-2); }
.todo-go { color: var(--muted); transition: transform var(--dur-short) var(--ease-out), color var(--dur-micro) linear; }
a.todo-link:hover .todo-go { transform: translateX(3px); color: var(--gold); }
.callout { margin-top: var(--space-lg); padding: 16px 20px; border-radius: var(--r-lg); background: rgb(255 197 61 / 0.06); border: 1px solid rgb(255 197 61 / 0.3); }
.callout-action { display: grid; gap: var(--space-sm); justify-items: start; }

/* the biome sky: every biome's state in one view */
.sky-panel { margin-top: var(--space-xl); padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  background: radial-gradient(700px 240px at 50% 0%, rgb(63 224 240 / 0.08), transparent 70%), radial-gradient(500px 200px at 100% 100%, rgb(255 143 208 / 0.05), transparent 70%), var(--bg-2); }
.sky-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.sky-top .lead { margin: 4px 0 0; }
.sky-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.sky-stats a { display: inline-flex; align-items: baseline; gap: 0; min-height: 40px; padding: 8px 14px; border-radius: 999px; text-decoration: none; background: rgb(255 255 255 / 0.04); border: 1px solid var(--line-2); transition: border-color var(--dur-micro) linear, background-color var(--dur-micro) linear, transform var(--dur-short) var(--ease-out); }
.sky-stats a:hover { border-color: var(--gold); background: rgb(255 197 61 / 0.08); transform: translateY(-1px); }
.stat-top { display: inline-flex; align-items: baseline; }
.stat-n { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.stat-of { color: var(--muted); font-weight: 650; font-size: var(--text-sm); }
.stat-l { color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; margin-left: 6px; }
.sky { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; }
.sky-item a { display: grid; grid-template-rows: 52px auto; justify-items: center; align-items: center; align-content: start; gap: 8px; height: 100%; padding: 12px 4px 10px; border-radius: var(--r-md); text-decoration: none; text-align: center; transition: background-color var(--dur-micro) linear; }
.sky-item a:hover { background: rgb(255 255 255 / 0.05); }
.sky-item a:hover .orb { transform: translateY(-3px) scale(1.06); }
.sky-name { font-size: var(--text-xs); font-weight: 650; line-height: 1.2; color: var(--ink); }
.sky-item:not(.is-live) .sky-name { color: var(--muted); font-weight: 550; }
.sky-item.is-rare .orb { width: 52px; height: 52px; font-size: 1.45rem; }
.sky-item.is-rare.is-live .orb { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px color-mix(in oklab, var(--bh) 80%, #fff), 0 0 30px color-mix(in oklab, var(--bh) 80%, transparent); }
.sky-item.is-rare .sky-name { font-weight: 750; }
.sky-merch { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line); display: flex; align-items: center; gap: var(--space-md); }
.sky-sub { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; color: var(--ink-2); letter-spacing: 0; flex: none; min-width: 80px; }
.sky-m { flex: 1; }
.sky-m .orb { width: 38px; height: 38px; }

/* ---------- biome board ---------- */
.board-sum { margin: var(--space-md) 0 var(--space-lg); font-size: var(--text-sm); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.board-sum strong { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }

/* rare jackpots */
.jackpots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-bottom: var(--space-lg); }
.jackpot a { height: 100%; display: grid; gap: 18px; padding: 20px; text-decoration: none; font-size: var(--text-sm); border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.jackpot a:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 22px 44px -22px color-mix(in oklab, var(--bh) 85%, transparent); }
.jackpot a:hover .orb { transform: scale(1.08) rotate(-8deg); }
.jp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.jp-head .orb { width: 56px; height: 56px; font-size: 1.55rem; }
.jackpot.is-live .orb { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px color-mix(in oklab, var(--bh) 85%, #fff), 0 0 32px color-mix(in oklab, var(--bh) 80%, transparent); }
.jp-title { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.jp-name { font-size: clamp(0.92rem, 0.7rem + 0.5vw, 1.08rem); }
.jp-count { display: grid; justify-items: end; line-height: 1; color: var(--ink-2); font-size: var(--text-xs); font-weight: 650; gap: 4px; }
.jp-count .num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink); }
.jp-cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }

/* common biomes: compact rows */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.board-head, .board-row a { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 0 18px 0 24px; }
.board-head { min-height: 42px; font-size: var(--text-xs); font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--line); }
.board-row + .board-row a { border-top: 1px solid var(--line); }
.board-row a { position: relative; min-height: 58px; text-decoration: none; font-size: var(--text-sm); transition: background-color var(--dur-micro) linear; }
.board-row a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); }
.board-row.is-live a::before { background: var(--bh); box-shadow: 0 0 12px color-mix(in oklab, var(--bh) 70%, transparent); }
.board-row a:hover { background: color-mix(in oklab, var(--bh) 6%, transparent); }
.board-row a:hover .orb { transform: scale(1.12) rotate(-6deg); }
.board-row a:hover .bc-go { transform: translateX(3px); color: var(--ink); }
.board-row .orb { width: 32px; height: 32px; font-size: 0.95rem; }
.board-row.is-live .orb { box-shadow: 0 0 0 1px color-mix(in oklab, var(--bh) 60%, transparent), 0 0 16px -3px color-mix(in oklab, var(--bh) 80%, transparent), inset 0 -4px 8px rgb(0 0 0 / 0.35); }
.bc { min-width: 0; }
.bc-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jp-cells .bc-k { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: block; font-size: var(--text-xs); font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.bc-v { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bc-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.86rem; letter-spacing: 0.01em; line-height: 1.15; min-width: 0; color: var(--ink); }
.board-row:not(.is-live) .b-name { color: var(--ink-2); font-weight: 600; }
.bc-go { display: inline-flex; color: var(--muted); transition: transform var(--dur-short) var(--ease-out), color var(--dur-micro) linear; }
.jackpot .bc-go { display: none; }

/* each rare biome carries its own title treatment */
[data-b="glitched"] { color: #f2fff7 !important; text-shadow: -2px 0 rgb(255 46 99 / 0.85), 2px 0 rgb(57 255 136 / 0.85); }
[data-b="dreamspace"] { color: #ffe6f4 !important; text-shadow: 0 0 14px rgb(255 143 208 / 0.9), 0 0 36px rgb(255 143 208 / 0.45); }
[data-b="cyberspace"] { color: transparent !important; background: repeating-linear-gradient(180deg, #b9f6ff 0 2px, #22d3ee 2px 3px); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 8px rgb(34 211 238 / 0.6)); }

/* arriving on a biome: the orb settles in, GLITCHED glitches once. Never on a save, never with reduced motion. */
.arrive .ed-hero .orb { animation: pop 520ms var(--ease-spring) both; }
.arrive .ed-title[data-b="glitched"] { animation: glitch 560ms steps(1, end) both; }
@keyframes glitch {
  0% { transform: translateX(3px) skewX(-10deg); text-shadow: -7px 0 rgb(255 46 99 / 0.95), 7px 0 rgb(57 255 136 / 0.95); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(2px) skewX(6deg); text-shadow: 4px 0 rgb(255 46 99 / 0.95), -4px 0 rgb(57 255 136 / 0.95); }
  60% { transform: none; }
}
.arrive .ed-title[data-b="dreamspace"] { animation: dream 1100ms var(--ease-out) both; }
@keyframes dream { from { text-shadow: 0 0 2px rgb(255 143 208 / 0), 0 0 2px rgb(255 143 208 / 0); } }

/* ---------- editor ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; font-size: var(--text-sm); text-decoration: none; color: var(--ink-2); margin-bottom: var(--space-sm); }
.back:hover { color: var(--ink); }
.back .ic { transition: transform var(--dur-short) var(--ease-out); }
.back:hover .ic { transform: translateX(-3px); }
.ed-hero { --bh: #9aa7b4; position: relative; margin-bottom: var(--space-xl); padding: 26px 28px; border-radius: var(--r-xl); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); border: 1px solid color-mix(in oklab, var(--bh) 35%, transparent);
  background: radial-gradient(520px 260px at 0% 0%, color-mix(in oklab, var(--bh) 26%, transparent), transparent 72%), var(--bg-2); box-shadow: var(--shadow); }
.ed-hero.foil { padding: 27px 29px; }
.ed-hero.foil::after { border-radius: calc(var(--r-xl) - 1.5px); }
.ed-hero.foil::after { background: radial-gradient(560px 280px at 0% 0%, color-mix(in oklab, var(--bh) 30%, transparent), transparent 72%), var(--bg-2); }
.ed-head { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 auto; }
.ed-id { min-width: 0; }
.ed-hero .orb { width: 72px; height: 72px; font-size: 2rem; }
.ed-hero.is-live .orb { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4.5px color-mix(in oklab, var(--bh) 85%, #fff), 0 0 44px color-mix(in oklab, var(--bh) 85%, transparent); }
.ed-hero .orb.coin { font-size: 1.3rem; }
.ed-title { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem); text-transform: uppercase; letter-spacing: -0.01em; max-width: none; }
.ed-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ed-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 0; border-radius: var(--r-lg); background: rgb(0 0 0 / 0.22); border: 1px solid var(--line-2); }
.ed-stat { padding: 12px 18px; min-width: 0; }
.ed-stat + .ed-stat { border-left: 1px solid var(--line); }
.ed-stat dt { font-size: var(--text-xs); font-weight: 650; color: var(--muted); }
.ed-stat dd { font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.ed-stat dd .num { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.ed-stat.is-live dd { color: color-mix(in oklab, var(--bh) 55%, #fff); }
.paste { font-size: var(--text-sm); }
.paste summary { cursor: pointer; font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; color: var(--gold-2); text-decoration: underline; text-decoration-color: rgb(255 197 61 / 0.5); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.paste[open] summary { margin-bottom: var(--space-xs); }
.ed-grid, .finds-grid { margin-top: var(--space-2xl); } /* the hero's or lead's margin collapses into this one, as it did with the first group */
.danger { margin-top: var(--space-2xl); padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid rgb(255 112 112 / 0.28); background: rgb(255 112 112 / 0.04); display: grid; gap: var(--space-sm); justify-items: start; color: var(--ink-2); font-size: var(--text-sm); }

/* tiers and add forms */
.tiers { display: grid; gap: 10px; }
.tier { padding: 18px 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); display: grid; gap: var(--space-sm); }
.tier-chan { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; }
.tier-n { font-weight: 750; font-size: var(--text-xs); color: var(--gold); padding: 2px 10px; border-radius: 999px; background: rgb(255 197 61 / 0.1); border: 1px solid rgb(255 197 61 / 0.3); }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-sm); align-items: end; }
.tier-x { justify-self: start; }
.mini { display: grid; gap: 6px; min-width: 0; }
.mini-label { font-weight: 650; font-size: var(--text-sm); color: var(--ink-2); }
.tier-add { margin-top: var(--space-md); padding: 20px; border-radius: var(--r-lg); border: 1.5px dashed rgb(255 197 61 / 0.35); background: rgb(255 197 61 / 0.03); display: grid; gap: var(--space-md); justify-items: start; }
.tier-add .tier-grid { width: 100%; }
.ping-all { margin-top: var(--space-md); display: flex; gap: var(--space-sm); align-items: end; flex-wrap: wrap; }
.ping-all .mini { flex: 1 1 240px; }

/* points */
.pv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.sub-title { font-size: var(--text-md); margin-bottom: var(--space-sm); }
.pv-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pv-list-short { max-width: 440px; margin-bottom: var(--space-md); }
.pv { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 7px 10px 7px 14px; border-top: 1px solid var(--line); }
.pv:first-child { border-top: 0; }
.pv label { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.pv-name { font-weight: 650; font-size: var(--text-sm); }
.pv .input-num { width: 5.5rem; min-height: 38px; text-align: right; }
.tr-list { margin-top: var(--space-md); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tr { display: flex; align-items: center; gap: var(--space-sm); padding: 12px 12px 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tr:first-child { border-top: 0; }
.tr-role { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.tr-at { color: var(--ink-2); font-size: var(--text-sm); margin-left: auto; }
.tr-at .num { font-weight: 750; color: var(--ink); }
.progress { margin-top: var(--space-md); max-width: 560px; display: grid; gap: 8px; font-size: var(--text-sm); }
progress { appearance: none; width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--bg-3); }
progress::-webkit-progress-bar { background: var(--bg-3); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--live), var(--gold)); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--live), var(--gold)); }

/* finds destinations */
.dest { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dest li + li a { border-top: 1px solid var(--line); }
.dest a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px; gap: var(--space-sm); align-items: center; min-height: 52px; padding: 8px 18px; text-decoration: none; font-size: var(--text-sm); transition: background-color var(--dur-micro) linear; }
.dest a:hover { background: rgb(255 255 255 / 0.04); }
.dest .b-name { font-size: 0.85rem; }

/* ---------- misc categories: one card per category, a tile per system ---------- */
.misc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); flex-wrap: wrap; }
.misc-grid { margin-top: var(--space-md); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.misc-sw { display: grid; align-content: start; gap: 2px; padding: 12px 16px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.misc-sw-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.misc-sw.is-off { background: transparent; border-style: dashed; }
.misc-sw.is-off .field-label { color: var(--ink-2); }
.misc-sw .help .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.misc-card > .fields { margin-top: 10px; }
.switch:disabled { cursor: not-allowed; opacity: 0.5; }

/* ---------- logs: tabs, the finds chart, the finds table and event rows ---------- */
.logs-head { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.logs-head .tag .ic { width: 14px; height: 14px; }
.side-note { margin: var(--space-md) 12px 0; font-size: var(--text-sm); color: var(--muted); }
.side-note .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin-top: var(--space-lg); padding: 4px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-field); }
.tabs a { display: inline-flex; align-items: center; min-height: calc(var(--control-h) - 10px); padding: 0 18px; border-radius: 999px; font-weight: 650; font-size: var(--text-sm); color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear; }
.tabs a:hover { background: rgb(255 255 255 / 0.06); color: var(--ink); }
.tabs a[aria-current="page"] { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 4px 14px -6px rgb(255 197 61 / 0.8); }
.logs-body { margin-top: var(--space-xl); }
.logs-body > .group:first-child { margin-top: 0; }
.logs-body > .group + .group { margin-top: var(--space-xl); }
.skel-list { display: grid; gap: 8px; }
.skel-row { height: 52px; border-radius: var(--r-md); }
.skel-embed { height: 132px; border-radius: var(--r-md); }
.skel-chart { height: 250px; margin-top: var(--space-md); }

.chart { margin-top: var(--space-md); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.chart-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 170px auto; column-gap: 10px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: var(--text-xs); color: var(--muted); text-align: right; line-height: 1; }
.chart-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cchip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 3px 12px 3px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-size: var(--text-sm); cursor: pointer; transition: border-color var(--dur-short) linear, background var(--dur-short) linear; }
.cchip:first-child { padding-left: 12px; }
.cchip .orb-xs { width: 24px; height: 24px; font-size: 0.75rem; }
.cchip .num { color: var(--muted); font-weight: 700; }
.cchip:hover { border-color: var(--ink-2); color: var(--ink); }
.cchip[aria-pressed="true"] { border-color: var(--bar); background: color-mix(in oklab, var(--bar) 18%, transparent); color: var(--ink); }
.cchip[aria-pressed="true"] .num { color: var(--ink); }
.cchip:focus-visible, .cbar:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chart-bars { display: flex; align-items: stretch; gap: 3px; border-bottom: 1px solid var(--line-2); background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.cbar { flex: 1; min-width: 0; display: flex; align-items: flex-end; padding: 0; border: 0; border-radius: 4px 4px 0 0; background: transparent; cursor: pointer; }
.cbar span { display: block; width: 100%; height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in oklab, var(--bar) 70%, transparent); transition: background var(--dur-short) linear; }
.cbar:hover { background: rgb(255 255 255 / 0.04); }
.cbar:hover span { background: var(--bar); }
.cbar[aria-pressed="true"] { background: rgb(255 255 255 / 0.07); }
.cbar[aria-pressed="true"] span { background: var(--bar); box-shadow: 0 0 14px color-mix(in oklab, var(--bar) 60%, transparent); }
.chart-readout { padding-top: 14px; border-top: 1px solid var(--line); }
.cr-day { margin: 0 0 10px; }
.cr-list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--text-sm); }
.cr-list li { display: inline-flex; align-items: center; gap: 8px; }
.cr-list .orb-xs { width: 22px; height: 22px; font-size: 0.72rem; }
.cr-list .num { font-weight: 750; color: var(--ink); }
.cr-list .is-dim { opacity: 0.45; }
.chart-ticks { grid-column: 2; display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--text-xs); color: var(--muted); }

.log-filters { margin: var(--space-md) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-sm); align-items: end; max-width: 900px; }
.log-filters > .btn { justify-self: start; }
.log-filters input[type=date] { color-scheme: dark; }
.log-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.log-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.log-table th { text-align: left; font-size: var(--text-xs); font-weight: 650; color: var(--muted); padding: 12px 16px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.log-table td { padding: 9px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.log-table tbody tr:first-child td { border-top: 0; }
.log-table tbody tr:hover { background: rgb(255 255 255 / 0.025); }
.log-table tr.is-fake .lt-find, .log-table tr.is-fake .lt-pts { opacity: 0.55; }
.log-table .lt-pts { text-align: right; font-weight: 700; }
.lt-chan { color: var(--ink-2); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; vertical-align: middle; }
.log-time { color: var(--muted); white-space: nowrap; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.lt-when .log-time { color: var(--ink-2); }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; vertical-align: middle; font-weight: 600; }
.who-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-av { width: 22px; height: 22px; flex: none; border-radius: 50%; }
.who-av.avatar-none { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--live), var(--gold)); color: #04140e; font-size: 0.6rem; font-weight: 800; }
.who-gone { font-family: var(--font-code); font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.tag-real { color: #9ff5c4; border-color: rgb(57 255 136 / 0.45); background: rgb(57 255 136 / 0.08); }
.tag-fake { color: var(--error); border-color: rgb(255 112 112 / 0.5); background: rgb(255 112 112 / 0.08); }
.tag .ic { width: 13px; height: 13px; }
.log-more { margin-top: var(--space-md); display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.log-more .fine { margin-top: 0; }

.log-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.log-row { --tone: var(--ink-2); display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px var(--space-sm); align-items: start; padding: 12px 18px 12px 14px; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.log-row:first-child { border-top: 0; }
.tone-live { --tone: var(--live); } .tone-bad { --tone: var(--error); } .tone-warn, .tone-gold { --tone: var(--gold); }
.log-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--tone, var(--ink-2)); background: color-mix(in oklab, var(--tone, var(--ink-2)) 12%, transparent); border: 1px solid color-mix(in oklab, var(--tone, var(--ink-2)) 30%, transparent); }
.log-ic .ic { width: 16px; height: 16px; }
.log-main { min-width: 0; padding-top: 5px; }
.log-what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.log-what strong { font-weight: 700; }
.log-where { font-weight: 650; color: var(--ink-2); }
.log-to { color: var(--muted); }
.log-row > .log-time { padding-top: 6px; }
.log-detail { margin-top: 4px; color: var(--ink-2); }
.log-bad { color: var(--error); }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.mention { padding: 0 3px; border-radius: 4px; font-weight: 600; color: #c9d3ff; background: rgb(88 101 242 / 0.22); }
/* Leaked: blocked people opened an anti-leaker link. Loud on purpose; opens to whose PS it was. */
.leak { margin: 4px 0 10px; border-radius: 12px; border: 1px solid rgb(255 112 112 / 0.55); background: linear-gradient(90deg, rgb(255 112 112 / 0.2), rgb(255 112 112 / 0.06)); }
.leak summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: inherit; }
.leak summary::-webkit-details-marker { display: none; }
.leak summary:focus-visible { outline: 2px solid var(--error); outline-offset: 2px; }
.leak-word { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--error); text-shadow: 0 0 18px rgb(255 112 112 / 0.5); }
.leak-sub { flex: 1; min-width: 14ch; color: var(--ink-2); font-size: var(--text-sm); }
.leak-sub u { color: var(--ink); text-underline-offset: 3px; }
.leak-chev { flex: none; color: var(--error); transition: transform var(--dur-short) var(--ease-out); }
.leak[open] .leak-chev { transform: rotate(180deg); }
.leak-menu { display: grid; gap: 10px; padding: 4px 16px 16px; border-top: 1px solid rgb(255 112 112 / 0.25); padding-top: 14px; }
.leak-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: center; margin: 0; }
.leak-facts dt, .leak-label { color: var(--muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.leak-facts dd { margin: 0; min-width: 0; }
.leak-who { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.leak-who li { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.leak-sharers { display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 40rem) { .leak-facts { grid-template-columns: 1fr; gap: 4px; } .leak-facts dd + dt { margin-top: 8px; } .leak-word { font-size: 1.3rem; } }
.joiners { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.joiners li { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 2px 4px 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--text-xs); }
.joiners li:not(:has(.tag)) { padding-right: 10px; }
.joiners .num { color: var(--muted); font-weight: 650; }
.joiners .tag { min-height: 20px; padding: 0 8px; }
.joiners .is-blocked { border-style: dashed; }
.changes { display: grid; gap: 4px; }
.changes li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ch-k { color: var(--muted); }
.ch-arrow { width: 14px; height: 14px; color: var(--muted); }
.log-body { white-space: normal; overflow-wrap: anywhere; display: inline-block; max-width: 100%; }

.embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 10px; align-items: start; }
.embed { padding: 12px 16px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); display: grid; gap: 8px; min-width: 0; font-size: var(--text-sm); }
.embed-kind { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink-2); }
.embed-kind .log-ic { width: 26px; height: 26px; border-radius: 8px; }
.embed-kind .log-ic .ic { width: 14px; height: 14px; }
.embed-kind .log-time { margin-left: auto; }
.embed-c { color: var(--ink-2); }
.embed-box { border-left: 4px solid var(--tone, var(--line-3)); border-radius: 4px; padding: 10px 14px; background: rgb(0 0 0 / 0.22); display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.embed-t { font-weight: 750; color: var(--ink); }
.embed-d { color: var(--ink-2); }
.embed-fs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 16px; margin-top: 2px; }
.embed-f dt { font-weight: 700; font-size: var(--text-xs); color: var(--ink); }
.embed-f dd { color: var(--ink-2); }
.logs-clear .group-title { font-size: var(--text-lg); color: var(--ink); }
.logs-clear p { max-width: 64ch; }
.logs-clear .input { width: 16rem; max-width: 100%; }

@container page (min-width: 1400px) {
  /* the chart's legend sits beside the plot, the table keeps its one long column set */
  .chart-plot { grid-template-rows: 260px auto; }
  .log-filters { grid-template-columns: repeat(3, minmax(200px, 280px)) auto; max-width: none; }
  .log-row { grid-template-columns: 32px minmax(0, 1fr) 9rem; }
  .log-row > .log-time { text-align: right; }
}
@media (max-width: 40rem) {
  .tabs { width: 100%; border-radius: var(--r-lg); }
  .tabs a { flex: 1 1 auto; justify-content: center; padding: 0 12px; min-height: 40px; }
  .chart { padding: 14px 12px; }
  .chart-plot { grid-template-rows: 150px auto; }
  .chart-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -12px; padding: 2px 12px 6px; scrollbar-width: thin; }
  .cchip { flex: none; }
  .chart-bars { gap: 2px; }
  /* finds: each row becomes a small card */
  .log-table thead { display: none; }
  .log-table, .log-table tbody { display: block; }
  .log-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "find when" "chan pts" "who verdict"; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .log-table tbody tr:first-child { border-top: 0; }
  .log-table td { padding: 0; border: 0; min-width: 0; }
  .lt-find { grid-area: find; } .lt-when { grid-area: when; justify-self: end; } .lt-chan { grid-area: chan; max-width: none; font-size: var(--text-xs); }
  .lt-pts { grid-area: pts; } .lt-who { grid-area: who; } .lt-verdict { grid-area: verdict; justify-self: end; }
  .log-row { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 14px 12px 12px; }
  .log-row .log-ic { width: 28px; height: 28px; }
  .log-row > .log-time { grid-column: 2; padding-top: 0; font-size: var(--text-xs); }
  .logs-clear .ask-row { width: 100%; }
  .logs-clear .input, .logs-clear .btn { width: 100%; }
}

/* ---------- toasts ---------- */
.toasts { z-index: var(--z-toast); left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(460px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--space-sm); padding: 10px 6px 10px 16px; border-radius: var(--r-md); background: rgb(14 23 32 / 0.94); backdrop-filter: blur(12px); border: 1px solid rgb(63 224 240 / 0.4); color: var(--ink); font-size: var(--text-sm); animation: toast-in var(--dur-short) var(--ease-out); box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.9), 0 0 24px -10px rgb(63 224 240 / 0.6); }
.toast p { flex: 1; }
.toast-error { border-color: rgb(255 112 112 / 0.6); box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.9), 0 0 24px -10px rgb(255 112 112 / 0.7); }
.toast-warn { border-color: rgb(255 197 61 / 0.6); box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.9), 0 0 24px -10px rgb(255 197 61 / 0.7); }
.toast .btn { color: inherit; }
.toast-x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; color: inherit; cursor: pointer; flex: none; }
.toast-x:hover { background: rgb(255 255 255 / 0.08); }
.toast-x .ic { width: 16px; height: 16px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- wide screens: the content area fills the window, so settings flow into columns ----------
 * Keyed on the content width (container "page"), from about a 1920px window up. Rows keep label and help
 * on the left, control on the right; only how many rows sit side by side changes. */
@container page (min-width: 1400px) {
  /* settings: two rows side by side in one panel */
  /* filled top to bottom per column (--rows, set by schemaSection), so related settings stack; one line splits the columns */
  .page > .group > .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 1), auto);
    background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, var(--panel); }
  .page > .group > .fields > .col-top, .page > .group > .fields:not([style]) > .field:nth-child(2) { border-top: 0; }
  .page > .group > .fields > .field:only-child { grid-column: 1 / -1; }
  .page > .group > .fields:has(> .field:only-child) { background: var(--panel); }
  /* help text gets the bigger share of a half-width row */
  :is(.ed-grid, .finds-grid, .page > .group > .fields) .field:not(.field-wide) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

  /* overview: server, setup and the link callout share the first row; the sky gets the whole width */
  .setup { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: stretch; }
  .setup > * { margin: 0; min-width: 0; flex: 1 1 0; }
  .setup > .setup-head { flex-grow: 1.3; }
  .setup > .checklist:not(.is-done) { flex-grow: 2; }
  .setup > .callout { align-content: center; }
  .setup > .sky-panel { flex-basis: 100%; }
  .checklist.is-done .check-head { height: 100%; }

  /* editor: alert on the left, link protection and finds on the right, tiers across */
  .ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--layout-gap); align-items: start; }
  .ed-grid > * { margin-top: 0; }
  .ed-grid:has(> [aria-labelledby="g-finds"]) > [aria-labelledby="g-alert"] { grid-row: span 2; }
  .ed-grid > [aria-labelledby="g-tiers"] { grid-column: 1 / -1; }

  /* a list with an add form (tiers, time roles, aura roles): the list on the left, the form beside it */
  .group:has(> .tier-add) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; column-gap: var(--layout-gap); align-items: start; }
  .group:has(> .tier-add) > * { grid-column: 1 / -1; }
  .group:has(> .tier-add) > :is(.fields, .tiers, .tr-list, .empty-line, .ping-all) { grid-column: 1; }
  .group:has(> .tier-add) > :is(.tiers, .tr-list, .empty-line, .tier-add) { margin-top: 0; }
  .group:has(> .tier-add) > .tier-add { grid-column: 2; grid-row: span 4; }
  .group:has(> .tier-add) > .group-title:not(:has(+ .lead)), .group:has(> .tier-add) > .fields { margin-bottom: var(--space-md); }
  .group:has(> .tier-add) .tier-add .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 2x2, not 3 + an orphan */

  /* finds: roles and counts on the left, where finds go beside them */
  .finds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--layout-gap); align-items: start; }
  .finds-grid > .group { margin-top: 0; }
  .finds-grid > [aria-labelledby="g-dest"] { grid-column: 2; grid-row: 1 / span 2; }

  /* points: biomes in three columns beside the merchants, every column the same width */
  .pv-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .pv-cols > :first-child .pv-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-cols > :first-child .pv:nth-child(-n+3) { border-top: 0; }
  .pv-cols > :first-child .pv:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }

  /* the sky: wider cells and bigger orbs, so every biome fits on one row of a 1440p screen and two of a 1080p one;
     merchants get the same cells under their own heading, so the two rows line up */
  .sky { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .sky .orb { width: 52px; height: 52px; font-size: 1.45rem; }
  .sky-item.is-rare .orb { width: 60px; height: 60px; font-size: 1.65rem; }
  .sky-item a { grid-template-rows: 60px auto; }
  .sky-merch { flex-direction: column; align-items: stretch; gap: var(--space-xs); }
  .sky-m { width: 100%; }
}

@container page (min-width: 2000px) {
  .group:has(> .tier-add) .tier-add .tier-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
}

/* ---------- tablets: rows lose the header, jackpots stack ---------- */
.bc-meta { display: contents; }
@media (max-width: 75rem) {
  .board-head { display: none; }
  .board-row a { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "name go" "meta go"; gap: 8px 12px; padding: 12px 16px 12px 20px; }
  .board-row .bc-name { grid-area: name; }
  .board-row .bc-go { grid-area: go; }
  .board-row .bc-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-left: 44px; min-width: 0; }
  .board-row .bc-meta .bc { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; }
  .board-row .bc-meta .bc-chan { flex-basis: 100%; }
  .board-row .bc-meta .bc-k { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; color: var(--muted); font-size: var(--text-xs); font-weight: 600; }
  .board-row .bc-meta .bc-chan .bc-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .board-row .bc-meta .bc-v { font-size: var(--text-xs); font-weight: 600; }
  .board-row .bc-meta .bc-chan .bc-v { font-size: var(--text-sm); }
  /* a biome that isn't posting has nothing else worth a line */
  .board-row:not(.is-live) .bc-meta .bc:not(.bc-chan) { display: none; }
}

/* ---------- under 60rem: the nav becomes a full-screen menu ---------- */
@media (max-width: 60rem) {
  :root { --gutter: 24px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menu-btn { display: inline-flex; border-color: var(--line-3); padding: 0 14px; }
  .menu-btn[aria-expanded="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
  .side { display: none; position: fixed; inset: 0; z-index: var(--z-nav); margin: 0; border: 0; border-radius: 0; box-shadow: none; max-height: none; background: rgb(7 11 17 / 0.97); padding: calc(var(--top-h) + var(--space-md)) var(--gutter) var(--space-2xl); overflow-y: auto; overscroll-behavior: contain; }
  .side.is-open { display: block; animation: toast-in var(--dur-short) var(--ease-out); }
  /* with the menu open the top bar pins to the very top, so nothing shows above it */
  body.nav-open { overflow: hidden; }
  body.nav-open .top { position: fixed; top: 0; left: 0; right: 0; }
  .side-list a { min-height: 50px; font-size: var(--text-lg); }
  .side-head { font-size: var(--text-sm); }
  .me-name { display: none; }
  .ed-stats { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --control-h: 46px; --text-3xl: 1.6rem; --text-xl: 1.15rem; --top-h: 60px; }
  .top-inner { gap: var(--space-xs); }
  .top-guild { display: none; }
  .page { padding-top: var(--space-lg); }
  .page-narrow { padding-top: var(--space-xl); }
  .page-narrow .lead { font-size: var(--text-md); margin-bottom: var(--space-lg); }
  .group { margin-top: var(--space-xl); }
  .field { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .field-control .seg { width: 100%; }
  .seg-opt { flex: 1; }
  .seg-opt span { justify-content: center; width: 100%; }
  .todo-link { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 16px; row-gap: 8px; }
  .todo-where { grid-column: 2; grid-row: 2; justify-self: start; }
  .todo-go { grid-column: 3; grid-row: 1 / 3; }
  .pv-cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .btn-small { min-height: 44px; }
  .chip { min-height: 36px; }
  .chip-x { width: 34px; height: 34px; }
  .seg-opt span { min-height: 44px; }
  .inline-add { flex-wrap: wrap; }
  .inline-add .input { flex-basis: 100%; }
  .tier-add > .btn, .login-actions .btn { width: 100%; }
  .login-inner { padding: var(--space-lg); }
  .setup-head { padding: 18px; gap: var(--space-md); }
  .setup-head .gicon.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 1.1rem; }
  .power { flex: 1 1 100%; justify-content: space-between; }
  .ring { width: 56px; height: 56px; }
  .check-head { align-items: flex-start; }
  .sky-panel { padding: 16px 12px; }
  .sky-top { padding: 0 4px; }
  .sky-stats { width: 100%; }
  .sky-stats li { flex: 1 1 0; }
  .sky-stats a { flex-direction: column; align-items: center; gap: 0; padding: 8px 6px; border-radius: var(--r-md); width: 100%; }
  .stat-l { margin: 0; font-size: var(--text-xs); }
  .sky { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .sky-item a { padding: 10px 2px 8px; min-height: 44px; }
  .sky-merch { flex-direction: column; align-items: stretch; gap: 6px; }
  .sky-sub { padding: 0 4px; }
  .sky-m { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sky-m .sky-name { font-size: 0.72rem; }
  .server-head { padding: 0 16px; }
  .server-head .gicon { width: 54px; height: 54px; border-radius: 17px; }
  .server-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 16px 16px; }
  .jackpots { gap: 10px; }
  .jackpot a { padding: 16px; gap: 14px; }
  .jp-head .orb { width: 48px; height: 48px; font-size: 1.3rem; }
  .ed-hero { padding: 20px; gap: var(--space-md); }
  .ed-hero.foil { padding: 21.5px; }
  .ed-hero .orb { width: 56px; height: 56px; font-size: 1.6rem; }
  .ed-head { gap: 14px; flex-basis: 100%; }
  .ed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-stat:first-child { grid-column: 1 / -1; }
  .ed-stat + .ed-stat { border-left: 0; border-top: 1px solid var(--line); }
  .ed-stat:nth-child(3) { border-left: 1px solid var(--line); }
  .ed-stat { padding: 10px 14px; }
  .ed-stat dd { max-width: none; }
  .ed-stat dd { font-size: var(--text-sm); }
  .dest a { grid-template-columns: minmax(0, 1fr) 20px; padding: 10px 16px; }
  .dest a span:nth-child(2) { grid-column: 1; color: var(--ink-2); }
  .dest a .ic { grid-row: 1 / 3; grid-column: 2; }
  /* time and aura role rows: one grid, so every row lines up whatever the name length */
  .tr { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "dot role btn" ". at btn"; gap: 2px var(--space-sm); padding: 12px 12px 12px 16px; }
  .tr > .dot { grid-area: dot; align-self: center; }
  .tr-role { grid-area: role; }
  .tr-at { grid-area: at; margin-left: 0; }
  .tr > .btn { grid-area: btn; align-self: center; }
}
@container (max-width: 360px) {
  /* option notes drop under the name rather than squeeze it, in any narrow list (a phone or a tier form) */
  .opt { flex-wrap: wrap; row-gap: 0; }
  .opt-label { flex: 1 1 0; }
  .opt-check { order: 2; margin-left: auto; }
  .opt-note { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; padding-left: 0; text-align: left; }
  .opt > .dot ~ .opt-note { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .foil::before, .live-dot { animation: none !important; }
  body[data-busy] .busy { transform: scaleX(1); }
}
/* login: the /dashboard steps */
.login-steps { margin: 1.25rem 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0.6rem; text-align: left; }
.login-steps li { counter-increment: s; display: block; position: relative; padding: 0.8rem 1rem 0.8rem 3.35rem; border-radius: 14px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.login-steps li::before { content: counter(s); position: absolute; left: 1rem; top: 0.75rem; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-weight: 800; background: var(--accent, #ffc53d); color: #120d03; }
.login-steps code { font-size: 1.05em; padding: 0.05em 0.4em; border-radius: 6px; background: rgb(255 255 255 / 0.1); }
