/* Crowe's dark-sky theme: one look for every page. Night, stars, crown gold. */

/* ---------- base layout and components ---------- */
:root {
  
  --n-1000: #0b0a0d; --n-950: #111015; --n-900: #16151b; --n-850: #1b1a21; --n-800: #1f1e26; --n-750: #24232b; --n-700: #2a2931;
  --n-600: #34333c;
  
  --v-0: #e3d9ff; --v-1: #c6b5f2; --v-2: #8f7cc4; --v-4: #b59cff; --v-5: #6a52b8; --v-6: #221a35;
  --text: #ffffff; --zinc-300: #d4d4d8; --zinc-400: #a1a1aa; --zinc-500: #71717a; --zinc-600: #52525b;
  --good: #4ade80; --bad: #f87171;
  --sans: "Satoshi", "Satoshi Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { background: var(--n-1000); color: var(--text); font: 500 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main.page { flex: 1; }
::selection { background: var(--v-5); color: #fff; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .86em; background: var(--n-850); border: 1px solid var(--n-750); border-radius: 7px;
  padding: 1px 6px; color: var(--v-1); }
h1, h2, h3 { margin: 0; }
.site { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--zinc-400); }
.hidden { display: none !important; }
.inline { display: inline; }
.accent { color: var(--v-4); }
header.top { position: relative; z-index: 100; height: 56px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px var(--sans); letter-spacing: -0.01em; border: 0; cursor: pointer; transition: background .15s, transform .15s, opacity .15s;
  white-space: nowrap; }
