:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #eaf0f6;
  --bg-strong: #101827;
  --panel: #ffffff;
  --panel-2: #f7fafc;
  --panel-3: #edf6f3;
  --text: #121826;
  --muted: #667085;
  --line: #d8e1eb;
  --line-strong: #aebdca;
  --accent: #2b6eea;
  --accent-2: #12a87f;
  --accent-3: #e7b94f;
  --accent-4: #e66a4f;
  --danger: #c2410c;
  --ok: #0f7a5f;
  --shadow: 0 22px 54px rgba(18, 24, 38, .12);
  --soft-shadow: 0 12px 30px rgba(18, 24, 38, .09);
  --nav-bg: rgba(255, 255, 255, .86);
  --hero-text: #f7fbff;
  --hero-muted: rgba(247, 251, 255, .78);
  --dark-glass: rgba(15, 23, 42, .74);
  --dark-line: rgba(255, 255, 255, .16);
  --slot: #d9e0e8;
  --slot-2: #c7d1dc;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141820;
  --bg-soft: #1c222d;
  --bg-strong: #0b1018;
  --panel: #1f2630;
  --panel-2: #252d38;
  --panel-3: #17362f;
  --text: #eef3f8;
  --muted: #a5b0bf;
  --line: #394556;
  --line-strong: #536173;
  --accent: #5a92ff;
  --accent-2: #36c7a0;
  --accent-3: #f0c766;
  --accent-4: #ff856d;
  --danger: #ff936d;
  --ok: #58d7b1;
  --shadow: 0 24px 64px rgba(0, 0, 0, .34);
  --soft-shadow: 0 14px 38px rgba(0, 0, 0, .24);
  --nav-bg: rgba(31, 38, 48, .86);
  --dark-glass: rgba(11, 16, 24, .76);
  --slot: #3a4350;
  --slot-2: #2b333e;
}

* { box-sizing: border-box; }

html {
  min-width: 0;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-3) 10%, transparent) 0%, transparent 26%),
    linear-gradient(220deg, color-mix(in srgb, var(--accent-4) 8%, transparent) 0%, transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 78%, transparent) 0%, var(--bg) 42%, var(--bg-soft) 100%);
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dashboard-lock-scroll {
  height: var(--app-height, 100vh);
  overflow: hidden;
}

body.dashboard-lock-scroll .site-shell {
  height: var(--app-height, 100vh);
  min-height: 0;
  overflow: hidden;
}

button, input, select { font: inherit; }

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

button:not(.secondary):not(.ghost):not(.brand):not(.dashboard-brand):not(.premium-button):not(.icon-button):not(.tab):not(.module-tab):not(.game-chip):not(.miniapp-fullscreen-button):not(.chat-card) {
  background:
    linear-gradient(135deg, color-mix(in srgb, #ffffff 18%, transparent), transparent 42%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 82%, var(--accent)));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 24%, transparent);
}

button.secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}

button.ghost:hover:not(:disabled) {
  border-color: var(--line);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  box-shadow: none;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 2px;
}

a { color: inherit; }

code {
  border-radius: 6px;
  padding: 2px 6px;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel-2));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  font: 800 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-shell {
  min-height: var(--app-height, 100vh);
}

.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100vw;
  max-width: 100vw;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 5vw, 72px);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%, color-mix(in srgb, var(--accent-3) 9%, transparent)),
    var(--nav-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  gap: 10px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.brand:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
}

.brand-text {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.nav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav {
  justify-content: center;
}

.topbar-actions {
  justify-content: flex-end;
  min-width: 0;
}

.theme-toggle {
  min-width: 88px;
}

.hero {
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  min-height: min(660px, calc(var(--app-height, 100vh) - 118px));
  padding: 70px clamp(16px, 5vw, 72px) 42px;
  color: var(--hero-text);
  background:
    linear-gradient(115deg, rgba(11, 16, 24, .98) 0%, rgba(17, 28, 43, .93) 42%, rgba(31, 36, 33, .82) 74%, rgba(54, 32, 28, .74) 100%),
    linear-gradient(180deg, rgba(90, 146, 255, .20), rgba(54, 199, 160, .13) 48%, rgba(240, 199, 102, .12));
  isolation: isolate;
  --hero-scroll-progress: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .42;
  background:
    linear-gradient(120deg, transparent 0 46%, rgba(255,255,255,.09) 46% 47%, transparent 47% 100%),
    linear-gradient(150deg, transparent 0 62%, rgba(240,199,102,.14) 62% 63%, transparent 63% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.075) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 84px);
  animation: slow-pan 24s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 0 72%, color-mix(in srgb, var(--bg) 90%, transparent)),
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 18% 82%, rgba(255,255,255,.06));
  opacity: calc(.98 - var(--hero-scroll-progress) * .24);
  pointer-events: none;
}

.hero-grid {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1fr);
  align-items: center;
  gap: 42px;
}

.hero-content {
  position: relative;
  min-width: 0;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  bottom: 8px;
  width: 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3), var(--accent-4));
  box-shadow: 0 0 24px rgba(54, 199, 160, .35);
}

.hero-kicker,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-kicker {
  border: 1px solid var(--dark-line);
  color: rgba(255,255,255,.9);
  background:
    linear-gradient(90deg, rgba(54,199,160,.16), rgba(240,199,102,.12)),
    rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.status-pill {
  color: color-mix(in srgb, var(--accent-2) 70%, var(--text));
  border: 1px solid color-mix(in srgb, var(--accent-2) 26%, transparent);
  background: color-mix(in srgb, var(--accent-2) 12%, var(--panel));
}

.hero h1 {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 88px;
  line-height: .95;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(95deg, #ffffff 0%, #c9f7ff 38%, #9ff4cc 66%, #ffd66b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .2));
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--hero-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-capability-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 22px;
}

.hero-capability-stack span {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 54%),
    rgba(255,255,255,.06);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.hero-capability-stack strong,
.hero-capability-stack small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-capability-stack strong {
  color: #fff;
  font-size: 15px;
}

.hero-capability-stack small {
  color: rgba(248,251,255,.66);
  font-weight: 800;
}

.hero-theme-action {
  display: none;
  gap: 4px;
}

.hero .secondary {
  background: rgba(255,255,255,.94);
  color: #121826;
  border-color: rgba(255,255,255,.35);
}

.hero-art {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  min-height: 440px;
}

.hero-animated {
  min-height: 492px;
  border-radius: 8px;
  overflow: visible;
  perspective: 1200px;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

.hero-animated::before,
.hero-animated::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-animated::before {
  inset: 22px 0 20px 38px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), transparent 22% 78%, rgba(255,255,255,.04)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.045) 46px 47px);
  transform: skewY(-3deg);
}

.hero-animated::after {
  right: 28px;
  bottom: 46px;
  width: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85,230,165,.72), rgba(240,199,102,.58), transparent);
  box-shadow: 0 0 22px rgba(85,230,165,.24);
}

.hero-stage {
  position: absolute;
  inset: 42px 18px 34px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition: transform .45s ease-out;
}

.hero-glow {
  position: absolute;
  border-radius: 8px;
  filter: blur(22px);
  opacity: .58;
  pointer-events: none;
  animation: hero-ribbon-pulse 9s ease-in-out infinite;
}

.hero-glow-a {
  width: 380px;
  height: 84px;
  left: 24px;
  top: 54px;
  background: linear-gradient(90deg, rgba(90, 146, 255, .34), rgba(54, 199, 160, .18));
  transform: rotate(-16deg);
}

.hero-glow-b {
  width: 420px;
  height: 78px;
  right: 0;
  bottom: 86px;
  background: linear-gradient(90deg, rgba(240, 199, 102, .22), rgba(255, 133, 109, .18), rgba(54, 199, 160, .18));
  transform: rotate(12deg);
  animation-delay: -4s;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 36px 30px 20px 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 58px),
    rgba(8, 12, 19, .58);
  box-shadow: 0 32px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.08);
  transform: rotateX(2deg) rotateY(-8deg);
  animation: hero-dashboard-float 8s ease-in-out infinite;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto 64px 6px 94px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  filter: blur(11px);
  animation: hero-shadow-breathe 8s ease-in-out infinite;
}

