/* ServerSmith dashboard */

.dash-body { min-height: 100vh; background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 90, 31, .07), transparent 60%), var(--iron-0); }

/* ---------- Header ---------- */
.dash-head {
  position: sticky; top: 0; z-index: 60;
  height: 60px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(13, 12, 11, .86);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.dash-head__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-head__right { display: flex; align-items: center; gap: 10px; flex: none; }
.dash-menu { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 0.88rem; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-2); }
.crumbs a { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }
.crumbs__sep { color: var(--dim); display: inline-flex; }

.usermenu { position: relative; }
.usermenu__btn { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--iron-1); transition: border-color .2s; }
.usermenu__btn:hover { border-color: var(--line-3); }
.usermenu__btn img, .usermenu__av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--iron-3); }
.usermenu__name { font-size: 0.86rem; font-weight: 600; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 70;
  padding: 6px; border-radius: var(--r); background: var(--iron-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  display: grid; gap: 2px; animation: popIn .16s var(--ease);
}
.usermenu__pop[hidden] { display: none; }
.usermenu__head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 6px; }
.usermenu__pop a, .usermenu__pop button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 0.88rem; color: var(--text-2); background: none; border: 0; text-align: left; width: 100%; }
.usermenu__pop a:hover, .usermenu__pop button:hover { background: var(--iron-3); color: var(--text); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Boot / overlay / generic states ---------- */
.dash-main { min-height: calc(100vh - 60px); }
.view { min-height: inherit; }
.boot { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; }
.boot__mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px; color: var(--ember); background: radial-gradient(circle at 50% 70%, rgba(255, 90, 31, .25), transparent 70%), var(--iron-1); border: 1px solid var(--line-2); animation: glow 1.8s ease-in-out infinite; }
.boot__bar { width: 160px; height: 3px; border-radius: 3px; background: var(--iron-3); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--ember), var(--hot)); border-radius: 3px; animation: barSlide 1.1s ease-in-out infinite; }
@keyframes barSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes glow { 50% { box-shadow: 0 0 40px -6px var(--ember-glow); } }
.overlay { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; background: rgba(13, 12, 11, .88); backdrop-filter: blur(6px); }
.center-state { min-height: 60vh; display: grid; place-items: center; padding: 24px; }

