/* RTM dashboard — flat, like the game's own HUD: dark neutral planes told apart by tone, hairlines
   instead of outlines, no drop shadows. One accent, rust red, for the primary action and the
   current place only; red text means an error. */

:root {
  color-scheme: dark;
  --canvas: #131110;
  --surface: #1c1918;
  --surface-2: #252120;
  --surface-3: #2e2927;
  --line: rgba(239, 230, 223, 0.09);
  --line-strong: rgba(239, 230, 223, 0.18);
  --text: #efe6df;
  --text-muted: #b4a79f;
  --text-faint: #8f837b;
  --accent: #c8452c;
  --accent-hover: #d9553a;
  --accent-press: #a83a24;
  --on-accent: #ffffff;
  --danger: #ef7d66;
  --crown: #e3b04b;
  --focus: #efe6df;
  --radius: 3px;
  --font-display: "Bahnschrift", "DIN Alternate", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font: 400 1rem/1.55 var(--font-body);
  overflow-wrap: anywhere;
}

main { flex: 1 0 auto; outline: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.75em; text-wrap: pretty; }

a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--text); color: var(--canvas); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 8px; }

.mono { font-family: var(--font-mono); font-size: 0.92em; overflow-wrap: anywhere; }
.muted { color: var(--text-faint); }

/* ---------------------------------------------------------------- buttons */

/* One primary style (solid rust); everything else is a quiet secondary. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--text);
  font: 600 0.95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { background: var(--surface-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }

.btn-ghost, .btn-quiet { border-color: transparent; }
.btn-quiet { padding-inline: 10px; color: var(--text-muted); }
.btn-quiet:hover { color: var(--text); }

.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.88rem; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.link-arrow::after { content: "→"; margin-left: 6px; transition: transform 150ms var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.link-quiet { color: var(--text-muted); }

/* ---------------------------------------------------------------- top bar */

.topbar {
  /* The sides never shrink below their content: the links stay centred while there is room, and
     move off centre rather than overlap the menus when there is not. */
  display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 16px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  position: relative; z-index: 3;
}
.home .masthead { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.home .topbar { background: transparent; border-bottom-color: transparent; }

.brand {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 700 1.3rem/1 var(--font-display); letter-spacing: 0.04em; text-decoration: none;
}
.brand img { width: 42px; height: auto; }

.topnav { display: flex; gap: 4px; justify-self: center; }
.topnav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; white-space: nowrap;
  font: 700 0.95rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.topbar-end { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* The header menus: <details>, so they work without the script. */
.menu { position: relative; }
.menu > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; white-space: nowrap;
  border-radius: var(--radius); color: var(--text-muted); cursor: pointer; list-style: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--surface-2); color: var(--text); }
.menu-code { font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.menu-caret { flex: none; width: 7px; height: 7px; margin: 0 2px 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 150ms var(--ease); }
.menu[open] .menu-caret { transform: translateY(3px) rotate(225deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 200px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.menu-panel form { margin: 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--text);
  font: 500 0.95rem/1.2 var(--font-body); text-align: left; text-decoration: none; cursor: pointer;
}
.menu-item:hover { background: var(--surface-3); text-decoration: none; }
.menu-item[aria-current="true"] { font-weight: 700; }
.menu-item[aria-current="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.menu-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.menu-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); opacity: 0.6; }
.menu-dot.is-on { background: #3fb950; opacity: 1; box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.18); }
.flag { flex: none; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }

.menu-user > summary { padding-left: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); }
.who-name { font-weight: 600; color: var(--text); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-discord { gap: 8px; white-space: nowrap; background: #5865f2; border-color: transparent; color: #ffffff; }
.btn-discord:hover { background: #4752c4; }
.btn-discord:active { background: #3c45a5; }
.discord-mark { flex: none; }

/* Premium: the one gold thing on the page, so it reads as the offer and nothing else. */
.btn-premium {
  gap: 6px; padding-inline: 14px; white-space: nowrap;
  font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(135deg, #f6d988 0%, #dcaa45 55%, #bf8a2e 100%);
  border-color: transparent; color: #2a1c05;
}
.btn-premium:hover { background: linear-gradient(135deg, #fae3a2 0%, #e6b853 55%, #cc9636 100%); }
.btn-premium:active { background: #bf8a2e; }
.btn-premium[aria-current="page"] { box-shadow: inset 0 0 0 2px rgba(42, 28, 5, 0.55); }
.premium-mark { flex: none; }

.band { margin: 0; padding: 8px var(--gutter); font-size: 0.9rem; color: var(--text-muted); background: var(--surface); border-bottom: 1px solid var(--line); }
.band-demo::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--accent); vertical-align: 1px; }
.band-flash { color: var(--text); background: var(--surface-2); }

/* ---------------------------------------------------------------- landing */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100vh, 860px); min-height: min(100dvh, 860px);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(56px, 9vh, 96px);
}
.home:has(.band) .hero { padding-top: 160px; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #0e0c0b; container-type: size; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 600ms var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-yt { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 600ms var(--ease); }
.hero-yt.is-playing { opacity: 1; }
/* 16:9 player scaled to cover the hero, cropped a little so the player's own edges stay out of view. */
.hero-yt iframe {
  position: absolute; left: 50%; top: 50%; border: 0;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.15);
}
/* On a narrow screen, where no video plays (it would cost the visitor data and battery), the poster
   drifts slowly instead: a transform on one image, nothing fetched. */
@keyframes hero-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.16) translate(-3%, -2%); }
}
/* The veil: the whole picture dimmed, then darkest where the text sits (left and bottom). */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 17, 16, 0.9) 0%, rgba(19, 17, 16, 0.6) 40%, rgba(19, 17, 16, 0.15) 75%),
    linear-gradient(0deg, rgba(19, 17, 16, 1) 0%, rgba(19, 17, 16, 0) 45%),
    rgba(19, 17, 16, 0.3);
}

.media-controls { position: absolute; right: var(--gutter); bottom: 20px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 8px; }
.media-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: rgba(19, 17, 16, 0.72); color: var(--text); border: 0; border-radius: var(--radius);
  font: 600 0.88rem/1 var(--font-body); cursor: pointer;
  transition: background-color 150ms var(--ease);
}
.media-btn:hover { background: rgba(46, 41, 39, 0.92); }
.media-sound[data-muted="false"] { background: rgba(239, 230, 223, 0.2); }
.media-sound[data-muted="true"] .icon-sound, .media-sound[data-muted="false"] .icon-muted { display: none; }
.media-credit { flex-basis: 100%; text-align: right; font-size: 0.78rem; color: var(--text-faint); }

.hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; }
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem); line-height: 0.95; letter-spacing: -0.015em; max-width: 13ch; text-transform: uppercase; margin-bottom: 20px; }
.lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--text-muted); max-width: 38ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.motion-toggle {
  margin-top: 20px; min-height: 44px; padding: 8px 12px;
  background: rgba(19, 17, 16, 0.72); color: var(--text); border: 0; border-radius: var(--radius);
  font: 600 0.85rem/1 var(--font-body); cursor: pointer;
}
.motion-toggle:hover { background: rgba(46, 41, 39, 0.92); }