.hero-scene {
  position: absolute;
  z-index: 2;
  left: 64px;
  top: 72px;
  width: min(420px, calc(100% - 96px));
  min-height: 270px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 48%),
    linear-gradient(180deg, rgba(90,146,255,.08), rgba(54,199,160,.06)),
    rgba(14, 18, 28, .92);
  box-shadow: 0 24px 54px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.07);
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.96);
  animation: hero-scene-cycle 20s ease-in-out infinite;
}

.hero-scene-two { animation-delay: -15s; }
.hero-scene-three { animation-delay: -10s; }
.hero-scene-four { animation-delay: -5s; }

.hero-scene-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-scene-head strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-scene-head em {
  font-style: normal;
  color: rgba(248,251,255,.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scene-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #55e6a5;
  box-shadow: 0 0 0 6px rgba(85, 230, 165, .12);
}

.scene-dot.blue {
  background: #5a92ff;
  box-shadow: 0 0 0 6px rgba(90, 146, 255, .14);
}

.scene-dot.violet {
  background: #b986ff;
  box-shadow: 0 0 0 6px rgba(185, 134, 255, .16);
}

.scene-metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.scene-metric-row span,
.command-preview-row,
.rank-card,
.scene-toggle-row {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.scene-metric-row span {
  min-height: 76px;
  display: grid;
  align-content: center;
  padding: 12px;
}

.scene-metric-row strong {
  font-size: 28px;
  line-height: 1;
}

.scene-metric-row small {
  color: rgba(248,251,255,.62);
  font-weight: 800;
}

.scene-bars {
  display: grid;
  gap: 8px;
}

.scene-bars span {
  height: 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}

.scene-bars span::before {
  display: none;
}

.scene-bars span:nth-child(2)::before,
.scene-bars span:nth-child(3)::before {
  display: none;
}

.scene-toggle-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(248,251,255,.78);
  font-weight: 850;
}

.scene-toggle-row i {
  width: 48px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: #2ed18e;
}

.scene-toggle-row i::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.command-preview-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.command-preview-row.active {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  box-shadow: none;
}

.command-preview-row code {
  padding: 0;
  background: transparent;
  color: #fff;
}

.command-preview-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(248,251,255,.62);
  font-size: 12px;
  font-weight: 850;
}

.command-preview-row i {
  min-width: 42px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(85,230,165,.18);
  color: #9ff4cc;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.command-preview-row.muted-preview i {
  background: rgba(255,255,255,.12);
  color: rgba(248,251,255,.62);
}

.scene-flow-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.scene-flow-line span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  opacity: .76;
  animation: none;
}

.scene-flow-line span:nth-child(2) { animation-delay: -.45s; }
.scene-flow-line span:nth-child(3) { animation-delay: -.9s; }

.ai-composer {
  display: grid;
  gap: 10px;
  min-height: 132px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.ai-composer span {
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
}

.ai-composer span:nth-child(1) { width: 92%; }
.ai-composer span:nth-child(2) { width: 74%; }
.ai-composer span:nth-child(3) { width: 56%; }

.ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chip-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(185,134,255,.14);
  color: #dbc4ff;
  font-size: 12px;
  font-weight: 900;
}

.scene-send-button {
  justify-self: start;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 9px 13px;
  background: #5a92ff;
  color: #fff;
  font-weight: 950;
}

.rank-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.rank-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid #55e6a5;
  border-radius: 50%;
  background: #111827;
  color: #75e7ff;
  font-weight: 950;
}

.rank-card strong,
.rank-card span {
  display: block;
}

.rank-card span {
  color: rgba(248,251,255,.65);
  font-weight: 850;
}

.rank-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}

.rank-progress span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55e6a5, #f0c766);
  animation: hero-meter 3.8s ease-in-out infinite;
}

.rank-swatches,
.level-card-grid {
  display: flex;
  gap: 9px;
}

.rank-swatches span {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #5a92ff;
}

.rank-swatches span:nth-child(2) { background: #36c7a0; }
.rank-swatches span:nth-child(3) { background: #f0c766; }
.rank-swatches span:nth-child(4) { background: #ff856d; }
.rank-swatches span:nth-child(5) { background: #b986ff; }

.level-card-grid span {
  flex: 1;
  height: 58px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(90,146,255,.26), transparent),
    rgba(255,255,255,.06);
}

.hero-status-cloud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.status-chip {
  position: absolute;
  min-width: 92px;
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 9px 12px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 50%),
    linear-gradient(135deg, #20293b, #111827);
  color: #f8fbff;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  animation: hero-chip-float 7s ease-in-out infinite;
}

.status-chip strong {
  font-size: 13px;
  line-height: 1;
}

.status-chip small {
  color: rgba(248,251,255,.62);
  font-size: 11px;
  font-weight: 850;
}

.status-chip-a { left: 18px; top: 52px; }
.status-chip-b { right: 56px; top: 18px; animation-delay: -1.8s; }
.status-chip-c { left: 10px; bottom: 88px; animation-delay: -3.4s; }
.status-chip-d { right: 4px; bottom: 198px; animation-delay: -5.1s; }

.hero-signal-board {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 38px;
  width: min(318px, calc(100% - 42px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, .84);
  box-shadow: 0 20px 44px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  animation: hero-caption-float 7.2s ease-in-out infinite;
}

.hero-signal-board span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 12px 10px;
  background:
    linear-gradient(135deg, rgba(85,230,165,.10), transparent 52%),
    rgba(255,255,255,.045);
}

.hero-signal-board strong,
.hero-signal-board small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-signal-board strong {
  color: #fff;
  line-height: 1;
  font-size: 16px;
}

.hero-signal-board small {
  color: rgba(248,251,255,.58);
  font-size: 10px;
  font-weight: 850;
}

.hero-caption-card {
  position: absolute;
  right: 18px;
  top: 36px;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 208px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(15, 23, 42, .78);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
  animation: hero-caption-float 6.8s ease-in-out infinite;
}

.hero-caption-card span {
  color: rgba(248,251,255,.62);
  font-size: 12px;
  font-weight: 800;
}

.product-window {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: var(--dark-glass);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}

.window-main {
  position: absolute;
  inset: 48px 10px auto 0;
  min-height: 330px;
  overflow: hidden;
  animation: float-panel 6s ease-in-out infinite;
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}

.window-grid {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 278px;
}

.window-nav {
  border-right: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(180deg, rgba(90, 146, 255, .22), transparent),
    rgba(255,255,255,.04);
}

.window-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.mock-row {
  width: 78%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.mock-row.strong {
  width: 48%;
  height: 22px;
  background: rgba(255,255,255,.28);
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-cards span {
  height: 74px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(43, 110, 234, .36), transparent),
    rgba(255,255,255,.08);
}

.window-float {
  position: absolute;
  z-index: 2;
  width: 184px;
  min-height: 104px;
  display: grid;
  gap: 10px;
  padding: 16px;
  color: #fff;
  animation: float-card 5.2s ease-in-out infinite;
}

.window-float-a {
  right: 0;
  top: 0;
}

.window-float-b {
  left: 34px;
  bottom: 18px;
  animation-delay: -2.1s;
}

.mini-line {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.mini-line.short { width: 62%; }

.hero-photo-stack {
  position: absolute;
  right: 34px;
  bottom: 0;
  display: grid;
  grid-template-columns: 160px 116px;
  align-items: end;
  gap: 12px;
}

.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  border-radius: 8px;
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
  background:
    linear-gradient(135deg, rgba(255,255,255,.20), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255,255,255,.13) 36px 37px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(255,255,255,.08) 32px 33px),
    linear-gradient(135deg, var(--slot), var(--slot-2));
  box-shadow: inset 0 1px rgba(255,255,255,.14);
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 44%),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.10) 12px 13px);
}

.photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 40%, rgba(255,255,255,.25) 50%, transparent 60% 100%);
  transform: translateX(-120%);
  animation: slot-sheen 5.5s ease-in-out infinite;
}

.photo-slot span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--panel) 68%, transparent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.photo-slot small {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  font-size: 12px;
  color: color-mix(in srgb, var(--muted) 78%, var(--text));
}

.photo-slot.compact {
  min-height: 96px;
}

.photo-slot.wide {
  min-height: 118px;
}

