:root {
  --bg: #020205;
  --nav: #07070c;
  --panel: #0b0b12;
  --panel-2: #11111d;
  --panel-3: #191529;
  --line: #2b2441;
  --text: #f3f7ff;
  --muted: #a79bbd;
  --blue: #a855f7;
  --cyan: #c084fc;
  --purple: #8b5cf6;
  --pink: #f0abfc;
  --glow: rgba(192, 132, 252, .28);
  --green: #c084fc;
  --yellow: #c084fc;
  --red: #a855f7;
}

/* Murphy Nebula final layer - intentionally last */
:root {
  --bg: #030208;
  --nav: #07030f;
  --panel: rgba(12, 9, 24, .88);
  --panel-2: rgba(19, 12, 36, .92);
  --panel-3: rgba(31, 16, 55, .88);
  --line: rgba(192, 132, 252, .22);
  --text: #fbf7ff;
  --muted: #bca9d4;
  --blue: #a855f7;
  --cyan: #3b82f6;
  --purple: #7c3aed;
  --pink: #f0abfc;
  --glow: rgba(168, 85, 247, .35);
  --green: #c084fc;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 85, 247, .26), transparent 32rem),
    radial-gradient(circle at 84% 8%, rgba(217, 70, 239, .18), transparent 34rem),
    radial-gradient(circle at 62% 72%, rgba(88, 28, 135, .28), transparent 44rem),
    linear-gradient(180deg, #05030b 0%, #020106 52%, #06020d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 74%);
}

.diamond-rain { z-index: 3; }
.diamond-rain span {
  opacity: .22;
  border-color: rgba(255, 255, 255, .34);
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(217, 70, 239, .2));
  box-shadow: 0 0 20px rgba(217, 70, 239, .32);
}

.app-shell { grid-template-columns: 292px minmax(0, 1fr); }
.side-nav {
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(14, 7, 28, .96), rgba(4, 3, 9, .94)), rgba(5, 4, 12, .95);
  border-right: 1px solid rgba(192, 132, 252, .18);
  box-shadow: 18px 0 70px rgba(0, 0, 0, .38);
}
.brand-block {
  padding: 10px;
  border: 1px solid rgba(240, 171, 252, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .18), rgba(255,255,255,.035));
}
.brand-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 18px rgba(217, 70, 239, .32));
}
.brand-block strong { font-size: 18px; }
.brand-block small { color: #d8c5ee; }
.side-links { gap: 7px; }
.side-links a {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 46px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #d8cee9;
  font-weight: 760;
  letter-spacing: 0;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.side-links a::before {
  content: "";
  position: absolute;
  left: 17px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(240, 171, 252, .52);
  border-radius: 4px;
  transform: rotate(45deg);
  background: rgba(168, 85, 247, .18);
  box-shadow: 0 0 14px rgba(217, 70, 239, .18);
}
.side-links a:hover,
.side-links a.active {
  transform: translateX(3px);
  border-color: rgba(240, 171, 252, .34);
  background: linear-gradient(135deg, rgba(168, 85, 247, .24), rgba(217, 70, 239, .1)), rgba(255,255,255,.035);
  box-shadow: inset 3px 0 0 #3b82f6, 0 16px 36px rgba(0, 0, 0, .18), 0 0 26px rgba(168, 85, 247, .12);
  color: #fff;
}
.side-status {
  border-color: rgba(240, 171, 252, .26);
  border-radius: 22px;
  background: radial-gradient(circle at 16% 18%, rgba(217, 70, 239, .22), transparent 8rem), linear-gradient(180deg, rgba(23, 12, 43, .96), rgba(9, 6, 18, .96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
.top-bar {
  min-height: 104px;
  padding: 24px 32px;
  background: linear-gradient(180deg, rgba(8, 5, 17, .9), rgba(8, 5, 17, .66)), rgba(5, 4, 11, .72);
  border-bottom: 1px solid rgba(192, 132, 252, .2);
  backdrop-filter: blur(22px);
}
.top-bar h1 {
  margin-top: 4px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 850;
}
.page-kicker,
.eyebrow {
  color: #3b82f6;
  letter-spacing: .12em;
}
.content-wrap { padding: 30px; }
.btn {
  border-radius: 13px;
  font-weight: 850;
}
.btn-primary {
  border: 0;
  color: #10051a;
  background: linear-gradient(135deg, #f0abfc, #d946ef 48%, #8b5cf6);
  box-shadow: 0 16px 36px rgba(168, 85, 247, .28), inset 0 1px 0 rgba(255,255,255,.36);
}
.btn-primary:hover {
  color: #10051a;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(168, 85, 247, .38), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary {
  border-color: rgba(240, 171, 252, .32);
  color: #f5d0fe;
  background: rgba(255,255,255,.025);
}
.connection-badge,
.notification-pill,
.soft-badge {
  border-color: rgba(240, 171, 252, .3);
  background: rgba(168, 85, 247, .14);
  color: #f5d0fe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.ops-hero,
.mobile-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 171, 252, .22);
  border-radius: 32px;
  background: radial-gradient(circle at 18% 16%, rgba(240, 171, 252, .28), transparent 14rem), radial-gradient(circle at 75% 22%, rgba(124, 58, 237, .32), transparent 18rem), linear-gradient(135deg, rgba(31, 14, 58, .92), rgba(6, 5, 13, .96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.08);
}
.ops-hero::after,
.mobile-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(240, 171, 252, .16);
  border-radius: 42px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(217, 70, 239, .16), transparent);
  pointer-events: none;
}
.ops-copy,
.ops-scoreboard { position: relative; z-index: 1; }
.ops-copy h2 {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 900;
  line-height: .88;
}
.ops-copy p {
  max-width: 760px;
  color: #dfd1f0;
  font-size: 18px;
}
.ops-scoreboard div,
.metric-tile,
.command-card,
.leaderboard-panel,
.ops-board,
.mini-panel,
.smart-card,
.control-deck,
.accounts-board,
.empty-command,
.panel,
.table-wrap,
.studio-card,
.rail-card,
.account-hero {
  border: 1px solid rgba(192, 132, 252, .2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 11, 34, .84), rgba(8, 6, 17, .9)), rgba(7, 5, 14, .86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.055);
}
.ops-scoreboard div { padding: 20px; }
.ops-scoreboard span,
.metric-tile span,
.metric-tile small,
.command-card p,
.deck-head small,
.studio-head p,
.rail-card p { color: var(--muted); }
.ops-scoreboard strong,
.metric-tile strong,
.big-number {
  color: #fff;
  text-shadow: 0 0 24px rgba(217, 70, 239, .18);
}
.command-card.primary-action,
.metric-tile.primary {
  background: radial-gradient(circle at 14% 16%, rgba(240, 171, 252, .24), transparent 10rem), linear-gradient(135deg, rgba(88, 28, 135, .92), rgba(14, 8, 27, .94));
}
.rank-row,
.next-row,
.ops-account-card,
.mobile-action,
.mobile-model-list a,
.quick-actions a,
.account-row-card,
.queue-account-card,
.caption-set-card,
.audio-card,
.notification-row {
  border: 1px solid rgba(192, 132, 252, .16);
  background: linear-gradient(180deg, rgba(16, 10, 31, .92), rgba(7, 5, 14, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rank-row:hover,
.next-row:hover,
.ops-account-card:hover,
.mobile-action:hover,
.mobile-model-list a:hover,
.quick-actions a:hover,
.account-row-card:hover,
.queue-account-card:hover,
.caption-set-card:hover,
.audio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 171, 252, .36);
  box-shadow: 0 18px 44px rgba(0,0,0,.26), 0 0 30px rgba(168,85,247,.12);
}
.form-control,
.form-select,
textarea.form-control,
input[type="file"] {
  border-color: rgba(192, 132, 252, .22);
  border-radius: 14px;
  background-color: rgba(4, 4, 12, .84);
  color: #fff;
}
.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 .22rem rgba(217, 70, 239, .18);
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #f8f1ff;
  --bs-table-border-color: rgba(192, 132, 252, .14);
}
.table thead th {
  color: #e9d5ff;
  background: rgba(168, 85, 247, .12);
}
.app-notification-toast,
.function-toast-card,
.welcome-card,
.auth-card {
  border-color: rgba(240, 171, 252, .24);
  background: radial-gradient(circle at 20% 10%, rgba(217, 70, 239, .2), transparent 16rem), linear-gradient(180deg, rgba(17, 10, 32, .96), rgba(6, 5, 13, .96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .46), 0 0 50px rgba(168, 85, 247, .18);
}
.auth-logo,
.welcome-logo { filter: drop-shadow(0 0 24px rgba(217, 70, 239, .34)); }

@media (max-width: 700px) {
  body {
    background: radial-gradient(circle at 10% 0%, rgba(217, 70, 239, .22), transparent 22rem), radial-gradient(circle at 90% 12%, rgba(124, 58, 237, .2), transparent 24rem), #030208;
  }
  .mobile-app-bar {
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 50;
    display: flex;
    border: 1px solid rgba(240, 171, 252, .2);
    border-radius: 22px;
    background: rgba(8, 5, 17, .78);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
  }
  .mobile-menu-toggle {
    top: 86px;
    right: 14px;
    z-index: 56;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border-color: rgba(240, 171, 252, .22);
    background: linear-gradient(135deg, rgba(168, 85, 247, .38), rgba(9, 7, 18, .9));
    box-shadow: 0 16px 44px rgba(0,0,0,.34);
  }
  .mobile-menu-drawer {
    border-color: rgba(240, 171, 252, .18);
    background: radial-gradient(circle at 20% 0%, rgba(217, 70, 239, .18), transparent 18rem), rgba(5, 4, 12, .96);
  }
  .mobile-menu-links a {
    border-color: rgba(192, 132, 252, .18);
    border-radius: 18px;
    background: rgba(15, 10, 29, .9);
  }
  .mobile-menu-links a.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, .32), rgba(217, 70, 239, .14));
  }
  .top-bar {
    margin-top: 78px;
    padding: 18px 16px 8px;
  }
  .top-bar h1 { font-size: 30px; }
  .content-wrap,
  .top-bar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .mobile-home { gap: 16px; }
  .mobile-hero-card {
    min-height: 190px;
    padding: 22px;
    border-radius: 28px;
  }
  .mobile-hero-card h2 { font-size: clamp(48px, 16vw, 72px); }
  .mobile-action {
    min-height: 112px;
    border-radius: 24px;
    background: radial-gradient(circle at 18% 18%, rgba(217, 70, 239, .14), transparent 8rem), rgba(12, 8, 24, .9);
  }
  .mobile-action.primary { min-height: 132px; }
  .mobile-metric-list div,
  .mobile-model-list,
  .mobile-feed {
    border-radius: 22px;
    background: rgba(12, 8, 24, .82);
  }
  .diamond-rain span { opacity: .18; }
}

/* Absolute final: black theme, no green, mobile hamburger */
:root {
  --blue: #f5f5f5 !important;
  --blue-2: #b8b8b8 !important;
  --purple: #f5f5f5 !important;
  --purple-2: #9ca3af !important;
  --green: #f5f5f5 !important;
  --bg: #030303 !important;
  --panel: #0a0a0c !important;
  --panel-2: #101114 !important;
  --line: rgba(255, 255, 255, .14) !important;
  --muted: #a5a5ad !important;
}

body {
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.055), transparent 22rem), #030303 !important;
  color: #f7f7f7 !important;
}

