/* Dashboard: dark lavender, matching the website. Loaded last. */
:root {
  --bg: #060709;
  --side: rgba(6, 8, 13, .88);
  --panel: #0a0d14;
  --panel-2: #0e1117;
  --panel-3: #11151e;
  --line: #161b27;
  --line-2: #202734;
  --text: #f3f6fc;
  --muted: #aeb8cc;
  --dim: #778197;
  --chart: #a8beec;
  --teal: #a8beec;
  --b-bg: linear-gradient(180deg, #212837 0%, #151a26 100%);
  --b-line: rgba(177, 197, 239, .18);
  --b-icon: #adc1ec;
  --b-on: linear-gradient(180deg, #2b3c60 0%, #212b40 100%);
  --b-on-line: rgba(186, 205, 245, .38);
}
/* A plain dark gradient in the avatar's lavender: a soft glow from the top right, a cooler one bottom left. */
html {
  background:
    radial-gradient(1100px 620px at 85% -12%, rgba(120, 147, 203, .24), transparent 62%),
    radial-gradient(900px 560px at -8% 108%, rgba(70, 74, 133, .18), transparent 60%),
    linear-gradient(180deg, #0a0d13 0%, #060709 100%);
  background-attachment: fixed;
  min-height: 100%;
}
body { background: transparent; }
::selection { background: rgba(120, 149, 209, .45); color: #fff; }

.app, .login, .picker, #root > * { position: relative; z-index: 1; }

/* Sidebar and top bar: plum glass. */
.side { background: var(--side) !important; border-right-color: var(--line) !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar { background: rgba(6, 7, 9, .7) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line) !important; }
/* Sidebar items: the same style as the docs sidebar. */
.group a { color: #b1bdd8 !important; border-radius: 10px !important; }
.group a i { color: #9fb6e3 !important; }
.group a i .si { width: 1.15em; height: 1.15em; }
.group a:hover { background: rgba(255, 255, 255, .04) !important; color: #fff !important; }
.group a.on { background: transparent !important; color: #fff !important; }
.group a.on i { color: var(--teal) !important; }
.nav-indicator {
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: linear-gradient(180deg, #2c3342 0%, #151921 100%) padding-box, linear-gradient(180deg, rgba(193, 210, 246, .34) 0%, rgba(193, 210, 246, .08) 55%, rgba(193, 210, 246, .03) 100%) border-box !important;
  box-shadow: none !important;
}
.brand img { border-radius: 50%; }

/* Panels: solid plum so text never sits on the ribbons. */
.card, .set-card, .table, .list .li, .notice, .stat, .menu, .dd-menu, .savebar, .drawer, .modal, .palette {
  border-color: var(--line) !important;
}
.card, .set-card { background: var(--panel) !important; }

/* ------------------------------------------------------------ buttons: one style, no hover movement */
.btn, .btn.ghost, .icon-btn, .switcher, .cmdk-open, .hamburger, .ce-addblock, .ce-seg button, .rm-mode button, .chip.opt, .dd-btn, .msg-var, .prem-hint {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}
.btn {
  background: var(--b-on) !important;
  color: #fff !important;
  border: 1px solid var(--b-on-line) !important;
  box-shadow: inset 0 1px 0 rgba(220, 230, 250, .08) !important;
}
.btn.ghost, .icon-btn, .switcher, .cmdk-open, .hamburger, .ce-addblock, .dd-btn, .msg-var {
  background: var(--b-bg) !important;
  color: #fff !important;
  border: 1px solid var(--b-line) !important;
  box-shadow: inset 0 1px 0 rgba(220, 230, 250, .07) !important;
}
.btn:hover { background: var(--b-on) !important; filter: none !important; }
.btn.ghost:hover, .icon-btn:hover, .switcher:hover, .cmdk-open:hover, .hamburger:hover, .ce-addblock:hover, .dd-btn:hover, .msg-var:hover { background: var(--b-bg) !important; filter: none !important; }
.btn i, .btn.ghost i, .icon-btn i, .ce-addblock i { color: var(--b-icon) !important; }
.btn:not(.ghost) i { color: #e3eafa !important; }
.icon-btn.danger:hover { color: #f87171 !important; }
.btn:disabled { opacity: .5; }

/* Toggles, segmented choices and chips. */
.toggle { background: #151a26 !important; border: 1px solid var(--b-line); }
.toggle.on { background: linear-gradient(180deg, #89a2d7, #5976b3) !important; border-color: rgba(186, 205, 245, .5); }
.toggle::after { background: #788194 !important; }
.toggle.on::after { background: #fff !important; }
.chip.opt.on {
  background: var(--b-on) !important; color: #fff !important; border-color: var(--b-on-line) !important; box-shadow: none !important;
}
.chip.opt { border-color: var(--b-line) !important; }

/* Inputs. */
.input, select.input, textarea.input, .tags, .side-search, .search { background: #080b11 !important; border-color: var(--line-2) !important; }
.input:focus, textarea.input:focus, .tags:focus-within { border-color: rgba(150, 176, 232, .55) !important; box-shadow: 0 0 0 3px rgba(150, 176, 232, .12) !important; }

/* Status dots, badges and accents. */
.badge { background: #151a26 !important; border-color: var(--b-line) !important; color: #e0e6f2 !important; }
.badge.ok, .prem-chip { background: linear-gradient(180deg, #cdd9f4, #a4b8e3) !important; color: #111724 !important; border-color: transparent !important; }
.dot.on, .status-dot.on { background: #96b0e8 !important; box-shadow: 0 0 8px rgba(150, 176, 232, .7) !important; }
.pi { background: #1c2333 !important; border: 1px solid rgba(177, 197, 239, .22) !important; color: var(--b-icon) !important; box-shadow: none !important; }
.pi i { color: var(--b-icon) !important; }
.progress-bar, .bar > span { background: linear-gradient(90deg, #5976b3, #96b0e8) !important; }

/* Login card. */
.login .discord { background: var(--b-on) !important; color: #fff !important; border: 1px solid var(--b-on-line) !important; }
.login .discord:hover { background: var(--b-on) !important; }

/* Save bar. */
.savebar { background: rgba(10, 13, 20, .94) !important; border: 1px solid var(--line-2) !important; backdrop-filter: blur(14px); }

/* ================================================================ the "fill + edge" style, everywhere
   Buttons are lavender pills like the "bounty Premium" badge: a see-through
   lavender fill and a white rim that fades towards the bottom. */
:root {
  --fill: linear-gradient(180deg, rgba(156, 182, 234, .16) 0%, rgba(103, 129, 178, .10) 100%);
  --fill-hi: linear-gradient(180deg, rgba(160, 184, 239, .34) 0%, rgba(120, 147, 203, .22) 100%);
  --fill-panel: linear-gradient(180deg, #141820 0%, #0a0d13 100%);
  --fill-field: linear-gradient(180deg, #101319 0%, #0c0f16 100%);
  --edge: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .03) 100%);
  --edge-hi: linear-gradient(180deg, rgba(255, 255, 255, .36) 0%, rgba(255, 255, 255, .1) 60%, rgba(255, 255, 255, .05) 100%);
  --edge-soft: linear-gradient(180deg, rgba(193, 210, 246, .22) 0%, rgba(193, 210, 246, .06) 50%, rgba(193, 210, 246, .02) 100%);
}

/* Panels and cards. */
.card, .set-card, .notice, .stat, .stat-card, .table, .list .li, .empty-state, .gcard, .login-card, .login > div,
.prem-hero, .prem-plan, .prem-perk, .prem-facts > div, .adm-stat, .ce-block, .ce-settings, .msg-preview, .tk-discord, .pg-chat,
.fp-role, .drawer, .modal, .dialog, .palette, .menu, .dd-menu, .savebar {
  border: 1px solid transparent !important;
  background: var(--fill-panel) padding-box, var(--edge-soft) border-box !important;
}
.list .li { background: var(--fill-panel) padding-box, var(--edge-soft) border-box !important; }

/* Main buttons and anything selected. */
.btn, .chip.opt.on, .dd-opt.on, .filters button.on {
  border: 1px solid transparent !important;
  background: var(--fill-hi) padding-box, var(--edge-hi) border-box !important;
  color: #fff !important;
  box-shadow: none !important;
}
/* Everything else you can press. */
.btn.ghost, .icon-btn, .switcher, .cmdk-open, .hamburger, .ce-addblock, .dd-btn, .msg-var, .chip, .chip.opt, .badge, .prem-hint,
.tags .tag, .stepper button, .num-step button {
  border: 1px solid transparent !important;
  background: var(--fill) padding-box, var(--edge) border-box !important;
  color: #f3f6fc !important;
  box-shadow: none !important;
}
/* Hover changes nothing but a hair of light, like the docs. */
.btn:hover, .btn.ghost:hover, .icon-btn:hover, .switcher:hover, .cmdk-open:hover, .hamburger:hover, .ce-addblock:hover, .dd-btn:hover, .msg-var:hover, .chip.opt:hover {
  filter: brightness(1.08) !important; transform: none !important;
}
.btn i, .icon-btn i, .switcher i, .chip i { color: var(--teal) !important; }
.btn:not(.ghost) i { color: #e3ecfe !important; }
/* Main buttons are full pills. */
.btn, .btn.ghost, .login .discord { border-radius: 999px !important; }

/* Text fields and search. */
.input, select.input, textarea.input, .tags, .side-search, .search, .tags-in, .cp-hex {
  border: 1px solid transparent !important;
  background: var(--fill-field) padding-box, var(--edge-soft) border-box !important;
}
.input:focus, textarea.input:focus, .tags:focus-within, .side-search:focus-within {
  background: var(--fill-field) padding-box, var(--edge-hi) border-box !important;
  box-shadow: none !important;
}
.tags-in { background: none !important; border: 0 !important; }

/* Icon tiles (page titles, list icons). */
.pi, .li .ico, .ce-bic, .adm-stat .ico, .prem-perk .ico, .gicon {
  border: 1px solid transparent !important;
  background: var(--fill) padding-box, var(--edge) border-box !important;
  color: var(--teal) !important;
}
.pi i, .li .ico i, .ce-bic i { color: var(--teal) !important; }
/* Toggles keep their own look: dark when off, the avatar's lavender when on. */
.toggle { background: var(--fill-field) padding-box, var(--edge-soft) border-box !important; border: 1px solid transparent !important; }
.toggle.on { background: linear-gradient(180deg, #a0b8ef, #7893cb) padding-box, var(--edge-hi) border-box !important; }

/* Solar icons (/assets/solar.js): Font Awesome <i> tags keep their styling and draw the Solar svg inside. */
.si { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: -.125em; }
[data-solar] { display: inline-flex; line-height: 0; }
i.si-i::before { content: none !important; display: none !important; }
i.si-i { display: inline-flex; align-items: center; justify-content: center; font-style: normal; }

/* ---------------------------------------------------------------------------
   Calmer controls. Only real actions (.btn and friends) wear the pill; the
   server menu, tabs and segmented choices are quieter, so a page is not a wall
   of pills.
   ------------------------------------------------------------------------- */

/* Sidebar search: one field, an outline magnifier, a small key hint. */
.side-search { display: flex; flex: none; align-items: center; gap: 9px; height: 38px; padding: 0 8px 0 12px; border-radius: 11px; cursor: text; }
.side-search > i { position: static; color: #808eac; font-size: 15px; transition: color .15s; }
.side-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; border-radius: 0; background: none !important; color: #dfe8fb; font-size: 13px; }
.side-search input::placeholder { color: #717f9a; }
.side-search kbd { position: static; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #808eac; font: 600 11px/1 var(--mono); transition: opacity .15s; }
.side-search:focus-within > i { color: #b1c8fa; }
.side-search:focus-within kbd { opacity: 0; }

/* Server menu: plain rows, a soft highlight and a dot on the server you are in. */
.menu { padding: 6px !important; border-radius: 14px !important; }
.menu a { position: relative; gap: 11px; padding: 7px 26px 7px 8px; border-radius: 9px; color: #d3ddf2; transition: background .15s, color .15s; }
.menu a:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.menu a.on { background: rgba(155, 187, 252, .10); color: #fff; }
.menu a.on::after { content: ''; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #9bbbfc; box-shadow: 0 0 8px rgba(155, 187, 252, .6); }
.menu a i { color: #94aad8; }
.menu hr { border-top-color: rgba(255, 255, 255, .06) !important; }

/* Tabs: plain text, with a lavender underline that slides to the one you are on. */
.tabs { gap: 2px !important; padding: 0 !important; width: 100%; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .07) !important; border-radius: 0 !important; background: none !important; }
.tabs button { padding: 9px 14px 11px; border: 0 !important; border-radius: 0 !important; background: none !important; color: #8391ac !important; font-weight: 600; }
.tabs button:hover { color: #dde6f9 !important; }
.tabs button.on { color: #fff !important; background: none !important; box-shadow: none !important; }
.tabs .glider { top: auto !important; bottom: -1px; height: 2px; border-radius: 2px !important; background: linear-gradient(90deg, #7893cb, #a0b8ef) !important; box-shadow: 0 0 10px rgba(160, 184, 239, .45) !important; }

/* Segmented choices (date ranges, modes): one quiet track, a soft chip on the pick. */
.seg, .range, .ce-seg, .rm-mode { padding: 3px !important; border: 1px solid rgba(255, 255, 255, .06) !important; border-radius: 10px !important; background: rgba(255, 255, 255, .03) !important; }
.seg button, .range button, .ce-seg button, .rm-mode button { border: 0 !important; border-radius: 7px !important; background: none !important; color: #8f9db8 !important; box-shadow: none !important; }
.seg button:hover, .range button:hover, .ce-seg button:hover, .rm-mode button:hover { color: #fff !important; }
.seg button.on, .range button.on, .ce-seg button.on, .rm-mode button.on { color: #fff !important; box-shadow: none !important; }
.seg button.on { background: none !important; }
.range button.on, .ce-seg button.on, .rm-mode button.on { background: rgba(155, 187, 252, .16) !important; }
.seg .glider { top: 3px !important; bottom: 3px !important; border-radius: 7px !important; background: rgba(155, 187, 252, .16) !important; box-shadow: none !important; }

/* ---------------------------------------------------------------------------
   Smooth edges and a little more polish.
   Rims are inset shadows rather than gradient borders: they follow rounded
   corners and anti-alias cleanly, where a 1px gradient border lands on
   fractional pixels (0.67px on a 150% screen) and comes out uneven.
   ------------------------------------------------------------------------- */

/* Panels and cards: one soft rim, a hair of light on top, a deep quiet shadow. */
.card, .set-card, .notice, .stat, .stat-card, .table, .list .li, .empty-state, .gcard, .login-card, .login > div,
.prem-hero, .prem-plan, .prem-perk, .prem-facts > div, .adm-stat, .ce-block, .ce-settings, .msg-preview, .tk-discord, .pg-chat,
.fp-role, .drawer, .modal, .dialog, .palette, .menu, .dd-menu, .savebar {
  border: 0 !important;
  background: var(--fill-panel) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), inset 0 0 0 1px rgba(193, 210, 246, .085), 0 18px 40px -26px rgba(0, 0, 0, .85) !important;
}
.list .li { transition: box-shadow .15s, transform .15s; }
.list .li:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(193, 210, 246, .16), 0 18px 40px -26px rgba(0, 0, 0, .85) !important; }

/* Main buttons: the lavender pill, with a clean rim. */
.btn {
  border: 0 !important;
  background: var(--fill-hi) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 24px -14px rgba(0, 0, 0, .9) !important;
}
/* Quieter buttons and the switcher. */
.btn.ghost, .icon-btn, .switcher, .cmdk-open, .hamburger, .ce-addblock, .dd-btn, .msg-var, .chip, .chip.opt, .badge, .prem-hint,
.tags .tag, .stepper button, .num-step button {
  border: 0 !important;
  background: var(--fill) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .07) !important;
}
.chip.opt.on, .dd-opt.on, .filters button.on {
  border: 0 !important;
  background: var(--fill-hi) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .12) !important;
}
.btn:focus-visible, .btn.ghost:focus-visible, .icon-btn:focus-visible, .switcher:focus-visible { outline: 2px solid #afc4f5; outline-offset: 2px; }

/* Text fields: a quiet rim, and a lavender ring when focused. */
.input, select.input, textarea.input, .tags, .side-search, .search, .cp-hex {
  border: 0 !important;
  background: var(--fill-field) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .075) !important;
  transition: box-shadow .15s;
}
.input:focus, textarea.input:focus, .tags:focus-within, .side-search:focus-within, .search:focus-within {
  box-shadow: inset 0 0 0 1px rgba(160, 184, 239, .6), 0 0 0 3px rgba(160, 184, 239, .14) !important;
}

/* Icon tiles. */
.pi, .li .ico, .ce-bic, .adm-stat .ico, .prem-perk .ico, .gicon {
  border: 0 !important;
  background: var(--fill) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .07) !important;
}
.toggle { border: 0 !important; background: var(--fill-field) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09) !important; }
.toggle.on { background: linear-gradient(180deg, #a0b8ef, #7893cb) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 12px rgba(160, 184, 239, .35) !important; }

/* The server card: the icon's glow stays, softer and washed with lavender. */
.sb-glow { opacity: .12; }
.sb::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 160% at 0% 0%, rgba(155, 187, 252, .12), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(120, 147, 203, .08), transparent 60%); }
.sb-ring { background: radial-gradient(closest-side, #0c0f16 79%, transparent 80% 100%), conic-gradient(#a0b8ef calc(var(--p) * 360deg), #1e232e 0); }
.sb-chips span { border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }

/* No empty circle next to "Hello" when there is no avatar to show. */
.hello h1 .dot:empty { display: none; }

/* ---------------------------------------------------------------------------
   Setup guide (onboarding): prefix, look, next steps.
   ------------------------------------------------------------------------- */
.modal.onb { width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 0; text-align: left; border-radius: 20px; }
.onb-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
.onb-icon { width: 38px !important; height: 38px !important; border-radius: 11px !important; flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 700; }
.onb-icon img { width: 100%; height: 100%; object-fit: cover; }
.onb-where { min-width: 0; }
.onb-where small { display: block; font-size: 11px; color: var(--muted); }
.onb-where b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onb-steps { margin-left: auto; display: flex; gap: 4px; flex: none; }
.onb-steps span { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 12px; color: #8391ac; transition: background .2s, color .2s; }
.onb-steps em { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 700 11px/1 inherit; font-style: normal; background: rgba(255, 255, 255, .06); }
.onb-steps em i { font-size: 10px; }
.onb-steps span.on { color: #fff; background: rgba(155, 187, 252, .12); }
.onb-steps span.on em { background: #9bbbfc; color: #121620; }
.onb-steps span.done em { background: rgba(155, 187, 252, .24); color: #e8efff; }
.onb-body { padding: 22px; }
.onb-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.onb-body > div > .help { margin: 6px 0 16px; }
.onb-prefix-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.onb-prefix { width: 96px !important; height: 54px; text-align: center; font: 700 24px/1 var(--mono) !important; border-radius: 14px !important; }
.onb-try { margin: 18px 0 8px !important; }
.onb-sample { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.onb-grid label { display: flex; flex-direction: column; gap: 6px; }
.onb-grid label b { font-size: 13px; }
.onb-ts { color: #c8d9fc; font-weight: 600; }
.onb-links { display: grid; gap: 8px; }
.onb-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; color: #dfe8fb; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: background .15s, box-shadow .15s; }
.onb-link:hover { background: rgba(155, 187, 252, .08); box-shadow: inset 0 0 0 1px rgba(155, 187, 252, .22); }
.onb-link .pi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.onb-link b { display: block; font-size: 14px; }
.onb-link div span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.onb-link > i:last-child { margin-left: auto; color: #8391ac; font-size: 12px; }
.onb-actions { display: flex; align-items: center; gap: 8px; padding: 14px 22px 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.onb-gap { flex: 1; }
.onb-body.swap { animation: rise .35s var(--ease) both; }
.hello-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .onb-top { flex-wrap: wrap; }
  .onb-steps { margin-left: 0; width: 100%; }
  .onb-steps span:not(.on) { padding: 4px; font-size: 0; gap: 0; }
  .onb-grid { grid-template-columns: 1fr; }
  .onb-actions { flex-wrap: wrap; }
}
