/* EnlyAI Admin Dark — 深蓝后台风，对照参考控制台 */

:root {
  --bg-base: #070b16;
  --bg-surface: #0d1424;
  --bg-elevated: #121a2e;
  --bg-secondary: #182236;
  --bg-tertiary: #1e2a42;
  --bg-glass: rgba(18, 26, 46, 0.88);
  --bg-glass-heavy: rgba(13, 20, 36, 0.94);
  --bg-vibrant: rgba(59, 108, 255, 0.12);
  --bg-default: var(--bg-elevated);
  --bg-hover: rgba(59, 108, 255, 0.1);
  --bg-main: #0b1220;

  --color-primary: #3b6cff;
  --color-primary-hover: #5480ff;
  --color-primary-active: #2f5ce6;
  --color-primary-light: rgba(59, 108, 255, 0.18);
  --color-primary-vibrant: rgba(59, 108, 255, 0.28);
  --accent-primary: #3b6cff;
  --accent-secondary: #6d7bff;
  --accent-tertiary: #3ee0ff;
  --gradient-primary: linear-gradient(135deg, #3b6cff 0%, #6d7bff 100%);
  --gradient-cyan: linear-gradient(135deg, #1a4dff 0%, #3ee0ff 100%);
  --gradient-glow: radial-gradient(ellipse at top, rgba(59, 108, 255, 0.22), transparent 60%);

  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #f43f5e;
  --color-btn-dark: #3b6cff;
  --color-btn-dark-hover: #5480ff;
  --color-info: #38bdf8;
  --color-skipped: #64748b;

  --state-success: #22c55e;
  --state-success-light: rgba(34, 197, 94, 0.16);
  --state-warning: #f59e0b;
  --state-warning-light: rgba(245, 158, 11, 0.16);
  --state-error: #f43f5e;
  --state-error-light: rgba(244, 63, 94, 0.16);
  --state-info: #38bdf8;
  --state-info-light: rgba(56, 189, 248, 0.16);

  --text-primary: #ffffff;
  --text-secondary: #d5e2f7;
  --text-tertiary: #b7c7e0;
  --text-quaternary: rgba(255, 255, 255, 0.55);
  --text-muted: #c2d0e8;
  --text-inverse: #070b16;
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --separator: rgba(255, 255, 255, 0.08);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.42);
  --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.48);
  --shadow-glow: 0 0 24px rgba(59, 108, 255, 0.28);

  --sidebar-width: 232px;
  --topbar-height: 56px;
  --content-max-width: 1440px;

  --lg-blur: 24px;
  --lg-blur-heavy: 32px;
  --lg-opacity: 0.72;
  --lg-opacity-hover: 0.82;
  --lg-edge-highlight: rgba(255, 255, 255, 0.12);
  --lg-edge-highlight-soft: rgba(255, 255, 255, 0.06);
  --lg-shadow-ambient: 0 8px 24px rgba(0, 0, 0, 0.28);
  --lg-shadow-float: 0 12px 32px rgba(0, 0, 0, 0.36);
  --lg-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html, body {
  background: #070b16;
  color: var(--text-primary);
}

body::before {
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(59, 108, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 8%, rgba(62, 224, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 70% 100%, rgba(109, 123, 255, 0.12), transparent 55%),
    #070b16;
}

body::after {
  opacity: 0.18;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.app-layout {
  background: #070b16;
}

.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0b1220;
}

.desktop-topbar {
  height: var(--topbar-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #0d1424;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-collapse {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-collapse:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.topbar-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.topbar-version {
  font-size: 11px;
  font-weight: 600;
  color: #8eb0ff;
  background: rgba(59, 108, 255, 0.18);
  border: 1px solid rgba(59, 108, 255, 0.28);
  border-radius: 6px;
  padding: 2px 8px;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.topbar-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.topbar-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  cursor: default;
}
.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b6cff, #3ee0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sidebar {
  width: var(--sidebar-width);
  background: #0a1222;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: width 0.2s ease;
}
.sidebar.collapsed {
  width: 84px;
}
.sidebar.collapsed .nav-item span:not(.nav-icon),
.sidebar.collapsed .status-indicator span,
.sidebar.collapsed .logo-text {
  display: none;
}
.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 10px;
}
.sidebar.collapsed .sidebar-header {
  padding: 18px 8px;
}

.sidebar-header {
  padding: 22px 16px 18px;
  border-bottom: none;
  background: transparent;
  display: flex;
  justify-content: center;
}

.logo {
  flex-direction: column;
  gap: 0;
}

.logo-icon,
.logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #4c7fff 0%, #1d4ed8 55%, #12307a 100%);
  box-shadow:
    0 0 0 8px rgba(59, 108, 255, 0.12),
    0 12px 28px rgba(37, 99, 235, 0.35);
  color: #fff;
  font-size: 32px;
}
.logo-icon::after,
.logo-mark::after {
  display: none;
}
.logo-text {
  display: none;
}