.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--iron-2); border: 1px solid var(--line-2); font-size: 0.9rem; color: var(--text-2); }
.notice .ic { flex: none; margin-top: 2px; color: var(--brass-2); }
.notice--ok { background: rgba(111, 207, 142, .08); border-color: rgba(111, 207, 142, .3); }
.notice--ok .ic { color: var(--ok); }
.notice--ember { background: rgba(255, 90, 31, .08); border-color: rgba(255, 90, 31, .3); }
.notice--ember .ic { color: var(--ember); }
.notice--bad { background: rgba(255, 90, 90, .08); border-color: rgba(255, 90, 90, .3); }
.notice--bad .ic { color: var(--bad); }
.link { color: var(--hot); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: rgba(255, 181, 71, .35); text-underline-offset: 3px; cursor: pointer; }
.link:hover { text-decoration-color: var(--hot); }
.t-dim { color: var(--dim); }
.t-ok { color: var(--ok); }
.t-hot { color: var(--hot); }
.t-bad { color: #FF8A8A; }
.is-dim { opacity: .45; }

/* ---------- Login ---------- */
.login { min-height: calc(100vh - 60px); display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 420px); justify-content: center; align-items: center; gap: 56px; padding: 48px 24px; }
.login__card { padding: 40px 36px 32px; border-radius: 20px; background: linear-gradient(180deg, var(--iron-2), var(--iron-1)); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 18px; }
.login__mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; color: var(--ember); background: radial-gradient(circle at 50% 75%, rgba(255, 90, 31, .3), transparent 70%), var(--iron-0); border: 1px solid var(--line-2); }
.login__title { font-size: clamp(2rem, 4vw, 2.7rem); }
.login__fine { line-height: 1.5; }
.login__side { align-self: center; transform: rotate(-1.5deg); }
.login__term { padding: 22px; border-radius: 14px; background: #0A0908; border: 1px solid var(--line-2); display: grid; gap: 8px; font-size: 0.84rem; color: var(--text-2); box-shadow: 0 30px 60px -30px rgba(255, 90, 31, .3); }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login__side { display: none; } }

/* ---------- Server picker ---------- */
.picker { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 40px 0 80px; display: grid; gap: 28px; }
.picker__head { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 32px; align-items: end; }
.picker__title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 14px; }
.picker__plan { padding: 18px; border-radius: var(--r-lg); background: var(--iron-1); border: 1px solid var(--line); display: grid; gap: 10px; }
.picker__plan-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.picker__tools { display: flex; gap: 10px; align-items: center; }
.searchbox { position: relative; flex: 1; max-width: 380px; }
.searchbox > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox .input { padding-left: 38px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.gcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--iron-1); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease), background .2s; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.gcard--live { cursor: pointer; }
.gcard--live:hover, .gcard--live:focus-visible { border-color: rgba(255, 90, 31, .45); transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 90, 31, .05), transparent), var(--iron-1); }
.gcard--idle { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(240, 214, 180, .02) 10px 11px), var(--iron-1); }
.gcard--idle .gcard__icon { filter: grayscale(.8); opacity: .7; }
.gcard--skel { animation: none; }
.gcard__icon { width: 56px; height: 56px; border-radius: 16px; flex: none; object-fit: cover; background: var(--iron-3); }
.gcard__icon--fallback, .ws__gicon--fallback, .plan-guild__icon--fallback, .assign-list__icon--fallback { display: grid; place-items: center; font: 700 1rem var(--f-display); color: var(--brass-2); background: linear-gradient(160deg, var(--iron-3), var(--iron-2)); }
.gcard__body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.gcard__name { font: 600 1rem/1.2 var(--f-body); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gcard__go { color: var(--muted); transition: color .2s, transform .2s; }
.gcard--live:hover .gcard__go { color: var(--ember); transform: translateX(3px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 760px) { .picker__head { grid-template-columns: 1fr; } }

/* ---------- Workspace shell ---------- */
.ws { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.ws__side {
  position: sticky; top: 60px; height: calc(100vh - 60px);
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 12px; overflow-y: auto;
  background: var(--iron-1); border-right: 1px solid var(--line);
}
.ws__guild { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ws__gicon { width: 44px; height: 44px; border-radius: 12px; flex: none; object-fit: cover; }
.ws__gtext { min-width: 0; display: grid; gap: 6px; }
.ws__gtext strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws__gtext > span { display: flex; align-items: center; gap: 8px; }
.ws__nav { display: grid; gap: 14px; flex: 1; }
.ws__group { display: grid; gap: 2px; }
.ws__glabel { font: 600 0.64rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 6px 10px; }
.ws__link { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 0.9rem; transition: background .15s, color .15s; }
.ws__link .ic { color: var(--muted); }
.ws__link span:not([class]) { flex: 1; }
.ws__link:hover { background: var(--iron-2); color: var(--text); }
.ws__link.is-active { background: var(--iron-3); color: var(--text); }
.ws__link.is-active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ember); box-shadow: 0 0 10px var(--ember-glow); }
.ws__link.is-active .ic { color: var(--ember); }
.ws__link--hot { background: linear-gradient(90deg, rgba(255, 90, 31, .12), transparent); }
.ws__link--hot .ic { color: var(--ember); }
.ws__lock { color: var(--dim); display: inline-flex; }
.ws__hot { font: 700 0.6rem/1 var(--f-mono); letter-spacing: .1em; padding: 3px 5px; border-radius: 4px; background: var(--ember); color: #1A0A03; }
.ws__switch { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 8px; color: var(--muted); font-size: 0.86rem; border-top: 1px solid var(--line); }
.ws__switch:hover { color: var(--text); }
.ws__scrim { display: none; }
.ws__main { min-width: 0; padding: 32px clamp(18px, 3.4vw, 48px) 80px; }
.tab { max-width: 1120px; animation: fadeUp .3s var(--ease); }
.tab-skel { max-width: 1120px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 920px) {
  .dash-menu { display: inline-grid; }
  .dash-menu[hidden] { display: none; }
  .crumbs { display: none; }
  .ws { grid-template-columns: 1fr; }
  .ws__side { position: fixed; z-index: 80; top: 60px; left: 0; bottom: 0; height: auto; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: var(--shadow); }
  .nav-open .ws__side { transform: none; }
  .ws__scrim { display: block; position: fixed; inset: 60px 0 0; z-index: 75; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-open .ws__scrim { opacity: 1; pointer-events: auto; }
  .ws__main { padding-top: 24px; }
}

/* ---------- Tab header ---------- */
.tab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.tab-head__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 12px; }
.tab-head__desc { margin-top: 10px; color: var(--muted); max-width: 64ch; line-height: 1.55; }
.tab-head__desc strong { color: var(--text-2); }
.tab-head__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub-h { display: flex; align-items: center; gap: 8px; font: 600 0.92rem/1.2 var(--f-body); letter-spacing: 0; margin: 26px 0 12px; color: var(--text-2); }
.sub-h .ic { color: var(--brass-2); }
.sub-h--lg { font: 600 1.25rem/1.2 var(--f-display); margin: 36px 0 16px; color: var(--text); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.stack { display: grid; gap: 18px; align-content: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.grid-2 > * { min-width: 0; }
.grid-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .grid-split { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .form-grid--3 { grid-template-columns: 1fr; } }
.field--switch { justify-content: flex-end; padding-bottom: 4px; }
.field > label .lock-pill { margin-left: 6px; }

.card { position: relative; background: var(--iron-1); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s; }
.card.is-dirty { border-color: rgba(255, 181, 71, .35); }
.card__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--iron-2); border: 1px solid var(--line); color: var(--brass-2); }
.card__titles { flex: 1; min-width: 0; }
.card__titles h3 { font: 600 1rem/1.2 var(--f-body); letter-spacing: 0; }
.card__titles p { font-size: 0.84rem; color: var(--muted); margin-top: 3px; }
.card__tier { flex: none; }
.card__body { padding: 20px; }
.card__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .12); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card__dirty { margin-right: auto; color: var(--hot); }
.card.is-locked .card__body { opacity: .55; }
.card.is-locked .card__foot { display: none; }

.lock-banner { display: flex; align-items: center; gap: 14px; margin: 16px 20px 0; padding: 14px 16px; border-radius: var(--r); background: repeating-linear-gradient(-45deg, rgba(255, 90, 31, .05) 0 10px, transparent 10px 20px), rgba(255, 90, 31, .06); border: 1px solid rgba(255, 90, 31, .3); }
.tab > .lock-banner { margin: 0 0 20px; }
.lock-banner__icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--ember); background: rgba(255, 90, 31, .12); }
.lock-banner__copy { flex: 1; display: grid; gap: 2px; font-size: 0.88rem; }
.lock-banner__copy span { color: var(--text-2); }
.lock-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(255, 90, 31, .4); background: rgba(255, 90, 31, .1); color: var(--ember); font: 600 0.64rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; cursor: pointer; }
.lock-pill:hover { background: rgba(255, 90, 31, .2); }
.btn .lock-pill { margin-left: 4px; }
.switch.is-disabled { cursor: not-allowed; }
.switch.is-disabled .switch__text strong { color: var(--text-2); }
.switch--mini .switch__track { transform: scale(.85); }

/* ---------- Multi picker & tags ---------- */
.multi { display: grid; gap: 8px; padding: 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--iron-0); }
.multi__chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; align-items: center; padding: 0 2px; }
.multi__chips .role-chip { padding: 3px 4px 3px 8px; }
.multi__add { border-style: dashed; background-color: transparent; padding-top: 7px; padding-bottom: 7px; font-size: 0.86rem; }
.multi__x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); }
.multi__x:hover { background: rgba(255, 90, 90, .15); color: var(--bad); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--iron-0); cursor: text; }
.tags:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 90, 31, .16); }
.tags.is-disabled { opacity: .55; cursor: not-allowed; }
.tags__list { display: contents; }
.tags__input { flex: 1; min-width: 140px; border: 0; background: none; padding: 4px; outline: none; font-size: 0.92rem; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border-radius: 6px; background: var(--iron-3); font: 500 0.82rem var(--f-mono); color: var(--text); }
.tag button { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 4px; background: none; color: var(--muted); }
.tag button:hover { color: var(--bad); }
.ph-help { display: flex; flex-wrap: wrap; gap: 6px; }
.ph { padding: 3px 8px; border-radius: 5px; border: 1px dashed var(--line-3); background: transparent; font: 500 0.74rem var(--f-mono); color: var(--brass-2); }
.ph:hover { border-color: var(--hot); color: var(--hot); border-style: solid; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--iron-2); font-size: 0.82rem; color: var(--text-2); transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--ember); color: var(--text); background: rgba(255, 90, 31, .08); }
.range { display: flex; align-items: center; gap: 12px; height: 42px; }
.range input[type=range] { flex: 1; accent-color: var(--ember); }
.range input:disabled { opacity: .4; }
.range output { min-width: 3.4em; text-align: right; color: var(--hot); }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 52px; height: 40px; padding: 3px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--iron-0); cursor: pointer; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--iron-2); color: var(--hot); }
.prefix-input .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--iron-0); border: 1px solid var(--line-2); flex-wrap: wrap; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; }
.seg__opt span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 7px; font-size: 0.86rem; color: var(--text-2); cursor: pointer; }
.seg__opt input:checked + span { background: var(--iron-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--hot); }