.photo-slot.small {
  min-height: 84px;
}

.hero-photo-stack .photo-slot small {
  display: none;
}

.photo-slot.feature {
  min-height: 300px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1220px, calc(100% - 32px));
  margin: -18px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 72%, rgba(255,255,255,.2));
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 24px 54px rgba(18, 24, 38, .16);
  --scroll-rise: 0px;
  transform: translate3d(0, var(--scroll-rise), 0);
  transition: transform .16s linear;
}

.proof-item {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: color-mix(in srgb, var(--panel-2) 76%, var(--panel));
  overflow: hidden;
}

.proof-item::before {
  display: none;
}

.proof-item::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px;
  height: 1px;
  background: color-mix(in srgb, var(--line-strong) 58%, transparent);
}

.proof-item strong {
  font-size: 28px;
  line-height: 1;
}

.proof-item span {
  color: var(--muted);
  font-weight: 700;
}

.trust-section {
  width: 100%;
  max-width: none;
  padding-top: 58px;
  padding-bottom: 42px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 72%, transparent), transparent),
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 38%, color-mix(in srgb, var(--accent-4) 7%, transparent));
}

.trust-panel {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 0 clamp(16px, 5vw, 72px);
}

.trust-head {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 304px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 54%),
    linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel-2) 72%, var(--panel)));
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.trust-head::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: 28px;
  width: 260px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-3) 24%, transparent), color-mix(in srgb, var(--accent-4) 18%, transparent));
  transform: rotate(-14deg);
}

.trust-head h2 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1;
}

.trust-head p,
.trust-head .status-pill {
  position: relative;
  z-index: 1;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-card {
  position: relative;
  min-height: 146px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 50%),
    var(--panel);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.trust-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-4));
}

.trust-card span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 950;
}

.trust-card h3 {
  margin: 0;
  font-size: 20px;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 64px clamp(16px, 5vw, 72px);
}

.section-head {
  width: min(780px, 100%);
  margin-bottom: 24px;
}

.section-head.wide {
  width: min(980px, 100%);
}

.section-head.compact {
  margin-bottom: 16px;
}

.section h2,
.auth-panel h2 {
  margin: 12px 0 12px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section h3,
.panel h2,
.panel h3 {
  letter-spacing: 0;
}

.muted { color: var(--muted); }

.small-note {
  margin: 4px 0 0;
  font-size: 13px;
}

.showcase-list {
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: 18px;
  min-height: 330px;
  perspective: 1200px;
}

.feature-row.reversed {
  grid-template-columns: minmax(320px, 1fr) minmax(0, .84fr);
}

.feature-row.reversed .feature-copy {
  order: 2;
}

.feature-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
    linear-gradient(180deg, transparent 0 72%, color-mix(in srgb, var(--accent-3) 7%, transparent)),
    var(--panel);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.feature-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 22px;
  width: 180px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-2) 18%, transparent), color-mix(in srgb, var(--accent-3) 18%, transparent));
  transform: rotate(-12deg);
}

.feature-row:hover .feature-copy {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow);
}

.feature-copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--accent);
  font-weight: 950;
  font-size: 13px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.workflow-section {
  padding-top: 36px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.timeline-step {
  position: relative;
  min-height: 186px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.timeline-step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-4));
}

.timeline-step strong {
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

.timeline-step h3 {
  margin: 0;
  font-size: 20px;
}

.timeline-step p {
  margin: 0;
}

.start-page {
  display: grid;
  gap: 26px;
  padding-top: 42px;
}

.start-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
}

.start-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 34%);
}

.start-copy,
.start-visual {
  position: relative;
  z-index: 1;
}

.start-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.start-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
}

.start-copy p {
  margin: 0;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.start-visual {
  min-height: 340px;
}

.access-window {
  position: absolute;
  inset: 22px 42px 36px 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), transparent 44%),
    color-mix(in srgb, var(--bg-strong) 86%, var(--panel));
  box-shadow: var(--shadow);
}

.access-line {
  width: 74%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.access-line.strong {
  width: 48%;
  height: 18px;
  background: rgba(255,255,255,.24);
}

.access-locked {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #f8fbff;
}

.access-locked span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2));
}

.access-locked strong,
.access-locked small {
  min-width: 0;
}

.access-locked small {
  color: rgba(248, 251, 255, .72);
}

.access-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.access-modules span {
  min-height: 72px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), transparent),
    rgba(255,255,255,.09);
}

.access-lines {
  display: grid;
  gap: 10px;
}

.access-lines span {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.access-lines span:nth-child(2) { width: 72%; }
.access-lines span:nth-child(3) { width: 54%; }

.photo-slot.floating {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  min-height: 138px;
  box-shadow: var(--soft-shadow);
}

.access-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.access-step {
  position: relative;
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent 58%),
    var(--panel);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.access-step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.access-step strong {
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

.access-step h3,
.access-step p {
  margin: 0;
}

.commands-section {
  padding-top: 36px;
}

.command-groups {
  display: grid;
  gap: 22px;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.module-tab {
  min-height: 88px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 5px;
  text-align: left;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  white-space: normal;
}

.module-tab:hover:not(:disabled),
.module-tab.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 52%),
    var(--panel);
}

.module-tab span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.command-group {
  display: grid;
  gap: 14px;
}

.command-group-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.command-group-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.command-group-head p {
  margin: 0;
}

.command-group-head > span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  font-weight: 950;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.command-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 124px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.command-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: var(--shadow);
}

.command-shot {
  position: relative;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 46%),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.12) 12px 13px),
    linear-gradient(135deg, var(--slot), var(--slot-2));
}

.command-shot span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.command-body {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
}

.command-name {
  justify-self: start;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-2));
}

.command-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.command-body p {
  margin: 0;
  color: var(--muted);
}

.command-example {
  align-self: end;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: color-mix(in srgb, var(--accent-2) 72%, var(--text));
  font: 800 13px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.command-open {
  width: 100%;
  margin-top: 4px;
}

.command-page {
  width: min(1220px, 100%);
}

.command-back {
  margin-bottom: 14px;
}

.command-detail {
  display: grid;
  gap: 18px;
}

.command-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .72fr);
  gap: 20px;
  align-items: stretch;
}

.command-detail h1 {
  margin: 12px 0;
  font-size: 52px;
  line-height: 1;
}

.detail-aliases {
  margin-top: 14px;
}

.command-detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.command-detail-tabs.compact-tabs {
  grid-template-columns: 1fr;
}

.command-detail-tab {
  min-width: 0;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.command-detail-tab h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.command-detail-tab p {
  margin: 0;
  color: var(--muted);
}

.command-config-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent),
    var(--panel);
}

.command-config-panel h3 {
  margin: 0 0 4px;
}

.command-config-panel p {
  margin: 0;
}

.command-config-panel.locked {
  border-color: var(--line);
  background: var(--panel-2);
}

.command-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 900;
}

.command-dashboard {
  display: grid;
  gap: 18px;
}

.command-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.command-summary {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  align-items: center;
  min-width: 170px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.command-summary strong {
  font-size: 22px;
  line-height: 1;
}

.command-summary span {
  color: var(--muted);
  font-weight: 800;
}

.command-manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 14px;
  align-items: start;
}

.command-manage-list {
  display: grid;
  gap: 10px;
}

.command-manage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.command-manage-card.active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    var(--panel);
}

.command-manage-open {
  min-height: 0;
  display: grid;
  justify-content: stretch;
  justify-items: start;
  gap: 5px;
  padding: 0;
  text-align: left;
  white-space: normal;
}

.command-manage-open:hover:not(:disabled) {
  transform: none;
  background: transparent;
  border-color: transparent;
}

.command-manage-open span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.command-manage-detail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.command-manage-detail h3 {
  margin: 0;
  font-size: 28px;
}

.faq-tos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.faq-block,
.tos-block {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}

summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-weight: 950;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
}

.tos-list {
  display: grid;
  gap: 10px;
}

.tos-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.tos-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.tos-list p {
  margin: 0;
  color: var(--muted);
}

.auth-panel,
.dashboard,
.chat-picker {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 18px;
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 38%),
    var(--panel);
}

