/* Miss Quibble: one stylesheet for the public site, the dashboard and the owner tools.
   Colours come from her portrait: plum background, teal dress, pencil gold, eraser pink, collar cream. */

:root {
  --plum-950: #120a1c; --plum-900: #1a1027; --plum-850: #211533; --plum-800: #2a1a40; --plum-700: #3a2557;
  --plum-600: #5a3488; --plum-500: #7b3fb0; --plum-400: #9a63d1; --plum-300: #c3a2ea;
  --ink: #f4eefb; --ink-2: #cdc3dc; --muted: #9a8fae; --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --gold: #ffc53d; --gold-2: #ffd76e; --teal: #23b8a6; --pink: #ff7fa3; --cream: #fff8ee; --red: #ff5d6c; --green: #3ddc97;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -18px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); background: var(--plum-950); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--plum-300); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
code { font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 5px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; font-weight: 650; margin-bottom: 0.75rem; }
h3 { font-size: 0.75rem; font-weight: 650; margin: 1.25rem 0 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 0.75rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: var(--red); }
.green { color: var(--green); }
.serif { font-family: var(--display); }

/* ---------------------------------------------------------------- buttons, badges */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--plum-500); color: #fff !important; border: 1px solid transparent; font: 600 0.92rem/1.2 var(--font);
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s, border-color .15s; text-decoration: none; }
.button:hover { background: var(--plum-400); }
.button:active { transform: translateY(1px); }
.button.gold { background: var(--gold); color: #2a1247 !important; }
.button.gold:hover { background: var(--gold-2); }
.button.secondary, .button.ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--ink) !important; }
.button.secondary:hover, .button.ghost:hover { background: rgba(255, 255, 255, 0.11); }
.button.danger { background: var(--red); }
.button.ghost-danger { background: transparent; border-color: rgba(255, 93, 108, 0.55); color: #ff9aa4 !important; }
.button.ghost-danger:hover { background: rgba(255, 93, 108, 0.12); }
.button.small { padding: 0.38rem 0.8rem; font-size: 0.82rem; }
.button.large { padding: 0.85rem 1.5rem; font-size: 1rem; }
.button.block { width: 100%; }
.button.discord { padding: 0.85rem 1.5rem; font-size: 1rem; }
button[disabled], .button[disabled] { opacity: 0.45; cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.72rem;
  font-weight: 600; line-height: 1.6; background: rgba(255, 255, 255, 0.07); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.badge.premium { background: rgba(255, 197, 61, 0.14); color: var(--gold); border-color: rgba(255, 197, 61, 0.35); }
.badge.active, .badge.online, .badge.free-now { background: rgba(61, 220, 151, 0.12); color: var(--green); border-color: rgba(61, 220, 151, 0.3); }
.badge.paused { background: rgba(255, 93, 108, 0.12); color: #ff8c97; border-color: rgba(255, 93, 108, 0.35); }
.badge.offline { background: rgba(255, 197, 61, 0.1); color: var(--gold); border-color: rgba(255, 197, 61, 0.3); }
.badge.slash { color: var(--teal); }
.badge.discount { background: var(--green); color: #0b2a1d; border-color: transparent; }
.badge.new { background: var(--plum-500); color: #fff; border-color: transparent; }
.badge.kind-free { color: var(--green); } .badge.kind-new { color: var(--plum-300); } .badge.kind-sale, .badge.kind-drop { color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18); }
.dot.off { background: var(--gold); }

/* ---------------------------------------------------------------- forms */
label { display: block; margin: 0 0 1.1rem; font-weight: 600; font-size: 0.92rem; }
label small, .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }
label.inline { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; margin: 0 0.9rem 0.4rem 0; }
input[type=text], input[type=number], input[type=email], select, textarea { display: block; width: 100%; margin-top: 0.4rem;
  padding: 0.6rem 0.75rem; background: var(--plum-950); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--plum-400); outline-offset: -1px; border-color: transparent; }
input[type=checkbox]:not(.switch) { accent-color: var(--plum-500); }
.checks { display: flex; flex-wrap: wrap; margin-top: 0.5rem; }
form.inline { display: inline; }
details { margin: 0.5rem 0; }
summary { cursor: pointer; }
.form-narrow { max-width: 600px; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 23px; margin: 0; border-radius: 999px;
  background: #4a3d5e; position: relative; cursor: pointer; transition: background .15s; vertical-align: middle; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
input.switch:checked { background: var(--teal); }
input.switch:checked::after { transform: translateX(17px); }
input.switch:disabled { opacity: 0.4; cursor: not-allowed; }
input.switch:focus-visible { outline: 2px solid var(--plum-300); outline-offset: 2px; }
input.switch.sm { width: 32px; height: 19px; }
input.switch.sm::after { width: 13px; height: 13px; }
input.switch.sm:checked::after { transform: translateX(13px); }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--plum-900); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
.card.flat { box-shadow: none; }
.card.highlight { border-color: rgba(255, 197, 61, 0.35); background: linear-gradient(160deg, rgba(255, 197, 61, 0.08), transparent 55%), var(--plum-900); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 1.25rem; }
.grid.stats .card { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat .label { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat strong { font-size: 1.35rem; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0.8rem 1.1rem;
  border-radius: var(--radius); margin-bottom: 1.25rem; background: var(--plum-900); border: 1px solid var(--line); }
.banner p { margin: 0; }
.banner.paused { border-color: rgba(255, 93, 108, 0.45); background: rgba(255, 93, 108, 0.08); }
.banner.offline { border-color: rgba(255, 197, 61, 0.35); background: rgba(255, 197, 61, 0.06); }
.banner.upsell { border-color: rgba(255, 197, 61, 0.35); background: linear-gradient(100deg, rgba(255, 197, 61, 0.12), rgba(123, 63, 176, 0.12)); }
.messages { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.messages li { padding: 0.7rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; background: var(--plum-850); border: 1px solid var(--line); border-left: 3px solid var(--plum-400); }
.messages li.success { border-left-color: var(--green); }
.messages li.error { border-left-color: var(--red); }
.messages li.info { border-left-color: var(--gold); }
table.commands, table.data { width: 100%; border-collapse: collapse; }
table.commands td, table.commands th, table.data td, table.data th { padding: 0.6rem 0.6rem; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
table.commands th, table.data th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
table.commands tr:first-child td { border-top: 0; }
table.commands tr.dim, .dim { opacity: 0.55; }
.table-scroll { overflow-x: auto; }
pre.json { background: var(--plum-950); padding: 0.9rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.82rem; border: 1px solid var(--line); }
ul.plain, ul.bundles { padding-left: 1.1rem; }
ul.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 1.5rem; }
.page-head p { margin: 0.35rem 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.guild-head { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.guild-head img, .icon-fallback { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.icon-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--plum-600); color: #fff; font-weight: 700; font-size: 1.1rem; }
.icon-fallback.sm, img.sm { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 50%; flex: none; }
.icon-fallback.lg, img.lg { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 50%; flex: none; }

/* ================================================================ PUBLIC SITE */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(18, 10, 28, 0.72); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; height: 66px; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font: 600 1.45rem/1 var(--display); letter-spacing: 0.01em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 50%; }
.site-nav { display: flex; gap: 0.25rem; margin-left: auto; align-items: center; }
.site-nav a.link { color: var(--ink-2); padding: 0.45rem 0.75rem; border-radius: 999px; font-weight: 500; font-size: 0.92rem; }
.site-nav a.link:hover, .site-nav a.link.current { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 720px) {
  .site-header .inner { gap: 0.75rem; }
  .site-nav a.link.hide-sm { display: none; }
  .logo span { display: none; }
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1000px 520px at 78% 30%, rgba(123, 63, 176, 0.55), transparent 65%),
  radial-gradient(700px 400px at 10% 110%, rgba(35, 184, 166, 0.16), transparent 70%), var(--plum-950); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; padding-top: 4.5rem; padding-bottom: 0; }
.hero-copy { padding-bottom: 4.5rem; }
.eyebrow { display: inline-flex; gap: 0.5rem; align-items: center; color: var(--gold); font-weight: 600; font-size: 0.82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.hero h1 { font: 600 clamp(2.6rem, 6vw, 4.4rem)/1.02 var(--display); letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 2rem; }
.hero .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero .proof { margin-top: 1.5rem; color: var(--muted); font-size: 0.88rem; }
.hero-art { align-self: end; justify-self: center; width: min(440px, 100%); position: relative; }
.hero-art img { display: block; width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 3rem; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { width: min(300px, 80%); }
}
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section.tint { background: linear-gradient(180deg, var(--plum-900), var(--plum-950)); }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font: 600 clamp(2rem, 4vw, 2.8rem)/1.1 var(--display); margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--plum-900); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.feature .icon.plum { background: rgba(123, 63, 176, 0.25); } .feature .icon.teal { background: rgba(35, 184, 166, 0.2); } .feature .icon.gold { background: rgba(255, 197, 61, 0.18); }
.feature h3 { font: 650 1.1rem/1.3 var(--font); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0 0 0.5rem; }
.feature p { color: var(--ink-2); margin: 0 0 0.9rem; }
.feature ul { list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.feature li { padding: 0.25rem 0 0.25rem 1.5rem; position: relative; }
.feature li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.showcase + .showcase { margin-top: 5rem; }
.showcase.flip .text { order: 2; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 1.5rem; } .showcase.flip .text { order: 0; } }
.showcase h3 { font: 600 2rem/1.15 var(--display); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0 0 1rem; }
.showcase p { color: var(--ink-2); font-size: 1.02rem; }
/* a Discord chat, drawn in CSS */
.discord { background: #313338; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.92rem; color: #dbdee1; }
.discord .msg { display: grid; grid-template-columns: 40px 1fr; gap: 0.8rem; padding: 0.35rem 0; }
.discord .msg + .msg { margin-top: 0.4rem; }
.discord .av { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }
.discord .who { font-weight: 600; color: #f2f3f5; }
.discord .who .tag { background: #5865f2; color: #fff; font-size: 0.62rem; padding: 0 0.3rem; border-radius: 3px; margin-left: 0.3rem; vertical-align: 1px; }
.discord .who time { color: #949ba4; font-weight: 400; font-size: 0.75rem; margin-left: 0.4rem; }
.discord .embed { margin-top: 0.4rem; background: #2b2d31; border-left: 4px solid var(--teal); border-radius: 4px; padding: 0.65rem 0.85rem; max-width: 26rem; }
.discord .embed.gold { border-left-color: var(--gold); } .discord .embed.red { border-left-color: #ed4245; }
.discord .embed b { color: #f2f3f5; display: block; margin-bottom: 0.15rem; }
.discord .embed .field { display: inline-block; margin: 0.35rem 1.2rem 0 0; font-size: 0.82rem; }
.discord .embed .field i { display: block; font-style: normal; color: #b5bac1; font-weight: 600; }
.discord code { background: #2b2d31; color: #dbdee1; }
.discord .strike { text-decoration: line-through; color: #949ba4; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.5rem; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--plum-500); font-weight: 700; margin-bottom: 0.9rem; }
.step h3 { font: 650 1.05rem/1.3 var(--font); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0 0 0.4rem; }
.step p { color: var(--ink-2); margin: 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 1.5rem; justify-content: center; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--plum-900); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(255, 197, 61, 0.5); background: linear-gradient(170deg, rgba(255, 197, 61, 0.1), transparent 45%), var(--plum-900); }
.plan .ribbon { position: absolute; top: -12px; left: 2rem; background: var(--gold); color: #2a1247; font-weight: 700; font-size: 0.72rem; padding: 0.2rem 0.65rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { font: 600 1.8rem/1 var(--display); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0 0 0.6rem; }
.plan .price { font: 700 2.6rem/1 var(--font); margin: 0.6rem 0 0.2rem; letter-spacing: -0.02em; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 0.88rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0; flex: 1; }
.plan li { padding: 0.4rem 0 0.4rem 1.7rem; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.plan li.plus::before { content: "+"; color: var(--gold); }
.interval-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--plum-900); border: 1px solid var(--line); margin: 0 auto 2.25rem; }
.interval-toggle button { border: 0; background: transparent; color: var(--ink-2); font: 600 0.88rem var(--font); padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer; }
.interval-toggle button.on { background: var(--plum-500); color: #fff; }
.interval-toggle .save { color: var(--gold); font-size: 0.75rem; margin-left: 0.3rem; }
.compare { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.compare th, .compare td { padding: 0.95rem 0.75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { border-top: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.compare td.v, .compare th.v { text-align: center; width: 9rem; }
.compare td .what { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.yes { color: var(--teal); font-weight: 800; } .no { color: #5f5470; }
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 0; }
.faq summary { font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0.75rem 0 0; }
.cta-band { text-align: center; padding: 4.5rem 1.25rem; background: radial-gradient(700px 300px at 50% 100%, rgba(123, 63, 176, 0.5), transparent 70%); border-top: 1px solid var(--line); }
.cta-band h2 { font: 600 clamp(2rem, 4vw, 2.8rem)/1.1 var(--display); margin-bottom: 1rem; }
.cta-band p { color: var(--ink-2); margin-bottom: 1.75rem; }
.prose { max-width: 44rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; color: var(--ink-2); }
.prose h1 { font: 600 2.6rem/1.1 var(--display); color: var(--ink); margin-bottom: 0.5rem; }
.prose h2 { color: var(--ink); margin: 2rem 0 0.6rem; }
.prose li { margin-bottom: 0.35rem; }
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.auth { min-height: calc(100vh - 66px - 120px); display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth .card { max-width: 440px; width: 100%; text-align: center; padding: 2.25rem; }
.auth img.avatar { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 1rem; }
.auth h1 { font: 600 2rem/1.1 var(--display); margin-bottom: 0.6rem; }
.setup-warning { text-align: left; background: var(--plum-950); border: 1px solid rgba(255, 93, 108, 0.4); padding: 0.9rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; }

/* ================================================================ APP (dashboard) */
.app-header { position: sticky; top: 0; z-index: 20; background: rgba(18, 10, 28, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-header .inner { height: 60px; padding: 0 1.25rem; display: flex; align-items: center; gap: 1rem; }
.app-header .logo { font-size: 1.3rem; }
.app-header .logo img { width: 30px; height: 30px; }
.app-header .spacer { flex: 1; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.6rem 0.35rem 0.4rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); font-weight: 600; font-size: 0.9rem; cursor: pointer; max-width: 260px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: rgba(255, 255, 255, 0.08); }
.menu > summary img, .menu > summary .icon-fallback { width: 26px; height: 26px; border-radius: 50%; font-size: 0.75rem; }
.menu > summary .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu > summary .chev { color: var(--muted); font-size: 0.7rem; }
.menu .panel { position: absolute; top: calc(100% + 8px); min-width: 250px; background: var(--plum-850); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); padding: 0.4rem; z-index: 30; }
.menu.right .panel { right: 0; }
.menu .panel a, .menu .panel button.item { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--ink-2);
  font: 500 0.9rem var(--font); background: none; border: 0; text-align: left; cursor: pointer; }
.menu .panel a:hover, .menu .panel button.item:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.menu .panel a.current { color: var(--ink); background: rgba(123, 63, 176, 0.25); }
.menu .panel img, .menu .panel .icon-fallback { width: 24px; height: 24px; border-radius: 50%; font-size: 0.7rem; }
.menu .panel .sep { height: 1px; background: var(--line); margin: 0.35rem 0.2rem; }
.menu .panel .head { padding: 0.5rem 0.7rem 0.3rem; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.menu .panel .who { padding: 0.6rem 0.7rem; display: flex; gap: 0.6rem; align-items: center; }
.menu .panel .who img { width: 34px; height: 34px; }
@media (max-width: 640px) { .app-header .hide-sm { display: none; } .menu > summary .label { max-width: 110px; } }

.app-main { max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.app-main.narrow { max-width: 1040px; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.sidebar { position: sticky; top: 84px; }
.sidebar .server { display: flex; gap: 0.75rem; align-items: center; padding: 0.25rem 0.25rem 1.1rem; }
.sidebar .server strong { display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.sidebar .server .meta { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.3rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .group { margin: 1rem 0 0.35rem 0.75rem; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 650; }
.side-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.75rem; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 0.92rem; }
.side-nav a .i { width: 1.2rem; text-align: center; opacity: 0.9; }
.side-nav a .lock { margin-left: auto; font-size: 0.75rem; opacity: 0.75; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.side-nav a.current { background: rgba(123, 63, 176, 0.28); color: #fff; }
.side-nav a.upgrade { margin-top: 1rem; background: rgba(255, 197, 61, 0.1); color: var(--gold); border: 1px solid rgba(255, 197, 61, 0.25); }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .sidebar { position: static; }
  .sidebar .server { padding-bottom: 0.75rem; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 0.25rem; margin: 0 -1.25rem; padding: 0 1.25rem 0.25rem; border-bottom: 1px solid var(--line); }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav .group { display: none; }
  .side-nav a { white-space: nowrap; flex: none; }
  .side-nav a.upgrade { margin-top: 0; }
}
.content-head { margin-bottom: 1.5rem; }
.content-head h1 { font-size: 1.55rem; }
.content-head p { color: var(--muted); margin: 0.35rem 0 0; }
.content-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* server picker */
.server-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
a.server-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--plum-900); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: border-color .15s, transform .15s, background .15s; box-shadow: var(--shadow); }
a.server-card:hover { border-color: rgba(154, 99, 209, 0.6); background: var(--plum-850); transform: translateY(-1px); }
a.server-card img, a.server-card .icon-fallback { width: 52px; height: 52px; border-radius: 50%; }
a.server-card .body { flex: 1; min-width: 0; }
a.server-card strong { display: block; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.server-card .meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; align-items: center; color: var(--muted); font-size: 0.82rem; }
a.server-card .go { color: var(--muted); font-size: 1.4rem; }
.server-list { background: var(--plum-900); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.server-list .row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); }
.server-list .row:first-child { border-top: 0; }
.server-list .row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-title { display: flex; align-items: baseline; gap: 0.5rem; margin: 2.25rem 0 0.9rem; }
.section-title h2 { margin: 0; font-size: 1.05rem; }
.section-title:first-of-type { margin-top: 0.5rem; }

/* overview */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tile { background: var(--plum-900); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.tile .label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.tile .value { font-size: 1.45rem; font-weight: 700; margin-top: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.tile .sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
a.quick-link { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.95rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--plum-900); color: var(--ink); }
a.quick-link:hover { border-color: rgba(154, 99, 209, 0.55); color: var(--ink); }
a.quick-link .i { font-size: 1.25rem; line-height: 1; margin-top: 0.1rem; }
a.quick-link small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }

/* modules */
.category-block { background: var(--plum-900); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.category-head { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.1rem; background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; font-weight: 400; }
.category-head strong { font-size: 0.98rem; }
.category-head .hint { margin: 0 0 0 auto; display: inline; }
.category-block.off .module-row { opacity: 0.45; }
.module-row + .module-row { border-top: 1px solid var(--line); }
.module-row .line { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 1.1rem; }
.module-row .line > label { margin: 0; padding-top: 2px; }
.module-row .info { flex: 1; min-width: 0; }
.module-row .info strong { font-weight: 600; }
.module-row .info p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.87rem; }
.module-row .side { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.module-row.off .info, .module-row.off details { opacity: 0.55; }
.module-row.locked .info strong, .module-row.locked .info p { opacity: 0.7; }
.module-row details { margin: 0.35rem 0 0; }
.module-row summary { color: var(--muted); font-size: 0.84rem; list-style: none; display: inline-block; }
.module-row summary::-webkit-details-marker { display: none; }
.module-row summary::before { content: "▸ "; }
.module-row details[open] summary::before { content: "▾ "; }
.command-list { margin: 0.6rem 0 0.2rem; border-left: 2px solid var(--line-2); }
.command { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.45rem 0.75rem; font-weight: 400; margin: 0; cursor: pointer; border-radius: 0 8px 8px 0; }
.command:hover { background: rgba(255, 255, 255, 0.04); }
.command .what { flex: 1; min-width: 0; }
.command .what small { display: block; color: var(--muted); margin: 0; }
.command .usage { color: var(--muted); font-size: 0.85em; }
@media (max-width: 640px) { .module-row .line { flex-wrap: wrap; } .module-row .side { flex-basis: 100%; padding-left: 3.2rem; } }
.savebar { position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0.7rem 0.8rem 0.7rem 1.1rem;
  margin-top: 1.25rem; background: rgba(33, 21, 51, 0.92); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7); }
.savebar .dirty { color: var(--gold); margin-right: auto; display: none; font-weight: 600; font-size: 0.9rem; }
.savebar.is-dirty .dirty { display: inline; }
.savebar.is-dirty { border-color: rgba(255, 197, 61, 0.45); }

/* premium page */
.plan-now { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.plan-now .name { font: 600 1.9rem/1 var(--display); }
.unlock-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; margin: 1rem 0 1.5rem; }
.unlock-list div { padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.unlock-list b { display: block; }
.unlock-list span { color: var(--muted); font-size: 0.85rem; }

/* owner tools and older panels */
.subnav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.module-admin .row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.module-admin h3 + .row { border-top: 0; }
.module-admin .row .info { flex: 1; min-width: 0; }
.module-admin .row .info small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-admin .row.dim { opacity: 0.55; }
.module-admin .row form { display: flex; gap: 0.35rem; }
.modules .module-tile { display: flex; flex-direction: column; gap: 0.25rem; background: var(--plum-850); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem; font-weight: 400; margin: 0; }
.panel-link { font-weight: 600; white-space: nowrap; }
form.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
form.filters label { margin: 0; }
form.filters select { width: auto; display: inline-block; margin: 0 0 0 0.35rem; }
table.history tr.active td { background: rgba(61, 220, 151, 0.05); }
.grid.listings { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.listing img.cover { width: 100%; border-radius: var(--radius-sm); margin-bottom: 0.6rem; }
.listing h2 { font-size: 1rem; }
.price { font-size: 1.05rem; }
.discord.transcript .msg.deleted > div:last-child { opacity: .7; }
.discord.transcript .msg.deleted { background: rgba(237, 66, 69, 0.06); border-radius: 6px; }
.discord .av img { width: 40px; height: 40px; border-radius: 50%; }
.mode-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--plum-900); border: 1px solid var(--line-2); gap: 2px; }
.mode-switch button { border: 0; background: transparent; color: var(--ink-2); font: 600 0.86rem var(--font); padding: 0.42rem 0.95rem; border-radius: 999px; cursor: pointer; }
.mode-switch button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.mode-switch button.on { background: var(--plum-500); color: #fff; }
.mode-switch button.on[value="quiet"] { background: #8a6d12; }
.mode-switch button.on[value="paused"] { background: #8c2a33; }

/* Branding page */
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.palette { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; margin: 0; }
.palette.on { border-color: var(--gold); background: rgba(255, 197, 61, .06); }
.palette input { display: none; }
.swatches { display: flex; gap: 3px; }
.swatches i { display: block; width: .8rem; height: 1.3rem; border-radius: 3px; }
.row-inline { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: flex-end; margin-bottom: .8rem; }
.row-inline label { margin: 0; }
.role-preview input[type=color] { width: 2.4rem; height: 1.7rem; padding: 0; border: 0; background: none; vertical-align: middle; }
.role-preview .role-name { font-weight: 600; }
.chip { display: inline-block; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1px solid var(--line-2); vertical-align: middle; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin: .8rem 0 1rem; }
.emoji { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: .7rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.emoji code { font-size: .74rem; }
.emoji.here { border-color: rgba(61, 220, 151, .3); }
.yt-follow { border-top: 1px solid var(--line); padding: .7rem 0; }
.yt-follow:first-of-type { border-top: 0; }
.yt-follow summary { cursor: pointer; }