/* Row editor (level rewards, panel buttons) */
.rows { display: grid; gap: 8px; }
.rows:empty { display: none; }
.row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-sm); background: var(--iron-0); border: 1px solid var(--line); }
.row__lv { display: flex; align-items: center; gap: 6px; flex: none; width: 112px; }
.row__lv .input { padding: 8px; }
.row__main { flex: 1; min-width: 0; }
.row__emoji { width: 92px; flex: none; }
.row__style { width: 120px; flex: none; }
.rows--rr .row > .input:not(.row__emoji) { flex: 1; min-width: 0; }
@media (max-width: 640px) { .rows--rr .row { flex-wrap: wrap; } .rows--rr .row__main { flex-basis: 100%; } }

/* ---------- Overview ---------- */
.ov-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 28px; border-radius: 20px; overflow: hidden; background: radial-gradient(80% 120% at 100% 0%, rgba(255, 90, 31, .18), transparent 60%), linear-gradient(180deg, var(--iron-2), var(--iron-1)); border: 1px solid rgba(255, 90, 31, .25); }
.ov-hero__copy { display: grid; gap: 14px; justify-items: start; }
.ov-hero__copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.ov-hero__copy p { max-width: 46ch; }
.ov-hero__art { display: grid; grid-template-columns: repeat(3, 64px); gap: 12px; justify-content: end; }
.ov-hero__art span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: rgba(13, 12, 11, .6); border: 1px solid var(--line-2); color: var(--brass-2); font: 700 1.4rem var(--f-display); }
.ov-hero__art span:nth-child(2n) { transform: translateY(14px); color: var(--ember); }
@media (max-width: 760px) { .ov-hero { grid-template-columns: 1fr; } .ov-hero__art { display: none; } }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kpi { padding: 16px; border-radius: var(--r); background: var(--iron-1); border: 1px solid var(--line); display: grid; gap: 10px; }
.kpi__l { font: 500 0.68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi__n { font: 700 1.6rem/1 var(--f-display); letter-spacing: -0.03em; }
.kpi__n--sm { font-size: 1rem; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.modgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.modtile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--iron-0); border: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); transition: border-color .2s; }
.modtile .ic { color: var(--dim); }
.modtile span:not([class]) { flex: 1; }
.modtile__state { font: 600 0.66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.modtile.is-on .ic, .modtile.is-on .modtile__state { color: var(--ok); }
.modtile:hover { border-color: var(--line-3); color: var(--text); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-list a { display: grid; gap: 6px; padding: 10px 12px; border-radius: 9px; transition: background .15s; }
.mini-list a:hover { background: var(--iron-2); }
.mini-list__main { font-size: 0.9rem; color: var(--text-2); }
.mini-list__meta { display: flex; align-items: center; gap: 10px; }
.meter { display: grid; gap: 7px; margin-bottom: 14px; }
.meter__top { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--text-2); }
.meter__bar { height: 6px; border-radius: 6px; background: var(--iron-3); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brass), var(--brass-2)); transition: width .6s var(--ease); }
.meter.is-warn .meter__bar span { background: linear-gradient(90deg, var(--ember), var(--hot)); }
.meter.is-full .meter__bar span { background: var(--bad); }
.meter.is-full .meter__top .mono { color: #FF8A8A; }

/* ---------- AI Builder ---------- */
.forge { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .forge { grid-template-columns: 1fr; } }
.forge__input { position: sticky; top: 84px; border-color: rgba(255, 90, 31, .28); background: radial-gradient(100% 60% at 0% 0%, rgba(255, 90, 31, .08), transparent 60%), var(--iron-1); }
@media (max-width: 1080px) { .forge__input { position: static; } }
.forge__input .card__body { display: grid; gap: 16px; }
.forge__label { display: flex; align-items: center; gap: 8px; font: 600 0.9rem var(--f-body); color: var(--text); }
.forge__label .ic { color: var(--ember); }
.forge__ta-wrap { position: relative; }
.forge__ta { min-height: 170px; font-size: 0.98rem; padding-bottom: 28px; background: rgba(13, 12, 11, .8); }
.forge__count { position: absolute; right: 10px; bottom: 8px; color: var(--dim); pointer-events: none; }
.forge__examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.forge__row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.forge__style { flex: 1; min-width: 140px; }
.forge__go { flex: 1.4; min-width: 200px; }
.forge__quota { display: flex; align-items: center; gap: 6px; }
.forge__quota .ic { color: var(--hot); }
.forge__out { min-width: 0; }

.forge-idle { padding: 48px 32px; border-radius: 20px; border: 1px dashed var(--line-3); display: grid; justify-items: center; text-align: center; gap: 14px; min-height: 420px; align-content: center; }
.forge-idle__mark { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px; color: var(--brass-2); background: var(--iron-1); border: 1px solid var(--line-2); }
.forge-idle h3 { font-size: 1.3rem; }
.forge-idle p { max-width: 46ch; }
.forge-idle__steps { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 0.8rem; color: var(--text-2); }
.forge-idle__steps li { padding: 7px 12px; border-radius: 999px; background: var(--iron-1); border: 1px solid var(--line); }
.forge-idle__steps span { color: var(--ember); margin-right: 6px; }

.forge-card { display: grid; gap: 18px; padding: 22px; border-radius: 20px; background: var(--iron-1); border: 1px solid var(--line-2); min-width: 0; }
.forge-card--hot { border-color: rgba(255, 90, 31, .4); background: radial-gradient(70% 60% at 20% 0%, rgba(255, 90, 31, .12), transparent 70%), var(--iron-1); }
.forge-card__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.forge-card__head .eyebrow { gap: 10px; }
.forge-card__prompt { margin-top: 10px; font-size: 0.96rem; color: var(--text-2); line-height: 1.5; max-width: 72ch; }
.forge-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.forge-actions__sp { flex: 1; }
.forge-actions__note { display: flex; gap: 6px; align-items: center; margin-top: -8px; }

.forging { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.forging__anvil { position: relative; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 22px; color: var(--ember); background: radial-gradient(circle at 50% 80%, rgba(255, 90, 31, .4), transparent 70%), var(--iron-0); border: 1px solid rgba(255, 90, 31, .35); animation: glow 1.4s ease-in-out infinite; }
.forging__anvil .ic { animation: strike 1.1s ease-in-out infinite; transform-origin: 50% 90%; }
.forging__spark { position: absolute; top: 34%; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 6px 2px rgba(255, 181, 71, .7); opacity: 0; animation: fly 1.1s ease-out infinite; }
.forging__spark:nth-child(3) { --fx: -22px; animation-delay: .15s; background: var(--ember); }
.forging__spark:nth-child(4) { --fx: 18px; animation-delay: .32s; }
@keyframes strike { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-6deg) translateY(-2px); } 55% { transform: rotate(2deg) translateY(1px); } }
@keyframes fly { 0%, 45% { opacity: 0; transform: translate(0, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--fx, 26px), -34px) scale(.4); } }
.forging__bar { height: 4px; border-radius: 4px; background: var(--iron-3); overflow: hidden; margin: 16px 0 12px; }
.forging__bar span { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, var(--ember), var(--hot)); animation: barSlide 1.4s ease-in-out infinite; }
.forging__log { display: grid; gap: 4px; color: var(--muted); }
.forging__log div:last-child { color: var(--hot); }
.forging__ghost { display: grid; gap: 10px; padding: 18px; border-radius: 12px; background: #2B2D31; opacity: .55; }
.forging__ghost .skel { background: linear-gradient(90deg, #3a3c42, #45474e, #3a3c42); background-size: 200% 100%; }
@media (max-width: 560px) { .forging { grid-template-columns: 1fr; } }

/* Terminal log */
.term { border-radius: 12px; overflow: hidden; background: #090807; border: 1px solid var(--line-2); box-shadow: inset 0 0 40px rgba(255, 90, 31, .04); }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--iron-2); border-bottom: 1px solid var(--line); }
.term__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--iron-4); }
.term__bar span:first-child { background: var(--ember); }
.term__bar em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--muted); }
.term__body { max-height: 300px; overflow-y: auto; padding: 12px 14px; font-size: 0.8rem; line-height: 1.6; color: var(--text-2); scroll-behavior: smooth; }
.term__line { display: flex; gap: 12px; animation: fadeUp .2s var(--ease); }
.term__ts { color: var(--dim); flex: none; user-select: none; }
.term__line.t-ok { color: var(--ok); }
.term__line.t-hot { color: var(--hot); }
.term__line.t-bad { color: #FF8A8A; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--hot); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Blueprint render */
.bp { display: grid; gap: 16px; }
.bp__summary { font-size: 0.95rem; line-height: 1.55; color: var(--text-2); padding-left: 14px; border-left: 2px solid var(--ember); }
.bp__stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.bp__stats span { padding: 5px 10px; border-radius: 6px; background: var(--iron-0); border: 1px solid var(--line); }
.bp__stats b { color: var(--hot); font-weight: 600; }
.bp__grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .bp__grid { grid-template-columns: 1fr; } }
.bp-tree { max-height: 640px; overflow-y: auto; }
.bp-tree .dcat { animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.dcat__lock { width: 11px !important; height: 11px !important; margin-left: 2px; }
.bp__col--detail { display: grid; gap: 12px; min-width: 0; }
.bp-sec { padding: 16px; border-radius: 12px; background: var(--iron-0); border: 1px solid var(--line); display: grid; gap: 12px; }
.bp-sec__t { display: flex; align-items: center; gap: 8px; font: 600 0.78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2); }
.bp-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-roles li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-perms { display: flex; flex-wrap: wrap; gap: 4px; }
.bp-perms span { padding: 2px 6px; border-radius: 4px; background: var(--iron-2); font: 500 0.68rem var(--f-mono); color: var(--muted); }
.bp-rules { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 0.88rem; }
.bp-rules li::marker { color: var(--ember); font-family: var(--f-mono); }
.bp-rules span { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.bp-panel { padding: 12px; border-radius: 10px; background: #313338; display: grid; gap: 8px; }
.bp-panel__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #F2F3F5; font-size: 0.9rem; }
.bp-panel__btns, .dbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.dbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 4px; background: #4E5058; color: #fff; font-size: 0.84rem; font-weight: 500; }
.dbtn i { width: 8px; height: 8px; border-radius: 50%; }
.dbtn--primary { background: var(--blurple); }
.dbtn--success { background: #248046; }
.dbtn--danger { background: #DA373C; }
.dbtn__e { font-size: 1rem; line-height: 1; }
.bp-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.bp-levels li { display: flex; align-items: center; gap: 12px; }
.bp-levels__n { min-width: 58px; padding: 4px 8px; border-radius: 5px; background: rgba(255, 90, 31, .12); color: var(--ember); text-align: center; font-size: 0.74rem; }
.bp-welcome { font-size: 0.88rem; color: var(--text-2); padding: 10px 12px; border-radius: 8px; background: #313338; }

/* Build history */
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hist__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.hist__item:hover { background: var(--iron-2); }
.hist__item.is-active { border-color: rgba(255, 90, 31, .35); background: rgba(255, 90, 31, .05); }
.hist__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--iron-2); color: var(--brass-2); }
.hist__prompt { font-size: 0.9rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist__meta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .hist__item { grid-template-columns: auto minmax(0, 1fr); } .hist__meta { grid-column: 2; } }

/* Modals specific */
.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .ic { color: var(--ok); margin-top: 3px; }
.danger-note { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 90, 90, .3); font-size: 0.9rem; line-height: 1.5; }
.danger-note .ic { color: var(--bad); flex: none; margin-top: 2px; }
.empty--sm { padding: 28px 16px; }

/* ---------- Leveling / welcome extras ---------- */
.linkbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r); background: var(--iron-1); border: 1px solid var(--line); flex-wrap: wrap; }
.linkbar__icon { color: var(--hot); display: inline-flex; }
.linkbar__text { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 0.86rem; }
.linkbar__text code { background: none; padding: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
@media (max-width: 640px) { .am-grid { grid-template-columns: 1fr; } }

.wl-preview-wrap { position: sticky; top: 84px; }
.wl-preview { border-radius: 14px; overflow: hidden; background: #313338; border: 1px solid rgba(0, 0, 0, .3); box-shadow: var(--shadow); }
.wl-preview__bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; color: #F2F3F5; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid rgba(0, 0, 0, .25); }
.wl-preview__bar .ic { color: #80848E; }
.wl-preview__bar em { margin-left: auto; font-style: normal; color: #949BA4; }
.dmsg { display: flex; gap: 14px; padding: 16px 14px 20px; }
.dmsg__av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #1A0A03; }
.dmsg__main { min-width: 0; flex: 1; display: grid; gap: 6px; }
.dmsg__who { display: flex; align-items: center; gap: 6px; color: #F2F3F5; font-size: 0.92rem; }
.dmsg__bot { font: 700 0.6rem/1 var(--f-body); padding: 3px 4px; border-radius: 3px; background: var(--blurple); color: #fff; }
.dmsg__who .muted { color: #949BA4; }
.dmsg__text { color: #DBDEE1; font-size: 0.92rem; line-height: 1.45; word-wrap: break-word; }
.dembed { padding: 12px 14px; border-radius: 4px; background: #2B2D31; border-left: 4px solid var(--accent, var(--ember)); color: #DBDEE1; font-size: 0.88rem; line-height: 1.45; display: grid; gap: 6px; word-wrap: break-word; }
.dembed__t { font-weight: 700; color: #F2F3F5; }
.mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #C9CDFB; font-weight: 500; }
.dpreview { display: grid; gap: 8px; padding: 14px; border-radius: 10px; background: #313338; }
@media (max-width: 1080px) { .wl-preview-wrap { position: static; } }

/* ---------- Lists: panels, feeds, giveaways, backups ---------- */
.panel-list, .feed-list, .bk-list { display: grid; gap: 12px; }
.rr-card { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.rr-card__main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.rr-card__top { display: flex; gap: 10px; align-items: center; }
.rr-card__top h3 { font: 600 1rem var(--f-body); letter-spacing: 0; }
.rr-card__main > p { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rr-card__acts, .feed__acts, .bk__acts { display: flex; gap: 6px; align-items: center; flex: none; }
.table--rows td { vertical-align: middle; }
.td-wrap { min-width: 200px; max-width: 420px; word-break: break-word; }
.td-acts { text-align: right; white-space: nowrap; }
.td-acts .btn { margin-right: 4px; }
tr.is-off td { opacity: .55; }
tr.is-off td:first-child { opacity: 1; }
.swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.feed { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.feed__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--iron-2); color: var(--brass-2); }
.feed__icon--youtube { color: #FF4E45; background: rgba(255, 78, 69, .1); }
.feed__icon--twitch { color: #A970FF; background: rgba(169, 112, 255, .1); }
.feed__icon--tiktok { color: #FE2C55; background: rgba(254, 44, 85, .1); }
.feed__icon--rss { color: var(--hot); background: rgba(255, 181, 71, .1); }
.feed__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.feed__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.feed__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.94rem; }
.feed__main > p { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.howto { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.howto__step { display: grid; gap: 4px; padding: 10px 14px; border-radius: var(--r); background: var(--iron-1); border: 1px solid var(--line); border-left: 2px solid var(--ember); }
.howto__step .mono { color: var(--hot); }

.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gw { padding: 18px; display: grid; gap: 8px; border-color: rgba(255, 90, 31, .25); background: radial-gradient(90% 70% at 100% 0%, rgba(255, 90, 31, .1), transparent 70%), var(--iron-1); }
.gw__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 90, 31, .12); color: var(--ember); }
.gw h4 { font: 600 1rem/1.25 var(--f-body); letter-spacing: 0; }
.gw__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.gw__count { font-size: 1.05rem; color: var(--hot); }

.bk { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.bk__idx { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--iron-2); color: var(--brass-2); flex: none; }
.bk__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.bk__main strong { font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .rr-card, .feed, .bk { flex-wrap: wrap; } .rr-card__acts, .feed__acts, .bk__acts { width: 100%; justify-content: flex-end; } }

/* ---------- Plan ---------- */
.plans--dash { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1380px) { .plans--dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .plans--dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans--dash { grid-template-columns: 1fr; } }
.sub-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.usage { margin: 18px 0 16px; }
.card__body > .notice { margin-top: 12px; }
.assign-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.assign-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--iron-0); }
.assign-list li.is-on { border-color: rgba(255, 90, 31, .35); }
.assign-list__icon { width: 32px; height: 32px; border-radius: 9px; flex: none; object-fit: cover; font-size: 0.74rem !important; }
.assign-list__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.plan-guild { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; flex-wrap: wrap; }
.plan-guild__main { display: flex; align-items: center; gap: 16px; }
.plan-guild__main > div { display: grid; gap: 6px; }
.plan-guild__icon { width: 56px; height: 56px; border-radius: 16px; flex: none; object-fit: cover; }
.plan-guild__tier .tier { font-size: 0.8rem; padding: 5px 10px; }
.plan-guild__acts { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .gcard, .tab, .term__line, .bp-tree .dcat { animation: none !important; }
  .forging__anvil, .forging__anvil .ic, .forging__spark, .boot__mark { animation: none !important; }
}

/* =====================================================================
   v2: Server Designer, Temp Voice, Suggestions, tour, Beta bar, payments
   ===================================================================== */
.muted.tiny code, .hint code, .tab-head__desc code { font-family: var(--f-mono); font-size: .9em; color: var(--hot); }
.icon-btn[disabled] { opacity: .4; pointer-events: none; }
.input--sm { height: 34px; font-size: .86rem; padding-top: 0; padding-bottom: 0; }
button.seg__opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-size: .84rem; cursor: pointer; }
button.seg__opt:hover { color: var(--text); }
button.seg__opt.is-on { background: var(--iron-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
button.seg__opt:focus-visible { outline: 2px solid var(--hot); outline-offset: 1px; }
.span-2 { grid-column: 1 / -1; }

/* ---------- Beta bar ---------- */
.beta-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 20px; background: linear-gradient(90deg, rgba(255, 90, 31, .16), rgba(201, 162, 39, .08) 60%, transparent), var(--iron-1); border-bottom: 1px solid rgba(255, 90, 31, .25); }
.beta-bar__tag { flex: none; font: 700 .64rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: var(--ember); color: #1A0A03; }
.beta-bar__text { flex: 1; min-width: 0; margin: 0; font-size: .84rem; line-height: 1.4; color: var(--text-2); }
.beta-bar__x { flex: none; }

/* ---------- Sidebar footer ---------- */
.ws__foot { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; display: grid; gap: 2px; }
.ws__foot .ws__switch { margin-top: 0; border-top: 0; }
.ws__tour { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; border: 0; background: none; color: var(--muted); font-size: .86rem; text-align: left; cursor: pointer; }
.ws__tour:hover { color: var(--text); background: var(--iron-2); }

/* ---------- Drag & drop ---------- */
.dnd-ghost { position: fixed; z-index: 3000; pointer-events: none; margin: 0; list-style: none; opacity: .92; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 1px var(--ember); border-radius: 10px; background: var(--iron-2); transform: rotate(-.6deg); }
.dnd-ph { list-style: none; border: 1.5px dashed var(--ember); border-radius: 10px; background: rgba(255, 90, 31, .06); margin: 2px 0; }
.dnd-src { display: none !important; }
body.is-dragging, body.is-dragging * { user-select: none; -webkit-user-select: none; cursor: grabbing !important; }

/* ---------- Layout editor ---------- */
.ly__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px 0; }
.ly__hint { flex: 1 1 220px; }
.ly-tree { display: grid; gap: 10px; }
.ly-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-height: 8px; }
.ly-cats { display: grid; gap: 10px; }
.ly-cat { border: 1px solid var(--line); border-radius: 12px; background: var(--iron-0); padding: 4px; }
.ly-cat__head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 0; color: var(--muted); }
.ly-cat__name { flex: 1; min-width: 0; font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-cat > .ly-list { padding-left: 18px; }
.ly-row { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 0; border-radius: 9px; color: var(--text-2); }
.ly-row:hover { background: var(--iron-2); }
.ly-row__ic { color: var(--muted); display: inline-flex; }
.ly-row__name { min-width: 0; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-row__topic { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-row__name:last-of-type { flex: 1; }
.ly-grip { flex: none; display: inline-grid; place-items: center; width: 30px; height: 36px; border: 0; border-radius: 7px; background: none; color: var(--dim); cursor: grab; touch-action: none; }
.ly-grip:hover { color: var(--text); background: var(--iron-3); }
.ly-grip.is-off { cursor: default; background: none; }
.ly-acts { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.ly-acts .icon-btn { width: 32px; height: 32px; }
.ly-empty { list-style: none; padding: 2px 10px; min-height: 6px; }
.ly-empty:empty { padding: 0; }

/* ---------- Server style ---------- */
.st-media { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.st-icon, .st-banner { display: grid; gap: 10px; justify-items: start; }
.st-banner { flex: 1 1 260px; }
.st-icon__img { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; overflow: hidden; background: var(--iron-2); border: 1px solid var(--line-2); color: var(--dim); }
.st-banner__img { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; max-height: 180px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--iron-2); border: 1px dashed var(--line-2); }
.st-icon__img img, .st-banner__img img { width: 100%; height: 100%; object-fit: cover; }
.st-media__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.st-media__btns label.btn { cursor: pointer; }

/* ---------- Emojis ---------- */
.em-up__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.dropzone { display: flex; align-items: center; gap: 16px; padding: 18px; min-height: 120px; border: 1.5px dashed var(--line-3); border-radius: var(--r-lg); background: var(--iron-0); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--ember); outline: none; }
.dropzone.is-over { border-color: var(--ember); background: rgba(255, 90, 31, .08); }
.dropzone.has-file { border-style: solid; border-color: rgba(255, 90, 31, .45); }
.dropzone__preview { flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 14px; background: var(--iron-2); color: var(--dim); overflow: hidden; }
.dropzone__preview img { width: 100%; height: 100%; object-fit: contain; }
.dropzone__text { display: grid; gap: 4px; }
.em-up__side { display: grid; gap: 14px; align-content: space-between; }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.em { display: grid; justify-items: center; gap: 8px; padding: 14px 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--iron-1); }
.em.is-off { opacity: .55; }
.em__img { width: 48px; height: 48px; object-fit: contain; }
.em__name { width: 100%; text-align: center; font-size: .84rem; padding: 6px 8px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--text); }
.em__name:hover { border-color: var(--line-2); }
.em__name:focus { outline: none; border-color: var(--ember); background: var(--iron-0); }
.em__name.is-saving { opacity: .6; }
.em__meta { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 36px; }

/* ---------- Roles ---------- */
.rl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rl-row { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 0; border-radius: 9px; }
.rl-row:hover { background: var(--iron-2); }
.rl-row.is-locked { opacity: .5; }
.rl-row.is-everyone { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 8px; border-radius: 0; }
.rl-row__name { min-width: 0; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-row__tags { display: inline-flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.rl-color { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.rl-color input[type=color] { width: 54px; height: 38px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--iron-0); cursor: pointer; }
.rl-color input[type=color]:disabled { opacity: .35; }
.rl-color__none { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--text-2); }
.perm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.perm-head .sub-h { margin: 6px 0; }
.perm-head .input { max-width: 220px; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px 10px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.perm-group legend { font: 600 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); padding: 0 6px; }
.perm { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: .88rem; color: var(--text-2); cursor: pointer; border-radius: 7px; padding: 0 6px; }
.perm:hover { background: var(--iron-2); color: var(--text); }
.perm input { width: 18px; height: 18px; accent-color: var(--ember); flex: none; }
.perm[hidden], .perm-group[hidden] { display: none; }

/* ---------- Channel access matrix ---------- */
.ac-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 12px; }
.ac-legend { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.ac-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.ac-legend > span:nth-child(1) svg { color: #6fcf8e; }
.ac-legend > span:nth-child(2) svg { color: #ff6b6b; }
.ac-dot { color: var(--dim); }
.ac-cols { position: relative; }
.ac-cols__pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(300px, 86vw); max-height: 360px; overflow: auto; padding: 8px; border-radius: var(--r); background: var(--iron-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 2px; }
.ac-cols__pop[hidden] { display: none; }
.ac-cols__acts { display: flex; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ac-cols__opt { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 6px; border-radius: 7px; font-size: .88rem; cursor: pointer; }
.ac-cols__opt:hover { background: var(--iron-3); }
.ac-cols__opt span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--iron-1); -webkit-overflow-scrolling: touch; }
.ac { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .88rem; }
.ac th, .ac td { border-bottom: 1px solid var(--line); }
.ac thead th { position: sticky; top: 0; z-index: 3; background: var(--iron-2); font: 600 .72rem/1.2 var(--f-body); color: var(--text-2); padding: 10px 8px; text-align: center; white-space: nowrap; }
.ac-colh__in { display: inline-flex; align-items: center; gap: 6px; max-width: 120px; }
.ac-colh__in span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ac .ac-first { position: sticky; left: 0; z-index: 2; background: var(--iron-1); text-align: left; min-width: 190px; max-width: 260px; padding: 6px 10px; border-right: 1px solid var(--line-2); box-shadow: 6px 0 10px -8px rgba(0, 0, 0, .7); }
.ac thead .ac-first { z-index: 4; background: var(--iron-2); font: 600 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ac-row.is-cat .ac-first, .ac-row.is-cat td { background: var(--iron-2); }
.ac-row.is-dirty .ac-first { box-shadow: inset 3px 0 0 var(--ember), 6px 0 10px -8px rgba(0, 0, 0, .7); }
.ac-first.is-child { padding-left: 28px; }
.ac-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 500; color: var(--text); }
.ac-row.is-cat .ac-name__txt { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .08em; }
.ac-name__ic { color: var(--muted); display: inline-flex; flex: none; }
.ac-name__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-dirty { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); flex: none; box-shadow: 0 0 8px var(--ember-glow); }
.ac-name__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.ac-advbtn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; border: 0; background: none; color: var(--muted); font-size: .74rem; cursor: pointer; }
.ac-advbtn:hover, .ac-advbtn.is-open { color: var(--hot); }
.ac-sync { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); cursor: pointer; }
.ac-sync input { accent-color: var(--ember); }
.ac-cell { text-align: center; padding: 4px; min-width: 64px; }
.ac-btn { width: 44px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--iron-0); color: var(--dim); font-size: 1rem; cursor: pointer; transition: border-color .12s, background .12s; }
.ac-btn:hover { border-color: var(--line-3); }
.ac-btn:focus-visible { outline: 2px solid var(--hot); outline-offset: 1px; }
.ac-btn { display: inline-grid; place-items: center; }
.ac-btn.is-allow { background: rgba(111, 207, 142, .1); border-color: rgba(111, 207, 142, .4); color: #6fcf8e; }
.ac-btn.is-deny { background: rgba(255, 90, 90, .1); border-color: rgba(255, 90, 90, .4); color: #ff6b6b; }
.ac-btn.is-inh-allow { color: rgba(111, 207, 142, .6); font-size: .8rem; }
.ac-btn.is-inh-deny { color: rgba(255, 90, 90, .6); font-size: .8rem; }
.ac-adv td { padding: 0; background: var(--iron-0); }
.ac-adv__in { position: sticky; left: 0; max-width: min(100vw - 40px, 860px); padding: 14px 16px 16px; display: grid; gap: 12px; }
.ac-adv__head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ac-adv__target { min-width: 200px; }
.ac-adv__member { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-adv__member .input { width: 200px; }
.ac-adv__group { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 16px; }
.ac-adv__glabel { grid-column: 1 / -1; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2); margin-top: 4px; }
.ac-flag { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 2px 0; border-bottom: 1px dashed var(--line); }
.ac-flag__label { font-size: .86rem; color: var(--text-2); }
.seg--tri { flex-wrap: nowrap; flex: none; }
.seg--tri .seg__opt { min-width: 36px; }
.seg--tri .tri--allow.is-on { background: rgba(111, 207, 142, .18); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(111, 207, 142, .45); }
.seg--tri .tri--deny.is-on { background: rgba(255, 90, 90, .16); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .45); }
.ac-bar { position: sticky; bottom: 12px; z-index: 30; margin-top: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--iron-2); border: 1px solid rgba(255, 90, 31, .4); box-shadow: var(--shadow); }
.ac-bar[hidden] { display: none; }
.ac-bar > span { flex: 1; font-size: .88rem; color: var(--text-2); }

/* ---------- Temp Voice & Suggestions ---------- */
.tv-hub { margin-bottom: 18px; border-color: rgba(255, 90, 31, .3); background: radial-gradient(80% 120% at 100% 0%, rgba(255, 90, 31, .1), transparent 70%), var(--iron-1); }
.tv-hub__body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tv-hub__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--iron-2); color: var(--ember); flex: none; }
.tv-hub__copy { display: grid; gap: 4px; flex: 1 1 240px; }
.tv-cols .howto { margin: 0; flex-direction: column; }
.tv-list, .sg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tv-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--iron-0); }
.tv-item__ic { color: var(--ok); display: inline-flex; }
.tv-item__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-split > aside .howto { flex-direction: column; margin: 0; }
.sg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.sg-head .sub-h { margin: 0; flex: 1; }
.sg { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--iron-1); }
.sg__votes { display: grid; gap: 4px; align-content: start; flex: none; font: 600 .82rem/1 var(--f-mono); }
.sg__votes span { display: inline-flex; align-items: center; gap: 4px; }
.sg__up { color: var(--ok); }
.sg__down { color: var(--bad); }
.sg__body { min-width: 0; display: grid; gap: 8px; }
.sg__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sg__reason { margin: 0; }
.sg__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Payments ---------- */
.plans-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plans-head .sub-h { margin-right: auto; }
#pl-soon .notice { margin-bottom: 16px; }
.pl-nzd { margin-top: 12px; }
.pay-table .table td { vertical-align: middle; }
.pay-foot { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--iron-1); display: grid; gap: 8px; font-size: .86rem; color: var(--text-2); }
.pay-foot p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.pay-foot .ic { flex: none; margin-top: 2px; color: var(--ok); }

/* ---------- Tour ---------- */
.tour { position: fixed; inset: 0; z-index: 2500; }
.tour.is-leaving { animation: fadeOut .18s forwards; }
.tour__shade { position: absolute; inset: 0; background: rgba(6, 5, 4, .66); }
.tour.has-spot .tour__shade { background: transparent; }
.tour__spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(6, 5, 4, .66), 0 0 0 2px var(--ember), 0 0 24px var(--ember-glow); transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); pointer-events: none; }
.tour__spot[hidden] { display: none; }
.tour-card { position: fixed; width: min(380px, calc(100vw - 24px)); padding: 18px 18px 14px; border-radius: var(--r-lg); background: var(--iron-1); border: 1px solid rgba(255, 90, 31, .35); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); display: grid; gap: 10px; animation: modalIn .22s var(--ease); outline: none; }
.tour-card.is-center { inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 24px); overflow: auto; }
.tour-card__top { display: flex; align-items: center; gap: 10px; }
.tour-card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 90, 31, .12); color: var(--ember); flex: none; }
.tour-card__count { flex: 1; color: var(--muted); }
.tour-card__title { font-size: 1.12rem; margin: 0; }
.tour-card__body { display: grid; gap: 8px; color: var(--text-2); font-size: .92rem; line-height: 1.55; }
.tour-card__body p { margin: 0; }
.tour-card__body code { font-family: var(--f-mono); color: var(--hot); }
.tour-beta { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(201, 162, 39, .08); border: 1px solid rgba(201, 162, 39, .3); font-size: .86rem; }
.tour-beta .ic { flex: none; margin-top: 2px; color: var(--brass-2); }
.tour-card__dots { display: flex; gap: 5px; }
.tour-card__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); transition: width .2s, background .2s; }
.tour-card__dots span.is-on { width: 18px; border-radius: 3px; background: var(--ember); }
.tour-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.tour-card__nav { display: inline-flex; gap: 8px; }
@media (max-width: 640px) {
  .tour-card, .tour-card.is-center { inset: auto 0 0 0 !important; margin: 0; height: auto; max-height: 85vh; overflow: auto; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheetIn .24s var(--ease); }
}
@keyframes sheetIn { from { transform: translateY(30px); opacity: 0; } }

