.bg-fluid {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 46%);
}
.bg-fluid span { display: none; }

main#app, .site-footer { position: relative; z-index: 1; }

.topbar { position: relative; z-index: 10; }

#landing { display: block; }
#landing.hidden { display: none; }

.lp-hero { text-align: center; padding: 56px 16px 40px; max-width: 860px; margin: 0 auto; }
.lp-badge {
  display: inline-block; font-size: 12px; letter-spacing: .3px; color: var(--muted);
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}
.lp-hero h1 {
  font-size: clamp(30px, 5.2vw, 52px); margin: 0 0 16px; letter-spacing: -0.5px;

  line-height: 1.28; padding-bottom: .14em; color: var(--ink);
}
.lp-lead { color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.65; margin: 0 auto 28px; max-width: 640px; }
.lp-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.lp-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

.lp-hero-band { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.lp-community {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 18px; width: min(340px, 100%); margin: 0 auto 32px; text-align: center;
}
.lp-community.hidden { display: none; }
.lp-community h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
.lp-community .lp-community-name { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.5; word-break: break-word; }
.lp-community-online { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.lp-community-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; display: inline-block; flex: none; }
.lp-community-faces { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.lp-community-faces img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); }
.lp-community .btn { width: 100%; justify-content: center; }

@media (min-width: 1024px) {
  .lp-hero-band { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
  .lp-hero-band .lp-hero { padding-bottom: 28px; }
  .lp-hero-band .lp-community { margin: 0 auto 8px; }
}

.lp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 720px; margin: 8px auto 8px; padding: 0 16px;
}
.lp-stats div {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; text-align: center;
}
.lp-stats strong { display: block; font-size: 22px; color: var(--ink); line-height: 1.4; }
.lp-stats span { font-size: 12px; color: var(--muted); line-height: 1.5; display: block; }

.lp-section { max-width: 1040px; margin: 0 auto; padding: 52px 16px 0; }
.lp-section h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; text-align: center; line-height: 1.35; padding-bottom: .06em; }
.lp-sub { color: var(--muted); text-align: center; margin: 0 auto 28px; max-width: 560px; line-height: 1.6; }

.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

.lp-cta {
  max-width: 1040px; margin: 52px auto 0; padding: 44px 24px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
}
.lp-cta h2 {
  font-size: clamp(22px, 3vw, 30px); margin: 0 0 20px; line-height: 1.35; padding-bottom: .06em;
}
.lp-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: transform .15s ease, border-color .15s ease;
}
.lp-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.lp-card i { color: var(--accent); width: 22px; height: 22px; }
.lp-card h3 { font-size: 16px; margin: 12px 0 6px; line-height: 1.4; }
.lp-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0; }