.page-kicker,
.eyebrow,
.side-links a.active,
.side-links a:hover,
.mobile-menu-links a.active,
.mobile-menu-links a:hover {
  color: #ffffff !important;
}

.side-primary-action,
.btn-primary,
.mobile-action.primary,
.command-card.primary-action,
.metric-tile.primary {
  color: #080808 !important;
  border-color: rgba(255,255,255,.72) !important;
  background: linear-gradient(135deg, #fff, #c8c8c8) !important;
  box-shadow: 0 16px 38px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.55) !important;
}

.connection-badge,
.notification-pill,
.soft-badge,
.mobile-status,
.mobile-status.ok,
.status-dot.ok,
.status-dot.configured,
.status-dot.pending {
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.status-dot.ok,
.status-dot.configured,
.status-dot.pending {
  background: #f5f5f5 !important;
}

.side-nav,
.mobile-app-bar,
.mobile-menu-drawer,
.top-bar,
.ops-hero,
.mobile-hero-card,
.metric-tile,
.command-card,
.leaderboard-panel,
.ops-board,
.mini-panel,
.smart-card,
.control-deck,
.accounts-board,
.empty-command,
.panel,
.table-wrap,
.studio-card,
.rail-card,
.account-hero,
.rank-row,
.next-row,
.ops-account-card,
.account-row-card,
.queue-account-card,
.caption-set-card,
.audio-card,
.notification-row,
.mobile-action,
.mobile-model-list,
.mobile-feed,
.mobile-metric-list div {
  border-color: rgba(255,255,255,.13) !important;
  background: linear-gradient(180deg, rgba(14,14,16,.96), rgba(5,5,6,.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.side-links a.active,
.side-links a:hover,
.mobile-menu-links a.active,
.mobile-menu-links a:hover {
  border-color: rgba(255,255,255,.34) !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: inset 3px 0 0 #f5f5f5 !important;
}

.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary {
  border-color: rgba(255,255,255,.24) !important;
  color: #f4f4f5 !important;
  background: rgba(255,255,255,.03) !important;
}

.form-control,
.form-select,
textarea.form-control,
input[type="file"] {
  border-color: rgba(255,255,255,.18) !important;
  background-color: rgba(5,5,6,.92) !important;
  color: #fff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255,255,255,.58) !important;
  box-shadow: 0 0 0 .22rem rgba(255,255,255,.1) !important;
}

.diamond-rain span {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.28) !important;
  box-shadow: 0 0 18px rgba(255,255,255,.08) !important;
}

.mobile-menu-toggle {
  display: none;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(10,10,12,.94) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.35) !important;
}

.mobile-menu-toggle span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  min-height: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  transform: none !important;
  clip-path: none !important;
}

.menu-word,
.menu-mark {
  display: none !important;
}

@media (max-width: 700px) {
  body {
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.055), transparent 18rem), #030303 !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    top: 86px !important;
    right: 14px !important;
  }
}

/* No-green final override */
:root {
  --blue: #f5f5f5;
  --blue-2: #b8b8b8;
  --purple: #f5f5f5;
  --purple-2: #9ca3af;
  --green: #f5f5f5;
  --bg: #030303;
  --panel: #0a0a0c;
  --panel-2: #101114;
  --line: rgba(255, 255, 255, .14);
  --muted: #a5a5ad;
}

body {
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 255, 255, .06), transparent 20rem),
    linear-gradient(180deg, #050505 0%, #000 100%) !important;
  color: #f7f7f7;
}

.diamond-rain span {
  background: rgba(255, 255, 255, .18) !important;
  border-color: rgba(255, 255, 255, .28) !important;
  box-shadow: 0 0 18px rgba(255, 255, 255, .08) !important;
}

.side-nav,
.mobile-app-bar,
.mobile-menu-drawer,
.top-bar {
  background: rgba(3, 3, 4, .94) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow: none !important;
}

.brand-logo,
.mobile-brand img,
.mobile-menu-head img,
.auth-logo,
.welcome-logo {
  filter: none !important;
}

.side-primary-action,
.btn-primary,
.mobile-action.primary,
.command-card.primary-action,
.metric-tile.primary {
  color: #080808 !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: linear-gradient(135deg, #ffffff, #c8c8c8) !important;
  box-shadow: 0 16px 38px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255,255,255,.55) !important;
}

.side-primary-action:hover,
.btn-primary:hover {
  color: #000 !important;
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(255, 255, 255, .09) !important;
}

.side-links a,
.mobile-menu-links a,
.quick-actions a,
.mobile-action,
.rank-row,
.next-row,
.ops-account-card,
.account-row-card,
.queue-account-card,
.caption-set-card,
.audio-card,
.notification-row,
.metric-tile,
.command-card,
.leaderboard-panel,
.ops-board,
.mini-panel,
.smart-card,
.control-deck,
.accounts-board,
.empty-command,
.panel,
.table-wrap,
.studio-card,
.rail-card,
.account-hero,
.ops-scoreboard div,
.mobile-model-list,
.mobile-feed,
.mobile-metric-list div {
  border-color: rgba(255, 255, 255, .13) !important;
  background: linear-gradient(180deg, rgba(14, 14, 16, .94), rgba(5, 5, 6, .96)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.side-links a:hover,
.side-links a.active,
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .08) !important;
  box-shadow: inset 3px 0 0 #f5f5f5 !important;
}

.page-kicker,
.eyebrow,
.ops-stat-card span,
.metric-tile span,
.deck-head small,
.studio-head p {
  color: #d7d7dc !important;
}

.connection-badge,
.notification-pill,
.soft-badge,
.mobile-status,
.mobile-status.ok,
.status-dot.ok,
.status-dot.configured {
  border-color: rgba(255, 255, 255, .24) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.status-dot.ok,
.status-dot.configured,
.status-dot.pending {
  background: #f5f5f5 !important;
}

.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary {
  border-color: rgba(255, 255, 255, .24) !important;
  color: #f4f4f5 !important;
  background: rgba(255, 255, 255, .03) !important;
}

.btn-outline-primary:hover,
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
  border-color: rgba(255, 255, 255, .48) !important;
  background: rgba(255, 255, 255, .1) !important;
}

.ops-hero,
.mobile-hero-card {
  border-color: rgba(255, 255, 255, .16) !important;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, .09), transparent 16rem),
    linear-gradient(135deg, rgba(15, 15, 17, .96), rgba(3, 3, 4, .98)) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255,255,255,.07) !important;
}

.ops-hero::after,
.mobile-hero-card::after {
  border-color: rgba(255, 255, 255, .12) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent) !important;
}

.form-control,
.form-select,
textarea.form-control,
input[type="file"] {
  border-color: rgba(255, 255, 255, .18) !important;
  background-color: rgba(5, 5, 6, .92) !important;
  color: #fff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 255, 255, .58) !important;
  box-shadow: 0 0 0 .22rem rgba(255, 255, 255, .1) !important;
}

.table {
  --bs-table-color: #f6f6f6;
  --bs-table-border-color: rgba(255, 255, 255, .12);
}

.table thead th {
  color: #fff !important;
  background: rgba(255, 255, 255, .08) !important;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  background: rgba(10, 10, 12, .92) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.35) !important;
}

.mobile-menu-toggle span {
  display: block !important;
  width: 21px !important;
  height: 2px !important;
  min-height: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  transform: none !important;
  clip-path: none !important;
}

.menu-word,
.menu-mark {
  display: none !important;
}

.app-notification-toast,
.function-toast-card,
.welcome-card,
.auth-card {
  border-color: rgba(255, 255, 255, .18) !important;
  background: linear-gradient(180deg, rgba(16, 16, 18, .97), rgba(4, 4, 5, .98)) !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .46) !important;
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .06), transparent 18rem),
      #030303 !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    top: 86px;
    right: 14px;
  }

  .mobile-menu-links a.active {
    box-shadow: inset 3px 0 0 #f5f5f5 !important;
  }
}

/* Final mobile/desktop stability patch */
.diamond-rain span {
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.44), rgba(180,180,180,.16)) !important;
  box-shadow: 0 0 14px rgba(255,255,255,.14) !important;
}

