/* Public site theme. Palette drawn from the bot's avatar: indigo-blue into
   violet into magenta, with a mint highlight. Builds on app.css components. */
@font-face { font-family: "Outfit"; src: url("/static/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

body.site {
  --page: #f5f6fd; --surface: #ffffff; --surface-2: #eef0fa; --ink: #12132a; --ink-2: #4b4e6b; --muted: #7d809b;
  --grid: #e4e6f3; --axis: #cfd2e6; --border: rgba(28, 32, 90, .10); --accent: #4d6fe6; --accent-ink: #ffffff;
  --b1: #4f7df5; --b2: #8a6cf6; --b3: #cf5fd0; --mint: #1fae8a;
  --grad: linear-gradient(115deg, var(--b1), var(--b2) 48%, var(--b3));
  --glow: 0 10px 34px rgba(110, 100, 240, .28);
  --shadow: 0 1px 2px rgba(28, 32, 90, .05), 0 8px 24px rgba(28, 32, 90, .06);
  --aurora-1: rgba(79, 125, 245, .20); --aurora-2: rgba(207, 95, 208, .16); --aurora-3: rgba(31, 174, 138, .12);
  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.site {
    --page: #090a14; --surface: #12131f; --surface-2: #1b1d2e; --ink: #f1f2fb; --ink-2: #b9bcd6; --muted: #8387a6;
    --grid: #23263a; --axis: #33374f; --border: rgba(160, 170, 255, .13); --accent: #7d9bff;
    --b1: #5d8bff; --b2: #9a80ff; --b3: #e06fdc; --mint: #5fe0bb;
    --glow: 0 10px 40px rgba(120, 110, 255, .38);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .35);
    --aurora-1: rgba(93, 139, 255, .30); --aurora-2: rgba(224, 111, 220, .20); --aurora-3: rgba(95, 224, 187, .12);
  }
}
:root[data-theme="dark"] body.site {
  --page: #090a14; --surface: #12131f; --surface-2: #1b1d2e; --ink: #f1f2fb; --ink-2: #b9bcd6; --muted: #8387a6;
  --grid: #23263a; --axis: #33374f; --border: rgba(160, 170, 255, .13); --accent: #7d9bff;
  --b1: #5d8bff; --b2: #9a80ff; --b3: #e06fdc; --mint: #5fe0bb;
  --glow: 0 10px 40px rgba(120, 110, 255, .38);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --aurora-1: rgba(93, 139, 255, .30); --aurora-2: rgba(224, 111, 220, .20); --aurora-3: rgba(95, 224, 187, .12);
}

/* aurora wash behind everything */
body.site::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 14% 8%, var(--aurora-1), transparent 70%),
    radial-gradient(560px 400px at 86% 2%, var(--aurora-2), transparent 70%),
    radial-gradient(520px 360px at 60% 46%, var(--aurora-3), transparent 72%);
}
body.site > * { position: relative; z-index: 1; }
/* The rule above outranks .topbar's own z-index, which would leave the header level with
   <main> and its account menu underneath the page. Only the layer is restored here. */
body.site > .topbar { z-index: 40; }