/* ---------- Mobile pass ---------- */
@media (max-width: 920px) {
  .ws__side { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .beta-bar { padding-left: 14px; }
}
@media (max-width: 760px) {
  .em-up__form { grid-template-columns: 1fr; }
  .perm-group { grid-template-columns: 1fr; }
  .ac .ac-first { min-width: 150px; max-width: 180px; }
  .ac-colh__in { max-width: 80px; }
  .rl-row__tags { display: none; }
  .ly-row__topic { display: none; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .ws__main { padding-left: 14px; padding-right: 14px; }
  .tab-head__actions { width: 100%; }
  .modal-backdrop { padding: 0; place-items: stretch; }
  .modal, .modal--wide { width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
  .modal__body { flex: 1; }
  .modal__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .modal__foot .btn { flex: 1; }
  .card__head { padding: 16px; }
  .card__body { padding: 16px; }
  .card__foot { padding: 12px 16px; flex-wrap: wrap; }
  .beta-bar__text { font-size: .78rem; }
  .ly-cat > .ly-list { padding-left: 8px; }
  .ly-acts .ly-arrow { width: 30px; }
  .ac-bar { bottom: calc(8px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .ac-adv__member .input { width: 100%; }
  .ac-adv__member, .ac-adv__target { width: 100%; }
  .sg { padding: 12px; gap: 10px; }
  /* payment table -> cards */
  .pay-table { border: 0; overflow: visible; }
  .pay-table .table thead { display: none; }
  .pay-table .table, .pay-table .table tbody, .pay-table .table tr, .pay-table .table td { display: block; width: 100%; }
  .pay-table .table tr { border: 1px solid var(--line); border-radius: 12px; background: var(--iron-1); padding: 8px 12px; margin-bottom: 10px; }
  .pay-table .table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); text-align: right; }
  .pay-table .table tr td:last-child { border-bottom: 0; }
  .pay-table .table td::before { content: attr(data-label); font: 600 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; }
}
/* Touch devices: 44px tap targets */
@media (pointer: coarse) {
  .btn--sm { height: 44px; }
  .icon-btn, .ly-acts .icon-btn { width: 44px; height: 44px; }
  .ly-grip { width: 40px; height: 44px; }
  .ws__link, .ws__tour, .ws__switch { min-height: 44px; }
  .usermenu__pop a, .usermenu__pop button { min-height: 44px; }
  .ac-btn { width: 48px; height: 44px; }
  .ac-advbtn, .ac-sync { min-height: 36px; }
  button.seg__opt { min-height: 40px; }
  .input--sm { height: 44px; }
  .perm, .ac-cols__opt { min-height: 44px; }
}
body.dash-body { overflow-x: clip; }

/* Standalone account plan page */
.acct-page { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 40px 0 80px; display: grid; gap: 24px; align-content: start; }
@media (max-width: 640px) { .acct-page { width: calc(100% - 28px); padding-top: 24px; } }

/* Slash Commands tab */
.sl-foot { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--panel, #15171c); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 5; }
.sl-foot #sl-count { margin-right: auto; }
.switch__text strong .badge { margin-left: 6px; vertical-align: middle; }

/* Free trial / staff view strip above tabs */
.trial-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 11px 14px; border-radius: var(--r); font-size: 0.9rem; color: var(--text-2); background: rgba(62, 207, 142, .08); border: 1px solid rgba(62, 207, 142, .3); }
.trial-strip > .ic { color: #3ecf8e; flex: none; }
.trial-strip > span { flex: 1; min-width: 220px; }
.trial-strip strong { color: var(--text); }
.trial-strip--offer { background: rgba(255, 90, 31, .08); border-color: rgba(255, 90, 31, .32); }
.trial-strip--offer > .ic { color: var(--ember); }
.trial-strip--staff { background: rgba(91, 100, 112, .14); border-color: var(--line-3); }
.trial-strip--staff > .ic { color: var(--text-2); }

/* Invite links */
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.inv-row:last-child { border-bottom: 0; }
.inv-row__url { font-family: var(--mono, ui-monospace, monospace); font-size: 0.95rem; color: var(--text); word-break: break-all; }
.inv-row__meta { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.inv-row__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.inv-slug { display: flex; align-items: stretch; }
.inv-slug__pre { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--iron-1); color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.inv-slug input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; min-width: 0; flex: 1; }
@media (max-width: 720px) { .inv-form { grid-template-columns: 1fr; } .inv-slug__pre { font-size: 0.78rem; } }

/* Server picker: own servers first, "help manage" collapsed below */
.gpicker { display: grid; gap: 22px; }
.gsection { border-top: 1px solid var(--line); padding-top: 16px; }
.gsection__sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; font-weight: 600; color: var(--text); padding: 4px 0 14px; }
.gsection__sum::-webkit-details-marker { display: none; }
.gsection__sum > .ic { transition: transform .2s; color: var(--muted); }
.gsection[open] .gsection__sum > .ic { transform: rotate(90deg); }
.gsection__sum .small { font-weight: 400; flex-basis: 100%; padding-left: 26px; }
.gsection__none { padding: 6px 0; }

/* AI chat test */
.ai-test__row { display: flex; gap: 8px; }
.ai-test__row .input { flex: 1; min-width: 0; }
.ai-test__answer { white-space: pre-wrap; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); line-height: 1.5; }
.ai-test__out { display: grid; gap: 8px; }
.picker__join { margin: 6px 0 22px; }

/* Module "Commands in Discord" card, ticket button poster, giveaway actions */
.cmd-card .cmd-card__state .badge { margin-right: 6px; vertical-align: 1px; }
.cmd-card .howto { flex-direction: column; margin: 0; }
.pp__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.pp__color { padding: 4px; height: 40px; cursor: pointer; }
.pp__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pp__posted:empty { display: none; }
.tkb-list { display: grid; gap: 8px; }
.tkb { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-sm); background: var(--iron-0); border: 1px solid var(--line); }
.tkb__top { display: flex; gap: 8px; align-items: center; }
.tkb__emoji { width: 64px; flex: none; text-align: center; }
.tkb__label { flex: 1; min-width: 0; }
.tkb__style { width: 110px; flex: none; }
.tkb__more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.tkb__ask { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-2); cursor: pointer; }
@media (max-width: 640px) { .tkb__more { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .pp__grid { grid-template-columns: 1fr; } }
.gw [data-gw-end] { margin-top: 6px; justify-self: start; }