.features { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); width: 100%; }
.features-head { display: grid; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.features-head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); text-transform: uppercase; }
.features-lede { margin: 0; max-width: 60ch; color: var(--text-muted); font-size: 1.05rem; }
.features-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.features-preview { display: grid; gap: 12px; position: sticky; top: 24px; }
.features-preview .preview { max-width: 560px; }
.features-label { margin: 0; font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
.feature-list li { display: grid; align-content: start; gap: 8px; padding: 18px 0 0; border-top: 1px solid var(--line-strong); }
.feature-list h3 { margin: 0; }
.feature-list p { margin: 0; color: var(--text-muted); }
.feature-tag { justify-self: start; padding: 3px 7px; border-radius: 2px; background: var(--surface-2); color: var(--text-muted); font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.feature-tag-rust { background: rgba(200, 69, 44, 0.16); color: #f0a08f; }

/* ---------------------------------------------------------------- bot message preview */

/* Discord's own colours: the preview shows what members will see. */
.preview { margin: 0; }
.msg {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px;
  padding: 16px; background: #2b2d31; color: #dbdee1;
  border-radius: 6px;
  font-size: 0.95rem; line-height: 1.4;
}
.msg-avatar { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #1e1f22; padding: 4px; }
.msg-head { margin: 0 0 6px; }
.msg-author { font-weight: 600; color: #f2f3f5; }
.msg-badge { margin-left: 4px; padding: 1px 5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 0.68rem; font-weight: 700; vertical-align: 1px; }
.embed { border-left: 4px solid #ce422b; background: #232428; border-radius: 4px; padding: 10px 14px 12px; }
.embed p { margin: 0; }
.embed-title { font-weight: 700; color: #f2f3f5; margin-bottom: 4px !important; }
.embed-description { color: #dbdee1; display: grid; gap: 2px; }
.embed-fields { display: grid; gap: 10px; margin-top: 10px; }
.embed-field-name { font-weight: 700; color: #f2f3f5; font-size: 0.88rem; }
.embed-member { color: #c9cdfb; font-size: 0.88rem; }
.msg-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-button { padding: 6px 12px; border-radius: 3px; background: #4e5058; color: #fff; font-size: 0.85rem; font-weight: 500; }

/* ---------------------------------------------------------------- app pages */

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.narrow { max-width: 760px; }
.sub { color: var(--text-muted); max-width: 70ch; }
.note { color: var(--text-faint); font-size: 0.9rem; }
.empty { padding: 18px 20px; background: var(--surface); border-radius: var(--radius); color: var(--text-muted); }
.count { font: 600 0.9rem/1 var(--font-body); color: var(--text-faint); margin-left: 6px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.page-head h1 { margin: 0; }
.search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
.search input { flex: 1; min-width: 0; }

input[type="text"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: #0e0c0b; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font-body);
}
textarea { font-family: var(--font-mono); resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: rgba(239, 230, 223, 0.3); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--text); }
::placeholder { color: var(--text-faint); opacity: 1; }

.group { margin-bottom: 40px; }
.group > h2 { font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; }
/* A server card: banner, logo over its edge, name and member count beside it, the description,
   and a footer. The card itself is not a link: only the footer's buttons act. */
.server-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.server-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--surface); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line);
}
.server-banner { flex: none; height: 96px; background: var(--surface-3); }
.server-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tone-0 { background: linear-gradient(135deg, #6b2a1b 0%, #2a1713 100%); }
.tone-1 { background: linear-gradient(135deg, #4d3a24 0%, #1f1a16 100%); }
.tone-2 { background: linear-gradient(135deg, #2a3b45 0%, #161b1f 100%); }
.tone-3 { background: linear-gradient(135deg, #34442b 0%, #181d16 100%); }
.tone-4 { background: linear-gradient(135deg, #46294b 0%, #1d1620 100%); }
.tone-5 { background: linear-gradient(135deg, #5a461c 0%, #221c12 100%); }
.server-body {
  flex: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr;
  align-content: start; column-gap: 14px; padding: 0 16px 16px;
}
.server-avatar { position: relative; grid-row: 1 / span 2; width: 64px; height: 64px; margin-top: -26px; }
.server-icon { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 4px var(--surface); }
.server-initials { display: grid; place-items: center; font: 700 1.15rem/1 var(--font-display); color: var(--text-muted); }
.role-badge {
  position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface);
}
.role-owner { background: var(--crown); color: #2a1d06; }
.role-admin { background: var(--text-muted); color: var(--canvas); }
.server-name { margin: 10px 0 0; min-width: 0; font: 700 1.1rem/1.25 var(--font-display); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-members { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 0.85rem; color: var(--text-faint); }
.server-desc {
  grid-column: 1 / -1; grid-row: 3; margin: 12px 0 0; font-size: 0.92rem; color: var(--text-muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.server-foot { grid-column: 1 / -1; grid-row: 4; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
/* The button that opens a server the bot is in. */
.btn-arrow::after { content: "→"; content: "→" / ""; transition: transform 150ms var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }
.server-card-quiet { background: transparent; }
.server-card-quiet .server-banner { opacity: 0.55; }
.server-card-quiet .server-icon { box-shadow: 0 0 0 4px var(--canvas); }
.server-card-quiet .role-badge { box-shadow: 0 0 0 3px var(--canvas); }

.pill { display: inline-block; padding: 3px 8px; border-radius: 2px; background: var(--surface-2); font-size: 0.78rem; font-weight: 600; color: var(--text-faint); white-space: nowrap; }
.pill-on { color: var(--text-muted); }
.pill-refused { color: var(--danger); }
.chip { display: inline-block; margin: 0 6px 6px 0; padding: 3px 8px; background: var(--surface-2); border-radius: 2px; font-size: 0.82rem; }

.why { max-width: 70ch; border-top: 1px solid var(--line); padding-top: 12px; }
.why summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--text-muted); }
.why summary:hover { color: var(--text); }
.why p { color: var(--text-muted); }

/* ---------------------------------------------------------------- server dashboard shell */

.dash-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-inline: clamp(16px, 2.5vw, 28px);
}
.dash-topbar-start { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-sep { width: 1px; height: 22px; background: var(--line-strong); flex: none; }
.dash-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 6px;
  border-radius: var(--radius); color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.dash-back:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.dash-shell {
  display: grid; grid-template-columns: 256px minmax(0, 1fr);
  min-height: calc(100vh - 61px); min-height: calc(100dvh - 61px);
  align-items: stretch;
}
.dash-mobile-nav { display: none; }

.dash-sidebar {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; max-height: 100vh; max-height: 100dvh; overflow-y: auto; scrollbar-width: thin;
}
.dash-server { border-bottom: 1px solid var(--line); }
.dash-server-banner { height: 52px; overflow: hidden; background: var(--surface-3); }
.dash-server-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dash-server-id { display: flex; align-items: center; gap: 12px; padding: 12px 16px 14px; }
.dash-server-avatar { flex: none; margin-top: -26px; }
.dash-server-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: var(--surface-3); box-shadow: 0 0 0 3px var(--surface);
}
.dash-server-initials { font: 700 1rem/1 var(--font-display); color: var(--text-muted); }
.dash-server-meta { min-width: 0; }
.dash-server-name { margin: 0; font: 700 1.02rem/1.2 var(--font-display); letter-spacing: 0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-server-role { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-faint); }

.dash-nav { padding: 14px 10px 24px; display: grid; gap: 18px; align-content: start; }
.dash-group { display: grid; gap: 2px; }
.dash-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 4px; padding: 0 10px;
  font: 700 0.72rem/1.2 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.dash-tag-plus {
  padding: 2px 7px; border-radius: 3px;
  background: rgba(200, 69, 44, 0.2); color: #f0a08f;
  border: 1px solid rgba(200, 69, 44, 0.4);
  font: 700 0.68rem/1.1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
}
.dash-tag-discord {
  padding: 2px 7px; border-radius: 3px;
  background: rgba(88, 101, 242, 0.22); color: #bfc7ff;
  border: 1px solid rgba(88, 101, 242, 0.45);
  font: 700 0.68rem/1.1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
}
.dash-tag-recruit {
  padding: 2px 7px; border-radius: 3px;
  background: rgba(46, 204, 113, 0.16); color: #9de0ad;
  border: 1px solid rgba(46, 204, 113, 0.38);
  font: 700 0.68rem/1.1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
}
.dash-link {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px;
  border-radius: var(--radius); border-left: 3px solid transparent;
  color: var(--text-muted); text-decoration: none; font: 500 0.93rem/1.25 var(--font-body);
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.dash-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.dash-link[aria-current="page"] {
  background: var(--surface-2); color: var(--text); font-weight: 600;
  border-left-color: var(--accent);
}
.dash-sub { display: grid; gap: 2px; }
.dash-sub-summary {
  list-style: none; cursor: pointer; user-select: none;
}
.dash-sub-summary::-webkit-details-marker { display: none; }
.dash-sub-meta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
}
.dash-sub-meta .dash-dot { margin-left: 0; }
.dash-sub-chev {
  color: var(--text-faint);
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}
.dash-sub[open] > .dash-sub-summary .dash-sub-chev {
  transform: rotate(180deg); color: var(--text-muted);
}
.dash-sub-list {
  display: grid; gap: 2px;
  margin: 2px 0 4px 19px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.dash-sub-link {
  min-height: 34px; padding: 5px 10px;
  font-size: 0.87rem;
}
.dash-link.is-locked { opacity: 0.45; cursor: not-allowed; }
.dash-ico { flex: none; opacity: 0.82; }
.dash-link[aria-current="page"] .dash-ico { color: var(--accent-hover); opacity: 1; }
.dash-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dash-dot.is-on { background: #7cc68a; }

.dash-content { min-width: 0; width: 100%; max-width: 1320px; padding: clamp(22px, 3vw, 36px) clamp(18px, 2.5vw, 36px) 104px; }

.dash-hero {
  overflow: hidden; background: var(--surface); border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 28px;
}
.dash-hero-banner { height: 84px; background: var(--surface-3); }
.dash-hero-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dash-hero-body {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px;
  padding: 0 22px 20px;
}
.dash-hero-avatar { flex: none; margin-top: -32px; }
.dash-hero-icon {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  background: var(--surface-3); box-shadow: 0 0 0 4px var(--surface);
}
.dash-hero-initials { font: 700 1.35rem/1 var(--font-display); color: var(--text-muted); }
.dash-hero-copy { flex: 1 1 280px; min-width: 0; padding-top: 12px; }
.dash-hero-copy h1 { margin: 2px 0 6px; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.dash-hero-copy .sub { margin: 0; }
.dash-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-left: auto; }
.dash-kicker {
  margin: 0 0 4px; font: 700 0.76rem/1 var(--font-display);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.pill-plus { background: rgba(200, 69, 44, 0.18); color: #f0a08f; }

.dash-head { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dash-head h1 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.dash-head .sub { margin: 8px 0 0; }
.dash-head .privacy { margin: 12px 0 0; }
.dash-head-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-head-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.dash-sections { display: grid; gap: 32px; }
.section-head { margin-bottom: 14px; }
.section-title-row { display: flex; align-items: center; gap: 10px; }
.section-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; }
.section-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 0.93rem; }

.workbench { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: 32px; align-items: start; }
.feature-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.92fr); gap: 24px; align-items: start; }
.feature-layout.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.general-layout { max-width: 720px; }
.feature-main { display: grid; gap: 20px; }
.side { position: sticky; top: 16px; display: grid; gap: 16px; }
.side-block { display: grid; gap: 10px; }
.side h2, .modules > h2 { font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 4px; }

.card {
  padding: 20px 22px; background: var(--surface); border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.card h2 { font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 12px; }
.card-notice { border-left: 3px solid var(--accent); }
.card-notice p:last-child { margin-bottom: 0; }
.card-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.card-subhead { font-size: 0.96rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 6px; }
.field-stack { margin-top: 16px; }
.field-stack-top { margin-top: 0; margin-bottom: 18px; }

.cmd-chip {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--line);
  font: 600 0.8rem/1.3 var(--font-mono); color: var(--text-muted); white-space: nowrap;
}
.cmd-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.cmd-list li { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.cmd-list li:first-child { padding-top: 0; border-top: 0; }
.cmd-list p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.cmd-card .note { margin: 0; }
.roster-chips { margin: 0 0 10px; }

.module-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module {
  display: flex; flex-direction: column; padding: 18px 20px; background: var(--surface);
  border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line);
}
.module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.module-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.module-head h3 { margin: 0; }
.module-desc { margin: 0 0 12px; color: var(--text-muted); font-size: 0.92rem; }
.module-foot { margin: auto 0 0; padding-top: 12px; }
.module-note { color: var(--text-faint); font-size: 0.9rem; margin: 0; }
.facts { margin: 0 0 4px; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--text-muted); font-size: 0.9rem; }
.facts dd { margin: 0; }
.file-note { color: var(--text-faint); font-size: 0.9rem; margin: 0; }

/* ---------------------------------------------------------------- server dashboard hub */

.hub-section { margin-bottom: 32px; }
.hub-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.hub-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px; background: var(--surface); border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 150ms var(--ease), background-color 150ms var(--ease);
}
.hub-card:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-card h3 { margin: 2px 0 0; font-size: 1.22rem; }
.hub-card-desc { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.hub-tags {
  list-style: none; margin: 2px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.hub-tags li {
  padding: 2px 8px; border-radius: 2px; background: var(--canvas);
  border: 1px solid var(--line); color: var(--text-faint); font-size: 0.78rem; font-weight: 500;
}
.hub-card-foot { margin: auto 0 0; padding-top: 8px; }

.hub-shortcuts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.hub-shortcut {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: var(--surface); border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hub-shortcut > div { min-width: 0; }
.hub-shortcut .btn { flex: none; white-space: nowrap; }
.hub-shortcut h3 { margin: 0 0 3px; font-size: 1rem; }
.hub-shortcut p { margin: 0; font-size: 0.87rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- ON/OFF feature toggle */

.toggle-wrap {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 4px 10px 4px 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
  cursor: pointer; user-select: none;
}
.toggle-input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.toggle-track {
  position: relative; width: 42px; height: 24px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--line-strong);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.toggle-input:checked + .toggle-track {
  background: #2f7d47; border-color: #3d9a59;
}
.toggle-input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px); background: #ffffff;
}
.toggle-input:focus-visible + .toggle-track {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.toggle-label {
  font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); min-width: 46px;
}
.toggle-input:checked ~ .toggle-label { color: #9de0ad; }
.toggle-wrap.is-nudge {
  border-color: var(--accent-hover) !important;
  box-shadow: 0 0 0 3px rgba(206, 66, 43, 0.42), 0 0 22px rgba(235, 92, 66, 0.62);
  animation: rtmToggleNudge 520ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.toggle-wrap.is-nudge .toggle-track {
  border-color: #ff8e73;
  box-shadow: 0 0 12px rgba(235, 92, 66, 0.55);
}
@keyframes rtmToggleNudge {
  0%, 100% { transform: translateX(0) scale(1); }
  14%, 42%, 70% { transform: translateX(-5px) scale(1.04); }
  28%, 56%, 84% { transform: translateX(5px) scale(1.04); }
}
.is-feature-off .feature-main,
.is-feature-off .embed-split,
.is-feature-off .form-config-card { opacity: 0.58; transition: opacity 200ms var(--ease); }
.is-feature-off .feature-main input,
.is-feature-off .feature-main select,
.is-feature-off .feature-main textarea,
.is-feature-off .feature-main button,
.is-feature-off .feature-main .switch-row,
.is-feature-off .feature-main .cselect-trigger,
.is-feature-off .feature-main .multi-select-trigger,
.is-feature-off .embed-editor input,
.is-feature-off .embed-editor textarea,
.is-feature-off .embed-editor button,
.is-feature-off .embed-editor .embed-rich-editor,
.is-feature-off .embed-editor .cselect-trigger,
.is-feature-off .embed-editor .multi-select-trigger {
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- inline ON/OFF switch list */

.switch-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #141110;
  margin: 0 0 18px;
}
.switch-list:last-child { margin-bottom: 0; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  cursor: pointer; user-select: none;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.switch-row:first-child { border-top: 0; }
.switch-row:hover { background: #191614; }
.switch-row.is-on { background: rgba(47, 125, 71, 0.06); }
.switch-row.is-on:hover { background: rgba(47, 125, 71, 0.1); }
.switch-row-copy { display: grid; gap: 2px; min-width: 0; }
.switch-row-title { font-size: 0.94rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.switch-row-hint { font-size: 0.83rem; color: var(--text-muted); line-height: 1.35; }
.toggle-wrap-compact { min-height: 34px; padding: 3px 9px 3px 5px; flex-shrink: 0; }
@media (max-width: 600px) {
  .switch-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------------------------------------------------------------- smart raid defense preview */

.raid-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.raid-preview-head h2 { margin: 0; }
.raid-badge-urgent {
  padding: 2px 7px; border-radius: 3px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(217, 66, 58, 0.18); border: 1px solid rgba(217, 66, 58, 0.55);
  color: #ffb8b3;
}
.raid-ping-rate {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px;
  font-size: 0.72rem; letter-spacing: 0.03em;
  background: rgba(217, 66, 58, 0.14); border: 1px solid rgba(217, 66, 58, 0.42);
  color: #ffb8b3; vertical-align: middle;
}

/* ---------------------------------------------------------------- enemy tracker team cards */

.enemy-teams-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 14px;
}
.enemy-teams-head h2 { margin: 0 0 4px; }
.enemy-teams-head .sub { margin: 0; }
.enemy-quota-pill {
  flex-shrink: 0; padding: 4px 10px; border-radius: 3px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
}
.enemy-quota-pill.is-full {
  background: rgba(217, 66, 58, 0.14); border-color: rgba(217, 66, 58, 0.48); color: #ffb8b3;
}
.enemy-quota-pill.is-unlimited {
  background: rgba(70, 179, 108, 0.14); border-color: rgba(70, 179, 108, 0.45); color: #9ce6b6;
}
.enemy-inline-error {
  margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius);
  background: rgba(217, 66, 58, 0.12); border: 1px solid rgba(217, 66, 58, 0.45);
  color: #ffb8b3; font-size: 0.88rem;
}
.enemy-create-field { margin: 0; }
.enemy-create-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px;
}
.enemy-empty-card { padding: 16px 20px; }
.enemy-empty-card .muted { margin: 0; }
.enemy-team-card { border-left: 3px solid var(--accent); }
.enemy-team-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.enemy-team-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.enemy-team-id h3 {
  margin: 0; font-size: 1.06rem; font-weight: 700; letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.enemy-count-pill {
  padding: 2px 7px; border-radius: 3px; font-size: 0.72rem;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
}
.enemy-card-del {
  appearance: none; width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-soft); font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.enemy-card-del:hover {
  border-color: rgba(217, 66, 58, 0.6); color: #ffb8b3; background: rgba(217, 66, 58, 0.16);
}
.enemy-players-box { margin-top: 16px; }
.enemy-card-channel { margin: 14px 0 0; }
.enemy-players-box .label { margin: 0 0 8px; }
.enemy-players-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.enemy-player-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 30px 8px 11px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.enemy-player-sid { font-size: 0.84rem; color: var(--ink); letter-spacing: 0.02em; }
.enemy-player-del {
  position: absolute; top: 3px; right: 3px;
  appearance: none; width: 18px; height: 18px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; border: 0; background: transparent;
  color: var(--ink-soft); font-size: 0.95rem; line-height: 1; cursor: pointer;
}
.enemy-player-del:hover {
  color: #ffb8b3; background: rgba(217, 66, 58, 0.22);
}
.enemy-add-player-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
}
.enemy-solo-inputs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (max-width: 680px) {
  .enemy-solo-inputs { grid-template-columns: 1fr; }
}
.enemy-solo-card { border-left: 3px solid var(--rust-amber, #e09132); }

/* ---------------------------------------------------------------- draggable embed variable chips */

.embed-vars-box {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px dashed var(--line);
}
.embed-vars-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.embed-vars-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.embed-var-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(206, 66, 43, 0.14);
  border: 1px solid rgba(206, 66, 43, 0.45);
  color: #ffd0cc;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: grab;
  user-select: none;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}
.embed-var-chip:hover {
  border-color: var(--accent);
  background: rgba(206, 66, 43, 0.24);
  transform: translateY(-1px);
}
.embed-var-chip:active,
.embed-var-chip.is-dragging {
  cursor: grabbing;
  opacity: 0.72;
}
.embed-var-grip {
  color: rgba(255, 208, 204, 0.65);
  font-size: 0.82rem;
  letter-spacing: -0.08em;
  line-height: 1;
}
.embed-var-name {
  font-weight: 600;
  color: inherit;
}
.embed-rich-editor {
  min-height: 88px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.embed-rich-editor:focus {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.embed-rich-editor.is-single-line {
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.5;
}
.embed-inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 2px;
  padding: 1px 6px 1px 7px;
  border-radius: 4px;
  background: rgba(206, 66, 43, 0.18);
  border: 1px solid rgba(206, 66, 43, 0.52);
  color: #ffd0cc;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  vertical-align: baseline;
  cursor: grab;
  user-select: none;
}
.embed-inline-pill:hover {
  background: rgba(206, 66, 43, 0.28);
  border-color: var(--accent);
}
.embed-inline-pill.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
}
.embed-inline-pill-x {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin-left: 1px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: rgba(255, 208, 204, 0.72);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}
.embed-inline-pill-x:hover {
  background: rgba(217, 66, 58, 0.35);
  color: #ffffff;
}
.embed-editor input.is-drop-ready,
.embed-editor textarea.is-drop-ready,
.embed-rich-editor.is-drop-ready {
  border-style: dashed;
  border-color: rgba(206, 66, 43, 0.65);
}
.embed-editor input.is-drop-over,
.embed-editor textarea.is-drop-over,
.embed-rich-editor.is-drop-over {
  border-style: solid;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(206, 66, 43, 0.28);
}
.raid-alert-embed { border-left-color: #d9423a !important; }
.raid-watch-embed { border-left-color: #3d9a59 !important; }
.raid-macro-line { word-break: break-word; }
.raid-watch-card { margin-top: 18px; }
.raid-watch-card h3 {
  margin: 0 0 8px;
  font: 700 0.78rem/1.2 var(--font-display);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- multi-select role dropdown */

.multi-select { position: relative; }
.multi-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 6px 12px;
  background: #0e0c0b; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; list-style: none;
}
.multi-select-trigger::-webkit-details-marker { display: none; }
.multi-select[open] .multi-select-trigger { border-color: var(--text-muted); }
.field-error .multi-select-trigger { border-color: var(--danger); }
.multi-select-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.multi-chip {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 3px;
  background: rgba(88, 101, 242, 0.22); border: 1px solid rgba(88, 101, 242, 0.42);
  color: #dbe0ff; font-size: 0.84rem; font-weight: 600; line-height: 1.25;
}
.multi-placeholder { color: var(--text-faint); font-size: 0.94rem; }
.multi-select-panel {
  margin-top: 6px; max-height: 15rem; overflow-y: auto;
  padding: 6px 12px; background: #0e0c0b;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: grid; gap: 2px;
}

/* ---------------------------------------------------------------- embed editor & live preview */

.color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.color-picker {
  flex: none; width: 44px; height: 40px; padding: 2px;
  background: #0e0c0b; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer;
}
.color-hex { width: 112px; max-width: 112px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatch {
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2); cursor: pointer;
  transition: transform 140ms var(--ease), border-color 140ms var(--ease);
}
.swatch:hover { transform: scale(1.12); border-color: var(--text); }
.swatch-rust { background: #ce422b; }
.swatch-discord { background: #5865f2; }
.swatch-green { background: #2ecc71; }
.swatch-gold { background: #e3b04b; }
.swatch-blue { background: #3498db; }
.swatch-red { background: #e74c3c; }

.embed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.embed-main { min-width: 0; flex: 1 1 auto; }
.embed-thumb {
  flex: none; width: 48px; height: 48px; object-fit: contain;
  border-radius: 4px; background: rgba(255, 255, 255, 0.04); padding: 4px;
}
.embed-custom-desc {
  margin: 0 0 8px; color: #dcddde; font-size: 0.9rem; line-height: 1.45; white-space: pre-wrap;
}
.embed-meta { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.embed-footer {
  margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #949ba4; font-size: 0.78rem; line-height: 1.3;
}
.msg-ping { margin: 2px 0 6px; font-size: 0.88rem; }
.discord-mention {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  background: rgba(88, 101, 242, 0.28); color: #c9cdfb; font-weight: 600;
}
.msg-button-custom {
  background: #5865f2; border-color: transparent; color: #ffffff;
}
.msg-button-danger {
  background: #da373c; border-color: transparent; color: #ffffff;
}
.msg-button-success {
  background: #248046; border-color: transparent; color: #ffffff;
}

/* ---------------------------------------------------------------- floating unsaved changes bar */

.save-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 40;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  padding: 12px 16px 12px 18px;
  background: #171413; border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}
.save-bar-text {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.94rem; color: var(--text);
}
.save-bar-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--crown);
}
.save-bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.save-bar.is-visible {
  animation: rtmSaveBarIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rtmSaveBarIn {
  from {
    opacity: 0;
    transform: translate(-50%, 28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}
.save-bar.is-shaking {
  border-color: var(--danger);
  animation: save-bar-shake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes save-bar-shake {
  0%, 100% { transform: translateX(-50%); }
  15%, 45%, 75% { transform: translateX(calc(-50% - 9px)); }
  30%, 60%, 90% { transform: translateX(calc(-50% + 9px)); }
}

.alert { padding: 16px 18px; margin-bottom: 24px; border-left: 3px solid var(--text-faint); border-radius: var(--radius); background: var(--surface); }
.alert h2 { font-size: 1.15rem; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-error { border-left-color: var(--danger); }
.alert-warn { border-left-color: var(--text-muted); }
.alert pre { white-space: pre-wrap; background: #0e0c0b; padding: 10px 12px; border-radius: var(--radius); }

.config-form { max-width: 760px; }
fieldset { margin: 0 0 28px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line-strong); min-width: 0; }
legend { float: left; width: 100%; margin-bottom: 16px; padding: 0; font: 700 1.05rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
legend + * { clear: both; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { font-weight: 400; font-size: 0.82rem; color: var(--text-faint); }
.hint { margin: 6px 0 0; font-size: 0.88rem; color: var(--text-faint); }
.error { margin: 6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--danger); }
.field-error input, .field-error textarea, .field-error select, .field-error .choice-list { border-color: var(--danger); }
.field .label { font-weight: 600; margin: 0 0 6px; }
.choice-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 16px;
  max-height: 16rem; overflow-y: auto; padding: 6px 12px;
  background: #0e0c0b; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.choice-list .muted { margin: 8px 0; }
.field .choice { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; font-weight: 400; cursor: pointer; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.choice span { min-width: 0; overflow-wrap: anywhere; }
.setup-form { max-width: 520px; margin-top: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 16px; }

.table-scroll { overflow-x: auto; margin-bottom: 24px; border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font: 700 0.78rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
del { color: #f3b3a6; background: rgba(239, 125, 102, 0.14); text-decoration-thickness: 1px; padding: 0 3px; }
ins { color: #c8f0cf; background: rgba(124, 198, 138, 0.14); text-decoration: none; padding: 0 3px; }

.timeline { list-style: none; margin: 0 0 16px; padding: 0; border-left: 1px solid var(--line-strong); }
.revision { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); }
.revision::before { content: ""; position: absolute; left: -4px; top: 23px; width: 7px; height: 7px; background: var(--text-muted); }
.revision:first-child::before { background: var(--accent); }
.revision p { margin: 0 0 4px; }
.revision form { margin: 0; }
.revision-when { font-weight: 600; }
.revision-who { color: var(--text-muted); }

.privacy { padding: 10px 14px; margin-bottom: 20px; border-left: 3px solid var(--line-strong); background: var(--surface); color: var(--text-muted); max-width: 80ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.stats div { padding: 14px 16px; background: var(--surface); border-radius: var(--radius); }
.stats dt { color: var(--text-muted); font-size: 0.85rem; }
.stats dd { margin: 6px 0 0; font: 700 1.8rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.filters label { display: grid; gap: 4px; font-size: 0.88rem; color: var(--text-muted); min-width: 160px; }
.rate-bad { color: var(--danger); font-weight: 700; }
.outcome { font-weight: 600; }
.outcome-success { color: var(--text); }
.outcome-refused, .outcome-unconfirmed { color: var(--text-muted); }
.outcome-error { color: var(--danger); }

.logs-card .table-scroll { margin-bottom: 0; background: transparent; }
.logs-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 18px; margin-bottom: 14px;
}
.logs-toolbar .filters { margin-bottom: 0; }
.logs-count { margin: 0 0 6px; font-size: 0.88rem; color: var(--text-muted); }
.log-user {
  display: inline-flex; align-items: center; padding: 2px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); font-weight: 600; font-size: 0.86rem; color: var(--text);
}

/* Guided Rust+ account connection page (/account/rust-plus) & server Rust+ account card */
.account-shell { max-width: 1080px; margin: 0 auto; padding: 28px 24px 64px; }
.account-nav { margin-bottom: 18px; }
.account-linked-card { border-left: 3px solid #3fb950; margin-bottom: 20px; }
.account-linked-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 14px;
}
.account-linked-head h2 { margin-bottom: 4px; }
.account-linked-head .sub { margin: 0; }
.account-linked-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-linked-actions form { margin: 0; }
.account-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 20px; align-items: start;
}
.account-main, .account-side { display: grid; gap: 18px; min-width: 0; }
.step-kicker {
  margin: 0 0 6px; font: 700 0.74rem/1 var(--font-display);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.step-cta { margin: 14px 0 10px; }
.guide-list, .guide-bullets { margin: 10px 0 0; padding-left: 1.25em; display: grid; gap: 8px; color: var(--text-muted); font-size: 0.92rem; }
.guide-list li::marker { color: var(--accent); font-weight: 700; }

.rust-account-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.rust-account-head > div { flex: 1 1 220px; min-width: 0; }
.rust-account-head .pill { flex: none; }
.rust-account-head h2 { margin-bottom: 4px; }
.rust-account-head .sub { margin: 0; }
.rust-account-current { margin-top: 14px; }
.rust-account-label {
  margin: 0 0 6px; font: 700 0.74rem/1 var(--font-display);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
}
.rust-account-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.rust-account-who { display: grid; gap: 2px; min-width: 0; }
.rust-account-picker { display: grid; gap: 12px; }
.rust-account-ready-line { margin: 0; font-size: 0.93rem; font-weight: 600; color: var(--text); }
.rust-account-warn {
  margin: 0; padding: 10px 12px; border-radius: var(--radius);
  background: rgba(227, 176, 75, 0.1); border: 1px solid rgba(227, 176, 75, 0.35);
  color: #f3d28f; font-size: 0.88rem;
}
.rust-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rust-account-cta { display: grid; gap: 10px; }
.rust-account-cta p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

.ext-connect-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.ext-connect-head > div { flex: 1 1 220px; min-width: 0; }
.ext-connect-head .pill { flex: none; }
.ext-state { margin-top: 8px; }
.ext-waiting-pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 14px 0 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  font-size: 0.86rem; color: var(--text-muted);
}
.ext-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--crown);
  box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.22);
}
.manual-fallback summary {
  cursor: pointer; list-style: none; font: 600 0.92rem/1.3 var(--font-body);
  color: var(--text-muted); display: flex; align-items: center; justify-content: space-between;
}
.manual-fallback summary::-webkit-details-marker { display: none; }
.manual-fallback summary::after { content: "▾"; font-size: 0.85rem; opacity: 0.7; }
.manual-fallback[open] summary::after { content: "▴"; }
.manual-fallback-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
}

.steps { padding-left: 1.4em; display: grid; gap: 20px; }
.steps h2 { font-size: 1.2rem; }
.code-block { white-space: pre; overflow-x: auto; background: #0e0c0b; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.message { padding-top: 64px; }

.patch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.patch { padding: 20px 22px; background: var(--surface); border-left: 3px solid var(--line-strong); border-radius: var(--radius); }
.patch:first-child { border-left-color: var(--accent); }
.patch h2 { margin: 6px 0 12px; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }
.patch ul { margin: 0; padding-left: 1.2em; color: var(--text-muted); }
.patch li + li { margin-top: 6px; }
.patch-date { font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.1em; color: var(--text-faint); }

/* ---------------------------------------------------------------- premium (Rust HUD matrix) */

.premium-v2 { padding-top: 44px; padding-bottom: 64px; }

.prem-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 32px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}
.prem-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crown);
}
.prem-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.3rem);
  letter-spacing: -0.01em;
}
.prem-lede {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1rem;
}
.prem-stack-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.prem-head-controls {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.prem-switch {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 2px;
  gap: 2px;
}
.prem-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 700 0.82rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.prem-switch-btn:hover { color: var(--text); }
.prem-switch-btn.is-active {
  background: var(--surface-3);
  color: var(--text);
}
.prem-discount {
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2a1c05;
  background: var(--crown);
}
.prem-meta-line {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.prem-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  margin-bottom: 44px;
}

.prem-tier {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  background: var(--surface);
  border-top: 2px solid transparent;
  transition: background-color 160ms var(--ease);
}
.prem-tier:hover { background: #201c1b; }
.prem-tier-vip {
  background: var(--surface-2);
  border-top-color: var(--crown);
}
.prem-tier-vip:hover { background: #292422; }
.prem-tier-ultra {
  border-top-color: var(--accent);
}

.prem-tier-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.prem-idx {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  white-space: nowrap;
}
.prem-audience {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.prem-rec {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crown);
  white-space: nowrap;
}
.prem-rec-ultra { color: #e98a77; }

.prem-tier-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.prem-tier-id h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
}
.prem-tagline {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-faint);
}

.prem-glyph { flex: none; }
.prem-glyph-basic { color: var(--text-muted); }
.prem-glyph-vip { color: var(--crown); }
.prem-glyph-ultra { color: var(--accent); }

.prem-price-block {
  min-height: 4.1rem;
  margin-bottom: 12px;
}
.prem-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.prem-amount {
  font: 700 2.55rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prem-tier-vip .prem-amount { color: #f6d988; }
.prem-strike {
  font-size: 0.92rem;
  color: var(--text-faint);
  text-decoration: line-through;
}
.prem-period {
  font-size: 0.84rem;
  color: var(--text-faint);
}
.prem-annual-note {
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: var(--crown);
}

.prem-desc {
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.91rem;
  line-height: 1.5;
  color: var(--text-muted);
  min-height: 4.2em;
}

.prem-specs {
  flex: 1 1 auto;
  margin-bottom: 24px;
}
.prem-specs-lead {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.prem-tier-vip .prem-specs-lead { color: var(--crown); }
.prem-tier-ultra .prem-specs-lead { color: #e98a77; }

.prem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.prem-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.91rem;
  line-height: 1.42;
  color: var(--text);
}
.prem-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-faint);
}
.prem-tier-vip .prem-list li::before { color: var(--crown); }
.prem-tier-ultra .prem-list li::before { color: var(--accent); }

.prem-action { margin-top: auto; }
.prem-cta {
  width: 100%;
  justify-content: center;
  border-radius: 2px;
  font: 700 0.85rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prem-cta[aria-disabled="true"] { opacity: 0.78; cursor: default; }
.prem-cta-sub {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.prem-compare { margin-bottom: 28px; }
.prem-compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.prem-compare-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.prem-compare-head p { margin: 0; font-size: 0.8rem; }

.prem-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.9rem;
}
.prem-table th, .prem-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prem-table thead th {
  font: 700 0.78rem/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--canvas);
  border-bottom-color: var(--line-strong);
}
.prem-table thead th:not(:first-child),
.prem-table tbody td {
  text-align: center;
  width: 13.5%;
}
.prem-th-price {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.prem-table thead .col-vip .prem-th-price { color: #f6d988; }
.prem-table thead .col-ultra .prem-th-price { color: #f0a08f; }
.prem-table tbody th {
  font-weight: 500;
  color: var(--text-muted);
}
.prem-table .prem-group-row th {
  padding: 9px 16px;
  font: 700 0.72rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--canvas);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.prem-table tbody tr:last-child th,
.prem-table tbody tr:last-child td { border-bottom: 0; }
.prem-table .col-vip { background: rgba(227, 176, 75, 0.055); }
.prem-table thead .col-vip { color: var(--crown); }
.prem-table thead .col-ultra { color: #e98a77; }
.prem-table .is-check {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.prem-table .is-check.col-vip { color: var(--crown); }
.prem-table .is-check.col-ultra { color: #f08a74; }
.prem-table .is-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}
.prem-table .is-val.col-vip { color: #f6d988; }
.prem-table .is-no { color: var(--text-faint); opacity: 0.55; }
.prem-todo {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(227, 176, 75, 0.42);
  border-radius: 2px;
  background: rgba(227, 176, 75, 0.1);
  color: #f0cf7b;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.prem-faq { margin-bottom: 32px; }
.prem-faq-list {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.prem-faq-item { border-bottom: 1px solid var(--line); }
.prem-faq-item:last-child { border-bottom: 0; }
.prem-faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.prem-faq-item summary::-webkit-details-marker { display: none; }
.prem-faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-faint);
  flex: none;
}
.prem-faq-item[open] summary::after { content: "−"; color: var(--crown); }
.prem-faq-item summary:hover { background: var(--surface-2); }
.prem-faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  max-width: 74ch;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.prem-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prem-foot p { margin: 0; font-size: 0.9rem; }

@media (max-width: 960px) {
  .prem-head { grid-template-columns: minmax(0, 1fr); }
  .prem-head-controls { justify-items: start; }
  .prem-matrix { grid-template-columns: minmax(0, 1fr); }
  .prem-desc, .prem-price-block { min-height: 0; }
}

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding: 20px var(--gutter); border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: 0.85rem;
}
.footer p { margin: 0; max-width: 80ch; }

/* ---------------------------------------------------------------- responsive */

/* Narrower, the three links no longer fit between the brand and the menus: they take a row of
   their own under them. */
@media (max-width: 1180px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .topnav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: center; flex-wrap: wrap; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .who-name { display: none; }
  .features-body, .feature-layout { grid-template-columns: minmax(0, 1fr); }
  .features-preview, .side { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dash-sidebar { display: none; }
  .dash-mobile-nav {
    display: block; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .dash-mobile-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 8px var(--gutter); cursor: pointer; list-style: none;
  }
  .dash-mobile-summary::-webkit-details-marker { display: none; }
  .dash-mobile-server { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .dash-mini-icon {
    flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    object-fit: cover; background: var(--surface-3); font: 700 0.72rem/1 var(--font-display); color: var(--text-muted);
  }
  .dash-mobile-name { font: 700 1rem/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-mobile-trigger {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    font: 600 0.85rem/1 var(--font-body); color: var(--text);
  }
  .dash-mobile-panel { border-top: 1px solid var(--line); }
  .dash-mobile-panel .dash-server { display: none; }
}

@media (max-width: 720px) {
  .hero { min-height: 0; padding-top: 140px; padding-bottom: 48px; }
  .home .masthead { position: static; }
  .module-grid, .hub-grid, .hub-shortcuts { grid-template-columns: minmax(0, 1fr); }
  .dash-hero-actions { align-items: flex-start; margin-left: 0; }
  .save-bar { bottom: 12px; padding: 10px 12px; }
  .save-bar-actions { width: 100%; justify-content: flex-end; }
  .dash-back span { display: none; }
  .dash-sep { display: none; }
  .home .topbar { background: var(--canvas); border-bottom-color: var(--line); }
  .home .hero, .home:has(.band) .hero { padding-top: 56px; }
  .hero-video, .hero-yt, .media-controls, .motion-toggle { display: none; }
  .hero-poster { opacity: 0.5; animation: hero-drift 30s var(--ease) infinite alternate; }
  .hero-scrim { background: linear-gradient(180deg, rgba(19, 17, 16, 0.5) 0%, rgba(19, 17, 16, 0.95) 75%); }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .topbar { column-gap: 8px; }
  .topbar-end { gap: 4px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topnav { gap: 0; }
  .topnav a { padding: 0 8px; font-size: 0.8rem; letter-spacing: 0.05em; }
  .btn-premium { padding-inline: 10px; }
  .menu > summary { padding: 0 6px; }
  .btn-discord { padding-inline: 10px; }
  .btn-discord span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .actions .btn { flex: 1 1 100%; }
}

/* The narrowest phones: the Premium link shows its crown only, so the logo keeps its size. */
@media (max-width: 380px) {
  .btn-premium { padding-inline: 12px; }
  .btn-premium span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-video, .hero-yt, .media-controls, .motion-toggle { display: none; }
  .hero-poster { animation: none; }
}

/* Sidebar plan badge, contextual soft upsell, and /cost raid calculator (Wave 1). */
.dash-plan-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font: 700 0.65rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--canvas);
}
.dash-plan-badge:hover { border-color: var(--crown); color: var(--text); }
.dash-plan-badge.plan-basic { border-color: rgba(200, 69, 44, 0.55); color: #f0a08f; }
.dash-plan-badge.plan-vip { border-color: rgba(227, 176, 75, 0.65); color: var(--crown); background: rgba(227, 176, 75, 0.09); }
.dash-plan-badge.plan-ultra_vip { border-color: rgba(200, 69, 44, 0.85); color: #ffb3a1; background: rgba(200, 69, 44, 0.14); }

.card-upsell {
  border-color: rgba(227, 176, 75, 0.45);
  border-left: 3px solid var(--crown);
  background: rgba(227, 176, 75, 0.05);
}
.upsell-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.upsell-head h2 { margin: 0; font-size: 1rem; }
.upsell-badge {
  padding: 2px 7px;
  border: 1px solid rgba(227, 176, 75, 0.55);
  border-radius: 2px;
  background: rgba(227, 176, 75, 0.14);
  color: #f6d988;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.raid-calc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.raid-calc-head h2 { margin: 0 0 4px; }
.raid-calc-head .sub { margin: 0; }
.raid-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.raid-search-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--text);
  font: inherit;
}
.raid-search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.raid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.raid-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--canvas);
}
.raid-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.raid-item-head h3 {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
}
.raid-hp { font-size: 0.75rem; color: var(--text-faint); white-space: nowrap; }
.raid-routes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.raid-routes li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.raid-sulfur {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--crown);
  white-space: nowrap;
}
.scrap-zone-select {
  height: 36px;
  padding: 0 10px;
  background: var(--canvas);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.85rem;
}
.scrap-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.scrap-totals div {
  padding: 10px 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.scrap-totals dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.scrap-totals dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crown);
}
.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .billing-grid { grid-template-columns: 1fr; }
}
.billing-inline-form { margin-top: 14px; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.billing-mate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.share-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.share-link-box input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  background: var(--canvas);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.82rem;
}
.slot-list { display: grid; gap: 8px; }
.slot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.branding-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 12px;
}
.branding-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.branding-name { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.share-pay-card { max-width: 560px; margin: 40px auto; }

/* ---------------------------------------------------------------- Team Finder */

.tf-wrap { max-width: 1180px; margin: 0 auto; padding: 34px 20px 64px; }
.tf-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.tf-kicker {
  margin: 0 0 6px; font: 700 0.76rem/1 var(--font-display);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust);
}
.tf-head h1 { margin: 0 0 6px; }
.tf-head .sub { margin: 0; max-width: 64ch; }
.tf-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; margin-bottom: 14px;
}
.tf-filter-grow { flex: 1 1 260px; min-width: 200px; }
.tf-filters input, .tf-filters select { width: 100%; min-height: 40px; }
.tf-meta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 18px; font-size: 0.84rem;
}
.tf-meta-strip p { margin: 0; }
.tf-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 860px) { .tf-grid { grid-template-columns: 1fr; } }
.tf-card {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
}
.tf-card-vip { border-color: rgba(230, 179, 77, 0.45); }
.tf-card-ultra { border-color: rgba(206, 66, 43, 0.55); }
.tf-card-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tf-monogram {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #141110; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-weight: 700; font-size: 0.96rem; color: var(--text);
}
.tf-card h2 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.2; }
.tf-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tf-pill {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px;
  background: #141110; border: 1px solid var(--line);
  font-size: 0.76rem; color: var(--text-muted); line-height: 1.3;
}
.tf-pill-lang { color: var(--text); border-color: var(--line-strong); font-weight: 600; }
.tf-desc { margin: 0; color: var(--text); font-size: 0.93rem; line-height: 1.5; }
.tf-criteria {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tf-criteria li {
  padding: 3px 9px; border-radius: 3px;
  background: #131110; border: 1px solid var(--line);
  font-size: 0.8rem; color: var(--text-muted);
}
.tf-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.tf-bumped { font-size: 0.8rem; }
.tf-empty { text-align: center; padding: 36px 24px; }
.tf-bump-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.tf-bump-info { display: grid; gap: 4px; min-width: 0; }
.tf-bump-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tf-bump-title-row h2 { margin: 0; }
.tf-bump-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tf-two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .tf-two-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- custom select dropdowns */

.cselect {
  position: relative;
  width: 100%;
}
.cselect.cselect-compact {
  width: auto;
  min-width: 170px;
}
.cselect-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}
.cselect-trigger {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0e0c0b;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.cselect-compact .cselect-trigger {
  min-height: 36px;
  padding: 6px 10px 6px 12px;
  font-size: 0.86rem;
}
.cselect-trigger:hover:not(:disabled) {
  border-color: rgba(239, 230, 223, 0.34);
  background: #141110;
}
.cselect-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200, 69, 44, 0.28);
}
.cselect.is-open .cselect-trigger {
  border-color: var(--accent);
  background: #151211;
  box-shadow: 0 0 0 2px rgba(200, 69, 44, 0.22);
}
.field-error .cselect-trigger {
  border-color: var(--danger);
}
.cselect.is-disabled .cselect-trigger {
  opacity: 0.55;
  cursor: not-allowed;
}
.cselect-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cselect-value.is-empty {
  color: var(--text-faint);
}
.cselect-chev {
  flex: none;
  color: var(--text-muted);
  transition: transform 180ms var(--ease), color 150ms var(--ease);
}
.cselect.is-open .cselect-chev {
  transform: rotate(180deg);
  color: var(--text);
}
.cselect-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  min-width: 220px;
  background: #161312;
  border: 1px solid rgba(239, 230, 223, 0.2);
  border-radius: 5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform-origin: top center;
  animation: rtmPopIn 150ms var(--ease);
}
.cselect-panel.is-up {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
}
.cselect-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #120f0e;
}
.cselect-search {
  width: 100% !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
  background: #1c1817 !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 3px !important;
}
.cselect-search:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}
.cselect-list {
  max-height: 16.5rem;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 230, 223, 0.22) transparent;
}
.cselect-list::-webkit-scrollbar { width: 6px; }
.cselect-list::-webkit-scrollbar-track { background: transparent; }
.cselect-list::-webkit-scrollbar-thumb {
  background: rgba(239, 230, 223, 0.2);
  border-radius: 3px;
}
.cselect-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.cselect-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.cselect-group-label {
  padding: 4px 10px 4px;
  font: 700 0.7rem/1.2 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cselect-opt {
  appearance: none;
  width: 100%;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 110ms var(--ease), color 110ms var(--ease), padding-left 130ms var(--ease);
}
.cselect-opt.is-indented {
  padding-left: 16px;
}
.cselect-opt:hover:not(:disabled),
.cselect-opt:focus-visible {
  outline: none;
  background: var(--surface-2);
  color: #ffffff;
}
.cselect-opt.is-selected {
  background: rgba(200, 69, 44, 0.17);
  color: #ffd7d1;
  font-weight: 600;
}
.cselect-opt.is-selected:hover:not(:disabled) {
  background: rgba(200, 69, 44, 0.24);
}
.cselect-opt:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.cselect-opt-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cselect-check {
  flex: none;
  opacity: 0;
  color: var(--accent-hover);
  transform: scale(0.75);
  transition: opacity 120ms var(--ease), transform 140ms var(--ease);
}
.cselect-opt.is-selected .cselect-check {
  opacity: 1;
  transform: scale(1);
}
.cselect-empty {
  margin: 0;
  padding: 14px 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------- skeleton loaders & micro-animations */

@keyframes rtmPopIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rtmFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rtmShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes rtmProgressSweep {
  0% { transform: translateX(-100%) scaleX(0.35); }
  50% { transform: translateX(15%) scaleX(0.65); }
  100% { transform: translateX(100%) scaleX(0.35); }
}

@keyframes rtmDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(70, 179, 108, 0.45); }
  55% { box-shadow: 0 0 0 4px rgba(70, 179, 108, 0); }
}

.rtm-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  overflow: hidden;
  background: rgba(200, 69, 44, 0.16);
  pointer-events: none;
}
.rtm-nav-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-hover), #ff8e73, transparent);
  animation: rtmProgressSweep 1.05s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.rtm-skeleton-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  padding: clamp(20px, 3vw, 36px);
  background: rgba(19, 17, 16, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rtmPopIn 140ms var(--ease);
}
.rtm-skel {
  border-radius: 4px;
  background: linear-gradient(90deg, #1d1a19 25%, #2b2624 50%, #1d1a19 75%);
  background-size: 220% 100%;
  animation: rtmShimmer 1.35s linear infinite;
}
.rtm-skel-head {
  display: grid;
  gap: 10px;
  max-width: 560px;
}
.rtm-skel-kicker { width: 110px; height: 14px; }
.rtm-skel-title { width: 62%; height: 34px; }
.rtm-skel-sub { width: 88%; height: 16px; }
.rtm-skel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .rtm-skel-grid { grid-template-columns: 1fr; }
}
.rtm-skel-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: start;
}
.rtm-skel-line { height: 14px; }
.rtm-skel-line.w-40 { width: 40%; }
.rtm-skel-line.w-55 { width: 55%; }
.rtm-skel-line.w-70 { width: 70%; }
.rtm-skel-line.w-85 { width: 85%; }
.rtm-skel-input { width: 100%; height: 42px; }
.rtm-skel-block { width: 100%; height: 132px; }

.is-img-loading {
  background: linear-gradient(90deg, #1d1a19 25%, #2b2624 50%, #1d1a19 75%);
  background-size: 220% 100%;
  animation: rtmShimmer 1.35s linear infinite;
}

/* Tactile entrance & hover polish */
.dash-hero,
.card,
.hub-card,
.hub-shortcut,
.enemy-team-card,
.enemy-solo-card,
.raid-target-card,
.prem-tier,
.server-card,
.tf-card {
  animation: rtmFadeUp 230ms var(--ease) backwards;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 180ms var(--ease);
}
.hub-grid > :nth-child(2),
.hub-shortcuts > :nth-child(2),
.prem-matrix > :nth-child(2),
.tf-grid > :nth-child(2) { animation-delay: 35ms; }
.hub-grid > :nth-child(3),
.hub-shortcuts > :nth-child(3),
.prem-matrix > :nth-child(3),
.tf-grid > :nth-child(3) { animation-delay: 65ms; }
.hub-grid > :nth-child(4),
.hub-shortcuts > :nth-child(4),
.tf-grid > :nth-child(4) { animation-delay: 95ms; }
.hub-grid > :nth-child(5) { animation-delay: 120ms; }
.hub-grid > :nth-child(6) { animation-delay: 145ms; }

.hub-card:hover,
.hub-shortcut:hover,
.server-card:hover,
.raid-target-card:hover,
.tf-card:hover {
  border-color: rgba(239, 230, 223, 0.26);
  transform: translateY(-2px);
}

.btn {
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 130ms var(--ease);
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.dash-link {
  transition: background-color 130ms var(--ease), color 130ms var(--ease), padding-left 140ms var(--ease);
}
.dash-dot.is-on {
  animation: rtmDotPulse 2.8s ease-in-out infinite;
}

.toggle-thumb {
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 160ms var(--ease) !important;
}
.toggle-input:checked + .toggle-track {
  box-shadow: 0 0 10px rgba(70, 179, 108, 0.25);
}

.menu[open] .menu-panel,
.multi-select[open] .multi-select-panel {
  animation: rtmPopIn 150ms var(--ease);
}
.multi-select-trigger {
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.multi-select-trigger:hover {
  border-color: rgba(239, 230, 223, 0.34);
  background: #141110;
}

@media (prefers-reduced-motion: reduce) {
  .dash-hero, .card, .hub-card, .hub-shortcut, .enemy-team-card, .enemy-solo-card,
  .raid-target-card, .prem-tier, .server-card, .tf-card,
  .cselect-panel, .menu[open] .menu-panel, .multi-select[open] .multi-select-panel,
  .rtm-skeleton-overlay, .rtm-skel, .rtm-nav-progress::after, .dash-dot.is-on,
  .save-bar.is-visible, .toggle-wrap.is-nudge {
    animation: none !important;
    transition: none !important;
  }
  .hub-card:hover, .hub-shortcut:hover, .server-card:hover, .raid-target-card:hover, .tf-card:hover {
    transform: none !important;
  }
}

/* ---------------------------------------------------------------- parallel embed split, tier icon badges & home compare */

.feature-body {
  display: grid;
  gap: 24px;
}
.embed-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: start;
}
.embed-split.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.embed-split-preview {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 16px;
}
.embed-split-preview h2 {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.form-config-card {
  max-width: 760px;
}
@media (max-width: 980px) {
  .embed-split {
    grid-template-columns: 1fr;
  }
  .embed-split-preview {
    position: static;
  }
}

.raid-countdown-row {
  margin: 8px 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #dcddde;
}
.discord-ts-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: #f2f3f5;
  font-size: 0.84rem;
  font-weight: 500;
}

.cmd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.cmd-card-ingame {
  border-left: 3px solid var(--accent);
}
.cmd-chip-ingame {
  color: #ffd0cc;
  border-color: rgba(206, 66, 43, 0.4);
  background: rgba(206, 66, 43, 0.12);
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  font: 700 0.68rem/1.15 var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}
.tier-chip svg {
  flex: none;
}
.tier-chip-basic {
  background: rgba(154, 179, 214, 0.14);
  border: 1px solid rgba(154, 179, 214, 0.36);
  color: #b7d0f2;
}
.tier-chip-vip {
  background: rgba(227, 176, 75, 0.16);
  border: 1px solid rgba(227, 176, 75, 0.48);
  color: #f6d988;
}
.tier-chip-ultra {
  background: rgba(206, 66, 43, 0.18);
  border: 1px solid rgba(206, 66, 43, 0.52);
  color: #ffb8ac;
}
.field label .tier-chip,
.field .label .tier-chip,
.switch-row-title .tier-chip {
  margin-left: 6px;
}

.home-compare-wrap {
  margin-top: clamp(36px, 5vw, 64px);
}
.home-compare-cta {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.account-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.billing-server-bar {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.billing-server-label {
  margin: 0 0 10px;
  font: 700 0.74rem/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.billing-server-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.billing-server-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #13100f;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease);
}
.billing-server-pill:hover {
  border-color: rgba(239, 230, 223, 0.34);
  background: var(--surface-2);
  color: var(--text);
}
.billing-server-pill.is-active {
  border-color: var(--accent);
  background: rgba(206, 66, 43, 0.14);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(206, 66, 43, 0.32);
}
.billing-server-name {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-panel {
  margin-bottom: 24px;
}
.billing-panel-head {
  margin-bottom: 14px;
}
.billing-panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.billing-panel-head .sub {
  margin: 0;
}
.billing-empty-card .muted {
  margin: 0;
}
.sub-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 18px;
}
@media (max-width: 600px) {
  .sub-cards-grid {
    grid-template-columns: 1fr;
  }
}
.sub-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px solid var(--line-strong);
}
.sub-card-basic { border-top-color: #7ea3d8; }
.sub-card-vip { border-top-color: var(--crown); }
.sub-card-ultra_vip { border-top-color: var(--accent); }
.sub-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sub-card-id,
.sub-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sub-card-id h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}
.sub-slot-count {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sub-slots-list {
  display: grid;
  gap: 12px;
}
.sub-slot-row {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #141110;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 0;
}
.sub-slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sub-slot-head label {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.sub-slot-cd {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.72rem;
}
.sub-slot-cd.is-ready {
  background: rgba(70, 179, 108, 0.14);
  border: 1px solid rgba(70, 179, 108, 0.35);
  color: #9de0ad;
}
.sub-slot-cd.is-locked {
  background: rgba(227, 176, 75, 0.14);
  border: 1px solid rgba(227, 176, 75, 0.4);
  color: #f6d988;
}
.sub-slot-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.sub-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}
.sub-card-foot .hint {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.8rem;
}
.sub-card-notes {
  flex: 1 1 240px;
  display: grid;
  gap: 5px;
}
.sub-cancel-warn {
  color: #f6d988;
}
.sub-card-foot form {
  margin: 0;
}

/* 2-page Premium store + guided Mes abonnements onboarding */
.prem-buy-form {
  width: 100%;
  margin: 0;
}
.prem-buy-form .prem-cta {
  width: 100%;
}
.prem-how {
  margin: 34px 0 12px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.prem-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 820px) {
  .prem-how-steps {
    grid-template-columns: 1fr;
  }
}
.prem-how-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.prem-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: rgba(206, 66, 43, 0.14);
  border: 1px solid rgba(206, 66, 43, 0.36);
  color: #f39582;
  font-size: 0.78rem;
  font-weight: 700;
}
.prem-how-steps h3,
.prem-how-steps h4 {
  margin: 0 0 4px;
  font-size: 0.94rem;
  color: var(--text);
}
.prem-how-steps p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--text-muted);
}

.onboard-stepper {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
@media (max-width: 680px) {
  .onboard-stepper {
    grid-template-columns: 1fr;
  }
}
.onboard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.86rem;
  font-weight: 600;
}
.onboard-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #141110;
  font-size: 0.74rem;
}
.onboard-step.is-done {
  color: #a9e5b8;
}
.onboard-step.is-done .onboard-num {
  background: rgba(70, 179, 108, 0.18);
  border-color: rgba(70, 179, 108, 0.55);
  color: #9de0ad;
}
.onboard-step.is-current {
  color: var(--text);
}
.onboard-step.is-current .onboard-num {
  background: rgba(227, 176, 75, 0.18);
  border-color: rgba(227, 176, 75, 0.65);
  color: #f6d988;
}

.onboard-callout {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(227, 176, 75, 0.12), rgba(206, 66, 43, 0.08));
  border: 1px solid rgba(227, 176, 75, 0.42);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.onboard-callout-copy {
  flex: 1 1 360px;
}
.onboard-callout-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #f6d988;
}
.onboard-callout-copy h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: var(--text);
}
.onboard-callout-copy p:last-child {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.onboard-callout-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 4px;
  background: rgba(20, 17, 16, 0.8);
  border: 1px solid rgba(227, 176, 75, 0.45);
  color: #f6d988;
  font-size: 0.8rem;
}
.onboard-callout-pill strong {
  font-size: 1.25rem;
  line-height: 1;
}

.billing-empty-hero {
  display: grid;
  gap: 20px;
  padding: 26px 24px;
}
.billing-empty-copy h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.billing-empty-copy .sub {
  margin: 0;
}
.billing-empty-steps {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.billing-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sub-slot-row.is-free {
  background: rgba(227, 176, 75, 0.06);
  border: 1px dashed rgba(227, 176, 75, 0.52);
}
.sub-slot-cd.is-free {
  background: rgba(227, 176, 75, 0.16);
  border: 1px solid rgba(227, 176, 75, 0.45);
  color: #f6d988;
}
.sub-slot-row.is-linked {
  background: rgba(70, 179, 108, 0.05);
  border: 1px solid rgba(70, 179, 108, 0.34);
  gap: 10px;
}
.sub-slot-connected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}
.sub-slot-connected-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sub-slot-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #46b36c;
  box-shadow: 0 0 0 4px rgba(70, 179, 108, 0.18);
  flex-shrink: 0;
}
.sub-slot-connected-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sub-slot-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.sub-slot-server-name {
  font-size: 0.98rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sub-slot-swap {
  border-top: 1px solid rgba(239, 230, 223, 0.08);
  padding-top: 9px;
}
.sub-slot-swap > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sub-slot-swap > summary::-webkit-details-marker {
  display: none;
}
.sub-slot-swap > summary:hover {
  color: var(--text);
}
.sub-slot-swap-form {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.sub-slot-swap-form .hint {
  margin: 0;
}

.mate-pay-details {
  padding: 0;
}
.mate-pay-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mate-pay-summary::-webkit-details-marker {
  display: none;
}
.mate-pay-summary h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.mate-pay-summary .sub {
  margin: 0;
}
.mate-pay-toggle {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.mate-pay-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}
.mate-pay-grid {
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 820px) {
  .mate-pay-grid {
    grid-template-columns: 1fr;
  }
}

/* French & EU Legal compliance: footer nav, legal hub, pre-checkout consent */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 12px;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 140ms var(--ease);
}
.footer-legal a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prem-consent {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid;
  gap: 8px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.prem-consent.is-error {
  border-color: var(--accent);
  background: rgba(206, 66, 43, 0.08);
  box-shadow: 0 0 0 2px rgba(206, 66, 43, 0.28);
}
.prem-consent.is-nudge {
  animation: prem-consent-shake 340ms ease-in-out;
}
@keyframes prem-consent-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.legal-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.legal-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--crown);
  cursor: pointer;
}
.legal-check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-check a:hover {
  color: var(--crown);
}
.prem-consent-meta,
.prem-consent-public {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  color: var(--text-faint);
}
.prem-consent-public {
  margin-top: 18px;
  text-align: center;
}
.prem-consent-public a {
  color: var(--text-muted);
  text-decoration: none;
}
.prem-consent-public a:hover {
  color: var(--text);
  text-decoration: underline;
}
.prem-consent-err {
  margin: 2px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f39582;
}
.share-pay-form {
  display: grid;
  gap: 12px;
}

.legal-shell {
  max-width: 920px;
  padding-top: 28px;
  padding-bottom: 56px;
}
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legal-tab {
  padding: 8px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), background-color 140ms var(--ease);
}
.legal-tab:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.legal-tab.is-active {
  border-color: var(--crown);
  background: rgba(227, 176, 75, 0.12);
  color: var(--text);
}
.legal-head {
  margin-bottom: 24px;
}
.legal-head h1 {
  margin: 6px 0 10px;
}
.legal-lede {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.legal-meta {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.legal-notice {
  margin-bottom: 20px;
  border-color: rgba(227, 176, 75, 0.45);
  background: rgba(227, 176, 75, 0.08);
  color: #f6d988;
}
.legal-notice p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}
.legal-body {
  display: grid;
  gap: 16px;
}
.legal-article h2 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  color: var(--text);
}
.legal-article p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: var(--text-muted);
}
.legal-article p:last-child {
  margin-bottom: 0;
}
.legal-list {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  line-height: 1.55;
}
.legal-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.legal-actions .sub {
  margin: 0;
}
.legal-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hidden Super-Admin Ops Cockpit & Staff Support Banner */
.staff-support-banner {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(206, 66, 43, 0.16), rgba(227, 176, 75, 0.1));
  border: 1px solid rgba(206, 66, 43, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.staff-support-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}
.staff-support-badge {
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ops-shell {
  max-width: 1360px;
  padding-top: 26px;
  padding-bottom: 56px;
  display: grid;
  gap: 22px;
}
.ops-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ops-eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #f39582;
}
.ops-head h1 {
  margin: 0 0 6px;
}
.ops-head .sub {
  margin: 0;
}
.ops-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ops-lock-pill {
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(206, 66, 43, 0.14);
  border: 1px solid rgba(206, 66, 43, 0.42);
  color: #f39582;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1180px) {
  .ops-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ops-kpi {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  border-top: 2px solid var(--line-strong);
}
.ops-kpi-gold { border-top-color: var(--crown); }
.ops-kpi-green { border-top-color: #46b36c; }
.ops-kpi-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ops-kpi-val {
  margin: 0;
  font: 700 1.65rem/1.1 var(--font-display);
  color: var(--text);
}
.ops-kpi-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ops-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1040px) {
  .ops-charts-grid { grid-template-columns: 1fr; }
}
.ops-chart-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.ops-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ops-chart-head h2 {
  margin: 0;
  font-size: 0.96rem;
}
.ops-chart-tag {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--text-muted);
}
.ops-svg {
  width: 100%;
  height: auto;
  display: block;
}
.ops-grid-line {
  stroke: rgba(239, 230, 223, 0.08);
  stroke-dasharray: 3 3;
}
.ops-grid-base {
  stroke: rgba(239, 230, 223, 0.22);
}
.ops-bar-rust { fill: #ce422b; }
.ops-bar-gold { fill: #e3b04b; }
.ops-bar-green { fill: #46b36c; }
.ops-bar-val {
  fill: #efe6df;
  font-size: 11px;
  font-weight: 700;
}
.ops-bar-lbl {
  fill: #9b8e85;
  font-size: 10px;
}
.ops-tier-shares {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.ops-tier-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ops-section {
  display: grid;
  gap: 16px;
  align-content: start;
}
.ops-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.ops-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.ops-section-head .sub {
  margin: 0;
}
.ops-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ops-search {
  min-width: 240px;
  padding: 7px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #13100f;
  color: var(--text);
  font-size: 0.86rem;
}
.ops-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius);
  background: #13100f;
  border: 1px solid var(--line);
}
.ops-filter-btn {
  padding: 5px 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.ops-filter-btn:hover { color: var(--text); }
.ops-filter-btn.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.ops-table-wrap {
  overflow-x: auto;
}
.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.ops-table th,
.ops-table td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ops-table th {
  font: 700 0.72rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ops-guild-cell {
  display: grid;
  gap: 2px;
}
.ops-id {
  font-size: 0.74rem;
  color: var(--text-faint);
}
.ops-override-tag {
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(206, 66, 43, 0.16);
  border: 1px solid rgba(206, 66, 43, 0.4);
  color: #f39582;
  font-size: 0.66rem;
}
.ops-gift-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  border-left: 3px solid #8a7de0;
}
.ops-gift-copy {
  flex: 1 1 360px;
}
.ops-gift-copy h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ops-gift-copy .sub {
  margin: 0;
}
.ops-gift-pill,
.ops-gift-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(138, 125, 224, 0.16);
  border: 1px solid rgba(138, 125, 224, 0.45);
  color: #c5bdf9;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.ops-gift-tag {
  margin-left: 5px;
}
.ops-gift-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.ops-gift-form input[type="text"],
.ops-gift-form input[type="email"] {
  min-width: 260px;
  padding: 7px 10px;
  font-size: 0.84rem;
}
.ops-email-test-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ops-gift-form select {
  width: auto;
  min-width: 118px;
  padding: 7px 28px 7px 10px;
  font-size: 0.84rem;
}
.ops-err-count {
  color: #f39582;
  font-size: 0.78rem;
}
.ops-override-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}
.ops-override-form select {
  width: auto;
  min-width: 96px;
  padding: 5px 28px 5px 8px;
  font-size: 0.8rem;
}
.ops-override-form button {
  flex-shrink: 0;
  white-space: nowrap;
}
.ops-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ops-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.ops-table-scroll {
  max-height: 420px;
  overflow-y: auto;
}
@media (max-width: 1040px) {
  .ops-bottom-grid { grid-template-columns: 1fr; }
}
.ops-outcome {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.72rem;
  white-space: nowrap;
}
.ops-outcome-success {
  background: rgba(70, 179, 108, 0.14);
  color: #9de0ad;
}
.ops-outcome-refused {
  background: rgba(227, 176, 75, 0.14);
  color: #f6d988;
}
.ops-outcome-error,
.ops-outcome-unconfirmed {
  background: rgba(206, 66, 43, 0.18);
  color: #f39582;
}

.ops-health-card h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}
.ops-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .ops-health-grid { grid-template-columns: 1fr; }
}
.ops-health-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #141110;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}
.ops-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e3b04b;
  flex-shrink: 0;
}
.ops-dot.is-on {
  background: #46b36c;
  box-shadow: 0 0 0 3px rgba(70, 179, 108, 0.18);
}

/* Closed-beta Waitlist Gate (/waitlist) & Ops Waitlist Manager */
.waitlist-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.waitlist-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(227, 176, 75, 0.35);
  background: rgba(227, 176, 75, 0.08);
  color: var(--gold, #e3b04b);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}
.waitlist-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
}
.waitlist-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.waitlist-banner {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #1a1615;
}
.waitlist-banner p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.waitlist-banner-ok {
  border-color: rgba(70, 179, 108, 0.5);
  background: rgba(70, 179, 108, 0.1);
}
.waitlist-banner-info {
  border-color: rgba(227, 176, 75, 0.45);
  background: rgba(227, 176, 75, 0.08);
}
.waitlist-banner-warn {
  border-color: rgba(206, 66, 43, 0.6);
  background: rgba(206, 66, 43, 0.12);
}
.waitlist-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .waitlist-grid { grid-template-columns: 1fr; }
}
.waitlist-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.waitlist-card-primary {
  border-top: 3px solid var(--rust, #ce422b);
}
.waitlist-card-access {
  border-top: 3px solid var(--gold, #e3b04b);
}
.waitlist-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.waitlist-card-head h2 { margin: 0; font-size: 1.18rem; }
.waitlist-card-head .sub { margin: 4px 0 0; font-size: 0.86rem; }
.waitlist-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #141110;
  border: 1px solid var(--line);
  color: var(--gold, #e3b04b);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.waitlist-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}
.wl-field input,
.wl-field select,
.wl-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #141110;
  color: var(--ink);
  font: inherit;
}
.wl-field input:focus,
.wl-field select:focus,
.wl-field textarea:focus {
  outline: none;
  border-color: var(--gold, #e3b04b);
}
.wl-code-input {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  text-align: center;
}
.wl-hint { color: var(--muted); font-size: 0.78rem; }
.waitlist-submit { width: 100%; justify-content: center; }
.wl-privacy-note { margin: 0; font-size: 0.78rem; color: var(--muted); text-align: center; }
.waitlist-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.waitlist-divider::before,
.waitlist-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.waitlist-existing {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waitlist-existing .sub { margin: 0; font-size: 0.85rem; }
.waitlist-demo-box {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(227, 176, 75, 0.45);
  background: rgba(227, 176, 75, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.waitlist-demo-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold, #e3b04b);
}
.waitlist-demo-box .sub { margin: 0; font-size: 0.82rem; }
.waitlist-perks {
  margin: 4px 0 0;
  padding: 14px 0 0 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}
.ops-wl-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ops-wl-quickbars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.ops-wl-note {
  max-width: 260px;
  font-size: 0.82rem;
  color: var(--muted);
}
.ops-wl-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.ops-wl-pending { background: rgba(227, 176, 75, 0.14); color: #e3b04b; }
.ops-wl-approved { background: rgba(70, 179, 108, 0.16); color: #46b36c; }
.ops-wl-rejected { background: rgba(206, 66, 43, 0.16); color: #e06c59; }
.ops-wl-codes-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ops-wl-code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-wl-chip {
  padding: 5px 10px;
  border-radius: 4px;
  background: #141110;
  border: 1px solid rgba(227, 176, 75, 0.35);
  color: var(--gold, #e3b04b);
  font-size: 0.78rem;
}
.ops-wl-chip.is-used {
  opacity: 0.5;
  border-color: var(--line);
  color: var(--muted);
  text-decoration: line-through;
}

@media (forced-colors: active) {
  .btn, .module, .hub-card, .hub-shortcut, .card, .dash-hero, .dash-sidebar, .server-card, .msg, .empty, .stats div, .save-bar { border: 1px solid CanvasText; }
  .role-badge { border: 1px solid CanvasText; }
  .menu-item[aria-current="true"], .topnav a[aria-current="page"], .dash-link[aria-current="page"], .btn-premium[aria-current="page"] { outline: 2px solid CanvasText; }
}