.btn.white { background: #fff; color: var(--n-1000); }
.btn.white:hover { background: var(--v-0); }
.btn.glass { background: rgba(255, 255, 255, .08); color: #fff; }
.btn.glass:hover { background: rgba(255, 255, 255, .13); }
.btn.violet { background: linear-gradient(180deg, rgba(106, 82, 184, .35), rgba(181, 156, 255, .28)); color: #fff;
  box-shadow: inset 0 .75px 0 rgba(181, 156, 255, .45), 0 0 2px .5px rgba(0, 0, 0, .5); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; }
.avatar { width: 26px; height: 26px; border-radius: 999px; }
.avatar.big { width: 56px; height: 56px; border-radius: 16px; }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: center;
  padding: 150px 0 90px; }
.hero h1 { font-size: 50px; line-height: 1.35; font-weight: 700; letter-spacing: -0.05em; max-width: 34rem; }
.hero p.lead { margin: 30px 0 0; max-width: 35rem; color: var(--zinc-300); font-size: 18px; line-height: 1.75; font-weight: 400; }
.hero .actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero .chips { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.chip { font: 500 14px var(--mono); letter-spacing: -0.02em; color: var(--zinc-400); padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
@keyframes scroll { to { transform: translateX(-50%); } }
.block { margin-top: 160px; }
.icon-tile { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 20px;
  background: rgba(181, 156, 255, .10); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .12), 0 4px 10px rgba(0, 0, 0, .3); }
.subs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.sub { border-radius: 20px; background: var(--n-950); box-shadow: inset 0 0 0 1px var(--n-850); padding: 28px; overflow: hidden; }
.sub h3 { color: var(--v-4); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.sub p { margin: 8px 0 22px; color: var(--zinc-400); font-size: 16px; line-height: 1.7; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin-top: 56px; }
.feat h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.feat h3 .em { font-size: 18px; }
.feat p { margin: 8px 0 0; color: var(--zinc-400); font-size: 15px; line-height: 1.7; }
footer.foot { margin-top: 96px; border-top: 1px solid var(--n-850); background: var(--n-950); padding: 56px 40px 56px; }
.foot .cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot .logo-row { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.foot .logo-row img { width: 36px; height: 36px; border-radius: 999px; }
.foot .about { color: var(--zinc-500); font-size: 14px; margin: 14px 0 0; max-width: 300px; line-height: 1.7; }
.foot h2 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: #fff; }
.foot .cols a { display: block; color: var(--zinc-400); font-size: 14px; padding: 4px 0; transition: color .15s; }
.foot .cols a:hover { color: #fff; }
.foot .base { max-width: var(--max); margin: 40px auto 0; color: var(--zinc-600); font-size: 13px; }
.dc { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 14px 16px; border-radius: 12px; background: #1e1f22;
  color: #dbdee1; font: 400 15px/1.4 system-ui, "Segoe UI", sans-serif; margin-top: 10px; }
.sub .dc, .mock .dc { margin: 0; background: transparent; padding: 0; }
.sub .dc + .dc, .mock .dc + .dc { margin-top: 16px; }
.dc-wrap { border-radius: 14px; background: #2b2d31; padding: 18px; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8); }
.dc:empty { display: none; }
.dc-label { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #949ba4; margin-bottom: 8px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; }
.dc-avatar.user { background: linear-gradient(135deg, #3b2a63, #6a52b8); }
.dc-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-name.user { color: var(--v-1); }
.dc-badge { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
/* Discord's check on a verified app (Crowe is one since 2026-12-01) */
.dc-badge.verified::before { content: ""; display: inline-block; flex: none; width: 8px; height: 7px; margin-right: 3px;
  background: #fff; clip-path: polygon(42.5% 100%, 0 64.4%, 12.5% 45.5%, 37.5% 66.8%, 83% 0, 100% 14%); }
.dc-time { font-size: 12px; color: #949ba4; }
.dc-text { margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.dc-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-embed { margin-top: 6px; display: flex; gap: 16px; max-width: 460px; background: #232428; border-left: 4px solid var(--v-4);
  border-radius: 4px; padding: 10px 14px; }
.dc-wrap .dc-embed { background: #232428; }
.dc-embed.bad { border-color: #f87171; }
.dc-embed b { color: #f2f3f5; }
.dc-desc { flex: 1; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.dc-desc .t { display: block; font-weight: 700; color: #f2f3f5; margin-bottom: 4px; font-size: 15px; }
.dc-desc .s { display: block; color: #949ba4; font-size: 12px; margin-top: 6px; }
.dc-thumb { width: 64px; height: 64px; border-radius: 6px; background: linear-gradient(135deg, #221a35, #b59cff); flex: none; }
.dc-buttons { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dc-btn { background: #4e5058; color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 4px; }
.page-head { padding: 96px 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.page-head h1 { margin-top: 22px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: center; gap: 14px; }
.page-head p { margin: 16px 0 0; color: var(--zinc-400); font-size: 15px; max-width: 560px; }
.page-head p a { color: var(--v-4); }
.rule { margin-top: 30px; height: 1px; background: var(--n-850); box-shadow: 0 -1px 1px rgba(0, 0, 0, .5); }
.searchbox { position: relative; display: flex; align-items: center; width: 400px; max-width: 100%; height: 44px; padding: 0 7px 0 14px;
  border-radius: 12px; background: var(--n-950); border: 1px solid var(--n-800); box-shadow: 0 0 1px 1px rgba(0, 0, 0, .5);
  transition: border-color .15s, box-shadow .15s; }
.searchbox:hover { border-color: var(--n-700); }
.searchbox:focus-within { border-color: var(--v-5); box-shadow: 0 0 0 3px rgba(106, 82, 184, .2); }
.searchbox svg { width: 16px; height: 16px; color: var(--zinc-500); flex: none; }
.searchbox input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: #fff;
  font: 500 15px var(--sans); padding-left: 10px; }
.searchbox input::placeholder { color: var(--zinc-600); }
.searchbox input::-webkit-search-cancel-button { display: none; }
kbd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--n-750); background: var(--n-850);
  font: 12px var(--mono); color: var(--zinc-400); }
.docs { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 48px; }
.side { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 32px 4px 32px 0; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side h4 { margin: 26px 8px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--zinc-500); text-transform: uppercase; }
.side h4:first-child { margin-top: 0; }
.side a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; border-radius: 12px; color: var(--zinc-400);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: background .15s, color .15s; }
.side a:hover { background: var(--n-950); color: #fff; }
.side a .t28 { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--n-850);
  box-shadow: inset 0 0 0 1px var(--n-750); font-size: 14px; flex: none; }
.side a .n { margin-left: auto; font: 12px var(--mono); color: var(--zinc-600); }
.cats { padding-top: 32px; }
.cat { margin-bottom: 48px; scroll-margin-top: 24px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cat-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cat-head .n { font: 13px var(--mono); color: var(--zinc-500); }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 18px; border-radius: 14px;
  background: var(--n-950); border: 1px solid var(--n-850); margin-bottom: 8px; transition: border-color .15s, background .15s; }
.cmd:hover { border-color: var(--n-700); background: var(--n-900); }
.cmd .name { font: 600 15px var(--mono); letter-spacing: -0.02em; color: #fff; }
.cmd .name .args { color: var(--zinc-500); font-weight: 400; }
.cmd .desc { grid-column: 1 / -1; margin: 0; color: var(--zinc-400); font-size: 14.5px; font-weight: 500; }
.cmd .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font: 500 12px var(--mono); padding: 3px 9px; border-radius: 999px; color: var(--zinc-400); background: var(--n-850);
  box-shadow: inset 0 0 0 1px var(--n-750); white-space: nowrap; }
.tag.perm { color: var(--v-1); background: var(--v-6); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .18); }
.cmd .meta { grid-column: 1 / -1; font-size: 13px; color: var(--zinc-500); }
.cmd .meta code { color: var(--zinc-400); }
.empty-search { padding: 60px 0; text-align: center; color: var(--zinc-500); }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-top: 32px; }
.server { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--n-950);
  border: 1px solid var(--n-850); transition: border-color .15s, background .15s; }
.server:hover { border-color: var(--v-5); background: var(--n-900); }
.server img, .server .noicon { width: 52px; height: 52px; border-radius: 999px; flex: none; }
.server .noicon { display: grid; place-items: center; background: var(--v-6); color: var(--v-1); font-weight: 700; }
.server b { font-weight: 700; letter-spacing: -0.01em; }
.server small { display: block; color: var(--zinc-500); font-size: 13px; }
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 32px; }
.tabs { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--zinc-400);
  font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.tabs a:hover { background: var(--n-950); color: #fff; }
.tabs a.on { color: #fff; background: linear-gradient(180deg, rgba(106, 82, 184, .15), rgba(181, 156, 255, .18));
  box-shadow: inset 0 .75px 0 rgba(181, 156, 255, .35), 0 0 2px .5px rgba(0, 0, 0, .5); }
.panel { border-radius: 22px; background: var(--n-950); border: 1px solid var(--n-850); padding: 30px 32px; min-width: 0; }
.panel > h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
form.settings { display: grid; gap: 22px; max-width: 700px; }
form.settings h3 { margin: 16px 0 -6px; font: 600 12px var(--mono); color: var(--v-4); text-transform: uppercase; letter-spacing: .08em; }
label { font-weight: 700; display: block; margin-bottom: 8px; letter-spacing: -0.01em; }
label small { font-weight: 500; color: var(--zinc-500); display: block; font-size: 13.5px; letter-spacing: 0; }
input[type=text], input:not([type]), input[type=number], select, textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--n-800);
  background: var(--n-1000); color: #fff; font: 500 15px var(--sans); box-shadow: 0 0 1px 1px rgba(0, 0, 0, .5);
  transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--n-700); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--v-5); box-shadow: 0 0 0 3px rgba(106, 82, 184, .2); }
input[type=number] { width: 120px; }
textarea { resize: vertical; line-height: 1.5; }
select[multiple] { padding: 6px; }
select option:checked { background: var(--v-6); }
input[disabled], select[disabled] { opacity: .4; cursor: not-allowed; }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--v-4); }
.rows { display: grid; gap: 8px; }
.row { display: flex; gap: 10px; }
.row > div, .row select { flex: 1; }
fieldset { border: 1px solid var(--n-800); border-radius: 16px; padding: 12px 16px 16px; margin: 0; }
legend { padding: 0 6px; font-weight: 700; color: var(--v-4); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 6px 14px; }
.check { display: flex; gap: 8px; align-items: center; font: 500 14px var(--mono); margin: 0; cursor: pointer; color: var(--zinc-300); }
.check input { accent-color: var(--v-4); width: 16px; height: 16px; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 20px; font-weight: 600; }
.flash.ok { color: var(--good); background: rgba(74, 222, 128, .07); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .25); }
/* after a save that kept the scroll spot, the Saved message floats at the bottom and fades away */
.flash.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); margin: 0; background: rgba(14, 9, 24, .96);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .35), 0 18px 50px -18px rgba(0, 0, 0, .9); transition: opacity .4s, transform .4s; white-space: nowrap; }
.flash.toast.gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .flash.toast { transition: none; } }
.flash.bad { color: var(--bad); background: rgba(248, 113, 113, .07); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .25); }
/* a problem is a full sentence: it wraps, and sits above the save bar (which stays up, nothing was saved) */
.flash.toast.bad { bottom: 100px; width: max-content; max-width: min(460px, calc(100vw - 32px)); white-space: normal; background: rgba(34, 12, 22, .98);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .35), 0 18px 50px -18px rgba(0, 0, 0, .9); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
.feature { background: var(--n-1000); border: 1px solid var(--n-850); border-radius: 14px; padding: 14px 16px; }
.feature b { display: block; font-weight: 700; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.panel section { margin-top: 44px; }
.panel section h2 { font-size: 18px; font-weight: 700; }
.panel section p { margin: 6px 0 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 56px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 22px; background: var(--n-950);
  box-shadow: inset 0 0 0 1px var(--n-850); }
.plan.featured { background: radial-gradient(400px 200px at 50% 0, rgba(106, 82, 184, .3), transparent 70%), var(--n-950);
  box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .25); }
.plan h3 { font-size: 22px; font-weight: 700; }
.plan p { margin: 0; color: var(--zinc-400); }
.plan .btn { align-self: flex-start; margin-top: 8px; }
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin-top: 48px; }
.qa h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.qa p { margin: 8px 0 0; color: var(--zinc-400); line-height: 1.7; }
.legal { max-width: 780px; padding-top: 40px; }
.legal h2:not(.legal-h) { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.legal h3, .legal h2.legal-h { margin: 34px 0 8px; font-size: 19px; font-weight: 700; }
.legal p, .legal li { color: var(--zinc-300); font-weight: 400; line-height: 1.75; }
.legal .date { color: var(--zinc-500); margin-top: 8px; }
.legal a { color: var(--v-4); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--n-850); vertical-align: top; }
.legal th { color: #fff; }
.legal .note { background: var(--n-950); border: 1px solid var(--n-850); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
@media (max-width: 1024px) {
.hero { grid-template-columns: 1fr; text-align: center; padding-top: 130px; }
.hero h1, .hero p.lead { margin-left: auto; margin-right: auto; }
.hero .actions, .hero .chips { justify-content: center; }
.subs { grid-template-columns: 1fr; }
.feats { grid-template-columns: repeat(2, 1fr); }
.docs, .dash { grid-template-columns: 1fr; }
.side { position: static; max-height: none; padding-bottom: 0; }
.side .group { display: flex; gap: 6px; overflow-x: auto; }
.side a { flex: none; }
.tabs { position: static; flex-direction: row; overflow-x: auto; }
.tabs a { flex: none; }
.foot .cols { grid-template-columns: 1fr 1fr; }
.qa { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.site { padding: 0 16px; }
.hero h1 { font-size: 38px; }
.block { margin-top: 110px; }
.sub { padding: 20px; }
.feats { grid-template-columns: 1fr; }
.panel { padding: 20px 16px; }
.row { flex-wrap: wrap; align-items: flex-end; }
.row input[type=number] { width: 100%; }
.row > input[type=number] { flex: 0 0 92px; width: 92px; min-width: 0; }
.row:has(> input[type=number]) { flex-wrap: nowrap; align-items: stretch; }
.dc { grid-template-columns: 32px 1fr; padding: 12px; }
.dc-avatar { width: 32px; height: 32px; }
.dc-thumb { display: none; }
.foot { padding: 48px 24px; }
.foot .cols { grid-template-columns: 1fr; }
.cmd { grid-template-columns: 1fr; }
.cmd .tags { justify-content: flex-start; }
}
.hero > *, .subs > *, .feats > *, .docs > *, .dash > *, .plans > *, .qa > * { min-width: 0; }
.dc > div { min-width: 0; }
.dc-embed { max-width: 100%; }
.side a.on { color: #fff; background: linear-gradient(180deg, rgba(106, 82, 184, .15), rgba(181, 156, 255, .18));
  box-shadow: inset 0 .75px 0 rgba(181, 156, 255, .35), 0 0 2px .5px rgba(0, 0, 0, .5); }
.side a.on .t28 { background: rgba(181, 156, 255, .14); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .25); }
.side .group { display: flex; flex-direction: column; gap: 2px; }
.cat-head h2 { line-height: 1.2; }
.cat-head .n { font: 13px var(--mono); color: var(--zinc-500); }
.cats { max-width: 50rem; }
.clist { border-radius: 18px; background: var(--n-950); border: 1px solid var(--n-850); overflow: hidden; }
.crow { scroll-margin-top: 90px; }
.crow + .crow { border-top: 1px solid var(--n-850); }
.crow summary { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; cursor: pointer; list-style: none;
  transition: background .12s; }
.crow summary::-webkit-details-marker { display: none; }
.crow summary:hover, .crow[open] summary { background: var(--n-900); }
.c-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.c-name { background: none; border: 0; padding: 0; font: 600 14.5px var(--mono); letter-spacing: -0.02em; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-name .args, .subs-list .args { color: var(--zinc-500); font-weight: 400; }
.c-desc { min-width: 0; color: var(--zinc-500); font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-side { flex: none; display: flex; align-items: center; gap: 10px; }
.c-meta { font: 500 12px var(--mono); color: var(--zinc-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--zinc-500); transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--n-800); color: #fff; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn.done { color: var(--good); }
.chev { flex: none; width: 16px; height: 16px; color: var(--zinc-600); transition: transform .15s; }
.crow[open] .chev { transform: rotate(90deg); color: var(--v-4); }
.c-more { padding: 2px 18px 18px; background: var(--n-900); }
.d-desc { margin: 0; padding-bottom: 12px; color: var(--zinc-400); font-size: 14px; line-height: 1.55; white-space: pre-line;
  overflow-wrap: anywhere; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; font-size: 13px; }
.facts dt { font-weight: 700; color: var(--zinc-500); line-height: 24px; }
.facts dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 24px; color: var(--zinc-300); }
.facts dd code { font-size: 13px; }
.facts .chip { font-size: 12px; padding: 3px 9px; }
.subs-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: fit-content(58%) minmax(0, 1fr); gap: 6px 18px; }
.subs-list li { display: contents; color: var(--zinc-400); }
.subs-list li > span { color: var(--zinc-400); }
.subs-list code { background: none; border: 0; padding: 0; color: #fff; font-size: 13px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.subs-list code .m-pfx, .subs-list code .m-sl { color: inherit; }
.subs-list .crumb { color: var(--zinc-600); }
@media (max-width: 1024px) {
.side { position: sticky; top: 0; z-index: 15; background: rgba(11, 10, 13, .92); backdrop-filter: blur(12px); padding: 12px 24px;
    margin: 0 -24px; display: flex; gap: 8px; overflow-x: auto; }
.side .group { display: contents; }
.side a { height: 40px; padding: 0 12px 0 6px; background: var(--n-950); box-shadow: inset 0 0 0 1px var(--n-850); white-space: nowrap; flex: none; }
.side a .n { display: none; }
.cats { max-width: none; }
}
@media (max-width: 640px) {
.side { margin: 0 -16px; padding: 12px 16px; }
.c-meta { display: none; }
.crow summary { padding: 12px 10px 12px 14px; gap: 8px; }
.facts { grid-template-columns: 1fr; gap: 4px; }
.facts dd { margin-bottom: 8px; }
.subs-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.subs-list li > span { margin-bottom: 8px; }
}
.usage-row { display: flex; align-items: center; gap: 10px; }
.usage { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 42px;
  padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--n-1000); border: 1px solid var(--n-800); }
.u-cmd { background: none; border: 0; padding: 0; margin-right: 4px; font: 600 14px var(--mono); color: #fff; }
.arg { font: 500 12.5px var(--mono); color: var(--v-1); padding: 2px 8px; border-radius: 7px; background: var(--v-6);
  box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .22); }
.arg.opt { background: transparent; color: var(--zinc-400); box-shadow: none; outline: 1px dashed var(--n-600); outline-offset: -1px; }
.usage .icon-btn { margin-left: auto; }
.round-btn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--n-800); color: var(--zinc-400); transition: background .12s, color .12s; }
.round-btn:hover { background: var(--n-700); color: #fff; }
.round-btn svg { width: 15px; height: 15px; }
.round-btn.done { color: var(--good); }
.c-more { display: grid; gap: 14px; padding: 4px 18px 18px; }
.c-more .d-desc { padding-bottom: 0; }
.facts { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--n-950); }
.facts dt { font-weight: 600; }
.tgl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tgl-top .searchbox { width: 320px; }
.tgl-wrap { display: grid; gap: 10px; }
.tgl-cat { border-radius: 16px; background: var(--n-1000); border: 1px solid var(--n-850); overflow: hidden; }
.tgl-cat summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.tgl-cat summary::-webkit-details-marker { display: none; }
.tgl-cat summary:hover { background: var(--n-900); }
.tgl-cat .t28 { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--n-850);
  box-shadow: inset 0 0 0 1px var(--n-750); font-size: 14px; }
.tgl-count { font: 500 12px var(--mono); color: var(--zinc-500); }
.tgl-bulk { margin-left: auto; display: flex; gap: 4px; }
.link-btn { border: 0; background: none; color: var(--zinc-500); font: 600 13px var(--sans); padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.link-btn:hover { color: #fff; background: var(--n-800); }
.tgl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--n-850); }
.tgl { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0; cursor: pointer; font-weight: 500;
  box-shadow: 0 0 0 .5px var(--n-850); }
.tgl:hover { background: var(--n-900); }
.tgl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tgl-text code { background: none; border: 0; padding: 0; color: #fff; font-size: 13.5px; }
.tgl-text small { color: var(--zinc-500); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgl input { position: absolute; opacity: 0; pointer-events: none; }
.sw { flex: none; position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--n-700); transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--zinc-400);
  transition: transform .15s, background .15s; }
.tgl input:checked + .sw { background: var(--v-5); }
.tgl input:checked + .sw::after { transform: translateX(16px); background: #fff; }
.tgl input:focus-visible + .sw { box-shadow: 0 0 0 3px rgba(106, 82, 184, .35); }
.tgl:has(input:not(:checked)) code { color: var(--zinc-500); text-decoration: line-through; }
@media (max-width: 640px) {
.tgl-top .searchbox { width: 100%; }
.tgl-bulk .link-btn { padding: 4px 6px; }
}
.dash { position: relative; }
.pane .settings { display: grid; gap: 22px; max-width: 700px; }
.pane .settings h3 { margin: 16px 0 -6px; font: 600 12px var(--mono); color: var(--v-4); text-transform: uppercase; letter-spacing: .08em; }
.pane > h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
.tabs a { position: relative; }
/* one status light everywhere on the site: 8px, round, soft glow (sidebar, previews, feature list, deploy status) */
:root { --dot: 8px; }
.tabs a.dirty::after, .tabs a.error::after { content: ""; position: absolute; right: 12px; top: 50%; width: var(--dot); height: var(--dot); margin-top: calc(var(--dot) / -2);
  border-radius: 50%; background: var(--v-4); box-shadow: 0 0 8px var(--v-4); }
.tabs a.error::after { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
/* the save bar is not on the page at all until a setting changes; then it slides up into place */
.savebar { position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translate(-50%, 0); display: none; align-items: center; gap: 14px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(20, 19, 25, .95); backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(181, 156, 255, .2);
  max-width: calc(100vw - 32px); }
.savebar.show { display: flex; animation: savebar-in .25s cubic-bezier(.2, .8, .2, 1); transition: bottom .2s ease-out; }
@keyframes savebar-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .savebar.show { animation: none; } }
.savebar-text { font-size: 14px; font-weight: 600; color: var(--zinc-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
.savebar { bottom: 12px; gap: 8px; padding-left: 14px; }
.savebar-text { font-size: 12.5px; }
}
.clist { display: grid; gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
.crow { background: var(--n-950); border: 1px solid var(--n-850); border-radius: 18px; overflow: hidden;
  transition: border-color .15s, background .15s; }
.crow + .crow { border-top: 1px solid var(--n-850); }
.crow:hover { border-color: var(--n-750); }
.crow summary { min-height: 54px; padding: 14px 18px 14px 22px; transition: background .15s; }
.crow summary:hover { background: var(--n-900); }
.crow[open] { background: var(--n-900); border-color: var(--n-750); }
.crow[open] summary { background: none; border-bottom: 1px solid var(--n-800); }
.c-name { font-size: 14px; }
.c-more { background: none; gap: 12px; padding: 14px 22px 20px; }
.d-desc { font-size: 13.5px; color: var(--zinc-400); }
.usage { border-radius: 14px; }
.facts { padding: 0; background: none; border-radius: 0; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 16px; }
.facts dt { font-weight: 500; color: var(--zinc-500); }
.tag.perm.hot { color: #fbbf24; background: rgba(251, 191, 36, .1); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .28); }
@media (max-width: 640px) {
.crow summary { padding: 12px 14px 12px 16px; }
.c-more { padding: 12px 16px 16px; }
.clist { gap: 10px; }
}
.facts .tag.perm, .facts .tag.perm.hot { font: 500 12.5px var(--mono); padding: 2px 8px; border-radius: 7px; background: transparent;
  color: var(--zinc-300); box-shadow: none; outline: 1px dashed var(--n-600); outline-offset: -1px; }
.usage .arg, .usage .arg.opt, .facts .tag.perm, .facts .tag.perm.hot { font: 500 12.5px var(--mono); padding: 2px 8px; border-radius: 7px;
  background: var(--n-850); color: var(--zinc-300); outline: none; box-shadow: inset 0 0 0 1px var(--n-700); }
.usage .arg.opt { color: var(--zinc-500); background: var(--n-900); box-shadow: inset 0 0 0 1px var(--n-750); }
.ico { width: 18px; height: 18px; flex: none; }
.rail { position: fixed; z-index: 100; top: 12px; bottom: 12px; left: 12px; width: 248px; display: flex; flex-direction: column;
  gap: 18px; padding: 16px 12px 12px; border-radius: 22px; background: rgba(20, 19, 25, .9); backdrop-filter: blur(40px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .06); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rl { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--zinc-400); cursor: pointer; list-style: none; transition: background .15s, color .15s; }
.rl::-webkit-details-marker { display: none; }
.rl:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.rl.on { color: #fff; background: rgba(255, 255, 255, .06); }
.rl .ico { color: var(--zinc-500); transition: color .15s; }
.rl:hover .ico, .rl.on .ico { color: var(--v-4); }
.rl-chev { width: 14px; height: 14px; margin-left: auto; color: var(--zinc-600); transition: transform .2s; }
.rl-group[open] .rl-chev { transform: rotate(90deg); }
.rl-sub { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 6px 19px; padding-left: 10px; border-left: 1px solid var(--n-750); }
.rl-sub a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 13.5px;
  font-weight: 500; color: var(--zinc-500); transition: background .15s, color .15s; }
.rl-sub a .ico { width: 16px; height: 16px; }
.rl-sub a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.rl-sub a.on { color: #fff; background: rgba(181, 156, 255, .1); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .16); }
.rl-sub a.on .ico { color: var(--v-4); }
.rl-sub .n { margin-left: auto; font: 11.5px var(--mono); color: var(--zinc-600); }
.shell { margin-left: 272px; min-height: 100vh; display: flex; flex-direction: column; }
.shell > main.page { flex: 1; }
.icon-tile .ico { width: 22px; height: 22px; color: var(--v-4); }
.hero { padding-top: 90px; }
.page-head { padding-top: 56px; }
.cats { max-width: 52rem; }
@media (max-width: 1240px) {
.hero { grid-template-columns: 1fr 360px; }
}
@media (max-width: 900px) {
.shell { margin-left: 0; }
.rail { transform: translateX(calc(-100% - 24px)); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.rail.open { transform: none; }
/* menu open: the page itself fades back (iPhone Safari never draws a pinned overlay behind its address bar, only the page,
   so fading the page is the only way the strip behind the bar dims too). The clear layer on top catches the tap that closes it */
.shell, .sky { transition: opacity .2s, filter .2s; }
body.rail-open .shell { opacity: .45; }
body.rail-open .sky { filter: brightness(.45); }
body.rail-open::after { content: ""; position: fixed; inset: 0; z-index: 95; }
body.rail-open .topbar { z-index: 96; }
.hero { grid-template-columns: 1fr; padding-top: 48px; }
.page-head { padding-top: 36px; }
}
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 20px; background: var(--n-950); border: 1px solid var(--n-850); }
.perk .icon-tile { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.perk .icon-tile .ico { width: 20px; height: 20px; }
.perk h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.perk p { margin: 6px 0 0; color: var(--zinc-400); font-size: 14.5px; line-height: 1.65; }
.plan .chip { align-self: flex-start; }
@media (max-width: 1100px) {
.perks { grid-template-columns: 1fr; }
}
.tabs a { height: 40px; padding: 0 10px; font-size: 14.5px; font-weight: 600; }
.tabs a .ico { color: var(--zinc-500); transition: color .15s; }
.tabs a:hover { background: rgba(255, 255, 255, .04); }
.tabs a.on { background: rgba(255, 255, 255, .06); box-shadow: none; }
.tabs a:hover .ico, .tabs a.on .ico { color: var(--v-4); }
.panel { padding: 28px 30px; border-radius: 20px; }
.pane > h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.pane > h2 .ico { width: 22px; height: 22px; color: var(--v-4); }
.pane .settings { gap: 0; max-width: 680px; }
.pane .settings > div { padding: 18px 0; border-top: 1px solid var(--n-850); }
.pane .settings > div:first-child { border-top: 0; padding-top: 4px; }
.pane .settings h3 { margin: 26px 0 4px; }
label { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
label small { font-size: 13px; margin-top: 2px; line-height: 1.5; }
input[type=text], input:not([type]), input[type=number], select, textarea { background: var(--n-1000); border-color: var(--n-800); }
.switch { align-items: center; gap: 14px; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 38px; height: 22px; margin: 0;
  border-radius: 999px; background: var(--n-750); box-shadow: inset 0 0 0 1px var(--n-700); cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px;
  background: var(--zinc-400); transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .15s; }
.switch input:checked { background: var(--v-5); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .35); }
.switch input:checked::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible { outline: 2px solid var(--v-4); outline-offset: 2px; }
.switch > span { font-weight: 600; }
.switch small { font-weight: 500; }
.features { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.feature { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--n-1000); }
.feature b { display: inline; font-weight: 600; font-size: 14px; color: var(--zinc-400); }
.feature span { margin-left: auto; font: 500 11.5px var(--mono); color: var(--zinc-600); }
/* on = green light, off = red light, both with the same soft pulse as the preview labels */
.feature .dot { --ring: 248, 113, 113; width: var(--dot); height: var(--dot); border-radius: 999px; background: rgb(var(--ring)); flex: none;
  box-shadow: 0 0 0 0 rgba(var(--ring), .6); animation: dot-pulse 1.8s ease-out infinite; }
.feature.on .dot { --ring: 74, 222, 128; }
@keyframes dot-pulse { 70% { box-shadow: 0 0 0 7px rgba(var(--ring), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--ring), 0); } }
@media (prefers-reduced-motion: reduce) { .feature .dot { animation: none; box-shadow: 0 0 8px rgba(var(--ring), .5); } }
.feature.on b { color: #fff; }
.feature.on span { color: var(--good); }
.server { border-radius: 16px; padding: 14px 16px; }
.server img, .server .noicon { width: 44px; height: 44px; border-radius: 12px; }
.server:hover { border-color: var(--n-700); }
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--n-950); box-shadow: inset 0 0 0 1px var(--n-800); }
.mode button { width: 38px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--zinc-500); cursor: pointer;
  font: 600 15px var(--mono); transition: background .15s, color .15s; }
.mode button:hover { color: #fff; }
.mode button.on { background: var(--n-800); color: #fff; box-shadow: inset 0 0 0 1px var(--n-700); }
.m-sl { display: none; }
.slash-mode .m-pfx { display: none; }
.slash-mode .m-sl { display: inline; }
.u-args.m-pfx, .slash-mode .u-args.m-sl { display: contents; }
.u-args.m-sl, .slash-mode .u-args.m-pfx { display: none; }
.dc-wrap { padding: 0; overflow: hidden; border-radius: 12px; background: #313338; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04);
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: left; }
.dc-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-bottom: 1px solid #26272b;
  box-shadow: 0 1px 0 rgba(4, 4, 5, .2); color: #f2f3f5; font-size: 16px; }
.dc-top svg { width: 22px; height: 22px; color: #80848e; }
.dc-top b { font-weight: 600; }
.dc-log { padding: 16px 0 8px; }
.dc-wrap .dc { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding: 2px 16px 2px 16px; margin-top: 17px;
  border-radius: 0; background: transparent; }
.dc-wrap .dc:first-child { margin-top: 0; }
.dc-wrap .dc-avatar { width: 40px; height: 40px; border-radius: 50%; }
.dc-wrap .dc-head { gap: 0; align-items: baseline; }
.dc-wrap .dc-name { font-size: 16px; font-weight: 500; line-height: 1.375; color: #f2f3f5; }
.dc-wrap .dc-badge { align-self: center; display: inline-flex; align-items: center; height: 15px; margin-left: 4px; padding: 0 4.5px;
  border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 15px; }
.dc-wrap .dc-time { margin-left: 8px; font-size: 12px; font-weight: 500; color: #949ba4; }
.dc-wrap .dc-text { margin-top: 0; font-size: 16px; line-height: 1.375; color: #dbdee1; }
.dc-wrap .dc-mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 500; }
.dc-reply { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 4px; height: 22px; margin-bottom: 4px;
  padding-left: 56px; font-size: 14px; color: #b5bac1; white-space: nowrap; overflow: hidden; }
.dc-spine { position: absolute; left: 36px; top: 9px; width: 33px; height: 13px; border-left: 2px solid #4e5058; border-top: 2px solid #4e5058;
  border-top-left-radius: 6px; }
.dc-mini { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-right: 2px; }
.dc-rname { font-weight: 500; }
.dc-rtext { overflow: hidden; text-overflow: ellipsis; color: #b5bac1; }
.dc-wrap .dc.has-reply > .dc-avatar { margin-top: 0; }
.dc-wrap .dc-embed { margin-top: 4px; gap: 16px; max-width: 432px; padding: 8px 16px 16px 12px; border-radius: 4px; background: #2b2d31;
  border-left: 4px solid var(--v-4); }
.dc-wrap .dc-embed.bad { border-color: #f23f43; }
.dc-wrap .dc-desc { font-size: 14px; line-height: 1.375; color: #dbdee1; }
.dc-wrap .dc-desc .t { margin: 8px 0 8px; font-size: 16px; font-weight: 600; color: #f2f3f5; }
.dc-wrap .dc-desc b { color: #f2f3f5; font-weight: 600; }
.dc-wrap .dc-desc .s { margin-top: 8px; font-size: 12px; color: #949ba4; }
.dc-wrap .dc-thumb { width: 80px; height: 80px; margin-top: 8px; border-radius: 3px; }
.dc-wrap .dc-buttons { gap: 8px; margin-top: 4px; padding-top: 4px; }
.dc-wrap .dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; height: 32px; padding: 2px 16px;
  border-radius: 8px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.dc-input { margin: 14px 16px 16px; height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 8px; background: #383a40;
  color: #6d6f78; font-size: 15px; }
@media (max-width: 640px) {
.dc-wrap .dc { grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; padding: 2px 12px; }
.dc-wrap .dc-avatar { width: 32px; height: 32px; }
.dc-reply { padding-left: 44px; }
.dc-spine { left: 28px; width: 28px; }
.dc-wrap .dc-name, .dc-wrap .dc-text { font-size: 15px; }
}
.tgl-cat .t28 .ico { width: 16px; height: 16px; color: var(--v-4); }
.dc-wrap .dc-name.who-jules, .dc-rname.who-jules { color: #f47fff; }
.dc-avatar.who-jules, .dc-mini.who-jules { background: linear-gradient(135deg, #7a3b8f, #f47fff); }
.dc-wrap .dc-name.who-kai, .dc-rname.who-kai { color: #5bc0eb; }
.dc-avatar.who-kai, .dc-mini.who-kai { background: linear-gradient(135deg, #1d4e6b, #5bc0eb); }
.dc-wrap .dc-name.who-mira, .dc-rname.who-mira { color: #f4a261; }
.dc-avatar.who-mira, .dc-mini.who-mira { background: linear-gradient(135deg, #7a4a1f, #f4a261); }
.dc-wrap .dc-name.who-nova, .dc-rname.who-nova { color: #c6b5f2; }
.dc-avatar.who-nova, .dc-mini.who-nova { background: linear-gradient(135deg, #3b2a63, #b59cff); }
.dc-wrap .dc-name.who-anon, .dc-rname.who-anon { color: #f2f3f5; }
.dc-avatar.who-anon, .dc-mini.who-anon { background: linear-gradient(135deg, #3b2a63, #6a52b8); }
.dc-wrap .dc-body { min-width: 0; }
.dc-wrap img.dc-avatar, .dc-wrap img.dc-mini { object-fit: cover; background: #232428; }
.dc-wrap .dc-name.who-rex, .dc-rname.who-rex { color: #f87171; }
.dc-wrap .dc-input { gap: 16px; padding: 0 16px; color: #6d6f78; font-size: 16px; }
.dc-plus { flex: none; width: 24px; height: 24px; color: #b5bac1; }
.dc-ph { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dc-tools { display: flex; gap: 14px; flex: none; }
.dc-tools svg { width: 22px; height: 22px; fill: none; stroke: #b5bac1; stroke-width: 1.7; stroke-linejoin: round; }
.dc-wrap .de { display: flex; gap: 16px; max-width: 432px; margin-top: 4px; padding: 8px 16px 16px 12px; border-radius: 4px;
  background: #2b2d31; border-left: 4px solid #8b5cf6; }
.dc-wrap .de.c-good { border-color: #4ade80; }
.dc-wrap .de.c-warn { border-color: #fbbf24; }
.dc-wrap .de.c-bad { border-color: #f87171; }
.dc-wrap .de.c-cover { border-color: #4b1d70; }
.de-main { flex: 1; min-width: 0; }
.de-author { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #f2f3f5; font-size: 14px; font-weight: 600; }
.de-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.de-title { margin-top: 8px; color: #f2f3f5; font-size: 16px; font-weight: 600; line-height: 1.375; }
.de-desc { margin-top: 8px; color: #dbdee1; font-size: 14px; line-height: 1.375; white-space: pre-line; word-break: break-word; }
.de-desc b, .de-fval b, .dv2 b { color: #f2f3f5; font-weight: 600; }
.de-fields { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.de-fname { color: #f2f3f5; font-size: 14px; font-weight: 600; line-height: 1.375; margin-bottom: 2px; }
.de-fval { color: #dbdee1; font-size: 14px; line-height: 1.375; white-space: pre-line; word-break: break-word; }
.de-image { display: block; width: 100%; max-width: 400px; height: auto; margin-top: 16px; border-radius: 4px; }  /* height from its width/height (keeps its space while loading) */
.de-footer { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #dbdee1; font-size: 12px; font-weight: 500; }
.de-footer img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.de-thumb { flex: none; width: 80px; height: 80px; margin-top: 8px; border-radius: 3px; object-fit: cover; }
.md-sub { color: #949ba4; font-size: 12px; line-height: 1.33; }
.md-quote { display: block; padding: 0 8px 0 12px; border-left: 4px solid #4e5058; border-radius: 4px; }
.md-code { padding: 0 .2em; border-radius: 4px; background: #1e1f22; color: #dbdee1; font: .85em/1.2 Consolas, "Andale Mono", monospace; }
.md-sub .md-code { font-size: 11px; }
.md-spoiler { padding: 0 2px; border-radius: 3px; background: #1e1f22; color: transparent; }
.md-link { color: #00a8fc; }
.dc-wrap .dc-chan { white-space: nowrap; }
.dv2 { max-width: 440px; margin-top: 4px; padding: 16px; border-radius: 8px; background: #2b2d31; border: 1px solid #383a40;
  border-left: 4px solid #8b5cf6; color: #dbdee1; font-size: 15px; line-height: 1.375; }
.dv2-bad { border-left-color: #f87171; }
.dv2-good { border-left-color: #2ecc71; }
.dv2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dv2-h { color: #f2f3f5; font-size: 20px; font-weight: 700; line-height: 1.375; margin-bottom: 2px; }
.dv2-p { white-space: pre-line; }
.dv2-icon { flex: none; width: 76px; height: 76px; border-radius: 8px; object-fit: cover; }
.dv2-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dv2-row + .dv2-row, .dv2-text + .dv2-row, .dv2-row + .dv2-text { margin-top: 10px; }
.dv2-sep { height: 1px; margin: 16px 0; background: #3f4147; }
.dv2-text { white-space: pre-line; }
.dv2-text + .dc-buttons { margin-top: 6px; padding-top: 0; }
.dv2 .dc-buttons + .dv2-text { margin-top: 12px; }
.dv2-note { display: block; margin-top: 16px; }
.dv2-list + .dc-buttons { margin-top: 14px; }
.dv2-list ~ .dc-buttons .dc-btn { min-width: 46px; justify-content: center; }
@media (max-width: 480px) { .dv2-list ~ .dc-buttons { flex-wrap: nowrap; } .dv2-list ~ .dc-buttons .dc-btn { min-width: 0; flex: 1 1 0; padding: 2px 4px; } }
.dc-ext { width: 14px; height: 14px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
@media (max-width: 560px) {
.de-thumb { width: 64px; height: 64px; }
.dv2-icon { width: 56px; height: 56px; }
.dc-tools svg:nth-child(-n+2) { display: none; }
.dv2 .dc-btn { padding: 2px 10px; }
}
.dv2 .dc-buttons { gap: 6px; }
.dv2 .dc-btn { padding: 2px 12px; }
.dc-emoji { width: 22px; height: 22px; vertical-align: -6px; object-fit: contain; }
.dc-btn .dc-emoji { width: 18px; height: 18px; vertical-align: middle; }
.dc-btn.dc-primary { background: #5865f2; }
.dc-btn.dc-off { opacity: .5; }
.dc-wrap .dc-buttons.dc-stars { flex-wrap: nowrap; }  /* the rating DM's five stars stay in one row, like Discord */
.dc-wrap .dc-stars .dc-btn { min-width: 0; flex: 0 1 48px; padding: 2px 6px; }
.dv2-row > .dc-btn { flex: none; white-space: nowrap; }  /* a button beside a line of text stays on one line, like Discord */
.dc-wrap .de.c-blue { border-color: #3498db; }
.tf-wrap { grid-column: 1 / -1; }
.tf-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.tf-top .tf-note { margin: 0; }
.tf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) {
.tf-grid { grid-template-columns: 1fr; }
}
.tf-fields { display: flex; flex-direction: column; gap: 10px; }
.tf-tool { background: transparent; border: 1px solid rgba(255,255,255,.12); color: inherit; border-radius: 6px; width: 28px; height: 26px; cursor: pointer; }
.tf-tool:disabled { opacity: .35; cursor: default; }
.tf-req { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.tf-add { margin-top: 10px; background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px dashed rgba(139,92,246,.5); border-radius: 10px; padding: 10px 14px; width: 100%; cursor: pointer; font: inherit; }
.tf-add:hover:not(:disabled) { background: rgba(139,92,246,.24); }
.tf-add:disabled { opacity: .5; cursor: default; }
.tc-emoji { width: 64px; text-align: center; }
.tf-dot { width: 14px; height: 14px; border: 2px solid #80848e; flex: none; }
.tf-dot { border-radius: 50%; }
.tc-icon { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); pointer-events: none; }
.pane[data-pane="tickets"] .settings { max-width: 980px; }
.pane .settings > .tk-card { padding: 18px 20px 6px; margin-bottom: 14px; border: 1px solid var(--n-850); border-radius: 16px;
  background: rgba(255, 255, 255, .015); }
.pane .settings > .tk-card:first-child { padding-top: 18px; border-top: 1px solid var(--n-850); }
.tk-card-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; }
.tk-card-head .ico { width: 20px; height: 20px; color: var(--v-4); flex: none; margin-top: 2px; }
.pane .settings .tk-card-head h3 { margin: 0; }
.tk-card-head small { display: block; color: var(--n-400, #9a9aa5); margin-top: 4px; }
.tk-card-body > div { padding: 14px 0; border-top: 1px solid var(--n-850); }
.tk-card-body > .tf-wrap, .tk-card-body > #tc-icons { border-top: 0; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tk-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tk-chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--n-850); background: rgba(255, 255, 255, .03);
  font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.tk-chip span:hover { border-color: rgba(139, 92, 246, .5); }
.tk-chip input:checked + span { background: rgba(139, 92, 246, .2); border-color: rgba(139, 92, 246, .7); color: #e9e3ff; }
.tk-chip input:focus-visible + span { outline: 2px solid var(--v-4); outline-offset: 2px; }
.tf-plan { margin: 0 0 4px; }
.dm-modal { max-width: 440px; background: #313338; border-radius: 12px; overflow: hidden; color: #dbdee1;
  font: 14px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.dm-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 16px 12px; }
.dm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dm-avatar { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.dm-who .dm-title { display: block; min-width: 0; margin: 0; font-size: 20px; font-weight: 600; line-height: 24px; color: #f2f3f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-close { color: #b5bac1; display: inline-flex; padding: 2px; }
.dm-ico { width: 20px; height: 20px; flex: none; }
.dm-body { padding: 4px 16px 16px; }
.dm-q { margin-bottom: 20px; }
.dm-label { font-size: 16px; font-weight: 600; color: #f2f3f5; line-height: 20px; word-break: break-word; }
.dm-star { color: #f23f43; }
.dm-hint { color: #b5bac1; font-size: 14px; margin-top: 2px; word-break: break-word; }
.dm-input { margin-top: 8px; background: #1e1f22; border: 1px solid #3f4147; border-radius: 8px; height: 44px; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; color: #949ba4; }
.dm-long { height: 92px; }
.dm-select .dm-ico { color: #b5bac1; }
.dm-file { margin-top: 8px; border: 1px dashed #4e5058; border-radius: 8px; padding: 18px 12px; display: flex; align-items: center;
  justify-content: center; gap: 12px; color: #b5bac1; }
.dm-file b { display: block; color: #f2f3f5; font-weight: 500; }
.dm-file small { color: #949ba4; font-size: 12px; }
.dm-up { width: 26px; height: 26px; }
.dm-choices { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.dm-choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #2b2d31; border: 1px solid #3f4147;
  border-radius: 8px; padding: 11px 12px; color: #dbdee1; word-break: break-word; }
.dm-radio, .dm-check { width: 20px; height: 20px; border: 2px solid #b5bac1; flex: none; }
.dm-radio { border-radius: 50%; }
.dm-check { border-radius: 5px; }
.dm-warn { margin: 0; color: #949ba4; font-size: 12px; }
.dm-foot { background: #2b2d31; padding: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.dm-cancel { color: #fff; font-weight: 500; padding: 0 16px; height: 38px; display: inline-flex; align-items: center; }
.dm-submit { background: #5865f2; color: #fff; font-weight: 500; border-radius: 8px; padding: 0 16px; height: 38px; min-width: 96px;
  display: inline-flex; align-items: center; justify-content: center; }
.tkp-wrap { padding: 14px 0 6px; }
.tkp-wrap .dc-log { padding: 16px 0 20px; }
.tkp-answer { margin-top: 12px; }
.tkp-answer .md-quote { margin-top: 2px; }
.dc-btn.dc-danger { background: #da373c; }
.tf-grid .dm-modal { margin-top: 0; }
.pp-fields > .pp-where { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pp-where > div { min-width: 0; }
@media (max-width: 640px) {
.pp-fields > .pp-where { grid-template-columns: 1fr; }
}
.pp-preview .dc-label { display: block; margin-bottom: 10px; }
.pp-preview .dc-log { padding: 16px 0 20px; }
.dc-btn.dc-success { background: #248046; }
.pp-fields > .pp-blocks { padding-bottom: 0; }
.pp-block { position: relative; margin-top: 8px; }
.pp-block textarea { padding-right: 44px; }
.pp-block .tf-tool { position: absolute; top: 8px; right: 8px; }
.pp-fields > .pp-blocks + .tf-add { margin: 6px 0 14px; }
.site:has(.dash) { max-width: 1480px; }
.pane[data-pane="tickets"] .settings { max-width: none; }
.tk-card-body > .pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start;
  padding: 0; border-top: 0; }
.pp-fields > div { padding: 14px 0; border-top: 1px solid var(--n-850); }
.pp-fields > div:first-child { border-top: 0; padding-top: 0; }
.pp-preview { position: sticky; top: 20px; }
@media (max-width: 1100px) {
.tk-card-body > .pp-grid { grid-template-columns: 1fr; }
.pp-preview { position: static; }
}
.pane .settings > .tk-card { padding: 16px 18px 4px; margin-bottom: 12px; }
.tk-card-head { padding-bottom: 6px; align-items: center; }
.tk-card-head small { margin-top: 1px; }
.tk-card-body > div { padding: 12px 0; }
.tk-card-body label small { display: inline; margin-left: 8px; }
.tk-card-body label small::before { content: "· "; }
/* in side-by-side fields there's no room for the hint beside the name: it goes on its own line (fields still line up at the bottom) */
.tk-card-body :is(.pp-where, .tk-row2, .tk-row3) label small { display: block; margin: 2px 0 0; }
.tk-card-body :is(.pp-where, .tk-row2, .tk-row3) label small::before { content: none; }
.tk-card-body .tk-row3 { display: grid; gap: 14px; }
.tk-row3 { grid-template-columns: 1fr 1fr 1fr; }
.tk-row3 > div { min-width: 0; padding: 0; border: 0; }
@media (max-width: 760px) {
.tk-row3 { grid-template-columns: 1fr; }
}
.tc-list { gap: 8px; }
.tc-row { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--n-850); border-radius: 12px; background: rgba(255,255,255,.015); }
.tc-row { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.tc-row:hover { border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .05); }
.tc-pic { width: 22px; height: 22px; flex: none; opacity: .9; }
.tc-words { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tc-words b { font-weight: 600; color: #f2f3f5; }
.tc-words span { font-size: 13px; color: var(--zinc-400, #a1a1aa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-btn { flex: none; background: transparent; color: inherit; border: 1px solid var(--n-800); border-radius: 8px; padding: 5px 12px;
  font: 500 13px/1.2 inherit; font-family: inherit; cursor: pointer; }
.tc-btn:hover:not(:disabled) { border-color: rgba(139, 92, 246, .6); }
.tc-btn:disabled { opacity: .35; cursor: default; }
.tc-del:hover:not(:disabled) { border-color: rgba(242, 63, 67, .6); color: #fca5a5; }
.tc-row.tc-open { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; cursor: default; border-color: rgba(139, 92, 246, .55);
  background: rgba(139, 92, 246, .05); }
.tc-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.tc-field > span { font-size: 12px; font-weight: 600; color: var(--zinc-400, #a1a1aa); }
.tc-two { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.tc-two .tc-emoji { width: 100%; text-align: center; }
.tc-foot { display: flex; align-items: center; gap: 6px; }
.tc-done { margin-left: auto; background: #fff; color: #0b0a0d; border-color: #fff; }
.tc-done:hover:not(:disabled) { border-color: #fff; opacity: .9; }
.tc-head { display: flex; align-items: center; gap: 10px; margin: -4px -4px 2px; padding: 4px; border-radius: 8px; cursor: pointer; }
.tc-head:hover { background: rgba(255, 255, 255, .04); }
.tc-head b { flex: 1; min-width: 0; font-weight: 600; color: #f2f3f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-headpic { display: inline-flex; }
.tc-shut { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--zinc-400, #a1a1aa); }
.tc-chev { width: 7px; height: 7px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-top: 3px; }
.tc-pic.tc-raw { width: auto; height: auto; font-size: 20px; line-height: 22px; opacity: 1; }
img.tc-pic { object-fit: contain; }
.tcp { max-width: 400px; margin-top: 4px; }
.tcp-bar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #1e1f22;
  border: 1px solid #5865f2; border-radius: 8px 8px 0 0; color: #949ba4; font-size: 14px; font-weight: 500; }
.tcp-up { width: 8px; height: 8px; border-left: 2px solid #dbdee1; border-top: 2px solid #dbdee1; transform: rotate(45deg); margin-top: 4px; }
.tcp-list { background: #2b2d31; border: 1px solid #1e1f22; border-top: 0; border-radius: 0 0 8px 8px; max-height: 320px; overflow-y: auto; }
.tcp-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.tcp-opt:hover { background: #35373c; }
.tcp-emoji { width: 22px; height: 22px; flex: none; object-fit: contain; }
span.tcp-emoji { width: auto; height: auto; font-size: 20px; line-height: 22px; }
.tcp-words { min-width: 0; display: flex; flex-direction: column; }
.tcp-words b { color: #f2f3f5; font-size: 15px; font-weight: 500; }
.tcp-words span { color: #b5bac1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcp-empty { padding: 12px; color: #949ba4; font-size: 13px; }
.tcp-eph { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: #949ba4; }
.tcp-eph svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.tcp-eph .dc-link { color: #00a8fc; }
.btn, .tc-btn, .tf-tool, .tf-add, .link-btn { transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn.glass, .tc-btn, .tf-tool { background: var(--n-900); border: 1px solid var(--n-800); color: #e9e9ee; }
.btn.white:hover, .btn.glass:hover, .btn.violet:hover, .tc-btn:hover:not(:disabled), .tf-tool:hover:not(:disabled), .tf-add:hover:not(:disabled), .link-btn:hover, .tc-done:hover:not(:disabled) {
  background: var(--v-5); border-color: var(--v-5); color: #fff; opacity: 1; box-shadow: 0 6px 20px -8px rgba(106, 82, 184, .8); }
.tc-del:hover:not(:disabled) { background: #b3262b; border-color: #b3262b; color: #fff; }
.tc-field { position: relative; }
.tc-emoji { cursor: pointer; }
.ep { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 320px; max-height: 300px; overflow-y: auto; padding: 10px;
  background: var(--n-950); border: 1px solid var(--n-800); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); }
.ep-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--zinc-400, #a1a1aa); margin: 4px 2px 6px; }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin-bottom: 8px; }
.ep-item { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; background: transparent;
  border: 0; border-radius: 8px; cursor: pointer; color: inherit; transition: background .12s; }
.ep-item:hover { background: var(--v-5); }
.ep-item img { width: 24px; height: 24px; object-fit: contain; }
.ep-hint { font-size: 12px; color: var(--zinc-500, #71717a); padding: 2px; }
.dash .btn.white, .dash .tc-done { background: rgba(106, 82, 184, .22); border: 1px solid rgba(181, 156, 255, .45); color: #efeaff; }
.dash .btn.white:hover, .dash .tc-done:hover:not(:disabled) { background: var(--v-5); border-color: var(--v-5); color: #fff; }
.dash .btn.glass { border: 1px solid var(--n-800); }
.dash .btn { font-weight: 600; letter-spacing: .01em; }
.dash .btn:active, .dash .tc-btn:active, .dash .tf-tool:active { transform: translateY(1px); }
.dash .btn:focus-visible, .dash .tc-btn:focus-visible, .dash .tf-tool:focus-visible, .dash .tf-add:focus-visible {
  outline: 2px solid var(--v-4); outline-offset: 2px; }
.tcp-new b { color: #949ba4; font-style: italic; }
.tk-actions { margin-top: 4px; padding: 16px 18px; border: 1px solid var(--n-850); border-radius: 16px; background: rgba(255, 255, 255, .015); }
.pane .settings > .tk-actions { border-top: 1px solid var(--n-850); padding-top: 16px; }
.tk-actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-actions-row .btn .ico { width: 16px; height: 16px; }
.tk-actions-row .muted { font-size: 13px; }
.tk-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #fcd9a8;
  background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .25); }
.cf-shade { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.cf-box { width: 100%; max-width: 420px; padding: 22px; border-radius: 16px; background: var(--n-950); border: 1px solid var(--n-800);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.cf-box h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #f2f3f5; }
.cf-box p { margin: 0; font-size: 14px; color: var(--zinc-300, #d4d4d8); line-height: 1.5; }
.cf-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.tabs { gap: 2px; }
.tabs .tab-group > summary { cursor: pointer; list-style: none; user-select: none; }
.tabs .rl-sub a { height: 34px; padding: 0 10px; gap: 10px; font-size: 13.5px; font-weight: 500; border-radius: 10px; }
.tabs .rl-sub a .ico { width: 16px; height: 16px; }
.tabs .rl-sub a.on { color: #fff; background: rgba(181, 156, 255, .1); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .16); }
.tabs .rl-sub a.dirty::after, .tabs .rl-sub a.error::after { right: 10px; }
/* a closed group shows the same light as a tab, before its arrow, and red if a section inside it has an error */
.tabs .tab-group:has(a.dirty) > summary::after, .tabs .tab-group:has(a.error) > summary::after { content: ""; flex: none; order: 1;
  width: var(--dot); height: var(--dot); margin: 0 10px 0 auto; border-radius: 50%; background: var(--v-4); box-shadow: 0 0 8px var(--v-4); }
.tabs .tab-group:has(a.error) > summary::after { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.tabs .tab-group > summary .rl-chev { order: 2; }
.tabs .tab-group:has(a.dirty, a.error) > summary .rl-chev { margin-left: 0; }
.tabs .tab-group[open] > summary::after { display: none; }
@media (max-width: 1024px) {
.tabs { flex-direction: column; overflow: visible; }
}
.tabs .tab-rule { height: 1px; margin: 8px 6px; background: var(--n-850); }
.pp-fields { display: flex; flex-direction: column; gap: 14px; padding-top: 2px; }
.pp-fields > div, .pp-fields > div:first-child { padding: 0; border-top: 0; }
.pp-fields label { font-size: 14px; margin-bottom: 6px; }
.pp-fields input, .pp-fields select, .pp-fields textarea { padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.pp-fields textarea { min-height: 0; resize: vertical; }
.pp-fields > .pp-where { gap: 12px; }
.tk-card-body > .pp-grid { gap: 24px; }
.pp-preview .dc-label { margin-bottom: 8px; font-size: 12px; }
.cs { position: relative; width: 100%; min-width: 0; }
.cs-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.cs-hidden { display: none; }
.cs-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; min-height: 40px;
  background: var(--n-1000); border: 1px solid var(--n-800); border-radius: 10px; color: #f2f3f5; font: 500 14px/1.3 var(--sans);
  text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cs-btn:hover:not(:disabled) { border-color: var(--n-700); }
.cs.open .cs-btn, .cs-btn:focus-visible { outline: 0; border-color: var(--v-5); box-shadow: 0 0 0 3px rgba(106, 82, 184, .2); }
.cs-btn:disabled { opacity: .45; cursor: not-allowed; }
.row:has(> div > input[type=number]) .cs-btn, .row:has(> input[type=number]) .cs-btn { min-height: 46px; }
.row:has(> div > input[type=number]) input[type=number] { min-height: 46px; box-sizing: border-box; }
.cs-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chev { flex: none; width: 7px; height: 7px; border-right: 2px solid var(--zinc-400, #a1a1aa); border-bottom: 2px solid var(--zinc-400, #a1a1aa);
  transform: rotate(45deg); margin: -4px 2px 0 0; transition: transform .15s; }
.cs.open .cs-chev { transform: rotate(-135deg); margin-top: 4px; }
.cs-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 260px; overflow-y: auto;
  padding: 6px; background: var(--n-950); border: 1px solid var(--n-800); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .85); }
.cs.open .cs-list { display: block; }
.cs-opt { position: relative; padding: 8px 30px 8px 10px; border-radius: 8px; font-size: 14px; color: #dcdce3; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-opt:hover { background: rgba(106, 82, 184, .28); color: #fff; }
.cs-opt.on { color: #fff; background: rgba(181, 156, 255, .1); }
.cs-opt.on::after { content: ""; position: absolute; right: 12px; top: 50%; width: 5px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--v-4); border-bottom: 2px solid var(--v-4); transform: rotate(45deg); }
.cs-opt.off { opacity: .4; cursor: not-allowed; }
.cs-opt.off:hover { background: none; color: #dcdce3; }
.tf-top .cs { width: auto; min-width: 240px; }
.cs-list { background: rgba(17, 16, 21, .92); backdrop-filter: blur(14px); border-color: rgba(181, 156, 255, .18);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(106, 82, 184, .12); }
.cs-opt:hover { background: linear-gradient(180deg, rgba(106, 82, 184, .3), rgba(181, 156, 255, .22)); }
.cs-opt.on { background: rgba(181, 156, 255, .1); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .16); }
.cs-btn { background: rgba(255, 255, 255, .02); }
.tq-num { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  font: 600 12px var(--mono); color: var(--v-4); background: rgba(181, 156, 255, .1); }
.tq-two { display: flex; align-items: flex-end; gap: 14px; }
.tq-two .tc-field { flex: 1; min-width: 0; }
.tq-two .tf-req { padding-bottom: 10px; }
.tq-empty { padding: 14px; border: 1px dashed var(--n-800); border-radius: 12px; font-size: 13px; color: var(--zinc-400, #a1a1aa); }
.tf-preview { position: sticky; top: 20px; }
.tf-plan { font-size: 13px; }
.tf-grid { gap: 24px; }
.pane[data-pane="forms"] .settings { max-width: none; }
.dm-example .dm-q { opacity: .55; }
.tf-top { padding: 12px 14px; border-radius: 12px; background: rgba(181, 156, 255, .05); border: 1px solid rgba(181, 156, 255, .12); }
.tf-plan { margin: 0 0 12px; }
.tf-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.dm-modal { border: 1px solid rgba(255, 255, 255, .06); }
.fa-where { font-size: 12px; color: var(--zinc-400, #a1a1aa); margin-bottom: 8px; }
.fa-card .dc { padding: 12px; border-radius: 12px; background: #313338; }
.fa-card .dc-mention { color: #c9cdfb; background: rgba(88, 101, 242, .3); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.fa-card .dc-text { margin: 2px 0 6px; }
#fp_cool_wrap.hidden { display: none; }
.tf-mt { flex: 1; min-width: 200px; }
.tf-mt label { margin-bottom: 4px; }
.tf-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.fa-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fa-toggles > div { padding: 10px 12px; border: 1px solid var(--n-800); border-radius: 10px; background: rgba(255,255,255,.015); }
.fa-toggles .switch { margin: 0; }
.tk-card:has(#fa-card) label small:empty { display: none; }
.fa-card .dc { box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
@media (max-width: 700px) {
.fa-toggles { grid-template-columns: 1fr; }
}
.fm-picker { margin-bottom: 14px; padding: 14px 18px; border: 1px solid var(--n-850); border-radius: 16px; background: rgba(255, 255, 255, .015); }
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--n-850); border-radius: 10px;
  color: var(--zinc-400); text-decoration: none; font-size: 14px; background: rgba(255, 255, 255, .02); }
.fm-chip .ico { width: 15px; height: 15px; }
.fm-chip:hover { border-color: var(--v-5); color: var(--v-0); }
.fm-chip.on { border-color: var(--v-5); background: rgba(106, 82, 184, .18); color: var(--v-0); }
.fm-chip.fm-add { border-style: dashed; color: var(--v-4); }
.fm-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.fm-delete { color: #f87171; }
.btn { position: relative; isolation: isolate; overflow: hidden;
  transition: background .18s, border-color .18s, color .18s, box-shadow .25s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .25s;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 70%); }
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active, .dash .btn:active { transform: translateY(1px) scale(.98); transition-duration: .06s; }
.btn.white:hover { background: #fff; color: var(--n-1000); box-shadow: 0 8px 28px -10px rgba(181, 156, 255, .75), 0 0 0 1px rgba(181, 156, 255, .5); }
.btn.white::before { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(181, 156, 255, .45), transparent 70%); }
.dash .btn.white:hover { background: var(--v-5); color: #fff; }
.btn.glass:hover { background: rgba(106, 82, 184, .22); border-color: rgba(181, 156, 255, .45); color: #fff;
  box-shadow: 0 8px 24px -12px rgba(106, 82, 184, .9); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--v-4); outline-offset: 2px; border-radius: 10px; }
.btn:focus-visible { outline: 2px solid var(--v-4); outline-offset: 2px; border-radius: 999px; }
.server { transition: border-color .18s, background .18s, transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.server:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(106, 82, 184, .8); }
.server:active { transform: translateY(0); }
.rl-chev, .chev { transition: transform .2s ease, color .15s; }  /* plain turn: a springy overshoot read as a wobble */
/* every dropdown arrow lives on its own layer all the time: Safari draws a turning arrow on a temporary layer and drops
   it when the turn ends, redrawing it a pixel off (the Section arrow hopped 1px after opening, 2026-11-26) */
.rl-chev, .chev, .faq-chev, .g-chev, .su-fold svg { will-change: transform; }
.row > .cs { flex: 1; }
html { scrollbar-color: var(--n-600) var(--n-1000); }
.cs-list, .ep, .tcp-list, textarea, select[multiple], .legal table { scrollbar-width: thin; scrollbar-color: rgba(181, 156, 255, .35) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--n-700); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--n-600); background-clip: padding-box; }
.cs-list::-webkit-scrollbar, .ep::-webkit-scrollbar, .tcp-list::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 10px; }
.cs-list::-webkit-scrollbar-thumb, .ep::-webkit-scrollbar-thumb, .tcp-list::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb {
  background: rgba(181, 156, 255, .3); border: 3px solid transparent; background-clip: padding-box; }
.cs-list::-webkit-scrollbar-thumb:hover, .ep::-webkit-scrollbar-thumb:hover, .tcp-list::-webkit-scrollbar-thumb:hover {
  background: rgba(181, 156, 255, .55); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
.btn:hover, .server:hover { transform: none; }
}
.v2-copy .lead { margin: 26px 0 0; max-width: 34rem; color: var(--zinc-300); font-size: 18px; line-height: 1.7; font-weight: 400; }
.v2-copy .actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.v2-demo { position: relative; min-width: 0; }
.v2-demo::before { content: ""; position: absolute; inset: -1px; border-radius: 13px; pointer-events: none; z-index: 2; padding: 1px;
  background: linear-gradient(160deg, rgba(181, 156, 255, .55), rgba(181, 156, 255, 0) 35%, rgba(181, 156, 255, 0) 70%, rgba(106, 82, 184, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.v2-demo .dc-wrap { box-shadow: 0 40px 100px -40px rgba(106, 82, 184, .8), 0 24px 60px -28px rgba(0, 0, 0, .9); }
.hd .dc-log { position: relative; padding-bottom: 28px; }
.hd .hd-step + .hd-step { margin-top: 17px; }
.hd-typing { position: absolute; left: 16px; bottom: 2px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #b5bac1;
  opacity: 0; visibility: hidden; }
.hd-typing b { color: #f2f3f5; font-weight: 600; }
.hd-dots { display: inline-flex; gap: 3px; margin-right: 2px; }
.hd-dots i { width: 5px; height: 5px; border-radius: 50%; background: #dbdee1; animation: hd-bounce 1s infinite ease-in-out; }
.hd-dots i:nth-child(2) { animation-delay: .15s; }
.hd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hd-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.dc-ph.typed { color: #dbdee1; }
.dc-ph.typed::after { content: ""; display: inline-block; width: 1px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #dbdee1;
  animation: hd-caret 1s steps(1) infinite; }
@keyframes hd-caret { 50% { opacity: 0; } }
.v2-block { margin-top: 140px; }
.v2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.v2-head h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.v2-head p { margin: 12px 0 0; max-width: 36rem; color: var(--zinc-400); font-size: 17px; line-height: 1.6; }
.v2-more { position: relative; overflow: hidden; isolation: isolate; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px;
  padding: 0 14px 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--zinc-300); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--n-800); transition: color .18s, background .18s, box-shadow .18s, transform .18s; }
.v2-more::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(100px circle at var(--mx, 50%) var(--my, 50%), rgba(181, 156, 255, .3), transparent 70%); }
.v2-more:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .4); transform: translateY(-1px); }
.v2-more:hover::before { opacity: 1; }
.v2-more:active { transform: translateY(1px); }
.v2-chev { width: 16px; height: 16px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.v2-more:hover .v2-chev { transform: translateX(3px); }
.v2 .subs { margin-top: 40px; }
.v2 .sub { transition: box-shadow .25s; }
.v2 .sub:hover { box-shadow: inset 0 0 0 1px var(--n-750); }
.v2-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 40px; border-radius: 20px; overflow: hidden;
  background: var(--n-850); box-shadow: 0 0 0 1px var(--n-850); }
.v2-feat { padding: 26px 24px 28px; background: var(--n-950); transition: background .2s; }
.v2-feat:hover { background: var(--n-900); }
.v2-feat h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; }
.v2-feat p { margin: 8px 0 0; color: var(--zinc-400); font-size: 14.5px; line-height: 1.65; }
.v2-feats > * { min-width: 0; }
.v2-feats.pm-perks { gap: 14px; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
@media (max-width: 1100px) {
.v2-demo { max-width: 560px; }
.v2-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
.v2-copy .actions .btn { flex: 1 1 100%; }
.v2-block { margin-top: 96px; }
.v2-feats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
}
.pane .settings { grid-template-columns: minmax(0, 1fr); }
.pane .settings > *, .tk-card, .tk-card-body, .tk-card-body > * { min-width: 0; }
.head-tools { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
.page-head > div, .head-tools { width: 100%; }
.head-tools .searchbox { flex: 1 1 200px; width: auto; }
.tf-top .cs { min-width: 0; width: 100%; }
}
.pp-fields > .pp-where { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pp-fields > *, .pp-where > *, .cs { min-width: 0; }
@media (max-width: 640px) {
.pp-fields > .pp-where { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
.tk-card-body > .pp-grid, .tf-grid { grid-template-columns: minmax(0, 1fr); }
}
.tcp, .tcp-bar, .tcp-list, .pp-preview .dc-wrap, .dm-modal { max-width: 100%; }
.pp-preview, .tf-preview, .tf-left { min-width: 0; }
.hd .dc-log.hd-live { display: flex; flex-direction: column; justify-content: flex-end; }
.sc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; margin-top: 40px; align-items: start; }
.sc-tabs { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 14px; }
.sc-tabs::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--n-850); }
.sc-ind { position: absolute; left: 0; top: 0; width: 2px; height: 0; border-radius: 2px; background: var(--v-4);
  box-shadow: 0 0 12px rgba(181, 156, 255, .8); pointer-events: none; }
.sc-tab { position: relative; overflow: hidden; display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-radius: 14px;
  background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background .2s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.sc-tab::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(181, 156, 255, .12), transparent 70%); }
.sc-tab:hover { background: var(--n-950); }
.sc-tab:hover::before { opacity: 1; }
.sc-tab:active { transform: scale(.985); }
.sc-tab b { display: block; color: var(--zinc-400); font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; transition: color .2s; }
.sc-tab span { display: block; margin-top: 4px; color: var(--zinc-600); font-size: 14.5px; line-height: 1.6; transition: color .2s; }
.sc-tab.on { background: var(--n-950); box-shadow: inset 0 0 0 1px var(--n-850); }
.sc-tab.on b { color: #fff; }
.sc-tab.on span { color: var(--zinc-400); }
.sc-stage { position: relative; display: grid; min-width: 0; }
.sc-stage::before { content: ""; position: absolute; inset: 10% 8% -4%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(106, 82, 184, .28), transparent); filter: blur(30px); }
.sc-panel { grid-area: 1 / 1; position: relative; z-index: 1; min-width: 0; visibility: hidden; opacity: 0; }
.sc-panel.on { visibility: visible; opacity: 1; }
.sc-panel .dc-wrap { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px -40px rgba(106, 82, 184, .7), 0 24px 60px -30px rgba(0, 0, 0, .9); }
@media (max-width: 860px) {
.sc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.sc-tabs { flex-direction: row; gap: 6px; padding: 0 0 6px; overflow-x: auto; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs::before, .sc-ind { display: none; }
.sc-tab { flex: none; width: auto; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--n-850); }
.sc-tab span { display: none; }
.sc-tab b { font-size: 14.5px; }
.sc-tab.on { background: rgba(181, 156, 255, .12); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .4); }
}
.pm-head { align-items: stretch; }
.pm-head > div:first-child { flex: 1 1 320px; }
.pm-head .plans { margin-top: 0; flex: 1 1 520px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { position: relative; overflow: hidden; border: 1px solid var(--n-850); transition: border-color .2s, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.plan:hover { border-color: var(--n-700); transform: translateY(-2px); box-shadow: 0 20px 40px -26px rgba(106, 82, 184, .8); }
.plan.featured { border-color: rgba(181, 156, 255, .35); }
.plan-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--v-0);
  background: rgba(181, 156, 255, .12); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .25); }
.plan-soon { align-self: flex-start; margin-top: 8px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--zinc-400);
  background: var(--n-900); box-shadow: inset 0 0 0 1px var(--n-800); }
.pm-block { margin-top: 96px; }
.pm-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; color: var(--v-4);
  background: rgba(181, 156, 255, .1); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .2); }
.pm-ico svg { width: 20px; height: 20px; }
.faqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; align-items: start; }
.faq { border-radius: 16px; background: var(--n-950); border: 1px solid var(--n-850); overflow: hidden; transition: border-color .2s, background .2s; }
.faq:hover { border-color: var(--n-750); }
.faq[open] { background: var(--n-900); border-color: var(--n-750); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 20px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-chev { width: 18px; height: 18px; flex: none; color: var(--zinc-500); transition: transform .2s ease, color .2s; }
.faq[open] .faq-chev { transform: rotate(180deg); color: var(--v-4); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--zinc-400); line-height: 1.7; }
@media (max-width: 1100px) {
}
@media (max-width: 860px) {
.pm-perks, .faqs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
}
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: 56px; align-items: start; }
.legal-wrap .legal { min-width: 0; }
.toc { position: sticky; top: 32px; margin-top: 40px; display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--n-850); }
.toc b { margin-bottom: 8px; color: #fff; font-size: 14px; font-weight: 700; }
.toc a { position: relative; padding: 5px 0; color: var(--zinc-500); font-size: 14px; line-height: 1.4; transition: color .2s; }
.toc a:hover { color: #fff; }
.toc a.on { color: var(--v-1); }
.toc a.on::before { content: ""; position: absolute; left: -16px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--v-4);
  box-shadow: 0 0 10px rgba(181, 156, 255, .8); }
.legal h3, .legal h2.legal-h { scroll-margin-top: 24px; }
@media (max-width: 960px) {
.legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
.toc { display: none; }
}
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 32px; align-items: start; }
.g-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(181, 156, 255, .3) transparent; }
.g-chev { width: 15px; height: 15px; flex: none; color: var(--zinc-600); transition: transform .2s ease, color .2s; }
details[open] > summary > .g-chev, details[open] > summary .g-end > .g-chev { transform: rotate(90deg); color: var(--v-4); }
.g-count { margin: 0 0 16px; color: var(--zinc-400); font-size: 14px; }
.g-cat { scroll-margin-top: 24px; }
.g-cat + .g-cat { margin-top: 56px; }
.g-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.g-cat-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.g-cat-head p { margin: 2px 0 0; color: var(--zinc-500); font-size: 14px; }
.g-cmd { scroll-margin-top: 24px; border-radius: 16px; background: var(--n-950); border: 1px solid var(--n-850); overflow: hidden;
  transition: border-color .2s, background .2s; }
.g-cmd + .g-cmd { margin-top: 8px; }
.g-cmd:hover { border-color: var(--n-750); }
.g-cmd[open] { background: var(--n-900); border-color: var(--n-750); }
.g-cmd:target, .g-cmd.flash { border-color: rgba(181, 156, 255, .6); box-shadow: 0 0 0 3px rgba(106, 82, 184, .2); }
.g-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 16px 12px 20px;
  cursor: pointer; list-style: none; }
.g-head::-webkit-details-marker { display: none; }
.g-title { display: flex; align-items: baseline; gap: 14px; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.g-name { flex: none; padding: 0; background: none; border: 0; color: #fff; font-size: 15px; font-weight: 600; }
.g-short { min-width: 0; color: var(--zinc-500); font-size: 14px; line-height: 1.5; }
.g-end { display: flex; align-items: center; gap: 10px; flex: none; }
.g-badge { padding: 2px 8px; border-radius: 999px; font: 500 11.5px var(--mono); color: var(--v-1); background: rgba(181, 156, 255, .1); }
.g-body { padding: 4px 20px 20px; border-top: 1px solid var(--n-800); }
.g-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 14px; }
.g-desc { margin: 0; max-width: 68ch; color: var(--zinc-300); font-weight: 400; line-height: 1.7; }
.g-h { margin: 0 0 10px; color: #fff; font-size: 14.5px; font-weight: 700; }
.g-steps { margin: 0 0 14px; padding-left: 20px; color: var(--zinc-300); font-size: 14.5px; line-height: 1.7; font-weight: 400; }
.g-steps li::marker { color: var(--v-4); font-weight: 700; }
.g-steps b { color: #fff; font-weight: 600; }
.g-req { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fecaca; background: rgba(248, 113, 113, .12); }
.g-req.opt { color: var(--zinc-400); background: var(--n-800); }
.g-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 16px 0 0; font-size: 14px; }
.g-facts dt { color: var(--zinc-500); font-weight: 600; }
.g-facts dd { margin: 0; color: var(--zinc-300); display: flex; flex-wrap: wrap; gap: 6px; }
.g-subwrap { margin-top: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--n-800); }
.g-subwrap > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; cursor: pointer; list-style: none;
  border-radius: 14px; font-weight: 600; font-size: 14.5px; transition: background .15s; }
.g-subwrap > summary::-webkit-details-marker { display: none; }
.g-subwrap > summary:hover { background: rgba(255, 255, 255, .03); }
.g-sub-names { flex: 1; min-width: 0; color: var(--zinc-500); font: 12.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-subs { padding: 4px 10px 10px; }
.g-sub { background: var(--n-950); }
.g-sub[open] { background: var(--n-1000); }
.guide-site .head-tools .searchbox { width: 360px; }
@media (max-width: 960px) {
.guide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.g-side { position: static; max-height: none; overflow: visible; padding: 0; }
}
@media (max-width: 640px) {
.g-head { padding: 12px 12px 12px 14px; }
.g-title { flex-direction: column; gap: 2px; }
.g-body { padding: 4px 14px 16px; }
.g-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.g-facts dd { margin-bottom: 8px; }
}
.sv-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sv-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; gap: 16px;
  padding: 18px; border-radius: 20px; background: var(--n-950); border: 1px solid var(--n-850); color: inherit; min-height: 188px;
  transition: border-color .2s, background .2s, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.sv-card::after { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; z-index: -1; pointer-events: none; opacity: .5;
  background: var(--sv-bg, radial-gradient(closest-side, rgba(106, 82, 184, .35), transparent)); background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.3); transition: opacity .3s; }
.sv-card:hover { border-color: rgba(181, 156, 255, .4); transform: translateY(-3px); box-shadow: 0 20px 44px -26px rgba(106, 82, 184, .9); }
.sv-card:hover::after { opacity: .8; }
.sv-card:active { transform: translateY(-1px) scale(.995); }
.sv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sv-card img, .sv-card .noicon { width: 56px; height: 56px; border-radius: 16px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.sv-card .noicon { display: grid; place-items: center; background: var(--v-6); color: var(--v-1); font-weight: 700; font-size: 20px; }
.sv-text { display: block; min-width: 0; }
.sv-text b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-text small { display: block; margin-top: 2px; color: var(--zinc-500); font-size: 13.5px; }
.sv-open { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--zinc-400); font-size: 14px; font-weight: 600; transition: color .2s; }
.sv-open svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.sv-card:hover .sv-open { color: var(--v-1); }
.sv-card:hover .sv-open svg { transform: translateX(4px); }
.sv-add { justify-content: center; align-items: center; text-align: center; border-style: dashed; border-color: var(--n-750); background: transparent; }
.sv-add::after { display: none; }
.sv-add .sv-text b { white-space: normal; font-size: 16px; }
.sv-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 26px; font-weight: 400; color: var(--v-4);
  background: rgba(181, 156, 255, .1); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .25); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sv-add:hover .sv-plus { transform: rotate(90deg); }
.plan-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--zinc-400);
  background: var(--n-850); box-shadow: inset 0 0 0 1px var(--n-750); }
.plan-chip.pro { color: var(--v-0); background: rgba(106, 82, 184, .35); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .45); }
.g-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-chev.back { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.v2-more:hover .v2-chev.back { transform: translateX(-3px); }
.panel { position: relative; }
.panel::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(181, 156, 255, .45), transparent); }
button.dm-input { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dm-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #949ba4; transition: border-color .15s; }
.dm-select:hover { border-color: #4e5058; }
.dm-select.picked { color: #f2f3f5; }
.dm-select .dm-ico { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.dm-dd.open .dm-select { border-color: #5865f2; }
.dm-dd.open .dm-select .dm-ico { transform: rotate(180deg); }
.dm-dd { position: relative; }
.dm-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 220px; overflow-y: auto; padding: 4px;
  border-radius: 8px; background: #2b2d31; border: 1px solid #1e1f22; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  scrollbar-width: thin; scrollbar-color: rgba(181, 156, 255, .35) transparent; }
.dm-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px;
  background: transparent; color: #dbdee1; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.dm-opt:hover, .dm-opt:focus-visible { background: #35373c; color: #fff; outline: 0; }
.dm-opt.on { color: #fff; }
.dm-opt.on::after { content: ""; width: 5px; height: 10px; margin-right: 4px; border-right: 2px solid #5865f2; border-bottom: 2px solid #5865f2; transform: rotate(45deg); }
button.dm-choice { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
button.dm-choice:hover { border-color: #4e5058; background: #2e3035; }
.dm-choice.on { border-color: #5865f2; }
.dm-radio, .dm-check { position: relative; transition: border-color .15s, background .15s; }
.dm-choice.on .dm-radio { border-color: #5865f2; }
.dm-choice.on .dm-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #5865f2; }
.dm-choice.on .dm-check { border-color: #5865f2; background: #5865f2; }
.dm-choice.on .dm-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border-right: 2px solid #fff;
  border-bottom: 2px solid #fff; transform: rotate(45deg); }
.dm-try { margin: -4px 0 14px; color: #949ba4; font-size: 12.5px; }
.sc-panel .dc-log { position: relative; padding-bottom: 28px; }
.sc-panel .dc-log.hd-live { display: flex; flex-direction: column; justify-content: flex-end; }
.legal-wrap .legal > h2[id$="-title"] { display: none; }
.legal-wrap .legal > h2[id$="-title"] + .date { margin-top: 0; }
.dm-modal { overflow: visible; }
.dm-foot { border-radius: 0 0 12px 12px; }
.bg-wave { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 1.2s ease; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 92%, transparent 100%); }
.bg-wave.on { opacity: .75; }
.v2 > :not(.bg-wave) { position: relative; z-index: 1; }
.pane[data-pane="tickets"] > h2, .pane[data-pane="forms"] > h2 { display: none; }
.pane .settings > .tf-hero, .pane .settings > .tf-steps { padding: 0; border-top: 0; }
.tf-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 22px 32px; flex-wrap: wrap; margin-bottom: 18px; padding: 26px 26px 24px !important; border-radius: 20px;
  background: linear-gradient(135deg, rgba(106, 82, 184, .22), rgba(17, 16, 21, .6) 55%), var(--n-1000);
  box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .22), 0 24px 60px -36px rgba(106, 82, 184, .9); }
.tf-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 320px; }
.tf-hero-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; color: #fff;
  background: linear-gradient(135deg, #8b6cf0, #4b3696); box-shadow: 0 10px 30px -10px rgba(139, 108, 240, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tf-hero-ico .ico { width: 24px; height: 24px; color: #fff; }
.pane .settings .tf-hero-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.tf-hero-main p { margin: 6px 0 0; max-width: 46ch; color: var(--zinc-300); font-size: 14.5px; line-height: 1.55; }
.tf-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-stat { display: flex; flex-direction: column; gap: 3px; min-width: 104px; padding: 10px 14px; border-radius: 14px;
  background: rgba(11, 10, 13, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); backdrop-filter: blur(8px);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.tf-stat:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .35); }
.tf-stat small { color: var(--zinc-500); font-size: 12px; font-weight: 600; }
.tf-stat b { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.tf-dot { width: var(--dot); height: var(--dot); border-radius: 50%; flex: none; background: #f5b74e; box-shadow: 0 0 10px rgba(245, 183, 78, .8); }
.tf-dot.ok { background: var(--good); box-shadow: 0 0 10px rgba(74, 222, 128, .8); animation: tf-live 2.4s ease-in-out infinite; }
@keyframes tf-live { 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); } }
/* Send a Test: a quiet button under the message it tests, with what it does beside it */
.test-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: -4px; }
.test-row .muted { font-size: 13px; }
.test-btn .ico { width: 15px; height: 15px; }
@media (max-width: 760px) {
.tf-hero { padding: 20px 18px !important; }
.tf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.tf-stat { min-width: 0; }
.tf-stat b { max-width: 100%; }
}
.pane .settings .tf-hero .tf-hero-title { font-family: var(--sans); text-transform: none; letter-spacing: -0.03em; margin: 0; }
.searchbox input:focus, .searchbox input:focus-visible { outline: 0; border: 0; box-shadow: none; }
.tf-stat b { overflow: visible; max-width: none; }
/* Tickets: the member's view box (website/dash_ticketflow.py, app.js "member's view"). Phones and narrow screens: one
   column, the box first under the banner. Wide screens: settings on the left, the box pinned on the right */
.tkf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.tkf { min-width: 0; padding: 14px 16px 12px; border-radius: 18px; border: 1px solid var(--n-850); background: rgba(255, 255, 255, .015); }
.tkf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tkf-top .dc-label { margin: 0; }
.tkf-top .cs { width: auto; min-width: 180px; max-width: 100%; }
.tkf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tkf-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--n-850); background: rgba(255, 255, 255, .03); color: var(--zinc-300);
  font: 500 13px/1.2 var(--sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
@media (hover: hover) { .tkf-chip:hover { border-color: rgba(139, 92, 246, .5); } }
.tkf-chip.on { background: rgba(139, 92, 246, .2); border-color: rgba(139, 92, 246, .7); color: #e9e3ff; }
.tkf-chip.skipped { color: var(--zinc-500); text-decoration: line-through; text-decoration-color: var(--zinc-600); }
.tkf-chip.skipped.on { color: var(--zinc-300); }
.tkf-chip:focus-visible, .tkf-nav button:focus-visible, .tkf-replay:focus-visible, .tkf-go:focus-visible { outline: 2px solid var(--v-4); outline-offset: 2px; }
.tkf-step { min-width: 0; }
/* phones: the 4 chips share one row instead of leaving "4 · ticket" alone on a second */
@media (max-width: 520px) { .tkf-chips { flex-wrap: nowrap; gap: 4px; } .tkf-chip { flex: 1 1 auto; padding: 6px 6px; font-size: 12px; white-space: nowrap; text-align: center; } }
@media (max-width: 359px) { .tkf-chips { display: grid; grid-template-columns: 1fr 1fr; } }  /* tiny phones: a tidy 2 x 2 */
.tkf-step[hidden], .tkf-skip[hidden], .tkf-replay[hidden], .tkp-typing[hidden] { display: none; }
/* own ticket messages: the editor's two halves, and the picture / time bits in the previews */
.tm-part > h4 { margin: 0; font-size: 15px; color: var(--ink-1); }
.tm-part > h4 small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--zinc-400); }
.tm-bad { margin: 0; font-size: 13px; color: #f0a35e; }
.tm-note { margin: 0; font-size: 13px; color: var(--zinc-400); }
.tm-note a { color: var(--v-4); text-decoration: underline; text-underline-offset: 2px; }
.tm-bad[hidden], .tm-image[hidden], .tkf [id^="tkp-"][hidden], .tkf [id^="tmc-"][hidden] { display: none; }
/* "Add fill-ins": under the text box on computers, a sheet at the bottom on phones. Opens in one step (only opacity moves) */
.tm-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pp-fields .tm-label label { margin: 0; }
.tm-open { flex: none; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(139, 92, 246, .55); background: rgba(139, 92, 246, .12); color: #e9e3ff;
  font: 500 13px/1.2 var(--sans); cursor: pointer; }
.tm-open[aria-expanded="true"] { background: rgba(139, 92, 246, .3); }
@media (hover: hover) { .tm-open:hover { background: rgba(139, 92, 246, .25); } }
.tmp { position: absolute; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-height: 380px; padding: 12px; border-radius: 14px;
  background: #15101f; border: 1px solid rgba(139, 92, 246, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: tmp-in .14s ease-out; }
.tmp-on { overflow-anchor: none; }
.tmp.sheet { position: fixed; z-index: 400; left: 0; right: 0; bottom: 0; max-height: 52vh; max-height: 52dvh; padding: 12px 16px calc(12px + env(safe-area-inset-bottom) + var(--toolbar-gap, 0px));
  border-radius: 18px 18px 0 0; border-width: 1px 0 0; }
@keyframes tmp-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tmp { animation: none; } }
.tmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tmp-tabs { display: flex; gap: 6px; }
.tmp-tabs button, .tmp-x { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--n-800); background: transparent; color: var(--zinc-300); font: 500 13px/1.2 var(--sans); cursor: pointer; }
.tmp-tabs button.on { background: rgba(139, 92, 246, .25); border-color: rgba(139, 92, 246, .7); color: #fff; }
.tmp-x { border-color: transparent; color: var(--gold); }
.tmp .tmp-search { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--n-800); background: #0b0812; color: #fff; font: 400 16px/1.3 var(--sans); }
.tmp-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tmp-title { padding: 10px 4px 4px; font-size: 12px; font-weight: 600; color: var(--zinc-400); }
.tmp-title:first-child { padding-top: 0; }
.tmp-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; width: 100%; min-height: 40px; padding: 7px 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--zinc-300); font: 400 13px/1.35 var(--sans); text-align: left; cursor: pointer; touch-action: manipulation; }
.tmp-item code { font: 500 13px/1.35 ui-monospace, Consolas, monospace; color: #d9ccff; word-break: break-word; }
.tmp-item span { color: var(--zinc-400); }
@media (hover: hover) { .tmp-item:hover { background: rgba(139, 92, 246, .16); } }
.tmp-item:active { background: rgba(139, 92, 246, .28); }
.tmp-none { padding: 10px 4px; font-size: 13px; color: var(--zinc-400); }
.tmp-say { font-size: 13px; color: var(--zinc-400); }
.tmp-say.bad { color: #f0a35e; }
.tm-open:focus-visible, .tmp button:focus-visible { outline: 2px solid var(--v-4); outline-offset: 1px; }
.tm-image { margin-top: 10px; max-width: 400px; border-radius: 8px; overflow: hidden; }
.tm-image img { display: block; width: 100%; }
.tm-image span { display: grid; place-items: center; min-height: 110px; background: #1e1f22; color: #949ba4; font-size: 13px; }
.dc-ts { padding: 0 2px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
@media (max-width: 520px) { .tkf-chips:has(.tkf-chip:nth-child(5)) { flex-wrap: wrap; } .tkf-chip:nth-child(5) { flex: 0 0 auto; padding: 6px 12px; } }
.tkf .pp-preview { position: static; }
.tkf .pp-preview .dc-log, .tkf .tkp-wrap .dc-log { padding: 6px 0 10px; }
.tkf .tkp-wrap { padding: 0; }
.tkf-step[data-step="3"] .dm-modal { margin-bottom: 10px; }
.tkf-step[data-step="3"] > .dc-link { font-size: 13px; color: #00a8fc; }
.tkf-skip { margin: 0; padding: 28px 16px; border: 1px dashed var(--n-800); border-radius: 12px; text-align: center; color: var(--zinc-400); font-size: 13px; }
.tkf-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--n-850); }
.tkf-nav button, .tkf-replay { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--n-800);
  background: rgba(255, 255, 255, .02); color: var(--zinc-300); font: 500 13px/1.2 var(--sans); cursor: pointer; transition: border-color .15s; }
.tkf-nav button:hover:not(:disabled), .tkf-replay:hover { border-color: var(--n-700); }
.tkf-nav button:disabled { opacity: .35; cursor: default; }
.tkf-nav .ico, .tkf-replay .ico { width: 15px; height: 15px; }
.tkf-replay { margin-top: 10px; padding: 5px 10px; font-size: 12px; }
.tkf-go, .tkf .tcp-opt { cursor: pointer; }
.tkf .tcp-opt.tcp-new { cursor: default; }
.tkf button.dm-submit { border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.tkf button.dm-submit:focus-visible { outline: 2px solid #00a8fc; outline-offset: 2px; }
.tkp-typing { display: flex; align-items: center; gap: 6px; margin: -12px 16px 0; padding: 0 0 6px; color: #dbdee1; font-size: 12px; line-height: 16px; }
.tkp-say { margin-top: 6px; }
.tkp-typing b { font-weight: 700; color: #f2f3f5; }
.tkp-dots { display: inline-flex; gap: 3px; }
.tkp-dots i { width: 5px; height: 5px; border-radius: 50%; background: #dbdee1; animation: tkp-dot 1.2s ease-in-out infinite; }
.tkp-dots i:nth-child(2) { animation-delay: .15s; }
.tkp-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tkp-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .tkp-dots i { animation: none; opacity: .7; } }
@media (min-width: 1200px) {
.tkf-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; }
.tkf-layout > .tf-steps { order: 1; }
/* pinned under the top bar while the settings scroll; it scrolls inside itself when taller than the screen, and stops
   above the save bar */
.tkf { order: 2; position: sticky; top: calc(var(--bar, 76px) + 16px); max-height: calc(100vh - var(--bar, 76px) - 32px);
  max-height: calc(100dvh - var(--bar, 76px) - 32px); overflow: auto; overscroll-behavior: contain; }
body.unsaved .tkf { max-height: calc(100vh - var(--bar, 76px) - 128px); max-height: calc(100dvh - var(--bar, 76px) - 128px); }
}
.tf-stat b > span { min-width: 0; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.tf-dot { margin: 0 1px; }
.v2 { position: relative; overflow-x: clip; }
.bg-wave { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100vh; min-height: 640px; max-height: 1000px; }
@media (max-width: 760px) {
.bg-wave { height: 100svh; opacity: 0; }
.bg-wave.on { opacity: .5; }
}
.g-guides { display: grid; gap: 56px; margin-bottom: 56px; }
.g-guide { scroll-margin-top: 24px; }
.g-guide .sc { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.g-guide .sc-tab span { font-size: 13.5px; }
.g-guide .sc-tab b { font-size: 15.5px; }
.g-guide .sc-tabs { counter-reset: gd; }
.g-guide .sc-tab b::before { counter-increment: gd; content: counter(gd); display: inline-grid; place-items: center; width: 22px; height: 22px;
  margin-right: 10px; border-radius: 7px; font-size: 12px; vertical-align: 1px; color: var(--zinc-400); background: var(--n-900);
  box-shadow: inset 0 0 0 1px var(--n-800); transition: background .25s, color .25s, box-shadow .25s; }
.g-guide .sc-tab.on b::before { color: #fff; background: linear-gradient(135deg, #8b6cf0, #4b3696); box-shadow: 0 0 14px rgba(139, 108, 240, .6); }
.g-guide .sc-stage { align-items: start; }
.dc-btn.gd-go, .tcp-opt.gd-go, .dm-submit.gd-go { font: inherit; border: 0; cursor: pointer; position: relative;
  transition: transform .12s, filter .15s; }
.dc-btn.gd-go { font-size: 13px; line-height: inherit; color: #fff; }
.dm-submit.gd-go { font-weight: 500; font-size: 14px; }
.gd-go:not(:disabled)::after { content: ""; position: absolute; inset: -3px; border-radius: 9px; pointer-events: none;
  animation: gd-hint 2.2s ease-out infinite; }
.tcp-opt.gd-go:not(:disabled)::after { display: none; }
@keyframes gd-hint { 0% { box-shadow: 0 0 0 0 rgba(181, 156, 255, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(181, 156, 255, 0); } }
.gd-go:hover:not(:disabled) { filter: brightness(1.12); }
.gd-go:active:not(:disabled), .gd-go.gd-pressed { transform: scale(.95); }
.gd-go:disabled { cursor: default; }
.tcp-opt.gd-go { width: 100%; background: transparent; text-align: left; color: inherit; }
.tcp-opt.gd-go:hover { background: #35373c; }
.tcp-opt.gd-go:focus-visible, .dc-btn.gd-go:focus-visible, .dm-submit.gd-go:focus-visible { outline: 2px solid #00a8fc; outline-offset: 2px; }
.gd-stage { position: relative; display: grid; place-items: center; padding: 34px 18px; border-radius: 12px; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px -40px rgba(106, 82, 184, .7); }
.gd-behind { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.gd-behind .dc-wrap { height: 100%; box-shadow: none; }
.gd-dim { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .72); }
.gd-modal { width: 100%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 70px -18px rgba(0, 0, 0, .95); }
.gd-in { display: flex; align-items: center; color: #dbdee1; font-size: 15px; line-height: 1.375; }
.gd-in.dm-long { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.gd-in.gd-focus { border-color: #00a8fc; }
.gd-focus .gd-type::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -3px; background: #dbdee1;
  animation: gd-caret 1s steps(1) infinite; }
@keyframes gd-caret { 50% { opacity: 0; } }
.gd-dd .dm-select { width: 100%; font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.gd-also { margin-top: 10px; padding: 10px 16px 12px; border-radius: 12px; background: #313338; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.gd-also .dc { margin: 0; }
.dc-file { display: flex; align-items: center; gap: 10px; max-width: 400px; margin-top: 8px; padding: 12px; border-radius: 8px;
  background: #2b2d31; border: 1px solid #1e1f22; }
.dc-file svg { width: 30px; height: 36px; flex: none; color: #b5bac1; }
.dc-file span { display: block; font-size: 15px; }
.dc-file small { display: block; color: #949ba4; font-size: 12px; }
.dc-dm .dc-top svg { width: 20px; height: 20px; color: #80848e; }
.gd-cmds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.gd-cmds > span { margin-right: 4px; color: var(--zinc-500); font-size: 13.5px; font-weight: 600; }
.gd-cmd { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; font: 500 13px var(--mono); color: var(--v-1, #e3d9ff);
  background: rgba(181, 156, 255, .08); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .2); text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.gd-cmd:hover { background: rgba(181, 156, 255, .16); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .45); transform: translateY(-1px); }
.gd-cmd.gd-dash { font-family: var(--sans); color: var(--zinc-300); background: transparent; box-shadow: inset 0 0 0 1px var(--n-800); }
@media (max-width: 1100px) {
.g-guide .sc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
.g-guides { gap: 44px; }
.gd-stage { padding: 20px 10px; }
.g-guide .sc-tab b::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.gd-go::after, .gd-focus .gd-type::after { animation: none !important; }
}
.g-guide .dv2-text + .dv2-text { margin-top: 10px; }

:root {
  --night: #020106; --gold: #e3b45e; --gold-light: #efd29a; --gold-deep: #cf943d;
  --purple: #7a2be2; --purple-light: #c58bff;
  --ink-1: #f7f2ff; --ink-2: #ddd3ec; --ink-3: #bcb0d1;
  --glass: rgba(14, 9, 24, .78); --line: rgba(214, 190, 255, .16); --line-strong: rgba(214, 190, 255, .3);
  --display: "Panchang", "Arial Black", system-ui, sans-serif;
  --bar: 76px;
  /* the older page styles pick up the new palette through their own names */
  --n-1000: #020106; --n-950: #08050f; --n-900: #0e0918; --n-850: #140d21; --n-800: #1a1129; --n-750: #221734; --n-700: #2b1e41; --n-600: #3a2a55;
  --v-0: #efe3ff; --v-1: #d9c2ff; --v-2: #a98be0; --v-4: #c58bff; --v-5: #7a2be2; --v-6: #1f1336;
  --text: #f7f2ff; --zinc-300: #ddd3ec; --zinc-400: #bcb0d1; --zinc-500: #9a8db2; --zinc-600: #887ca3;  /* 600: lightest grey that still reads 4.5:1 on every dark surface */
}
html { background: var(--night); }
body { position: relative; background: var(--night); color: var(--ink-1); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--purple); color: #fff; }

/* the sky sits behind everything and never takes a click */
.sky { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
body[data-sky="calm"] .sky, body[data-sky="still"] .sky { opacity: .6; }
/* "midnight" background (default): near-black with a purple undertone, darker section bands, and soft purple light
   only behind the Discord previews. Nothing moves */
html:has(body[data-bg="midnight"]) { background: #090710; }
body[data-bg="midnight"] { background: #090710;
  --night: #090710; --glass: rgba(17, 12, 28, .8); --line: rgba(214, 190, 255, .12);
  --n-1000: #07050d; --n-950: #0d0916; --n-900: #110c1c; --n-850: #171126; --n-800: #1e1630; --n-750: #251b3a; --n-700: #2d2245; --n-600: #3c2f5a; }
body[data-bg="midnight"] .topbar { background: rgba(9, 7, 16, .86); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); }
body[data-bg="midnight"] .panel { background: rgba(17, 12, 28, .9); }
body[data-bg="midnight"] .dash :is(input[type=text], input:not([type]), input[type=number], input[type=color], textarea, select, .cs-btn) { background: rgba(7, 5, 13, .7); }
/* every other homepage feature sits on a full-width #110C1C band, so sections read as separate */
body[data-bg="midnight"] .scene:nth-child(even) { padding-block: 72px; border-image: linear-gradient(#110c1c, #110c1c) fill 0 / 0 / 0 100vw;
  box-shadow: none; }
/* soft purple light behind the Discord previews, not across the page */
body[data-bg="midnight"] :is(.home .v2-demo, .scene-demo) { position: relative; isolation: isolate; }
/* bands run edge to edge, and never cause sideways scrolling. Not on Documentation: its phone search bar is sticky inside
   .shell, and iPhone Safari can't move a sticky bar inside a clipped box smoothly, so it jittered up and down while scrolling */
body[data-bg="midnight"] .shell:not(:has(.guide)) { overflow-x: clip; }
body[data-bg="midnight"] :is(.home .v2-demo, .scene-demo)::after { content: ""; position: absolute; inset: -22% -16%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #3a1b5c, rgba(48, 22, 76, .7) 45%, transparent); filter: blur(24px); opacity: .9; }

/* "purple" background (2026-11-24, kept as an option): a calm, muted mid purple with a little more light at the top. Nothing moves.
   Boxes, inputs and lines take the same purple, a step darker, so nothing looks like a black hole on it */
html:has(body[data-bg="purple"]) { background: #211a33; }
body[data-bg="purple"] { background: #211a33;
  --night: #211a33; --glass: rgba(42, 33, 64, .72); --line: rgba(214, 190, 255, .14);
  --n-1000: #19132a; --n-950: #1d172f; --n-900: #231c37; --n-850: #2a223f; --n-800: #312848; --n-750: #382e51; --n-700: #41365c; --n-600: #524570; }
body[data-bg="purple"]::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(1200px 560px at 50% -160px, rgba(170, 130, 245, .18), transparent 72%),
              linear-gradient(180deg, #251d3a, #1e182f); }
body[data-bg="purple"] .topbar { background: rgba(37, 29, 58, .86); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
body[data-bg="purple"] .panel { background: rgba(36, 28, 56, .8); }
body[data-bg="purple"] .dash :is(input[type=text], input:not([type]), input[type=number], input[type=color], textarea, select, .cs-btn) { background: rgba(22, 16, 37, .72); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 28px; height: var(--bar); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  padding: 0 max(24px, calc((100vw - 1240px) / 2)); background: linear-gradient(180deg, rgba(2, 1, 6, .92), rgba(2, 1, 6, .62)); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font: 800 18px var(--display); color: var(--ink-1); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a { color: var(--ink-3); font-size: 15px; font-weight: 700; transition: color .15s; }
.topnav a:hover, .topnav a.on { color: var(--ink-1); }
.topbar-end { display: flex; align-items: center; gap: 12px; }
.topbar-end form { margin: 0; }
.account { display: flex; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.account img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); }
.nav-toggle { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(24, 15, 42, .72); color: var(--ink-1); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 26px;
  border-radius: 13px; border: 1px solid transparent; font-size: 16px; font-weight: 800; letter-spacing: .002em; white-space: nowrap; cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, border-color .18s, background-color .18s, color .18s; }
.btn svg { width: 17px; height: 17px; flex: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.main, .btn.white { color: #231503; background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 46%, var(--gold-deep) 100%); border-color: #9e7633;
  box-shadow: inset 0 1px 0 rgba(255, 247, 222, .85), inset 0 -1px 0 rgba(120, 82, 25, .35), 0 1px 2px rgba(0, 0, 0, .5), 0 10px 26px -8px rgba(214, 162, 74, .55); }
.btn.main::after, .btn.white::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-18deg);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); transition: left .55s cubic-bezier(.2, .8, .2, 1); }
.btn.main:hover, .btn.white:hover { transform: translateY(-2px); background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 247, 222, .9), inset 0 -1px 0 rgba(120, 82, 25, .35), 0 2px 3px rgba(0, 0, 0, .5), 0 16px 34px -8px rgba(214, 162, 74, .8); }
.btn.main:hover::after, .btn.white:hover::after { left: 120%; }
.btn.alt, .btn.glass { color: #f4eeff; background: linear-gradient(180deg, rgba(58, 40, 92, .62), rgba(24, 15, 42, .72)); border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .5); backdrop-filter: blur(12px); }
.btn.alt:hover, .btn.glass:hover { transform: translateY(-2px); color: #f0d8a8; background: linear-gradient(180deg, rgba(58, 40, 92, .62), rgba(24, 15, 42, .72)); border-color: rgba(227, 180, 94, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 26px -10px rgba(214, 162, 74, .45); }
.btn.small, .topbar .btn { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.topbar .btn svg { width: 14px; height: 14px; }

/* ---------- page parts ---------- */
.shell { position: relative; z-index: 1; margin-left: 0; min-height: calc(100vh - var(--bar)); }
.page-title, .page-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: 0; line-height: 1.08; }
.panel-glass { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.with-side { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1288px; margin: 0 auto; padding: 32px 24px 72px; }
.with-side > .site { max-width: none; margin: 0; padding: 0; min-width: 0; }
.side-list { position: sticky; top: calc(var(--bar) + 16px); display: grid; gap: 2px; padding: 11px; background: var(--glass); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.side-list a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 9px; color: var(--ink-3); font-size: 14px; font-weight: 700; transition: background-color .15s, color .15s; }
.side-list a svg { width: 17px; height: 17px; flex: none; }
.side-list a .n { margin-left: auto; color: var(--zinc-500); font-size: 13px; font-weight: 500; }
.side-list a:hover { background: rgba(214, 190, 255, .08); color: var(--ink-1); }
.side-list a.on { background: rgba(227, 180, 94, .12); color: var(--gold); }

/* ---------- commands page ---------- */
.with-side .page-head { padding-top: 0; align-items: flex-end; }
.with-side .page-head h1 { margin-top: 16px; font-size: 40px; }
.page-head p { color: var(--ink-2); }
.page-head p code, .c-more code { color: var(--purple-light); }
.icon-tile { background: rgba(122, 43, 226, .16); border: 1px solid var(--line-strong); color: var(--purple-light); box-shadow: none; }
.head-tools { display: flex; align-items: stretch; gap: 10px; flex: 1 1 100%; }
.head-tools .mode, .head-tools .searchbox { box-sizing: border-box; height: 46px; margin: 0; }
.head-tools .mode button { height: 100%; }
.mode { flex: none; padding: 4px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); }
.mode button { color: var(--ink-3); }
.mode button.on { background: var(--gold); color: #231503; box-shadow: none; }
/* outline drawn as an inset shadow, not a border: iPhone Safari slices the top and bottom off a 1px border on blurred glass
   (same reason the !/ switch beside it uses one) */
.searchbox { flex: 1; width: auto; max-width: none; height: 46px; border-radius: 12px; background: var(--glass); border: 0; box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); transition: box-shadow .15s; padding: 0 8px 0 15px; }
.searchbox:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.searchbox:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.searchbox input { color: var(--ink-1); }
.searchbox input::placeholder { color: var(--ink-3); }
.searchbox kbd { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-3); box-shadow: none; }
.rule { background: var(--line); }
.cat-head h2 { font-size: 24px; }
.cat-head .n { color: var(--ink-3); font: 500 14px var(--sans, inherit); }
.clist { display: grid; gap: 8px; max-width: none; }
.crow, .crow + .crow { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); transition: border-color .15s; }
.crow:hover { border-color: var(--line-strong); }
.crow summary, .crow summary:hover, .crow[open] summary { background: none; }
.crow[open] { background: rgba(20, 13, 33, .9); border-color: rgba(227, 180, 94, .45); }
.crow[open] summary { border-bottom: 1px solid var(--line); }
.crow[open] .chev { color: var(--gold); }
.c-name { color: var(--ink-1); }
.c-meta { color: var(--ink-3); }
.d-desc { color: var(--ink-2); }
.usage { background: rgba(2, 1, 6, .55); border: 1px solid var(--line); box-shadow: none; }
.icon-btn, .round-btn { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); box-shadow: none; transition: border-color .15s, color .15s; }
.icon-btn:hover, .round-btn:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.chip, .tag, .tag.perm { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); box-shadow: none; }
.tag.perm.hot { border-color: rgba(227, 180, 94, .6); color: var(--gold); background: transparent; }
.facts dt { color: var(--ink-3); }
.facts dd, .subs-list span { color: var(--ink-2); }
.empty-search { padding: 28px 20px; text-align: center; color: var(--ink-2); background: var(--glass); border: 1px solid var(--line); border-radius: 14px; }

/* ---------- documentation ---------- */
.guide-site, .faq-site { padding-top: 40px; padding-bottom: 72px; }
.guide-site .page-head, .faq-site .page-head { padding-top: 0; }
.guide-site .page-head h1, .faq-site .page-head h1 { margin-top: 0; font-size: 40px; }
.guide-site .head-tools .searchbox { width: auto; }
.g-side { top: calc(var(--bar) + 16px); }
.g-guide, .g-cat-head, [id^="g-"] { scroll-margin-top: calc(var(--bar) + 16px); }
.g-guide { padding: 24px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.g-head, .g-head:hover { background: none; }
.g-short, .g-use, .g-facts { color: var(--ink-2); }
.sc-tabs::before { background: var(--line); }
.sc-ind { background: var(--gold); }
.sc-tab:hover, .sc-tab.on { background: rgba(214, 190, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.sc-tab b { color: var(--ink-2); }
.sc-tab span { color: var(--ink-3); }
.sc-tab.on b { color: var(--ink-1); }
.sc-tab.on span { color: var(--ink-2); }
.g-guide .sc-tab.on b::before { color: #231503; background: var(--gold); box-shadow: none; }
.gd-cmd { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); box-shadow: none; }
.gd-cmd:hover { background: transparent; border-color: var(--gold); color: var(--gold); }

/* the documentation layout: menu, article, on this page */
body:has(.guide-site) .sky { opacity: .28; }
.g-cat-head .icon-tile { display: none; }
.guide-site { max-width: 1400px; padding-top: 0; padding-bottom: 0; }
.guide { grid-template-columns: 232px minmax(0, 1fr) 196px; gap: 64px; padding-top: 40px; padding-bottom: 96px; }
.guide[data-active] .g-topic:not(.is-active) { display: none; }
.guide.searching[data-active] .g-topic:not(.g-cat) { display: none; }
.guide.searching[data-active] .g-cat.g-topic:not(.hidden) { display: block; }
.guide.searching .g-pager, .guide.searching .g-rail { display: none; }
.guide[data-active^="guide-"] .g-main { grid-column: 2 / -1; }
.g-side { top: calc(var(--bar) + 24px); max-height: calc(100vh - var(--bar) - 48px); padding-right: 6px; }
.guide-site .g-side .searchbox { display: flex; width: 100%; height: 42px; margin-bottom: 8px; }
.g-nav-group { margin-top: 24px; }
.g-nav-label { margin: 0 0 8px; color: var(--ink-1); font-size: 14px; font-weight: 700; }
.g-nav-list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.g-nav-list a { margin-left: -1px; padding: 6px 12px; border-left: 2px solid transparent; color: var(--ink-3); font-size: 14.5px; line-height: 1.4; transition: color .15s; }
.g-nav-list a:hover { color: var(--ink-1); }
.g-nav-list a.on { border-left-color: var(--gold); color: var(--gold); font-weight: 700; }
.g-main { max-width: 860px; }
.guide[data-active^="guide-"] .g-main { max-width: none; }
.g-cat + .g-cat { margin-top: 0; }
.guide.searching .g-cat + .g-cat { margin-top: 48px; }
.g-cat-head { display: block; margin-bottom: 28px; }
.g-cat-head h1, .g-cat-head h2 { margin: 0; color: var(--ink-1); font: 700 clamp(30px, 3vw, 38px)/1.15 var(--sans); letter-spacing: -.02em; }
.g-cat-head p { margin: 10px 0 0; max-width: 62ch; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.g-guides { display: block; margin: 0; }
.g-guide { padding: 0; background: none; border: 0; border-radius: 0; backdrop-filter: none; }
.g-start h3, .g-start h2.g-sub { margin: 36px 0 12px; color: var(--ink-1); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.g-start p { margin: 14px 0; color: var(--ink-2); line-height: 1.7; }
.g-start .g-steps { color: var(--ink-2); font-size: 16px; }
.g-start a, .g-next a { color: var(--gold); }
.g-start a:hover { color: var(--gold-light); }
.g-next { margin: 0; padding-left: 20px; color: var(--ink-3); line-height: 2; }
.g-cmd, .g-cmd:hover, .g-cmd[open] { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.g-cmd { scroll-margin-top: calc(var(--bar) + 24px); }
article.g-cmd { padding: 32px 0; border-top: 1px solid var(--line); }
.g-cmd + .g-cmd { margin-top: 0; }
.g-cmd:target, .g-cmd.flash { border-color: var(--line); box-shadow: none; }
.g-cmd.flash > .g-head .g-name { color: var(--gold); }
article.g-cmd > .g-head { min-height: 0; padding: 0; cursor: default; }
article.g-cmd > .g-head .g-title { margin: 0; }
article.g-cmd > .g-head .g-name { color: var(--ink-1); font: 600 21px/1.3 var(--mono); letter-spacing: -.02em; transition: color .2s; }
article.g-cmd > .g-body { padding: 8px 0 0; border-top: 0; }
.g-desc { color: var(--ink-2); line-height: 1.7; }
.g-h { color: var(--ink-1); font-size: 15px; }
.g-steps { color: var(--ink-2); }
.g-steps li::marker { color: var(--gold); }
.g-steps b { color: var(--ink-1); }
.g-facts dd { color: var(--ink-2); }
.g-subwrap { border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.g-subwrap > summary { border-radius: 10px; color: var(--ink-1); }
.g-sub-names { color: var(--ink-3); }
.g-subs { padding: 0 14px 6px; }
.g-sub, .g-sub[open] { background: none; border-top: 1px solid var(--line); }
.g-sub > .g-head { min-height: 48px; padding: 10px 0; }
.g-sub > .g-body { padding: 4px 0 18px; border-top: 0; }
.g-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.g-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s; }
.g-pager a:hover { border-color: var(--gold); }
.g-pager a.next { grid-column: 2; text-align: right; }
.g-pager span { color: var(--ink-3); font-size: 13.5px; }
.g-pager b { color: var(--ink-1); font-size: 16px; }
.g-rail { position: sticky; top: calc(var(--bar) + 24px); max-height: calc(100vh - var(--bar) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.g-rail p { margin: 8px 0 8px; color: var(--ink-1); font-size: 14px; font-weight: 700; }
.g-rail a { display: block; padding: 3px 0; color: var(--ink-3); font: 500 13px/1.5 var(--mono); overflow-wrap: anywhere; transition: color .15s; }
.g-rail a:hover { color: var(--ink-1); }
.g-rail a.on { color: var(--gold); }
@media (max-width: 1240px) {
  .guide { grid-template-columns: 216px minmax(0, 1fr); gap: 48px; }
  .g-rail { display: none; }
}
@media (max-width: 960px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 64px; }
  .guide[data-active^="guide-"] .g-main { grid-column: auto; }
  .g-side { position: static; max-height: none; padding: 0; }
  .g-nav { padding: 0 14px 16px; }
  .g-nav-group:first-child { margin-top: 4px; }
  .g-nav-list a { padding-block: 9px; }
  article.g-cmd { padding: 24px 0; }
  article.g-cmd > .g-head .g-name { font-size: 18px; overflow-wrap: anywhere; }
}

/* ---------- faq ---------- */
.faq-site { max-width: 860px; }
.faq-group { margin-top: 40px; }
.faq-group h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; }
.faq-list { display: grid; gap: 8px; }
.faq { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.faq:hover { border-color: var(--line-strong); }
.faq[open] { background: rgba(20, 13, 33, .9); border-color: rgba(227, 180, 94, .45); }
.faq[open] .faq-chev { color: var(--gold); }
.faq-a p { color: var(--ink-2); }
.faq-a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-a code { color: var(--purple-light); }

/* ---------- changelog ---------- */
.cl-list { display: grid; gap: 12px; margin-top: 32px; }
.cl-item { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; backdrop-filter: blur(14px); scroll-margin-top: calc(var(--bar) + 16px); }
.cl-item:first-child:not(.cl-older .cl-item) { border-color: rgba(227, 180, 94, .45); }  /* gold = the newest release only, not the first one inside "Older releases" */
.cl-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cl-top h2 { margin: 0; font-size: 20px; font-weight: 700; }
.cl-date { color: var(--ink-3); font-size: 14px; }
.cl-sum { margin: 6px 0 0; color: var(--ink-1); }
.cl-item h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.cl-item ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.cl-item li { color: var(--ink-2); }
.cl-item code { color: var(--purple-light); }

/* ---------- premium ---------- */
.pm-head { padding-top: 48px; }
.plan { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; backdrop-filter: blur(14px); }
.plan.featured { background: rgba(20, 13, 33, .9); border-color: rgba(227, 180, 94, .55); box-shadow: 0 18px 50px -28px rgba(214, 162, 74, .55); }
.plan p { color: var(--ink-2); }
.plan-tag { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); box-shadow: none; }
.plan.featured .plan-tag { border-color: rgba(227, 180, 94, .6); color: var(--gold); }
.plan-soon { background: transparent; border: 1px solid var(--line); color: var(--ink-3); box-shadow: none; }
.v2-head p { color: var(--ink-2); }
.v2-feat, .pm-perk { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; backdrop-filter: blur(14px); }
.v2-feat:hover, .pm-perk:hover { border-color: var(--line-strong); }
.v2-feat p, .pm-perk p { color: var(--ink-2); }
.pm-ico { background: rgba(122, 43, 226, .16); border: 1px solid var(--line-strong); color: var(--purple-light); box-shadow: none; }

/* ---------- terms and privacy ---------- */
.legal-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 32px; padding-bottom: 72px; }
.legal-wrap .side-list a { min-height: 36px; padding-block: 6px; font-weight: 500; line-height: 1.35; }
.legal-wrap h3 { scroll-margin-top: calc(var(--bar) + 16px); color: var(--ink-1); }
.legal-wrap p, .legal-wrap li { color: var(--ink-2); }
.legal-wrap > :not(.side-list) { min-width: 0; padding: 28px 32px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }

/* ---------- server picker ---------- */
.sv-card.panel-glass { background: var(--glass); box-shadow: none; transition: border-color .15s, transform .18s; }
.sv-card.panel-glass:hover { background: rgba(20, 13, 33, .9); border-color: rgba(227, 180, 94, .55); transform: translateY(-2px); }
.sv-text small { color: var(--ink-3); }
.sv-open { color: var(--gold); }
.plan-chip { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); box-shadow: none; }
.plan-chip.pro { border-color: rgba(227, 180, 94, .6); color: var(--gold); background: transparent; }
.sv-add.panel-glass { border-style: dashed; }
.sv-plus { background: transparent; border: 1px solid var(--line-strong); color: var(--gold); box-shadow: none; }

/* ---------- dashboard frame ---------- */
.site:has(.dash) { max-width: 1288px; padding-top: 32px; padding-bottom: 96px; }
.site:has(.dash) .page-head { padding-top: 0; align-items: center; }
.site:has(.dash) .page-head h1 { margin-top: 0; font-size: 32px; }
.tabs { top: calc(var(--bar) + 16px); max-height: calc(100vh - var(--bar) - 32px); overflow-y: auto; scrollbar-width: none; }
.tabs a:hover, .rl:hover, .rl-sub a:hover { background: rgba(214, 190, 255, .08); color: var(--ink-1); }
.tabs a.on, .rl-sub a.on { background: rgba(227, 180, 94, .12); color: var(--gold); box-shadow: none; }
.tabs a.on .ico, .rl-sub a.on .ico, .rl.on .ico { color: var(--gold); }
.rl.on { background: none; color: var(--ink-1); }
.rl-sub { border-left-color: var(--line); }
.tab-rule { background: var(--line); }
.panel { background: rgba(10, 6, 18, .86); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.pane .settings > div, .panel section { border-color: var(--line); }

/* ---------- dashboard controls ---------- */
.dash input[type=text], .dash input:not([type]), .dash input[type=number], .dash textarea, .dash select, .cs-btn {
  background: rgba(2, 1, 6, .6); border: 1px solid var(--line); border-radius: 10px; color: var(--ink-1); box-shadow: none; }
.dash input[type=text]:hover, .dash input:not([type]):hover, .dash input[type=number]:hover, .dash textarea:hover, .dash select:hover, .cs-btn:hover { border-color: var(--line-strong); }
.dash input[type=text]:focus, .dash input:not([type]):focus, .dash input[type=number]:focus, .dash textarea:focus, .dash select:focus, .cs.open .cs-btn {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 180, 94, .16); }
/* colour pickers (ticket embed colour): a rounded swatch that matches the other fields */
.dash input[type=color] { width: 100%; height: 42px; padding: 4px; background: rgba(2, 1, 6, .6); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; }
.dash input[type=color]:hover { border-color: var(--line-strong); }
.dash input[type=color]:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 180, 94, .16); }
.dash input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.dash input[type=color]::-webkit-color-swatch { border: none; border-radius: 7px; }
.dash input[type=color]::-moz-color-swatch { border: none; border-radius: 7px; }
.cs-menu { background: #0e0918; border: 1px solid var(--line-strong); border-radius: 10px; }
.cs-opt:hover { background: rgba(122, 43, 226, .3); }
.cs-opt.on { background: rgba(227, 180, 94, .12); color: var(--gold); }
.switch input:checked { background: var(--purple); box-shadow: none; }
.switch input:focus-visible { outline-color: var(--gold); }
.pane .settings > .tk-card, .pane .settings .tf-steps > .tk-card { background: rgba(20, 13, 33, .55); border-color: var(--line); border-radius: 14px; }

/* the real dropdown stays hidden behind the styled one, even when it's switched off */
select.cs-native, select.cs-native[disabled] { opacity: 0 !important; }
.tabs .rl-sub a.on, .tabs .rl-sub a.on .ico { color: var(--gold); }
.tabs .rl-sub a.on { background: rgba(227, 180, 94, .12); box-shadow: none; }

/* a very long server name stops at two lines */
.guild-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-width: 0; overflow-wrap: anywhere; }

/* a long hint can wrap, so side-by-side fields line up along their bottom edge */
.tk-row2, .tk-row3, .pp-where { align-items: end; }

/* dashboard buttons: a dark purple base that fills solid purple on hover, never white */
.btn.white::before { display: none; }
.dash .btn.white { background: rgba(122, 43, 226, .2); border: 1px solid rgba(197, 139, 255, .42); color: var(--ink-1); box-shadow: none; }
.dash .btn.white::after { display: none; }
.dash .btn.white:hover { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: none; }
.link-btn { color: var(--ink-2); }
.link-btn:hover { background: rgba(122, 43, 226, .3); color: #fff; }

/* the save bar: a dot, how many changes and where, Discard, Save. It floats above the page, clear of the phone's home bar,
   and the page gets room underneath while it shows so it never covers the last setting */
.savebar { bottom: calc(max(16px, calc(env(safe-area-inset-bottom) + 8px)) + var(--toolbar-gap, 0px)); width: min(640px, calc(100vw - 32px)); max-width: none; gap: 12px;
  padding: 10px 10px 10px 16px; background: rgba(14, 9, 24, .97); border: 1px solid rgba(181, 156, 255, .28); border-radius: 14px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .9); }
.savebar-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--v-4); box-shadow: 0 0 0 4px rgba(181, 156, 255, .16); }
.savebar-info { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.savebar-text { color: var(--ink-1); font-size: 14px; font-weight: 700; }
.savebar-where { overflow: hidden; color: var(--ink-3); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.savebar-where:empty { display: none; }
.savebar #discard { flex: none; padding: 0 6px; color: var(--ink-2); }
.savebar #save-all { flex: none; }
body.unsaved { padding-bottom: 96px; }
@media (max-width: 640px) {
  .savebar { bottom: calc(max(10px, calc(env(safe-area-inset-bottom) + 6px)) + var(--toolbar-gap, 0px)); width: calc(100vw - 20px); gap: 8px; padding: 8px 8px 8px 12px; }
  .savebar-text { font-size: 13.5px; }
  .savebar-where { font-size: 12px; }
  body.unsaved { padding-bottom: 88px; }
}
.dash .savebar .btn.white, .dash .savebar .btn.white:hover { color: #231503; background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 46%, var(--gold-deep) 100%); border-color: #9e7633; }
.dash .savebar .btn.white:hover { box-shadow: 0 10px 24px -10px rgba(214, 162, 74, .8); }

/* ---------- homepage ---------- */
.home { max-width: 1288px; margin: 0 auto; padding: 0 24px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; min-height: calc(100vh - var(--bar) - 40px); min-height: calc(100svh - var(--bar) - 40px); padding-block: 40px 64px; }
.home-copy h1 { margin: 0; font: 800 clamp(40px, 5.2vw, 72px)/1.04 var(--display); color: var(--ink-1); text-wrap: balance; text-shadow: 0 2px 30px rgba(2, 1, 6, .9); }
.home-lead { max-width: 34em; margin: 22px 0 0; color: var(--ink-2); font-size: 19px; line-height: 1.55; text-shadow: 0 1px 18px rgba(2, 1, 6, .95); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home .v2-demo { min-width: 0; }
/* homepage: "One bot. Everything connected." six boxes, everything Crowe covers at a glance */
.kit { padding-block: 24px 40px; }
.kit-head { max-width: 640px; }
.kit-head h2 { margin: 0; font: 700 clamp(26px, 2.8vw, 38px)/1.14 var(--display); color: var(--ink-1); text-wrap: balance;
  -webkit-font-smoothing: antialiased; transform: translateZ(0); }
.kit-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.kit-box { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: inherit;
  transition: border-color .15s, background-color .15s, transform .18s; }
.kit-box:hover { border-color: var(--line-strong); background: var(--n-850); transform: translateY(-2px); }
.kit-box:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.kit-ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(122, 43, 226, .14); border: 1px solid rgba(197, 139, 255, .22); color: var(--purple-light); }
.kit-ico .ico { width: 22px; height: 22px; }
.kit-t { font-weight: 700; font-size: 16px; color: var(--ink-1); }
.kit-d { font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kit-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .kit-box { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .kit-box { transition: none; } .kit-box:hover { transform: none; } }
.scenes { display: grid; gap: 112px; padding-block: 48px 112px; }
.scene { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; scroll-margin-top: calc(var(--bar) + 24px); }
.scene:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.scene:nth-child(even) .scene-copy { order: 2; }
.scene-copy h2 { margin: 0; font: 800 clamp(26px, 2.8vw, 38px)/1.14 var(--display); color: var(--ink-1); text-wrap: balance; text-shadow: 0 2px 24px rgba(2, 1, 6, .9); }
.scene-copy p { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; text-shadow: 0 1px 16px rgba(2, 1, 6, .95); }
/* big titles: smooth greyscale edges (Windows ClearType gives the heavy display font red/blue fringes), no dark glow
   behind them now the stars are gone, and the smaller titles one weight lighter so the letters stay open */
.home-copy h1, .scene-copy h2, .home-end h2 { text-shadow: none; transform: translateZ(0); backface-visibility: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: geometricPrecision; }
.scene-copy h2, .home-end h2 { font-weight: 700; letter-spacing: .005em; }
.scene-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--gold); font-size: 15px; font-weight: 700; }
.scene-link:hover { color: var(--gold-light); }
.scene-chev { width: 16px; height: 16px; transition: transform .18s; }
.scene-link:hover .scene-chev { transform: translateX(3px); }
.scene-demo { min-width: 0; }
.home-end { max-width: 760px; margin: 0 auto; padding-block: 24px 64px; text-align: center; }
.home-end h2 { margin: 0; font: 800 clamp(28px, 3.4vw, 46px)/1.14 var(--display); color: var(--ink-1); text-wrap: balance; }
.home-end h2 code { font: inherit; color: var(--gold); background: none; border: 0; padding: 0; }
.home-end p { margin: 18px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.home-end .home-actions { justify-content: center; }

/* ---------- footer ---------- */
.foot { position: relative; background: rgba(2, 1, 6, .72); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.foot .about .accent { color: var(--gold); }

/* ---------- phones ---------- */
@media (max-width: 960px) {
  .page-title, .page-head h1, .with-side .page-head h1, .guide-site .page-head h1, .faq-site .page-head h1 { font-size: clamp(26px, 8.4vw, 40px); overflow-wrap: anywhere; }
  .g-guide { padding: 16px; }
  .home { padding: 0 16px; }
  .home-hero, .scene, .scene:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-hero { min-height: 0; padding-block: 32px 48px; }
  .scene:nth-child(even) .scene-copy { order: 0; }
  .scenes { gap: 72px; padding-block: 24px 72px; }
  .home-end { padding-bottom: 40px; }
  footer.foot { margin-top: 64px; }
  .site:has(.dash) .page-head h1 { font-size: clamp(20px, 6vw, 28px); line-height: 1.2; }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .legal-wrap > :not(.side-list) { padding: 20px 16px; }
  .topbar { gap: 12px; padding: 0 16px; }
  .topbar-end { gap: 8px; }
  .topbar .btn { padding: 0 13px; }
  .topbar .btn svg { display: none; }
  .nav-toggle { display: grid; }
  .topnav { position: absolute; top: var(--bar); left: 12px; right: 12px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: rgba(10, 6, 18, .97); border: 1px solid var(--line); border-radius: 14px; }
  .topnav.open { display: flex; }
  .topnav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; }
  .with-side { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 16px 56px; }
  .side-list { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .side-list a { flex: none; }
  body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2, 1, 6, .5), rgba(2, 1, 6, .18) 60%, rgba(2, 1, 6, .42)); }
}
@media (max-width: 400px) {
  .brand { font-size: 0; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn.main::after, .btn.white::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- documentation: reference layout and phones ---------- */
.g-menu-btn, .g-scrim, .g-nav-top, .g-onpage { display: none; }
.g-h { margin: 24px 0 10px; color: var(--ink-1); font-size: 14.5px; font-weight: 700; }
.g-code { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 5px 6px 5px 14px; background: rgba(214, 190, 255, .05); border: 1px solid var(--line); border-radius: 8px; }
.g-code + .g-code { margin-top: 8px; }
.g-code code { flex: 1; min-width: 0; padding: 6px 0; overflow-x: auto; background: none; border: 0; border-radius: 0; color: var(--ink-1); font: 500 14px/1.5 var(--mono); white-space: nowrap; scrollbar-width: none; }
.g-code code::-webkit-scrollbar { display: none; }
.g-code .icon-btn { flex: none; }
.g-a { color: var(--purple-light); }
.g-params { margin: 0; border-top: 1px solid var(--line); }
.g-param { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.g-param dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.g-param dt code { padding: 0; background: none; border: 0; color: var(--purple-light); font: 600 14px/1.5 var(--mono); }
.g-param dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.g-req, .g-req.opt { padding: 0; background: none; border-radius: 0; color: var(--gold); font-size: 12.5px; font-weight: 600; }
.g-req.opt { color: var(--ink-3); }
.g-start .g-params { margin-top: 14px; }
.g-facts { grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); font-size: 15px; }
.g-facts dt, .g-facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.g-facts dt { color: var(--ink-3); font-weight: 500; }
.g-facts dd { align-items: center; color: var(--ink-1); }
.g-facts code { padding: 0; background: none; border: 0; color: var(--ink-1); font: 500 14px/1.5 var(--mono); }
.g-facts .tag, .g-facts .tag.perm, .g-facts .tag.hot { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--ink-1); font: 500 15px/1.5 var(--sans); }
.g-subwrap { margin-top: 24px; }
@media (max-width: 1240px) {
  .g-onpage { display: block; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 8px; }
  .g-onpage > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; color: var(--ink-1); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
  .g-onpage > summary::-webkit-details-marker { display: none; }
  .g-onpage > summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
  .g-onpage[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
  .g-onpage nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 16px; max-height: 50vh; overflow-y: auto; padding: 4px 14px 12px; border-top: 1px solid var(--line); }
  .g-onpage a { padding: 9px 0; color: var(--ink-2); font: 500 14px/1.4 var(--mono); overflow-wrap: anywhere; }
  .g-onpage a:hover { color: var(--gold); }
  .guide.searching .g-onpage { display: none; }
}
@media (max-width: 960px) {
  .guide { gap: 0; padding-top: 0; }
  .g-main { padding-top: 28px; }
  .g-guide { padding: 0; }
  .g-cmd { scroll-margin-top: calc(var(--bar) + 76px); }
  .guide[data-active] .g-side { position: sticky; top: var(--bar); z-index: 30; display: flex; align-items: center; gap: 8px; height: 60px; max-height: none; margin-inline: -16px; padding: 0 16px; overflow: visible; background: #06040c; border-bottom: 1px solid var(--line);
    -webkit-backface-visibility: hidden; backface-visibility: hidden; }  /* own layer so iPhone Safari doesn't make it bounce while scrolling (no transform: the menu inside is position: fixed) */
  .guide[data-active] .g-menu-btn { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; height: 44px; padding: 0; background: none; border: 0; color: var(--ink-1); font: inherit; cursor: pointer; text-align: left; }
  .g-menu-btn .ico, .g-menu-btn svg { flex: none; width: 20px; height: 20px; color: var(--gold); }
  .g-where { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: 15px; white-space: nowrap; }
  .g-where #g-crumb { flex: none; color: var(--ink-3); font-weight: 500; }
  .g-where #g-crumb:not(:empty)::after { content: "/"; margin-left: 7px; color: var(--ink-3); }
  .g-where b { min-width: 0; overflow: hidden; color: var(--ink-1); font-weight: 700; text-overflow: ellipsis; }
  .guide[data-active] .g-side .searchbox { flex: none; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 8px; }
  .guide[data-active] .g-side .searchbox kbd { display: none; }
  .guide[data-active] .g-side .searchbox input { flex: none; width: 0; padding: 0; opacity: 0; }
  .guide[data-active] .g-side:focus-within .searchbox:focus-within, .guide.searching[data-active] .g-side .searchbox { flex: 1; justify-content: flex-start; width: auto; padding: 0 12px; }
  .guide[data-active] .g-side .searchbox:focus-within input, .guide.searching[data-active] .g-side .searchbox input { flex: 1; width: 100%; min-width: 0; margin-left: 10px; opacity: 1; }
  .guide[data-active] .g-side:has(.searchbox:focus-within) .g-menu-btn, .guide.searching[data-active] .g-menu-btn { display: none; }
  .guide[data-active] .g-nav { position: fixed; top: var(--bar); bottom: 0; left: 0; z-index: 40; width: min(320px, 86vw); padding: 0 20px 32px; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; background: #08050f; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s .24s; }
  .guide.menu-open[data-active] .g-nav { visibility: visible; transform: none; transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
  .guide.menu-open .g-scrim { display: block; position: fixed; inset: var(--bar) 0 0; z-index: 35; background: rgba(0, 0, 0, .62); }
  .guide[data-active] .g-nav-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 60px; margin-inline: -20px; padding: 0 12px 0 20px; background: #08050f; border-bottom: 1px solid var(--line); color: var(--ink-1); font-size: 16px; }
  #g-nav-close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--ink-2); cursor: pointer; }
  #g-nav-close svg { width: 20px; height: 20px; }
  .g-nav-list a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 16px; }
  body.g-lock { overflow: hidden; }
  .g-cat-head { margin-bottom: 22px; }
  .g-cat-head h1, .g-cat-head h2 { font-size: 30px; }
  .g-cat-head p { font-size: 16px; }
  .g-sub-names { display: none; }
}
@media (max-width: 640px) {
  .g-param { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .g-facts { grid-template-columns: minmax(104px, 36%) minmax(0, 1fr); }
  .g-pager a { padding: 12px; }
  .g-pager b { font-size: 15px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .guide[data-active] .g-nav, .guide.menu-open[data-active] .g-nav { transition: none; }
}

/* commands page on phones: the !/ switch and the search stay on one row */
.head-tools:has(> .mode) { flex-wrap: nowrap; }
.head-tools:has(> .mode) .searchbox { flex: 1 1 0; min-width: 0; }

/* ---------- Dashboard → Cases: search every moderation case ---------- */
.case-intro { margin: -10px 0 18px; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 10px; margin-bottom: 18px; }
.case-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 14px; border-radius: 14px;
  background: rgba(11, 10, 13, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.case-stat small { font-size: 12.5px; color: var(--ink-3); }
.case-stat b { font-size: 20px; font-weight: 700; color: var(--ink-1); }
.case-tools { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.case-tools .searchbox { flex: 1 1 0; min-width: 0; }
.case-tools select, .case-tools .cs { width: 220px; flex: none; }  /* .cs = the site's custom dropdown that replaces the select */
.case-count { margin: 0 0 10px; font-size: 13.5px; }
.case-list { display: flex; flex-direction: column; gap: 10px; }
.case { padding: 14px 16px; border-radius: 14px; background: rgba(11, 10, 13, .55); box-shadow: inset 0 0 0 1px var(--line); }
.case.is-removed .case-reason { text-decoration: line-through; color: var(--ink-3); }
.case-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.case-no { font: 600 13px var(--mono); color: var(--ink-3); }
.case-top time { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.case-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--zinc-400); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.case-chip.bad { color: var(--bad); background: rgba(248, 113, 113, .08); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .3); }
.case-chip.warn { color: var(--gold); background: rgba(227, 180, 94, .08); box-shadow: inset 0 0 0 1px rgba(227, 180, 94, .3); }
.case-chip.good { color: var(--good); background: rgba(74, 222, 128, .08); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .3); }
.case-who { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-1); text-decoration: none; max-width: 100%; }
.case-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-who .muted { font: 12px var(--mono); }
.case-who .case-note { font-size: 13.5px; color: var(--ink-3); }
.case-who:hover b { text-decoration: underline; }
.case-avatar { width: 24px; height: 24px; border-radius: 50%; flex: none; object-fit: cover; }
.case-avatar.blank { background: var(--n-700); }
.case-reason { margin: 8px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px;
  font-size: 13px; color: var(--ink-3); }
.case-foot b { color: var(--ink-2); font-weight: 600; }
.case-foot a { color: var(--purple-light); }
.case-remove { margin: 0; }
.case-empty { padding: 28px 16px; text-align: center; color: var(--ink-3); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.case-pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
@media (max-width: 640px) {
  .case-tools { flex-wrap: wrap; }
  .case-tools:has(select) .searchbox { flex-basis: 100%; }  /* with a filter menu: search on top; without: one row */
  .case-tools select, .case-tools .cs { flex: 1 1 0; width: auto; min-width: 0; }
  .case-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .case-stat { padding: 9px 11px; }
  .case-stat small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Public leaderboard: /lb/<name> ---------- */
.lb-site { max-width: 1080px; padding-top: 40px; padding-bottom: 96px; }
.lb-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.lb-head h1 { margin: 2px 0 4px; font-family: var(--display); font-size: clamp(28px, 5vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.lb-head .muted { margin: 0; }
.lb-icon { width: 76px; height: 76px; border-radius: 22px; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
span.lb-icon { display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.lb-kicker { margin: 0; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.lb-grid.has-side { grid-template-columns: minmax(0, 1fr) 280px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(11, 10, 13, .55);
  box-shadow: inset 0 0 0 1px var(--line); }
.lb-place { width: 30px; flex: none; text-align: center; font: 700 15px var(--mono); color: var(--ink-3); }
.lb-row.m1 .lb-place { color: #ffd76a; } .lb-row.m2 .lb-place { color: #d6dbe4; } .lb-row.m3 .lb-place { color: #e3a26f; }
.lb-row.m1 { box-shadow: inset 0 0 0 1px rgba(255, 215, 106, .45), 0 0 30px -12px rgba(227, 180, 94, .6); }
.lb-row.m2 { box-shadow: inset 0 0 0 1px rgba(214, 219, 228, .35); }
.lb-row.m3 { box-shadow: inset 0 0 0 1px rgba(227, 162, 111, .4); }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--n-700); }
.lb-who { flex: 1 1 auto; min-width: 0; }
.lb-who b { display: block; font-weight: 600; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar { display: block; width: 100%; height: 6px; margin-top: 8px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07);
  overflow: hidden; appearance: none; -webkit-appearance: none; }
.lb-bar::-webkit-progress-bar { background: rgba(255, 255, 255, .07); border-radius: 999px; }
.lb-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--purple), var(--gold)); border-radius: 999px; }
.lb-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--purple), var(--gold)); border-radius: 999px; }
.lb-nums { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.lb-nums b { font-weight: 700; color: var(--ink-1); }
.lb-nums span { font: 12.5px var(--mono); color: var(--ink-3); }
.lb-side { padding: 18px; border-radius: 16px; background: rgba(11, 10, 13, .55); box-shadow: inset 0 0 0 1px var(--line); position: sticky; top: 96px; }
.lb-side h2 { margin: 0 0 12px; font-size: 16px; }
.lb-rewards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lb-rewards li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.lb-lvl { font: 600 12.5px var(--mono); color: var(--ink-3); flex: none; }
.lb-role { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-1); }
.lb-role svg { width: 10px; height: 10px; flex: none; }
.lb-empty, .lb-missing { padding: 40px 20px; text-align: center; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.lb-missing h1 { color: var(--ink-1); font-size: 26px; margin: 0 0 8px; }
.lb-missing .btn { margin: 16px 4px 0; }
.lb-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding: 20px 22px;
  border-radius: 16px; background: radial-gradient(500px 160px at 0 0, rgba(122, 43, 226, .25), transparent 70%), rgba(11, 10, 13, .55);
  box-shadow: inset 0 0 0 1px var(--line-strong); }
.lb-cta b { display: block; color: var(--ink-1); font-size: 17px; }
.lb-link { margin: 8px 0 0; font-size: 13.5px; }
.lb-link a { color: var(--purple-light); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .lb-grid.has-side { grid-template-columns: minmax(0, 1fr); }
  .lb-side { position: static; order: -1; }
}
@media (max-width: 520px) {
  .lb-head { gap: 14px; }
  .lb-icon { width: 56px; height: 56px; border-radius: 16px; }
  .lb-row { gap: 10px; padding: 10px 12px; }
  .lb-place { width: 22px; font-size: 13px; }
  .lb-avatar { width: 34px; height: 34px; }
}

/* ---------- Dashboard → Ticket History ---------- */
.th-staff { margin-bottom: 20px; }
.th-staff h3 { margin: 0 0 10px; font-size: 16px; }
.th-table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.th-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.th-table th { padding: 10px 14px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
  border-bottom: 1px solid var(--line); }
.th-table td { padding: 10px 14px; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid var(--line); }
.th-table tr:last-child td { border-bottom: 0; }
.th-table td:not(:first-child), .th-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.th-table .case-who { margin: 0; }
.th-back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--ink-3); text-decoration: none; }
.th-back:hover { color: var(--ink-1); }
.th-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.th-title h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.th-title h2 .ico { width: 22px; height: 22px; color: var(--v-4); }
.th-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0 0 20px; }
.th-facts > div { padding: 10px 14px; border-radius: 12px; background: rgba(11, 10, 13, .55); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.th-facts dt { font-size: 12px; color: var(--ink-3); }
.th-facts dd { margin: 2px 0 0; color: var(--ink-1); font-weight: 600; overflow-wrap: anywhere; }
.th-facts > .th-wide { grid-column: 1 / -1; }
.th-facts > .th-wide dd { font-weight: 400; white-space: pre-line; }
.th-chat { padding: 8px 0; border-radius: 14px; background: #313338; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.th-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 6px 16px 2px; }
.th-msg:not(.same) { margin-top: 10px; }
.th-msg.same { padding-top: 1px; }
.th-avatar { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.th-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.th-head b { color: #f2f3f5; font-weight: 600; }
.th-head time { font-size: 12px; color: #949ba4; }
.th-body { grid-column: 2; color: #dbdee1; line-height: 1.45; overflow-wrap: anywhere; }
.th-file { display: inline-block; margin: 6px 6px 0 0; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: #00a8fc;
  background: #2b2d31; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); text-decoration: none; }
.th-file:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .th-msg { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding-left: 12px; padding-right: 12px; }
  .th-avatar { width: 32px; height: 32px; }
}

/* Dashboard → Bot Profile */
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 18px; }
.bp-form { display: grid; gap: 18px; }
.bp-files { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bp-form input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: rgba(255, 255, 255, .02); color: var(--ink-3); font: inherit; font-size: 13.5px; cursor: pointer; }
.bp-form input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--v-5); color: #fff; font: inherit; font-weight: 600; font-size: 13px; }
.bp-clear { margin-top: 10px; font-size: 13.5px; }
.bp-rules { font-size: 13px; margin: 0; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-preview { position: sticky; top: 96px; }
.bp-card { position: relative; overflow: hidden; border-radius: 14px; background: #232428; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.bp-banner { height: 120px; background: linear-gradient(135deg, #5b3fd1, #2a1d63); }
.bp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-avatar { position: absolute; top: 76px; left: 16px; width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 6px solid #232428; background: #232428; }
.bp-body { padding: 52px 16px 18px; }
.bp-name { display: flex; align-items: center; gap: 8px; }
.bp-name b { font-size: 19px; color: #f2f3f5; overflow-wrap: anywhere; }
.bp-bio { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; line-height: 1.45;
  color: #dbdee1; white-space: pre-wrap; overflow-wrap: anywhere; }
.bp-bio:empty { display: none; }
@media (max-width: 900px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-preview { position: static; order: -1; }
  .bp-files { grid-template-columns: 1fr; }
}
.th-key { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; }
.th-key b { color: var(--ink-2, #d8d2e8); font-weight: 600; }

/* form tabs: all the same width however long the name; long names end in … (full name on hover) */
.fm-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.fm-chip { justify-content: center; min-width: 0; }
.fm-chip .ico { flex: none; }
.fm-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .fm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fm-delete { white-space: nowrap; }

/* polish: search rows line up (box, dropdown and button all one height) */
.case-tools .searchbox, .case-tools .cs-btn, .case-tools > .btn { box-sizing: border-box; height: 46px; min-height: 46px; }
.case-tools .cs-btn { border-radius: 12px; }
.case-tools > .btn { display: inline-flex; align-items: center; padding-block: 0; border-radius: 12px; }
/* polish: leaderboard bars all end at the same place, silver #2 visible like gold and bronze */
.lb-nums { width: 104px; }
.lb-row.m2 { box-shadow: inset 0 0 0 1px rgba(214, 219, 228, .5); }
@media (max-width: 560px) { .lb-nums { width: 86px; } }
/* polish: a switched-off button looks switched off */
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Add Crowe: gold storm lightning (bolts drawn fresh each strike by app.js), a light sweep and a breathing glow */
.attn-wrap { position: relative; display: inline-flex; flex: none; border-radius: 16px; isolation: isolate; }
.attn-wrap > .btn { position: relative; z-index: 2; animation: attn-glow 2.8s ease-in-out infinite; }
.attn-wrap.strike > .btn { animation: attn-flash .45s ease-out; }
.bolts { position: absolute; left: -16px; top: -16px; width: calc(100% + 32px); height: calc(100% + 32px); z-index: 3; pointer-events: none;
  overflow: visible; filter: drop-shadow(0 0 2px rgba(255, 220, 110, .95)) drop-shadow(0 0 7px rgba(255, 176, 40, .75)); }
.bolts path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bolts .glow { stroke: #ffb51f; stroke-width: 2.6; opacity: .9; }
.bolts .core { stroke: #fffbe8; stroke-width: 1.1; }
.bolts .spark .glow { stroke-width: 1.8; } .bolts .spark .core { stroke-width: .7; }
.bolts .thin .glow { stroke-width: 1.6; opacity: .7; } .bolts .thin .core { stroke-width: .6; }
.bolts .through { mix-blend-mode: screen; }
.bolts .through .glow { stroke: #fff2b8; stroke-width: 3; }
.bolts .zap { animation: zap-flicker var(--life, .4s) steps(1, end) forwards; }
@keyframes zap-flicker { 0% { opacity: 1; } 22% { opacity: .3; } 34% { opacity: 1; } 55% { opacity: .5; } 68% { opacity: 1; } 86% { opacity: .35; } 100% { opacity: 0; } }
.btn.attn::after { animation: attn-sweep 4.6s cubic-bezier(.3, .7, .2, 1) infinite; }
.btn.attn:hover::after { animation: none; }
@keyframes attn-sweep { 0%, 72% { left: -60%; } 90%, 100% { left: 120%; } }
@keyframes attn-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 247, 222, .85), inset 0 -1px 0 rgba(120, 82, 25, .35), 0 1px 2px rgba(0, 0, 0, .5),
    0 10px 26px -8px rgba(214, 162, 74, .55), 0 0 0 0 rgba(255, 200, 70, 0); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 247, 222, .85), inset 0 -1px 0 rgba(120, 82, 25, .35), 0 1px 2px rgba(0, 0, 0, .5),
    0 12px 34px -6px rgba(255, 190, 60, .85), 0 0 22px 2px rgba(255, 200, 70, .35); }
}
@keyframes attn-flash {
  0% { filter: brightness(1.35); box-shadow: inset 0 1px 0 rgba(255, 247, 222, .9), 0 0 34px 8px rgba(255, 210, 90, .75); }
  25% { filter: brightness(1.05); } 40% { filter: brightness(1.3); } 100% { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bolts { display: none; }
  .attn-wrap > .btn, .attn-wrap.strike > .btn, .btn.attn::after { animation: none; }
}
.th-stars { color: var(--gold); letter-spacing: .08em; }
/* stat boxes: however many there are, one even row (two by two on phones when there are four) */
.case-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 160px); justify-content: start; }
@media (max-width: 560px) {
  .case-stats { grid-auto-columns: minmax(0, 1fr); justify-content: stretch; }
  .case-stats:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones: Safari can draw the bolt glow filter as a dark box, and taps flash a highlight box; the bolts keep their own glow line */
.attn-wrap, .attn-wrap .btn { -webkit-tap-highlight-color: transparent; }
.bolts { background: none; }
@media (hover: none), (pointer: coarse) { .bolts { filter: none; } .bolts .glow { opacity: .75; stroke-width: 3.4; } }
/* form picker: keep the inner spacing (a later pane rule was zeroing it) */
.pane .settings > .fm-picker, .pane .fm-picker { padding: 16px 18px; border-top: 1px solid var(--n-850); }
.pane .fm-picker .fm-meta { margin-top: 12px; }

/* Dashboard → Server Stats */
.sc-ranges { display: flex; gap: 8px; margin: 4px 0 16px; }
.sc-range { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.sc-range:hover { color: var(--ink-1); }
.sc-range.on { color: #fff; background: linear-gradient(135deg, rgba(139, 108, 240, .35), rgba(75, 54, 150, .35)); box-shadow: inset 0 0 0 1px var(--v-5); }
.sc-card { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(11, 10, 13, .55); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.sc-card h3 { margin: 0 0 10px; font-size: 15px; }
.sc-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.sc-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.sc-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.sc-key.j { background: #8b6cf0; } .sc-key.l { background: #c08424; }
.sc-chart { display: block; width: 100%; height: auto; }
.sc-chart .sc-axis { fill: var(--ink-3); font: 11px var(--mono); }
.sc-chart .sc-grid { stroke: rgba(255, 255, 255, .06); stroke-dasharray: 3 4; }
.sc-chart .sc-base { stroke: rgba(255, 255, 255, .14); }
.sc-chart .sc-hit:hover rect[fill="transparent"] { fill: rgba(255, 255, 255, .04); }
.sc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 14px; }
.sc-two .sc-card { margin-top: 14px; }
.sc-channels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-channels li { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.sc-channels .lb-bar { margin: 0; }
.sc-channels b { font: 600 12.5px var(--mono); color: var(--ink-2, #d8d2e8); }
.sc-ch { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-1); }
.sc-table { margin-top: 14px; }
.sc-table summary { cursor: pointer; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.sc-table[open] summary { margin-bottom: 10px; }
.sc-empty { display: flex; flex-direction: column; gap: 4px; padding: 28px; border-radius: 16px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) { .sc-two { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sc-tiles:has(> :nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-card { padding: 14px 12px; }
}
/* phones: charts keep readable labels; swipe sideways inside the chart */
.sc-scroll { overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 560px) {
  .sc-scroll .sc-chart { min-width: 560px; }
  .sc-tiles:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-tiles > :nth-child(5):last-child { grid-column: 1 / -1; }
  .sc-channels li { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) auto; }
}

/* /owner: private page for Crowe's owners */
.own { width: min(1100px, 100% - 32px); margin: 24px auto 60px; }
.own-tiles { grid-auto-columns: minmax(0, 1fr); justify-content: stretch; }
.own-note { margin: -4px 0 10px; font-size: 13px; }
.own-features li { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; }
.own-table td small.own-id { display: block; font: 11px var(--mono); }
.own-name { font-weight: 600; color: var(--ink-1); margin-right: 8px; }
.own-prem { color: var(--gold); }
.own-sort { margin: 0; flex-wrap: wrap; }
.own-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.own-log li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.own-log time { font: 12px var(--mono); color: var(--ink-3); flex: none; }
.own-log code { font-size: 12px; color: var(--v-4); }
.own-log span { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2, #d8d2e8); }
@media (max-width: 900px) { .own-tiles { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .own-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .own-features li { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto; } }

/* Dashboard → welcome image card picker */
.wc { display: flex; flex-direction: column; gap: 8px; }
.wc-label { font-size: 14px; font-weight: 600; color: var(--ink-1); display: flex; flex-direction: column; gap: 2px; }
.wc-label small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.wc-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wc-opt { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.wc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wc-box { display: grid; place-items: center; aspect-ratio: 1024 / 440; border-radius: 12px; overflow: hidden; background: var(--n-850, #141218);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.wc-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-off { font-size: 13px; color: var(--ink-3); }
.wc-name { font-size: 13px; color: var(--ink-3); text-align: center; }
.wc-opt:hover .wc-box { box-shadow: inset 0 0 0 1px var(--v-5, #8b6cf0); }
.wc-opt input:checked + .wc-box { box-shadow: 0 0 0 2px var(--gold); }
.wc-opt input:checked ~ .wc-name { color: var(--ink-1); font-weight: 600; }
.wc-opt input:focus-visible + .wc-box { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 640px) { .wc-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Add Crowe: Safari can paint blend modes and filtered SVG as a dark box over the button. No blend, no filter;
   a solid gold base under the gradient so it can never show dark; never animate the background itself. */
.bolts, .attn-wrap .bolts { filter: none; }
.bolts .through { mix-blend-mode: normal; }
.bolts .glow { stroke-width: 3.2; opacity: .8; }
.btn.main, .btn.white { background-color: var(--gold); }
.btn.main, .btn.white, .attn-wrap > .btn { transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .18s, color .18s; }
.attn-wrap.strike > .btn { animation: attn-flash-safe .45s ease-out; }
@keyframes attn-flash-safe {
  0% { box-shadow: inset 0 1px 0 rgba(255, 247, 222, .9), 0 0 34px 8px rgba(255, 210, 90, .75); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 247, 222, .85), inset 0 -1px 0 rgba(120, 82, 25, .35), 0 1px 2px rgba(0, 0, 0, .5), 0 10px 26px -8px rgba(214, 162, 74, .55); }
}
@media (prefers-reduced-motion: reduce) { .attn-wrap.strike > .btn { animation: none; } }
/* embed previews: the member shows as a small avatar + name at the top (matches the bot's compact announcements) */
.dc-eauthor { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-embed.has-img { width: 100%; }
.dc-eimg { display: block; width: 100%; max-width: 400px; aspect-ratio: 1024 / 440; object-fit: cover; margin-top: 12px; border-radius: 4px; background: #1e1f22; }
.dc-eav { width: 20px; height: 20px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #221a35, #b59cff); }
/* phones: chip rows that scroll sideways fade at the right edge so it's clear there's more */
@media (max-width: 960px) {
  .side-list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
/* touch screens: small text buttons get a finger-sized tap area */
@media (pointer: coarse) {
  .link-btn { min-height: 40px; display: inline-flex; align-items: center; }
  .tc-btn { min-height: 38px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
}
/* command "Details" rows: both halves share one divider line and sit on the same text line (phones had an extra gap under the value) */
.g-facts dt, .g-facts dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; line-height: 1.5; min-height: 44px; }
.g-facts dt { padding-right: 16px; }
@media (max-width: 560px) { .g-facts { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); font-size: 14px; } }
.g-facts > :nth-last-child(-n+2) { border-bottom: 0; }
/* ---------- Economy pages (/economy and the dashboard's Economy page) ---------- */
.flash.err { color: #fca5a5; background: rgba(248, 113, 113, .07); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .25); }
.ec .sc-card, .pane[data-pane="economy"] .sc-card { margin-top: 16px; }
.ec .coin { width: 1.05em; height: 1.05em; margin-right: .35em; vertical-align: -.16em; }
.ec-title { display: flex; align-items: center; gap: .32em; }
.ec-title .coin { width: 1.25em; height: 1.25em; flex: none; margin: 0; vertical-align: 0; }
.ec-tiles { margin: 6px 0 4px; }
.ec-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; }
.ec-inline { display: inline-flex; margin: 0; }
.ec-note { margin: 10px 0 0; font-size: 14px; }
.ec-sub { margin: 14px 0 6px; font-size: 15px; color: var(--ink-1); }
.ec-contracts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ec-contracts li { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; align-items: center; gap: 12px; }
.ec-cw { display: flex; flex-direction: column; min-width: 0; }
.ec-cw small { color: var(--ink-3); font-size: 13px; }
.ec-contracts b { white-space: nowrap; }
.ec-bet { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
.ec-bet input[type=number] { width: 120px; }
.ec-bet select, .ec-amt input[type=text] { width: 140px; }
.ec-item.r-gear .ec-look { color: var(--ink-2); } .ec-item form + form { padding-top: 6px; margin-top: 0; }
.ec-market { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.ec-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.ec-item form { margin-top: auto; padding-top: 8px; }
.ec-item .btn { width: 100%; }
.ec-item small { color: var(--ink-3); }
.ec-look { font-size: 26px; line-height: 1.2; color: var(--ink-2); }
.ec-item.r-rare .ec-look { color: #8fb8ff; } .ec-item.r-epic .ec-look { color: #c79bff; } .ec-item.r-legendary .ec-look { color: var(--gold); }
.ec-item.r-legendary { border-color: rgba(227, 180, 94, .35); }
.ec-owned { margin-top: auto; padding-top: 8px; color: var(--good); font-weight: 600; font-size: 14px; }
.th-table td.pos { color: var(--good); } .th-table td.neg { color: #fca5a5; }
.ec-add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.ec-add .ec-wide { grid-column: 1 / -1; }
.ec-add label { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; font-weight: 600; }
.ec-add label small { color: var(--ink-3); font-weight: 400; }
.ec-add input[type=number] { width: 100%; }
.sc-card-head form { margin: 0; }
@media (max-width: 560px) {
  .ec-contracts li { grid-template-columns: minmax(0, 1fr) auto; }
  .ec-contracts progress { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .ec-add { grid-template-columns: minmax(0, 1fr); }
  .ec-market { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ec-item .btn { white-space: normal; height: auto; min-height: 40px; padding: 8px 10px; line-height: 1.2; }
@media (max-width: 560px) { .ec-item { padding: 12px; } .ec-item .btn { font-size: 13px; } }
.ec-jobs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ec-jobs li { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; align-items: center; gap: 12px; min-height: 44px; }
.ec-jobs li form { margin: 0; justify-self: end; }
@media (max-width: 560px) { .ec-jobs li { grid-template-columns: minmax(0, 1fr) auto; } .ec-jobs li form { grid-column: 1 / -1; justify-self: start; } }

/* ---- Dashboard polish (2026-11-25): one clean banner on every tab, full-width settings, fields that line up ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tf-hero { align-items: center; gap: 14px 24px; margin-bottom: 6px; padding: 18px 20px !important; border-radius: 16px;
  background: var(--n-1000); box-shadow: inset 0 0 0 1px var(--n-850); }
.tf-hero-main { gap: 14px; flex: 1 1 280px; }
.tf-hero-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(139, 92, 246, .14); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .2); }
.tf-hero-ico .ico { width: 20px; height: 20px; color: var(--v-4); }
.pane .settings .tf-hero-title { font-size: 20px; letter-spacing: -0.02em; }
.tf-hero-main p { margin-top: 4px; font-size: 13.5px; color: var(--zinc-400); }
.tf-stats { gap: 6px; }
.tf-stat { flex-direction: row; align-items: center; gap: 8px; min-width: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--n-850); backdrop-filter: none; }
.tf-stat:hover { transform: none; box-shadow: inset 0 0 0 1px var(--n-800); }
.tf-stat small { font-size: 12px; white-space: nowrap; }
.tf-stat b { font-size: 13px; gap: 6px; }
.tf-dot, .tf-dot.ok { box-shadow: none; animation: none; }
/* the whole card, with short fields (one dropdown, one switch) two to a row */
.pane .settings { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.pane .settings > * { grid-column: 1 / -1; }
/* two short fields side by side share a row (app.js marks them .half); a lone one keeps the full row */
.pane .settings > .half { grid-column: auto; }
.pp-where { align-items: stretch; }
/* side-by-side fields line up at the bottom even when only one has a hint line */
.pane div:has(> label + select:not([multiple])), .pane div:has(> label + .cs) { display: flex; flex-direction: column; }
.pane div:has(> label + select:not([multiple])) > select, .pane div:has(> label + .cs) > .cs { margin-top: auto; }
@media (max-width: 760px) {
  .pane .settings { grid-template-columns: minmax(0, 1fr); }
  .pane .settings > * { grid-column: auto; }
  .tf-hero { padding: 14px 16px !important; }
  .tf-hero-main { align-items: flex-start; flex-basis: 100%; }
  .dash .panel { padding: 18px 14px; }
  /* pills wrap as wide as their text, and a long channel name ends in … instead of running into the next pill */
  .tf-stats { display: flex; flex-wrap: wrap; width: 100%; }
  .tf-stat { min-width: 0; max-width: 100%; }
  .tf-stat b { min-width: 0; max-width: 100%; overflow: hidden; }
  .tf-stat b > span { max-width: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- dashboard on phones (2026-11-25): settings on the first screen, readable hints, room for inputs ---------- */
.tabs-toggle { display: none; }
@media (max-width: 640px) {
  .site:has(.tabs-toggle) .page-head { flex-wrap: nowrap; align-items: center; gap: 12px; padding-top: 20px; }
  .site:has(.tabs-toggle) .page-head > div { flex: 1; width: auto; min-width: 0; }
  .site:has(.tabs-toggle) .page-head h1 { gap: 12px; min-width: 0; margin-top: 0; font-size: 24px; }
  .site:has(.tabs-toggle) .page-head h1 :is(.avatar.big, .icon-tile) { flex: none; width: 44px; height: 44px; border-radius: 12px; }
  .site:has(.tabs-toggle) .guild-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .site:has(.tabs-toggle) .page-head .g-meta { margin-top: 8px; font-size: 13.5px; }
  .site:has(.tabs-toggle) .page-head .v2-more { flex: none; justify-content: center; gap: 0; width: 40px; height: 40px; padding: 0; font-size: 0; }  /* just the back arrow, dead centre (no gap for the hidden text) */
  .site:has(.tabs-toggle) .page-head .v2-more svg, .site:has(.tabs-toggle) .page-head .v2-more:hover svg { width: 18px; height: 18px; margin: 0; transform: none; }  /* iPhone keeps hover after a tap: no sideways nudge */
  .site:has(.tabs-toggle) .rule { margin-block: 16px; }
  .tabs-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-bottom: 1px solid transparent; border-radius: 10px;  /* line always there (clear when shut) so the label never shifts */
    background: none; color: var(--ink-1); font: inherit; text-align: left; cursor: pointer; }
  .tabs-toggle .tt-label { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
  .tabs-toggle .tt-now { flex: 1; min-width: 0; overflow: hidden; color: var(--gold); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
  .tabs-toggle .rl-chev { flex: none; width: 18px; height: 18px; color: var(--ink-3); transform: rotate(90deg); transition: transform .2s; }
  .tabs-toggle[aria-expanded="true"] .rl-chev { transform: rotate(-90deg); }
  .site:has(.tabs-toggle) .dash { gap: 16px; padding-top: 0; }
  .side-list.tabs { display: block; padding: 7px; -webkit-mask-image: none; mask-image: none; overflow: hidden; }  /* no sideways-scroll fade: the folded menu doesn't scroll */
  .side-list.folded > :not(.tabs-toggle) { display: none; }
  .side-list:not(.folded) .tabs-toggle { margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
  .dash .panel { padding: 14px 12px; }
  .dash :is(label small, .tk-card-head small, .tk-warn, .tk-actions-row .muted) { font-size: 14px; line-height: 1.45; }
  .dash .tk-card-body label small { display: block; margin: 2px 0 0; }  /* the desktop "Label · hint" line wraps badly this narrow */
  .dash .tk-card-body label small::before { content: none; }
  .dash textarea { min-height: 132px; }
}

/* ---------- setup warnings (2026-11-26): what's broken or half-finished, and exactly how to fix it (setupcheck.py) ---------- */
:root { --sw-red: #f87171; --sw-amber: #f5b74e; }
.tab-alert { flex: none; width: 7px; height: 7px; margin-left: -4px; border-radius: 50%; background: var(--sw-amber); }
.tab-alert.broken { background: var(--sw-red); }
.tabs-toggle .tab-alert { margin: 0 2px 0 -2px; }
.setup-warn { grid-column: 1 / -1; margin: 4px 0 6px; padding: 14px 16px; border-radius: 14px; background: rgba(245, 183, 78, .045);
  box-shadow: inset 0 0 0 1px rgba(245, 183, 78, .22); }
.pane .settings > .setup-warn { padding: 14px 16px; border: 0; }
.setup-warn.broken { background: rgba(248, 113, 113, .045); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .24); }
.setup-warn.ok { background: rgba(74, 222, 128, .035); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .2); }
.su-head { display: flex; align-items: center; gap: 12px; }
.su-head b { display: block; color: var(--ink-1, #fff); font-size: 15px; font-weight: 700; }
.su-head small { display: block; margin-top: 2px; color: var(--zinc-400); font-size: 13px; line-height: 1.45; }
.su-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(245, 183, 78, .12); }
.su-ico .ico { width: 18px; height: 18px; color: var(--sw-amber); }
.setup-warn.broken .su-ico { background: rgba(248, 113, 113, .12); }
.setup-warn.broken .su-ico .ico { color: var(--sw-red); }
.setup-warn.ok .su-ico { background: rgba(74, 222, 128, .1); }
.setup-warn.ok .su-ico .ico { color: var(--good); }
.su-list { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.su-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0 2px; border-top: 1px solid rgba(255, 255, 255, .06); }
.su-item + .su-item { margin-top: 10px; }
.su-dot { flex: none; width: 8px; height: 8px; margin: 7px 0 0 13px; border-radius: 50%; background: var(--sw-amber); }
.su-item.broken .su-dot { background: var(--sw-red); }
.su-text { flex: 1; min-width: 0; padding-left: 13px; }
.su-text b { display: block; color: var(--ink-1, #fff); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.su-text span { display: block; margin-top: 3px; color: var(--zinc-400); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.su-go { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-top: 1px; padding: 4px 10px; border-radius: 999px;
  color: var(--v-4); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .22); }
.su-go:hover { color: #fff; background: rgba(181, 156, 255, .1); }
.su-go svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .pane .settings > .setup-warn { padding: 12px; }
  .su-head { align-items: flex-start; }
  .su-item { flex-wrap: wrap; gap: 8px 10px; }
  .su-dot { margin-left: 4px; }
  .su-text { flex-basis: calc(100% - 30px); padding-left: 4px; }
  .su-text span, .su-head small { font-size: 14px; }
  .su-go { margin-left: 22px; }
}
.su-groups { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.su-group { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.su-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.su-group-head > span { color: var(--zinc-400); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.su-group .su-list { margin-top: 4px; }
.su-group .su-item { border-top: 0; padding-top: 6px; }
.su-group .su-item + .su-item { margin-top: 4px; }
@media (max-width: 640px) { .su-group .su-item { flex-wrap: nowrap; } .su-group .su-text { flex-basis: auto; } }
/* the setup banner sits above the menu and the panels on every dashboard page (owner, 2026-11-26), and folds with a tap */
.setup-warn.top { margin: 28px 0 0; padding: 16px 18px; }
.setup-warn.top > summary { list-style: none; cursor: pointer; border-radius: 10px; }
.setup-warn.top > summary::-webkit-details-marker { display: none; }
.setup-warn.top > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.su-fold { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: auto; padding: 4px 6px 4px 10px; border-radius: 999px;
  color: var(--zinc-400); font-size: 13px; font-weight: 600; }
.setup-warn.top > summary:hover .su-fold { color: #fff; }
.su-fold svg { width: 16px; height: 16px; transition: transform .2s; }
.setup-warn.top[open] .su-fold svg { transform: rotate(180deg); }
.setup-warn.top:not([open]) .su-hide, .setup-warn.top[open] .su-show { display: none; }
.setup-warn.top:not([open]) .su-head small { display: none; }
@media (prefers-reduced-motion: reduce) { .su-fold svg { transition: none; } }
@media (max-width: 640px) {
  .setup-warn.top { margin: 0 0 16px; padding: 12px; }
  .setup-warn.top .su-head { align-items: flex-start; }
  .su-fold { padding: 4px 2px 4px 6px; }
  .su-fold > span { display: none; }  /* just the arrow on phones */
}

/* a dropdown that's fading its contents out before it shuts (app.js `dropdown`, class "shutting") is still open
   underneath, so its arrow and Hide/Show label would wait; point them shut right at the tap instead */
.crow.shutting[open] .chev { transform: none; color: var(--zinc-600); }
.rl-group.shutting[open] .rl-chev { transform: none; }
.faq.shutting[open] .faq-chev { transform: none; color: var(--zinc-500); }
/* the box itself eases back to its shut look (no gold outline, normal glass) while the contents fade, so it looks
   shut at the tap; the shut box that follows has exactly these colours, so nothing changes when it actually shuts */
.crow.shutting[open], .faq.shutting[open] { background: var(--glass); border-color: var(--line); transition: border-color .17s ease-in, background-color .17s ease-in; }
.crow.shutting[open]:hover, .faq.shutting[open]:hover { border-color: var(--line-strong); }
details.shutting[open] > summary > .g-chev, details.shutting[open] > summary .g-end > .g-chev { transform: none; color: var(--zinc-600); }
.g-onpage.shutting[open] > summary::after { margin-top: -4px; transform: rotate(45deg); }
.setup-warn.top.shutting[open] .su-fold svg { transform: none; }
.setup-warn.top.shutting[open] .su-hide { display: none; }
@media (min-width: 641px) { .setup-warn.top.shutting[open] .su-show { display: inline; } }  /* phones show just the arrow */
/* iPhone/iPad Safari draws what's fading in on a temporary layer and drops it when the fade ends, redrawing the text a
   pixel or two lower (owner saw it on 2026-11-26). So what's inside an open dropdown keeps its own layer the whole time
   it's open: it's made while the inside is still invisible and goes away once it's shut, so nothing ever moves */
@supports (-webkit-touch-callout: none) {
  :is(.rl-group, .crow, .tgl-cat, .g-cmd, .g-subwrap, .faq, .setup-warn, .sc-table, .g-onpage)[open] > :not(summary) { will-change: transform, opacity; }
  @media (max-width: 640px) { .side-list.tabs:not(.folded) > :not(.tabs-toggle) { will-change: transform, opacity; } }
}
@media (min-width: 1100px) { .setup-warn.top .su-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; } }
/* all clear: one slim line in the banner's spot */
.setup-warn.top.ok { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; }
.setup-warn.top.ok .su-ico { width: 24px; height: 24px; border-radius: 7px; }
.setup-warn.top.ok .su-ico .ico { width: 14px; height: 14px; }
.setup-warn.top.ok b { color: var(--ink-1, #fff); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.setup-warn.top.ok small { min-width: 0; overflow: hidden; color: var(--zinc-400); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 640px) { .setup-warn.top.ok { padding: 8px 12px; } .setup-warn.top.ok small { display: none; } }

/* Dashboard → Overview (website/dash_overview.py): plan + last 7 days side by side, then what's running and quick links */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 14px; margin-top: 18px; }
.ov-grid .ov-card { margin-top: 0; display: flex; flex-direction: column; }
.ov-running, .ov-links { grid-column: 1 / -1; }
.ov-plan p { margin: 0; }
.ov-plan .muted { font-size: 14px; line-height: 1.5; }
.ov-card .su-go { margin-left: 0; }
.ov-plan .su-go { align-self: flex-start; margin-top: auto; }
.ov-plan > h3 + p { margin-top: 2px; }
.ov-plan > p + p { margin-top: 12px; }
.ov-plan > p.muted { margin-bottom: 16px; }
.ov-plan-line { display: flex; align-items: center; gap: 10px; }
.ov-plan-line small { color: var(--ink-3); font-size: 12.5px; }
.ov-tiles { grid-auto-columns: minmax(0, 1fr); justify-content: stretch; margin: 2px 0 0; }
.ov-tiles .case-stat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-count { font: 500 12px var(--mono); color: var(--ink-3); }
.ov-running .features { margin-top: 2px; }
a.feature { color: inherit; text-decoration: none; transition: background .15s, box-shadow .15s; }
a.feature:hover { background: rgba(181, 156, 255, .07); box-shadow: inset 0 0 0 1px var(--line-strong); }
a.feature:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ov-note { margin: 12px 0 0; font-size: 13px; }
.ov-link-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ov-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--n-1000);
  color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px transparent; transition: background .15s, box-shadow .15s; }
.ov-link:hover { background: rgba(181, 156, 255, .07); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ov-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ov-link-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(181, 156, 255, .1); color: #c9b8ff; }
.ov-link-ico .ico { width: 17px; height: 17px; }
.ov-link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-link-text b { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.ov-link-text small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ov-chev { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--ink-3); }
@media (max-width: 900px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } .ov-link-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ov-grid { gap: 12px; margin-top: 14px; }
  .ov-tiles { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-running .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ov-running .feature { gap: 6px; padding: 10px 9px; }
  .ov-running .feature b { font-size: 13.5px; }
  .ov-running .feature span { font-size: 10.5px; }
  .ov-running .feature b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ov-link-text small { font-size: 14px; white-space: normal; }
}

/* iPhone/iPad Safari: boxes that blur the moving sky behind them get their top and bottom edges sliced off
   (the !/ switch and search box, 2026-11-26), and when a dropdown above pushes them down, the blur is redrawn a frame
   late. Their theme colour is nearly solid already, so on iOS every box that sits
   in the page skips the blur: same look, no cut edges, smoother scrolling. Fixed bars and overlays keep it */
@supports (-webkit-touch-callout: none) {
  .mode, .searchbox, .side-list, .crow, .faq, .panel, .panel-glass, .g-guide, .cl-item, .plan, .v2-feat, .pm-perk,
  .legal-wrap > *, .foot, .btn.alt, .btn.glass, .tf-stat, .cs-list { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }  /* !important: beats more specific rules like .crow + .crow */
}
/* polish: the typing cursor and number columns carry the palette, not browser defaults */
input, textarea, [contenteditable] { caret-color: var(--gold); }
.lb-nums, .sc-table td, .case-stats b { font-variant-numeric: tabular-nums; }
/* accessibility: a skip link for keyboard users, hidden until it gets focus */
.skip { position: fixed; left: 12px; top: 10px; z-index: 1000; padding: 10px 16px; border-radius: 12px; background: var(--gold); color: #1a1206;
  font-weight: 700; transform: translateY(-160%); transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; }
main.page:focus { outline: 0; }
/* phones: 16px text in every field, or iPhone Safari zooms the page in when you tap it */
@media (max-width: 960px) {
  .searchbox input, input[type=text], input:not([type]), input[type=number], input[type=search], select, textarea { font-size: 16px; }
}
/* commands search: a clear button once something is typed, a live count, and a way out when nothing matches */
.search-clear { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-right: 4px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-3); cursor: pointer; transition: color .15s, background .15s; }
.search-clear:hover { color: var(--ink-1); background: rgba(255, 255, 255, .06); }
.search-clear svg { width: 16px; height: 16px; }
.search-clear.hidden { display: none; }
.searchbox:has(.search-clear:not(.hidden)) kbd { display: none; }
.search-count { margin: 0 0 12px; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.empty-search p { margin: 0; }
.empty-search p + p { margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.empty-search b { color: var(--ink-1); }
.empty-search a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
/* home: the reassurance line under Add Crowe (what it asks for, before Discord's permission screen) */
.home-trust { margin: 14px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.home-trust a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(227, 180, 94, .55); text-underline-offset: 3px; }
.home-trust a:hover { color: var(--gold); }
/* Discord previews: headings and -# small text, the way Discord draws them (quotes, code and spoilers already have their own look) */
.md-h { display: block; margin: 4px 0 2px; color: #f2f3f5; font-weight: 700; line-height: 1.375; }
.md-h1 { font-size: 1.5em; } .md-h2 { font-size: 1.25em; } .md-h3 { font-size: 1em; }
.md-subline { display: block; }
.md-quote + .md-quote { margin-top: 0; }
/* the logo: a thin light ring so Crowe's dark picture still reads on the near-black header (on phones it's the only brand mark) */
.brand img, .foot .logo-row img { box-shadow: 0 0 0 1px rgba(214, 190, 255, .3); }
/* search boxes: a clear gold ring while you're typing in one (keyboard users need to see where they are) */
.searchbox:focus-within, .head-tools .searchbox:focus-within { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px rgba(227, 180, 94, .2); }

/* Overview: features set up with a command open a small card (no tab for them) */
.features details.feature-cmd, .ov-running details.feature-cmd { display: block; padding: 0; cursor: pointer; transition: background .15s, box-shadow .15s; }
details.feature-cmd > summary { display: flex; align-items: center; gap: inherit; padding: 11px 14px; list-style: none; }
details.feature-cmd > summary::-webkit-details-marker { display: none; }
details.feature-cmd:hover, details.feature-cmd[open] { background: rgba(181, 156, 255, .07); box-shadow: inset 0 0 0 1px var(--line-strong); }
details.feature-cmd > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 12px; }
/* the wrapper holds the position: relative on a <details> crashes iPhone Safari (WebKit) */
.feature-cmd-wrap { position: relative; min-width: 0; }
.feature-cmd-wrap:has(details[open]) { z-index: 5; }
.feature-pop { position: absolute; left: 0; top: calc(100% + 6px); width: max(100%, 240px); padding: 12px 14px; cursor: default; border-radius: 12px; background: var(--n-1000); box-shadow: inset 0 0 0 1px var(--line-strong), 0 12px 30px rgba(0,0,0,.5); }
.ov-running .features > :nth-child(4n) .feature-pop { left: auto; right: 0; }
.feature-pop p { margin: 0 0 8px; font-size: 13px; color: var(--zinc-400); }
.feature-pop code { display: inline-block; margin-right: 10px; }
.feature-pop a { font-size: 13px; color: var(--gold); }
@media (max-width: 640px) { .ov-running details.feature-cmd > summary { gap: 6px; padding: 10px 9px; }
  .ov-running .features > :nth-child(4n) .feature-pop { left: 0; right: auto; } .ov-running .features > :nth-child(even) .feature-pop { left: auto; right: 0; } }

/* Bot Profile: picture drop areas with a thumbnail, and a quiet reset link */
.bp-file-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.bp-file-label small { display: block; font-weight: 400; color: var(--zinc-500); font-size: 12px; }
.bp-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--n-1000); cursor: pointer; transition: background .15s, border-color .15s; }
.bp-drop:hover, .bp-drop.over { background: rgba(181, 156, 255, .07); border-color: var(--v-5); }
.bp-drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.bp-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bp-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: var(--n-850); color: var(--zinc-400); }
.bp-drop-avatar .bp-thumb { border-radius: 999px; }
.bp-drop-banner .bp-thumb { width: 80px; }
.bp-thumb .ico { width: 20px; height: 20px; }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bp-drop-text { min-width: 0; }
.bp-drop-text b { display: block; font-weight: 600; font-size: 14px; }
.bp-drop-name { display: block; color: var(--zinc-500); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-drop.picked .bp-drop-name { color: var(--good); }
.bp-reset-row { margin: 4px 0 0; }
.bp-reset { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: var(--zinc-500); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.bp-reset:hover { color: var(--bad, #f87171); }
.bp-reset:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Discord-style select menu inside card mockups (full width, chevron on the right) */
.dv2-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 4px; padding: 9px 12px;
  border-radius: 8px; background: #1e1f22; border: 1px solid #3f4147; color: #dbdee1; font-size: 14px; }
.dv2-select span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv2-select svg { flex: none; width: 18px; height: 18px; color: #b5bac1; }

/* Tickets tab under 1200px: "Show preview" pill at the bottom middle, in thumb reach, once the preview has scrolled
   away and you scroll back up (2026-12-02: it used to sit top right, over the topics' Edit and Remove buttons) */
.tkf-jump { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid rgba(139, 92, 246, .7); background: rgba(24, 16, 40, .92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); color: #e9e3ff; font: 600 14px var(--sans, inherit);
  cursor: pointer; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.tkf-jump.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.tkf-jump.show:active { transform: translate(-50%, 1px) scale(.97); transition-duration: .1s; }
.tkf-jump:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (min-width: 1200px) { .tkf-jump { display: none; } }
@media (prefers-reduced-motion: reduce) { .tkf-jump { transition: none; } }
.tkf { scroll-margin-top: calc(var(--bar, 76px) + 12px); }
.feature-cmd-wrap > details.feature-cmd { height: 100%; }

/* Footer shoutout pill */
.foot a.shoutout { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(227, 180, 94, .45); background: rgba(227, 180, 94, .08); color: var(--zinc-300); font-size: 13.5px; text-decoration: none;
  transition: background .15s, border-color .15s; }
.foot a.shoutout b { color: var(--gold); font-weight: 700; }
.foot a.shoutout svg { width: 14px; height: 14px; color: var(--gold); }
.foot a.shoutout:hover { background: rgba(227, 180, 94, .16); border-color: var(--gold); }
.foot a.shoutout:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* a setup problem shown right under the field that's wrong (Forms → Answers), instead of in the top banner */
.field-note { display: grid; gap: 8px; margin: 10px 0 0; padding: 10px 12px; list-style: none; border-radius: 10px;
  background: rgba(14, 9, 24, .7); box-shadow: inset 0 0 0 1px rgba(181, 156, 255, .22); }
.field-note li { display: flex; align-items: flex-start; gap: 10px; }
.field-note span { color: var(--zinc-400); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.field-note b { color: var(--ink-1, #fff); font-weight: 600; }
.fn-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--sw-amber); }
.fn-dot.broken { background: var(--sw-red); box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }
.field-note.hidden { display: none; }
select.is-wrong { box-shadow: 0 0 0 1px rgba(248, 113, 113, .55); }
@media (max-width: 640px) { .field-note span { font-size: 14px; } }

/* ---------- Tickets + Forms, "clean list" (picked 2026-11-28): no boxed or numbered cards, no rail, glow or live
   lights. Each section is a heading + one short line, split by thin lines; previews sit in one right-hand column
   (Tickets: the member's view; Forms: each section's preview, pinned while you edit that section) ---------- */
:is(.pane[data-pane="tickets"], .pane[data-pane="forms"]) { --tf-prev: 420px; }
.pane .settings .tf-steps { padding: 0; }
.pane .settings .tf-steps > .tk-card { margin: 0; padding: 26px 0; border: 0; border-top: 1px solid var(--n-850); border-radius: 0;
  background: none; box-shadow: none; }
.pane .settings .tf-steps > .tk-card:first-child { border-top: 0; padding-top: 4px; }
.pane .settings .tf-steps .tk-card-head { display: block; padding: 0 0 16px; }
.pane .settings .tf-steps .tk-card-head h3 { margin: 0; font: 700 17px/1.3 var(--sans); letter-spacing: -0.015em; text-transform: none; color: #fff; }
.pane .settings .tf-steps .tk-card-head small { display: block; margin: 3px 0 0; font-size: 13.5px; color: var(--zinc-500); }
.tf-steps .tk-card-body { display: flex; flex-direction: column; gap: 18px; }
.tf-steps .tk-card-body > div, .tf-steps .tk-card-body > section { padding: 0; border-top: 0; }
.tf-steps .tk-card-body > #tc-icons, .tf-steps .tk-card-body > #tc-emojis { display: none; }
.tf-steps label small { color: var(--zinc-500); }
.tf-steps label small:empty, .tf-steps .switch small:empty { display: none; }
.tf-steps .tk-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.tf-steps .tk-row2 > div { min-width: 0; }
.tf-steps .tk-row3 { gap: 12px; }
/* sections with their own preview (Forms): settings left, the preview in the same column width as Tickets' member's view */
.tf-steps .tk-card-body > .pp-grid, .tf-steps .tf-grid { grid-template-columns: minmax(0, 1fr) var(--tf-prev); gap: 36px; }
.tf-steps .pp-preview, .tf-steps .tf-preview { position: sticky; top: calc(var(--bar, 76px) + 16px); }
.tf-steps .pp-preview .dc-wrap, .tf-steps .tf-preview .dm-modal { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
/* Forms → Questions: pop-up title and the pre-made forms menu on one plain row (no tinted box) */
.tf-steps .tf-top { margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: none; }
.tf-steps .tf-plan { margin: 0 0 14px; font-size: 13px; color: var(--zinc-500); }
/* Forms → Answers: the two switches as plain rows, not little boxes */
.tf-steps .fa-toggles { gap: 12px 24px; }
.tf-steps .fa-toggles > div { padding: 0; border: 0; background: none; }
/* form tabs: a plain row of chips over a thin line, no box around them */
.pane .settings > .fm-picker, .pane .fm-picker { margin: 4px 0 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--n-850);
  border-radius: 0; background: none; }
.pane .fm-picker .fm-meta { margin-top: 10px; }
.fm-chip { transition: border-color .15s, background .15s, color .15s; }
.fm-chip:hover { transform: none; }
.fm-chip.on { background: rgba(106, 82, 184, .18); box-shadow: none; color: #fff; }
.pane[data-pane="forms"] .fm-picker + .tf-steps > .tk-card:first-child { padding-top: 26px; }
/* Tickets: the member's view on the right, a calm box like the previews */
.tkf { border-color: var(--n-850); background: rgba(255, 255, 255, .012); }
@media (min-width: 1200px) { .tkf-layout { grid-template-columns: minmax(0, 1fr) var(--tf-prev); gap: 36px; } }
/* Save + Deploy: one plain row under a thin line; the reminder is a quiet line, not an amber box */
.pane .settings > .tk-actions { margin-top: 0; padding: 22px 0 0 !important; border: 0; border-top: 1px solid var(--n-850); border-radius: 0;
  background: none; box-shadow: none; overflow: visible; }
.tk-actions .tk-warn { margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--zinc-500); font-size: 13px; }
.dash .tk-actions .btn.main .ico { width: 16px; height: 16px; }
@media (max-width: 1100px) {
  .tf-steps .tk-card-body > .pp-grid, .tf-steps .tf-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tf-steps .pp-preview, .tf-steps .tf-preview { position: static; }
}
@media (max-width: 640px) {
  .tf-steps .tk-row2 { grid-template-columns: minmax(0, 1fr); }
  .pane .settings .tf-steps > .tk-card { padding: 22px 0; }
  .tf-steps .fa-toggles { grid-template-columns: minmax(0, 1fr); }
}
.tf-steps .tf-top .tf-note { flex-basis: 100%; font-size: 13px; color: var(--zinc-500); }
.tf-steps .tk-chips > .muted { font-size: 14px; }
.tf-steps .switch small { display: block; margin: 2px 0 0; }
.tf-steps .switch small::before { content: none; }

/* ---------- Tickets: step tabs (picked 2026-12-01). One row of tabs follows the member's view: a step's settings show
   beside its preview, nothing else. Staff & rules has no preview, so its settings get the whole width ---------- */
.pane .settings > .tks-tabs { display: flex; align-items: center; gap: 4px; margin: 6px 0 22px; padding: 4px; border: 1px solid var(--n-850);
  border-radius: 14px; background: rgba(255, 255, 255, .015); }
.pane .settings > .tks-tabs + .tkf-layout { padding-top: 0; border-top: 0; }
.tks-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 0; min-width: 0; padding: 9px 12px;
  border: 0; border-radius: 10px; background: none; color: var(--zinc-400); font: 600 14px/1.2 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s; }
.tks-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--n-800);
  color: var(--zinc-500); font-size: 11.5px; font-weight: 700; flex: none; transition: border-color .15s, color .15s, background-color .15s; }
@media (hover: hover) { .tks-tab:hover { color: #fff; background: rgba(255, 255, 255, .04); } }
.tks-tab.on { color: #fff; background: rgba(139, 92, 246, .18); }
.tks-tab.on .tks-n { border-color: rgba(139, 92, 246, .8); background: rgba(139, 92, 246, .3); color: #fff; }
.tks-tab.skipped:not(.on) { color: var(--zinc-600); }
.tks-tab:focus-visible { outline: 2px solid var(--v-4); outline-offset: 2px; }
.tks-staff { flex: 0 0 auto; margin-left: 10px; position: relative; }
.tks-staff::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 1px; background: var(--n-850); }
/* one step at a time: no lines between sections, the heading sits level with the preview's top */
.pane .settings .tf-steps > .tks-step { padding: 2px 0 8px; border-top: 0; }
.tkf-layout.tks-solo { grid-template-columns: minmax(0, 1fr); }
.tkf-layout.tks-solo > .tf-steps { max-width: 760px; }
.tks-line { height: 1px; background: var(--n-850); }
.tf-steps .tk-card-body > .tks-line { margin: 4px 0; }
.pane .settings .tks-h4, .tm-part > h4 { margin: 0; font: 650 15px/1.3 var(--sans); color: #fff; }
.tks-h4 small, .tm-part > h4 small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--zinc-500); }
.tks-off { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(227, 180, 94, .35); background: rgba(227, 180, 94, .06);
  color: var(--zinc-300); font-size: 13.5px; }
.tks-note { margin: 0; color: var(--zinc-500); font-size: 13px; }
/* Questions (read-only) and the trainee / blocked lists: plain rows split by thin lines */
.tks-qs, .tks-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--n-850); border-radius: 12px; }
.tks-qs li, .tks-list li { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 11px 14px; border-top: 1px solid var(--n-850); }
.tks-qs li:first-child, .tks-list li:first-child { border-top: 0; }
.tks-qs b { color: #fff; font-weight: 600; }
.tks-qs small { flex-basis: 100%; color: var(--zinc-500); font-size: 13px; }
.tks-count { color: var(--zinc-400); font-size: 13px; }
.tks-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 180px; }
.tks-who b { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tks-who small { color: var(--zinc-500); font-size: 12.5px; }
.tks-list .tk-chips { margin: 0; gap: 6px; }
.tks-list .tk-chip span { padding: 4px 11px; font-size: 13px; }
.tks-empty { color: var(--zinc-500); font-size: 14px; }
.tks-gone .tks-who { opacity: .45; text-decoration: line-through; }
.tks-addrow { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: -8px; }
.tks-addrow .cs { width: 200px; max-width: 100%; flex: none; }
.tks-addrow .muted { font-size: 13px; }
.tks-addrow code { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--n-850); background: rgba(255, 255, 255, .03); font-size: 12.5px; color: var(--zinc-300); }
@media (max-width: 1199px) {
  /* narrower: the member's view sits above the step's settings, the tabs above both */
  .pane .settings > .tks-tabs { margin-bottom: 16px; }
}
@media (max-width: 760px) {
  .pane .settings > .tks-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .tks-tab { padding: 9px 6px; font-size: 13px; gap: 6px; }
  .tks-staff { margin-left: 0; }
  .tks-staff::before { content: none; }
  .tks-tabs:not(:has(.tkf-chip:nth-child(5))) .tks-staff { grid-column: span 2; }  /* no questions step: 3 + 2 */
}
@media (max-width: 359px) {  /* tiny phones (iPhone SE 1st gen): two across, so every name fits */
  .pane .settings > .tks-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Feature pages (/features, website/features.py), built on the FAQ page layout */
.feat-list, .feat-steps { margin: 0; padding-left: 22px; color: var(--zinc-300); font-size: 15px; line-height: 1.7; }
.feat-list li + li, .feat-steps li + li { margin-top: 6px; }
.feat-steps code, .feat-cmd code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--v-4); }
.feat-cmds { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-cmd { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(17, 12, 28, .6); }
.feat-cmd:hover { border-color: var(--v-5); }
.feat-note { margin: 12px 0 0; color: var(--zinc-400); font-size: 14px; }
.feat-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.feat-more { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.feat-more a { color: var(--v-4); font-size: 15px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.feat-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(17, 12, 28, .6); transition: border-color .2s, transform .2s; }
.feat-card b { font-size: 17px; }
.feat-card span { color: var(--zinc-400); font-size: 14px; line-height: 1.5; }
.feat-card:hover { border-color: var(--v-5); transform: translateY(-2px); }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } .feat-cta .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .feat-card { transition: none; } .feat-card:hover { transform: none; } }

/* ticket fill-ins reference (docs) */
.g-ref h3 { margin: 26px 0 8px; color: var(--ink-1); font-size: 18px; font-weight: 700; }
.g-ref p, .g-ref li { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.g-ref ul { margin: 0; padding-left: 20px; }
.g-fills { overflow-x: auto; margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 10px; }
.g-fills table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.g-fills th { padding: 10px 14px; color: var(--ink-1); font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); }
.g-fills td { padding: 9px 14px; color: var(--ink-2); vertical-align: top; border-bottom: 1px solid var(--line); }
.g-fills tr:last-child td { border-bottom: 0; }
.g-fills td:first-child { white-space: nowrap; }
@media (max-width: 600px) {
  .g-fills table, .g-fills tbody, .g-fills tr, .g-fills td { display: block; }
  .g-fills thead { display: none; }
  .g-fills tr { padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .g-fills tr:last-child { border-bottom: 0; }
  .g-fills td { padding: 2px 0; border: 0; }
}

/* Changelog: older releases folded under one row (2026-12-02); the fold is a plain row, the releases inside keep their own cards */
.faq.cl-older, .faq.cl-older[open], .faq.cl-older.shutting[open] { margin-top: 12px; background: none; border: 0; border-radius: 0; backdrop-filter: none; overflow: visible; }
.faq.cl-older > summary { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--ink-1); }
.faq.cl-older[open] > summary { border-color: rgba(227, 180, 94, .45); }
.faq.cl-older > .faq-a { padding: 0; }
@media (hover: hover) and (pointer: fine) { .faq.cl-older > summary:hover { border-color: var(--line-strong); } }

/* Phones and tablets (2026-12-02, mobile-native pass). Touch has no hover: a tap leaves :hover stuck, so the lifts
   stay desktop-only and presses still answer through :active. Text boxes under 16px make iPhone Safari zoom in. */
a, button, summary, label, [role="button"] { touch-action: manipulation; }
button, .btn, [role="button"], .nav-toggle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (pointer: coarse) { input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font-size: 16px !important; } }
@media (hover: none), (pointer: coarse) {
  .btn:hover, .btn.main:hover, .btn.white:hover, .btn.alt:hover, .btn.glass:hover, .server:hover, .v2-more:hover, .plan:hover, .sv-card:hover,
  .sv-card.panel-glass:hover, .tf-stat:hover, .gd-cmd:hover, .kit-box:hover, .feat-card:hover, .v2-more:hover .v2-chev, .v2-more:hover .v2-chev.back,
  .sv-card:hover .sv-open svg, .scene-link:hover .scene-chev, .sv-add:hover .sv-plus { transform: none; }
  .btn:active, .btn.main:active, .btn.white:active, .btn.alt:active, .btn.glass:active { transform: translateY(1px) scale(.985); }
  .pc-only { display: none; }
}

/* Home hero: the message bar works (2026-12-01, app.js "the message bar works"). A real text box in Discord's bar, a command
   list above it like Discord's own picker, and new messages sliding in at the bottom (transform + opacity only). */
.hd { position: relative; }
/* (three classes deep: the site's own text boxes, input[type="text"], draw a dark rounded field otherwise; phones keep 16px from the rule above) */
.hd .dc-input .hd-input, .hd .dc-input .hd-input:focus { flex: 1; width: auto; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0;
  outline: 0; box-shadow: none; background: none; color: #dbdee1; font: inherit; caret-color: #dbdee1; }
/* the hint is what says "you can type here": Discord's lighter grey, readable on the bar (4.6:1; the pictures' #6d6f78 is 2.3:1) */
.hd .dc-input .hd-input::placeholder { color: #a1a6ae; opacity: 1; }
/* small phones (iPhone SE): the sticker and emoji icons go, so the hint fits (Discord's phone app has none in the bar either) */
@media (max-width: 400px) { .hd .dc-tools { display: none; } }
.hd .dc-input:focus-within { box-shadow: 0 0 0 2px rgba(181, 156, 255, .45); }
.hd.hd-play .dc-log { overflow: hidden; padding-bottom: 6px; }
.hd.hd-play .hd-typing { position: sticky; bottom: 0; left: auto; margin: 8px 16px 0; }
.hd-in { animation: hd-in .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hd-in { from { opacity: 0; transform: translateY(8px); } }
.hd-pick { position: absolute; left: 16px; right: 16px; bottom: 66px; z-index: 3; max-height: min(330px, 72%); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 8px; background: #2b2d31; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .5);
  transform-origin: 50% 100%; animation: hd-pick .16s cubic-bezier(.2, .8, .2, 1); }
.hd-pick[hidden] { display: none; }
/* phones: shorter, so with the keyboard open the whole list fits between the site's header and the bar (half a row peeks: it scrolls) */
@media (pointer: coarse) { .hd-pick { max-height: min(250px, 60%); } }
@keyframes hd-pick { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.hd-pick-head { padding: 6px 8px 8px; color: #b5bac1; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.hd-opt { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 9px 8px; border-radius: 4px; cursor: pointer; font-size: 15px; }
.hd-opt b { flex: none; color: #f2f3f5; font-weight: 600; }
.hd-opt span { min-width: 0; overflow: hidden; color: #b5bac1; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.hd-opt[aria-selected="true"] { background: #35373c; }  /* arrow keys and the mouse move this one highlight (app.js) */
.hd-opt:active { background: #3f4147; }
.hd-more { margin-top: 4px; border-top: 1px solid #3f4147; border-radius: 0 0 4px 4px; }
.hd-more b { color: #c9b8ff; }
@media (prefers-reduced-motion: reduce) { .hd-in, .hd-pick { animation: none; } }

/* ---------- dashboard dropdowns and buttons, one look (2026-12-02) ----------
   Picked = gold, hover = violet. Menus are solid (nothing behind shows through), long ones get a search box and they
   open upwards near the bottom of the screen (app.js). Only transform + opacity ever animate. */
.cs-btn { min-height: 42px; padding: 9px 12px 9px 13px; gap: 12px; }
.cs-chev { width: 16px; height: 16px; margin: 0 -3px 0 0; border: 0; transform: none; color: var(--ink-3); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.2l4 4 4-4'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.2l4 4 4-4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), color .15s; }
.cs.open .cs-chev { transform: rotate(180deg); margin-top: 0; color: var(--gold); }
.cs-btn:disabled .cs-chev { opacity: .5; }
.cs-mark { color: var(--ink-3); opacity: .75; margin-right: 1px; }
.cs-empty .cs-label { color: var(--ink-3); }
.cs-list { top: calc(100% + 6px); max-height: none; overflow: hidden; padding: 0; background: #120c1f; border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.cs.cs-up .cs-list { top: auto; bottom: calc(100% + 6px); }
.cs-opts { position: relative; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; padding: 5px;
  scrollbar-width: thin; scrollbar-color: rgba(181, 156, 255, .35) transparent; }
.cs-opts::-webkit-scrollbar { width: 10px; }
.cs-opts::-webkit-scrollbar-thumb { background: rgba(181, 156, 255, .3); border: 3px solid transparent; border-radius: 99px; background-clip: padding-box; }
.cs-find { position: relative; padding: 6px 6px 1px; }
.cs-find::before { content: ""; position: absolute; left: 17px; top: 50%; width: 14px; height: 14px; margin-top: -5px; background: var(--ink-3); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dash .cs-find input { width: 100%; height: 34px; padding: 0 10px 0 32px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font: 500 14px var(--sans); color: var(--ink-1); }
.dash .cs-find input:focus { border-color: rgba(227, 180, 94, .55); box-shadow: none; outline: 0; }
.dash .cs-find input::placeholder { color: var(--ink-3); opacity: .8; }
.cs-opt { padding: 8px 32px 8px 10px; border-radius: 8px; color: var(--ink-2); }
.cs-opt:hover { background: none; color: var(--ink-2); }  /* the highlight is .act (mouse or arrow keys), so it never shows twice */
.cs-opt.act { background: rgba(122, 43, 226, .26); color: #fff; }
.cs-opt.on { background: rgba(227, 180, 94, .07); box-shadow: none; color: var(--gold-light); font-weight: 600; }
.cs-opt.on.act { background: rgba(227, 180, 94, .14); }
.cs-opt.on::after { right: 13px; border-color: var(--gold); }
.cs-opt.on .cs-mark { color: var(--gold); opacity: .6; }
.cs-opt.cs-prompt { color: var(--ink-3); font-weight: 500; background: none; }
.cs-opt.cs-prompt.act { background: rgba(255, 255, 255, .05); color: var(--ink-2); }
.cs-opt.cs-prompt::after { display: none; }
.cs-opt.off, .cs-opt.off:hover { opacity: .4; background: none; color: var(--ink-2); }
.cs-none { padding: 14px 10px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
@media (pointer: coarse) {
  .cs-opt { padding-top: 11px; padding-bottom: 11px; font-size: 15px; }
  .cs-opts { max-height: 300px; }
  .dash .cs-find input { height: 40px; font-size: 16px; }  /* 16px: iPhone doesn't zoom the page in */
}

/* secondary buttons: dark, thin line, gold on hover (Save next to Deploy, Send test, Back / Next, Add fill-ins, Unblock, topic editor) */
.dash .btn.white, .dash .btn.glass, .tkf-nav button, .tkf-replay, .tm-open, .link-btn.tks-unblock, .dash .tc-btn, .dash .tf-tool {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); color: var(--ink-1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.link-btn.tks-unblock { padding: 6px 13px; border-radius: 9px; font: 600 13px var(--sans); }
.tm-open { font-weight: 600; }
@media (hover: hover) {
  .dash .btn.white:hover, .dash .btn.glass:hover, .tkf-nav button:hover:not(:disabled), .tkf-replay:hover, .tm-open:hover,
  .link-btn.tks-unblock:hover, .dash .tc-btn:hover:not(:disabled), .dash .tf-tool:hover:not(:disabled) {
    background: rgba(227, 180, 94, .08); border-color: rgba(227, 180, 94, .55); color: var(--gold-light); box-shadow: none; transform: none; }
  .dash .tc-del:hover:not(:disabled) { background: rgba(242, 63, 67, .1); border-color: rgba(242, 63, 67, .55); color: #fca5a5; }
}
.tm-open[aria-expanded="true"], .tks-gone .link-btn.tks-unblock { background: rgba(227, 180, 94, .12); border-color: rgba(227, 180, 94, .55); color: var(--gold-light); }
/* small "done" buttons inside editors are the main action there: gold */
.dash .tc-done, .dash .tc-done:hover:not(:disabled) { color: #231503; background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  border-color: #9e7633; box-shadow: none; opacity: 1; }
.dash .tf-add { background: rgba(255, 255, 255, .02); border: 1px dashed var(--line-strong); color: var(--ink-2); font-weight: 600; }
@media (hover: hover) { .dash .tf-add:hover:not(:disabled) { background: rgba(227, 180, 94, .06); border-color: rgba(227, 180, 94, .55); color: var(--gold-light); } }
.dash .tc-btn:active, .dash .tf-tool:active, .tkf-nav button:active:not(:disabled), .tm-open:active, .link-btn.tks-unblock:active { transform: translateY(1px); }
.tks-tab:focus-visible, .tkf-nav button:focus-visible, .tkf-replay:focus-visible, .tm-open:focus-visible, .link-btn.tks-unblock:focus-visible,
.dash .tc-btn:focus-visible, .dash .tf-tool:focus-visible, .dash .tf-add:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* on/off chips (staff roles, trainee Talk / Claim / Close): a ring when off, a gold tick when on */
.tk-chip span { display: inline-flex; align-items: center; gap: 7px; border-color: var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--ink-2);
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.tk-chip span::before { content: ""; flex: none; box-sizing: border-box; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-3); opacity: .55; }
.tk-chip input:checked + span { background: rgba(227, 180, 94, .12); border-color: rgba(227, 180, 94, .55); color: var(--gold-light); }
.tk-chip input:checked + span::before { border: 0; border-radius: 0; opacity: 1; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
@media (hover: hover) {
  .tk-chip span:hover { border-color: rgba(181, 156, 255, .55); color: #fff; }
  .tk-chip input:checked + span:hover { border-color: var(--gold); color: var(--gold-light); }
}
.tk-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* the picked step tab and form chip are gold, like the picked page in the sidebar */
.tks-tab.on { color: var(--gold); background: rgba(227, 180, 94, .12); }
.tks-tab.on .tks-n { border-color: rgba(227, 180, 94, .65); background: rgba(227, 180, 94, .18); color: var(--gold-light); }
.fm-chip.on { border-color: rgba(227, 180, 94, .55); background: rgba(227, 180, 94, .12); color: var(--gold-light); }

/* ---------- Forms as steps (2026-12-02): the same tab row, layout and member's view box as Tickets ---------- */
.fm-picker + .tks-tabs { margin-top: 14px; }
.tf-grid.tf-solo { grid-template-columns: minmax(0, 1fr); }
.fmf .tf-preview { position: static; }
.fmf .tf-preview > .dc-label { display: none; }  /* the box already says whose view it is */
.fmf-sub { display: block; margin: 14px 0 8px; }
.fmf-cap { margin: 10px 2px 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.fmf-div { display: flex; align-items: center; gap: 10px; margin: 10px 16px 4px; color: #949ba4; font: 600 12px/1 var(--sans); }
.fmf-div::before, .fmf-div::after { content: ""; flex: 1; height: 1px; background: #3f4147; }
.fmf-pick { display: inline-flex; gap: 4px; margin: 0 0 10px; padding: 3px; border: 1px solid var(--n-850); border-radius: 10px; }
.fmf-res { padding: 5px 12px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); font: 600 13px var(--sans); cursor: pointer; }
@media (hover: hover) { .fmf-res:hover { color: #fff; background: rgba(255, 255, 255, .05); } }
.fmf-res.on { color: var(--gold); background: rgba(227, 180, 94, .12); }
.fmf-res:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fms-step .pp-fields > .switch, .fms-step .pp-fields > div > .switch { margin-top: 2px; }

/* ---- dashboard limits (2026-12-02) ---- Overview "Limits" card (website/dash_overview.py) + the forms "More forms with Premium" chip */
.ov-limits { grid-column: 1 / -1; }
.ov-limits .lm-intro { margin: 2px 0 10px; }
.lm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.lm-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(96px, auto); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lm-name { min-width: 0; color: var(--ink-1); font-size: 14px; line-height: 1.35; }
.lm-bar { position: relative; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(181, 156, 255, .12); }
.lm-bar i { position: absolute; inset: 0; border-radius: inherit; background: #8f78e0; transform-origin: left center; }
.lm-bar i { transform: scaleX(0); }
.lm-bar.f1 i { transform: scaleX(0.1); }
.lm-bar.f2 i { transform: scaleX(0.2); }
.lm-bar.f3 i { transform: scaleX(0.3); }
.lm-bar.f4 i { transform: scaleX(0.4); }
.lm-bar.f5 i { transform: scaleX(0.5); }
.lm-bar.f6 i { transform: scaleX(0.6); }
.lm-bar.f7 i { transform: scaleX(0.7); }
.lm-bar.f8 i { transform: scaleX(0.8); }
.lm-bar.f9 i { transform: scaleX(0.9); }
.lm-bar.f10 i { transform: scaleX(1); }
.lm-row.full .lm-bar i { background: var(--gold); }
.lm-count { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.lm-count b { color: var(--ink-2); font: 500 13px var(--mono); white-space: nowrap; }
.lm-count small { color: var(--gold); font-size: 12px; white-space: nowrap; }
.lm-count small.open { color: #b9a6ff; }
.lm-bar.none { visibility: hidden; }
.fm-chip.fm-more { color: var(--gold); }
.fm-chip.fm-more .ico { width: 14px; height: 14px; }
@media (max-width: 760px) { .lm-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .lm-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .lm-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- status page (2026-12-02) ---- /status (website/status_page.py): one card saying whether Crowe is up, with a green /
   amber / red light (the same soft pulse as the dashboard's "What's running" dots), three facts under it, then two short tips.
   Numbers use fixed-width digits and every box keeps its size, so the refresh every minute never moves anything. */
.st-card { --ring: 74, 222, 128; margin-top: 32px; padding: 24px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.st-card[data-state="reconnecting"], .st-card[data-state="starting"] { --ring: 227, 180, 94; }
.st-card[data-state="unreachable"] { --ring: 248, 113, 113; }
.st-top { display: flex; align-items: flex-start; gap: 14px; }
.st-dot { flex: none; width: 12px; height: 12px; margin-top: 10px; border-radius: 999px; background: rgb(var(--ring)); box-shadow: 0 0 0 0 rgba(var(--ring), .6);
  animation: dot-pulse 1.8s ease-out infinite; transition: background-color .3s; }
.st-words { min-width: 0; }
.st-words h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.st-mood { margin: 4px 0 0; color: var(--ink-2); }
.st-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.st-fact { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.st-fact dt { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.st-fact dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 4px 0 0; color: var(--ink-1); font: 600 20px/1.4 var(--mono);
  font-variant-numeric: tabular-nums; }
.st-link { color: var(--gold); font: 600 13px/1.4 var(--sans); }
.st-link:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.st-conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.st-conns li { --ring: 74, 222, 128; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03); font-size: 14px; }
.st-conns li[data-state="reconnecting"] { --ring: 227, 180, 94; }
.st-conns .st-dot { width: 8px; height: 8px; margin: 0; animation: none; }
.st-conn-name { font-weight: 600; }
.st-conn-state { color: var(--ink-3); }
.st-conn-ping { margin-left: auto; color: var(--ink-2); font: 500 13px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-note { margin: 16px 0 0; color: var(--ink-3); font-size: 13px; }
.st-help { display: grid; gap: 10px; margin-top: 16px; }
.st-tip { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
.st-tip .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--v-4); }
.st-tip h2 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.st-tip p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.st-tip a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .st-card { padding: 18px; }
  .st-top { gap: 12px; }
  .st-words h2 { font-size: 20px; }
  .st-dot { margin-top: 8px; }
  .st-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-fact { padding: 12px 14px; }
  .st-fact:last-child { grid-column: 1 / -1; }
  .st-fact dd { font-size: 16px; }
  .st-tip { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .st-dot { animation: none; box-shadow: 0 0 8px rgba(var(--ring), .5); transition: none; } }

/* ---- vote page (2026-12-02) ---- /vote (website/votes_page.py): intro + where to vote + your progress, then perks and top voters.
   Cards reuse the premium page's .plan / .pm-perk look; everything vote-only is vt-. */
.vt { padding-bottom: 96px; }
.vt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-areas: "intro where" "me where";
  align-items: start; gap: 28px 56px; padding-top: 48px; }
.vt-intro { grid-area: intro; min-width: 0; }
.vt-where { grid-area: where; align-self: stretch; min-width: 0; }
.vt-where.plan:hover { transform: none; }
.vt-where h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-1); }
.vt-sites { list-style: none; margin: 0; padding: 0; }
.vt-sites li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.vt-sites li:last-child { padding-bottom: 0; }
.vt-site { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vt-site b { color: var(--ink-1); font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.vt-site small { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.vt-sites .btn { flex: none; margin: 0; align-self: center; }
.vt-me { grid-area: me; align-self: end; min-width: 0; max-width: 560px; padding: 20px 22px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vt-me-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vt-me h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink-1); }
.vt-count { font: 600 14px var(--mono); color: var(--gold); white-space: nowrap; }
.vt-bar { height: 8px; margin-top: 14px; }
.vt-me p { margin: 12px 0 0; max-width: none; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.vt-guest p { margin-top: 6px; }
.vt-guest .btn { margin-top: 16px; }
.vt-board { list-style: none; margin: 36px 0 0; padding: 4px 0; max-width: 760px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vt-board li { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 20px; }
.vt-board li + li { border-top: 1px solid var(--line); }
.vt-rank { font: 700 14px var(--mono); color: var(--ink-3); text-align: center; }
.vt-board .m1 .vt-rank { color: #ffd76a; } .vt-board .m2 .vt-rank { color: #d6dbe4; } .vt-board .m3 .vt-rank { color: #e3a26f; }
.vt-face { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--n-700); }
.vt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-1); font-weight: 600; }
.vt-votes { font: 500 13px var(--mono); color: var(--ink-2); white-space: nowrap; }
.vt-empty { margin: 36px 0 0; max-width: 760px; padding: 20px 22px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-3); }
@media (max-width: 900px) {
  .vt-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "where" "me"; gap: 20px; padding-top: 36px; }
  .vt-me { max-width: none; }
}
@media (max-width: 520px) {
  .vt { padding-bottom: 64px; }
  .vt-where.plan { padding: 22px 20px; }
  .vt-me { padding: 18px; }
  .vt-board li { grid-template-columns: 20px 28px minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; }
  .vt-face { width: 28px; height: 28px; }
}

/* ---- premium page (2026-12-02) ---- */
/* /premium (website/public.py premium_page): the plans with their steps, the "Your own Crowe" try-out (controls, the
   Discord window, the profile pop-out from mock_profile), six perk cards, the Free vs Premium table (numbers come from
   limits.py) and the FAQ. Only transform and opacity ever animate (app.js block of the same name). */
.pm-head .pm-trust { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.pm-head .pm-trust a { white-space: nowrap; color: var(--gold); text-decoration: underline; text-decoration-color: rgba(227, 180, 94, .4); text-underline-offset: 3px; }
@media (hover: hover) { .pm-head .pm-trust a:hover { text-decoration-color: var(--gold); } }
.pmx-steps { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; counter-reset: pmx-step; }
.pmx-steps li { display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; counter-increment: pmx-step; }
.pmx-steps li::before { content: counter(pmx-step); flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-3); font: 700 11px/1 var(--sans); transform: translateY(-1px); }
.plan.featured .pmx-steps li::before { border-color: rgba(227, 180, 94, .55); color: var(--gold-light); }
.pmx-steps a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(227, 180, 94, .4); text-underline-offset: 3px; }
.pmx-steps code { color: var(--purple-light); white-space: nowrap; }
.v2-block.pmx-block { margin-top: 112px; scroll-margin-top: calc(var(--bar) + 24px); }

/* Your own Crowe: controls | Discord window | profile pop-out (narrower: controls beside the two; phones: previews first,
   so whatever is typed stays in sight above the keyboard) */
.pmx-stage { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; grid-template-areas: "ctl win card"; gap: 24px;
  align-items: start; margin-top: 36px; }
.pmx-controls { grid-area: ctl; display: grid; gap: 20px; padding: 22px; background: var(--glass); border: 1px solid var(--line);
  border-radius: 14px; backdrop-filter: blur(14px); }
.pmx-win { grid-area: win; min-width: 0; position: relative; isolation: isolate; }
.pmx-card { grid-area: card; min-width: 0; }
.pmx-cap { display: block; margin: 0 2px 10px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
body[data-bg="midnight"] .pmx-win::after { content: ""; position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #3a1b5c, rgba(48, 22, 76, .7) 45%, transparent); filter: blur(24px); opacity: .8; }
.pmx-win .dc-head { flex-wrap: wrap; }
.pmx-win .dc-name { min-width: 0; overflow-wrap: anywhere; }
.pmx-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: var(--ink-1);
  font-size: 14.5px; font-weight: 700; }
.pmx-field label small { display: inline; margin: 0; color: var(--ink-3); font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.pmx-field input, .pmx-field textarea { display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(7, 5, 13, .7); color: var(--ink-1); font: 500 16px/1.45 var(--sans); box-shadow: none; }
.pmx-field textarea { min-height: 98px; resize: none; }
.pmx-field input::placeholder { color: var(--ink-3); opacity: .7; }
@media (hover: hover) { .pmx-field input:hover, .pmx-field textarea:hover { border-color: rgba(181, 156, 255, .5); } }
.pmx-field input:focus, .pmx-field textarea:focus { outline: 0; border-color: rgba(227, 180, 94, .7); box-shadow: 0 0 0 3px rgba(227, 180, 94, .14); }
.pmx-looks { min-width: 0; margin: 0; padding: 0; border: 0; }
.pmx-looks legend { margin: 0 0 8px; padding: 0; color: var(--ink-1); font-size: 14.5px; font-weight: 700; }
.pmx-look-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pmx-look { position: relative; display: block; margin: 0; font-weight: 600; }
.pmx-look input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pmx-look span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--ink-2); font-size: 14px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s; }
.pmx-look img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #232428; }
.pmx-look input:checked + span { border-color: rgba(227, 180, 94, .6); background: rgba(227, 180, 94, .12); color: var(--gold-light); }
@media (hover: hover) { .pmx-look:hover input:not(:checked) + span { border-color: rgba(181, 156, 255, .55); color: #fff; } }
.pmx-look input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pmx-fine { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.55; }

/* the profile pop-out (mockups.py mock_profile): Discord's own sizes and colours */
.dp-card { position: relative; overflow: hidden; border-radius: 12px; background: #232428; color: #dbdee1;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.dp-banner { height: 105px; background: #4b3a8f; }
.dp-banner[data-tone="crowe"] { background: linear-gradient(135deg, #5b3fd1, #2a1d63); }
.dp-banner[data-tone="dusk"] { background: #6b4636; }
.dp-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.dp-avatar { position: absolute; top: 59px; left: 16px; box-sizing: content-box; width: 80px; height: 80px; border: 6px solid #232428;
  border-radius: 50%; background: #232428; object-fit: cover; }
.dp-body { padding: 44px 16px 16px; }
.dp-name { color: #f2f3f5; font-size: 20px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dp-user { display: flex; align-items: center; margin-top: 2px; color: #dbdee1; font-size: 14px; }
.dp-user .dc-badge { display: inline-flex; align-items: center; height: 15px; margin-left: 6px; padding: 0 4.5px; }
.dp-bio { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.4;
  white-space: pre-line; overflow-wrap: anywhere; }
.dp-bio:empty { display: none; }

/* six perks: three across, two on tablets, one on phones */
.v2-feats.pmx-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Free vs Premium: the table beside three short notes */
.pmx-compare { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 36px; }
.pmx-table-wrap { padding: 4px 24px 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.pmx-table { width: 100%; border-collapse: collapse; }
.pmx-table th, .pmx-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.pmx-table thead th { padding: 16px 0 12px; color: var(--ink-3); font-size: 13.5px; font-weight: 700; }
.pmx-table thead th.pro { color: var(--gold); }
.pmx-table td, .pmx-table thead th + th { width: 104px; text-align: center; }
.pmx-table tbody th { padding-right: 12px; color: var(--ink-1); font-size: 15px; font-weight: 600; line-height: 1.35; }
.pmx-table tbody th small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.pmx-table td { color: var(--ink-2); font: 600 15px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.pmx-table td.pro { color: var(--gold-light); }
.pmx-table td.pmx-inf { font-size: 14px; }
.pmx-table .pmx-group th { padding: 24px 0 6px; border-bottom: 0; color: var(--v-4); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.pmx-table tbody:first-of-type .pmx-group th { padding-top: 18px; }
.pmx-table tbody tr:last-child > * { border-bottom: 0; }
.pmx-yes { display: inline-grid; place-items: center; vertical-align: middle; }
.pmx-yes svg { width: 20px; height: 20px; color: var(--ink-3); }
.pro .pmx-yes svg { color: var(--gold); }
.pmx-no { display: inline-block; width: 12px; height: 2px; border-radius: 1px; background: var(--ink-3); opacity: .45; vertical-align: middle; }
.pmx-notes { display: grid; gap: 14px; }
.pmx-note { padding: 20px 22px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.pmx-note h3 { display: flex; align-items: center; gap: 10px; color: var(--ink-1); font-size: 16px; font-weight: 700; line-height: 1.3; }
.pmx-note h3 svg { flex: none; width: 20px; height: 20px; color: var(--gold); }
.pmx-note p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 1099px) {
  .pmx-stage { grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "ctl win" "ctl card"; }
  .pmx-card { max-width: 340px; }
  .pmx-compare { grid-template-columns: minmax(0, 1fr); }
  .pmx-notes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 860px) {
  .v2-feats.pmx-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .v2-block.pmx-block { margin-top: 80px; }
  .pmx-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "win" "card" "ctl"; gap: 20px; margin-top: 28px; }
  .pmx-card { max-width: none; }
  .pmx-controls { padding: 18px; }
  .pmx-win::after { inset: -8% -4%; }
  .pmx-table-wrap { padding: 2px 16px 6px; }
  .pmx-table td, .pmx-table thead th + th { width: 76px; }
  .pmx-table tbody th { font-size: 14.5px; }
  .pmx-table td.pmx-inf { font-size: 13px; }
}
@media (max-width: 560px) {
  .v2-feats.pmx-perks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* phones: icon beside the title, so six perks don't take six screens */
  .pmx-perks .pm-perk { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 18px; }
  .pmx-perks .pm-ico { grid-row: span 2; align-self: start; margin: 0; }
  .pmx-perks .pm-perk p { margin: 0; }
}
@media (max-width: 400px) {
  .pmx-table td, .pmx-table thead th + th { width: 68px; }
  .pmx-table-wrap { padding: 2px 14px 6px; }
}