.state-screen {
  min-height: calc(var(--app-height, 100vh) - 72px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.state-card {
  width: min(420px, 100%);
  text-align: center;
}

.state-card h1 {
  margin: 12px 0 4px;
}

.loader {
  width: 34px;
  height: 34px;
  display: inline-block;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin .8s linear infinite;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-pad { padding: 18px; }

.telegram-login-box {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-domain-note {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 11px 15px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.miniapp-fullscreen-button {
  position: fixed;
  top: calc(84px + env(safe-area-inset-top, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 80;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--panel-2) 90%, transparent)),
    color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--text);
  box-shadow: 0 16px 40px color-mix(in srgb, #000 18%, transparent);
  backdrop-filter: blur(14px);
}

.miniapp-fullscreen-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
}

.fullscreen-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border-color: currentColor;
  border-style: solid;
  transition: transform .24s ease;
}

.fullscreen-arrow::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: right center;
}

.fullscreen-arrow-a {
  border-width: 2px 0 0 2px;
  transform: translate(-16px, -16px) rotate(0deg);
}

.fullscreen-arrow-a::after {
  left: 0;
  top: -2px;
  transform: rotate(-45deg);
}

.fullscreen-arrow-b {
  border-width: 0 2px 2px 0;
  transform: translate(3px, 3px) rotate(0deg);
}

.fullscreen-arrow-b::after {
  right: 0;
  bottom: -2px;
  transform: rotate(-45deg);
}

.miniapp-fullscreen-button.is-fullscreen .fullscreen-arrow-a {
  transform: translate(-4px, -4px) rotate(180deg);
}

.miniapp-fullscreen-button.is-fullscreen .fullscreen-arrow-b {
  transform: translate(-15px, -15px) rotate(-180deg);
}

.chat-picker .panel {
  overflow: hidden;
}

.chat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.chat-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  justify-items: stretch;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 2px solid var(--line);
  box-shadow: none;
}

.chat-card:hover {
  border-color: color-mix(in srgb, var(--text) 22%, var(--line));
  background: color-mix(in srgb, var(--panel) 92%, var(--accent-2));
  box-shadow: none;
}

.chat-card.is-disconnected {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent-3) 48%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-3) 8%, transparent), transparent 45%),
    var(--panel);
}

.chat-card.is-disconnected:hover {
  border-color: color-mix(in srgb, var(--accent-3) 68%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-3) 13%, transparent), transparent 48%),
    var(--panel);
}

.chat-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.chat-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-card-action {
  color: var(--muted);
  font-weight: 950;
  text-align: right;
}

.chat-card.is-disconnected .chat-card-action {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: color-mix(in srgb, var(--accent-3) 78%, var(--text));
  background: color-mix(in srgb, var(--accent-3) 18%, var(--panel));
}

.chat-card-cta {
  grid-column: 2 / 4;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 4px 10px;
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.chat-card-badge {
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-2) 86%, transparent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.chat-card-badge.connected {
  border-color: color-mix(in srgb, var(--accent-2) 38%, var(--line));
  color: color-mix(in srgb, var(--accent-2) 72%, var(--text));
  background: color-mix(in srgb, var(--accent-2) 10%, var(--panel));
}

.empty-chat-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 14px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 62%, var(--panel));
  font-weight: 950;
}

.chat-avatar.is-pending {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-3) 30%, transparent), transparent 52%),
    color-mix(in srgb, var(--accent) 48%, var(--panel));
  outline: 2px solid color-mix(in srgb, var(--accent-3) 42%, transparent);
  outline-offset: 2px;
}

.chat-avatar img,
.server-avatar img,
.mini-chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 14px;
}

.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 14px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(43,110,234,.2), transparent 42%),
    var(--bg-strong);
  border-color: rgba(255,255,255,.14);
}

.sidebar .muted {
  color: rgba(255,255,255,.66);
}

.tabs {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.tab {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: rgba(255,255,255,.78);
  border: 1px solid transparent;
}

.tab:hover:not(:disabled) {
  background: rgba(255,255,255,.07);
  box-shadow: none;
}

.tab.active {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
}

.dashboard-head h1 {
  margin: 6px 0;
  font-size: 28px;
  line-height: 1.1;
}

.status-line {
  color: var(--ok);
  font-weight: 900;
}

.dirty-notice {
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 36%, transparent);
  background: color-mix(in srgb, var(--accent-2) 10%, var(--panel));
  color: color-mix(in srgb, var(--accent-2) 78%, var(--text));
  border-radius: 8px;
  padding: 12px;
  font-weight: 900;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 17px;
  box-shadow: none;
}

.metric::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.metric strong {
  display: block;
  font-size: 31px;
  line-height: 1;
}

.dashboard-section {
  margin-top: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

label.setting:first-of-type { border-top: 0; }

.setting-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.setting-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--accent-2);
}

input[type="number"], select {
  width: 156px;
  max-width: 52vw;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--panel);
  color: var(--text);
}

.savebar {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.alert {
  display: none;
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  background: color-mix(in srgb, var(--danger) 9%, var(--panel));
  color: var(--danger);
  border-radius: 8px;
  padding: 12px;
}

.toast-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 64px);
  z-index: 120;
  width: min(410px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px 44px 14px 54px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  color: var(--text);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  animation: toast-slide-in .24s ease-out both;
}

.app-toast::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #10202a;
  background: #79d6ff;
  font-size: 15px;
  font-weight: 950;
}

.dashboard-shell ~ .toast-stack .app-toast,
.dashboard-shell .app-toast {
  border-color: var(--dash-line);
  background: color-mix(in srgb, var(--dash-panel) 94%, transparent);
  color: var(--dash-text);
}

.app-toast strong {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.app-toast span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.36;
  letter-spacing: 0;
}

.app-toast.warning {
  border-color: color-mix(in srgb, var(--accent-3) 55%, var(--line));
}

.app-toast.warning::before {
  background: #ffd36a;
}

.app-toast.error {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
}

.app-toast.error::before {
  color: #fff;
  background: var(--danger);
}

.toast-close {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
}

.toast-close:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--line) 36%, transparent);
}

.top-users {
  display: grid;
  gap: 8px;
}

.top-user {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.dashboard-shell {
  --dash-bg: #232733;
  --dash-sidebar: #1a1e28;
  --dash-strip: #171c25;
  --dash-strip-hover: #202634;
  --dash-panel: #191d27;
  --dash-panel-soft: #202634;
  --dash-panel-alt: #242a38;
  --dash-input: #151922;
  --dash-line: #343c4d;
  --dash-line-strong: #4a5670;
  --dash-text: #f8fbff;
  --dash-muted: #9aa4ba;
  --dash-subtle: #8d98af;
  --dash-icon: #252b38;
  --dash-icon-active: #2f3746;
  --dash-premium-text: #ffd36a;
  --dash-premium-bg: #2b261d;
  --dash-premium-bg-hover: #332c20;
  --dash-premium-border: #5a4a29;
  --dash-premium-border-hover: #796235;
  --dash-game-blue: #8fb3ff;
  width: 100%;
  height: var(--app-height, 100vh);
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 332px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--dash-bg);
  color: var(--dash-text);
}

:root[data-theme="light"] .dashboard-shell {
  --dash-bg: #eef3f8;
  --dash-sidebar: #f8fafc;
  --dash-strip: #edf2f8;
  --dash-strip-hover: #e5ecf5;
  --dash-panel: #ffffff;
  --dash-panel-soft: #f1f5f9;
  --dash-panel-alt: #e9eff6;
  --dash-input: #f8fbff;
  --dash-line: #d1dbe8;
  --dash-line-strong: #a8b8ca;
  --dash-text: #121826;
  --dash-muted: #5f6f84;
  --dash-subtle: #6b7a90;
  --dash-icon: #e7edf6;
  --dash-icon-active: #dbe6f2;
  --dash-premium-text: #7a5200;
  --dash-premium-bg: #fff7df;
  --dash-premium-bg-hover: #fff1c7;
  --dash-premium-border: #e3b84e;
  --dash-premium-border-hover: #c99420;
  --dash-game-blue: #2b6eea;
}

.dashboard-shell .muted {
  color: var(--dash-muted);
}

