:root {
  --bg: #000;
  --text: #fff;
  --text-2: #a1a1a1;
  --text-3: #6b6b6b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --surface:
    linear-gradient(180deg, #131313 0%, #0a0a0a 100%) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.03) 100%) border-box;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #fff; color: #000; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* shared pieces */
.surface { border: 1px solid transparent; background: var(--surface); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, opacity 0.25s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e2e2e2; }
.btn-ghost {
  color: #fff; border: 1px solid transparent;
  background:
    linear-gradient(180deg, #1a1a1a, #0f0f0f) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.07)) border-box;
}
.btn-ghost:hover { background: linear-gradient(180deg, #242424, #151515) padding-box, linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1)) border-box; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: 0.7; }
.btn .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #cfcfcf; background: rgba(255,255,255,0.05); border: 1px solid var(--line);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pill.off i { background: #555; }
.pill.solid { background: #fff; color: #000; border-color: #fff; }
.pill.solid i { background: #000; }

/* toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 11px; max-width: 380px;
  padding: 12px 16px 12px 13px; border-radius: 14px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; background: var(--surface);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.9);
  animation: toastIn 0.5s var(--ease) both;
}
.toast.out { animation: toastOut 0.35s ease forwards; }
.toast .t-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000; }
.toast.err .t-ic { background: #2a2a2a; color: #fff; }
.toast .t-ic svg { width: 14px; height: 14px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ================= LOGIN ================= */
.auth { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 100px 20px 80px; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-bg .beam { position: absolute; top: 0; left: 50%; width: 1100px; height: 640px; margin-left: -550px;
  background: radial-gradient(38% 70% at 50% 0%, rgba(255,255,255,0.13), transparent 70%); }
.auth-bg .edge { position: absolute; top: 0; left: 50%; width: 700px; height: 1px; margin-left: -350px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent); }
.auth-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 80%); mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 80%);
}
.auth-bg canvas { position: absolute; left: -4%; bottom: 0; width: 108%; height: 46%; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-2%, 0, 0); } to { transform: translate3d(2%, -14px, 0); } }
.auth-top { position: absolute; top: 22px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 26px; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s; }
.back:hover { color: #fff; }
.back svg { width: 16px; height: 16px; }

.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  padding: 34px 32px 28px; border-radius: 28px; text-align: center;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,1);
  animation: cardIn 0.9s var(--ease) both;
}
.auth-card::before { content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } }
.auth-mark { width: 54px; height: 54px; margin: 0 auto; border-radius: 16px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 0; padding: 4px; border-radius: 13px; background: #070707; border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 36px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 600; color: var(--text-3); transition: color 0.3s; }
.seg button.on { color: #000; }
.seg .seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: #fff; transition: transform 0.45s var(--ease); }
.seg[data-mode="register"] .seg-pill { transform: translateX(100%); }
.auth-card h1 { margin-top: 24px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.auth-card .sub { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.swap { transition: opacity 0.2s; }
.swap.fade { opacity: 0; }
.discord-btn { width: 100%; height: 50px; margin-top: 26px; border-radius: 14px; font-size: 15px; }
.discord-btn svg { width: 21px; height: 21px; }
.scopes { margin: 24px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 10px; }
.scopes li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #cfcfcf; }
.scopes li span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #1a1a1a; border: 1px solid var(--line-2); }
.scopes li svg { width: 12px; height: 12px; }
.fine { margin-top: 22px; font-size: 12px; color: var(--text-3); }
.alert { margin-top: 18px; padding: 11px 14px; border-radius: 12px; text-align: left; font-size: 13px; line-height: 1.5; color: #e5e5e5; background: #161616; border: 1px solid var(--line-2); border-left: 3px solid #fff; }

/* ================= DASHBOARD ================= */
.dash { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 14px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0b0b, #060606);
}
.side .brand { padding: 4px 8px; }
.switcher { position: relative; }
.sw-btn {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 14px;
  border: 1px solid transparent; background: var(--surface); text-align: left;
  transition: background 0.25s;
}
.sw-btn:hover { background: linear-gradient(180deg, #191919, #0e0e0e) padding-box, linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08)) border-box; }
.sw-btn .g-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-btn .g-sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.sw-btn .chev { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.3s var(--ease); }
.switcher.open .chev { transform: rotate(180deg); }
.sw-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; max-height: 340px; overflow: auto;
  padding: 6px; border-radius: 14px; border: 1px solid transparent; background: var(--surface);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,1);
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease);
}
.switcher.open .sw-menu { opacity: 1; transform: none; pointer-events: auto; }
.sw-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 13.5px; font-weight: 600; }
.sw-item:hover, .sw-item.on { background: rgba(255,255,255,0.06); }
.sw-item span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-item em { font-style: normal; font-size: 11px; color: var(--text-3); }

.gicon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(140deg, #333, #161616); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; color: #ddd;
}
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.gicon.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.gicon.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }

.nav-group { display: grid; gap: 2px; }
.nav-label { padding: 0 10px 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; background: none;
  font-size: 14px; font-weight: 600; color: #bdbdbd; text-align: left; transition: background-color 0.2s, color 0.2s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.on { background: #fff; color: #000; }
.nav-item[disabled] { opacity: 0.45; pointer-events: none; }
.nav-item .tag { margin-left: auto; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: rgba(255,255,255,0.08); color: #cfcfcf; }
.nav-item.on .tag { background: #000; color: #fff; }

.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #0d0d0d; }
.me img { width: 34px; height: 34px; border-radius: 50%; }
.me .who { flex: 1; min-width: 0; }
.me .who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { font-size: 11.5px; color: var(--text-3); }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #141414; color: #cfcfcf; transition: background-color 0.2s, color 0.2s; }
.icon-btn:hover { background: #fff; color: #000; }
.icon-btn svg { width: 16px; height: 16px; }

.main { min-width: 0; position: relative; }
.main::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 420px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,255,255,0.06), transparent 70%);
}
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  height: 68px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.92);
}
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-3); min-width: 0; }
.crumbs b { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs svg { width: 14px; height: 14px; }
.topbar .spacer { flex: 1; }
.view { position: relative; max-width: 1120px; margin: 0 auto; padding: 38px 34px 70px; animation: viewIn 0.6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }
.v-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.v-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.v-head p { margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* server grid */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.server {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 22px; overflow: hidden;
  border: 1px solid transparent; background: var(--surface);
  animation: viewIn 0.6s var(--ease) both; animation-delay: calc(var(--i) * 40ms);
  transition: transform 0.35s var(--ease);
}
.server:hover { transform: translateY(-3px); }
.server .banner { position: absolute; inset: 0 0 auto 0; height: 70px; opacity: 0.5;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 10px), linear-gradient(120deg, #262626, transparent 80%); }
.server .row { position: relative; display: flex; align-items: center; gap: 13px; }
.server h3 { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server .role { font-size: 12px; color: var(--text-3); }
.server .btn { width: 100%; height: 40px; }
.empty { padding: 60px 20px; text-align: center; border-radius: 22px; border: 1px dashed var(--line-2); color: var(--text-2); }
.empty b { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }

/* overview */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 20px; border-radius: 20px; }
.stat .s-lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.stat .s-lbl svg { width: 16px; height: 16px; }
.stat .s-val { margin-top: 12px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 14px; }
.card { padding: 22px; border-radius: 22px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-h h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.card-h p { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.mod-row { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-top: 1px solid var(--line); }
.mod-row:first-of-type { border-top: 0; padding-top: 0; }
.mod-row .m-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #191919; border: 1px solid var(--line-2); }
.mod-row .m-ic svg { width: 18px; height: 18px; }
.mod-row .m-txt { flex: 1; min-width: 0; }
.mod-row b { font-size: 14px; }
.mod-row span.d { display: block; font-size: 12.5px; color: var(--text-3); }
.mod-row .btn { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 12px; font-size: 13.5px; color: #cfcfcf; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #fff; color: #000; font-size: 12px; font-weight: 800; }
.steps code { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; background: #1d1d1d; border: 1px solid var(--line); }

/* welcome editor */
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.field { margin-top: 20px; }
.field:first-of-type { margin-top: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #d5d5d5; }
.field .hint { margin-top: 7px; font-size: 12px; color: var(--text-3); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #0c0c0c; border: 1px solid var(--line); }
.toggle-row b { font-size: 14px; }
.toggle-row span { display: block; font-size: 12.5px; color: var(--text-3); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #262626; border: 1px solid var(--line-2); transition: background-color 0.3s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #7a7a7a; transition: transform 0.4s var(--ease), background-color 0.3s; }
.switch input:checked + i { background: #fff; }
.switch input:checked + i::after { transform: translateX(18px); background: #000; }
.switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.select, .textarea {
  width: 100%; border-radius: 12px; background: #0a0a0a; border: 1px solid var(--line-2); color: #fff; outline: none;
  transition: border-color 0.2s;
}
.select:focus, .textarea:focus { border-color: rgba(255,255,255,0.45); }
.select {
  height: 44px; padding: 0 40px 0 14px; appearance: none; font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.select option { background: #111; }
.textarea { min-height: 128px; padding: 12px 14px; resize: vertical; font-size: 14px; line-height: 1.55; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.vars button { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: #121212; font-family: var(--mono); font-size: 11.5px; color: #d0d0d0; transition: background-color 0.2s, color 0.2s; }
.vars button:hover { background: #fff; color: #000; }
.count { float: right; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.actions .saved { margin-left: auto; align-self: center; font-size: 12.5px; color: var(--text-3); }

/* live preview: Discord-ish message, monochrome */
.preview { position: sticky; top: 90px; }
.pv { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0e0e0e; }
.pv-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.pv-head .hash { color: var(--text-3); font-weight: 500; margin-right: 3px; }
.pv-body { padding: 16px 14px 20px; display: flex; gap: 12px; }
.pv-body .bot-av { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.pv-name { font-size: 14px; font-weight: 700; }
.pv-name .bot-tag { margin-left: 5px; padding: 1px 5px; border-radius: 4px; background: #fff; color: #000; font-size: 9.5px; font-weight: 800; vertical-align: 1px; }
.pv-name time { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.embed { position: relative; margin-top: 6px; padding: 12px 14px 12px 15px; border-radius: 8px; background: #171717; border: 1px solid var(--line); border-left: 4px solid #fff; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; max-width: 440px; }
.e-author { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.e-author img { width: 22px; height: 22px; border-radius: 50%; }
.e-desc { grid-column: 1; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: #dedede; white-space: pre-wrap; word-break: break-word; }
.e-desc .mention { padding: 0 3px; border-radius: 4px; background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.e-thumb { grid-column: 2; grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.e-foot { grid-column: 1 / -1; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.pv-note { margin-top: 12px; display: flex; gap: 9px; font-size: 12.5px; color: var(--text-3); }
.pv-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.skel { border-radius: 10px; background: linear-gradient(90deg, #121212, #1c1c1c, #121212); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.setup-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 22px; border-radius: 16px; background: #121212; border: 1px solid var(--line-2); border-left: 3px solid #fff; font-size: 13.5px; color: #d6d6d6; }
.setup-banner b { color: #fff; }
.setup-banner code { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; background: #1f1f1f; }

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols, .editor { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform 0.4s var(--ease); }
  .dash.menu .side { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,0.8); }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .view { padding: 26px 16px 60px; }
  .v-head h1 { font-size: 25px; }
}

/* ================= MODULES ================= */
.view.wide { max-width: 1240px; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; background: #0a0a0a; border: 1px solid var(--line-2);
  color: #fff; font-size: 14px; outline: none; transition: border-color 0.2s, background-color 0.2s;
}
.input:focus, .select:focus { border-color: rgba(255,255,255,0.45); background-color: #0d0d0d; }
.input::placeholder, .textarea::placeholder { color: #555; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 40px; }

.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin: 0 0 18px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--line); background: #0b0b0b; font-size: 13.5px; font-weight: 600; color: #bdbdbd; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.cat-tab:hover { color: #fff; border-color: var(--line-2); }
.cat-tab.on { background: #fff; color: #000; border-color: #fff; }
.cat-tab em { font-style: normal; font-family: var(--mono); font-size: 11px; opacity: 0.6; }
.cat-tab svg { width: 15px; height: 15px; }

.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.mod-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; cursor: pointer;
  border: 1px solid transparent; background: var(--surface); text-align: left;
  animation: viewIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 18ms);
  transition: transform 0.35s var(--ease);
}
.mod-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; border: 1px solid rgba(255,255,255,0.22); opacity: 0; transition: opacity 0.3s; }
.mod-card:hover { transform: translateY(-2px); }
.mod-card:hover::after { opacity: 1; }
.mod-card .mc-top { display: flex; align-items: center; justify-content: space-between; }
.mod-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.mod-card p { font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.mod-card .mc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.mod-card .mc-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: #444; }
.mod-card.is-on .mc-foot .dot { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.mod-card.is-on .mc-foot .state { color: #fff; }
.mod-card .mc-foot .cmds { margin-left: auto; font-family: var(--mono); font-size: 11px; }
.tile { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(160deg, #262626, #121212); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); transition: background-color 0.3s, color 0.3s; }
.tile svg { width: 20px; height: 20px; }
.mod-card.is-on .tile { background: #fff; color: #000; border-color: #fff; }
.switch.sm { width: 38px; height: 22px; }
.switch.sm i::after { width: 14px; height: 14px; }
.switch.sm input:checked + i::after { transform: translateX(16px); }

/* editor hero */
.m-hero { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; margin-bottom: 16px; overflow: hidden; }
.m-hero::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); }
.m-hero .tile { width: 58px; height: 58px; border-radius: 17px; }
.m-hero .tile svg { width: 26px; height: 26px; }
.m-hero.is-on .tile { background: #fff; color: #000; border-color: #fff; }
.m-hero .mh-txt { flex: 1; min-width: 0; }
.m-hero h1 { font-size: 25px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m-hero p { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #cfcfcf; background: #141414; border: 1px solid var(--line); }
.chip.mono { font-family: var(--mono); font-weight: 500; }
.chip svg { width: 12px; height: 12px; }
.big-toggle { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 15px; background: #0a0a0a; border: 1px solid var(--line-2); }
.big-toggle b { font-size: 13.5px; min-width: 56px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--text-3); transition: color 0.2s; }
.back-link:hover { color: #fff; }
.back-link svg { width: 15px; height: 15px; }

.m-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 16px; align-items: start; }
.m-form { display: grid; gap: 14px; min-width: 0; }
.m-side { position: sticky; top: 84px; display: grid; gap: 14px; min-width: 0; }
.f-card { padding: 22px; border-radius: 22px; animation: viewIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.f-card-h { margin-bottom: 18px; }
.f-card-h h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; }
.f-card-h p { margin-top: 2px; font-size: 13px; color: var(--text-3); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.fld { min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld[hidden] { display: none; }
.fld > .lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #d5d5d5; }
.fld > .lbl .req { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.fld .hint { margin-top: 7px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.fld.bad .input, .fld.bad .pk-box, .fld.bad .textarea { border-color: rgba(255,255,255,0.75); }
.fld.bad > .lbl .req { color: #fff; }
.toggle-row.sm { padding: 12px 14px; }
.toggle-row.sm b { font-size: 13.5px; font-weight: 600; }

.num { display: flex; height: 44px; border-radius: 12px; background: #0a0a0a; border: 1px solid var(--line-2); overflow: hidden; transition: border-color 0.2s; }
.num:focus-within { border-color: rgba(255,255,255,0.45); }
.num input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 12px; font-size: 14px; font-family: var(--mono); -moz-appearance: textfield; }
.num input::-webkit-inner-spin-button, .num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.num .suf { align-self: center; padding-right: 10px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.num button { flex: none; width: 36px; border: 0; border-left: 1px solid var(--line); background: #111; color: #bbb; font-size: 17px; line-height: 1; transition: background-color 0.2s, color 0.2s; }
.num button:hover { background: #fff; color: #000; }
.dur { display: grid; grid-template-columns: 1fr 112px; gap: 8px; }

.seg2 { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: #070707; border: 1px solid var(--line-2); min-height: 44px; }
.seg2 button { flex: 1; min-width: 0; padding: 0 8px; border: 0; border-radius: 9px; background: none; font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color 0.25s, color 0.25s; }
.seg2 button:hover { color: #fff; }
.seg2 button.on { background: #fff; color: #000; }
.seg2.mini { min-height: 34px; border-radius: 10px; }
.seg2.mini button { font-size: 12px; border-radius: 7px; }

/* channel / role picker */
.picker { position: relative; }
.pk-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 6px 38px 6px 8px; border-radius: 12px;
  background: #0a0a0a; border: 1px solid var(--line-2); text-align: left; cursor: pointer; transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.picker.open .pk-box, .pk-box:hover { border-color: rgba(255,255,255,0.4); }
.pk-box .ph { padding: 0 6px; font-size: 14px; color: #5f5f5f; }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 6px 0 9px; border-radius: 8px; background: #1a1a1a; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.pk-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chip .g, .pk-single .g { color: var(--text-3); font-weight: 500; }
.pk-chip .x { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: var(--text-3); }
.pk-chip .x:hover { background: #fff; color: #000; }
.pk-chip .x svg { width: 10px; height: 10px; }
.pk-single { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.pk-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; border-radius: 14px; min-width: 240px;
  border: 1px solid transparent; background: var(--surface); box-shadow: 0 24px 60px -18px rgba(0,0,0,1);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.18s, transform 0.25s var(--ease);
}
.picker.open .pk-pop { opacity: 1; transform: none; pointer-events: auto; }
.picker.up .pk-pop { top: auto; bottom: calc(100% + 6px); }
.pk-pop .input { height: 38px; font-size: 13.5px; border-radius: 10px; margin-bottom: 6px; }
.pk-list { max-height: 260px; overflow: auto; overscroll-behavior: contain; }
.pk-group { padding: 10px 8px 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.pk-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 13.5px; font-weight: 600; color: #ddd; }
.pk-item:hover, .pk-item.kb { background: rgba(255,255,255,0.07); color: #fff; }
.pk-item .t { width: 16px; display: grid; place-items: center; color: var(--text-3); }
.pk-item .t svg { width: 14px; height: 14px; }
.pk-item .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-item .ck { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.pk-item .ck svg { width: 11px; height: 11px; opacity: 0; }
.pk-item.on .ck { background: #fff; border-color: #fff; color: #000; }
.pk-item.on .ck svg { opacity: 1; }
.pk-item[disabled] { opacity: 0.4; pointer-events: none; }
.pk-item em { font-style: normal; font-size: 11px; color: var(--text-3); font-weight: 500; }
.pk-empty { padding: 16px 8px; text-align: center; font-size: 13px; color: var(--text-3); }

.words-box { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 6px 8px; border-radius: 12px; background: #0a0a0a; border: 1px solid var(--line-2); cursor: text; transition: border-color 0.2s; }
.words-box:focus-within { border-color: rgba(255,255,255,0.45); }
.words-box input { flex: 1; min-width: 140px; height: 30px; border: 0; background: none; outline: none; font-size: 14px; padding: 0 6px; }
.color-box { display: flex; gap: 8px; }
.color-box .sw { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; }
.color-box .sw input { position: absolute; inset: -8px; width: 60px; height: 60px; border: 0; padding: 0; cursor: pointer; opacity: 0; }
.color-box .sw i { position: absolute; inset: 5px; border-radius: 8px; pointer-events: none; }
.color-box .input { font-family: var(--mono); text-transform: lowercase; }

/* message editor */
.msg-ed { display: grid; gap: 14px; }
.msg-embed { position: relative; display: grid; gap: 14px; padding: 16px 16px 16px 20px; border-radius: 14px; background: #0c0c0c; border: 1px solid var(--line); }
.msg-embed::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ec, #fff); }
.msg-embed .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg-embed .sub { font-size: 12px; font-weight: 600; color: #bdbdbd; margin-bottom: 6px; display: block; }
.msg-embed .input { height: 40px; font-size: 13.5px; }
.msg-embed .textarea { min-height: 96px; font-size: 13.5px; }

/* lists */
.lst { display: grid; gap: 8px; }
.li { border-radius: 14px; background: #0b0b0b; border: 1px solid var(--line); animation: viewIn 0.4s var(--ease) both; }
.li-h { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 12px; cursor: pointer; user-select: none; }
.li-h .ix { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #1b1b1b; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; color: #cfcfcf; }
.li-h .tt { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-h .tt .g { color: var(--text-3); font-weight: 500; }
.li-h .ib { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--text-3); transition: background-color 0.2s, color 0.2s; }
.li-h .ib:hover { background: #1f1f1f; color: #fff; }
.li-h .ib svg { width: 15px; height: 15px; }
.li-h .ib[disabled] { opacity: 0.3; pointer-events: none; }
.li-h .chev { transition: transform 0.3s var(--ease); }
.li.open .li-h .chev { transform: rotate(180deg); }
.li-b { display: none; padding: 4px 14px 16px; border-top: 1px solid var(--line); }
.li.open .li-b { display: block; }
.li-b .f-grid { margin-top: 12px; }
.add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; border-radius: 12px; border: 1px dashed var(--line-2); background: none; font-size: 13.5px; font-weight: 600; color: #bdbdbd; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.add-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: #0c0c0c; }
.add-btn svg { width: 15px; height: 15px; }
.add-btn[disabled] { opacity: 0.4; pointer-events: none; }
.add-btn em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.lst-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--text-3); border-radius: 12px; background: #0a0a0a; border: 1px solid var(--line); }

/* side: preview + cards */
.side-card { padding: 18px; border-radius: 20px; }
.side-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.side-card h3 svg { width: 16px; height: 16px; color: var(--text-3); }
.side-card p, .side-card li { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.side-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.side-card .kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.side-card .kv:first-of-type { border-top: 0; padding-top: 0; }
.side-card .kv span { color: var(--text-3); }
.side-card .btn { width: 100%; height: 42px; font-size: 13.5px; }
.side-card .btn + .btn { margin-top: 8px; }
.side-card .act-note { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.pv-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pv-tabs button { flex: none; height: 34px; padding: 0 11px; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s; }
.pv-tabs button:hover { color: #ddd; }
.pv-tabs button.on { color: #fff; border-bottom-color: #fff; }
.pv-test { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.pv-test .btn { height: 40px; font-size: 13.5px; padding: 0 14px; }
.pv-test .pk-box { min-height: 40px; }
.pv-test .full-btn { grid-column: 1 / -1; }
.pv-body .content { margin-top: 2px; font-size: 14px; line-height: 1.5; color: #e8e8e8; white-space: pre-wrap; word-break: break-word; }
.dc .mention { padding: 0 3px; border-radius: 4px; background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.dc code { font-family: var(--mono); font-size: 12px; padding: 1px 4px; border-radius: 4px; background: #222; }
.dc pre { margin: 4px 0; padding: 8px 10px; border-radius: 6px; background: #1a1a1a; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; white-space: pre-wrap; }
.dc .h1 { font-size: 20px; font-weight: 700; line-height: 1.3; } .dc .h2 { font-size: 17px; font-weight: 700; line-height: 1.3; } .dc .h3 { font-size: 15px; font-weight: 700; }
.dc .small { font-size: 11.5px; color: var(--text-3); }
.dc .q { display: inline-block; padding-left: 10px; border-left: 3px solid #444; }
.dc .h1, .dc .h2, .dc .h3, .dc .small { display: inline-block; }
.dc a { text-decoration: underline; text-decoration-color: #555; }
.dc .ts { padding: 0 3px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.embed .e-title { grid-column: 1; margin-top: 4px; font-size: 14.5px; font-weight: 700; color: #fff; }
.embed .e-title.link { text-decoration: underline; text-decoration-color: #666; }
.embed .e-img { grid-column: 1 / -1; margin-top: 10px; width: 100%; max-height: 240px; object-fit: cover; border-radius: 6px; background: #222; }
.embed .e-foot { display: flex; align-items: center; gap: 7px; }
.embed .e-foot img { width: 18px; height: 18px; border-radius: 50%; }
.embed .e-thumb { border-radius: 8px; }
.embed.no-thumb { grid-template-columns: 1fr; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 6px; background: #3a3a3a; font-size: 13px; font-weight: 600; color: #fff; }
.dc-btn.s1 { background: #5c5c5c; } .dc-btn.s3 { background: #e8e8e8; color: #000; } .dc-btn.s4 { background: #222; border: 1px solid #555; }
.pv-empty { padding: 30px 16px; text-align: center; font-size: 13px; color: var(--text-3); }

/* data tables */
.data-card { margin-top: 16px; padding: 22px; border-radius: 22px; }
.sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.sum div { padding: 12px 16px; border-radius: 14px; background: #0c0c0c; border: 1px solid var(--line); min-width: 130px; }
.sum span { display: block; font-size: 12px; color: var(--text-3); }
.sum b { font-size: 20px; letter-spacing: -0.02em; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 10px 14px; text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: #0b0b0b; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: #dcdcdc; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #0c0c0c; }
.tbl .n { font-family: var(--mono); font-size: 12.5px; text-align: right; }
.tbl .u { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.tbl .u img { width: 24px; height: 24px; border-radius: 50%; }
.tbl .tm { color: var(--text-3); font-size: 12.5px; }
.tbl-empty { padding: 30px; text-align: center; font-size: 13.5px; color: var(--text-3); }

/* save bar */
.savebar {
  position: fixed; bottom: 22px; left: calc(272px + (100vw - 272px) / 2); z-index: 40; width: min(680px, calc(100vw - 272px - 40px));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 16px;
  border: 1px solid transparent; background: linear-gradient(180deg, #1c1c1c, #0f0f0f) padding-box, linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.08)) border-box;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,1);
  transform: translate(-50%, 150%); opacity: 0; pointer-events: none; transition: transform 0.5s var(--ease), opacity 0.3s;
}
.savebar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.savebar.shake { animation: shake 0.42s; }
@keyframes shake { 20%, 60% { transform: translate(calc(-50% - 7px), 0); } 40%, 80% { transform: translate(calc(-50% + 7px), 0); } }
.savebar p { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.savebar p span { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savebar .btn { height: 40px; font-size: 13.5px; }
.btn-text { background: none; border: 0; color: #cfcfcf; padding: 0 12px; }
.btn-text:hover { color: #fff; text-decoration: underline; }

/* overview additions */
.act-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.act-row:first-child { border-top: 0; padding-top: 0; }
.act-row .tile { width: 36px; height: 36px; border-radius: 11px; background: #fff; color: #000; border-color: #fff; }
.act-row .tile svg { width: 17px; height: 17px; }
.act-row .m-txt { flex: 1; min-width: 0; }
.act-row b { font-size: 14px; }
.act-row span.d { display: block; font-size: 12.5px; color: var(--text-3); }
.act-row .btn { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.reco { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reco a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: #0c0c0c; border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: border-color 0.2s, background-color 0.2s; }
.reco a:hover { border-color: var(--line-2); background: #111; }
.reco .tile { width: 32px; height: 32px; border-radius: 9px; }
.reco .tile svg { width: 15px; height: 15px; }
.case-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.case-row:first-child { border-top: 0; padding-top: 0; }
.case-row code { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.case-row .r { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.stack { display: grid; gap: 14px; align-content: start; }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,0.72); animation: fadeIn 0.2s both; }
.modal { width: 100%; max-width: 400px; padding: 24px; border-radius: 22px; animation: cardIn 0.4s var(--ease) both; }
.modal h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.modal p { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.modal .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
@keyframes fadeIn { from { opacity: 0; } }
.nav-item .tag.num { font-family: var(--mono); font-weight: 500; }
.side { overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }

@media (max-width: 1100px) {
  .m-grid { grid-template-columns: 1fr; }
  .m-side { position: static; }
}
@media (max-width: 860px) {
  .savebar { left: 50%; width: calc(100vw - 24px); bottom: 12px; }
  .f-grid, .msg-embed .row2, .reco { grid-template-columns: 1fr; }
  .m-hero { flex-wrap: wrap; padding: 18px; }
  .big-toggle { width: 100%; justify-content: space-between; }
  .search { max-width: none; }
}

.nav-item .tag { flex: none; white-space: nowrap; }
.f-card:has(.picker.open), .li:has(.picker.open), .side-card:has(.picker.open), .pv:has(.picker.open) { position: relative; z-index: 25; }
.pv { position: relative; }
img[src*="/embed/avatars/"] { filter: grayscale(1) brightness(1.15); }
.fld .textarea { min-height: 96px; }
@media (max-width: 600px) {
  #botPill { display: none !important; }
  .crumbs > span, .crumbs > svg { display: none; }
  .topbar .btn-ghost { display: none; }
}

/* ================= SIDEBAR v2 ================= */
.dash { grid-template-columns: 256px 1fr; }
.side {
  gap: 0; padding: 0; background: #050505; border-right: 1px solid rgba(255,255,255,0.06);
}
.side .brand { display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 20px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.side .brand img { width: 26px; height: 26px; }
.brand-sub { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-3); padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); }

.switcher { margin: 14px 12px 6px; }
.sw-btn { gap: 10px; padding: 8px 10px 8px 8px; border-radius: 12px; background: #0c0c0c; border: 1px solid rgba(255,255,255,0.08); }
.sw-btn:hover { background: #121212; border-color: rgba(255,255,255,0.16); }
.sw-btn .gicon { width: 32px; height: 32px; border-radius: 9px; font-size: 11.5px; }
.sw-btn .g-name { font-size: 13.5px; }
.sw-btn .g-sub { font-size: 11px; margin-top: 1px; }
.sw-menu { border-radius: 12px; }

.nav-group { gap: 1px; padding: 10px 12px 4px; }
.nav-label { padding: 8px 10px 6px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #5c5c5c; }
.nav-item {
  position: relative; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: #8f8f8f; border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.nav-item svg { width: 17px; height: 17px; color: #6a6a6a; transition: color 0.2s; }
.nav-item:hover { background: #0e0e0e; color: #e6e6e6; }
.nav-item:hover svg { color: #bdbdbd; }
.nav-item.on { background: #121212; border-color: rgba(255,255,255,0.09); color: #fff; font-weight: 600; }
.nav-item.on svg { color: #fff; }
.nav-item.on::before { content: ""; position: absolute; left: -13px; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: #fff; }
.nav-item[disabled] { opacity: 0.35; }
.nav-item .cnt { margin-left: auto; align-self: center; flex: none; font-family: var(--mono); font-size: 11px; color: #4f4f4f; white-space: nowrap; }
.nav-item .cnt b { font-weight: 500; color: #9a9a9a; }
.nav-item.on .cnt b { color: #fff; }

.me {
  margin: auto 12px 12px; padding: 10px; gap: 10px; border-radius: 12px; background: transparent; border: 1px solid transparent;
  border-top-color: rgba(255,255,255,0.06); transition: background-color 0.2s, border-color 0.2s;
}
.me:hover { background: #0c0c0c; border-color: rgba(255,255,255,0.08); }
.me img { width: 32px; height: 32px; }
.me .who b { font-size: 13px; }
.me .who span { font-size: 11px; }
.me .icon-btn { width: 30px; height: 30px; border-radius: 8px; background: transparent; border-color: transparent; color: #7a7a7a; }
.me .icon-btn:hover { background: #fff; color: #000; }

.savebar { left: calc(256px + (100vw - 256px) / 2); width: min(680px, calc(100vw - 256px - 40px)); }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { width: 268px; }
  .savebar { left: 50%; width: calc(100vw - 24px); }
}

/* ================= MUSIC PLAYER ================= */
.player { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; margin-bottom: 16px; border-radius: 24px; overflow: hidden; animation: viewIn 0.5s var(--ease) both; }
.pl-main { padding: 24px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--line); min-width: 0; }
.pl-now { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pl-cover { flex: none; width: 92px; height: 92px; border-radius: 16px; object-fit: cover; background: #151515; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -18px rgba(0,0,0,1); filter: grayscale(1) contrast(1.05); transition: filter 0.4s; }
.player:not(.idle) .pl-cover:hover { filter: none; }
.pl-cover.ph { display: grid; place-items: center; color: #555; }
.pl-cover.ph svg { width: 30px; height: 30px; }
.pl-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-src { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
.pl-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.pl-title:hover { text-decoration: underline; text-decoration-color: #555; }
.pl-artist { font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-prog { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.pl-prog span:last-child { text-align: right; }
.pl-bar { position: relative; height: 6px; border-radius: 99px; background: #1d1d1d; cursor: pointer; overflow: hidden; }
.pl-bar i { position: absolute; inset: 0; background: #fff; border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 0.5s linear; }
.pl-bar:hover { background: #262626; }
.player.idle .pl-bar { cursor: default; }
.pl-ctrls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pl-b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #0d0d0d; color: #cfcfcf; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease), border-color 0.2s; }
.pl-b svg { width: 17px; height: 17px; }
.pl-b:hover { background: #1a1a1a; color: #fff; border-color: var(--line-2); }
.pl-b:active { transform: scale(0.94); }
.pl-b.on { background: #fff; color: #000; border-color: #fff; }
.pl-b.big { width: 58px; height: 58px; background: #fff; color: #000; border-color: #fff; }
.pl-b.big svg { width: 22px; height: 22px; }
.pl-b.big:hover { background: #e2e2e2; }
.pl-b[disabled] { opacity: 0.35; pointer-events: none; }
.pl-vol { display: flex; align-items: center; gap: 12px; color: var(--text-3); }
.pl-vol svg { width: 17px; height: 17px; flex: none; }
.pl-vol b { width: 44px; text-align: right; font-family: var(--mono); font-size: 12px; font-weight: 500; color: #cfcfcf; }
.pl-vol input { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: #222; outline: none; }
.pl-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.pl-vol input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; }
.pl-add { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.pl-add-row { position: relative; }
.pl-add-ic { position: absolute; left: 14px; top: 50%; margin-top: -8px; color: var(--text-3); pointer-events: none; }
.pl-add-ic svg { width: 16px; height: 16px; }
.pl-add-row .input { padding-left: 40px; }
.pl-add-row2 { display: flex; gap: 8px; }
.pl-add-row2 #plChan { flex: 1; min-width: 0; }
.pl-add-row2 #plChan[hidden] { display: none; }
.pl-add-row2 .btn { height: 44px; }
.pl-add-row2 #plGo { flex: none; }
.pl-add-row2 #plChan[hidden] ~ #plGo { flex: 1; }
.pl-status { display: flex; align-items: center; justify-content: space-between; min-height: 20px; font-size: 12.5px; color: var(--text-2); }
.pl-status:empty { display: none; }
.pl-status .live { display: inline-flex; align-items: center; gap: 7px; }
.pl-status .live svg { width: 14px; height: 14px; }
.pl-status .live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.pl-status .btn-text { height: 28px; font-size: 12.5px; }

.pl-queue { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #070707; }
.pl-qh { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.pl-qh b { font-size: 15px; }
.pl-qh span { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pl-qh .btn-text { height: 30px; font-size: 12.5px; }
.pl-list { flex: 1; overflow-y: auto; max-height: 470px; padding: 6px 8px 10px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.pl-item { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 11px; transition: background-color 0.2s; }
.pl-item:hover { background: #111; }
.pl-item .n { width: 18px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-3); flex: none; }
.pl-item img, .pl-item .ph { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #151515; filter: grayscale(1); }
.pl-item .ph { display: grid; place-items: center; color: #444; }
.pl-item .ph svg { width: 16px; height: 16px; }
.pl-item .t { flex: 1; min-width: 0; }
.pl-item .t b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item .t span { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item .d { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); flex: none; }
.pl-item .ib { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--text-3); opacity: 0; transition: opacity 0.2s, background-color 0.2s, color 0.2s; }
.pl-item:hover .ib { opacity: 1; }
.pl-item .ib:hover { background: #fff; color: #000; }
.pl-item .ib svg { width: 14px; height: 14px; }
.pl-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 60px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.pl-empty svg { width: 26px; height: 26px; margin-bottom: 8px; color: #3a3a3a; }
.pl-empty b { color: #cfcfcf; font-size: 14px; }

@media (max-width: 1000px) {
  .player { grid-template-columns: 1fr; }
  .pl-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .pl-list { max-height: 360px; }
}
@media (max-width: 600px) {
  .pl-cover { width: 72px; height: 72px; }
  .pl-title { font-size: 16.5px; }
  .pl-add-row2 { flex-wrap: wrap; }
  .pl-add-row2 #plChan { flex-basis: 100%; }
  .pl-add-row2 .btn { flex: 1; }
}

/* ================= ICON PICKER ================= */
.icon-fld { padding: 12px; border-radius: 14px; background: #0b0b0b; border: 1px solid var(--line); transition: border-color 0.2s; }
.icon-fld.custom { grid-column: 1 / -1; border-color: var(--line-2); }
.ic-row { display: flex; align-items: center; gap: 12px; }
.ic-prev { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #1b1b1d; border: 1px solid var(--line-2); }
.ic-prev img { width: 22px; height: 22px; object-fit: contain; }
.ic-prev .uni { font-size: 20px; line-height: 1; }
.ic-txt { flex: 1; min-width: 0; }
.ic-txt b { display: block; font-size: 13.5px; }
.ic-txt span { font-size: 11.5px; color: var(--text-3); }
.icon-fld .seg2 { flex: none; width: 130px; }
.ic-custom { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.icon-fld.custom .ic-custom { display: block; }
.ic-custom .input { height: 40px; font-size: 13.5px; font-family: var(--mono); }
.ic-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; max-height: 132px; overflow-y: auto; scrollbar-width: thin; }
.ic-grid button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: #121212; transition: background-color 0.15s, border-color 0.15s; }
.ic-grid button:hover { background: #1f1f1f; }
.ic-grid button.on { border-color: #fff; background: #1f1f1f; }
.ic-grid img { width: 22px; height: 22px; object-fit: contain; }
.ic-grid .uni { font-size: 19px; line-height: 1; }
.dc .content img, .e-desc img { display: inline-block; }

/* ================= CONTAINER (no stripe) ================= */
.cv-box { margin-top: 6px; max-width: 440px; padding: 14px 16px; border-radius: 8px; background: #171717; border: 1px solid var(--line); display: grid; gap: 8px; }
.cv-text { font-size: 13.5px; line-height: 1.5; color: #dedede; white-space: pre-wrap; word-break: break-word; }
.dc > div > .cv-text { margin-top: 2px; font-size: 14px; color: #e8e8e8; }
.cv-section { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.cv-section > div { display: grid; gap: 6px; min-width: 0; }
.cv-thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.cv-gallery img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 6px; display: block; }
.cv-sep { border: 0; border-top: 1px solid #2c2c2c; margin: 2px 0; width: 100%; }
.cv-box .dc-btns { margin-top: 0; }
.msg-embed.no-edge::before { opacity: 0; }
.edge-tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; background: #070707; border: 1px solid var(--line-2); font-size: 12.5px; color: #bdbdbd; cursor: pointer; }
.msg-embed::before { transition: opacity 0.25s; }

/* ================= MESSAGE EDITOR v2 ================= */
.msg-ed { gap: 12px; }
.me-gl { display: block; margin: 0 0 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: #6f6f6f; }
.me-gl em { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 11.5px; color: #4f4f4f; margin-left: 6px; }
.me-text .textarea { min-height: 76px; }
.me-switch { background: #0b0b0b; }
.msg-embed { gap: 0; padding: 6px 18px 18px 22px; border-radius: 16px; background: #0a0a0a; border-color: var(--line-2); }
.msg-embed::before { top: 16px; bottom: 16px; }
.me-group { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.me-group .row2 { gap: 12px; }
.me-group .sub { font-size: 12px; font-weight: 600; color: #a9a9a9; margin-bottom: 6px; display: block; }
.me-group .color-slot[hidden] { display: none; }
.mini-tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 12px; border-radius: 11px; background: #070707; border: 1px solid var(--line-2); font-size: 13px; color: #c9c9c9; cursor: pointer; transition: border-color 0.2s; }
.mini-tog:hover { border-color: rgba(255,255,255,0.22); }
.mini-tog[hidden] { display: none; }

.style-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.style-pick button {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; text-align: left;
  background: #0d0d0d; border: 1px solid var(--line-2); color: #cfcfcf;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}
.style-pick button:hover { border-color: rgba(255,255,255,0.28); }
.style-pick button:active { transform: scale(0.99); }
.style-pick button.on { background: #151515; border-color: #fff; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.sp-art { position: relative; flex: none; display: grid; align-content: center; gap: 4px; width: 52px; height: 40px; padding: 0 8px; border-radius: 7px; background: #1d1d1d; border: 1px solid #2a2a2a; overflow: hidden; }
.sp-art i { display: block; height: 3px; border-radius: 2px; background: #5a5a5a; }
.sp-art .l1 { width: 70%; background: #9a9a9a; } .sp-art .l2 { width: 100%; } .sp-art .l3 { width: 55%; }
.sp-art.stripe { padding-left: 11px; }
.sp-art.stripe::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ec, #fff); }
.style-pick button.on .sp-art { border-color: #3a3a3a; }
.sp-txt { min-width: 0; }
.sp-txt b { display: block; font-size: 13.5px; }
.sp-txt span { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-vars { padding: 12px 14px; border-radius: 12px; background: #0a0a0a; border: 1px dashed var(--line-2); }
.me-vars .vars { margin-top: 0; }

/* ================= DASHBOARD BACKGROUND (homepage ribbon) ================= */
.dash-bg { position: fixed; top: 0; bottom: 0; left: 256px; right: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dash-bg .beam { position: absolute; top: -40px; left: 50%; width: 1000px; height: 560px; margin-left: -500px; background: radial-gradient(40% 65% at 50% 0%, rgba(255,255,255,0.09), transparent 72%); }
.dash-bg .edge { position: absolute; top: 0; left: 50%; width: 640px; height: 1px; margin-left: -320px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); }
.dash-bg canvas { position: absolute; left: -4%; bottom: -2%; width: 108%; height: 52%; opacity: 0.75; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(-2%, 0, 0); } to { transform: translate3d(2%, -16px, 0); } }
.main::before { display: none; }
#view { position: relative; z-index: 1; }
.topbar { background: rgba(0,0,0,0.86); }
@media (max-width: 860px) { .dash-bg { left: 0; } }
@media (prefers-reduced-motion: reduce) { .dash-bg canvas { animation: none; } }

/* ================= flint PLUS ================= */
.plus-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; margin-left: 8px; border-radius: 6px; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: none; color: #000; background: linear-gradient(135deg, #fff, #bdbdbd); vertical-align: 2px; white-space: nowrap; }
.plus-tag svg { width: 11px; height: 11px; }
.plus-tag.big { height: 24px; padding: 0 9px; font-size: 11.5px; margin-left: 0; }
.mod-card.is-plus .tile { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.06); }
.fld.locked > *:not(.lbl), .fld.locked .toggle-row .switch { opacity: 0.45; pointer-events: none; }
.fld.locked .toggle-row { opacity: 1; }
.fld.locked .toggle-row > div b { display: inline; }
.nav-plus .cnt b { color: #fff; }
.nav-plus svg { color: #bdbdbd; }

.plus-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; margin-bottom: 16px; }
.plus-banner > div { flex: 1; min-width: 0; }
.plus-banner b { display: block; font-size: 14.5px; }
.plus-banner span:not(.tile) { font-size: 13px; color: var(--text-2); }
.plus-banner .tile { background: #fff; color: #000; border-color: #fff; }
.plus-banner .btn { height: 40px; font-size: 13.5px; }

.plus-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 34px; border-radius: 26px; overflow: hidden; margin-bottom: 16px; }
.plus-hero::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); }
.ph-glow { position: absolute; top: -140px; left: -80px; width: 460px; height: 340px; background: radial-gradient(closest-side, rgba(255,255,255,0.10), transparent); pointer-events: none; }
.ph-gem { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(145deg, #fff, #b9b9b9); color: #000; box-shadow: 0 20px 50px -18px rgba(255,255,255,0.35); }
.ph-gem svg { width: 34px; height: 34px; }
.ph-txt { position: relative; min-width: 0; }
.ph-kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.ph-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.ph-txt h1 { margin-top: 6px; font-size: 34px; font-weight: 700; letter-spacing: -0.035em; }
.ph-txt p { margin-top: 6px; max-width: 520px; font-size: 14.5px; color: var(--text-2); }
.ph-price { position: relative; display: grid; justify-items: end; gap: 2px; text-align: right; }
.ph-price b { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ph-price > span:not(.btn) { font-size: 13px; color: var(--text-3); }
.ph-btn { margin-top: 12px; min-width: 170px; }
.ph-btn[aria-disabled] { pointer-events: none; }
.ph-small { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.plus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.plus-feat { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; animation: viewIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.plus-feat .tile { background: #fff; color: #000; border-color: #fff; }
.plus-feat h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.plus-feat p { flex: 1; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.pf-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #fff; }
.pf-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.pf-link:hover svg { transform: translateX(3px); }
.tbl.lim td b { color: #fff; }
.owner-card { margin-top: 14px; }
.owner-card .card-h { margin-bottom: 0; }
.owner-card h2 { display: flex; align-items: center; gap: 8px; }
.owner-card h2 svg { width: 16px; height: 16px; }

/* backups */
.bk { padding: 22px; border-radius: 22px; margin-bottom: 16px; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bk-head h2 { font-size: 16px; font-weight: 700; }
.bk-head p { margin-top: 2px; font-size: 13px; color: var(--text-3); }
.bk-head .btn { height: 40px; font-size: 13.5px; }
.bk-list { display: grid; gap: 8px; }
.bk-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: #0b0b0b; border: 1px solid var(--line); }
.bk-row .tile { width: 36px; height: 36px; border-radius: 10px; }
.bk-row .tile svg { width: 16px; height: 16px; }
.bk-txt { flex: 1; min-width: 0; }
.bk-txt b { display: block; font-size: 14px; }
.bk-txt span { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row .btn { height: 34px; font-size: 13px; padding: 0 14px; border-radius: 10px; }
.bk-row .ib { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--text-3); transition: background-color 0.2s, color 0.2s; }
.bk-row .ib:hover { background: #fff; color: #000; }
.bk-row .ib svg { width: 15px; height: 15px; }
.bk-empty { display: flex; align-items: center; gap: 12px; padding: 22px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--text-3); }
.bk-empty svg { width: 22px; height: 22px; flex: none; }

/* branding */
.img-up { display: flex; align-items: center; gap: 14px; }
.img-prev { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #0d0d0d; border: 1px dashed var(--line-2); }
.img-up.banner .img-prev { width: 220px; height: 78px; border-radius: 12px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-prev span { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.img-prev svg { width: 18px; height: 18px; }
.img-act { display: flex; flex-wrap: wrap; gap: 6px; }
.img-act .btn { height: 38px; font-size: 13px; cursor: pointer; }
.brand-pv .pv-head > span:first-child { font-size: 13.5px; font-weight: 700; }
.bp { position: relative; padding-bottom: 16px; background: #111; }
.bp-banner { height: 110px; background: linear-gradient(135deg, #2a2a2a, #161616); }
.bp-banner img { width: 100%; height: 100%; object-fit: cover; }
.bp-av { position: absolute; top: 62px; left: 16px; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 6px solid #111; background: #222; }
.bp-body { padding: 44px 16px 0; }
.bp-body b { display: flex; align-items: center; gap: 6px; font-size: 19px; letter-spacing: -0.02em; }
.bp-user { font-size: 13px; color: var(--text-3); }
.bp-bio { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #0b0b0b; font-size: 13px; line-height: 1.5; color: #d6d6d6; white-space: pre-wrap; }
.bp-bio.muted { color: var(--text-3); }
.bp-note { margin-top: 12px; font-size: 11.5px; color: var(--text-3); }

@media (max-width: 1100px) {
  .plus-grid { grid-template-columns: 1fr 1fr; }
  .plus-hero { grid-template-columns: auto 1fr; }
  .ph-price { grid-column: 1 / -1; justify-items: start; text-align: left; }
}
@media (max-width: 600px) {
  .plus-grid { grid-template-columns: 1fr; }
  .plus-hero { grid-template-columns: 1fr; padding: 24px; }
  .bk-row { flex-wrap: wrap; }
}
.toggle-row .plus-tag, .lbl .plus-tag { display: inline-flex; font-size: 10.5px; color: #000; vertical-align: 1px; }
.wm-cap { padding: 12px 14px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

/* Plus: redeem + owner tools */
.redeem { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; margin-bottom: 16px; }
.redeem .tile { background: #fff; color: #000; border-color: #fff; }
.rd-txt { flex: 1; min-width: 0; }
.rd-txt b { display: block; font-size: 15px; }
.rd-txt span { font-size: 13px; color: var(--text-3); }
.rd-form { display: flex; gap: 8px; width: min(440px, 100%); }
.rd-form .input { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.rd-form .btn { height: 44px; }
.plus-grid.five { grid-template-columns: repeat(5, 1fr); }
.own-row, .own-gen { padding: 16px 0; border-top: 1px solid var(--line); }
.own-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.own-row b, .own-gen > div > b { display: block; font-size: 14px; }
.own-row span, .own-gen > div > span { font-size: 12.5px; color: var(--text-3); }
.og-form { display: grid; grid-template-columns: auto 130px 1fr auto; gap: 8px; margin-top: 12px; }
.og-form .seg2 { min-width: 260px; }
.og-form .btn { height: 44px; }
.og-codes { margin-top: 14px; padding: 14px; border-radius: 14px; background: #0a0a0a; border: 1px dashed var(--line-2); display: grid; gap: 8px; }
.og-codes p { font-size: 12.5px; color: var(--text-3); }
.og-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: #121212; border: 1px solid var(--line); }
.og-code code { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: #fff; }
.og-code .ib { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-3); }
.og-code .ib:hover { background: #fff; color: #000; }
.og-code .ib svg { width: 15px; height: 15px; }
#keyList .tbl-wrap { margin-top: 8px; }
#keyList .btn-text { height: 28px; font-size: 12.5px; }
@media (max-width: 1100px) { .plus-grid.five { grid-template-columns: 1fr 1fr; } .og-form { grid-template-columns: 1fr 1fr; } .redeem { flex-wrap: wrap; } .rd-form { width: 100%; } }
@media (max-width: 600px) { .plus-grid.five, .og-form { grid-template-columns: 1fr; } }

/* ---------- bot status rotator (owner only) ---------- */
.nav-item[hidden] { display: none; }
.st-live { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.st-av { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #1a1a1a; display: grid; place-items: center; }
.st-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.st-av svg { width: 22px; height: 22px; }
.st-dot { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid #0c0c0c; background: #fff; }
.st-dot.idle { background: radial-gradient(circle at 30% 30%, #0c0c0c 0 35%, #fff 36%); }
.st-dot.dnd { background: linear-gradient(#fff, #fff) center / 8px 2.5px no-repeat, #6b6b6b; }
.st-who { flex: 1; min-width: 0; }
.st-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.st-bot { font-size: 10px; font-weight: 700; background: #fff; color: #000; border-radius: 4px; padding: 1px 5px; }
.st-now { margin-top: 3px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-now b, .st-pv b { color: #fff; font-weight: 600; }
.st-none { color: var(--text-3); }
.st-live + .card, .st-live ~ .card { margin-bottom: 16px; }
.st-mode { width: 360px; flex: none; }
.st-every { width: 160px; flex: none; }
.st-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12.5px; color: var(--text-3); }
.st-vars > span { margin-right: 4px; }
.st-var { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: #0a0a0a; font-family: var(--mono); font-size: 12px; color: #fff; transition: background-color 0.2s, border-color 0.2s; }
.st-var em { font-style: normal; color: var(--text-3); font-family: inherit; }
.st-var:hover { background: #161616; border-color: rgba(255, 255, 255, 0.28); }
.st-row { display: grid; grid-template-columns: 22px 440px 1fr auto; align-items: start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.st-n { padding-top: 13px; font-family: var(--mono); font-size: 12px; color: var(--text-3); text-align: center; }
.st-type { min-height: 44px; }
.st-pv { margin-top: 7px; padding-left: 2px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-acts { display: flex; gap: 4px; padding-top: 4px; }
.st-acts .ib[disabled] { opacity: 0.3; pointer-events: none; }
.st-empty { display: flex; align-items: center; gap: 12px; padding: 22px; border: 1px dashed var(--line-2); border-radius: 16px; font-size: 13px; color: var(--text-3); }
.st-empty svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 860px) {
  .st-row { grid-template-columns: 22px minmax(0, 1fr); }
  .st-row .st-type, .st-row .st-txt, .st-row .st-acts { grid-column: 2; min-width: 0; }
  .st-row .st-acts { justify-content: flex-end; padding-top: 0; }
  .st-type button { padding: 0 1px; font-size: 10.5px; letter-spacing: -0.01em; text-overflow: clip; }
  .st-live { flex-wrap: wrap; }
  .card-h:has(> .big-toggle) { align-items: flex-start; }
  .card-h > .big-toggle { width: auto; flex: none; }
  .own-row:has(.st-mode) { flex-wrap: wrap; }
  .st-mode { width: 100%; }
}
.st-acts .ib { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--text-3); transition: background-color 0.2s, color 0.2s; }
.st-acts .ib:hover { background: #1f1f1f; color: #fff; }
.st-acts .ib svg { width: 16px; height: 16px; }