.sidebar-nav {
  padding: 8px 14px 12px;
}

.nav-item {
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 12px;
  color: #dbe6f8;
  font-size: 14px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transform: none;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #d7e3f7;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.nav-item.active {
  background: linear-gradient(90deg, #3b6cff 0%, #4f7dff 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(59, 108, 255, 0.32);
  border-color: transparent;
}
.nav-item.active::before,
.nav-item.active::after {
  display: none;
}

.nav-item.nav-exit {
  color: #f87171;
}
.nav-item.nav-exit:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}

.sidebar-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-indicator {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.main-content {
  background: transparent;
}

.page {
  max-width: none;
  padding: 18px 22px 28px;
}

.page-title,
.hero-title,
.section-title,
.card-title {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: unset;
}

.hero-title {
  font-size: 30px;
  font-weight: 720;
  letter-spacing: 0.01em;
  color: #fff;
}

.card,
.wizard-panel,
.modal,
.modal-content,
.modal-body,
.toast,
.progress-modal {
  background: #121a2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--text-primary);
}
.card::before,
.card::after {
  display: none;
}
.card:hover {
  background: #151f36;
  border-color: rgba(59, 108, 255, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  transform: none;
}

.card-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.card-title-icon {
  background: rgba(59, 108, 255, 0.16);
  color: #8eb0ff;
  box-shadow: none;
}
.card-title-icon::after {
  display: none;
}

.form-input,
.form-textarea,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #3b6cff;
  background: #101b30;
  box-shadow: 0 0 0 3px rgba(59, 108, 255, 0.22);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9bb4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  border-radius: 10px;
  box-shadow: none;
}
.btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-ghost::before {
  display: none;
}
.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-primary:hover {
  transform: none;
}

.btn-primary {
  background: #3b6cff;
  border: none;
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 108, 255, 0.32);
}
.btn-primary:hover {
  background: #5480ff;
  box-shadow: 0 10px 22px rgba(59, 108, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn-ghost {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-hero {
  background:
    radial-gradient(ellipse 55% 90% at 88% 50%, rgba(62, 224, 255, 0.16), transparent 55%),
    linear-gradient(90deg, #101c38 0%, #0d1730 55%, #10244a 100%);
  border: 1px solid rgba(59, 108, 255, 0.18);
  border-radius: 18px;
  padding: 28px 32px;
  min-height: 168px;
  margin-bottom: 16px;
  backdrop-filter: none;
}
.dashboard-hero::before {
  display: none;
}
.hero-subtitle {
  color: #dbe6f8;
  margin: 0 0 18px;
  font-size: 14px;
}
.hero-decoration {
  width: 280px;
  height: 140px;
}
.hero-orb {
  background: #2563eb;
  opacity: 0.35;
  filter: blur(36px);
}
.hero-icon-big {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #60a5fa, #1d4ed8 70%);
  box-shadow: 0 0 0 10px rgba(59, 108, 255, 0.12), 0 12px 28px rgba(37, 99, 235, 0.4);
  color: #fff;
}
.hero-icon-big::after {
  display: none;
}

.hero-float-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-float {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(18, 32, 64, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.hero-float:nth-child(1) { top: 8px; right: 18px; }
.hero-float:nth-child(2) { top: 52px; right: 78px; }
.hero-float:nth-child(3) { bottom: 10px; right: 28px; }
.hero-float:nth-child(4) { bottom: 28px; right: 110px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #121a2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.kpi-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.kpi-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.kpi-icon.orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.kpi-icon.purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.kpi-meta { min-width: 0; }
.kpi-label {
  font-size: 12px;
  color: #d5e2f7;
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 24px;
  font-weight: 720;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi-hint {
  font-size: 11px;
  color: #c2d0e8;
  margin-top: 4px;
}
.kpi-hint.up { color: #22c55e; }
.kpi-hint.down { color: #f43f5e; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.95fr;
  gap: 14px;
  margin-bottom: 16px;
}
.dash-panel {
  background: #121a2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 18px;
  min-height: 280px;
}
.dash-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: #e8eefc;
  margin-bottom: 14px;
}
.dash-panel-title svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-item {
  background: #0e172b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 8px 14px;
  text-align: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}
.quick-item:hover {
  background: #132038;
  border-color: rgba(59, 108, 255, 0.35);
}
.quick-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.quick-icon.wechat { background: #22c55e; }
.quick-icon.qq { background: #38bdf8; }
.quick-icon.mp { background: #4ade80; }
.quick-icon.tg { background: #60a5fa; }
.quick-icon.heart { background: #f43f5e; }
.quick-icon.book { background: #3b82f6; }
.quick-icon.help { background: #8b5cf6; }
.quick-icon.update { background: #6366f1; }
.quick-name {
  font-size: 13px;
  font-weight: 600;
}
.quick-desc {
  font-size: 11px;
  color: #c2d0e8;
  margin-top: 2px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #eef3fb;
}
.status-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-row-left svg {
  width: 15px;
  height: 15px;
  color: #22c55e;
}
.status-pill {
  font-size: 12px;
  color: #22c55e;
}
.status-pill.warn { color: #f59e0b; }
.status-pill.err { color: #f43f5e; }

.chart-placeholder {
  height: 150px;
  position: relative;
}
.chart-placeholder svg {
  width: 100%;
  height: 120px;
  display: block;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #d5e2f7;
  margin-top: 8px;
}
.chart-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dash-bottom {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 14px;
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.record-table th {
  text-align: left;
  color: #d5e2f7;
  font-weight: 500;
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.record-table td {
  padding: 12px 10px;
  color: #f4f7fc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.record-table tr:last-child td {
  border-bottom: none;
}
.record-empty {
  text-align: center;
  color: #c2d0e8;
  padding: 28px 8px;
}

.badge-success,
.badge.badge-success {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-error,
.badge.badge-error {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
}
.badge-info,
.badge.badge-info {
  background: rgba(59, 108, 255, 0.16);
  color: #93c5fd;
}
.badge-warning,
.badge.badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.notice-item:last-child {
  border-bottom: none;
}
.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.notice-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e8eefc;
}
.notice-time {
  font-size: 11px;
  color: #c2d0e8;
  white-space: nowrap;
}
.notice-body {
  font-size: 12px;
  color: #d5e2f7;
  line-height: 1.6;
}
.notice-more {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  color: #7aa2ff;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}

.scene-card,
.recent-card,
.template-card,
.avatar-card,
.voice-card,
.preset-avatar-card,
.preset-voice-card {
  background: #121a2e;
  border-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: none;
}
.scene-card:hover,
.recent-card:hover,
.template-card:hover {
  border-color: rgba(59, 108, 255, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.scene-card-icon,
.template-card-icon {
  background: rgba(59, 108, 255, 0.16);
  box-shadow: none;
  color: #93c5fd;
}
.scene-card-icon::after,
.template-card-icon::after {
  display: none;
}

.wizard-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}
.wizard-stepper {
  background: #121a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.wizard-step {
  color: #d7e3f7;
}
.wizard-step-text {
  color: #c5d4ec;
  font-weight: 600;
}
.wizard-step.active .wizard-step-text,
.wizard-step.completed .wizard-step-text,
.wizard-step.done .wizard-step-text {
  color: #ffffff;
}
.wizard-step.active,
.wizard-step.done,
.wizard-step.completed {
  color: #ffffff;
}
.wizard-step.active .wizard-step-circle,
.wizard-step.done .wizard-step-circle {
  background: #3b6cff;
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 108, 255, 0.45);
}
.wizard-step-circle {
  background: #243352;
  color: #e8eefc;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.wizard-step-line {
  background: rgba(197, 212, 236, 0.28);
}
.sub-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.sub-tab {
  color: #d5e2f7;
}
.sub-tab.active {
  color: #fff;
  border-bottom-color: #3b6cff;
}
.settings-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-tab {
  color: #d5e2f7;
}
.settings-tab.active {
  color: #fff;
  border-bottom-color: #3b6cff;
}
.progress-modal-overlay {
  background: rgba(4, 8, 18, 0.72);
}
.hint {
  color: #c2d0e8;
}

.summary-card-title,
.card-title,
.section-title,
.page-title {
  color: #ffffff;
}
.summary-card-title svg,
.card-title svg,
.card-title-icon,
.card-title-icon svg {
  color: #ffffff;
  stroke: #ffffff;
}
.summary-card-row .key {
  color: #c2d0e8;
}
.summary-card-row .val {
  color: #ffffff;
}

.subtitle-style-card,
.cover-style-card,
.btn-card,
.template-card,
.avatar-card,
.voice-card,
.preset-avatar-card,
.preset-voice-card,
.scene-template-card {
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.subtitle-style-card:hover,
.cover-style-card:hover,
.btn-card:hover,
.template-card:hover,
.avatar-card:hover,
.voice-card:hover,
.preset-avatar-card:hover,
.preset-voice-card:hover,
.scene-template-card:hover {
  border-color: rgba(91, 140, 255, 0.7);
}
.subtitle-style-card.active,
.cover-style-card.active,
.btn-card.active,
.template-card.active,
.template-card.selected,
.avatar-card.active,
.avatar-card.selected,
.voice-card.active,
.voice-card.selected,
.preset-avatar-card.active,
.preset-avatar-card.selected,
.preset-voice-card.active,
.preset-voice-card.selected,
.scene-template-card.active,
.scene-template-card.selected {
  border-color: #5b8cff !important;
  box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.45), 0 8px 18px rgba(59, 108, 255, 0.28) !important;
  background: rgba(59, 108, 255, 0.12);
}
.template-card.selected::before,
.template-card.active::before {
  background: #5b8cff;
  opacity: 1;
}
.avatar-card.selected::after,
.voice-card.selected::after {
  background: #3b6cff;
}
#page-settings-publish [style*="background:#fff8e1"] {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  color: #fbbf24 !important;
}

.mobile-topbar,
.bottom-nav {
  background: #0d1424;
  border-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}
.mobile-logo span,
.bottom-nav-item.active {
  color: #93c5fd;
}
.mobile-quick-create {
  background: #3b6cff;
}
.menu-toggle span {
  background: #e8eefc;
}

.empty-state,
.empty-state-icon {
  color: #c2d0e8;
}

@media (max-width: 1280px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-grid .dash-panel:last-child {
    grid-column: 1 / -1;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .desktop-topbar { display: none; }
  .workspace { height: auto; }
  .dash-grid,
  .dash-bottom,
  .quick-grid,
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .desktop-topbar { display: none; }
  .kpi-grid,
  .quick-grid,
  .dash-grid,
  .dash-bottom,
  .scene-card-grid {
    grid-template-columns: 1fr;
  }
  .hero-decoration { display: none; }
  .sidebar-header { justify-content: flex-start; padding-left: 22px; }
  .logo-text {
    display: block;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    margin-left: 10px;
  }
  .logo { flex-direction: row; align-items: center; }
  .logo-icon, .logo-mark { width: 42px; height: 42px; font-size: 20px; }
}