.dashboard-shell .panel,
.dashboard-shell .dashboard-section {
  border: 2px solid var(--dash-line);
  background: var(--dash-panel);
  box-shadow: none;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: var(--app-height, 100vh);
  min-height: 0;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 14px;
  background: var(--dash-sidebar);
  border-right: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.dashboard-sidebar::-webkit-scrollbar,
.dashboard-main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dashboard-brand,
.server-select,
.server-strip,
.dashboard-sidebar .tab,
.dashboard-shell .command-manage-open {
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.dashboard-brand {
  justify-content: flex-start;
  gap: 12px;
  min-height: 46px;
  padding: 0 10px;
  font-size: 29px;
  font-weight: 950;
}

.dashboard-brand:hover:not(:disabled),
.server-select:hover:not(:disabled),
.server-strip:hover,
.dashboard-shell .command-manage-open:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.server-select,
.server-strip {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-strip);
  text-align: left;
}

.server-strip {
  cursor: default;
}

.server-select span:nth-child(2),
.server-strip span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  line-height: 1.28;
}

.server-strip span:last-child {
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--dash-line-strong);
  opacity: .74;
}

.server-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--dash-icon);
  color: var(--dash-text);
  font-weight: 950;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-sidebar .tab {
  position: relative;
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  color: var(--dash-muted);
  background: var(--dash-strip);
  font-weight: 800;
  text-align: left;
  overflow: hidden;
}

.dashboard-sidebar .tab::after {
  display: none;
}

.dashboard-sidebar .tab:hover:not(:disabled) {
  color: var(--dash-text);
  border-color: var(--dash-line-strong);
  background: var(--dash-strip-hover);
}

.dashboard-sidebar .tab.active {
  color: var(--dash-text);
  border-color: var(--dash-line-strong);
  background: var(--dash-panel-soft);
}

.dashboard-sidebar .tab span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .16s ease;
}

.dashboard-sidebar .tab:hover:not(:disabled) span:last-child,
.dashboard-sidebar .tab.active span:last-child {
  color: var(--dash-text);
}

.tab-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--dash-icon);
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-sidebar .tab:hover:not(:disabled) .tab-icon,
.dashboard-sidebar .tab.active .tab-icon {
  background: var(--dash-icon-active);
  color: var(--dash-text);
}

.dashboard-sidebar-groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 0 0 20px;
  color: var(--dash-text);
}

.sidebar-soon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-strip);
  color: var(--dash-muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.sidebar-soon:hover:not(:disabled) {
  transform: none;
  border-color: var(--dash-line-strong);
  background: var(--dash-strip-hover);
  color: var(--dash-text);
  box-shadow: none;
}

.sidebar-soon::after {
  content: "";
  width: 32px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--dash-line-strong);
  opacity: .72;
}

.dashboard-main {
  min-width: 0;
  height: var(--app-height, 100vh);
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 22px clamp(18px, 4vw, 46px) 128px;
}

.dashboard-topline {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-kicker {
  color: var(--dash-subtle);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-topline h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.12;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.dashboard-actions button {
  min-height: 38px;
}

.premium-button {
  color: var(--dash-premium-text);
  background: var(--dash-premium-bg);
  border: 2px solid var(--dash-premium-border);
  box-shadow: none;
}

.premium-button:hover:not(:disabled) {
  color: var(--dash-premium-text);
  background: var(--dash-premium-bg-hover);
  border-color: var(--dash-premium-border-hover);
  box-shadow: none;
}

.icon-button {
  min-width: 42px;
  padding: 8px 11px;
  color: var(--dash-text);
  background: var(--dash-strip);
  border: 2px solid var(--dash-line);
  box-shadow: none;
}

.chat-icon-button {
  width: 42px;
  padding: 0;
}

.mini-chat-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--dash-icon);
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-promo {
  min-height: 226px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-strip);
  overflow: hidden;
}

.dashboard-promo > div {
  min-width: 0;
}

.dashboard-promo > div > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--dash-muted);
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-promo-title {
  display: block;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.dashboard-promo h2 {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  word-break: normal;
  overflow-wrap: anywhere;
}

.dashboard-promo p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--dash-muted);
  font-size: 17px;
}

.dashboard-shell .dash-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-shell .metric {
  min-height: 96px;
  border: 2px solid var(--dash-line);
  background: var(--dash-panel);
}

.dashboard-shell .metric::after {
  display: none;
}

.dashboard-shell .metric strong {
  color: var(--dash-text);
  font-size: 26px;
}

.overview-showcase {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.overview-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 236px;
  padding: 18px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dash-game-blue) 8%, transparent), transparent 48%),
    var(--dash-panel);
}

.overview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-card-head strong {
  color: var(--dash-text);
  font-size: 18px;
}

.premium-pill {
  color: var(--dash-premium-text);
  border-color: var(--dash-premium-border);
  background: var(--dash-premium-bg);
}

.top-users.rich {
  gap: 9px;
}

.top-user {
  min-width: 0;
}

.top-users.rich .top-user {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 0 0;
}

.top-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dash-text);
  background: var(--dash-icon);
  font-weight: 950;
}

.top-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dash-text);
  font-weight: 850;
}

.premium-mini {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dash-premium-border);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--dash-premium-text);
  background: var(--dash-premium-bg);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dash-premium-border) 20%, transparent), transparent 48%),
    var(--dash-panel);
}

.premium-card p {
  margin: 0;
}

.premium-count {
  display: grid;
  gap: 2px;
}

.premium-count strong {
  color: var(--dash-text);
  font-size: 42px;
  line-height: 1;
}

.premium-count span {
  color: var(--dash-muted);
  font-weight: 850;
}

.premium-holders {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.premium-holders span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--dash-muted);
  background: var(--dash-strip);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-action-list {
  display: grid;
  gap: 9px;
}

.admin-action-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--dash-line);
}

.admin-action-row code {
  background: var(--dash-input);
  color: var(--dash-game-blue);
}

.admin-action-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dash-text);
  font-weight: 850;
}

.admin-action-row small,
.dashboard-last-update {
  color: var(--dash-muted);
  font-weight: 800;
}

.dashboard-last-update {
  text-align: right;
}

.plugin-section {
  display: grid;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
}

.dashboard-shell .plugin-section {
  border: 0;
  background: transparent;
}

.plugin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-panel);
}

.plugin-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.plugin-head p {
  margin: 0;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.plugin-card {
  min-height: 164px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 20px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-panel);
  box-shadow: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.plugin-card:hover {
  transform: translateY(-2px);
  border-color: var(--dash-line-strong);
  background: var(--dash-panel-soft);
}

.plugin-icon,
.command-card-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--dash-icon);
  color: var(--dash-text);
  font-weight: 950;
}

.plugin-icon {
  width: 48px;
  height: 48px;
}

.plugin-card h3 {
  margin: 0 0 6px;
  color: var(--dash-text);
}

.plugin-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.plugin-card-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dash-muted);
  font-weight: 850;
}

.game-preview-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--dash-panel);
}

.game-preview-section h2,
.game-dashboard h2 {
  margin: 6px 0 4px;
}

.game-preview-section p,
.game-dashboard-head p,
.chat-game-card p {
  margin: 0;
}

.game-preview-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-chip {
  min-width: 0;
  min-height: 40px;
  justify-content: flex-start;
}

.game-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-chip.accent {
  border-color: color-mix(in srgb, var(--dash-game-blue) 54%, var(--dash-line));
  background: color-mix(in srgb, var(--dash-game-blue) 12%, var(--dash-panel-alt));
}

.game-dashboard {
  display: grid;
  gap: 18px;
}

.game-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.chat-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chat-game-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-strip);
}

.chat-game-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dash-text);
  background: color-mix(in srgb, var(--dash-game-blue) 20%, var(--dash-icon));
  font-size: 12px;
  font-weight: 950;
}

.chat-game-title {
  min-width: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.chat-game-title h3 {
  min-width: 0;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  color: var(--dash-text);
  font-size: 16px;
}

.chat-game-title span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--dash-game-blue) 48%, var(--dash-line));
  border-radius: 999px;
  color: var(--dash-game-blue);
  background: color-mix(in srgb, var(--dash-game-blue) 9%, transparent);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.chat-game-card button {
  grid-column: 1 / -1;
  width: 100%;
}