.site h1, .site h2, .site h3, .site .btn, .brandlink, .tile .value { font-family: var(--display); }
.site h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; }
.site h2 { font-size: 1.12rem; font-weight: 650; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.solid { fill: currentColor; stroke: none; }

/* ---- components, restyled ---- */
.site .card { border-radius: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.site .card.flush { padding: 0; }
.site .card.flush > .head { padding: 16px 20px 0; }
.site .btn { border-radius: 10px; padding: 8px 15px; font-weight: 550; border-color: var(--axis); background: var(--surface); transition: transform .12s, box-shadow .12s, background .12s, border-color .12s; }
.site .btn:hover { background: var(--surface-2); border-color: var(--accent); }
.site .btn:active { transform: translateY(1px); }
.site .btn.primary { background: var(--grad); border: 0; color: #fff; font-weight: 650; box-shadow: var(--glow); padding: 9px 16px; }
.site .btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.site .btn.small { padding: 4px 11px; border-radius: 8px; font-size: .9rem; box-shadow: none; }
.site .btn.big { padding: 13px 24px; font-size: 1.08rem; border-radius: 13px; }
.site .btn.danger { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 55%, transparent); }
.site .btn.danger:hover { background: color-mix(in srgb, var(--critical) 12%, var(--surface)); border-color: var(--critical); }
.site input[type=text], .site input[type=number], .site input[type=search], .site select, .site textarea { border-radius: 10px; padding: 8px 11px; background: var(--surface); }
.site .flash { border-radius: 12px; }
.site .tabs { border: 0; gap: 6px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border); padding: 5px; border-radius: 13px; width: max-content; max-width: 100%; }
.site .tabs a { border: 0; margin: 0; border-radius: 9px; padding: 7px 15px; font-family: var(--display); font-weight: 550; }
.site .tabs a.active { background: var(--grad); color: #fff; }
.site .tabs a:not(.active):hover { background: var(--surface-2); }
.site .seg { border-radius: 10px; }
.site .rank .fill { background: var(--grad); }
.site .rank .fill.critical { background: var(--critical); }
.site .savebar { border-radius: 14px; }
.site .avatar.sq { border-radius: 14px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 650; color: var(--accent); }

/* ---- top bar & footer ---- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--page) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brandlink { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.01em; }
.brandlink:hover { text-decoration: none; }
.brandlink img { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--b2) 60%, transparent); }
.toplinks { display: flex; gap: 4px; flex: 1; }
.toplinks a { padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-family: var(--display); font-weight: 550; }
.toplinks a:hover, .toplinks a.active { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.topright { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
/* Now playing: shown in the top bar while you are in voice with the bot. */
.npchip { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 280px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px; color: var(--ink); font-family: var(--display); font-weight: 550; font-size: .95rem; background: color-mix(in srgb, var(--mint) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mint) 45%, transparent); transition: border-color .16s, background .16s; }
.npchip:hover { text-decoration: none; border-color: var(--mint); background: color-mix(in srgb, var(--mint) 22%, var(--surface)); }
.npchip .eq { flex: none; }
.npchip .eq i { animation-name: eq; }
.npchip.is-paused .eq i { animation-name: none; }
.npchip .truncate { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.iconbtn { width: 34px; height: 34px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
/* Small screens fold the navigation behind a menu button. A checkbox keeps
   it working without any script; it stays focusable for keyboards. */
.navcheck { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.navbtn { display: none; }
.navcheck:focus-visible + .navbtn { outline: 2px solid var(--accent); outline-offset: 1px; }
.navcheck:checked + .navbtn { background: var(--surface-2); border-color: var(--accent); }
.sitemain { flex: 1; padding-top: 28px; padding-bottom: 72px; }
.sitefoot { border-top: 1px solid var(--border); color: var(--muted); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.sitefoot .wrap { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.sitefoot .fbrand { font-family: var(--display); font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-right: auto; }
.sitefoot .fbrand img { width: 22px; height: 22px; border-radius: 7px; }
.sitefoot a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.sitefoot a:hover { color: var(--ink); text-decoration: none; }

/* ---- landing ---- */
.lhero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 44px 0 56px; }
.lhero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; margin: 12px 0 0; }
.lhero .lead { font-size: 1.2rem; color: var(--ink-2); margin: 20px 0 28px; max-width: 520px; line-height: 1.55; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); font-size: .93rem; }
.pill b { color: var(--ink); font-family: var(--display); font-weight: 700; }
.pill .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }

/* decorative product preview in the hero */
.mock { position: relative; }
.mock::before { content: ""; position: absolute; inset: 8% 4% -4% 10%; background: var(--grad); filter: blur(60px); opacity: .42; border-radius: 40px; }
.mockcard { position: relative; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: 0 30px 70px rgba(10, 10, 40, .35); backdrop-filter: blur(10px); transform: rotate(-1.4deg); }
.mocknow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.mockart { width: 92px; height: 92px; border-radius: 16px; background: var(--grad) center / cover; box-shadow: var(--glow); }
.mocktitle { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.mockbar { height: 5px; border-radius: 3px; background: var(--surface-2); margin: 12px 0 4px; overflow: hidden; }
.mockbar i { display: block; width: 42%; height: 100%; background: var(--grad); border-radius: 3px; }
.mockbtns { display: flex; gap: 8px; margin-top: 12px; }
.mockbtns span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.mockbtns span.prime { background: var(--grad); color: #fff; }
.mockq { margin-top: 16px; border-top: 1px solid var(--grid); padding-top: 10px; display: grid; gap: 8px; }
.mockq div { display: grid; grid-template-columns: 22px minmax(0, 1fr) max-content; gap: 10px; align-items: center; color: var(--ink-2); font-size: .93rem; }
.mockq div span:first-child { color: var(--muted); text-align: right; }
.mockq em { font-style: normal; color: var(--muted); }

.sectionhead { text-align: center; margin: 26px auto 26px; max-width: 640px; }
.sectionhead h1, .sectionhead h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -.02em; margin-top: 6px; }
.sectionhead p { color: var(--ink-2); font-size: 1.05rem; margin: 10px 0 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { position: relative; overflow: hidden; transition: transform .16s, border-color .16s; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--b2) 55%, transparent); }
.feature .fi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; box-shadow: var(--glow); }
.feature .fi .icon { width: 22px; height: 22px; }
.feature h2 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 22px !important; }
.step::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.step p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.55; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.linkcard { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.linkcard .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.linkcard .fi .icon { width: 24px; height: 24px; }
.linkcard .btn { white-space: normal; max-width: 100%; }
.linkcard p { margin: 4px 0 14px; color: var(--ink-2); }
.band { margin-top: 56px; border-radius: 24px; padding: 44px 28px; text-align: center; color: #fff; background: var(--grad); position: relative; overflow: hidden; box-shadow: var(--glow); }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 80% 0%, rgba(255, 255, 255, .28), transparent 70%); pointer-events: none; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 780; letter-spacing: -.02em; }
.band p { margin: 10px 0 22px; opacity: .92; font-size: 1.08rem; }
.band .btn { background: #fff; color: #23215a; border: 0; font-weight: 700; position: relative; z-index: 1; }
.band .btn:hover { background: #f1f0ff; }
.block { margin-top: 64px; }
.prose { max-width: 760px; margin: 0 auto; padding: 32px !important; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin-top: 26px; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.6; }
.empty-state { text-align: center; padding: 56px 24px !important; }
.empty-state h1, .empty-state h2 { margin-bottom: 8px; }
.empty-state .fi { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; margin: 0 auto 16px; box-shadow: var(--glow); }
.empty-state .fi .icon { width: 28px; height: 28px; }

/* ---- server list & header ---- */
.servergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.servercard { display: flex; gap: 16px; align-items: center; color: var(--ink); position: relative; overflow: hidden; transition: transform .16s, border-color .16s, box-shadow .16s; }
.servercard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); opacity: 0; transition: opacity .16s; }
.servercard:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--b2) 55%, transparent); }
.servercard:hover::before, .servercard.live::before { opacity: 1; }
.servercard .body { min-width: 0; flex: 1; }
.servercard .name { font-family: var(--display); font-weight: 650; font-size: 1.12rem; }
.servercard .playing { margin-top: 6px; font-size: .93rem; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.servercard .go { color: var(--muted); transition: transform .16s, color .16s; }
.servercard:hover .go { transform: translateX(3px); color: var(--accent); }
.rolebadge { display: inline-block; font-family: var(--display); font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.rolebadge.admin, .rolebadge.owner { background: color-mix(in srgb, var(--b2) 20%, transparent); color: var(--accent); }
.avatar.initial { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 750; font-size: 1.5rem; color: #fff; background: var(--grad); flex: none; }
.avatar.lg { flex: none; width: 58px; height: 58px; }
.guildhead { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.guildhead .sub { color: var(--ink-2); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagehead { margin-bottom: 22px; }
.pagehead .sub { color: var(--ink-2); margin-top: 4px; }

/* equalizer bars: only move while something is playing */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
/* The timing lives on every bar and only the name is switched on, so no rule
   that starts the animation can reset the per-bar delays (the `animation`
   shorthand does, which made all four bars move together). */
.eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--mint); animation: 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; } .eq i:nth-child(3) { animation-delay: -.7s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.live .eq i, .is-playing .eq i, .queuebar .eq i { animation-name: eq; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ---- player ---- */
.player { display: grid; gap: 16px; }
.nowplaying { position: relative; overflow: hidden; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px !important; border-radius: 22px !important; }
.nowplaying::before { content: ""; position: absolute; inset: -40px; background-image: var(--art, none); background-size: cover; background-position: center; filter: blur(46px) saturate(1.5); opacity: .34; transform: scale(1.15); }
.nowplaying::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--surface) 55%, transparent), var(--surface) 82%); }
.nowplaying > * { position: relative; z-index: 1; }
.nowplaying .art { width: 260px; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--grad); background-size: cover; background-position: center; box-shadow: 0 18px 44px rgba(0, 0, 0, .38); display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.nowplaying .art.has-art .icon { display: none; }
.nowplaying .art .icon { width: 46px; height: 46px; }
.statusline { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: .95rem; flex-wrap: wrap; }
.statechip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 650; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.is-playing .statechip { background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); }
.tracktitle { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 750; line-height: 1.15; letter-spacing: -.015em; margin: 10px 0 4px; overflow-wrap: anywhere; }
.tracktitle a { color: var(--ink); }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.ctl { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--axis); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .12s, border-color .12s, color .12s; }
.ctl:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.ctl .icon { width: 20px; height: 20px; }
.ctl.prime { width: 58px; height: 58px; border: 0; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.ctl.prime:hover { color: #fff; filter: brightness(1.1); }
.ctl.prime .icon { width: 24px; height: 24px; }
.ctl:disabled { cursor: default; opacity: .55; }
.ctl:disabled:hover { border-color: var(--axis); color: var(--ink); transform: none; }
.ctl.on:disabled:hover { border-color: var(--b2); color: var(--accent); }
.ctl.on { background: color-mix(in srgb, var(--b2) 22%, var(--surface)); border-color: var(--b2); color: var(--accent); }
.ctl.stop:hover { border-color: var(--critical); color: var(--critical); }
.ctl .badge1 { position: absolute; font-size: 9px; font-weight: 800; font-family: var(--display); transform: translate(11px, -11px); background: var(--accent); color: #fff; border-radius: 999px; width: 15px; height: 15px; display: none; place-items: center; }
.ctl { position: relative; }
.ctl.one .badge1 { display: grid; }
.is-paused .i-pause, .player:not(.is-paused) .i-play { display: none; }
.volume { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ink-2); }
.volume input { width: 140px; accent-color: var(--b2); }
.volume .num { min-width: 40px; font-variant-numeric: tabular-nums; }
.notice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; background: var(--surface); color: var(--ink-2); }
.notice .icon { color: var(--accent); }
.addform { display: flex; gap: 10px; }
.addform .field1 { position: relative; flex: 1; }
.addform .field1 .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.addform input { width: 100%; min-height: 48px; padding-left: 42px !important; border-radius: 14px !important; font-size: 1rem; }
.addform .btn { min-height: 48px; border-radius: 14px; }
.queue { list-style: none; margin: 0; padding: 4px 0; }
.queue li { display: grid; grid-template-columns: 26px 64px minmax(0, 1fr) max-content max-content; gap: 14px; align-items: center; padding: 9px 20px; border-top: 1px solid var(--grid); transition: background .12s; }
.queue li:first-child { border-top: 0; }
.queue li:hover { background: var(--surface-2); }
.queue li.dragging { opacity: .4; }
.queue li.over { box-shadow: inset 0 2px 0 var(--b2); }
.queue li[draggable=true] { cursor: grab; }
.queue .pos { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-family: var(--display); font-weight: 600; }
.queue .thumb { width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--surface-2) center / cover no-repeat; }
.queue .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.queue .by { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue .len { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.queue .acts { display: flex; gap: 4px; opacity: .55; transition: opacity .12s; }
.queue li:hover .acts, .queue .acts:focus-within { opacity: 1; }
.queue .acts button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 1rem; }
.queue .acts button:hover:not(:disabled) { background: var(--surface); border-color: var(--axis); color: var(--ink); }
.queue .acts button:disabled { opacity: .3; cursor: default; }
.queuehead { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 11px 18px; border-radius: 12px; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-weight: 550; }
.toast.error { background: var(--critical); color: #fff; }
.player.busy .ctl, .player.busy .acts button { pointer-events: none; opacity: .6; }

.servercard .avatar.initial .icon { width: 26px; height: 26px; }
.guildhead .avatar.initial .icon { width: 26px; height: 26px; }
.queue .t a { color: var(--ink); }
.queue form.inline { display: inline-flex; }
.servercard .playing .icon { width: 14px; height: 14px; vertical-align: -2px; }

.queuebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px !important; }
.queuebar .statechip { background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); }
.queuebar .btn.primary { margin-left: auto; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.personchip { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 550; transition: border-color .16s; }
.personchip:hover { text-decoration: none; border-color: color-mix(in srgb, var(--b2) 55%, transparent); }
.personchip .avatar { width: 28px; height: 28px; margin: 0; flex: none; }
.personchip .avatar.initial { font-size: .9rem; }
.guildhead img.avatar.lg:not(.sq) { border-radius: 50%; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink-2); }
.progress input { flex: 1; min-width: 0; accent-color: var(--b2); height: 4px; }
.progress input:disabled { opacity: 1; }
.progress .num { min-width: 44px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.progress .num:first-child { text-align: right; }
.queuehead { flex-wrap: wrap; gap: 10px; align-items: center; }
.savetools { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.savetools select { max-width: 170px; }
.queue.recent .pos { color: var(--muted); }
.importbox { margin-bottom: 16px; }
.importbox summary { cursor: pointer; color: var(--ink-2); font-weight: 550; margin-bottom: 8px; }
.modmember { margin-bottom: 12px; }
.logrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 20px; border-top: 1px solid var(--grid); }
.logrow:first-child { border-top: 0; }
.logrow .when { color: var(--ink-2); font-size: .9rem; }
.logrow .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .logrow { grid-template-columns: 1fr; gap: 2px; } }
.membercard { display: flex; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--grid); }
.membercard:first-child { border-top: 0; }
.membercard .body { min-width: 0; flex: 1; }
.membercard .name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--display); font-weight: 650; font-size: 1.05rem; }
.membercard .name a { color: var(--ink); }
.membercard .counts { text-align: right; white-space: nowrap; font-size: .93rem; }
.membercard img.avatar.lg { border-radius: 50%; }
@media (max-width: 640px) { .membercard { flex-wrap: wrap; } .membercard .counts { text-align: left; } }
.noteitem { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--grid); overflow-wrap: anywhere; }
.modmember summary { cursor: pointer; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; }
.modmember summary .row-actions { margin-left: auto; }
.queue .acts button .icon { width: 16px; height: 16px; }