@media (min-width: 701px) {
  .app-shell {
    display: grid !important;
    grid-template-columns: 292px minmax(0, 1fr) !important;
    padding-top: 0 !important;
  }

  .side-nav {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    height: 100vh !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: stretch !important;
    gap: 24px !important;
    padding: 22px !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-bottom: 0 !important;
  }

  .brand-logo {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
  }

  .side-links {
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .side-links a {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 16px !important;
    white-space: normal !important;
    transform: none !important;
  }

  .side-status {
    display: block !important;
    height: auto !important;
    padding: 16px !important;
  }

  .top-bar {
    position: sticky !important;
    top: 0 !important;
    min-height: 104px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 24px 30px !important;
  }

  .top-bar::after {
    display: none !important;
  }

  .content-wrap {
    padding: 28px !important;
  }
}

@media (max-width: 700px) {
  html,
  body {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .app-shell,
  .main-shell {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .mobile-app-bar {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    min-height: 62px !important;
    border-radius: 18px !important;
  }

  .mobile-brand img,
  .mobile-menu-head img,
  .brand-logo {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
  }

  .mobile-brand span {
    transform: none !important;
  }

  .mobile-menu-toggle {
    top: 82px !important;
    right: 12px !important;
  }

  .top-bar {
    width: calc(100% - 24px) !important;
    margin: 78px auto 14px !important;
    padding: 14px 14px 8px !important;
    border-radius: 18px !important;
  }

  .top-bar h1 {
    font-size: 28px !important;
  }

  .content-wrap {
    width: 100% !important;
    max-width: 460px !important;
    margin: 0 auto !important;
    padding: 12px !important;
  }

  .web-dashboard .ops-hero,
  .web-dashboard .smart-strip,
  .web-dashboard .command-grid,
  .web-dashboard .dashboard-layout {
    display: none !important;
  }

  .web-dashboard .mobile-home {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    gap: 14px !important;
  }

  .mobile-hero-card,
  .mobile-action,
  .mobile-metric-list div,
  .mobile-model-list,
  .mobile-feed {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mobile-hero-card {
    min-height: auto !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .mobile-hero-card h2 {
    font-size: clamp(42px, 13vw, 62px) !important;
  }

  .mobile-action-grid {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .mobile-action.primary {
    grid-column: span 2 !important;
  }
}

/* Raven-inspired final skin */
:root {
  --bg: #030503;
  --nav: #050705;
  --panel: #0d0e0d;
  --panel-2: #111411;
  --panel-3: #151a15;
  --line: rgba(255, 255, 255, .08);
  --text: #f8faf8;
  --muted: #a7ada7;
  --blue: #75f24e;
  --cyan: #a8ff75;
  --purple: #75f24e;
  --pink: #d7ffd0;
  --glow: rgba(117, 242, 78, .22);
  --green: #75f24e;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 242, 78, .12), transparent 28rem),
    radial-gradient(circle at 80% 12%, rgba(117, 242, 78, .08), transparent 30rem),
    #030503 !important;
  color: var(--text);
}

.diamond-rain span {
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(117,242,78,.22)) !important;
  box-shadow: 0 0 16px rgba(117,242,78,.18) !important;
}

.side-nav {
  background: #030503 !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

.brand-block {
  border: 0 !important;
  background: transparent !important;
  padding: 8px 4px !important;
}

.brand-block strong {
  color: #fff;
  font-size: 22px !important;
  letter-spacing: -.02em;
}

.brand-block small {
  color: #8f978f !important;
}

.side-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 11px;
  background: #75f24e;
  color: #061006;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(117,242,78,.24);
}

.side-primary-action:hover {
  color: #061006;
  filter: brightness(1.05);
}

.side-links a {
  color: #d9dfd9 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

.side-links a::before {
  border-color: #75f24e !important;
  background: transparent !important;
  box-shadow: 0 0 12px rgba(117,242,78,.22) !important;
}

.side-links a:hover,
.side-links a.active {
  background: rgba(117,242,78,.08) !important;
  box-shadow: inset 3px 0 0 #75f24e !important;
  color: #fff !important;
}

.side-status {
  border-color: rgba(117,242,78,.18) !important;
  background: rgba(4, 22, 9, .72) !important;
}

.top-bar {
  background: #030503 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

.page-kicker,
.eyebrow {
  color: #75f24e !important;
}

.btn-primary {
  background: #75f24e !important;
  color: #061006 !important;
  box-shadow: 0 14px 30px rgba(117,242,78,.2) !important;
}

.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary {
  color: #e8efe8 !important;
  border-color: rgba(255,255,255,.14) !important;
  background: #101210 !important;
}

.connection-badge,
.notification-pill,
.soft-badge {
  border-color: rgba(117,242,78,.22) !important;
  background: rgba(117,242,78,.08) !important;
  color: #a8ff75 !important;
}

.ops-hero,
.mobile-hero-card,
.metric-tile,
.command-card,
.leaderboard-panel,
.ops-board,
.mini-panel,
.smart-card,
.control-deck,
.accounts-board,
.empty-command,
.panel,
.table-wrap,
.studio-card,
.rail-card,
.account-hero {
  border: 1px solid rgba(255,255,255,.08) !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(117,242,78,.12), transparent 14rem),
    #0d0e0d !important;
  box-shadow: none !important;
}

.ops-hero {
  min-height: 255px;
}

.ops-copy h2 {
  color: #fff;
}

.ops-scoreboard div,
.rank-row,
.next-row,
.ops-account-card,
.mobile-action,
.mobile-model-list a,
.quick-actions a,
.account-row-card,
.queue-account-card,
.caption-set-card,
.audio-card,
.notification-row,
.mobile-metric-list div,
.mobile-model-list,
.mobile-feed {
  border: 1px solid rgba(255,255,255,.08) !important;
  background: #111311 !important;
  box-shadow: none !important;
}

.rank-row:hover,
.next-row:hover,
.ops-account-card:hover,
.mobile-action:hover,
.mobile-model-list a:hover,
.quick-actions a:hover {
  border-color: rgba(117,242,78,.45) !important;
  box-shadow: 0 0 26px rgba(117,242,78,.08) !important;
}

.form-control,
.form-select,
textarea.form-control,
input[type="file"] {
  border-color: rgba(255,255,255,.1) !important;
  background-color: #080a08 !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #75f24e !important;
  box-shadow: 0 0 0 .2rem rgba(117,242,78,.13) !important;
}

.table thead th {
  background: rgba(117,242,78,.08) !important;
  color: #dfffd8 !important;
}

.mobile-menu-toggle {
  display: none;
}

.menu-word {
  color: #071007;
  font-weight: 900;
}

.menu-mark {
  width: 9px;
  height: 9px;
  border-left: 2px solid #071007;
  border-bottom: 2px solid #071007;
  transform: rotate(-45deg);
}

@media (max-width: 700px) {
  body {
    background: #030503 !important;
  }

  .mobile-app-bar {
    background: rgba(3,5,3,.92) !important;
    border-color: rgba(255,255,255,.08) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.3) !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    min-width: 82px;
    height: 42px !important;
    top: 82px !important;
    right: 12px !important;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #75f24e !important;
    box-shadow: 0 12px 26px rgba(117,242,78,.24) !important;
  }

  .mobile-menu-toggle > span:not(.menu-word):not(.menu-mark) {
    display: none !important;
  }

  .mobile-menu-drawer {
    background: #030503 !important;
    border-color: rgba(255,255,255,.08) !important;
  }

  .mobile-menu-links a {
    background: #101210 !important;
    border-color: rgba(255,255,255,.08) !important;
  }

  .mobile-menu-links a.active {
    background: rgba(117,242,78,.12) !important;
    border-color: rgba(117,242,78,.35) !important;
  }

  .content-wrap {
    max-width: 430px !important;
    padding: 12px !important;
  }

  .top-bar {
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent !important;
    border: 0 !important;
  }

  .mobile-hero-card {
    background:
      radial-gradient(circle at 90% 0%, rgba(117,242,78,.15), transparent 12rem),
      #0d0e0d !important;
  }
}

/* Murphy Rift v3: visible structural redesign */
@media (min-width: 701px) {
  body {
    background:
      radial-gradient(circle at 8% 0%, rgba(240, 171, 252, .16), transparent 28rem),
      radial-gradient(circle at 92% 4%, rgba(124, 58, 237, .24), transparent 34rem),
      linear-gradient(135deg, #020106 0%, #080311 45%, #030208 100%);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    padding-top: 112px;
  }

  .side-nav {
    position: fixed;
    top: 18px;
    left: 22px;
    right: 22px;
    z-index: 70;
    height: 76px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(240, 171, 252, .2);
    border-radius: 30px;
    background:
      linear-gradient(135deg, rgba(26, 10, 45, .9), rgba(4, 3, 9, .82)),
      rgba(5, 4, 12, .72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(24px);
  }

  .brand-block {
    flex: 0 0 250px;
    height: 56px;
    padding: 7px 14px 7px 8px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(217, 70, 239, .18), rgba(255,255,255,.04));
  }

  .brand-logo {
    width: 76px;
    height: 48px;
    object-fit: contain;
  }

  .side-links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-links::-webkit-scrollbar {
    display: none;
  }

  .side-links a {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 12px 15px 12px 34px;
    border-radius: 999px;
    white-space: nowrap;
    background: rgba(255,255,255,.03);
  }

  .side-links a::before {
    left: 14px;
    width: 9px;
    height: 9px;
    border-radius: 3px;
  }

  .side-links a:hover,
  .side-links a.active {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0,0,0,.26), 0 0 28px rgba(217,70,239,.16);
  }

  .side-status {
    flex: 0 0 216px;
    height: 56px;
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 9px;
    align-content: center;
    padding: 9px 12px;
    border-radius: 22px;
  }

  .side-status .status-dot {
    grid-row: span 2;
    align-self: center;
    margin: 0;
    width: 10px;
    height: 10px;
  }

  .side-status strong {
    font-size: 13px;
    line-height: 1.1;
  }

  .side-status small {
    font-size: 11px;
    line-height: 1.1;
  }

  .main-shell {
    min-width: 0;
  }

  .top-bar {
    position: relative;
    top: auto;
    min-height: 178px;
    margin: 0 22px 28px;
    padding: 38px 42px;
    border: 1px solid rgba(240, 171, 252, .16);
    border-radius: 34px;
    overflow: hidden;
    background:
      radial-gradient(circle at 14% 10%, rgba(240, 171, 252, .22), transparent 18rem),
      radial-gradient(circle at 86% 20%, rgba(124, 58, 237, .32), transparent 22rem),
      linear-gradient(135deg, rgba(14, 7, 28, .92), rgba(4, 3, 10, .96));
    box-shadow: 0 30px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
  }

  .top-bar::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(240, 171, 252, .18);
    border-radius: 56px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(217, 70, 239, .14), transparent);
  }

  .top-bar > * {
    position: relative;
    z-index: 1;
  }

  .top-bar h1 {
    font-size: clamp(44px, 5vw, 70px);
    line-height: .9;
  }

  .top-actions {
    align-self: flex-start;
  }

  .content-wrap {
    padding: 0 22px 34px;
  }

  .ops-hero {
    min-height: 310px;
    padding: 38px;
  }

  .ops-copy h2 {
    font-size: clamp(82px, 10vw, 138px);
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  }
}

@media (max-width: 700px) {
  .brand-logo,
  .mobile-brand img,
  .mobile-menu-head img {
    width: 72px;
    height: 44px;
    object-fit: contain;
  }

  .mobile-app-bar {
    min-height: 68px;
    padding: 9px 12px;
  }

  .mobile-brand {
    gap: 8px;
  }

  .mobile-brand span {
    transform: translateX(-8px);
  }

  .mobile-home {
    padding-bottom: 24px;
  }

  .mobile-hero-card {
    background:
      radial-gradient(circle at 18% 10%, rgba(240, 171, 252, .3), transparent 13rem),
      linear-gradient(135deg, rgba(38, 13, 68, .95), rgba(5, 3, 12, .96));
  }

  .mobile-action-grid {
    gap: 12px;
  }

  .mobile-action {
    border-color: rgba(240, 171, 252, .2);
    box-shadow: 0 14px 38px rgba(0,0,0,.24);
  }

  .mobile-action.primary {
    background:
      radial-gradient(circle at 20% 12%, rgba(240, 171, 252, .24), transparent 10rem),
      linear-gradient(135deg, rgba(124, 58, 237, .55), rgba(18, 8, 34, .96));
  }
}

/* Murphy Diamond stable layout */
.diamond-rain span {
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(240,171,252,.28) 42%, rgba(168,85,247,.12)),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 42%) !important;
  opacity: .2;
}

@media (min-width: 701px) {
  .app-shell {
    min-height: 100vh;
    display: grid !important;
    grid-template-columns: 292px minmax(0, 1fr) !important;
    padding-top: 0 !important;
  }

  .side-nav {
    position: sticky !important;
    inset: auto !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    height: 100vh !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: stretch !important;
    gap: 24px !important;
    padding: 22px !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-bottom: 0 !important;
  }

  .brand-block {
    flex: none !important;
    height: auto !important;
  }

  .brand-logo {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain;
  }

  .side-links {
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .side-links a {
    min-height: 48px !important;
    width: 100% !important;
    border-radius: 16px !important;
    white-space: normal !important;
    transform: none !important;
  }

  .side-links a:hover,
  .side-links a.active {
    transform: none !important;
  }

  .side-status {
    flex: none !important;
    height: auto !important;
    display: block !important;
    padding: 16px !important;
  }

  .side-status .status-dot {
    display: inline-block !important;
    margin-bottom: 10px !important;
    width: 12px !important;
    height: 12px !important;
  }

  .top-bar {
    position: sticky !important;
    top: 0 !important;
    min-height: 108px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 24px 30px !important;
  }

  .top-bar::after {
    display: none !important;
  }

  .top-bar h1 {
    font-size: clamp(32px, 3.4vw, 48px) !important;
    line-height: 1 !important;
  }

  .content-wrap {
    padding: 30px !important;
  }
}

@media (max-width: 700px) {
  .mobile-brand img,
  .mobile-menu-head img,
  .brand-logo {
    width: 46px !important;
    height: 46px !important;
  }

  .mobile-brand span {
    transform: none !important;
  }

  .top-bar {
    margin-top: 72px !important;
  }

  .diamond-rain span {
    opacity: .14;
  }
}

/* Murphy Nebula redesign */
:root {
  --bg: #030208;
  --nav: #07030f;
  --panel: rgba(12, 9, 24, .86);
  --panel-2: rgba(19, 12, 36, .9);
  --panel-3: rgba(31, 16, 55, .86);
  --line: rgba(192, 132, 252, .22);
  --text: #fbf7ff;
  --muted: #bca9d4;
  --blue: #a855f7;
  --cyan: #3b82f6;
  --purple: #7c3aed;
  --pink: #f0abfc;
  --glow: rgba(168, 85, 247, .35);
  --green: #c084fc;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 85, 247, .26), transparent 32rem),
    radial-gradient(circle at 84% 8%, rgba(217, 70, 239, .18), transparent 34rem),
    radial-gradient(circle at 62% 72%, rgba(88, 28, 135, .28), transparent 44rem),
    linear-gradient(180deg, #05030b 0%, #020106 52%, #06020d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 74%);
}

.diamond-rain {
  z-index: 3;
}

.diamond-rain span {
  opacity: .22;
  border-color: rgba(255, 255, 255, .34);
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(217, 70, 239, .2));
  box-shadow: 0 0 20px rgba(217, 70, 239, .32);
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.side-nav {
  padding: 24px 20px;
  background:
    linear-gradient(180deg, rgba(14, 7, 28, .96), rgba(4, 3, 9, .94)),
    rgba(5, 4, 12, .95);
  border-right: 1px solid rgba(192, 132, 252, .18);
  box-shadow: 18px 0 70px rgba(0, 0, 0, .38);
}

.brand-block {
  padding: 10px;
  border: 1px solid rgba(240, 171, 252, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .18), rgba(255,255,255,.035));
}

.brand-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 18px rgba(217, 70, 239, .32));
}