.dashboard-shell .module-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--dash-line);
}

.dashboard-shell .module-tab {
  min-width: max(134px, 13vw);
  min-height: 44px;
  align-content: center;
  padding: 9px 14px;
  color: var(--dash-muted);
  background: var(--dash-strip);
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-shell .module-tab span {
  display: none;
}

.dashboard-shell .module-tab:hover:not(:disabled),
.dashboard-shell .module-tab.active {
  color: var(--dash-text);
  border-color: var(--dash-line-strong);
  background: var(--dash-panel-soft);
  box-shadow: none;
}

.dashboard-shell .command-dashboard {
  gap: 18px;
  background: transparent;
  border: 0;
  padding: 0;
}

.dashboard-shell .command-dashboard-head {
  align-items: center;
  padding: 22px;
  border: 2px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-panel);
}

.dashboard-shell .command-summary {
  border: 2px solid var(--dash-line);
  background: var(--dash-panel-soft);
}

.command-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.command-search {
  width: min(520px, 100%);
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--dash-input);
  border: 2px solid var(--dash-line);
}

.command-search span {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid var(--dash-subtle);
  border-radius: 50%;
  position: relative;
}

.command-search span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 999px;
  background: var(--dash-subtle);
  transform: rotate(45deg);
}

.command-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--dash-text);
  background: transparent;
}

.dashboard-shell .command-manage-layout {
  grid-template-columns: minmax(0, 1fr);
}

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

.dashboard-shell .command-manage-card {
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--dash-line);
  background: var(--dash-panel);
}

.dashboard-shell .command-manage-card.active {
  border-color: var(--dash-line-strong);
  background: var(--dash-panel-soft);
}

.command-card-icon {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.dashboard-shell .command-manage-open {
  min-width: 0;
}

.dashboard-shell .command-manage-open code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  color: var(--dash-text);
  padding: 0;
  font-size: 15px;
}

.dashboard-shell .command-manage-open span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dash-muted);
  font-size: 12px;
}

.dashboard-shell .command-manage-detail {
  position: static;
  background: var(--dash-panel);
  border-color: var(--dash-line);
  border-width: 2px;
}

.command-switch,
.setting-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 58px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.command-switch input,
.setting-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.command-switch span,
.setting-switch span {
  width: 58px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px 0 28px;
  border-radius: 999px;
  color: #fff;
  background: #6e7793;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  transition: background .16s ease, padding .16s ease;
}

.command-switch span::before,
.setting-switch span::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef3f8;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  transition: transform .16s ease;
}

.command-switch input:checked + span,
.setting-switch input:checked + span {
  justify-content: flex-start;
  padding: 0 28px 0 8px;
  background: #25b88d;
}

.command-switch input:checked + span::before,
.setting-switch input:checked + span::before {
  transform: translateX(28px);
}

.dashboard-shell .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-shell label.setting {
  border-top-color: var(--dash-line);
}

.dashboard-shell input[type="number"],
.dashboard-shell select {
  color: var(--dash-text);
  background: var(--dash-input);
  border-color: var(--dash-line);
  border-width: 2px;
}

.dashboard-shell .savebar {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: auto;
  z-index: 80;
  width: min(320px, calc(100vw - 28px));
  margin: 0;
  padding: 7px;
  border: 2px solid var(--dash-line);
  background: color-mix(in srgb, var(--dash-panel) 92%, transparent);
}

.dashboard-shell .savebar button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.dashboard-shell .savebar .muted {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-shell .secondary {
  color: var(--dash-text);
  border: 2px solid var(--dash-line);
  background: var(--dash-panel-alt);
}

.automod-builder,
.automod-policy {
  display: grid;
  gap: 18px;
}

.automod-builder-head,
.automod-policy-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.automod-builder-head h2,
.automod-policy-head h2 {
  margin: 0 0 6px;
}

.automod-builder-head p,
.automod-policy-head p {
  margin: 0;
}

.automod-builder-head .setting {
  min-width: 248px;
  border-top: 0;
  padding: 0;
}

.automod-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  border-top: 1px solid var(--dash-line);
}

.automod-policy-list {
  display: grid;
  gap: 12px;
}

.automod-policy-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(118px, .42fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(128px, .52fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-input);
}

.automod-policy-index {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 48px;
}

.automod-policy-index strong {
  color: var(--dash-game-blue);
  font-size: 26px;
  line-height: 1;
}

.automod-policy-index span,
.automod-policy-field span,
.automod-duration span {
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 850;
}

.automod-policy-field,
.automod-duration {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.automod-policy-field select,
.automod-duration input {
  width: 100%;
  max-width: none;
}

.automod-duration {
  transition: opacity .16s ease, transform .16s ease;
}

.automod-duration.is-hidden {
  opacity: .35;
  transform: translateY(2px);
}

.automod-duration.is-hidden input {
  pointer-events: none;
}

.automod-add-rule {
  justify-self: start;
  gap: 8px;
}

.automod-add-rule span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #55e6a5;
  color: #10202a;
  font-size: 18px;
  line-height: 1;
}

label.setting > input[type="checkbox"] {
  appearance: none;
  width: 58px;
  height: 30px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #6e7793;
  cursor: pointer;
  position: relative;
  transition: background .16s ease;
}

label.setting > input[type="checkbox"]::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef3f8;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  transition: transform .16s ease;
}

label.setting > input[type="checkbox"]:checked {
  background: #25b88d;
}

label.setting > input[type="checkbox"]:checked::before {
  transform: translateX(28px);
}

body.reveal-ready [data-reveal] {
  opacity: 0;
  --reveal-y: 28px;
  --scroll-rise: 0px;
  transform: translate3d(0, calc(var(--reveal-y, 28px) + var(--scroll-rise, 0px)), 0);
  transition: opacity .72s cubic-bezier(.2, .8, .2, 1), transform .72s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0ms);
}

body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  --reveal-y: 0px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slow-pan {
  from { transform: translateX(0); }
  to { transform: translateX(-92px); }
}

@keyframes float-panel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(.6deg); }
}

@keyframes slot-sheen {
  0%, 58% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

@keyframes hero-ribbon-pulse {
  0%, 100% { opacity: .42; filter: blur(22px); }
  50% { opacity: .72; filter: blur(18px); }
}

@keyframes hero-dashboard-float {
  0%, 100% { transform: rotateX(2deg) rotateY(-8deg) translate3d(0, 0, 0); }
  50% { transform: rotateX(3deg) rotateY(-6deg) translate3d(0, -12px, 0); }
}

@keyframes hero-shadow-breathe {
  0%, 100% { transform: scaleX(.92); opacity: .34; }
  50% { transform: scaleX(1.04); opacity: .22; }
}

@keyframes hero-scene-cycle {
  0%, 15% { opacity: 0; transform: translate3d(0, 28px, 0) scale(.96); }
  20%, 40% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  45%, 100% { opacity: 0; transform: translate3d(0, -24px, 0) scale(.97); }
}

@keyframes hero-meter {
  0%, 100% { transform: scaleX(.78); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
}

@keyframes hero-flow {
  0%, 100% { opacity: .32; transform: translateY(0); }
  50% { opacity: .92; transform: translateY(-2px); }
}

@keyframes hero-chip-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8px, -18px, 0) scale(1.06); }
}