.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { padding: 0 !important; }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); line-height: 1.6; }

/* ---- command catalogue ---- */
/* The header scrolls away with the page, so the search row sticks to the top
   of the window once the page has scrolled that far: one row, with a
   full-width backdrop that only shows once it has left its resting place
   (app.js sets .atrest). Nothing changes size when it sticks, so the list
   below never jumps. */
.cmdtools { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 0; margin-bottom: 8px; }
.cmdtools::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -1; background: color-mix(in srgb, var(--page) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: opacity .15s; }
.cmdtools.atrest::before { opacity: 0; }
.cmdtools .field1 { position: relative; }
.cmdtools .field1 .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cmdtools input { width: 100%; min-height: 46px; padding-left: 42px !important; border-radius: 13px !important; font-size: 1rem; }
.cmdnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.cmdnav::-webkit-scrollbar { display: none; }
.cmdnav a { flex: none; }
.cmdnav a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); font-family: var(--display); font-weight: 550; font-size: .93rem; }
.cmdnav a:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.cmdnew { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: .93rem; cursor: pointer; }
.cmdnew[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink, #fff); }
.cmdnew[aria-pressed="true"] .badge.new { background: var(--accent-ink, #fff); color: var(--accent); }
.cmdnav .icon { width: 15px; height: 15px; }
.cmdcat { margin-top: 28px; scroll-margin-top: 88px; }
.cmdcat > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 12px; }
.cmdcat > h2 .fi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.cmdprefix { padding: 10px 20px 6px; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--grid); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.cmdprefix:first-child { border-top: 0; }

/* ---- what's new ---- */
.newpost { display: flex; gap: 20px; align-items: flex-start; margin-top: 16px; }
.newpost h2 { font-size: 1.2rem; margin: 2px 0 8px; }
.newpost p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.newpostshot { flex: none; width: 150px; height: 150px; object-fit: contain; border-radius: 12px; background: var(--surface-2); }
@media (max-width: 640px) { .newpost { flex-direction: column; } .newpostshot { width: 100%; height: auto; max-height: 260px; } }
.newday { margin-top: 30px; }
.newday > h2 { font-size: 1.3rem; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.newday > h2 .muted { font-size: .93rem; font-weight: 500; }
.newgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.newcard { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.newshot { aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; }
.newshot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.newcard figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.newcard .cmddesc { font-size: .93rem; }
.cmd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4px 20px; padding: 10px 20px; border-top: 1px solid var(--grid); }
.cmd:first-child { border-top: 0; }
.cmdname { font-weight: 600; overflow-wrap: anywhere; }
/* a command with an example is a row that opens */
details.cmd { display: block; padding: 0; }
details.cmd > summary { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) max-content; gap: 4px 20px; align-items: start; padding: 10px 20px; cursor: pointer; list-style: none; }
details.cmd > summary::-webkit-details-marker { display: none; }
details.cmd > summary:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.cmdmore { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-family: var(--display); font-size: .86rem; font-weight: 600; white-space: nowrap; }
.cmdmore .icon { width: 15px; height: 15px; transition: transform .15s; }
details.cmd[open] .cmdmore .icon { transform: rotate(180deg); }
.cmdshot { padding: 4px 20px 18px; }
.cmdshot img { display: block; max-width: min(100%, 360px); max-height: 360px; border-radius: 12px; background: var(--surface-2); }
.cmddesc { color: var(--ink-2); }
.param { font-weight: 400; font-size: .86em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--axis); color: var(--ink-2); white-space: nowrap; }
.param.opt { border-style: dashed; color: var(--muted); }
@media (max-width: 700px) {
  .cmd { grid-template-columns: 1fr; }
  details.cmd > summary { grid-template-columns: minmax(0, 1fr) max-content; }
  details.cmd > summary .cmddesc { grid-column: 1 / -1; grid-row: 2; }
  /* Small screens: the categories sit under the search box, and only the
     search box floats. The categories keep their space while hidden. */
  .cmdtools { grid-template-columns: 1fr; gap: 9px; pointer-events: none; }
  .cmdtools > * { pointer-events: auto; }
  .cmdnav { height: 32px; transition: opacity .15s; }
  .cmdcat { scroll-margin-top: 84px; }
  .cmdtools:not(.atrest) .cmdnav { opacity: 0; visibility: hidden; pointer-events: none; }
  .cmdtools:not(.atrest)::before { bottom: 41px; }
}

/* ---- settings form: section index ---- */
.jump { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.jump a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); font-family: var(--display); font-weight: 550; font-size: .93rem; }
.jump a:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.setsec { scroll-margin-top: 80px; }
.setsec .intro { color: var(--muted); margin: -6px 0 6px; }
.colorpair { display: inline-flex; align-items: center; gap: 8px; }
.colorpair input[type=color] { width: 38px; height: 34px; padding: 2px; border-radius: 9px; border: 1px solid var(--axis); background: var(--surface); cursor: pointer; }
.savebar .dirty { color: var(--ink); font-weight: 600; }