.brand-block strong {
  font-size: 18px;
}

.brand-block small {
  color: #d8c5ee;
}

.side-links {
  gap: 7px;
}

.side-links a {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 46px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #d8cee9;
  font-weight: 760;
  letter-spacing: 0;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.side-links a::before {
  content: "";
  position: absolute;
  left: 17px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(240, 171, 252, .52);
  border-radius: 4px;
  transform: rotate(45deg);
  background: rgba(168, 85, 247, .18);
  box-shadow: 0 0 14px rgba(217, 70, 239, .18);
}

.side-links a:hover,
.side-links a.active {
  transform: translateX(3px);
  border-color: rgba(240, 171, 252, .34);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .24), rgba(217, 70, 239, .1)),
    rgba(255,255,255,.035);
  box-shadow: inset 3px 0 0 #3b82f6, 0 16px 36px rgba(0, 0, 0, .18), 0 0 26px rgba(168, 85, 247, .12);
  color: #fff;
}

.side-status {
  border-color: rgba(240, 171, 252, .26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(217, 70, 239, .22), transparent 8rem),
    linear-gradient(180deg, rgba(23, 12, 43, .96), rgba(9, 6, 18, .96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.top-bar {
  top: 0;
  min-height: 104px;
  padding: 24px 32px;
  background:
    linear-gradient(180deg, rgba(8, 5, 17, .9), rgba(8, 5, 17, .66)),
    rgba(5, 4, 11, .72);
  border-bottom: 1px solid rgba(192, 132, 252, .2);
  backdrop-filter: blur(22px);
}

.top-bar h1 {
  margin-top: 4px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 850;
}

.page-kicker,
.eyebrow {
  color: #3b82f6;
  letter-spacing: .12em;
}

.content-wrap {
  padding: 30px;
}

.btn {
  border-radius: 13px;
  font-weight: 850;
}

.btn-primary {
  border: 0;
  color: #10051a;
  background: linear-gradient(135deg, #f0abfc, #d946ef 48%, #8b5cf6);
  box-shadow: 0 16px 36px rgba(168, 85, 247, .28), inset 0 1px 0 rgba(255,255,255,.36);
}

.btn-primary:hover {
  color: #10051a;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(168, 85, 247, .38), inset 0 1px 0 rgba(255,255,255,.4);
}

.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary {
  border-color: rgba(240, 171, 252, .32);
  color: #f5d0fe;
  background: rgba(255,255,255,.025);
}

.connection-badge,
.notification-pill,
.soft-badge {
  border-color: rgba(240, 171, 252, .3);
  background: rgba(168, 85, 247, .14);
  color: #f5d0fe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.ops-hero,
.mobile-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 171, 252, .22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 16%, rgba(240, 171, 252, .28), transparent 14rem),
    radial-gradient(circle at 75% 22%, rgba(124, 58, 237, .32), transparent 18rem),
    linear-gradient(135deg, rgba(31, 14, 58, .92), rgba(6, 5, 13, .96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.08);
}

.ops-hero::after,
.mobile-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(240, 171, 252, .16);
  border-radius: 42px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(217, 70, 239, .16), transparent);
  pointer-events: none;
}

.ops-copy,
.ops-scoreboard {
  position: relative;
  z-index: 1;
}

.ops-copy h2 {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: 0;
}

.ops-copy p {
  max-width: 760px;
  color: #dfd1f0;
  font-size: 18px;
}

.ops-scoreboard {
  display: grid;
  gap: 12px;
}

.ops-scoreboard div,
.metric-tile,
.command-card,
.leaderboard-panel,
.ops-board,
.mini-panel,
.smart-card,
.control-deck,
.accounts-board,
.empty-command,
.panel,
.table-wrap,
.studio-card,
.rail-card {
  border: 1px solid rgba(192, 132, 252, .2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 11, 34, .84), rgba(8, 6, 17, .9)),
    rgba(7, 5, 14, .86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.055);
}

.ops-scoreboard div {
  padding: 20px;
}

.ops-scoreboard span,
.metric-tile span,
.metric-tile small,
.command-card p,
.deck-head small,
.studio-head p,
.rail-card p {
  color: var(--muted);
}

.ops-scoreboard strong,
.metric-tile strong,
.big-number {
  color: #fff;
  text-shadow: 0 0 24px rgba(217, 70, 239, .18);
}

.smart-strip {
  gap: 16px;
}

.smart-card {
  padding: 20px;
}

.smart-card span {
  color: #f0abfc;
}

.command-grid,
.overview-strip {
  gap: 16px;
}

.command-card.primary-action,
.metric-tile.primary {
  background:
    radial-gradient(circle at 14% 16%, rgba(240, 171, 252, .24), transparent 10rem),
    linear-gradient(135deg, rgba(88, 28, 135, .92), rgba(14, 8, 27, .94));
}

.rank-row,
.next-row,
.ops-account-card,
.mobile-action,
.mobile-model-list a,
.quick-actions a,
.account-row-card,
.queue-account-card,
.caption-set-card,
.audio-card {
  border: 1px solid rgba(192, 132, 252, .16);
  background:
    linear-gradient(180deg, rgba(16, 10, 31, .92), rgba(7, 5, 14, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rank-row:hover,
.next-row:hover,
.ops-account-card:hover,
.mobile-action:hover,
.mobile-model-list a:hover,
.quick-actions a:hover,
.account-row-card:hover,
.queue-account-card:hover,
.caption-set-card:hover,
.audio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 171, 252, .36);
  box-shadow: 0 18px 44px rgba(0,0,0,.26), 0 0 30px rgba(168,85,247,.12);
}

.form-control,
.form-select,
textarea.form-control,
input[type="file"] {
  border-color: rgba(192, 132, 252, .22);
  border-radius: 14px;
  background-color: rgba(4, 4, 12, .84);
  color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 .22rem rgba(217, 70, 239, .18);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #f8f1ff;
  --bs-table-border-color: rgba(192, 132, 252, .14);
}

.table thead th {
  color: #e9d5ff;
  background: rgba(168, 85, 247, .12);
}

.app-notification-toast,
.function-toast-card,
.welcome-card,
.auth-card {
  border-color: rgba(240, 171, 252, .24);
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 70, 239, .2), transparent 16rem),
    linear-gradient(180deg, rgba(17, 10, 32, .96), rgba(6, 5, 13, .96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .46), 0 0 50px rgba(168, 85, 247, .18);
}

.auth-logo,
.welcome-logo {
  filter: drop-shadow(0 0 24px rgba(217, 70, 239, .34));
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 10% 0%, rgba(217, 70, 239, .22), transparent 22rem),
      radial-gradient(circle at 90% 12%, rgba(124, 58, 237, .2), transparent 24rem),
      #030208;
  }

  .mobile-app-bar {
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 50;
    display: flex;
    border: 1px solid rgba(240, 171, 252, .2);
    border-radius: 22px;
    background: rgba(8, 5, 17, .78);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
  }

  .mobile-menu-toggle {
    top: 86px;
    right: 14px;
    z-index: 56;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border-color: rgba(240, 171, 252, .22);
    background: linear-gradient(135deg, rgba(168, 85, 247, .38), rgba(9, 7, 18, .9));
    box-shadow: 0 16px 44px rgba(0,0,0,.34);
  }

  .mobile-menu-drawer {
    border-color: rgba(240, 171, 252, .18);
    background:
      radial-gradient(circle at 20% 0%, rgba(217, 70, 239, .18), transparent 18rem),
      rgba(5, 4, 12, .96);
  }

  .mobile-menu-links a {
    border-color: rgba(192, 132, 252, .18);
    border-radius: 18px;
    background: rgba(15, 10, 29, .9);
  }

  .mobile-menu-links a.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, .32), rgba(217, 70, 239, .14));
  }

  .top-bar {
    margin-top: 78px;
    padding: 18px 16px 8px;
  }

  .top-bar h1 {
    font-size: 30px;
  }

  .content-wrap,
  .top-bar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-home {
    gap: 16px;
  }

  .mobile-hero-card {
    min-height: 190px;
    padding: 22px;
    border-radius: 28px;
  }

  .mobile-hero-card h2 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .mobile-action {
    min-height: 112px;
    border-radius: 24px;
    background:
      radial-gradient(circle at 18% 18%, rgba(217, 70, 239, .14), transparent 8rem),
      rgba(12, 8, 24, .9);
  }

  .mobile-action.primary {
    min-height: 132px;
  }

  .mobile-metric-list div,
  .mobile-model-list,
  .mobile-feed {
    border-radius: 22px;
    background: rgba(12, 8, 24, .82);
  }

  .diamond-rain span {
    opacity: .18;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .16), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(217, 70, 239, .15), transparent 30rem),
    radial-gradient(circle at 48% 40%, rgba(124, 58, 237, .08), transparent 34rem),
    var(--bg);
  color: var(--text);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