@keyframes hero-caption-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(34px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav {
    display: none;
  }

  .hero-grid,
  .trust-panel,
  .start-hero,
  .feature-row,
  .feature-row.reversed,
  .faq-tos-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reversed .feature-copy {
    order: 0;
  }

  .hero-art {
    min-height: 390px;
  }

  .hero-animated {
    min-height: 430px;
  }

  .hero-stage {
    inset: 34px 0 26px;
  }

  .hero-scene {
    left: 42px;
    top: 62px;
    width: min(392px, calc(100% - 72px));
  }

  .timeline,
  .access-flow,
  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .command-grid,
  .chat-list,
  .dash-grid,
  .settings-grid,
  .module-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .dashboard-brand,
  .server-select {
    width: auto;
  }

  .dashboard-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dashboard-sidebar .tab {
    width: auto;
    min-width: 128px;
  }

  .dashboard-sidebar-groups {
    display: none;
  }

  .dashboard-promo {
    grid-template-columns: 1fr;
  }

  .dashboard-shell .dash-grid,
  .command-manage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plugin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-preview-section,
  .chat-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automod-policy-row {
    grid-template-columns: minmax(118px, .45fr) minmax(180px, 1fr) minmax(180px, 1fr);
  }

  .automod-duration {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .topbar {
    display: flex;
    justify-content: space-between;
    min-height: 66px;
    padding: 10px 14px;
    gap: 10px;
  }

  .miniapp-fullscreen-button {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .topbar-actions button {
    min-height: 40px;
    padding: 9px 11px;
  }

  .topbar-actions [data-action="login-scroll"] {
    display: none;
  }

  .theme-toggle {
    min-width: 74px;
  }

  .hero-theme-action {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 44px 16px 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-copy {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .trust-section {
    padding-top: 46px;
    padding-bottom: 34px;
  }

  .trust-panel {
    gap: 12px;
  }

  .trust-head {
    min-height: 0;
    padding: 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-content::before {
    left: -10px;
  }

  .hero-capability-stack {
    grid-template-columns: 1fr;
  }

  .hero-actions > button,
  .dashboard-head button,
  .savebar button {
    min-width: 0;
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-art {
    min-height: 360px;
  }

  .hero-animated {
    min-height: 420px;
  }

  .hero-stage {
    inset: 32px 0 24px;
  }

  .hero-stage::before {
    inset: 26px 8px 18px 8px;
    transform: none;
  }

  .hero-scene {
    left: 18px;
    top: 58px;
    width: calc(100% - 36px);
    min-height: 260px;
    padding: 14px;
  }

  .hero-caption-card {
    right: 14px;
    top: 12px;
    min-width: 0;
    width: min(230px, calc(100% - 28px));
  }

  .status-chip {
    min-width: 76px;
    min-height: 44px;
    padding: 8px 9px;
    font-size: 10px;
  }

  .status-chip-a { left: 8px; top: 18px; }
  .status-chip-b { right: 18px; top: 92px; }
  .status-chip-c,
  .status-chip-d {
    display: none;
  }

  .hero-signal-board {
    right: 8px;
    bottom: 12px;
    width: calc(100% - 16px);
  }

  .window-main {
    inset: 52px 0 auto 0;
  }

  .window-grid {
    grid-template-columns: 72px 1fr;
  }

  .window-float {
    width: 148px;
  }

  .window-float-a {
    right: 4px;
  }

  .window-float-b {
    left: 4px;
  }

  .hero-photo-stack {
    right: 8px;
    grid-template-columns: 128px 96px;
  }

  .proof-strip,
  .timeline,
  .access-flow,
  .command-grid,
  .chat-list,
  .dash-grid,
  .settings-grid,
  .module-tabs,
  .command-detail-tabs,
  .command-detail-hero,
  .command-manage-layout {
    grid-template-columns: 1fr;
  }

  .module-tab {
    min-height: 70px;
  }

  .section {
    padding: 48px 16px;
  }

  .section h2,
  .auth-panel h2 {
    font-size: 30px;
  }

  .start-copy h2 {
    font-size: 32px;
  }

  .start-actions > button {
    width: 100%;
  }

  .start-visual {
    min-height: 320px;
  }

  .access-window {
    inset: 0 0 38px 0;
  }

  .photo-slot.floating {
    width: 58%;
  }

  .dashboard-main {
    padding: 16px 14px 28px;
  }

  .dashboard-topline,
  .plugin-head,
  .game-dashboard-head,
  .command-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-promo {
    min-height: 0;
    padding: 22px;
  }

  .dashboard-promo h2 {
    font-size: 34px;
  }

  .dashboard-promo-title {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .dashboard-shell .dash-grid,
  .overview-showcase,
  .plugin-grid,
  .game-preview-section,
  .game-preview-actions,
  .chat-game-grid,
  .command-manage-grid {
    grid-template-columns: 1fr;
  }

  .automod-builder-head,
  .automod-policy-head {
    align-items: stretch;
    flex-direction: column;
  }

  .automod-builder-head .setting {
    min-width: 0;
  }

  .automod-settings-grid,
  .automod-policy-row {
    grid-template-columns: 1fr;
  }

  .automod-duration {
    grid-column: auto;
  }

  .feature-copy {
    padding: 20px;
  }

  .feature-copy h3 {
    font-size: 25px;
  }

  .photo-slot.feature {
    min-height: 220px;
  }

  .command-group-head,
  .dashboard-head,
  .savebar,
  .command-dashboard-head,
  .command-config-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .command-manage-detail {
    position: static;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .savebar {
    position: static;
  }

  .dashboard-shell .savebar {
    position: fixed;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: auto;
    width: min(330px, calc(100vw - 28px));
    flex-direction: row;
    align-items: center;
  }

  .dashboard-shell .savebar button {
    width: auto;
    min-width: 0;
    white-space: nowrap;
  }

  .toast-stack {
    right: 14px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 70px);
    width: min(340px, calc(100vw - 28px));
  }

  label.setting {
    align-items: flex-start;
    flex-direction: column;
  }

  input[type="number"], select {
    width: min(220px, 100%);
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .topbar-actions .ghost:not(.theme-toggle) {
    display: none;
  }

  .hero h1 {
    font-size: 48px;
  }

  .mock-cards {
    grid-template-columns: 1fr;
  }

  .mock-cards span {
    height: 38px;
  }

  .hero-photo-stack {
    display: none;
  }

  .photo-slot.floating {
    display: none;
  }
}

.hero.hero-construction {
  min-height: clamp(650px, calc(var(--app-height, 100vh) - 72px), 860px);
  display: grid;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  color: #f8fbff;
  background: #071135 url("./media/hero/construction-sky.png") center center / cover no-repeat;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

.hero.hero-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: calc(.32 + var(--hero-scroll-progress) * .34);
  background:
    radial-gradient(circle at 51% 30%, rgba(55, 92, 176, .20), transparent 0 30%, transparent 58%),
    radial-gradient(circle at 18% 69%, rgba(255, 143, 83, calc(.24 + var(--hero-scroll-progress) * .38)), transparent 0 30%, transparent 56%),
    radial-gradient(ellipse at 38% 96%, rgba(255, 101, 41, calc(.12 + var(--hero-scroll-progress) * .34)), transparent 0 38%, transparent 68%),
    linear-gradient(180deg, rgba(7, 12, 34, .14), rgba(46, 26, 33, calc(.12 + var(--hero-scroll-progress) * .22)) 42%, rgba(118, 49, 28, calc(.22 + var(--hero-scroll-progress) * .36)));
  animation: none;
  pointer-events: none;
}

.hero.hero-construction::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(5, 9, 28, .10) 0%, transparent 24%, transparent 70%, color-mix(in srgb, var(--bg) 88%, transparent) 100%),
    linear-gradient(90deg, rgba(6, 10, 30, .12), transparent 24% 82%, rgba(6, 10, 30, .16));
  pointer-events: none;
}

.hero-star-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-star {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: rgba(244, 250, 255, .96);
  box-shadow:
    0 0 8px rgba(146, 212, 255, .70),
    0 0 18px rgba(88, 183, 255, .28);
  opacity: .82;
  filter: brightness(1);
  transform: translate3d(var(--star-shift-x, 0px), var(--star-shift-y, 0px), 0) scale(var(--star-scale, 1));
  transition: transform .24s ease-out, opacity .24s ease-out, box-shadow .24s ease-out, filter .24s ease-out;
  animation: hero-star-twinkle var(--star-duration, 3.8s) ease-in-out infinite;
  animation-delay: calc(var(--star-delay) * -1);
}

.hero-star:nth-child(3n) {
  background: rgba(255, 222, 174, .95);
  box-shadow:
    0 0 9px rgba(255, 188, 115, .62),
    0 0 20px rgba(255, 135, 73, .26);
}

.hero-star:nth-child(4n) {
  opacity: .62;
}

.hero-flight-field {
  position: absolute;
  inset: 0 0 auto;
  height: min(58%, 54svh);
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}

.flight-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--flight-width);
  opacity: 0;
  --flight-opacity: 1;
  --flight-blur: 0px;
  --flight-brightness: 1;
  --flight-saturation: 1;
  transform-origin: center;
  will-change: transform;
  animation: hero-plane-fly var(--flight-duration, 110s) linear infinite;
  animation-delay: var(--flight-delay, 0s);
  filter: saturate(var(--flight-saturation, .95)) brightness(var(--flight-brightness, .96)) blur(var(--flight-blur, 0));
}

.flight-plane::before,
.flight-plane::after {
  content: "";
  position: absolute;
  left: 68%;
  top: 50%;
  z-index: 0;
  width: var(--trail-width);
  border-radius: 999px;
  pointer-events: none;
}

.flight-plane::before {
  height: 44px;
  opacity: var(--trail-opacity, .74);
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,236,186,.62) 20%, rgba(148,216,255,.34) 54%, transparent 100%) 0 50% / 100% 3px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,.48), rgba(166,218,255,.22) 48%, transparent 100%) 8% 27% / 86% 1px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,.42), rgba(255,214,150,.18) 44%, transparent 100%) 15% 74% / 72% 1px no-repeat;
  filter: blur(.35px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 34%, rgba(0,0,0,.35) 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 34%, rgba(0,0,0,.35) 72%, transparent 100%);
}