.notfound { text-align: center; padding-top: 72px; }
.notfound-code {
  display: block; font-size: clamp(64px, 14vw, 132px); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; margin-bottom: 8px; color: var(--line-2);
}
.notfound h2 { margin: 0 0 10px; }
.notfound p { color: var(--muted); margin: 0 auto 26px; max-width: 480px; line-height: 1.65; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.guild-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.guild-card {
  text-decoration: none; justify-content: center; min-height: 152px;
  -webkit-tap-highlight-color: transparent;
}
.guild-card span { font-weight: 500; }
.guild-invite { border-style: dashed !important; }
.guild-invite-btn { margin-top: 4px; pointer-events: none; }

@media (max-width: 560px) { .guild-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .lp-hero { padding: 36px 16px 28px; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-cmd { grid-template-columns: 1fr; gap: 6px; }
  .lp-actions .btn { width: 100%; justify-content: center; }
}

.req-badge { font-size: 10.5px; letter-spacing: .2px; text-transform: uppercase; color: #ffb4b4; background: rgba(237,66,69,.14); border: 1px solid rgba(237,66,69,.4); border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.permission-note.is-warning { border-left: 3px solid #e6a23c; background: rgba(230,162,60,.10); }
.permission-note.is-warning i { color: #e6a23c; }

.response-row { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.response-row.is-open { border-color: var(--accent); }
.response-summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; }
.response-trigger {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; color: #b7c0ff;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px;
  max-width: 32%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 0 auto;
}
.response-arrow { color: var(--muted); opacity: .6; flex: 0 0 auto; }
.response-preview { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.response-media-flag { color: var(--muted); width: 15px; height: 15px; flex: 0 0 auto; }
.response-row-actions { display: flex; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.response-detail { padding: 0 12px 12px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 12px; display: grid; gap: 10px; }
@media (max-width: 560px) {
  .response-trigger { max-width: 44%; }
  .response-arrow { display: none; }
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.topbar-right { flex-wrap: wrap; justify-content: flex-end; }

@supports (padding: max(0px)) {
  .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .lp-hero, .lp-section, .lp-stats { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .lp-cta { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .site-footer { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}

@media (hover: none) and (pointer: coarse) {
  .lp-actions .btn, .guild-invite-btn, .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .guild-card:hover { transform: none; }
}

@media (max-width: 820px) {
  .bg-fluid span { filter: blur(58px); }
  .bg-fluid .b3, .bg-fluid .b4 { display: none; }
}

.acct-nav {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px; padding: 6px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.acct-nav button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1 1 0; min-width: 0;
  padding: 8px 14px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.acct-nav button:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.acct-nav button.is-on { color: var(--ink); background: var(--panel-2); border-color: var(--line); }
.acct-nav i { width: 16px; height: 16px; flex: 0 0 auto; }

@media (max-width: 620px) {
  .acct-nav button { flex: 0 1 auto; }
}

.set-nav {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap;
  max-width: 720px; margin: -10px auto 26px; padding: 5px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.set-nav button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1 1 0; min-width: 0;
  padding: 7px 12px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.set-nav button:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.set-nav button.is-on { color: var(--ink); background: var(--panel-3); border-color: var(--line-2); }
.set-nav i { width: 15px; height: 15px; flex: 0 0 auto; }
@media (max-width: 620px) {
  .set-nav button { flex: 0 1 auto; }
}

.set-nav.bill-nav {
  max-width: none; margin: 0 0 20px; padding: 0; gap: 2px;
  justify-content: flex-start;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.set-nav.bill-nav button {
  flex: 0 1 auto; margin-bottom: -1px; padding: 8px 14px;
  border-radius: 9px 9px 0 0; border-bottom: 2px solid transparent;
}
.set-nav.bill-nav button.is-on {
  background: transparent; border-color: transparent; border-bottom-color: var(--accent);
}

.acct-card {
  max-width: 460px; margin: 40px auto; padding: 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}
.acct-card h2 { margin: 0 0 8px; font-size: 22px; }
.acct-card > .muted { margin: 0 0 20px; line-height: 1.6; }
.acct-card .btn { width: 100%; justify-content: center; }
.acct-tabs { display: flex; gap: 4px; margin: 0 0 20px; padding: 4px; border-radius: 12px; background: var(--bg); }
.acct-tab {
  flex: 1 1 0; padding: 9px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font: inherit; font-weight: 600;
  cursor: pointer;
}
.acct-tab.is-on { background: var(--panel-2); color: var(--ink); }
.acct-form { display: flex; flex-direction: column; gap: 14px; }
.acct-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.acct-field input,
.acct-field select,
.acct-field .sk-trigger {
  padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
}
.acct-field input:focus,
.acct-field select:focus,
.acct-field .sk-trigger:focus-visible { outline: none; border-color: var(--accent); }
.acct-hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.acct-error {
  margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(237, 66, 69, .12); border: 1px solid rgba(237, 66, 69, .35); color: #ff9c9e;
}

.acct-alt { margin: 16px 0 0; text-align: center; font-size: 13px; }

.acct-warn {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(240, 178, 50, .12); border: 1px solid rgba(240, 178, 50, .35); color: #f0c674;
  line-height: 1.6;
}
.acct-ok {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(59, 165, 93, .12); border: 1px solid rgba(59, 165, 93, .35); color: #86e0a4;
}
.acct-foot { margin: 16px 0 0; font-size: 13px; text-align: center; }

.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct-head h2 { margin: 0; }

.owner-compose { border-style: dashed; border-color: var(--gold); }
.owner-compose > h3 { display: flex; align-items: center; gap: 8px; }
.owner-compose > h3::before { content: '★'; color: var(--gold-2); font-size: 12px; }
#servers > .muted, #bots > .muted { margin: 6px 0 20px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.platform-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.platform-card-cover {
  position: absolute; inset: 0 0 auto; height: 132px; z-index: -1; pointer-events: none;
  background: var(--cover, linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)))) center / cover no-repeat;
  filter: blur(18px) saturate(1.2); opacity: .55; transform: scale(1.2);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
}
.platform-card-head { display: flex; align-items: center; gap: 12px; }
.platform-card-head img, .platform-card-head .platform-fallback {
  width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; object-fit: cover; background: var(--panel-2);
  box-shadow: 0 0 0 2px var(--panel), 0 6px 18px rgba(0, 0, 0, .35);
}
.platform-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--panel-2); font-weight: 700;
}
.platform-card-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.platform-card-title strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-card-title small { color: var(--muted); font-size: 12px; }
.platform-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.platform-meta div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.platform-meta b { color: var(--ink); font-weight: 600; }
.platform-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.platform-actions .btn { flex: 1 1 auto; justify-content: center; }
.platform-sides-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0; width: 34px; flex: 0 0 auto; font-size: 12px; font-weight: 600; background: transparent; border-color: transparent; }
.platform-sides-toggle svg { width: 16px; height: 16px; transition: transform var(--motion-mid) var(--ease-out); }
.platform-sides-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.platform-sides-wrap { display: grid; grid-template-rows: 0fr; margin-top: -12px; transition: grid-template-rows var(--motion-slow) var(--ease-out), margin-top var(--motion-slow) var(--ease-out); }
.platform-sides-wrap > * { min-height: 0; overflow: hidden; }
.platform-sides-wrap.is-open { grid-template-rows: 1fr; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .platform-sides-wrap, .platform-sides-toggle svg { transition: none; } }

.platform-sides { display: flex; flex-direction: column; gap: 8px; padding-left: 12px; border-left: 2px solid var(--line); }
.platform-sides > h4 { margin: 0; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.platform-side {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 12px; background: var(--panel-2);
}
.platform-side::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 25%; z-index: -1; pointer-events: none;
  background: var(--side-banner, none) center / cover no-repeat;
  mask-image: linear-gradient(to right, #000 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 100%);
  filter: blur(1px); opacity: .9;
}
.platform-side-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.platform-side-title strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-side-title small { color: var(--muted); font-size: 11px; }
.platform-side-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; box-shadow: 0 0 0 2px var(--panel), 0 4px 12px rgba(0, 0, 0, .35); }
img.platform-side-mark { display: block; flex: 0 0 auto; object-fit: cover; background: var(--panel-2); }
.platform-side .btn { flex: 0 0 auto; }

.platform-side .state-badge { flex: 0 0 auto; }
.platform-empty {
  grid-column: 1 / -1; padding: 34px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 16px;
}

.srv-card { position: relative; padding-bottom: 34px; }
.srv-card.is-none { border-color: rgba(255, 106, 110, .5); --srv-fade: rgba(255, 106, 110, .12); }
.srv-card.is-custom { border-color: rgba(240, 180, 95, .5); --srv-fade: rgba(240, 180, 95, .12); }
.srv-card.is-official { border-color: rgba(124, 134, 255, .5); --srv-fade: rgba(124, 134, 255, .12); }
.srv-card.is-both { border-color: rgba(87, 209, 125, .45); --srv-fade: rgba(87, 209, 125, .11); }

.srv-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--srv-fade, transparent), transparent 60%);
}
.srv-card > * { position: relative; z-index: 1; }
.srv-dot {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2);
}
.srv-dot svg { width: 13px; height: 13px; }
.is-none .srv-dot { color: #ff6a6e; }
.is-custom .srv-dot { color: #f0b45f; }
.is-official .srv-dot { color: #7c86ff; }
.is-both .srv-dot { color: #57d17d; }

.srv-note { margin: 8px 0 0; padding-right: 26px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.is-none .srv-note { color: #ff9a9c; }
.is-custom .srv-note { color: #e8b671; }
.is-official .srv-note { color: #9aa2ff; }
.is-both .srv-note { color: #7fd9a0; }

.srv-bots { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.srv-bots svg { width: 17px; height: 17px; }
.srv-bots b { color: var(--ink); font-weight: 700; font-size: 15px; }

.srv-more { margin: 18px 0 0; text-align: center; }
.srv-unlinked { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.srv-unlinked h3 { margin: 0 0 4px; font-size: 16px; }
.srv-unlinked > .muted { margin: 0 0 16px; }

.modal {
  position: fixed; inset: 0; z-index: 70; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 6, 8, .62); backdrop-filter: blur(3px);
}
.modal-card {
  position: relative; width: min(440px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 24px 22px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.modal-card h3 { margin: 0; font-size: 19px; }
.modal-card > .muted { margin: -6px 0 0; font-size: 13px; line-height: 1.6; }
.modal-card .acct-field { margin: 0; }
.modal-card .acct-hint { margin: -6px 0 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 10px; right: 14px; padding: 4px 8px; line-height: 1;
  background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--muted);
}
.modal-close:hover { color: var(--ink); }

.state-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid currentColor;
}
.state-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-active { color: #57d17d; }
.state-stopped { color: var(--muted); }
.state-suspended,
.state-config_error { color: #ff9c9e; }
.state-subscription_expired,
.state-awaiting_free_renewal { color: #f0b45f; }
.state-tasubot_missing { color: #ff9c9e; }

.state-awaiting_setup { color: #7fb2ff; }

.bot-panel-wrap { position: relative; margin-top: 18px; }
.bot-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bot-panel-wrap .platform-card { height: 100%; }

.bot-overlay {
  position: absolute; inset: -12px; z-index: 20;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px);
  border-radius: 18px;
}
.bot-overlay-card {
  max-width: 440px; width: 100%; text-align: center; padding: 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.bot-overlay-card i { width: 34px; height: 34px; color: #f0b45f; }
.bot-overlay-card h3 { margin: 12px 0 8px; font-size: 19px; }
.bot-overlay-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.bot-overlay-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bot-overlay-actions .btn { flex: 1 1 150px; justify-content: center; }

@media (max-width: 640px) {
  .acct-card { margin: 20px auto; padding: 22px 18px; }
  .platform-grid { grid-template-columns: 1fr; }
}

.plans-head { max-width: 720px; margin: 6px auto 26px; text-align: center; }
.plans-head h2 { margin: 0 0 8px; font-size: 26px; }
.plans-head .muted { margin: 0; line-height: 1.6; }
#plans > .acct-error { max-width: 720px; margin: 0 auto 18px; text-align: center; }
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px; max-width: 1040px; margin: 0 auto; align-items: stretch;
}
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 0 22px 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 28px;
}
.plan-banner {
  position: relative; margin: 0 -22px 0; height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--panel-3), var(--panel-2));
  border-bottom: 1px solid var(--line);
}
.plan-banner svg, .plan-banner i { width: 30px; height: 30px; color: var(--ink); }
.plan-gift-tag {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff;
  font-size: 11.5px; font-weight: 700;
}
.plan-head { text-align: center; }
.plan-head h3 { margin: 0 0 6px; font-size: 19px; }
.plan-price { margin: 0; font-size: 22px; font-weight: 700; }
.plan-price span { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-features {
  flex: 1 1 auto; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.45; }
.plan-features svg, .plan-features i { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.plan-features .is-yes svg, .plan-features .is-yes i { color: var(--green); }

.plan-features .is-limit { color: var(--muted); }
.plan-features .is-limit svg, .plan-features .is-limit i { color: var(--muted); }
.plan-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.plan-select { width: 100%; justify-content: center; }
.plan-note { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); }

.plan-card.is-current {
  border-color: var(--line-2);
  box-shadow: 0 0 0 2px rgba(155, 158, 165, .18), 0 0 26px rgba(155, 158, 165, .15);
}
.plan-card.is-current .plan-banner {
  background: linear-gradient(160deg, rgba(155, 158, 165, .2), rgba(155, 158, 165, .04));
  border-bottom-color: var(--line-2);
}

.plan-card.is-gift { border-color: var(--gold); animation: gift-glow 1.8s ease-in-out infinite; }
.plan-card.is-gift .plan-banner {
  background: linear-gradient(160deg, rgba(229, 177, 58, .3), rgba(200, 149, 29, .08));
  border-bottom-color: rgba(229, 177, 58, .42);
}
.plan-card.is-gift .plan-banner svg, .plan-card.is-gift .plan-banner i { color: var(--gold-2); }
.btn-gift {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 700;
}
.btn-gift:hover { filter: brightness(1.08); }
@keyframes gift-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(229, 177, 58, .16); }
  50% { box-shadow: 0 0 0 3px rgba(229, 177, 58, .24), 0 0 30px rgba(229, 177, 58, .45); }
}
@media (prefers-reduced-motion: reduce) {
  .plan-card.is-gift { animation: none; box-shadow: 0 0 0 3px rgba(229, 177, 58, .24); }
}
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plans-head h2 { font-size: 22px; }
}

.plan-buy {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.plan-buy label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.plan-buy select, .plan-buy .sk-trigger {
  padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px;
}
.plan-buy select:focus, .plan-buy .sk-trigger:focus-visible { outline: none; border-color: var(--accent); }
.plan-buy-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); }
.plan-buy-total strong { font-size: 19px; color: var(--ink); }
.plan-buy-actions { display: flex; gap: 8px; }
.plan-buy-actions .btn { flex: 1 1 0; }
.plan-buy-err { margin: 0; font-size: 12px; line-height: 1.5; color: #ff9c9e; }

.plan-buy-warn {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 11px; border-radius: 10px;
  border: 1px solid rgba(255, 156, 158, .35); background: rgba(255, 156, 158, .09);
}
.plan-buy-warn i { flex: 0 0 auto; width: 16px; height: 16px; color: #ff9c9e; margin-top: 1px; }
.plan-buy-warn p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ink); }
.plan-buy-agree { flex-direction: row !important; align-items: flex-start; gap: 8px !important; cursor: pointer; }
.plan-buy-agree input { margin-top: 2px; accent-color: var(--accent); }
.plan-buy-agree span { font-size: 12px; line-height: 1.5; color: var(--ink); }

.dc-linked h2 { margin: 0 0 14px; }
.dc-id {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin: 0 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.dc-id img { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }

.dc-id-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dc-id-text strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-id-text span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-state {
  flex: 0 0 auto; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.dc-state.is-ok { background: rgba(79, 138, 99, .18); color: var(--green); }
.dc-state.is-broken { background: rgba(184, 72, 75, .18); color: var(--red); }

.prof-rows { display: flex; flex-direction: column; gap: 0; margin: 0 0 14px; }
.prof-rows > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.prof-rows > div:last-child { border-bottom: 0; }
.prof-rows dt { flex: 0 0 auto; font-size: 13px; color: var(--muted); }

.prof-rows dd { margin: 0; min-width: 0; font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.dc-id.is-empty img { opacity: .45; }
.dc-id.is-empty .dc-id-text strong { font-weight: 600; color: var(--muted); }

.dc-linked > .acct-hint { margin: 0; }
.dc-linked > .acct-hint + .acct-hint { margin-top: 6px; }
.dc-linked > .btn { margin-top: 12px; }

.dc-linked .acct-sub .btn { width: auto; }

.acct-card-wide { max-width: 720px; }
.acct-card-wide .acct-sub { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.acct-card-wide .acct-sub h3 { margin: 0 0 8px; font-size: 15px; }

.acct-card-wide .bill-inline .btn, .acct-card-wide .bill-reset .btn { width: auto; }
.bill-balance { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: var(--ink); }
.bill-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bill-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); font-size: 13px;
}
.bill-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bill-row-main strong { font-size: 13px; font-weight: 600; }
.bill-row-main small { color: var(--muted); font-size: 12px; }
.bill-side { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bill-amount { font-weight: 700; }
.bill-amount.is-plus { color: var(--green); }
.bill-amount.is-minus { color: var(--muted); }
.bill-empty { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.bill-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.bill-tag.is-paid { color: var(--green); border-color: rgba(59, 165, 93, .45); }
.bill-tag.is-failed { color: #ff9c9e; border-color: rgba(237, 66, 69, .45); }
.bill-inline { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.bill-inline .acct-field { flex: 1 1 180px; }
.bill-reset { margin-top: 18px; }
.bill-reset .acct-hint { margin-top: 8px; }
.bill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) {
  .bill-grid { grid-template-columns: 1fr; }
  .bill-row { flex-wrap: wrap; }
}

.sess-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.sess-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 96px auto; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); font-size: 13px;
}

.sess-row.is-current { border-color: rgba(79, 138, 99, .45); }
.sess-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sess-main strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sess-main small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.sess-badge {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(59, 165, 93, .45); color: var(--green); white-space: nowrap;
}
.sess-slot { display: flex; justify-content: center; }
.sess-empty { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

#securityCard .sess-row .btn, #securityCard .acct-row-actions .btn { width: auto; }
.acct-row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 620px) {
  .sess-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .sess-slot { grid-column: 2; justify-content: flex-start; }
  .sess-slot:empty { display: none; }
  .sess-row .btn { grid-column: 3; grid-row: 1; }
}

.creds-card h3 { margin: 0; font-size: 16px; }
.creds-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.creds-form input {
  flex: 1 1 200px; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
}
.creds-form input:focus { outline: none; border-color: var(--accent); }
.creds-form .btn { width: auto; }

.look-card h3 { margin: 0; font-size: 16px; }
.look-form { display: flex; flex-direction: column; gap: 12px; }
.look-form .acct-field { margin: 0; }
.look-form textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; resize: vertical;
}
.look-form input[type="file"] { font-size: 12px; color: var(--muted); }
.look-file-note { color: var(--muted); font-size: 12px; }

.server-look-card h3 { margin: 0; font-size: 16px; }
.server-look-card h4 { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.server-look-card > .acct-hint { margin: -6px 0 0; }
.server-look-card .boost-perks,
.server-look-card .boost-members { margin-top: 0; }

.admin-tabs { margin: 0 0 18px; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.admin-tab-group { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.admin-tab-group + .admin-tab-group { margin-left: 15px; padding-left: 15px; border-left: 1px solid var(--line); }
.admin-tabs button {
  flex: 0 0 auto; white-space: nowrap;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; color: var(--ink);
}
.admin-tabs button:hover { background: var(--panel-3); }
.admin-tabs button.active { color: #fff; }
.admin-tabs button.active:hover { background: var(--accent-2); }

.admin-acct-list { display: flex; flex-direction: column; gap: 12px; }
.admin-acct { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.admin-acct[open] { border-color: var(--gold); }
.admin-acct-head,
.admin-bot-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; cursor: pointer; list-style: none;
}
.admin-acct-head::-webkit-details-marker,
.admin-bot-head::-webkit-details-marker { display: none; }
.admin-acct-head { padding: 14px 16px; }
.admin-acct-head strong { font-size: 14px; word-break: break-all; }
.admin-acct-head small { color: var(--muted); font-size: 12px; }
.admin-acct > .admin-bot { margin: 0 16px 14px; }
.admin-bot {
  padding: 0 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.admin-bot[open] { border-color: var(--gold-2); }
.admin-bot-head { padding: 14px 0; }
.admin-bot-head strong { font-size: 15px; }
.admin-bot-head small { color: var(--muted); font-size: 12px; }
.admin-bot-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-card-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin;
  padding: 2px 0 10px; border-bottom: 1px solid var(--line);
}
.admin-card-tab {
  flex: 0 0 auto; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--muted); font: inherit; font-size: 12px;
  font-weight: 700; white-space: nowrap; cursor: pointer;
}
.admin-card-tab:hover { background: var(--panel-2); color: var(--ink); }
.admin-card-tab.active { border-color: var(--accent); background: var(--panel-2); color: var(--ink); }
.admin-card-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-card-panel { display: flex; flex-direction: column; gap: 12px; }
.admin-card-panel[hidden] { display: none; }
.admin-card-panel > .admin-secret:first-child { border-top: 0; }
.admin-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.admin-status.is-yes { color: var(--green); }
.admin-status.is-no { color: var(--red); }
.admin-status-icon {
  display: inline-grid; place-items: center; width: 16px; height: 16px;
  border: 1px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 1;
}
.admin-bot > .admin-secret + .admin-secret { margin-top: 0; }
.admin-secret { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-secret h4 { margin: 0; font-size: 13px; color: var(--muted); }
.admin-secret select, .admin-secret .sk-trigger {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 13px;
}

.cl-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cl-actions .btn { width: auto; }
.cl-preview { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cl-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.cl-card h4 { margin: 0 0 4px; font-size: 15px; }
.cl-card p { margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.cl-card ul { margin: 8px 0; padding-left: 20px; }
.cl-card li { color: var(--ink); font-size: 13px; margin: 4px 0; }

.mail-row { align-items: flex-start; }
.mail-row .bill-row-main { flex: 1 1 auto; gap: 4px; }

.mail-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.mail-addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.mail-eye {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.mail-eye:hover { background: var(--panel-2); color: var(--ink); }
.mail-eye svg { width: 14px; height: 14px; }

.mail-body {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; white-space: pre-wrap; line-height: 1.5;
}
.mail-more { align-self: flex-start; margin-top: 4px; }

.mail-side { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.mail-side select, .mail-side .sk-trigger {
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 12px;
}
.mail-ticket {
  width: 108px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.mail-ticket:focus { outline: none; border-color: var(--accent); }
.mail-linked { color: var(--muted); font-size: 12px; }

.gift-box {
  max-width: 560px; margin: 26px auto 0; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.gift-box h3 { margin: 0 0 6px; font-size: 16px; }
.gift-box .muted { margin: 0 0 14px; font-size: 13px; line-height: 1.55; }
.gift-box .acct-hint { margin-top: 10px; }
.gift-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gift-form input {
  flex: 1 1 220px; min-width: 0; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
}
.gift-form input:focus { outline: none; border-color: var(--accent); }
.gift-form .btn { width: auto; }

.gift-codes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.gift-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.gift-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: .06em; color: var(--ink);
}
.gift-code .btn { width: auto; }
.acct-field-inline { flex-direction: row; align-items: center; gap: 10px; margin-top: 12px; }
.acct-field-inline select, .acct-field-inline .sk-trigger { width: auto; min-width: 160px; }

.gift-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gift-acts .btn { width: auto; }
@media (max-width: 620px) {
  .gift-code { flex-wrap: wrap; }
}

.plan-card.is-gift { transform: scale(1.045); z-index: 1; }
.plan-card.is-gift .plan-head h3 { font-size: 22px; }

.plan-price.is-gift-price { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.plan-price.is-gift-price s { font-size: 15px; font-weight: 500; color: var(--muted); opacity: .6; }
.plan-price.is-gift-price b { font-size: 27px; font-weight: 800; letter-spacing: .04em; color: var(--gold-2); }
@media (max-width: 640px) {
  .plan-card.is-gift { transform: none; }
}

.offer-pop {
  position: fixed; inset: 0; z-index: 80; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 6, 8, .68); backdrop-filter: blur(3px);
}
.offer-card {
  position: relative; width: min(420px, 100%); padding: 30px 26px 24px;
  text-align: center; overflow: hidden; border-radius: 22px;
  background: linear-gradient(165deg, #7e1420, #4a0c14);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.offer-star {
  position: absolute; top: 50%; left: 50%; width: 620px; height: 620px;
  margin: -310px 0 0 -310px; pointer-events: none; opacity: .32;
  background: conic-gradient(from 0deg, rgba(255, 90, 110, .75) 0 11deg, transparent 11deg 45deg);
  animation: offer-spin 22s linear infinite;
}
.offer-star::before, .offer-star::after { content: ''; position: absolute; top: 50%; left: 50%; }

.offer-star::before {
  width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: .5;
  background: conic-gradient(from 12deg, rgba(255, 178, 150, .6) 0 3deg, transparent 3deg 18deg);
  animation: offer-spin-back 34s linear infinite;
}

.offer-star::after {
  width: 380px; height: 380px; margin: -190px 0 0 -190px; opacity: .75;
  background: conic-gradient(from 30deg, rgba(255, 120, 138, .8) 0 20deg, transparent 20deg 72deg);
  animation: offer-spin 13s linear infinite;
}
@keyframes offer-spin { to { transform: rotate(360deg); } }
@keyframes offer-spin-back { to { transform: rotate(-360deg); } }

.offer-card > *:not(.offer-star):not(.offer-close) { position: relative; }
.offer-kicker {
  margin: 0 0 8px; color: #fff; font-size: 15px; font-weight: 800;
  letter-spacing: .16em; text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.offer-card h3 { margin: 0 0 8px; color: #fff; font-size: 23px; }
.offer-sub { margin: 0 0 16px; color: rgba(255, 255, 255, .84); font-size: 13.5px; line-height: 1.6; }
.offer-clock { margin: 0 0 18px; color: rgba(255, 255, 255, .84); font-size: 13px; }
.offer-clock b {
  margin-left: 6px; color: #fff; font-size: 20px; font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em;
}
.offer-card .btn-gift { width: 100%; justify-content: center; }

.offer-later {
  display: block; margin: 12px auto 0; color: rgba(255, 255, 255, .72); font-size: 12.5px;
}
.offer-later:hover { color: #fff; }
.offer-close {
  position: absolute; top: 10px; right: 14px; padding: 4px 8px; line-height: 1;
  background: none; border: 0; cursor: pointer; font-size: 22px; color: rgba(255, 255, 255, .7);
}
.offer-close:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .offer-star, .offer-star::before, .offer-star::after { animation: none; } }

.gift-ask { margin: 26px auto 0; text-align: center; }

.gift-form input.is-bad {
  border-color: var(--red, #d9455f);
  box-shadow: 0 0 0 3px rgba(217, 69, 95, .22);
  animation: gift-shake .42s ease, gift-fade 2s ease forwards;
}
@keyframes gift-shake {
  10%, 90% { transform: translateX(-2px); }
  30%, 70% { transform: translateX(4px); }
  50% { transform: translateX(-4px); }
}
@keyframes gift-fade { to { border-color: var(--line); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .gift-form input.is-bad { animation: gift-fade 2s ease forwards; }
}

.stat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); color: var(--ink);
}
.stat-pill.is-down {
  background: color-mix(in srgb, var(--red) 18%, transparent);
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
}
.stat-row {
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.stat-row:first-child { border-top: 0; }
.stat-row h4 { margin: 0 0 4px; font-size: 14.5px; }
.stat-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.stat-text { flex: 1 1 260px; min-width: 0; }
.stat-row .stat-meta { flex: 1 1 100%; color: var(--muted); font-size: 12px; }
.stat-sev {
  flex: 0 0 auto; margin-top: 2px; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--panel-3); color: var(--muted);
}
.stat-sev.is-major { background: color-mix(in srgb, var(--red) 26%, transparent); color: #ffd9da; }
.stat-sev.is-minor { background: color-mix(in srgb, var(--orange) 26%, transparent); color: #f7e2c0; }
.stat-affected { flex: 0 0 auto; }
.stat-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 12px 0 6px; }
.stat-comp {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13.5px;
}
.stat-chip {
  flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--panel-3); color: var(--muted);
}
.stat-chip.is-ok { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--ink); }
.stat-chip.is-warn { background: color-mix(in srgb, var(--orange) 26%, transparent); color: var(--ink); }
.stat-chip.is-down { background: color-mix(in srgb, var(--red) 28%, transparent); color: var(--ink); }
.notify-prefs { display: flex; flex-direction: column; margin-top: 12px; }
.notify-pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.notify-pref:first-child { border-top: 0; }
.notify-pref-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notify-pref-copy small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.notify-pref:has(input:disabled) { opacity: .6; }

.key-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.key-row {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.key-head strong { font-size: 14px; }
.key-row .muted { margin: 6px 0 0; font-size: 12.5px; }
.key-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.acct-card-wide .key-actions .btn { width: auto; }

.key-code {
  margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2);
}
.key-code-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.key-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; letter-spacing: .08em; color: var(--ink); word-break: break-all;
}
.key-code .btn { width: auto; }
.key-code .muted { margin: 8px 0 0; font-size: 12px; }

.key-row.is-live .state-badge { color: #57d17d; }
.key-row.is-used .state-badge { color: var(--muted); }
.key-row.is-dead .state-badge { color: #ff9c9e; }

.rew-ref {
  margin-top: 14px; padding: 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg);
}
.rew-ref .muted { margin: 6px 0 0; font-size: 12.5px; }
.rew-ref .btn { width: auto; margin-top: 10px; }
.rew-link { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.rew-link input {
  flex: 1 1 220px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg2); color: var(--fg); font-size: 12.5px;
}
.rew-link .btn { margin-top: 0; }
.rew-join { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rew-join input {
  flex: 1 1 160px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg2); color: var(--fg); font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
}
.rew-join .btn { margin-top: 0; }
.rew-progress { margin: 12px 0 0; font-size: 13px; }
.rew-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rew-row {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.rew-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rew-head strong { font-size: 14px; }
.rew-row .muted { margin: 6px 0 0; font-size: 12.5px; }
.rew-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.acct-card-wide .rew-actions .btn { width: auto; }

.rew-row.is-wait .state-badge { color: #f0b45c; }
.rew-row.is-live .state-badge { color: #57d17d; }
.rew-row.is-used .state-badge { color: var(--muted); }
.rew-row.is-dead .state-badge { color: #ff9c9e; }

.acct-danger { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.acct-danger h2 { color: var(--red); }
.del-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.del-warn {
  margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius); font-size: 13px; line-height: 1.6;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
}
.del-warn b { color: var(--red); }
.del-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 16px; }
.del-form .acct-field { width: 100%; max-width: 320px; }

.road-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.road-chip {
  padding: 6px 13px; border-radius: 999px; font: 600 12.5px inherit; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.road-chip:hover { color: var(--ink); border-color: var(--accent); }
.road-chip.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--ink); }
.road-list { display: flex; flex-direction: column; gap: 12px; }
.road-card {
  padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}

.road-card.is-target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.road-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.road-head strong { font-size: 14.5px; margin-right: auto; }
.road-state, .road-spoiler, .road-ver {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: var(--panel-2); color: var(--muted);
}
.road-state.road-planned { color: #8fb6ff; }
.road-state.road-development { color: #f0b45c; }
.road-state.road-beta { color: #c79cff; }
.road-state.road-released { color: #57d17d; }
.road-spoiler { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }
.road-body { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.road-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.road-vote, .road-follow {
  padding: 6px 12px; border-radius: 9px; font: 600 12.5px inherit; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.road-vote:hover, .road-follow:hover { color: var(--ink); border-color: var(--accent); }
.road-vote.is-on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--ink); }
.road-follow { margin-left: auto; }
.road-follow.is-on { color: var(--ink); border-color: var(--accent); }

.beta-flags { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.beta-flag {
  padding: 13px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.beta-flag-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.beta-flag-head strong { font-size: 14px; margin-right: auto; }
.beta-flag p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.beta-stage, .beta-ver {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: var(--panel-2); color: var(--muted);
}
.beta-stage.beta-public_beta { color: #8fb6ff; }
.beta-stage.beta-experimental { color: #f0b45c; }
.admin-beta-fb { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; }
.admin-ops-output { margin: 12px 0 0; max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft, rgba(0,0,0,.25)); font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.admin-setup-result { margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 8px; }
.admin-setup-result a { word-break: break-all; }
.admin-op-status { font-weight: 600; }
.admin-op-status[data-status="failed"] { color: var(--danger, #e5484d); }
.admin-op-status[data-status="done"], .admin-op-status[data-status="applied"] { color: var(--success, #30a46c); }
.admin-road-row select, .admin-road-row .sk-trigger {
  padding: 5px 8px; border-radius: 8px; font: inherit; font-size: 12.5px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
}

.chlog-list { max-width: 80ch; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.chlog-card {
  padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.chlog-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.chlog-ver {
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid var(--line); color: var(--ink);
}
.chlog-date { font-size: 12px; color: var(--muted); }
.chlog-card h3 { margin: 10px 0 2px; font-size: 15.5px; }
.chlog-by { margin: 0; font-size: 12px; color: var(--muted); }
.chlog-hl { margin: 12px 0 0; padding-left: 20px; }
.chlog-hl li { margin: 5px 0; color: var(--ink); font-size: 13px; line-height: 1.65; }
.chlog-body p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.chlog-body ul { margin: 10px 0 0; padding-left: 20px; }
.chlog-body li { margin: 5px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.chlog-body code, .chlog-hl code {
  padding: 1px 5px; border-radius: 6px; font-size: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.chlog-fb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.chlog-fb-btn {
  padding: 5px 12px; border-radius: 9px; font: 600 12.5px inherit; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.chlog-fb-btn:hover { color: var(--ink); border-color: var(--accent); }
.chlog-fb-btn:disabled { opacity: .5; cursor: default; }
.chlog-fb-note { font-style: normal; color: var(--muted); }

.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
.legal-side {
  position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px;
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
}
.legal-nav { display: flex; flex-direction: column; gap: 6px; }
.legal-toc:empty { display: none; }
.legal-toc-label {
  display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 0 4px;
  color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.legal-toc-label svg { width: 14px; height: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 1px solid var(--line); }
.legal-toc-link {
  display: block; width: 100%; padding: 5px 10px; border: 0; background: none; text-align: left;
  font: 500 12.5px/1.4 inherit; color: var(--muted); cursor: pointer; border-radius: 0 8px 8px 0;
  transition: color 140ms ease, background-color 140ms ease;
}
.legal-toc-link:hover, .legal-toc-link:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.legal-link {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px;
  text-align: left; font: 600 13px inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.legal-link:hover { color: var(--ink); border-color: var(--accent); }
.legal-link.is-on { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--ink); }
.legal-link .legal-pending {
  margin-left: auto; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: color-mix(in srgb, var(--orange) 22%, transparent); color: var(--ink);
}
.legal-body { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.legal-head h3 { margin: 0; font-size: 16px; }
.legal-head span { color: var(--muted); font-size: 12px; }
.legal-head .legal-print { width: auto; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.legal-print svg { width: 14px; height: 14px; }
.legal-text { max-width: 80ch; }
.legal-text h4 { margin: 18px 0 6px; font-size: 14px; scroll-margin-top: 16px; }
.legal-text h4:focus { outline: none; }
.legal-text p { margin: 0 0 9px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.legal-text ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.legal-text li { margin: 0 0 4px; }
.legal-text li::marker { color: var(--accent); }
.legal-text strong { color: var(--ink); }
@media (max-width: 720px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); }
  .legal-side { position: static; max-height: none; overflow: visible; }
  .legal-toc { display: none; }
}
@media print {
  body * { visibility: hidden; }
  #legalBody, #legalBody * { visibility: visible; }
  #legalBody { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; padding: 0; background: #fff; }
  #legalBody .legal-print, #legalBody > .btn { display: none; }
  .legal-text { max-width: none; }
  .legal-text p, .legal-text ul, .legal-head span { color: #222; }
  .legal-text h4, .legal-head h3, .legal-text strong { color: #000; }
  .legal-text h4 { break-after: avoid; }
}

.cue-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cue-row {
  padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.cue-row.is-busy { opacity: .6; }
.cue-row-head { display: flex; align-items: center; gap: 8px; }
.cue-row-head strong { font-size: 14px; }
.cue-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.cue-badge-custom { color: #7fd6a2; border-color: rgba(127, 214, 162, .45); }
.cue-badge-off { color: #f0b45f; border-color: rgba(240, 180, 95, .45); }
.cue-row-meta { display: block; margin: 4px 0 10px; color: var(--muted); font-size: 12px; }

.cue-idle { margin: 6px 0 0; font-size: 12px; line-height: 1.45; }
.cue-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cue-pick { position: relative; overflow: hidden; cursor: pointer; }
.cue-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cue-pick.is-locked { opacity: .5; cursor: not-allowed; }
.cue-pick.is-locked input[type="file"] { cursor: not-allowed; }
.cue-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; font-size: 12px; color: var(--muted); min-height: 0;
}
.cue-note:empty { display: none; }
.cue-note-ok { color: #7fd6a2; }
.cue-note-bad { color: #ff9c9e; }
.cue-locked { color: #f0b45f; }

.home-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 18px 0 22px;
}
.home-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.home-card-head {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.home-card-head i { width: 15px; height: 15px; flex: 0 0 auto; }

.home-card-value { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.home-card-value[title] { cursor: help; }

.home-card.is-name .home-card-value { font-size: 19px; word-break: break-word; }
.home-card-note { color: var(--muted); font-size: 12px; }

.home-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.home-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #57d17d; animation: home-pulse 2s ease-in-out infinite;
}
.home-live.is-stale { color: #f0b45f; }
.home-live.is-stale::before { background: #f0b45f; animation: none; }
@keyframes home-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .home-live::before { animation: none; }
}

.acct-card.home-list { max-width: none; margin: 0; padding: 22px 24px; }
.home-list h3 { margin: 0 0 4px; font-size: 15px; }
.home-bot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.home-list h3 + .home-bot { border-top: 0; }
.home-bot:hover strong { color: var(--ink); }
.home-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--muted); }
.home-dot.is-on { background: #57d17d; }
.home-bot-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-bot-name strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-bot-name small { color: var(--muted); font-size: 12px; }

.home-bot-clock { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .home-bot .state-badge { display: none; }
}

.acct-nav.is-home { gap: 12px; padding: 12px; border-radius: 18px; margin-bottom: 26px; }
.acct-nav.is-home button {
  flex-direction: column; gap: 10px; padding: 22px 14px;
  border-radius: 14px; font-size: 15px;
  background: var(--panel-2); border-color: var(--line); color: var(--ink);
}
.acct-nav.is-home button:hover { background: rgba(255, 255, 255, .07); }
.acct-nav.is-home i { width: 24px; height: 24px; }
.acct-nav.is-home button { position: relative; overflow: hidden; isolation: isolate; }
.acct-nav.is-home button::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, transparent);
  filter: blur(16px) saturate(1.2);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
  pointer-events: none;
}
.acct-nav.is-home button.has-collage::before {
  background: var(--collage);
  background-size: 50% 50%;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
  opacity: .42;
}
.acct-nav.is-home button:hover::before { opacity: .62; }

@media (max-width: 620px) {
  .acct-nav.is-home button { flex: 1 1 40%; padding: 16px 10px; }
}

.admin-tabs,
.side-tabs,
.command-category-filter,
.role-category-tabs { scrollbar-color: var(--line-2) transparent; }
.admin-tabs::-webkit-scrollbar,
.side-tabs::-webkit-scrollbar,
.command-category-filter::-webkit-scrollbar,
.role-category-tabs::-webkit-scrollbar { height: 6px; }
.admin-tabs::-webkit-scrollbar-thumb,
.side-tabs::-webkit-scrollbar-thumb,
.command-category-filter::-webkit-scrollbar-thumb,
.role-category-tabs::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--line-2); }

.bot-profile-selector { display:grid; grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr) auto; gap:10px; align-items:center; max-width:640px; margin:0 auto 20px; }
.bps-arrow:disabled { opacity:.3; cursor:default; }
.bps-peer { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12px; opacity:.6; pointer-events:none; user-select:none; }
.bps-peer.bps-prev { text-align:right; }
.bps-peer.is-empty { visibility:hidden; }
.bps-stage { position:relative; display:grid; width:clamp(140px, 34vw, 240px); height:40px; overflow:hidden; border-radius:10px; background:var(--panel-2); box-shadow:inset 0 -2px var(--accent); }
.bps-name { grid-area:1/1; place-self:center; max-width:calc(100% - 20px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); font-weight:700; }
.bps-name.is-entering.from-right { animation:bps-in-right .22s ease-out both; }
.bps-name.is-entering.from-left { animation:bps-in-left .22s ease-out both; }
.bps-name.is-leaving { pointer-events:none; }
.bps-name.is-leaving.to-left { animation:bps-out-left .22s ease-out both; }
.bps-name.is-leaving.to-right { animation:bps-out-right .22s ease-out both; }
@keyframes bps-in-right { from { transform:translateX(70%); opacity:0; } }
@keyframes bps-in-left { from { transform:translateX(-70%); opacity:0; } }
@keyframes bps-out-left { to { transform:translateX(-70%); opacity:0; } }
@keyframes bps-out-right { to { transform:translateX(70%); opacity:0; } }
@media (prefers-reduced-motion: reduce) { .bps-name { animation:none !important; } .bps-name.is-leaving { display:none; } }
.usage-card { margin-bottom:20px; }
.usage-bars { display:flex; gap:8px; height:160px; padding:10px 0 28px; margin:14px 0; align-items:end; }
.usage-bars>button { position:relative; height:100%; flex:1; display:flex; align-items:end; min-width:0; padding:0; border:0; border-radius:4px 4px 0 0; background:none; color:inherit; font:inherit; cursor:pointer; }
.usage-bars span { display:block; width:100%; background:var(--accent); border-radius:4px 4px 0 0; transition:opacity .16s ease, filter .16s ease, box-shadow .16s ease; }
.usage-bars small { position:absolute; top:100%; left:50%; transform:translateX(-50%); white-space:nowrap; text-align:center; color:var(--muted); font-size:10px; padding-top:6px; transition:color .16s ease; }
.usage-bars>button:hover span { filter:brightness(1.18); }
.usage-bars>button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.usage-bars.has-pick>button[aria-pressed="false"] span { opacity:.35; }
.usage-bars>button[aria-pressed="true"] span { box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.usage-bars>button[aria-pressed="true"] small { color:var(--ink); font-weight:700; }
@media (max-width:640px) { .usage-bars { gap:4px; } .usage-bars>button:nth-last-child(even) small, .usage-bars.has-pick>button small { visibility:hidden; } .usage-bars.has-pick>button[aria-pressed="true"] small { visibility:visible; } }
@media (prefers-reduced-motion: reduce) { .usage-bars span, .usage-bars small { transition:none; } }
.platform-actions:has(.bot-details-button) { justify-content:center; }
.bot-details-button { width:min(100%, 280px); }
.discord-profile-preview { background:var(--panel-2); border:1px solid var(--line); border-radius:16px; overflow:hidden; width:min(100%, 520px); margin:18px auto; }
.discord-profile-banner { aspect-ratio:16/5; background:var(--accent); }
.discord-profile-banner img { width:100%; height:100%; object-fit:cover; }
.discord-profile-avatar { position:relative; width:90px; height:90px; margin:-44px 0 0 20px; }
.discord-profile-avatar img { width:100%; height:100%; border-radius:50%; border:6px solid var(--panel-2); object-fit:cover; background:var(--panel-2); }
.discord-profile-avatar span { position:absolute; right:3px; bottom:5px; width:22px; height:22px; background:#80848e; border:4px solid var(--panel-2); border-radius:50%; }
.discord-profile-avatar span.online { background:#3ba55d; }
.discord-profile-content { padding:14px 20px 24px; }
.discord-profile-content strong { font-size:22px; overflow-wrap:anywhere; }
.discord-profile-content p { white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0 0; }
.discord-profile-content hr { border:0; border-top:1px solid var(--line); margin:16px 0; }
.discord-app-label { display:inline-block; font-size:10px; background:#5865f2; color:white; padding:2px 5px; border-radius:4px; margin-left:6px; vertical-align:middle; }
.look-asset-preview { display:grid; grid-template-columns:96px minmax(0,1fr); gap:8px 14px; padding:12px; border:1px solid var(--line); border-radius:10px; }
.look-asset-preview>img { grid-row:span 3; width:96px; height:72px; object-fit:contain; border-radius:6px; background:var(--panel); }
.look-asset-preview input { min-width:0; font-size:12px; }
#settings .look-card [data-dirty-save], #settings .presence-card [data-dirty-save] { display:none; }
.bot-log-filter { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin:16px 0; }
.bot-log-filter label { display:grid; gap:6px; }
.bot-log-event { padding:12px 0; border-bottom:1px solid var(--line); }
.bot-log-event summary { display:flex; gap:12px; justify-content:space-between; cursor:pointer; }
.bot-log-event time { color:var(--muted); font-size:12px; }
.bot-log-event pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.guild-log-event summary > span { display:flex; align-items:center; gap:9px; min-width:0; }
.guild-log-category { flex:none; padding:3px 7px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:11px; font-weight:700; }
.guild-log-event pre { margin:12px 0 0; padding:12px; border-radius:7px; background:var(--panel); color:var(--ink); font:12px/1.6 ui-monospace,SFMono-Regular,monospace; }
body.visuals-active #settings .studio-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
body.visuals-active #settings .studio-canvas { aspect-ratio: 16 / 9; min-height: 0; padding: 0; width: 100%; overflow: hidden; }
body.visuals-active #settings .studio-canvas canvas { width: 100%; height: 100%; max-height: none; object-fit: contain; }
body.visuals-active #settings .studio-controls { order: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); align-items: start; gap: 16px; }
@media (min-width: 1400px) {
  body.visuals-active #settings .studio-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; }
  body.visuals-active #settings .studio-canvas { position: sticky; top: 76px; }
  body.visuals-active #settings .studio-controls { grid-template-columns: minmax(0, 1fr); }
}
#settings .section-save, #settings .form-actions:has(> [data-dirty-save]), #settings #saveCard { display: none; }
#settings label:has(> [data-setting="prefix"]) { display: flex; align-items: center; gap: 12px; }
#settings [data-setting="prefix"] { field-sizing: content; width: calc(1ch + 26px); min-width: calc(1ch + 26px); max-width: calc(5ch + 26px); margin-top: 0; padding-inline: 12px; text-align: center; font-family: ui-monospace, SFMono-Regular, monospace; }
@supports (field-sizing: content) { #settings [data-setting="prefix"] { width: auto; } }
#settings .form-actions { gap: 8px; }

.security-dialog {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 24px; border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); background: var(--panel); font-family: inherit;
}
.security-dialog::backdrop { background: rgb(0 0 0 / .65); }
#settings { position: relative; }
@media (min-width: 681px) { .workspace.is-skeleton .side-tabs { display: grid; gap: 8px; align-content: start; } }
@media (max-width: 680px) { .workspace.is-skeleton .skel-tab { width: 92px; } }
.skel { display: block; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel-2) 0%, var(--panel-3) 50%, var(--panel-2) 100%) 0 0 / 200% 100%; animation: skel-shine 1.2s linear infinite; }
.skel-tab { height: 40px; }
.skel-head { height: 28px; width: min(320px, 60%); margin-bottom: 18px; }
.skel-card { height: 140px; margin-bottom: 14px; }
@keyframes skel-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
#panelContent > .platform-card { margin-top: 18px; }
.guildless-badge { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent, #7aa2ff); background: color-mix(in srgb, currentColor 14%, transparent); }
.rbx-acc-list { display: grid; gap: 10px; margin-top: 12px; }
.rbx-acc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; background: var(--card, rgba(255,255,255,.03)); transition: opacity 220ms ease; }
.rbx-acc-row .rbx-acc-mark { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; }
.rbx-acc-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rbx-acc-title strong, .rbx-acc-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbx-acc-title small { color: var(--muted); font-size: 12px; }
.rbx-acc-title .rbx-acc-why { color: #ff9c9e; }
.rbx-acc-row.is-live .state-badge { color: #57d17d; }
.rbx-acc-row.is-wait .state-badge { color: #f0b45c; }
.rbx-acc-row.is-dead .state-badge { color: #ff9c9e; }
.rbx-acc-row.is-used .state-badge { color: var(--muted); }
.rbx-acc-tools { display: flex; gap: 6px; }
.rbx-acc-tools .icon-btn { width: 34px; height: 34px; border-radius: 8px; }
.rbx-acc-drop { color: #ff9c9e; }
.rbx-acc-drop[aria-pressed="true"] { background: color-mix(in srgb, #ff9c9e 18%, transparent); }
.rbx-acc-row.is-removing { opacity: .5; }
.rbx-acc-row.is-removing .rbx-acc-title strong { text-decoration: line-through; }
.rbx-acc-cookie { grid-column: 2 / -1; width: 100%; font-family: ui-monospace, monospace; }
@media (max-width: 640px) { .rbx-acc-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .rbx-acc-row .state-badge { grid-column: 2; grid-row: 2; } }
.asset-user-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.asset-user-card { display: flex; flex-direction: column; gap: 12px; }
.asset-user-head { display: flex; gap: 12px; align-items: flex-start; }
.asset-user-head > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.asset-user-card.is-allowed .asset-user-head > svg { color: #57d17d; }
.asset-user-card.is-blocked .asset-user-head > svg { color: #ff9c9e; }
.asset-user-head h4 { margin: 0 0 2px; font-size: 15px; }
.asset-user-head p { margin: 0; font-size: 13px; }
.asset-user-state { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.asset-user-card.is-blocked .asset-user-state { background: color-mix(in srgb, var(--muted) 10%, transparent); color: var(--muted); }
.asset-user-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.asset-user-list:empty { display: none; }
.asset-user-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; background: var(--card, rgba(255,255,255,.03)); }
.asset-user-row .asset-user-mark { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.asset-user-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asset-user-title strong, .asset-user-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-user-title small { color: var(--muted); font-size: 12px; }
.asset-user-drop { width: 32px; height: 32px; border-radius: 8px; color: #ff9c9e; }
.asset-user-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: auto; }
.asset-user-add input { margin: 0; min-width: 0; font-family: ui-monospace, monospace; }
@media (max-width: 640px) { .asset-user-grid { grid-template-columns: 1fr; } .asset-user-add { grid-template-columns: 1fr; } }
.release-role-option.stay-bot-option { grid-template-columns: 18px 28px minmax(0, 1fr); column-gap: 12px; }
.stay-bot-option .stay-bot-face { flex: none; inline-size: 28px; block-size: 28px; }
.stay-bot-option > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type="date"], input[type="datetime-local"], .dk-trigger[data-kind="date"], .dk-trigger[data-kind="datetime-local"] { inline-size: min(100%, 260px); }
input[type="time"], .dk-trigger[data-kind="time"] { inline-size: min(100%, 140px); }
#panelContent { max-inline-size: 1120px; }
.emoji-input-row { display: flex; align-items: end; justify-content: flex-start; gap: 8px; }
.emoji-input-row input { inline-size: 16ch; min-inline-size: 8ch; max-inline-size: 28ch; flex: none; }
@supports (field-sizing: content) { .emoji-input-row input { inline-size: auto; field-sizing: content; } }
.emoji-input-row .icon-btn { flex: none; }
.bot-profile-selector { column-gap: 20px; }
.bps-peer { max-inline-size: min(18ch, 100%); }
.bps-peer.bps-prev { justify-self: end; }
@media (max-width: 520px) { .bot-profile-selector { column-gap: 10px; } }
.spotify-card-preview { display: grid; gap: 8px; margin-top: 14px; max-inline-size: 520px; }
.spotify-card-preview canvas { inline-size: 100%; block-size: auto; border-radius: 10px; }