.diamond-rain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.diamond-rain span {
  position: absolute;
  top: -8vh;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border: 1px solid rgba(240, 171, 252, .58);
  background: linear-gradient(135deg, rgba(240, 171, 252, .34), rgba(217, 70, 239, .16));
  box-shadow: 0 0 18px rgba(217, 70, 239, .34);
  opacity: .26;
  mix-blend-mode: screen;
  transform: rotate(45deg);
  animation: diamond-fall var(--d) linear infinite;
  animation-delay: var(--delay);
}

@keyframes diamond-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(45deg); }
  100% { transform: translate3d(32px, 112vh, 0) rotate(405deg); }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  position: relative;
  z-index: 1;
}

.mobile-app-bar,
.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-menu-drawer,
.mobile-home {
  display: none;
}

.mobile-action,
.mobile-menu-links a,
.mobile-brand {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(192, 132, 252, .22);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 22px;
  background: rgba(8, 13, 22, .92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-block strong,
.brand-block small {
  display: block;
}

.brand-block small {
  color: var(--muted);
  font-size: 12px;
}

.side-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.side-links a {
  color: #c8d4e8;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
}

.side-links a:hover {
  background: rgba(168, 85, 247, .14);
  box-shadow: inset 3px 0 0 var(--pink), 0 0 22px rgba(192, 132, 252, .08);
  color: #fff;
}

.side-links a.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, .24), rgba(217, 70, 239, .12));
  border-color: rgba(240, 171, 252, .28);
  color: #fff;
}

.side-status,
.hero-status {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 35, 56, .9), rgba(13, 20, 33, .9));
  padding: 16px;
}

.side-status strong,
.side-status small,
.hero-status strong,
.hero-status small {
  display: block;
}

.side-status small,
.hero-status small {
  color: var(--muted);
}

.main-shell {
  min-width: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: rgba(5, 7, 13, .78);
  border-bottom: 1px solid rgba(38, 54, 83, .7);
  backdrop-filter: blur(16px);
}

.top-bar h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.page-kicker,
.eyebrow {
  display: inline-block;
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.content-wrap {
  padding: 28px;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-tile {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 20, 33, .86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.metric-tile.primary {
  background: linear-gradient(135deg, rgba(168, 85, 247, .28), rgba(192, 132, 252, .1));
}

.metric-tile span,
.metric-tile small {
  display: block;
  color: var(--muted);
}

.metric-tile strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 38px;
  line-height: 1;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.studio-card,
.rail-card,
.control-deck,
.accounts-board,
.empty-command,
.panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 20, 33, .88);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
}

.studio-card {
  padding: 22px;
}

.studio-head,
.deck-head,
.rail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.deck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.studio-head h2,
.deck-head h2,
.rail-head h3 {
  margin: 3px 0 4px;
}

.studio-head p,
.deck-head small,
.rail-card p {
  color: var(--muted);
  margin: 0;
}

.mega-upload {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 18px;
}

.mega-upload strong,
.mega-upload small {
  display: block;
}

.mega-upload small {
  color: var(--muted);
}

.studio-columns,
.caption-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.caption-workbench {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.settings-panel,
.bulk-side {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(22, 35, 56, .52);
}

.choice-grid {
  display: grid;
  gap: 9px;
}

.choice-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080d16;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(168, 85, 247, .12);
  box-shadow: 0 0 0 1px rgba(192, 132, 252, .2), 0 0 24px rgba(192, 132, 252, .08);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small {
  color: var(--muted);
  font-size: 12px;
}

.account-pill-grid,
.account-select-grid,
.queue-account-row,
.account-card-grid {
  display: grid;
  gap: 10px;
}

.account-pill-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account-pill,
.account-check,
.queue-account-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #090f19;
  cursor: pointer;
}

.account-pill img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.account-pill strong,
.account-pill small,
.account-check strong,
.account-check small {
  display: block;
}

.account-pill small,
.account-check small {
  color: var(--muted);
  font-size: 12px;
}

.right-rail,
.side-stack {
  display: grid;
  gap: 18px;
}

.rail-card,
.control-deck,
.accounts-board,
.empty-command {
  padding: 20px;
}

.control-deck,
.accounts-board {
  margin-top: 18px;
}

.queue-account-row {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.queue-account-row span {
  margin-left: auto;
  color: var(--cyan);
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.model-group-stack,
.model-picker-stack {
  display: grid;
  gap: 18px;
}

.model-group {
  display: grid;
  gap: 12px;
}

.model-group-head,
.model-picker-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(192, 132, 252, .26);
  border-radius: 16px;
  background: rgba(168, 85, 247, .08);
}

.model-group-head h3 {
  margin: 2px 0 0;
}

.model-group-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.model-group-stats span,
.model-picker-title span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(5, 10, 18, .72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.model-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.model-select-all span {
  display: grid;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.model-select-all strong {
  color: var(--text);
  line-height: 1.1;
}

.model-select-all small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.model-picker-group {
  display: grid;
  gap: 10px;
}

.model-edit-form {
  display: grid;
  gap: 6px;
}

.account-model-panel {
  margin-bottom: 18px;
}

.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .18), transparent 26rem),
    rgba(13, 20, 33, .88);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.account-photo,
.avatar-lg {
  width: 84px;
  height: 84px;
  max-width: 84px;
  max-height: 84px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #080d16;
}

.account-identity h1 {
  margin: 3px 0 4px;
  font-size: clamp(28px, 4vw, 46px);
}

.account-identity p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-metrics {
  margin-top: -8px;
  margin-bottom: 22px;
}

.account-workspace {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-tools {
  display: grid;
  gap: 18px;
}

.account-data {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.data-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 20, 33, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.account-upload {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
}

.media-picker {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080d16;
}

.compact-picker {
  max-height: 220px;
}

.media-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(38, 54, 83, .8);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.media-row strong,
.media-row small {
  display: block;
}

.media-row strong {
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.media-row small {
  color: var(--muted);
  font-size: 12px;
}

.dark-table {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: #080d16;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-hover-bg: rgba(168, 85, 247, .08);
  margin-bottom: 0;
}

.table thead th {
  color: #abc0df;
  background: rgba(22, 35, 56, .78);
  border-bottom-color: var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.table td,
.table th {
  vertical-align: middle;
}

.max-error,
.max-caption {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  min-width: 78px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #586272;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.status-published {
  background: rgba(192, 132, 252, .18);
  color: #96f2cf;
}

.status-processing,
.status-retrying {
  background: rgba(139, 92, 246, .18);
  color: #ffe8a3;
}

.status-failed {
  background: rgba(139, 92, 246, .18);
  color: #c084fc;
}

.status-queued {
  background: rgba(168, 85, 247, .18);
  color: #dcfce7;
}

.account-card {
  display: grid;
  gap: 14px;
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 35, 56, .58), rgba(9, 15, 25, .86));
}

.bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(168, 85, 247, .3);
  border-radius: 16px;
  background: rgba(168, 85, 247, .08);
}

.select-all-pill,
.account-select,
.model-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.model-filter-control {
  min-width: min(280px, 100%);
}

.model-filter-control .form-select {
  min-width: 170px;
}

.account-select {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 999px;
  background: rgba(5, 9, 18, .72);
}

.account-card-top,
.account-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-card-top {
  justify-content: start;
}

.account-card-top img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.account-fallback-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(135deg, rgba(168, 85, 247, .3), rgba(255, 255, 255, .08));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
}

.account-card-top strong,
.account-card-top small {
  display: block;
}

.account-card-top small {
  color: var(--muted);
  font-size: 11px;
}

.account-identity-note {
  padding: 10px 12px;
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 14px;
  background: rgba(168, 85, 247, .08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-identity-note strong,
.account-identity-note span {
  display: block;
}

.account-identity-note strong {
  margin-bottom: 3px;
  color: #fff;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-stats span {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 12px;
}

.account-stats strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  align-items: start;
}

.chart-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 20, 33, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.chart-card.wide {
  grid-column: span 1;
}

.bar-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(38, 54, 83, .62);
}

.bar-row:first-of-type {
  border-top: 0;
}

.bar-row.compact {
  padding: 10px 0;
}

.bar-label,
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-label span,
.status-line span {
  color: #dce7fb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-label strong {
  color: #fff;
  white-space: nowrap;
}

.bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #07101d;
  border: 1px solid rgba(65, 88, 127, .7);
}

.bar-track span {
  display: block;
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  box-shadow: 0 0 18px var(--glow);
}

.bar-track.cyan span {
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-line {
  padding: 10px;
  border: 1px solid rgba(38, 54, 83, .75);
  border-radius: 14px;
  background: #080d16;
  color: var(--text);
  text-decoration: none;
}

.status-line img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.restriction-note {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(139, 92, 246, .1);
  color: #c084fc;
  font-size: 12px;
}

.single-rail {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.code-pill {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080d16;
  color: #b8cdf0;
  padding: 10px;
  font-size: 12px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .2), transparent 34rem),
    linear-gradient(180deg, rgba(13, 10, 22, .98), rgba(5, 5, 10, .98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}

.ops-copy h2 {
  margin: 8px 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: .94;
  letter-spacing: 0;
}

.ops-copy p {
  max-width: 760px;
  margin: 0;
  color: #b8c8e2;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ops-scoreboard {
  display: grid;
  gap: 10px;
}

.ops-scoreboard div {
  padding: 16px;
  border: 1px solid rgba(80, 111, 160, .52);
  border-radius: 18px;
  background: rgba(5, 10, 18, .58);
}

.ops-scoreboard span,
.command-card p {
  display: block;
  color: var(--muted);
}

.ops-scoreboard strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.command-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 14px;
  margin-bottom: 18px;
}

.command-card,
.leaderboard-panel,
.mini-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 20, 33, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.command-card {
  min-height: 180px;
  padding: 20px;
}

.command-card.primary-action {
  background:
    linear-gradient(135deg, rgba(192, 132, 252, .13), transparent 22rem),
    rgba(13, 20, 33, .9);
}

.big-number {
  margin: 10px 0 4px;
  color: #fff;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: .92;
}

.big-number.danger {
  color: #c084fc;
}

.mini-progress {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(65, 88, 127, .7);
  border-radius: 999px;
  background: #07101d;
}

.mini-progress span {
  display: block;
  min-width: 5px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 18px var(--glow);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  align-items: start;
}

.main-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.leaderboard-panel,
.mini-panel,
.ops-board {
  padding: 20px;
}

.ops-board {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 20, 33, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.ops-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.ops-account-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(38, 54, 83, .76);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .09), transparent 18rem),
    #080d16;
  color: var(--text);
  text-decoration: none;
}