.flight-plane::after {
  height: 70px;
  opacity: var(--trail-soft-opacity, .28);
  transform: translateY(-50%) scaleX(.9);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255,255,255,.34), rgba(165,205,255,.16) 34%, transparent 86%);
  filter: blur(16px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.76) 42%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.76) 42%, transparent 100%);
}

.flight-plane img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.flight-plane.is-far {
  z-index: 1;
  --flight-opacity: 1;
  --flight-blur: 0px;
  --flight-brightness: 1;
  --flight-saturation: 1;
}

.flight-plane.is-ltr img {
  transform: scaleX(-1);
}

.flight-plane.is-ltr::before,
.flight-plane.is-ltr::after {
  left: auto;
  right: 68%;
}

.flight-plane.is-ltr::before {
  background:
    linear-gradient(270deg, rgba(255,255,255,.92), rgba(255,236,186,.62) 20%, rgba(148,216,255,.34) 54%, transparent 100%) 100% 50% / 100% 3px no-repeat,
    linear-gradient(270deg, rgba(255,255,255,.48), rgba(166,218,255,.22) 48%, transparent 100%) 92% 27% / 86% 1px no-repeat,
    linear-gradient(270deg, rgba(255,255,255,.42), rgba(255,214,150,.18) 44%, transparent 100%) 85% 74% / 72% 1px no-repeat;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.9) 34%, rgba(0,0,0,.35) 72%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.9) 34%, rgba(0,0,0,.35) 72%, transparent 100%);
}

.flight-plane.is-ltr::after {
  transform-origin: right center;
  background: linear-gradient(270deg, rgba(255,255,255,.34), rgba(165,205,255,.16) 34%, transparent 86%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.76) 42%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.76) 42%, transparent 100%);
}

.hero-foreground {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: url("./media/hero/construction-foreground.png") center center / cover no-repeat;
  transform: translateZ(0);
}

@keyframes hero-star-twinkle {
  0%, 100% {
    opacity: .38;
    filter: brightness(.78);
  }
  16% {
    opacity: .86;
    filter: brightness(1.16);
  }
  38% {
    opacity: .48;
    filter: brightness(.9);
  }
  57% {
    opacity: 1;
    filter: brightness(1.55);
  }
  76% {
    opacity: .52;
    filter: brightness(.95);
  }
}

@keyframes hero-plane-fly {
  0%,
  4.9% {
    opacity: 0;
    transform: translate3d(var(--flight-start-x), var(--flight-start-y), 0) scale(var(--flight-start-scale, .8)) rotate(var(--flight-tilt, 0deg));
  }
  5% {
    opacity: var(--flight-opacity, 1);
    transform: translate3d(var(--flight-start-x), var(--flight-start-y), 0) scale(var(--flight-start-scale, .8)) rotate(var(--flight-tilt, 0deg));
  }
  32.9% {
    opacity: var(--flight-opacity, 1);
    transform: translate3d(var(--flight-end-x), var(--flight-end-y), 0) scale(var(--flight-end-scale, .7)) rotate(var(--flight-tilt, 0deg));
  }
  33%,
  100% {
    opacity: 0;
    transform: translate3d(var(--flight-end-x), var(--flight-end-y), 0) scale(var(--flight-end-scale, .7)) rotate(var(--flight-tilt, 0deg));
  }
}

.hero-construction-grid {
  position: relative;
  z-index: 6;
  width: 100%;
  min-height: inherit;
  grid-template-columns: 1fr;
  align-items: start;
  padding: clamp(108px, 16.5vh, 158px) clamp(36px, 5.4vw, 90px) clamp(230px, 28vh, 300px);
}

.hero-construction-copy {
  width: min(620px, 100%);
  margin: 0;
  text-align: left;
  text-shadow: 0 22px 52px rgba(2, 5, 18, .52);
}

.hero-construction .hero-content::before,
.hero-construction .hero-kicker,
.hero-construction .hero-actions,
.hero-construction .hero-capability-stack {
  display: none;
}

.hero-construction h1 {
  margin: 0;
  max-width: none;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(54px, 5.8vw, 96px);
  line-height: .92;
  letter-spacing: 0;
  filter: none;
}

.hero-construction .hero-copy {
  max-width: 560px;
  margin: clamp(16px, 2.4vh, 24px) 0 0;
  color: rgba(211, 219, 232, .82);
  font-size: clamp(15px, 1.35vw, 22px);
  line-height: 1.48;
  font-weight: 750;
}

.hero-construction-actions {
  display: flex;
  align-items: center;
  margin-top: clamp(18px, 3.5vh, 42px);
}

.hero-telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 126px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, #ffffff 18%, transparent), transparent 42%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 82%, var(--accent)));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 24%, transparent);
  color: #fff;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.hero-telegram-button:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, color-mix(in srgb, #ffffff 22%, transparent), transparent 42%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 88%, var(--accent)));
  box-shadow:
    0 0 0 4px rgba(91, 205, 255, .20),
    0 0 32px rgba(91, 205, 255, .62),
    0 18px 42px rgba(24, 136, 255, .34);
}

.hero-telegram-button:focus-visible {
  box-shadow:
    0 0 0 4px rgba(91, 205, 255, .24),
    0 0 34px rgba(91, 205, 255, .66),
    0 18px 42px rgba(24, 136, 255, .34);
}

.hero-telegram-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(7% 45%, 92% 7%, 66% 92%, 47% 62%, 29% 78%, 35% 56%);
  transform: translateY(-2px);
}

@media (max-width: 1080px) {
  .hero.hero-construction {
    min-height: clamp(720px, var(--app-height, 100vh), 820px);
  }

  .hero-construction-grid {
    padding: clamp(92px, 15vh, 132px) clamp(28px, 5vw, 56px) clamp(230px, 28vh, 300px);
  }

}

@media (max-width: 700px) {
  .hero.hero-construction {
    min-height: clamp(690px, var(--app-height, 100vh), 780px);
    padding: 0;
    background-position: 58% center;
  }

  .hero-foreground {
    background-position: 58% center;
  }

  .flight-plane {
    width: min(var(--flight-width), 62px);
  }

  .flight-plane::before {
    height: 30px;
  }

  .flight-plane::after {
    height: 44px;
    filter: blur(10px);
  }

  .hero-construction-grid {
    gap: 0;
    padding: 80px 24px 330px;
  }

  .hero-construction h1 {
    font-size: 54px;
  }

  .hero-construction .hero-copy {
    width: min(340px, 100%);
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .hero-construction-actions {
    margin-top: 16px;
  }

  .hero-telegram-button {
    min-height: 40px;
    min-width: 116px;
    padding: 9px 14px;
    font-size: 15px;
  }

  .hero-telegram-icon {
    width: 15px;
    height: 15px;
  }

}

@media (max-width: 420px) {
  .hero.hero-construction {
    min-height: 700px;
  }

  .hero-construction-grid {
    padding: 70px 20px 330px;
  }

  .hero-construction h1 {
    font-size: 48px;
  }

}

@media (max-width: 360px) {
  .hero-construction h1 {
    font-size: 44px;
  }
}