/* ---- reaction roles ---- */
.emo { width: 28px; height: 28px; font-size: 1.5rem; line-height: 28px; display: inline-block; vertical-align: middle; object-fit: contain; }
.emojipick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 170px; overflow-y: auto; }
.emobtn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.emobtn:hover { border-color: var(--accent); }
.pairs { display: grid; gap: 8px; margin-top: 6px; }
.pair { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
.pair .emojiinput { text-align: center; font-size: 1.1rem; }
.pair .emojiinput.custom { color: transparent; caret-color: var(--ink); background-repeat: no-repeat; background-position: center; background-size: 26px 26px; }
.pair .emojiinput.target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* sign-in card */
.site .login { min-height: calc(100vh - 40px); min-height: calc(100dvh - 40px); }
.site .login .card { width: 380px; max-width: 100%; text-align: center; padding: 34px 28px !important; }
.site .login .heroimg { width: 76px; height: 76px; border-radius: 22px; margin-bottom: 14px; box-shadow: var(--glow); }
.site .login .btn.primary { width: 100%; justify-content: center; padding: 12px; margin: 16px 0 12px; }

@media (prefers-reduced-motion: reduce) { .site *, .site *::before, .site *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .lhero { grid-template-columns: 1fr; gap: 34px; padding-top: 24px; }
  /* Stacked under the text, the sample player reads as a real control that does nothing. */
  .mock { display: none; }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nowplaying { grid-template-columns: 1fr; }
  .nowplaying .art { width: 100%; }
}
/* Ban appeal form: the builder on the module page, and choice questions on the form itself. */
.qslot { padding: 10px 0; border-bottom: 1px solid var(--grid); }
.qslot .qrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qslot .qnum { width: 22px; color: var(--muted); text-align: right; flex: none; }
.qslot .qrow input[type=text] { flex: 1; min-width: 200px; }
.qslot .qreq { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.qslot .qopts { margin: 8px 0 0 30px; }
.qslot .qopts textarea { width: min(420px, 100%); }
.qactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.appealq { border: 0; padding: 0; margin: 0; min-width: 0; }
.appealq legend { padding: 0; margin-bottom: 6px; }
.appealq label { display: flex; gap: 8px; align-items: center; padding: 4px 0; }

/* Modules: every feature as a card with a switch. */
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 12px; }
.modcard { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.modcard.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.modcard .modtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modcard h3 { margin: 0; font-size: 1rem; }
.modcard h3 a { color: var(--ink); }
.modcard p { margin: 0; color: var(--ink-2); flex: 1; }
.modcard .modfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.toggle { position: relative; width: 40px; height: 22px; flex: none; border-radius: 999px; border: 1px solid var(--axis); background: var(--surface-2); cursor: pointer; padding: 0; transition: background .15s; }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle.on { background: var(--accent); border-color: var(--accent); }
.toggle.on .knob { transform: translateX(18px); background: var(--accent-ink); }
.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle[disabled] { opacity: .5; cursor: not-allowed; }
.modhead { margin-bottom: 16px; }
.modhead .back { color: var(--ink-2); font-size: .93rem; }
.modhead .modtitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.modhead .modtitle h2 { font-size: 1.25rem; }
.modhead p { margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .toggle, .toggle .knob { transition: none; } }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .features, .steps { grid-template-columns: 1fr; }
  .whoami .name, .whoami .caret { display: none; } .whoami { padding: 3px; } .whoami .avatar { margin: 0; }
  .topbar .acctmenu { max-width: calc(100vw - 80px); }  /* the chip sits left of the menu button here */
  .npchip { max-width: none; flex: 0 1 auto; }
  .topbar.has-np .brandlink span { display: none; }
  .topbar .wrap { gap: 8px; min-height: 56px; }
  .topright { order: 2; flex: 1; justify-content: flex-end; }
  .navbtn { display: inline-flex; order: 3; }
  .toplinks { order: 4; flex: none; flex-basis: 100%; display: none; flex-direction: column; gap: 2px; padding: 2px 0 8px; }
  .navcheck:checked ~ .toplinks { display: flex; }
  .toplinks a { padding: 11px 12px; }
  /* iOS zooms the page into any field with smaller text than this. */
  .site input[type=text], .site input[type=number], .site input[type=search], .site input[type=password], .site input[type=datetime-local], .site select, .site textarea { font-size: 16px; }
  .site .card { padding: 16px; }
  .site .card.flush { overflow-x: auto; }
  .prose { padding: 22px 18px !important; }
  .empty-state { padding: 40px 18px !important; }
  .lhero { padding-bottom: 36px; }
  .cta .btn.big { flex: 1 1 100%; justify-content: center; }
  .block { margin-top: 44px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .savetools { margin-left: 0; width: 100%; }
  .savetools select { max-width: none; flex: 1; }
  .pair { grid-template-columns: 84px minmax(0, 1fr); }
  .row-actions { flex-wrap: wrap; }
  .guildhead { gap: 12px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .volume { margin-left: 0; width: 100%; } .volume input { flex: 1; }
  .addform { flex-direction: column; }
  .queue li { grid-template-columns: 20px 52px minmax(0, 1fr) max-content; gap: 10px; padding: 9px 14px; }
  .queue .thumb { width: 52px; }
  .queue .len { display: none; }
  .queue .acts { opacity: 1; }
  .site .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site .savebar { flex-direction: column; align-items: stretch; text-align: center; }
  .band { padding: 34px 20px; }
}

/* Fingers need bigger targets than a mouse pointer does. */
@media (pointer: coarse) {
  .site .btn.small { min-height: 34px; padding: 6px 12px; }
  .iconbtn { width: 40px; height: 40px; }
  .queue .acts button { width: 38px; height: 38px; }
  .jump a { padding: 8px 13px; }
  .toggle { width: 46px; height: 26px; }
  .toggle .knob { width: 20px; height: 20px; }
  .toggle.on .knob { transform: translateX(20px); }
  .switch input { width: 20px; height: 20px; }
}

/* ---- switches for a list (the Commands page): a checkbox drawn as a switch ---- */
.sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 22px; margin: 0; border-radius: 999px; border: 1px solid var(--axis); background: var(--surface-2); cursor: pointer; transition: background .15s, border-color .15s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw:checked { background: var(--accent); border-color: var(--accent); }
.sw:checked::after { transform: translateX(18px); background: var(--accent-ink); }
.sw:indeterminate { background: color-mix(in srgb, var(--accent) 40%, var(--surface-2)); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.sw:indeterminate::after { transform: translateX(9px); background: var(--accent-ink); }
.sw:disabled { opacity: .5; cursor: not-allowed; }
.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tgtools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.tgtools .field1 { position: relative; flex: 1 1 260px; max-width: 420px; }
.tgtools .field1 .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tgtools input { width: 100%; min-height: 42px; padding-left: 42px !important; border-radius: 13px !important; font-size: 1rem; }
.tgcat { margin-top: 26px; }
.tghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tghead h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; flex-wrap: wrap; }
.tghead h2 .fi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.tghead .tgn { font-size: .93rem; font-weight: 400; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.tgall { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-family: var(--display); font-weight: 550; cursor: pointer; }
.tgrow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) max-content; gap: 4px 20px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--grid); cursor: pointer; }
.card > .tgrow:first-child, .card > .tggroup:first-child > .tgrow:first-child { border-top: 0; }
.tgrow:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tgrow.head { background: color-mix(in srgb, var(--surface-2) 55%, transparent); cursor: default; }
.tgrow.head .tgname { color: var(--ink-2); }
.tgrow.in1 { padding-left: 38px; } .tgrow.in2 { padding-left: 56px; }
.tgname { font-weight: 600; overflow-wrap: anywhere; }
.tgdesc { color: var(--ink-2); }
.tgdesc .badge a { color: inherit; text-decoration: underline; }
@media (max-width: 700px) {
  .tgrow { grid-template-columns: minmax(0, 1fr) max-content; }
  .tgrow .tgdesc { grid-column: 1; grid-row: 2; font-size: .93rem; }
  .tgrow .sw { grid-column: 2; grid-row: 1 / span 2; }
  .tgrow.in1 { padding-left: 30px; } .tgrow.in2 { padding-left: 42px; }
}
@media (pointer: coarse) { .sw { width: 46px; height: 26px; } .sw::after { width: 20px; height: 20px; } .sw:checked::after { transform: translateX(20px); } .sw:indeterminate::after { transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }

/* settings form: a sub-heading inside one module's fields, and the real welcome image in the preview */
.fieldhead { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--grid); font-family: var(--display); font-size: 1.02rem; }
.fieldhead + .field { padding-top: 8px; }
.field:has(+ .fieldhead) { border-bottom: 0; }
.dcardimg { display: block; width: 420px; max-width: 100%; height: auto; margin-top: 6px; border-radius: 8px; }
.dcardimg:not(.ready) { display: none; }