.ops-account-card:hover {
  border-color: rgba(192, 132, 252, .72);
  box-shadow: 0 0 24px rgba(192, 132, 252, .08);
  color: #fff;
}

.ops-account-top {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ops-account-top img {
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(80, 111, 160, .55);
}

.ops-account-top strong,
.ops-account-top small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-account-top small {
  color: var(--muted);
  font-size: 12px;
}

.ops-account-top em {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(192, 132, 252, .1);
}

.ops-account-top em.bad {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, .1);
}

.ops-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-account-stats span {
  min-width: 0;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 11px;
}

.ops-account-stats strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.ops-next {
  display: block;
  min-height: 18px;
  color: #9eb2d0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.attention-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #080d16;
  color: var(--text);
  text-decoration: none;
}

.attention-card span {
  color: var(--muted);
  font-size: 12px;
}

.attention-card.danger {
  border-color: rgba(139, 92, 246, .36);
  background: rgba(139, 92, 246, .1);
}

.attention-card.ok {
  border-color: rgba(192, 132, 252, .32);
  background: rgba(192, 132, 252, .08);
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 16px;
  background: #080d16;
  color: var(--text);
  text-decoration: none;
}

.rank-row:hover {
  border-color: rgba(192, 132, 252, .8);
  box-shadow: 0 0 22px rgba(192, 132, 252, .08);
  color: #fff;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #13213a;
  color: #dcfce7;
  font-weight: 900;
}

.rank-row img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-metric {
  color: #d7e5fb;
  font-weight: 800;
  white-space: nowrap;
}

.insight-stack {
  display: grid;
  gap: 18px;
}

.smart-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.smart-list {
  display: grid;
  gap: 12px;
}

.smart-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 20, 33, .88);
}

.smart-card span {
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-card strong,
.smart-card p {
  display: block;
}

.smart-card strong {
  margin: 6px 0;
}

.smart-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.smart-card.danger {
  border-color: rgba(139, 92, 246, .36);
  background: rgba(139, 92, 246, .1);
}

.smart-card.ok {
  border-color: rgba(192, 132, 252, .32);
  background: rgba(192, 132, 252, .08);
}

.next-list {
  display: grid;
  gap: 10px;
}

.next-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 14px;
  background: #080d16;
  color: var(--text);
  text-decoration: none;
}

.next-row img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.next-row strong,
.next-row small {
  display: block;
}

.next-row small {
  color: var(--muted);
  font-size: 12px;
}

.quick-actions {
  display: grid;
  gap: 9px;
}

.quick-actions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(65, 88, 127, .8);
  border-radius: 12px;
  background: #080d16;
  color: #dce7fb;
  text-decoration: none;
  font-weight: 800;
}

.quick-actions a:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(192, 132, 252, .08);
  color: #fff;
}

.quick-actions.compact {
  margin-top: 14px;
}

.tools-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(192, 132, 252, .13), transparent 24rem),
    rgba(13, 20, 33, .9);
}

.tools-hero h2 {
  margin: 5px 0;
  font-size: clamp(30px, 4vw, 52px);
}

.tools-hero p {
  margin: 0;
  color: var(--muted);
}

.tools-health {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.iphone-install-hero {
  align-items: stretch;
}

.iphone-install-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-width: 240px;
  padding: 18px;
  border: 1px solid rgba(192, 132, 252, .34);
  border-radius: 20px;
  background: rgba(5, 10, 18, .72);
  text-align: center;
}

.iphone-install-card img {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
}

.iphone-install-card strong,
.iphone-install-card span {
  display: block;
}

.iphone-install-card span {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.iphone-steps .big-number {
  font-size: clamp(32px, 5vw, 48px);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.meta-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.tool-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 20, 33, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.tool-card h2 {
  margin: 6px 0;
}

.tool-card p {
  color: var(--muted);
}

[data-reel-only][hidden],
.preview-overlay[hidden] {
  display: none !important;
}

.quick-actions.compact form,
.quick-actions.compact form button {
  width: 100%;
}

.quick-actions.compact form button {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.compact-tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-smart-list {
  display: grid;
  gap: 10px;
}

.story-no-text-toggle {
  width: 100%;
}

.meta-copy-list {
  display: grid;
  gap: 10px;
}

.meta-copy-list div {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 14, .55);
  border: 1px solid rgba(65, 88, 127, .55);
}

.meta-copy-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.meta-copy-list code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--text);
  font-size: 14px;
}

.tutorial-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-flow .tool-card ul,
.plan-card ul {
  color: var(--muted);
}

.tutorial-flow .tool-card li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .compact-tool-grid,
  .tutorial-flow {
    grid-template-columns: 1fr;
  }
}

.api-result {
  margin-bottom: 18px;
}

.api-result pre {
  max-height: 380px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(65, 88, 127, .8);
  border-radius: 14px;
  background: #05070d;
  color: #dfffe9;
  padding: 14px;
  font-size: 12px;
  white-space: pre-wrap;
}

.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.diagnostic-list div {
  padding: 12px;
  border-radius: 14px;
  background: #080d16;
}

.diagnostic-list strong,
.diagnostic-list span {
  display: block;
}

.diagnostic-list strong {
  font-size: 26px;
}

.diagnostic-list span {
  color: var(--muted);
  font-size: 12px;
}

.story-list,
.story-board-grid,
.story-history-list {
  display: grid;
  gap: 10px;
}

.story-row,
.story-account-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 14px;
  background: #080d16;
  color: var(--text);
  text-decoration: none;
}

.story-row:hover,
.story-account-card:hover {
  border-color: var(--cyan);
  color: #fff;
}

.story-row img,
.story-account-card img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.story-row strong,
.story-row small,
.story-account-card strong,
.story-account-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-row small,
.story-account-card small {
  color: var(--muted);
  font-size: 11px;
}

.story-row em,
.story-account-card em {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .28), rgba(192, 132, 252, .18));
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.active-story-panel {
  border-color: rgba(192, 132, 252, .32);
  box-shadow: 0 0 34px rgba(168, 85, 247, .08);
}

.active-story-list {
  display: grid;
  gap: 12px;
}

.active-story-account {
  border: 1px solid rgba(80, 111, 160, .55);
  border-radius: 16px;
  background: rgba(8, 13, 22, .82);
  overflow: hidden;
}

.active-story-account summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
}

.active-story-account summary::-webkit-details-marker {
  display: none;
}

.active-story-account summary span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.active-story-account summary img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
}

.active-story-account summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-story-account summary em {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, .16);
  color: #eaffd0;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.active-story-grid {
  display: grid;
  gap: 10px;
  padding: 0 11px 11px;
}

.active-story-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(80, 111, 160, .45);
  border-radius: 14px;
  background: #050912;
}

.active-story-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, .35);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(168, 85, 247, .2), rgba(0, 0, 0, .64));
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.active-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active-story-card strong,
.active-story-card small {
  display: block;
}

.active-story-card small {
  color: var(--muted);
  font-size: 12px;
}

.active-story-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.active-story-actions span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.story-api-error {
  margin: 0 11px 11px;
  padding: 10px;
  border: 1px solid rgba(139, 92, 246, .4);
  border-radius: 12px;
  background: rgba(75, 12, 28, .42);
  color: #c084fc;
  font-size: 12px;
}

.story-board-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.stories-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.story-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 13, 22, .72);
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  gap: 10px;
}

.story-phone-preview {
  display: grid;
  place-items: center;
}

.preview-media {
  position: relative;
  width: 230px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(80, 111, 160, .72);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(168, 85, 247, .25), transparent 35%),
    linear-gradient(25deg, rgba(192, 132, 252, .2), transparent 45%),
    #05070d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
}

.preview-image,
.preview-video {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-image.visible,
.preview-video.visible {
  display: block;
}

.preview-media > span {
  position: absolute;
  top: 14px;
  left: 16px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.preview-overlay:active {
  cursor: grabbing;
}

.preview-overlay.top {
  top: 58px;
}

.preview-overlay.middle {
  top: 42%;
  transform: translateY(-50%);
}

.preview-overlay.bottom {
  bottom: 84px;
}

.preview-overlay.dark {
  background: rgba(0, 0, 0, .58);
}

.preview-overlay.light {
  background: rgba(255, 255, 255, .76);
}

.preview-overlay.none {
  background: transparent;
}

.preview-overlay strong {
  color: #fff;
  font-size: 1em;
  line-height: 1.05;
  font-family: "Segoe UI Emoji", Arial, sans-serif;
}

.preview-overlay.light strong,
.preview-overlay.light small {
  color: #05070d;
}

.range-readout {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.empty-command {
  display: grid;
  place-items: center;
  min-height: 360px;
  text-align: center;
}

.empty-command img {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
}

.empty-command p {
  max-width: 520px;
  color: var(--muted);
}

.btn-primary,
.btn-dark {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #06101e;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(192, 132, 252, .18);
}

.btn-primary:hover,
.btn-dark:hover {
  color: #06101e;
  filter: brightness(1.08);
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  border-color: #3a4f75;
  color: var(--text);
}

.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background: rgba(168, 85, 247, .16);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 18px rgba(192, 132, 252, .1);
}

.btn-outline-danger:hover {
  background: rgba(139, 92, 246, .18);
  border-color: var(--red);
  color: #fff;
}

.connection-badge,
.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, .32);
  background: rgba(192, 132, 252, .12);
  color: #f5d0fe;
  font-size: 12px;
  font-weight: 800;
}

.soft-badge {
  border-color: var(--line);
  background: #17243a;
  color: #c8d4e8;
}

.soft-badge.active {
  border-color: rgba(192, 132, 252, .32);
  background: rgba(192, 132, 252, .12);
  color: #f5d0fe;
}

.soft-badge.restricted {
  border-color: rgba(139, 92, 246, .34);
  background: rgba(139, 92, 246, .14);
  color: #c084fc;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(192, 132, 252, .14);
}

.status-dot.configured {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(168, 85, 247, .14);
}

.status-dot.pending {
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, .14);
}

.form-control,
.form-select {
  background-color: #080d16;
  border-color: var(--line);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  background-color: #080d16;
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 0 0 0 .2rem rgba(168, 85, 247, .18);
}

.form-control::file-selector-button {
  border: 0;
  background: #192740;
  color: var(--text);
}

.form-label {
  color: #dce7fb;
  font-size: 13px;
  font-weight: 700;
}

.form-check-input {
  background-color: #060a11;
  border-color: #41587f;
}

.input-group-text {
  border-color: var(--line);
  background: #192740;
  color: var(--muted);
}

.dropzone {
  border: 1px dashed #46628f;
  background: rgba(8, 13, 22, .7);
}

.dropzone.dragover {
  border-color: var(--cyan);
  background: rgba(168, 85, 247, .1);
}

.saved-list {
  display: grid;
  gap: 8px;
}

.saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #080d16;
}

.saved-item strong,
.saved-item small {
  display: block;
}

.saved-item small,
.text-secondary,
.meta-note {
  color: var(--muted) !important;
}

.mini-danger {
  border: 0;
  border-radius: 999px;
  background: rgba(139, 92, 246, .16);
  color: #c084fc;
  padding: 5px 9px;
  font-size: 12px;
}

.system-alert {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(139, 92, 246, .34);
  border-radius: 16px;
  background: rgba(139, 92, 246, .12);
  color: #c084fc;
  padding: 14px 16px;
}

.iphone-link-alert {
  border-color: rgba(192, 132, 252, .38);
  background: rgba(168, 85, 247, .1);
  color: #dcfce7;
}

.iphone-link-alert span,
.iphone-link-alert small {
  overflow-wrap: anywhere;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #050912;
}

.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1422;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.auth-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.auth-card h1 {
  margin: 6px 0 20px;
  color: #fff;
  font-size: 28px;
}

.iphone-link-alert small {
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 20;
  width: min(560px, calc(100vw - 32px));
}

.alert {
  border-radius: 14px;
  border-color: var(--line);
}

.alert-warning {
  background: #2d250f;
  color: #ffe8a3;
  border-color: #70591b;
}

.alert-success {
  background: #102b22;
  color: #a4f4d3;
  border-color: #236b50;
}

.alert-danger {
  background: #161226;
  color: #c084fc;
  border-color: #4c1d95;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .22), transparent 34rem),
    linear-gradient(25deg, rgba(192, 132, 252, .16), transparent 38rem),
    rgba(2, 2, 5, .9);
  backdrop-filter: blur(12px);
}

.welcome-overlay.visible {
  display: grid;
}

.welcome-overlay.closing {
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s ease;
}

.welcome-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(192, 132, 252, .38);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(17, 17, 29, .96), rgba(8, 8, 15, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 38px rgba(192, 132, 252, .14);
  text-align: center;
}

.welcome-logo {
  width: 72px;
  height: 72px;
}

.welcome-card h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  line-height: .98;
}

.welcome-card p {
  max-width: 390px;
  margin: 0 0 6px;
  color: #c9d6ec;
  font-size: 17px;
}

.welcome-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
  min-height: 46px;
}

.money-hint {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #f5e8ff;
  font-weight: 900;
  pointer-events: none;
}

.money-hint span {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(192, 132, 252, .28);
}

.money-hint strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(192, 132, 252, .45);
  border-radius: 50%;
  background: rgba(192, 132, 252, .14);
  font-size: 22px;
  line-height: 1;
  animation: bounceArrow 1s ease-in-out infinite;
}

.function-toast-card {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 1150;
  display: grid;
  gap: 4px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(192, 132, 252, .4);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .18), rgba(8, 13, 22, .96)),
    #080d16;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42), 0 0 28px rgba(192, 132, 252, .12);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -18px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.function-toast-card.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.function-toast-card strong {
  color: #f5e8ff;
  font-size: 15px;
  line-height: 1.28;
}

.notification-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(192, 132, 252, .45);
  border-radius: 999px;
  color: #f5e8ff;
  text-decoration: none;
  background: rgba(168, 85, 247, .12);
}

.notification-pill strong {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 70, 239, .25);
  font-size: 12px;
}

.notification-pill.has-unread {
  box-shadow: 0 0 28px rgba(217, 70, 239, .24);
}

.app-notification-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(380px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(192, 132, 252, .46);
  border-radius: 18px;
  background: rgba(12, 8, 20, .94);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42), 0 0 32px rgba(168, 85, 247, .2);
  color: var(--text);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.app-notification-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.app-notification-toast span {
  display: block;
  color: #f0abfc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.app-notification-toast strong {
  display: block;
  margin-top: 4px;
}

.notification-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.notification-row {
  padding: 14px 16px;
  border: 1px solid rgba(192, 132, 252, .24);
  border-radius: 16px;
  background: rgba(9, 9, 18, .76);
}

.notification-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.notification-row strong {
  display: block;
  margin-top: 4px;
  color: #fff;
}

.notification-row p {
  margin: 4px 0 0;
  color: #d8c9eb;
}

.notification-danger {
  border-color: rgba(139, 92, 246, .42);
  background: rgba(76, 15, 34, .28);
}

.auth-link {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-link a {
  color: #f0abfc;
  font-weight: 800;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  background: rgba(5, 7, 13, .76);
  backdrop-filter: blur(8px);
}

.loading-overlay.visible {
  display: grid;
}

.loading-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  text-align: center;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #223047;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.logs {
  max-height: 520px;
  overflow: auto;
  border-radius: 14px;
  background: #05070d;
  border: 1px solid var(--line);
  color: #d1d5db;
  padding: 14px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
  }

  .side-links {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .studio-grid,
  .stories-console,
  .story-editor,
  .dashboard-grid,
  .dashboard-layout,
  .command-grid,
  .tool-grid,
  .ops-hero,
  .studio-columns,
  .caption-workbench,
  .overview-strip,
  .account-workspace,
  .single-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    background:
      linear-gradient(180deg, rgba(168, 85, 247, .12), transparent 260px),
      var(--bg);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-app-bar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
    border-bottom: 1px solid rgba(65, 88, 127, .55);
    background: rgba(2, 4, 8, .88);
    backdrop-filter: blur(16px);
  }

  .mobile-menu-toggle {
    position: fixed;
    left: 12px;
    top: calc(13px + env(safe-area-inset-top));
    z-index: 120;
    display: grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(192, 132, 252, .34);
    border-radius: 14px;
    background: rgba(8, 13, 22, .94);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
  }

  .mobile-menu-toggle span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #dcfce7;
  }

  .mobile-app-bar {
    padding-left: 64px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
  }

  .mobile-brand img {
    width: 38px;
    height: 38px;
  }

  .mobile-brand strong,
  .mobile-brand small {
    display: block;
  }

  .mobile-brand small {
    color: var(--muted);
    font-size: 11px;
  }

  .mobile-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(192, 132, 252, .34);
    border-radius: 999px;
    background: rgba(168, 85, 247, .1);
    color: #dcfce7;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-status.ok {
    color: #a4f4d3;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    background: rgba(0, 0, 0, .48);
    backdrop-filter: blur(3px);
  }

  .mobile-menu-backdrop[hidden] {
    display: none;
  }

  .mobile-menu-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
    width: min(320px, 86vw);
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
    border-right: 1px solid rgba(65, 88, 127, .7);
    background: rgba(5, 9, 16, .98);
    box-shadow: 18px 0 60px rgba(0, 0, 0, .45);
    transform: translateX(-104%);
    transition: transform .22s ease;
  }

  .mobile-menu-open .mobile-menu-drawer {
    transform: translateX(0);
  }

  .mobile-menu-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
  }

  .mobile-menu-head img {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-head strong,
  .mobile-menu-head small {
    display: block;
  }

  .mobile-menu-head small {
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-menu-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(65, 88, 127, .7);
    border-radius: 12px;
    background: rgba(8, 13, 22, .9);
    color: #fff;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-menu-links {
    display: grid;
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding-bottom: 18px;
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(65, 88, 127, .5);
    border-radius: 14px;
    background: #080d16;
    color: #dce7fb;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-menu-links a.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, .28), rgba(192, 132, 252, .18));
    color: #fff;
  }

  .side-nav {
    display: none;
  }

  .main-shell {
    min-width: 0;
  }

  .top-bar {
    position: static;
    padding: 14px 16px 10px;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
  }

  .top-bar h1 {
    font-size: 24px;
  }

  .top-actions {
    display: none;
  }

  .content-wrap,
  .top-bar {
    padding: 16px;
  }

  .account-hero {
    align-items: start;
    flex-direction: column;
  }

  .account-actions {
    justify-content: start;
  }

  .tools-hero {
    align-items: start;
    flex-direction: column;
  }

  .iphone-install-card {
    width: 100%;
  }

  .tools-health {
    justify-content: start;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 30px 40px minmax(0, 1fr);
  }

  .rank-metric,
  .rank-row .soft-badge {
    grid-column: 3;
  }

  .web-dashboard .ops-hero,
  .web-dashboard .smart-strip,
  .web-dashboard .command-grid,
  .web-dashboard .dashboard-layout {
    display: none;
  }

  .web-dashboard .mobile-home {
    display: grid;
    gap: 14px;
  }

  .mobile-hero-card {
    padding: 18px;
    border: 1px solid rgba(192, 132, 252, .34);
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(168, 85, 247, .22), transparent 20rem),
      rgba(8, 13, 22, .9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  }

  .mobile-hero-card h2 {
    margin: 6px 0;
    font-size: clamp(38px, 13vw, 56px);
    line-height: .95;
  }

  .mobile-hero-card p {
    margin: 0;
    color: var(--muted);
  }

  .mobile-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-action {
    display: grid;
    align-content: center;
    position: relative;
    z-index: 1;
    min-height: 104px;
    padding: 14px;
    border: 1px solid rgba(65, 88, 127, .72);
    border-radius: 20px;
    background: #080d16;
    color: var(--text);
    text-decoration: none;
  }

  .mobile-action.primary {
    grid-column: span 2;
    min-height: 116px;
    background: linear-gradient(135deg, rgba(168, 85, 247, .34), rgba(192, 132, 252, .16));
  }

  .mobile-action strong,
  .mobile-action span {
    display: block;
  }

  .mobile-action strong {
    font-size: 20px;
  }

  .mobile-action span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-metric-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-metric-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(65, 88, 127, .66);
    border-radius: 16px;
    background: rgba(8, 13, 22, .82);
  }

  .mobile-metric-list span {
    color: var(--muted);
  }

  .mobile-metric-list strong {
    color: #fff;
    font-size: 22px;
  }

  .mobile-model-list {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 13, 22, .72);
  }

  .mobile-model-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(65, 88, 127, .66);
    border-radius: 15px;
    background: #080d16;
    color: var(--text);
    text-decoration: none;
  }

  .mobile-model-list strong,
  .mobile-model-list span {
    display: block;
  }

  .mobile-model-list span {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
  }

  .mobile-feed {
    display: grid;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 13, 22, .72);
  }

  .model-group-head,
  .model-picker-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-group-stats {
    justify-content: flex-start;
  }

  .model-edit-form .input-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .model-edit-form .input-group .btn,
  .model-edit-form .input-group .form-control {
    width: 100%;
    border-radius: 10px !important;
  }

  .bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .model-filter-control {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .model-filter-control .form-select {
    width: 100%;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    top: calc(68px + env(safe-area-inset-top));
    width: auto;
  }
}

/* Murphy Nebula final override */
:root {
  --bg: #030208;
  --nav: #07030f;
  --panel: rgba(12, 9, 24, .88);
  --panel-2: rgba(19, 12, 36, .92);
  --panel-3: rgba(31, 16, 55, .88);
  --line: rgba(192, 132, 252, .22);
  --text: #fbf7ff;
  --muted: #bca9d4;
  --blue: #a855f7;
  --cyan: #3b82f6;
  --purple: #7c3aed;
  --pink: #f0abfc;
  --glow: rgba(168, 85, 247, .35);
  --green: #c084fc;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 85, 247, .26), transparent 32rem),
    radial-gradient(circle at 84% 8%, rgba(217, 70, 239, .18), transparent 34rem),
    radial-gradient(circle at 62% 72%, rgba(88, 28, 135, .28), transparent 44rem),
    linear-gradient(180deg, #05030b 0%, #020106 52%, #06020d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 74%);
}

.diamond-rain { z-index: 3; }
.diamond-rain span {
  opacity: .22;
  border-color: rgba(255, 255, 255, .34);
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(217, 70, 239, .2));
  box-shadow: 0 0 20px rgba(217, 70, 239, .32);
}

.app-shell { grid-template-columns: 292px minmax(0, 1fr); }
.side-nav {
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(14, 7, 28, .96), rgba(4, 3, 9, .94)), rgba(5, 4, 12, .95);
  border-right: 1px solid rgba(192, 132, 252, .18);
  box-shadow: 18px 0 70px rgba(0, 0, 0, .38);
}
.brand-block {
  padding: 10px;
  border: 1px solid rgba(240, 171, 252, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .18), rgba(255,255,255,.035));
}
.brand-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 18px rgba(217, 70, 239, .32));
}
.brand-block strong { font-size: 18px; }
.brand-block small { color: #d8c5ee; }
.side-links { gap: 7px; }
.side-links a {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 46px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #d8cee9;
  font-weight: 760;
  letter-spacing: 0;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.side-links a::before {
  content: "";
  position: absolute;
  left: 17px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(240, 171, 252, .52);
  border-radius: 4px;
  transform: rotate(45deg);
  background: rgba(168, 85, 247, .18);
  box-shadow: 0 0 14px rgba(217, 70, 239, .18);
}
.side-links a:hover,
.side-links a.active {
  transform: translateX(3px);
  border-color: rgba(240, 171, 252, .34);
  background: linear-gradient(135deg, rgba(168, 85, 247, .24), rgba(217, 70, 239, .1)), rgba(255,255,255,.035);
  box-shadow: inset 3px 0 0 #3b82f6, 0 16px 36px rgba(0, 0, 0, .18), 0 0 26px rgba(168, 85, 247, .12);
  color: #fff;
}
.side-status {
  border-color: rgba(240, 171, 252, .26);
  border-radius: 22px;
  background: radial-gradient(circle at 16% 18%, rgba(217, 70, 239, .22), transparent 8rem), linear-gradient(180deg, rgba(23, 12, 43, .96), rgba(9, 6, 18, .96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
.top-bar {
  min-height: 104px;
  padding: 24px 32px;
  background: linear-gradient(180deg, rgba(8, 5, 17, .9), rgba(8, 5, 17, .66)), rgba(5, 4, 11, .72);
  border-bottom: 1px solid rgba(192, 132, 252, .2);
  backdrop-filter: blur(22px);
}
.top-bar h1 {
  margin-top: 4px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 850;
}
.page-kicker,
.eyebrow {
  color: #3b82f6;
  letter-spacing: .12em;
}
.content-wrap { padding: 30px; }
.btn {
  border-radius: 13px;
  font-weight: 850;
}
.btn-primary {
  border: 0;
  color: #10051a;
  background: linear-gradient(135deg, #f0abfc, #d946ef 48%, #8b5cf6);
  box-shadow: 0 16px 36px rgba(168, 85, 247, .28), inset 0 1px 0 rgba(255,255,255,.36);
}
.btn-primary:hover {
  color: #10051a;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(168, 85, 247, .38), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary {
  border-color: rgba(240, 171, 252, .32);
  color: #f5d0fe;
  background: rgba(255,255,255,.025);
}
.connection-badge,
.notification-pill,
.soft-badge {
  border-color: rgba(240, 171, 252, .3);
  background: rgba(168, 85, 247, .14);
  color: #f5d0fe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.ops-hero,
.mobile-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 171, 252, .22);
  border-radius: 32px;
  background: radial-gradient(circle at 18% 16%, rgba(240, 171, 252, .28), transparent 14rem), radial-gradient(circle at 75% 22%, rgba(124, 58, 237, .32), transparent 18rem), linear-gradient(135deg, rgba(31, 14, 58, .92), rgba(6, 5, 13, .96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.08);
}
.ops-hero::after,
.mobile-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(240, 171, 252, .16);
  border-radius: 42px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(217, 70, 239, .16), transparent);
  pointer-events: none;
}
.ops-copy,
.ops-scoreboard { position: relative; z-index: 1; }
.ops-copy h2 {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 900;
  line-height: .88;
}
.ops-copy p {
  max-width: 760px;
  color: #dfd1f0;
  font-size: 18px;
}
.ops-scoreboard div,
.metric-tile,
.command-card,
.leaderboard-panel,
.ops-board,
.mini-panel,
.smart-card,
.control-deck,
.accounts-board,
.empty-command,
.panel,
.table-wrap,
.studio-card,
.rail-card,
.account-hero {
  border: 1px solid rgba(192, 132, 252, .2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 11, 34, .84), rgba(8, 6, 17, .9)), rgba(7, 5, 14, .86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.055);
}
.ops-scoreboard div { padding: 20px; }
.ops-scoreboard span,
.metric-tile span,
.metric-tile small,
.command-card p,
.deck-head small,
.studio-head p,
.rail-card p { color: var(--muted); }
.ops-scoreboard strong,
.metric-tile strong,
.big-number {
  color: #fff;
  text-shadow: 0 0 24px rgba(217, 70, 239, .18);
}
.command-card.primary-action,
.metric-tile.primary {
  background: radial-gradient(circle at 14% 16%, rgba(240, 171, 252, .24), transparent 10rem), linear-gradient(135deg, rgba(88, 28, 135, .92), rgba(14, 8, 27, .94));
}
.rank-row,
.next-row,
.ops-account-card,
.mobile-action,
.mobile-model-list a,
.quick-actions a,
.account-row-card,
.queue-account-card,
.caption-set-card,
.audio-card,
.notification-row {
  border: 1px solid rgba(192, 132, 252, .16);
  background: linear-gradient(180deg, rgba(16, 10, 31, .92), rgba(7, 5, 14, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rank-row:hover,
.next-row:hover,
.ops-account-card:hover,
.mobile-action:hover,
.mobile-model-list a:hover,
.quick-actions a:hover,
.account-row-card:hover,
.queue-account-card:hover,
.caption-set-card:hover,
.audio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 171, 252, .36);
  box-shadow: 0 18px 44px rgba(0,0,0,.26), 0 0 30px rgba(168,85,247,.12);
}
.form-control,
.form-select,
textarea.form-control,
input[type="file"] {
  border-color: rgba(192, 132, 252, .22);
  border-radius: 14px;
  background-color: rgba(4, 4, 12, .84);
  color: #fff;
}
.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 .22rem rgba(217, 70, 239, .18);
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #f8f1ff;
  --bs-table-border-color: rgba(192, 132, 252, .14);
}
.table thead th {
  color: #e9d5ff;
  background: rgba(168, 85, 247, .12);
}
.app-notification-toast,
.function-toast-card,
.welcome-card,
.auth-card {
  border-color: rgba(240, 171, 252, .24);
  background: radial-gradient(circle at 20% 10%, rgba(217, 70, 239, .2), transparent 16rem), linear-gradient(180deg, rgba(17, 10, 32, .96), rgba(6, 5, 13, .96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .46), 0 0 50px rgba(168, 85, 247, .18);
}
.auth-logo,
.welcome-logo { filter: drop-shadow(0 0 24px rgba(217, 70, 239, .34)); }

@media (max-width: 700px) {
  body {
    background: radial-gradient(circle at 10% 0%, rgba(217, 70, 239, .22), transparent 22rem), radial-gradient(circle at 90% 12%, rgba(124, 58, 237, .2), transparent 24rem), #030208;
  }
  .mobile-app-bar {
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 50;
    display: flex;
    border: 1px solid rgba(240, 171, 252, .2);
    border-radius: 22px;
    background: rgba(8, 5, 17, .78);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
  }
  .mobile-menu-toggle {
    top: 86px;
    right: 14px;
    z-index: 56;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border-color: rgba(240, 171, 252, .22);
    background: linear-gradient(135deg, rgba(168, 85, 247, .38), rgba(9, 7, 18, .9));
    box-shadow: 0 16px 44px rgba(0,0,0,.34);
  }
  .mobile-menu-drawer {
    border-color: rgba(240, 171, 252, .18);
    background: radial-gradient(circle at 20% 0%, rgba(217, 70, 239, .18), transparent 18rem), rgba(5, 4, 12, .96);
  }
  .mobile-menu-links a {
    border-color: rgba(192, 132, 252, .18);
    border-radius: 18px;
    background: rgba(15, 10, 29, .9);
  }
  .mobile-menu-links a.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, .32), rgba(217, 70, 239, .14));
  }
  .top-bar {
    margin-top: 78px;
    padding: 18px 16px 8px;
  }
  .top-bar h1 { font-size: 30px; }
  .content-wrap,
  .top-bar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .mobile-home { gap: 16px; }
  .mobile-hero-card {
    min-height: 190px;
    padding: 22px;
    border-radius: 28px;
  }
  .mobile-hero-card h2 { font-size: clamp(48px, 16vw, 72px); }
  .mobile-action {
    min-height: 112px;
    border-radius: 24px;
    background: radial-gradient(circle at 18% 18%, rgba(217, 70, 239, .14), transparent 8rem), rgba(12, 8, 24, .9);
  }
  .mobile-action.primary { min-height: 132px; }
  .mobile-metric-list div,
  .mobile-model-list,
  .mobile-feed {
    border-radius: 22px;
    background: rgba(12, 8, 24, .82);
  }
  .diamond-rain span { opacity: .18; }
}



