/* AUTO-GENERATED BUNDLE: DO NOT EDIT DIRECTLY. Source modules in core/omni/static/app/css/. Run core/omni/static/app/build_all.py */

/* ==========================================================================
   Aleph Omni v27.4 — Linear & Notion High-Craft Design System
   8pt/4pt Spatial Grid • Zero-Shadow Clean Geometry • WCAG AAA Contrast
   ========================================================================== */

/* Custom Apple Liquid Glass Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

:root {
  /* Surfaces & Backgrounds */
  --bg-app: #07090e;
  --bg-rail: #0b101b;
  --bg-surface: #0f172a;
  --bg-card: #162033;
  --bg-card-hover: #1c2942;
  --bg-input: #0b1120;
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-popover: #131b2e;

  /* Apple Liquid Glass Surface Ladder (macOS Sonoma / visionOS HIG) */
  --material-thin: rgba(15, 23, 42, 0.45);
  --material-regular: rgba(15, 23, 42, 0.65);
  --material-thick: rgba(15, 23, 42, 0.85);

  /* Dual-Plate Scrim for Media Contrast (WCAG 2.2 AAA >= 7.8:1) */
  --scrim-bg: rgba(10, 15, 29, 0.84);
  --scrim-bg-light: rgba(248, 250, 252, 0.94);

  /* Specular Hairline Borders & Optical Vibrancy */
  --glass-border-specular: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --glass-border-specular-top: 1px solid rgba(255, 255, 255, 0.12);
  --glass-border-specular-left: 1px solid rgba(255, 255, 255, 0.08);
  --glass-vibrancy-primary: rgba(255, 255, 255, 0.96);
  --glass-vibrancy-secondary: rgba(255, 255, 255, 0.68);
  --glass-vibrancy-tertiary: rgba(255, 255, 255, 0.45);

  /* Borders & Dividers */
  --border-subtle: #1e293b;
  --border-card: #27354f;
  --border-hover: #3b4d70;
  --border-focus: #00e5ff;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #94a3b8;
  --text-faint: #475569;

  /* Accents & Brand Palette (Google Stitch Cyber-Obsidian) */
  --accent-primary: #00e5ff;
  --accent-primary-hover: #00daf3;
  --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #10b981 100%);
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-purple: #00e5ff;
  --accent-cyan: #00e5ff;
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.12);
  --accent-rose: #ef4444;
  --accent-rose-soft: rgba(239, 68, 68, 0.12);
  --accent-avito: #ff6161;
  --accent-wa: #10b981;
  --accent-tg: #00e5ff;
  --accent-linear: #00e5ff;

  /* Geometry & Spacing (4pt/8pt Grid) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Shadows (Subtle, strictly layered) */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-card);
}

/* Low-Spec Hardware Mode (Safe 60/120 FPS on Intel UHD/Iris) */
body.low-spec-mode .main-sidebar,
body.low-spec-mode .chats-sidebar,
body.low-spec-mode .right-panel,
body.low-spec-mode .modal-sheet,
body.low-spec-mode .floating-composer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.low-spec-mode .main-sidebar { background: #0b101b !important; }
body.low-spec-mode .chats-sidebar { background: #0f172a !important; }
body.low-spec-mode .right-panel { background: #0f172a !important; }

/* Light Theme Variables */
body.theme-light {
  --bg-app: #f1f5f9;
  --bg-rail: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --bg-subtle: rgba(0, 0, 0, 0.03);
  --bg-popover: #ffffff;

  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;
  --border-hover: #94a3b8;
  --border-focus: #00e5ff;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body.omni-body {
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}

/* Main Outer Layout: App Rail (90px) + Full Workspace */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* AUTO-GENERATED BY generate_tailwind_fallback.py — DO NOT EDIT DIRECTLY */
/* Tailwind CSS Preflight Reset (Offline Self-Contained) */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #1e293b;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none;
}
/* ==========================================================================
   APP RAIL (.main-sidebar, 72px / Linear Micro-Nav with Specular Glass)
   ========================================================================== */
.main-sidebar {
  width: 72px;
  min-width: 72px;
  height: 100vh;
  background: var(--material-regular);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--glass-border-specular);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  user-select: none;
  z-index: 50;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-sidebar.expanded {
  width: 220px;
  min-width: 220px;
  align-items: flex-start;
  padding: 12px 14px;
}

.sidebar-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.sidebar-logo {
  margin-bottom: 6px;
}

.logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  width: 72px;
  text-align: center;
}

.logo-bolt {
  font-size: 16px;
  color: var(--accent-cyan);
}

.logo-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.1;
}

.sidebar-tariff {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-amber);
  background: var(--accent-amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  text-align: center;
}

.account-switcher-wrap {
  width: 100%;
  padding: 0 4px;
}

.sidebar-select {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 2px;
  outline: none;
  cursor: pointer;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: 54px;
  background: rgba(22, 27, 34, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  color: #e2e8f0 !important;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 4px;
}

.nav-item:hover {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(0, 229, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0.08) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 229, 255, 0.7) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35), inset 0 0 12px rgba(0, 229, 255, 0.15) !important;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
}

.nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-admin-btn {
  color: var(--accent-rose);
  margin-top: auto;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  background: var(--accent-rose);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
}

.nav-badge.scheduled {
  background: var(--accent-amber);
}

.sidebar-footer {
  margin-top: auto;
  padding: 10px 4px 12px 4px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-pill);
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-emerald);
  white-space: nowrap;
}

.sidebar-logout-btn {
  color: #64748b;
  font-size: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: color 0.2s;
}
.sidebar-logout-btn:hover {
  color: #fca5a5 !important;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

/* ==========================================================================
   MAIN WORKSPACE & SECTIONS
   ========================================================================== */
.main-workspace {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-app);
}

.view-section,
.view-section:not(.active) {
  display: none !important;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.view-section.active {
  display: flex !important;
}

/* ==========================================================================
   WORKSPACE SPLITTERS & COMPOSER RESIZERS
   ========================================================================== */
.omni-splitter {
  width: 5px;
  min-width: 5px;
  background: transparent;
  position: relative;
  cursor: col-resize;
  z-index: 35;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.omni-splitter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(148, 163, 184, 0.14);
  transition: background 0.15s ease, width 0.15s ease, box-shadow 0.15s ease;
  pointer-events: none;
}

.omni-splitter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  right: -4px;
  cursor: col-resize;
  z-index: 2;
}

.omni-splitter:hover,
.omni-splitter.active {
  background: rgba(99, 102, 241, 0.15);
}

.omni-splitter:hover::before,
.omni-splitter.active::before {
  width: 2px;
  background: rgba(0, 229, 255, 0.85);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.omni-splitter .splitter-grip {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  opacity: 0;
  background: rgba(148, 163, 184, 0.22);
  transition: opacity 0.15s, background 0.15s, height 0.15s;
}

.omni-splitter:hover .splitter-grip,
.omni-splitter.active .splitter-grip {
  opacity: 1;
  background: rgba(255, 255, 255, 0.85);
  height: 48px;
}

/* Drawer Edge Resizer (when .right-panel is fixed drawer) */
.drawer-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  cursor: col-resize;
  z-index: 1002;
  background: transparent;
  transition: background 0.15s ease;
}
.drawer-resize-handle:hover,
.drawer-resize-handle.active {
  background: rgba(99, 102, 241, 0.85);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}

/* Composer Top Resize Handle */
.composer-resize-handle {
  height: 12px;
  margin: -14px -16px 8px -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: row-resize;
  position: relative;
  z-index: 15;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease;
}

.composer-resize-handle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  bottom: -4px;
  cursor: row-resize;
}

.composer-resize-handle:hover,
.composer-resize-handle.active {
  background: rgba(99, 102, 241, 0.08);
}

.composer-grip-bar {
  width: 48px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}

.composer-resize-handle:hover .composer-grip-bar,
.composer-resize-handle.active .composer-grip-bar {
  background: #818cf8;
  width: 72px;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

body.is-resizing, body.is-resizing * {
  transition: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
body.is-resizing-col, body.is-resizing-col * {
  cursor: col-resize !important;
}
body.is-resizing-row, body.is-resizing-row * {
  cursor: row-resize !important;
}

@media (max-width: 768px) {
  .omni-splitter {
    display: none !important;
  }
}

/* =========================================================================
   CYBER GLASSMORPHISM & LEGO TARIFF CONFIGURATOR (AOS-STD-014)
   ========================================================================= */

.cyber-glass-panel {
  background: rgba(19, 26, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 47, 62, 0.9);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-glass-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
}

.cyber-glass-card.lego-card-active {
  border-color: rgba(0, 242, 254, 0.6) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.18), inset 0 0 12px rgba(0, 242, 254, 0.05);
}

/* Custom Interactive Range Sliders */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #6366f1, #00e5ff);
  border-radius: 9999px;
}

.custom-range::-moz-range-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #6366f1, #00e5ff);
  border-radius: 9999px;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  cursor: pointer;
  margin-top: -7px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.9);
}

.custom-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.custom-range::-moz-range-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.9);
}

/* Cyber Toggle Switch */
.cyber-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cyber-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cyber-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
}

.cyber-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cyber-switch input:checked + .cyber-switch-slider {
  background: linear-gradient(135deg, #10b981 0%, #00e5ff 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.cyber-switch input:checked + .cyber-switch-slider:before {
  transform: translateX(20px);
}

/* Period Switcher Buttons */
.lego-period-toggle-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lego-period-toggle-btn.active {
  background: rgba(0, 229, 255, 0.15) !important;
  border: 1px solid rgba(0, 229, 255, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}


/* ==========================================================================
   VIEW 1: CHATS (3-COLUMN LAYOUT)
   ========================================================================== */
#view-chats {
  display: none;
}
#view-chats.active {
  display: flex;
  flex-direction: row;
}

/* Left Column: Inbox List (360px, Apple Liquid Glass) */
.chats-sidebar {
  width: var(--chats-sidebar-width, 360px);
  min-width: 240px;
  max-width: 600px;
  height: 100%;
  flex-shrink: 0 !important;
  background: var(--material-regular);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  flex-direction: column;
}

.chats-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.title-with-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-count h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.header-actions {
  display: flex;
  gap: 6px;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-inside {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 32px 8px 30px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-box input:focus {
  border-color: var(--border-focus);
}

.search-settings-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}

.advanced-search-panel {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.filter-group label {
  font-size: 10px;
  color: var(--text-muted);
}

.filter-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 4px 6px;
  font-size: 11px;
}

/* Pinned "В работе" Section */
.pinned-section-wrap {
  border-bottom: 2px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.03);
}

.pinned-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 4px 16px;
}

.pinned-icon {
  font-size: 12px;
}

.pinned-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.03em;
}

.pinned-badge {
  margin-left: auto;
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.pinned-chats-list {
  display: flex;
  flex-direction: column;
  padding: 4px 8px 8px 8px;
  gap: 4px;
}

.chats-divider {
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  background: var(--bg-surface);
}

/* Conversations List */
.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Conversation Card (Avito Pro 72px Landing-Style) */
.chat-card {
  display: flex;
  padding: 12px 14px;
  min-height: 72px;
  max-height: 72px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 12, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  gap: 12px;
  box-sizing: border-box;
}

.chat-card:hover {
  background: rgba(18, 23, 34, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.chat-card.active {
  background: rgba(9, 12, 18, 0.98);
  border-color: rgba(0, 229, 255, 0.35);
  border-left: 3px solid #00e5ff;
  box-shadow: inset 3px 0 0 0 #00e5ff, 0 4px 20px rgba(0, 229, 255, 0.12);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.chat-avatar-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 46px !important;
  max-height: 46px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  display: block !important;
}

.chat-select-cb {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chat-card:hover .chat-select-cb,
.chat-select-cb:checked {
  opacity: 1 !important;
}

.avatar-initials {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  user-select: none;
}

.chat-avatar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
  background: var(--accent-avito);
}
.chat-avatar.channel-tg::after { background: var(--accent-tg); }
.chat-avatar.channel-wa::after { background: var(--accent-wa); }

.chat-card-content {
  flex: 1;
  min-width: 0;
}

.chat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.buyer-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-preview-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  margin-top: 2px;
}

/* In-Card Stage Badge & Dropdown */
.stage-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
  transition: all 0.15s ease;
}

.stage-chip:hover {
  transform: scale(1.04);
}

.stage-chip.new {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.stage-chip.in_progress {
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.4);
}

.stage-chip.deal {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.stage-chip.refused {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Context Menu for In-Card Stage Change */
.card-stage-context-menu {
  position: fixed;
  background: var(--bg-popover);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  padding: 4px;
  z-index: 1000;
  min-width: 140px;
}

.context-item {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.15s ease;
}

.context-item:hover {
  background: var(--bg-card);
}

/* ==========================================================================
   MAIN CHAT (CENTER COLUMN)
   ========================================================================== */
.main-chat {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  position: relative;
}

.chat-main-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.platform-badge.avito {
  background: #3b82f6;
  color: white;
}

.chat-title-group {
  display: flex;
  flex-direction: column;
}

.chat-item-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.chat-item-link:hover {
  color: var(--accent-cyan);
}

.buyer-name-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-control-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-label {
  font-size: 11px;
  color: var(--text-muted);
}

.stage-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.mode-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mode-toggle-btn.auto-ai {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

.mode-toggle-btn.human-mode {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

/* Item Card Banner */
.item-card-banner {
  padding: 8px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.item-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.guard-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-amber);
  background: var(--accent-amber-soft);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Messages Container */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 10px;
}

.empty-icon {
  font-size: 36px;
  opacity: 0.6;
}

/* Chat Bubbles */
.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.msg-bubble-wrap.incoming {
  align-self: flex-start;
  margin-right: auto;
  align-items: flex-start;
  text-align: left;
}

.msg-bubble-wrap.outgoing {
  align-self: flex-end;
  margin-left: auto;
  align-items: flex-end;
  text-align: right;
}

.msg-author-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-bubble-wrap.outgoing .msg-author-time {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.incoming .msg-bubble {
  background: var(--scrim-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--glass-border-specular);
  color: var(--text-main);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  border-bottom-left-radius: 2px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.outgoing .msg-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 229, 255, 0.2);
  border-bottom-right-radius: 2px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.msg-ai-pill {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 4px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
}

/* Input Area */
.input-area {
  padding: 16px 20px 20px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.input-wrapper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.attach-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding-bottom: 6px;
}

.attach-btn:hover {
  color: var(--text-main);
}

.composer-row textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  min-height: 42px;
  max-height: 520px;
  padding: 6px 4px;
  box-sizing: border-box;
  resize: vertical !important;
  overflow-y: auto;
  transition: min-height 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.1s ease;
}

/* Auto-Expansion on Focus or Expanded State */
.input-wrapper-card:focus-within .composer-row textarea,
.input-area.composer-expanded .composer-row textarea {
  min-height: var(--composer-expanded-height, 140px);
}

/* Input Toolbar */
.input-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-pill-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.toolbar-pill-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-main);
}

.arrow-down {
  font-size: 9px;
  opacity: 0.7;
}

.btn-ai-polish {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ai-polish:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 182, 212, 0.5));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-ai-polish.loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.btn-ai-sparkle {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.35));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ai-sparkle:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.5));
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-send-message {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send-message:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.05);
}

.btn-send-message svg {
  width: 15px;
  height: 15px;
}

/* Schedule Picker Panel */
.schedule-picker-panel {
  background: var(--bg-popover);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.quick-presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.preset-btn.btn-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.preset-btn.btn-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.preset-btn.btn-amber {
  background: var(--accent-amber-soft);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.preset-btn.btn-emerald {
  background: var(--accent-emerald-soft);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.manual-schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.schedule-datetime-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 4px 8px;
  font-size: 11px;
}

/* Floating Popovers (Prompt role, auto dropdown) */
.dropdown-wrapper {
  position: relative;
}

.floating-popover {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: var(--bg-popover);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  padding: 12px;
  width: 320px;
  z-index: 500;
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.popover-header strong {
  font-size: 12px;
  color: var(--text-main);
}

.popover-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.popover-textarea {
  width: 100%;
  height: 120px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 8px;
  font-size: 11px;
  resize: vertical;
}

.checkbox-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-main);
  padding: 6px 4px;
  cursor: pointer;
}

/* ==========================================================================
   RIGHT PANEL: CRM & MEMORY (360px, Apple Liquid Glass Thick)
   ========================================================================== */
.right-panel {
  width: var(--right-panel-width, 360px);
  min-width: 260px;
  max-width: 650px;
  height: 100%;
  flex-shrink: 0 !important;
  background: var(--material-thick);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.panel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--glass-border-specular);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.card-title-wrap > div {
  min-width: 0;
}

.card-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.card-title-wrap strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.card-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* PWA Floating Push Prompt Banner */
.pwa-push-floating-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f8fafc;
  animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 450px;
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.push-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.push-toast-icon {
  font-size: 22px;
}

.push-toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.push-toast-text strong {
  font-size: 13px;
  color: #fff;
}

.push-toast-text span {
  font-size: 11px;
  color: #94a3b8;
}

.push-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-icon-soft {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-toggle-pill {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.btn-toggle-pill.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.card-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.body-label {
  font-size: 11px;
  color: var(--text-muted);
}

.compact-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 3px 6px;
  font-size: 11px;
}

.card-description {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notes-textarea {
  width: 100%;
  height: 90px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px;
  font-size: 12px;
  resize: vertical;
  outline: none;
}

.new-chunk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.new-chunk-row select {
  flex: 0 0 95px;
  min-width: 90px;
  box-sizing: border-box;
}

.new-chunk-row input {
  flex: 1 1 110px;
  min-width: 80px;
  box-sizing: border-box;
}

.new-chunk-row button {
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.notes-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.save-status-text {
  font-size: 10px;
  color: var(--accent-emerald);
  white-space: nowrap;
  flex-shrink: 0;
}

.notes-hint {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
  flex: 1;
  min-width: 130px;
  text-align: right;
}

.crystal-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crystal-metric {
  background: var(--bg-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.metric-key {
  font-size: 10px;
  color: var(--text-muted);
}

.metric-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

/* ==========================================================================
   CHUNKED NOTES & SEMANTIC MEMORY EXEMPLARS
   ========================================================================== */
.notes-chunks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chunk-card {
  display: flex;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-subtle, rgba(15, 23, 42, 0.6));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: all 0.2s ease;
}

.chunk-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.chunk-actions-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.chunk-body-text, .chunk-text {
  font-size: 11px !important;
  color: #f8fafc !important;
  line-height: 1.4 !important;
  word-break: break-all !important;
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: pre-wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 4px 6px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.chunk-card.enabled {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}

.chunk-card.disabled {
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.chunk-content-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.chunk-tag-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}

.chunk-card.enabled .chunk-tag-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.chunk-tag-badge.tag-budget { background: rgba(245, 158, 11, 0.15) !important; color: #f59e0b !important; border-color: rgba(245, 158, 11, 0.35) !important; }
.chunk-tag-badge.tag-delivery { background: rgba(14, 165, 233, 0.15) !important; color: #38bdf8 !important; border-color: rgba(14, 165, 233, 0.35) !important; }
.chunk-tag-badge.tag-req { background: rgba(236, 72, 153, 0.15) !important; color: #f472b6 !important; border-color: rgba(236, 72, 153, 0.35) !important; }
.chunk-tag-badge.tag-spec { background: rgba(168, 85, 247, 0.15) !important; color: #c084fc !important; border-color: rgba(168, 85, 247, 0.35) !important; }
.chunk-tag-badge.tag-urgent { background: rgba(239, 68, 68, 0.15) !important; color: #f87171 !important; border-color: rgba(239, 68, 68, 0.35) !important; }
.chunk-tag-badge.tag-discount { background: rgba(16, 185, 129, 0.15) !important; color: #34d399 !important; border-color: rgba(16, 185, 129, 0.35) !important; }
.chunk-tag-badge.tag-item { background: rgba(99, 102, 241, 0.15) !important; color: #818cf8 !important; border-color: rgba(99, 102, 241, 0.35) !important; }
.chunk-tag-badge.tag-pay { background: rgba(20, 184, 166, 0.15) !important; color: #2dd4bf !important; border-color: rgba(20, 184, 166, 0.35) !important; }
.chunk-tag-badge.tag-interest { background: rgba(139, 92, 246, 0.15) !important; color: #a78bfa !important; border-color: rgba(139, 92, 246, 0.35) !important; }

.chunk-text {
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}

.chunk-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chunk-toggle-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.chunk-toggle-btn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.chunk-del-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  transition: color 0.15s ease;
}
.chunk-del-btn:hover {
  color: #f87171;
}

.semantic-exemplars-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.exemplar-card {
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.exemplar-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.exemplar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exemplar-source-pill {
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.exemplar-score-pill {
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1px 6px;
  border-radius: 10px;
}

.exemplar-body-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.exemplar-tag-active {
  font-size: 9px;
  color: #a78bfa;
  font-weight: 600;
}

/* =========================================================================
   ATTACHMENTS & MEDIA PREVIEW STYLES
   ========================================================================= */
.image-preview-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  position: relative;
  animation: fadeIn 0.2s ease-out;
}
.image-preview-container img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.file-icon-preview {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.image-preview-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.image-status-text {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}
.quality-selector-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}
.quality-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}
.quality-label input[type="radio"] {
  accent-color: var(--color-primary, #00e5ff);
  cursor: pointer;
}
.image-remove-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.image-remove-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
  transform: scale(1.08);
}

/* Chat bubble attachments */
.msg-attachments-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.msg-attachment-image-wrap {
  max-width: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.msg-attachment-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.msg-attachment-img:hover {
  transform: scale(1.02);
}
.msg-attachment-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.msg-attachment-file-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #fff;
}

/* --- Clean Chat Header: Buyer Name & City Location --- */
.buyer-name-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.chat-header-sub-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.chat-city-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 1px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.1px;
}

.chat-channel-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.item-card-link-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.item-card-link-title:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.city-tag-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 1px 7px;
  border-radius: var(--radius-xs);
}

/* =========================================================================
   IN-APP IMAGE VIEWER OVERLAY & ZOOM BADGE
   ========================================================================= */
.msg-attachment-image-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  max-width: 100%;
}

.msg-attachment-image-wrap:hover .msg-zoom-badge {
  opacity: 1;
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1.04);
}

.msg-zoom-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: auto !important;
  max-width: max-content !important;
  height: 26px;
  padding: 0 10px;
  gap: 5px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: #f8fafc;
  white-space: nowrap !important;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.15s ease;
  user-select: none;
}

/* =========================================================================
   LIGHTBOX IMAGE VIEWER MODAL & TOOLBAR
   ========================================================================= */
.image-viewer-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.image-viewer-toolbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 10;
  pointer-events: auto;
}

.image-viewer-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-viewer-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.btn-iv-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-iv-action:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-iv-download {
  background: linear-gradient(135deg, #00e5ff 0%, #0099ff 100%);
  border: none;
  color: #040712;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  transition: all 0.15s ease;
}

.btn-iv-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-iv-close {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-iv-close:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.image-viewer-viewport {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.image-viewer-viewport:active {
  cursor: grabbing;
}

#image-viewer-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85);
  transition: transform 0.08s ease-out;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer-hint {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* =========================================================================
   AVATAR STYLING IN HEADER AND CHAT CARDS
   ========================================================================= */
.header-chat-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 10px;
  flex-shrink: 0;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-avatar-initials {
  font-weight: 700;
  font-size: 14px;
  color: #f8fafc;
}

.card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* =========================================================================
   🎙️ VOICE MESSAGES & GROQ WHISPER STT STYLES
   ========================================================================= */

.msg-voice-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
  max-width: 440px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.msg-voice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.msg-voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.msg-voice-engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.msg-voice-player-row {
  width: 100%;
}

.msg-audio-element {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  outline: none;
}

.msg-audio-element::-webkit-media-controls-panel {
  background: rgba(30, 41, 59, 0.95);
  border-radius: 8px;
}

.msg-voice-pending-note {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.msg-voice-transcript-container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.msg-voice-transcript-text {
  font-size: 13px;
  line-height: 1.5;
  color: #f1f5f9;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #38bdf8;
  font-style: italic;
}

.voice-quote-mark {
  color: #38bdf8;
  font-weight: bold;
  font-size: 15px;
}

.msg-voice-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-transcribe-trigger {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-transcribe-trigger:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.35) 100%) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #fef3c7 !important;
  transform: translateY(-1px);
}

.recording-pulse {
  animation: micPulse 1.2s infinite alternate ease-in-out;
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

@keyframes micPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1.12); box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.6); }
}

/* ==========================================================================
   MESSAGE BUBBLE ACTION CONTROLS & CHAT HEADER SYNC
   ========================================================================== */
.msg-author-time {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.msg-author-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.msg-bubble-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.msg-bubble-wrap:hover .msg-bubble-actions {
  opacity: 1;
}

.btn-msg-action {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-msg-delete:hover {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.18) !important;
}

/* Chat Header Sync Button */
.btn-sync-chat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-sync-chat:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: rotate(90deg);
}

/* Authentic Landing-Matching Brand Badge */
.brand-app-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  transition: transform 0.2s ease;
}

.brand-app-link:hover {
  transform: scale(1.03);
}


/* 5-Stage Stepper & Crystal Sales Funnel */
.btn-stage-stepper {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-stage-stepper:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.crystal-stage-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  z-index: 100;
  min-width: 250px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stage-dropdown-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  padding: 4px 8px 6px;
  letter-spacing: 0.05em;
}
.stage-dropdown-item {
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: background 0.15s ease;
}
.stage-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
}
.stage-dropdown-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 600;
}
.stage-dropdown-item .stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
}
.stage-dropdown-item.active .stage-num {
  background: #38bdf8;
  color: #0f172a;
}

/* Marketing Chips */
.marketing-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
  font-weight: 500;
}
.marketing-chip.chip-tripwire {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}
.marketing-chip.chip-scarcity {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.marketing-chip.chip-risk {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.marketing-chip.chip-ghosting {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.25);
}

/* Smart Preset Chips */
.smart-preset-chips-row {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}
.preset-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.preset-chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}
.preset-chip-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 600;
}

/* Bulk Selection & Floating Bar */
.chat-select-cb {
  margin-right: 6px;
  cursor: pointer;
  accent-color: #38bdf8;
}
.bulk-floating-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 30;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}
/* ==========================================================================
   VIEW 2: BROADCASTS (FULL SCREEN 3-STEP WIZARD)
   ========================================================================== */
#view-broadcast {
  overflow-y: auto;
}

.broadcast-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.broadcast-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.broadcast-title-group h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Wizard Step Indicator Bar */
.step-indicator-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.step-indicator-item.active {
  color: var(--accent-cyan);
}

.step-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.step-indicator-item.active .step-circle {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.step-line {
  width: 30px;
  height: 1px;
  background: var(--border-subtle);
}

.btn-history-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

/* Form Card & Layout Grids */
.omni-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.form-help {
  font-size: 11px;
  color: var(--text-muted);
}

.large-textarea {
  width: 100%;
  height: 110px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px;
  font-size: 12px;
  resize: vertical;
}

.medium-textarea {
  width: 100%;
  height: 80px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px;
  font-size: 12px;
  resize: vertical;
}

.callout-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.audience-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.radio-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: all 0.15s ease;
}

.radio-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.radio-card.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-primary);
}

.radio-card-body {
  display: flex;
  flex-direction: column;
}

.radio-card-body strong {
  font-size: 12px;
  color: var(--text-main);
}

.radio-card-body span {
  font-size: 10px;
  color: var(--text-muted);
}

.step-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.step-footer-actions.space-between {
  justify-content: space-between;
}

/* Button Sizes & Variants */
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: var(--radius-xs); cursor: pointer; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); cursor: pointer; }
.btn-md { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-md); cursor: pointer; }
.btn-lg { padding: 10px 20px; font-size: 14px; border-radius: var(--radius-md); cursor: pointer; font-weight: 700; }
.btn-xl { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); cursor: pointer; font-weight: 800; }

.btn-primary { background: var(--accent-primary); color: white; border: none; }
.btn-primary:hover { background: var(--accent-primary-hover); }

.btn-primary-gradient {
  background: linear-gradient(135deg, #00e5ff 0%, #10b981 100%);
  color: #020617;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.4);
}

.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-main); }

/* Launch Parameters Grid */
.launch-parameters-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.param-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.param-label {
  font-size: 11px;
  color: var(--text-muted);
}

.param-value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.range-wrap input {
  flex: 1;
}

.param-sub {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
  display: block;
}

.test-send-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.launch-action-center {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.progress-live-card {
  margin-top: 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.progress-title-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  transition: width 0.3s ease;
}

.progress-stats-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.data-table th {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* --- Broadcast & Interactive Attachment Enhancements (v29.1) --- */
.msg-attachment-card-interactive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.msg-attachment-card-interactive:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.85);
}

.msg-attachment-image-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  max-width: 240px;
  max-height: 240px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msg-attachment-image-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.msg-attachment-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.bc-draft-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  color: #f8fafc;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bc-draft-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.bc-memory-quote-pill {
  font-size: 12px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 5px 8px;
  line-height: 1.35;
}


/* Attachment Card Sub-elements */
.msg-att-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.msg-att-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

.msg-att-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-att-title {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.msg-att-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.btn-emerald-gradient {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-emerald-gradient:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.5));
  border-color: rgba(52, 211, 153, 0.8);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.msg-vlm-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(6, 78, 59, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  z-index: 5;
}

.msg-vlm-badge:hover {
  background: rgba(5, 150, 105, 0.95);
  color: #ffffff;
  transform: scale(1.05);
}

.msg-att-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.msg-text-content {
  margin-top: 6px;
  line-height: 1.45;
}

/* ==========================================================================
   VIEW 3: REVIEWS (2-COLUMN REPUTATION HUB)
   ========================================================================== */
.reviews-workspace {
  display: flex;
  width: 100%;
  height: 100%;
}

.reviews-sidebar {
  width: 420px;
  min-width: 420px;
  height: 100%;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.reviews-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.reviews-filter-pills {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.reviews-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-item-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.15s ease;
}

.review-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.review-item-card.active {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.rating-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.rating-circle.rate-5 { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }
.rating-circle.rate-4 { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid #34d399; }
.rating-circle.rate-3 { background: var(--accent-amber-soft); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.rating-circle.rate-1, .rating-circle.rate-2 { background: var(--accent-rose-soft); color: var(--accent-rose); border: 1px solid var(--accent-rose); }

.review-meta {
  flex: 1;
  min-width: 0;
}

.review-meta-top {
  display: flex;
  justify-content: space-between;
}

.review-author {
  font-weight: 600;
  color: var(--text-main);
}

.review-date {
  font-size: 10px;
  color: var(--text-muted);
}

.review-item-title {
  font-size: 11px;
  color: var(--accent-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-snippet {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Review Detail Pane */
.review-detail-pane {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
}

.detail-header-row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.seller-reply-bubble {
  margin-top: 16px;
  padding: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
}

.seller-reply-title {
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.review-reply-composer {
  padding: 16px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.review-reply-composer textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px;
  font-size: 13px;
  resize: vertical;
}

.composer-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   VIEW 4: ANALYTICS & DUAL SEARCH DASHBOARD
   ========================================================================== */
#view-analytics {
  overflow-y: auto;
}

.analytics-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.analytics-header-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.date-picker-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 4px 6px;
  font-size: 11px;
}

.stat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  font-size: 28px;
}

.kpi-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
}

.usage-progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.track-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.track-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.track-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #10b981);
}

/* CRM Funnel */
.funnel-cards-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.funnel-step-card {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.funnel-step-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.funnel-step-card.stage-new:hover { border-color: var(--accent-cyan); }
.funnel-step-card.stage-in-progress:hover { border-color: var(--accent-amber); }
.funnel-step-card.stage-deal:hover { border-color: var(--accent-emerald); }
.funnel-step-card.stage-refused:hover { border-color: var(--accent-rose); }

.stage-count {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0;
}

.stage-name {
  font-size: 11px;
  color: var(--text-muted);
}

.funnel-arrow {
  color: var(--text-faint);
  font-size: 16px;
}

.funnel-separator {
  color: var(--text-faint);
  font-size: 20px;
}

.funnel-conversion-bar {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Dual Search Bar */
.search-mode-switcher-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.search-tab-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-tab-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.slider-control-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 6px;
}

.slider-hints-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}

.search-input-action-row {
  display: flex;
  gap: 10px;
}

.search-input-action-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

/* Results Action Bar */
.results-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.actions-left, .actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytics-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.analytics-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.similarity-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

/* ========================================================================= */
/* CATALOG & STORE KNOWLEDGE BASE (PART 2 CABINET UI)                        */
/* ========================================================================= */

.catalog-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.catalog-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
}

.catalog-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.catalog-stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.catalog-header-actions {
  display: flex;
  gap: 8px;
}

/* Dropzone Styles */
.catalog-dropzone-card {
  padding: 16px;
}

.catalog-dropzone {
  border: 2px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(56, 189, 248, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.catalog-dropzone:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-1px);
}

.catalog-dropzone.dragover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.25);
  transform: scale(1.005);
}

.dropzone-icon {
  font-size: 32px;
  margin-bottom: 2px;
}

.dropzone-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.dropzone-hint {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 480px;
}

/* Inputs & Form Elements */
.omni-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.omni-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.omni-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.omni-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Mapping Modal Table */
.catalog-mapping-table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-height: 420px;
  overflow-y: auto;
}

.mapping-preview-table th {
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 2;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.catalog-col-select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* Catalog Table & Inline Editing */
.catalog-table-card {
  padding: 18px;
}

.catalog-inline-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.catalog-inline-input:hover {
  border-color: var(--border-card);
  background: rgba(255, 255, 255, 0.08);
}

.catalog-inline-input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.catalog-inline-input.stock-in {
  color: #34d399;
  font-weight: 600;
}

.catalog-inline-input.stock-out {
  color: #f87171;
  font-weight: 600;
}

.catalog-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Store Rules Card */
.store-rules-card {
  padding: 20px;
}

.rule-field-block {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .catalog-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-header-right {
    align-items: stretch;
  }
  .catalog-stats-row {
    justify-content: space-between;
  }
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .store-rules-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Additional Utility & Component Classes for 100% DOM Parity */
.add-key-form, .compact-input, .catalog-table, .catalog-pagination-wrap,
.purple-badge, .settings-card, .form-row, .catalog-table-responsive,
.instructions-tab-pane, .wizard-pane, .badge-primary, .form-textarea,
.settings-card-header, .btn-submit, .cyan, .push-header-btn, .purple,
.modal-footer-row, .live-ping-box, .wizard-niche-chip, .filter-chip-btn,
.catalog-filter-group, .catalog-mapping-sub-header, .settings-subcard, .orange,
.calc-presets-bar, .calc-preset-tab, .calc-module-card, .calc-slider-card,
.calc-summary-sticky-card, .trial-radar-section, .affiliate-section,
.radar-metric-val, .calc-val-main {
  box-sizing: border-box;
}

/* Lego-Calculator & Radar Theme Styles */
.calc-presets-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 24px 0;
}

.calc-preset-tab {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 22px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  min-height: 44px;
}

.calc-preset-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

.calc-module-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 22px;
  transition: all 0.25s ease;
}

.calc-summary-sticky-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 32px 28px;
}

.trial-radar-section {
  padding: 90px 0;
  border-top: 1px solid rgba(239, 68, 68, 0.15);
}

.affiliate-section {
  padding: 90px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   LISTING STUDIO CARDS (VIEW-LISTINGS)
   ========================================================================= */
.listing-studio-card {
  background: var(--bg-card, rgba(30, 41, 59, 0.5));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.listing-studio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.listing-thumb-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.listing-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-studio-card:hover .listing-thumb-img {
  transform: scale(1.03);
}

.listing-thumb-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.listing-chat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.listing-chat-pill.has-chats {
  background: rgba(56, 189, 248, 0.85);
  color: #04101e;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.listing-chat-pill.no-chats {
  background: rgba(15, 23, 42, 0.7);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.listing-city-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.listing-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
  margin-bottom: 6px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.listing-card-title:hover {
  color: var(--accent-cyan, #38bdf8);
}

.listing-address-row {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(15, 23, 42, 0.4);
  padding: 8px 10px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.listing-price-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.listing-price-col .price-label {
  font-size: 10px;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.listing-price-col .price-val {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.listing-price-col.guard .price-guard-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-emerald, #10b981);
}

.listing-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.listing-chats-btn {
  flex: 1;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
}

/* =========================================================================
   INTERACTIVE MULTI-SELECT & FLOATING ACTION BAR
   ========================================================================= */
.listing-studio-card.listing-card-selected {
  border-color: #00e5ff !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  background: rgba(8, 25, 45, 0.85) !important;
  transform: translateY(-2px);
}

.listing-card-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
  user-select: none;
}

.listing-card-checkbox:hover {
  border-color: #00e5ff;
  background: rgba(8, 25, 45, 0.9);
  transform: scale(1.08);
}

.listing-card-checkbox.checked {
  background: #00e5ff;
  border-color: #00e5ff;
  color: #04101e;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* Floating Sticky Action Bar */
#listings-floating-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 229, 255, 0.25);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

#listings-floating-action-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================================
   4-COLUMN 5D-MATRIX & SEMANTIC ANCHORS
   ========================================================================= */
.semantic-4col-grid,
.semantic-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

@media (max-width: 1024px) {
  .semantic-4col-grid,
  .semantic-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .semantic-4col-grid,
  .semantic-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.semantic-matrix-col {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.semantic-matrix-col.col-locomotive {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.semantic-matrix-col.col-locomotive:hover {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.semantic-matrix-col.col-body {
  border-color: rgba(6, 182, 212, 0.35);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.semantic-matrix-col.col-body:hover {
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.semantic-matrix-col.col-longtail {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.semantic-matrix-col.col-longtail:hover {
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.semantic-matrix-col.col-negative {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.semantic-matrix-col.col-negative:hover {
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.15);
}

.semantic-col-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.semantic-col-items {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 180px;
  max-height: 280px;
}

.semantic-kw-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.semantic-kw-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.9);
}

.semantic-kw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.semantic-kw-phrase {
  font-size: 11px;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-word;
  line-height: 1.3;
}

.semantic-kw-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 2px;
}

.semantic-kw-moves {
  display: flex;
  gap: 3px;
}

.semantic-move-btn {
  padding: 1px 4px;
  font-size: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.semantic-move-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.semantic-synthesis-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Catalog & Listings Studio Modal Backdrops strictly above Floating Bar (35) */
#video-preview-modal,
#semantic-core-modal,
#unified-ai-rewriter-modal,
#batch-repricing-modal,
#geo-cloning-modal,
#autoload-reports-modal,
#create-listing-modal,
#batch-video-modal,
#edit-item-video-modal,
#listing-gallery-modal,
#catalog-bulk-modal,
#service-modal,
#catalog-sync-url-modal,
#catalog-vas-modal,
#pricing-modal {
  z-index: 60;
}

/* Video player responsive aspect ratio container */
.aspect-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 240px;
}

/* ==========================================================================
   VIEW 5: PROFILE & SETTINGS
   ========================================================================== */
#view-profile {
  overflow-y: auto;
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subscription-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.sub-plan-name {
  font-size: 18px;
  font-weight: 700;
}

.account-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-connect-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 10px;
}

.tg-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.tg-code-row code {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.theme-switcher-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.theme-choice-btn {
  flex: 1;
  padding: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.theme-choice-btn.active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

/* =========================================================================
   CABINET TARIFF CONFIGURATOR & MODULE PURCHASE UX (v29)
   ========================================================================= */

.conf-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.conf-telemetry-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.conf-telemetry-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.conf-telemetry-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.conf-telemetry-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.conf-telemetry-foot {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.conf-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.conf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.conf-section-group {
  margin: 20px 0;
}

.conf-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

/* Presets Bar */
.conf-presets-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.conf-preset-btn {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
}

.conf-preset-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.conf-preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.conf-preset-btn .preset-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.conf-preset-btn .preset-price {
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
}

.conf-preset-btn.active .preset-price {
  color: #818cf8;
}

.conf-preset-btn .preset-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Lego Modules Grid */
.conf-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.conf-module-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
}

.conf-module-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
}

.conf-module-card.active {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.conf-mod-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.conf-mod-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.conf-mod-info {
  flex: 1;
}

.conf-mod-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.conf-mod-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.conf-mod-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.conf-module-card.active .conf-mod-badge {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.conf-mod-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.conf-mod-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.conf-mod-price {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

/* Switch Toggle */
.conf-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.conf-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.conf-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
}

.conf-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.conf-toggle-switch input:checked + .conf-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.conf-toggle-switch input:checked + .conf-slider:before {
  transform: translateX(20px);
}

.conf-btn-connect {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
}

.conf-module-card.active .conf-btn-connect {
  display: none;
}

/* Sub Card (Channels & Dialogs) */
.conf-sub-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.conf-sub-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.conf-sub-card-help {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.conf-stepper-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.conf-stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.conf-stepper-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
}

.conf-stepper-val-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.conf-stepper-num {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}

.conf-stepper-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Period Tabs */
.conf-period-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.conf-period-btn {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.conf-period-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
}

.conf-period-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(56, 189, 248, 0.15) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.conf-period-btn .period-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.conf-period-btn .period-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.conf-period-btn .discount-badge {
  color: #34d399;
  font-weight: 600;
}

.conf-period-btn .discount-badge.gold {
  color: #fbbf24;
}

/* Calculation & Action Bar */
.conf-calc-bar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.conf-calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conf-calc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.conf-calc-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.conf-price-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.conf-price-num {
  font-size: 28px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.02em;
}

.conf-price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.conf-period-total-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 6px;
}

.conf-calc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Module Locked Card (for disabled views: Catalog, Broadcast, Reviews) */
.module-locked-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(245, 158, 11, 0.05);
  animation: fadeIn 0.3s ease;
}

.module-locked-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.module-locked-icon {
  font-size: 42px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.module-locked-body {
  flex: 1;
}

.module-locked-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  margin-bottom: 6px;
}

.module-locked-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
}

.module-locked-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 720px;
}

.module-locked-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}






/* --- Call Preference & Seller Bio Styling --- */
.call-pref-toggle-group button.filter-chip-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 6px;
}

.call-pref-toggle-group button.filter-chip-btn.active {
  background: var(--accent-gradient, linear-gradient(135deg, #00e5ff, #10b981));
  color: #020617;
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.35);
  font-weight: 700;
}

#avito-seller-bio-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
  outline: none;
}


/* ==========================================================================
   10. APPLE LIQUID GLASS SEGMENTED TABS (Settings & Admin Plane)
   ========================================================================== */
.segmented-glass-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0 !important;
  min-height: 44px !important;
}
.segmented-glass-nav::-webkit-scrollbar {
  display: none;
}
.segmented-tab-btn {
  flex: 1;
  flex-shrink: 0 !important;
  min-height: 36px !important;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.segmented-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}
.segmented-tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
  color: #ffffff;
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.segmented-tab-pane {
  display: none;
}
.segmented-tab-pane.active {
  display: block;
  animation: fadeInPane 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Groq Key Pool Cards & Badges */
.groq-pool-table-wrap {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
}
.groq-key-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
  flex-wrap: wrap;
  gap: 12px;
}
.groq-key-card:last-child {
  border-bottom: none;
}
.groq-key-card:hover {
  background: rgba(255, 255, 255, 0.02);
}
.groq-key-telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.groq-quota-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.groq-quota-pill.low {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}
.groq-quota-pill.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}
.groq-alert-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(220, 38, 38, 0.18) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fef08a;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .tg-code-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .tg-code-row code {
    font-size: 15px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-all !important;
  }
  .tg-code-row .btn-sm,
  .tg-code-row button,
  .tg-code-row a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .webpush-connect-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .webpush-connect-box button {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Profile Cyber Switch Ergonomics & Overflow Protection */
.cyber-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cyber-switch-slider:before {
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
}

.cyber-switch input:checked + .cyber-switch-slider:before {
  transform: translateX(18px);
}




/* ==========================================================================
   VIEW 6: AFFILIATE PROGRAM (PARTNER HUB)
   ========================================================================== */
#view-affiliate {
  overflow-y: auto;
}

.affiliate-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.affiliate-hero-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(56, 189, 248, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.commission-badge {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.ref-link-action-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.ref-link-action-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-mono);
}

.currency-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  gap: 6px;
}

.currency-input-wrap input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  width: 100%;
  outline: none;
}

/* ==========================================================================
   HELP & FAQ UTILITY CLASSES
   ========================================================================== */
.help-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-hero-banner {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.help-hero-banner h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.steps-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.step-guide-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

kbd {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   VIEW 8: ADMIN CONTROL PLANE
   ========================================================================== */
#view-admin {
  overflow-y: auto;
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Modal Backdrops & Windows */
.omni-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.omni-modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popover);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}

.omni-modal-window.large-modal {
  max-width: 900px;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* Utility Helpers */
.omni-hidden {
  display: none !important;
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-rose { color: var(--accent-rose); }
.text-amber { color: var(--accent-amber); }
.gold-badge { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }
.green { color: var(--accent-emerald); }

/* ==========================================================================
   ENHANCED PROMPT MODAL, AUTO-REPLY SETTINGS & MOBILE BOTTOM SHEET
   ========================================================================== */
.mobile-sheet-handle {
  display: none;
}

.auto-reply-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auto-reply-option-card:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.auto-reply-option-card:has(input:checked) {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.2);
}

.auto-reply-option-card input[type="radio"] {
  margin-top: 3px;
  transform: scale(1.2);
  cursor: pointer;
}

.modal-presets-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pwa-tabs-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .mobile-sheet-handle {
    display: block !important;
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: 0 auto 14px auto;
    flex-shrink: 0;
  }

  .modal-presets-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .modal-presets-bar::-webkit-scrollbar {
    display: none;
  }

  .modal-presets-bar .filter-chip-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
  }

  .pwa-tabs-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .pwa-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .pwa-tabs-bar .filter-chip-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
  }
}

/* ==========================================================================
   Voice Messages & Speech-to-Text Styles
   ========================================================================== */
.omni-voice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-width: 220px;
  max-width: 100%;
}

.omni-voice-card.pending {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.omni-voice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
}

.omni-voice-icon {
  font-size: 14px;
}

.omni-voice-transcript {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-word;
}

.omni-voice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.omni-audio-player {
  width: 100%;
  height: 32px;
  border-radius: var(--radius-sm);
  outline: none;
}

.mic-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 10px;
  transition: all 0.15s ease;
}

.mic-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mic-btn.recording {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
  animation: pulse-mic 1.2s infinite ease-in-out;
}

@keyframes pulse-mic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   Omni Platform v27 Parity & Utility Classes
   ========================================================================== */
.omni-range-slider {
  width: 100%;
  accent-color: var(--accent-indigo);
  cursor: pointer;
}

.collapsible-trigger {
  cursor: pointer;
  user-select: none;
}

.collapsible-card {
  transition: all 0.2s ease;
}

.card-collapsible-body {
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.card-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.badge-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.blue {
  color: #38bdf8 !important;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-outline,
.btn-primary-outline {
  background: transparent;
  border: 1px solid var(--accent-indigo);
  color: var(--accent-indigo);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.15s ease;
}
.btn-outline:hover,
.btn-primary-outline:hover {
  background: rgba(99, 102, 241, 0.15);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.catalog-filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-filter-chips {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip.active,
.filter-chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-indigo);
  color: #fff;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.preset-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.crystal-metric-budget {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bc-semantic-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.omni-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.omni-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.omni-input-xs {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
}

.omni-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.omni-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.pwa-guide-pane {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.checkout-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.checkout-tab-btn.active {
  background: var(--accent-indigo);
  color: #fff;
  border-color: var(--accent-indigo);
}

.spin {
  animation: omni-spin 1s linear infinite;
}
@keyframes omni-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.push-floating-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 10px 16px;
  border-radius: 12px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.push-badge-icon {
  font-size: 18px;
}

.push-badge-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.push-badge-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.push-badge-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
}


/* ==========================================================================
   SEMANTIC REFACTORING: AVATARS, BUYER CRYSTAL & MODAL LAYOUTS (AGENTIC OS v28)
   ========================================================================== */

/* 1. Avatar SVGs & Fallback Wrappers */
.chat-avatar-svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.9);
  display: block;
}

.avatar-svg-wrap,
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.header-chat-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* 2. Buyer Crystal Header, Badges & Budget Metrics */
.crystal-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crystal-stage-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crystal-metric-budget {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.crystal-budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.crystal-budget-key {
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  display: flex;
  align-items: center;
  gap: 4px;
}

.crystal-budget-source {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.crystal-budget-actions {
  display: flex;
  gap: 4px;
}

.crystal-budget-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crystal-budget-input {
  width: 80px;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.text-faint-xs {
  font-size: 11px;
  color: var(--text-faint);
}

/* 3. Modal Semantic Styling & Architecture */
.modal-prompt-role {
  max-width: 740px;
  background: #090d16 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.15) !important;
}

.modal-presets-bar .filter-chip-btn {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s ease;
}

.modal-presets-bar .filter-chip-btn:hover {
  background: #334155 !important;
  color: #fff !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

.modal-presets-bar .filter-chip-btn.active {
  background: rgba(0, 229, 255, 0.15) !important;
  color: #00e5ff !important;
  border: 1px solid #00e5ff !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25) !important;
}

.modal-auto-reply {
  max-width: 620px;
}

.modal-title-with-icon {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: #fff;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.modal-presets-section {
  margin-bottom: 12px;
}

.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-textarea-container {
  position: relative;
}

.modal-prompt-textarea,
#dialog-system-prompt-input.modal-prompt-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #090d16 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 10px;
  padding: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  caret-color: #00e5ff !important;
  resize: vertical;
  min-height: 240px;
  max-height: 440px;
  outline: none;
  transition: all 0.2s ease;
}

.modal-prompt-textarea:focus,
#dialog-system-prompt-input.modal-prompt-textarea:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.25), 0 0 16px rgba(0, 229, 255, 0.2) !important;
}

.modal-prompt-textarea::placeholder,
#dialog-system-prompt-input.modal-prompt-textarea::placeholder {
  color: #64748b !important;
}

.modal-textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.guard-pill-note {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-char-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.modal-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-actions-footer.justify-end {
  justify-content: flex-end;
}

.modal-actions-left,
.modal-actions-right {
  display: flex;
  gap: 10px;
}

@media (max-width: 640px) {
  .modal-actions-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .modal-actions-left,
  .modal-actions-right {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .modal-actions-right .btn-primary,
  .modal-actions-right .btn-save-prompt,
  .modal-actions-right .btn-save-auto {
    order: -1 !important;
    width: 100% !important;
    min-height: 44px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.btn-adapt-avito {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  font-weight: 600;
}

.btn-save-prompt,
.btn-save-auto {
  padding: 10px 22px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.modal-form-section {
  margin-bottom: 16px;
}

.auto-reply-cards-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-reply-card-body {
  flex: 1;
}

.auto-reply-card-title {
  font-weight: 700;
  font-size: 14px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auto-reply-card-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.night-reply-card {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.night-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.night-reply-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.night-reply-checkbox {
  transform: scale(1.2);
  cursor: pointer;
}

.night-reply-box {
  margin-top: 10px;
}

.night-reply-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.night-reply-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  resize: vertical;
}

.modal-guards-box {
  margin-bottom: 18px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-guard-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Modal Overlays & Backdrop Interaction Guards
   ========================================================================== */
.omni-modal-backdrop.omni-hidden,
.omni-modal-backdrop.hidden,
.omni-modal-backdrop[style*="display: none"],
.omni-hidden {
  pointer-events: none !important;
}

/* ==========================================================================
   Unified Non-Blocking UI Dialogs (Alert / Confirm / Prompt)
   ========================================================================== */
#aleph-ui-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#aleph-ui-dialog-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.98) 0%, rgba(12, 19, 34, 0.98) 100%);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 229, 255, 0.12);
  padding: 20px;
  color: #dfe2f1;
  font-family: "Inter", sans-serif;
}

#aleph-ui-dialog-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

#aleph-ui-dialog-message {
  margin: 0 0 16px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #bac9cc;
  white-space: pre-line;
  word-break: break-word;
}

#aleph-ui-dialog-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #090d14;
  border: 1px solid #1e293b;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

#aleph-ui-dialog-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.18);
}

#aleph-ui-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.aleph-ui-dialog-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #1e293b;
  transition: all 0.15s ease;
}

.aleph-ui-dialog-btn-cancel {
  background: #121c2e;
  color: #bac9cc;
}

.aleph-ui-dialog-btn-cancel:hover {
  background: #161f33;
  color: #ffffff;
}

.aleph-ui-dialog-btn-confirm {
  background: #00e5ff;
  border-color: #00e5ff;
  color: #001f24;
}

.aleph-ui-dialog-btn-confirm:hover {
  background: #22d3ee;
}


/* ========================================================================= */
/* OMNICHANNEL HUB & FEEDS STYLES (PLAN-12)                                  */
/* ========================================================================= */

.omnichannel-container {
  padding: 24px;
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.omnichannel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.omnichannel-title-block h2 {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.omnichannel-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.omni-section-block {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.omni-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.omni-block-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.omni-block-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.omni-block-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* FEEDS GRID */
.omni-feeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.omni-feed-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.omni-feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.feed-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-icon-title h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.feed-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.feed-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.feed-mini-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* CONNECTORS GRID */
.omni-connectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.omni-connector-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  min-width: 0;
}

.omni-connector-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.connector-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.connector-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connector-title-wrap h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.connector-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.connector-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.connector-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.connector-form-group input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  font-size: 13px;
  transition: border-color 0.2s;
}

.connector-form-group input:focus {
  outline: none;
  border-color: #00e5ff;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.25);
}

.connector-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.connector-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

/* CHIPS GRID */
.channels-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.channel-chip {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.channel-chip.active {
  background: rgba(34, 197, 94, 0.09);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* DYNAMIC AD BOOSTER PRESETS GRID */
.booster-header-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booster-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.booster-preset-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booster-preset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.booster-preset-card.active {
  border: 1px solid #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.preset-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.preset-icon {
  font-size: 20px;
}

.preset-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

.booster-preset-card.active .preset-tag {
  background: #00e5ff;
  color: #020617;
}

.booster-preset-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 8px 0;
}

.preset-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.preset-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* AUTO-GENERATED BY generate_tailwind_fallback.py — DO NOT EDIT DIRECTLY */
/* Offline Self-Contained Tailwind Utility Bundle */

/* Tailwind Keyframes */
@keyframes tw-spin {
  to { transform: rotate(360deg); }
}
@keyframes tw-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes tw-pulse {
  50% { opacity: 0.5; }
}
@keyframes tw-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@keyframes tw-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Base Utilities */
.border { border-width: 1px; }
.inset-0 { inset: 0px; }
.inset-x-0 { left: 0px; right: 0px; }
.m-0 { margin: 0px; }
.m-2 { margin: 0.5rem; }
.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.rounded { border-radius: 0.25rem; }
.\!border { border-width: 1px !important; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.absolute { position: absolute; }
.accent-amber-400 { accent-color: #fbbf24; }
.accent-cyan-400 { accent-color: #22d3ee; }
.accent-emerald-500 { accent-color: #10b981; }
.accent-primary { accent-color: #00e5ff; }
.align-middle { vertical-align: middle; }
.animate-fade-in { animation: tw-fade-in 0.2s ease-out; }
.animate-ping { animation: tw-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-pulse { animation: tw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: tw-spin 1s linear infinite; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bg-amber-400 { background-color: #fbbf24; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-500\/10 { background-color: rgb(245 158 11 / 0.1); }
.bg-amber-500\/15 { background-color: rgb(245 158 11 / 0.15); }
.bg-amber-500\/20 { background-color: rgb(245 158 11 / 0.2); }
.bg-amber-500\/25 { background-color: rgb(245 158 11 / 0.25); }
.bg-amber-500\/30 { background-color: rgb(245 158 11 / 0.3); }
.bg-amber-500\/5 { background-color: rgb(245 158 11 / 0.05); }
.bg-amber-500\/80 { background-color: rgb(245 158 11 / 0.8); }
.bg-amber-500\/90 { background-color: rgb(245 158 11 / 0.9); }
.bg-amber-600\/85 { background-color: rgb(217 119 6 / 0.85); }
.bg-background { background-color: #0f131d; }
.bg-black { background-color: #000000; }
.bg-black\/20 { background-color: rgb(0 0 0 / 0.2); }
.bg-black\/40 { background-color: rgb(0 0 0 / 0.4); }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }
.bg-black\/60 { background-color: rgb(0 0 0 / 0.6); }
.bg-black\/70 { background-color: rgb(0 0 0 / 0.7); }
.bg-black\/75 { background-color: rgb(0 0 0 / 0.75); }
.bg-black\/80 { background-color: rgb(0 0 0 / 0.8); }
.bg-blue-500\/15 { background-color: rgb(59 130 246 / 0.15); }
.bg-blue-500\/20 { background-color: rgb(59 130 246 / 0.2); }
.bg-cyan-400 { background-color: #22d3ee; }
.bg-cyan-500 { background-color: #06b6d4; }
.bg-cyan-500\/10 { background-color: rgb(6 182 212 / 0.1); }
.bg-cyan-500\/15 { background-color: rgb(6 182 212 / 0.15); }
.bg-cyan-500\/20 { background-color: rgb(6 182 212 / 0.2); }
.bg-cyan-500\/25 { background-color: rgb(6 182 212 / 0.25); }
.bg-cyan-600 { background-color: #0891b2; }
.bg-cyan-bright\/35 { background-color: rgb(34 211 238 / 0.35); }
.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-500\/10 { background-color: rgb(16 185 129 / 0.1); }
.bg-emerald-500\/15 { background-color: rgb(16 185 129 / 0.15); }
.bg-emerald-500\/20 { background-color: rgb(16 185 129 / 0.2); }
.bg-emerald-500\/25 { background-color: rgb(16 185 129 / 0.25); }
.bg-emerald-500\/5 { background-color: rgb(16 185 129 / 0.05); }
.bg-emerald-600\/80 { background-color: rgb(5 150 105 / 0.8); }
.bg-emerald-600\/85 { background-color: rgb(5 150 105 / 0.85); }
.bg-error-container\/10 { background-color: rgb(244 63 94 / 0.1); }
.bg-error-container\/20 { background-color: rgb(244 63 94 / 0.2); }
.bg-fuchsia-500\/15 { background-color: rgb(217 70 239 / 0.15); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.bg-indigo-400 { background-color: #818cf8; }
.bg-indigo-500\/10 { background-color: rgb(99 102 241 / 0.1); }
.bg-indigo-500\/15 { background-color: rgb(99 102 241 / 0.15); }
.bg-indigo-500\/20 { background-color: rgb(99 102 241 / 0.2); }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-600\/30 { background-color: rgb(79 70 229 / 0.3); }
.bg-indigo-600\/80 { background-color: rgb(79 70 229 / 0.8); }
.bg-indigo-600\/85 { background-color: rgb(79 70 229 / 0.85); }
.bg-lime-500\/20 { background-color: rgb(132 204 22 / 0.2); }
.bg-orange-500\/15 { background-color: rgb(249 115 22 / 0.15); }
.bg-outline { background-color: #849396; }
.bg-outline-variant { background-color: #1e293b; }
.bg-outline-variant\/60 { background-color: rgb(30 41 59 / 0.6); }
.bg-primary { background-color: #00e5ff; }
.bg-primary-container { background-color: #00e5ff; }
.bg-primary-container\/10 { background-color: rgb(0 229 255 / 0.1); }
.bg-primary-container\/15 { background-color: rgb(0 229 255 / 0.15); }
.bg-primary-container\/20 { background-color: rgb(0 229 255 / 0.2); }
.bg-primary-container\/25 { background-color: rgb(0 229 255 / 0.25); }
.bg-primary\/10 { background-color: rgb(0 229 255 / 0.1); }
.bg-primary\/15 { background-color: rgb(0 229 255 / 0.15); }
.bg-primary\/20 { background-color: rgb(0 229 255 / 0.2); }
.bg-primary\/65 { background-color: rgb(0 229 255 / 0.65); }
.bg-purple-500\/10 { background-color: rgb(168 85 247 / 0.1); }
.bg-purple-500\/15 { background-color: rgb(168 85 247 / 0.15); }
.bg-purple-500\/20 { background-color: rgb(168 85 247 / 0.2); }
.bg-purple-500\/25 { background-color: rgb(168 85 247 / 0.25); }
.bg-purple-600 { background-color: #9333ea; }
.bg-purple-600\/80 { background-color: rgb(147 51 234 / 0.8); }
.bg-red-500\/10 { background-color: rgb(239 68 68 / 0.1); }
.bg-red-500\/15 { background-color: rgb(239 68 68 / 0.15); }
.bg-red-500\/20 { background-color: rgb(239 68 68 / 0.2); }
.bg-rose-400 { background-color: #fb7185; }
.bg-rose-500 { background-color: #f43f5e; }
.bg-rose-500\/10 { background-color: rgb(244 63 94 / 0.1); }
.bg-rose-500\/15 { background-color: rgb(244 63 94 / 0.15); }
.bg-rose-500\/20 { background-color: rgb(244 63 94 / 0.2); }
.bg-rose-500\/30 { background-color: rgb(244 63 94 / 0.3); }
.bg-rose-500\/80 { background-color: rgb(244 63 94 / 0.8); }
.bg-rose-600\/70 { background-color: rgb(225 29 72 / 0.7); }
.bg-secondary\/40 { background-color: rgb(168 85 247 / 0.4); }
.bg-sky-500\/15 { background-color: rgb(14 165 233 / 0.15); }
.bg-sky-500\/20 { background-color: rgb(14 165 233 / 0.2); }
.bg-slate-400 { background-color: #94a3b8; }
.bg-slate-500\/15 { background-color: rgb(100 116 139 / 0.15); }
.bg-success { background-color: #10b981; }
.bg-success\/15 { background-color: rgb(16 185 129 / 0.15); }
.bg-surface { background-color: #0f131d; }
.bg-surface-ai-bubble { background-color: #0d2230; }
.bg-surface-container { background-color: #121c2e; }
.bg-surface-container-high { background-color: #161f33; }
.bg-surface-container-high\/70 { background-color: rgb(22 31 51 / 0.7); }
.bg-surface-container-high\/95 { background-color: rgb(22 31 51 / 0.95); }
.bg-surface-container-highest { background-color: #2c3244; }
.bg-surface-container-low { background-color: #0c1322; }
.bg-surface-container-low\/70 { background-color: rgb(12 19 34 / 0.7); }
.bg-surface-container-low\/75 { background-color: rgb(12 19 34 / 0.75); }
.bg-surface-container-low\/80 { background-color: rgb(12 19 34 / 0.8); }
.bg-surface-container-low\/95 { background-color: rgb(12 19 34 / 0.95); }
.bg-surface-container-lowest { background-color: #090d14; }
.bg-surface-container-lowest\/60 { background-color: rgb(9 13 20 / 0.6); }
.bg-surface-container-lowest\/80 { background-color: rgb(9 13 20 / 0.8); }
.bg-surface-container-lowest\/90 { background-color: rgb(9 13 20 / 0.9); }
.bg-surface-container-lowest\/95 { background-color: rgb(9 13 20 / 0.95); }
.bg-surface-container\/30 { background-color: rgb(18 28 46 / 0.3); }
.bg-surface-container\/40 { background-color: rgb(18 28 46 / 0.4); }
.bg-surface-container\/50 { background-color: rgb(18 28 46 / 0.5); }
.bg-surface-container\/60 { background-color: rgb(18 28 46 / 0.6); }
.bg-surface-container\/75 { background-color: rgb(18 28 46 / 0.75); }
.bg-surface-container\/80 { background-color: rgb(18 28 46 / 0.8); }
.bg-surface-container\/85 { background-color: rgb(18 28 46 / 0.85); }
.bg-surface-container\/95 { background-color: rgb(18 28 46 / 0.95); }
.bg-surface\/95 { background-color: rgb(15 19 29 / 0.95); }
.bg-teal-600 { background-color: #0d9488; }
.bg-tertiary { background-color: #a8ffd2; }
.bg-tertiary\/15 { background-color: rgb(168 255 210 / 0.15); }
.bg-tertiary\/20 { background-color: rgb(168 255 210 / 0.2); }
.bg-transparent { background-color: transparent; }
.bg-warning { background-color: #f59e0b; }
.block { display: block; }
.blur { filter: blur(8px); }
.blur-3xl { filter: blur(64px); }
.border-0 { border-width: 0px; }
.border-2 { border-width: 2px; }
.border-amber-400\/35 { border-color: rgb(251 191 36 / 0.35); }
.border-amber-400\/50 { border-color: rgb(251 191 36 / 0.5); }
.border-amber-400\/60 { border-color: rgb(251 191 36 / 0.6); }
.border-amber-400\/70 { border-color: rgb(251 191 36 / 0.7); }
.border-amber-400\/80 { border-color: rgb(251 191 36 / 0.8); }
.border-amber-500\/25 { border-color: rgb(245 158 11 / 0.25); }
.border-amber-500\/30 { border-color: rgb(245 158 11 / 0.3); }
.border-amber-500\/35 { border-color: rgb(245 158 11 / 0.35); }
.border-amber-500\/40 { border-color: rgb(245 158 11 / 0.4); }
.border-amber-500\/45 { border-color: rgb(245 158 11 / 0.45); }
.border-collapse { border-collapse: collapse; }
.border-cyan-400 { border-color: #22d3ee; }
.border-cyan-400\/35 { border-color: rgb(34 211 238 / 0.35); }
.border-cyan-400\/40 { border-color: rgb(34 211 238 / 0.4); }
.border-cyan-400\/50 { border-color: rgb(34 211 238 / 0.5); }
.border-cyan-400\/60 { border-color: rgb(34 211 238 / 0.6); }
.border-cyan-500\/20 { border-color: rgb(6 182 212 / 0.2); }
.border-cyan-500\/25 { border-color: rgb(6 182 212 / 0.25); }
.border-cyan-500\/30 { border-color: rgb(6 182 212 / 0.3); }
.border-cyan-500\/35 { border-color: rgb(6 182 212 / 0.35); }
.border-cyan-500\/40 { border-color: rgb(6 182 212 / 0.4); }
.border-cyan-500\/45 { border-color: rgb(6 182 212 / 0.45); }
.border-cyan-500\/50 { border-color: rgb(6 182 212 / 0.5); }
.border-cyan-500\/70 { border-color: rgb(6 182 212 / 0.7); }
.border-cyan-bright\/30 { border-color: rgb(34 211 238 / 0.3); }
.border-dashed { border-style: dashed; }
.border-emerald-400 { border-color: #34d399; }
.border-emerald-400\/35 { border-color: rgb(52 211 153 / 0.35); }
.border-emerald-400\/40 { border-color: rgb(52 211 153 / 0.4); }
.border-emerald-400\/50 { border-color: rgb(52 211 153 / 0.5); }
.border-emerald-500\/20 { border-color: rgb(16 185 129 / 0.2); }
.border-emerald-500\/25 { border-color: rgb(16 185 129 / 0.25); }
.border-emerald-500\/30 { border-color: rgb(16 185 129 / 0.3); }
.border-emerald-500\/35 { border-color: rgb(16 185 129 / 0.35); }
.border-emerald-500\/40 { border-color: rgb(16 185 129 / 0.4); }
.border-emerald-500\/45 { border-color: rgb(16 185 129 / 0.45); }
.border-error { border-color: #f43f5e; }
.border-error\/30 { border-color: rgb(244 63 94 / 0.3); }
.border-error\/50 { border-color: rgb(244 63 94 / 0.5); }
.border-fuchsia-500\/30 { border-color: rgb(217 70 239 / 0.3); }
.border-indigo-400\/35 { border-color: rgb(129 140 248 / 0.35); }
.border-indigo-500\/25 { border-color: rgb(99 102 241 / 0.25); }
.border-indigo-500\/30 { border-color: rgb(99 102 241 / 0.3); }
.border-indigo-500\/35 { border-color: rgb(99 102 241 / 0.35); }
.border-indigo-500\/40 { border-color: rgb(99 102 241 / 0.4); }
.border-none { border-style: none; }
.border-orange-500\/30 { border-color: rgb(249 115 22 / 0.3); }
.border-outline-variant { border-color: #1e293b; }
.border-outline-variant\/20 { border-color: rgb(30 41 59 / 0.2); }
.border-outline-variant\/30 { border-color: rgb(30 41 59 / 0.3); }
.border-outline-variant\/40 { border-color: rgb(30 41 59 / 0.4); }
.border-outline-variant\/60 { border-color: rgb(30 41 59 / 0.6); }
.border-outline-variant\/70 { border-color: rgb(30 41 59 / 0.7); }
.border-outline-variant\/80 { border-color: rgb(30 41 59 / 0.8); }
.border-primary { border-color: #00e5ff; }
.border-primary-container { border-color: #00e5ff; }
.border-primary-container\/30 { border-color: rgb(0 229 255 / 0.3); }
.border-primary-container\/40 { border-color: rgb(0 229 255 / 0.4); }
.border-primary\/20 { border-color: rgb(0 229 255 / 0.2); }
.border-primary\/25 { border-color: rgb(0 229 255 / 0.25); }
.border-primary\/30 { border-color: rgb(0 229 255 / 0.3); }
.border-primary\/35 { border-color: rgb(0 229 255 / 0.35); }
.border-primary\/40 { border-color: rgb(0 229 255 / 0.4); }
.border-primary\/45 { border-color: rgb(0 229 255 / 0.45); }
.border-primary\/50 { border-color: rgb(0 229 255 / 0.5); }
.border-purple-400\/30 { border-color: rgb(192 132 252 / 0.3); }
.border-purple-400\/40 { border-color: rgb(192 132 252 / 0.4); }
.border-purple-400\/50 { border-color: rgb(192 132 252 / 0.5); }
.border-purple-400\/60 { border-color: rgb(192 132 252 / 0.6); }
.border-purple-400\/70 { border-color: rgb(192 132 252 / 0.7); }
.border-purple-500 { border-color: #a855f7; }
.border-purple-500\/20 { border-color: rgb(168 85 247 / 0.2); }
.border-purple-500\/30 { border-color: rgb(168 85 247 / 0.3); }
.border-purple-500\/35 { border-color: rgb(168 85 247 / 0.35); }
.border-purple-500\/40 { border-color: rgb(168 85 247 / 0.4); }
.border-purple-500\/45 { border-color: rgb(168 85 247 / 0.45); }
.border-secondary\/40 { border-color: rgb(168 85 247 / 0.4); }
.border-secondary\/45 { border-color: rgb(168 85 247 / 0.45); }
.border-sky-500\/30 { border-color: rgb(14 165 233 / 0.3); }
.border-slate-400\/30 { border-color: rgb(148 163 184 / 0.3); }
.border-success\/25 { border-color: rgb(16 185 129 / 0.25); }
.border-success\/35 { border-color: rgb(16 185 129 / 0.35); }
.border-success\/40 { border-color: rgb(16 185 129 / 0.4); }
.border-surface { border-color: #0f131d; }
.border-warning\/35 { border-color: rgb(245 158 11 / 0.35); }
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }
.box-border { box-sizing: border-box; }
.break-all { word-break: break-all; }
.break-words { overflow-wrap: break-word; }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-12 { grid-column: span 12 / span 12; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-full { grid-column: 1 / -1; }
.cursor-col-resize { cursor: col-resize; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-pointer { cursor: pointer; }
.cursor-text { cursor: text; }
.divide-outline-variant > :not([hidden]) ~ :not([hidden]) { border-color: #1e293b; }
.divide-outline-variant\/40 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(30 41 59 / 0.4); }
.divide-outline-variant\/60 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(30 41 59 / 0.6); }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.fixed { position: fixed; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-none { flex: none; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.font-mono { font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-normal { font-weight: 400; }
.font-sans { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; }
.font-semibold { font-weight: 600; }
.from-amber-400 { --tw-gradient-from: #fbbf24; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-amber-500 { --tw-gradient-from: #f59e0b; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-amber-500\/15 { --tw-gradient-from: rgb(245 158 11 / 0.15); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-amber-500\/20 { --tw-gradient-from: rgb(245 158 11 / 0.2); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-black\/90 { --tw-gradient-from: rgb(0 0 0 / 0.9); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-cyan-400 { --tw-gradient-from: #22d3ee; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-cyan-500 { --tw-gradient-from: #06b6d4; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-cyan-500\/10 { --tw-gradient-from: rgb(6 182 212 / 0.1); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-emerald-500 { --tw-gradient-from: #10b981; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-emerald-500\/20 { --tw-gradient-from: rgb(16 185 129 / 0.2); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary { --tw-gradient-from: #00e5ff; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary-container { --tw-gradient-from: #00e5ff; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary-container\/15 { --tw-gradient-from: rgb(0 229 255 / 0.15); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary\/15 { --tw-gradient-from: rgb(0 229 255 / 0.15); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary\/20 { --tw-gradient-from: rgb(0 229 255 / 0.2); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary\/30 { --tw-gradient-from: rgb(0 229 255 / 0.3); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-purple-500\/30 { --tw-gradient-from: rgb(168 85 247 / 0.3); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-rose-500 { --tw-gradient-from: #f43f5e; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-surface-container-high { --tw-gradient-from: #161f33; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-violet-500 { --tw-gradient-from: #8b5cf6; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-x-2\.5 { column-gap: 0.625rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-y-1 { row-gap: 0.25rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-24 { height: 6rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-32 { height: 8rem; }
.h-36 { height: 9rem; }
.h-4 { height: 1rem; }
.h-4\/5 { height: 80%; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.h-screen { height: 100vh; }
.hidden { display: none; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.italic { font-style: italic; }
.items-baseline { align-items: baseline; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.line-through { text-decoration-line: line-through; }
.list-decimal { list-style-type: decimal; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.list-none { list-style-type: none; }
.lowercase { text-transform: lowercase; }
.max-h-20 { max-height: 5rem; }
.max-h-32 { max-height: 8rem; }
.max-h-36 { max-height: 9rem; }
.max-h-40 { max-height: 10rem; }
.max-h-44 { max-height: 11rem; }
.max-h-48 { max-height: 12rem; }
.max-h-56 { max-height: 14rem; }
.max-h-60 { max-height: 15rem; }
.max-h-64 { max-height: 16rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-full { max-width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xl { max-width: 36rem; }
.max-w-xs { max-width: 20rem; }
.min-h-0 { min-height: 0px; }
.min-w-0 { min-width: 0px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-1\.5 { margin-top: 0.375rem; margin-bottom: 0.375rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.no-underline { text-decoration-line: none; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }
.opacity-85 { opacity: 0.85; }
.opacity-90 { opacity: 0.9; }
.opacity-95 { opacity: 0.95; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.placeholder-on-surface-muted::placeholder { color: #94a3b8; }
.pointer-events-none { pointer-events: none; }
.px-0\.5 { padding-left: 0.125rem; padding-right: 0.125rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0 { padding-top: 0px; padding-bottom: 0px; }
.py-0\.2 { padding-top: 0.05rem; padding-bottom: 0.05rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.relative { position: relative; }
.resize { resize: both; }
.resize-none { resize: none; }
.resize-y { resize: vertical; }
.ring-2 { box-shadow: 0 0 0 2px rgb(0 229 255 / 0.45); }
.ring-emerald-950 { --tw-ring-color: #022c22; box-shadow: 0 0 0 2px #022c22; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-xl { border-radius: 0.75rem; }
.scrollbar-none { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-thin { scrollbar-width: thin; }
.select-all { user-select: all; }
.select-none { user-select: none; }
.select-text { user-select: text; }
.self-end { align-self: flex-end; }
.self-start { align-self: flex-start; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-amber-500\/20 { --tw-shadow-color: rgb(245 158 11 / 0.2); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-primary-container\/20 { --tw-shadow-color: rgb(0 229 255 / 0.2); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shrink-0 { flex-shrink: 0; }
.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem; }
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.125rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.sticky { position: sticky; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-amber-100 { color: #fef3c7; }
.text-amber-200 { color: #fde68a; }
.text-amber-200\/80 { color: rgb(253 230 138 / 0.8); }
.text-amber-200\/90 { color: rgb(253 230 138 / 0.9); }
.text-amber-300 { color: #fcd34d; }
.text-amber-300\/90 { color: rgb(252 211 77 / 0.9); }
.text-amber-400 { color: #fbbf24; }
.text-amber-500 { color: #f59e0b; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-black { color: #000000; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-center { text-align: center; }
.text-cyan { color: #06b6d4; }
.text-cyan-100 { color: #cffafe; }
.text-cyan-200 { color: #a5f3fc; }
.text-cyan-300 { color: #67e8f9; }
.text-cyan-400 { color: #22d3ee; }
.text-cyan-bright { color: #22d3ee; }
.text-emerald-100 { color: #d1fae5; }
.text-emerald-200 { color: #a7f3d0; }
.text-emerald-200\/80 { color: rgb(167 243 208 / 0.8); }
.text-emerald-200\/90 { color: rgb(167 243 208 / 0.9); }
.text-emerald-200\/95 { color: rgb(167 243 208 / 0.95); }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-error { color: #f43f5e; }
.text-error\/90 { color: rgb(244 63 94 / 0.9); }
.text-fuchsia-300 { color: #f0abfc; }
.text-fuchsia-400 { color: #e879f9; }
.text-indigo-200 { color: #c7d2fe; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-400 { color: #818cf8; }
.text-left { text-align: left; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-lime-300 { color: #bef264; }
.text-on-surface { color: #dfe2f1; }
.text-on-surface-muted { color: #94a3b8; }
.text-on-surface-muted\/35 { color: rgb(148 163 184 / 0.35); }
.text-on-surface-muted\/80 { color: rgb(148 163 184 / 0.8); }
.text-on-surface-variant { color: #bac9cc; }
.text-orange-300 { color: #fdba74; }
.text-orange-400 { color: #fb923c; }
.text-outline-variant { color: #1e293b; }
.text-primary { color: #00e5ff; }
.text-primary-container { color: #00e5ff; }
.text-primary\/80 { color: rgb(0 229 255 / 0.8); }
.text-primary\/90 { color: rgb(0 229 255 / 0.9); }
.text-purple-200 { color: #e9d5ff; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.text-red-200 { color: #fecaca; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-right { text-align: right; }
.text-rose { color: #f43f5e; }
.text-rose-200 { color: #fecdd3; }
.text-rose-300 { color: #fda4af; }
.text-rose-400 { color: #fb7185; }
.text-rose-400\/90 { color: rgb(251 113 133 / 0.9); }
.text-rose-500 { color: #f43f5e; }
.text-secondary { color: #a855f7; }
.text-sky-300 { color: #7dd3fc; }
.text-sky-400 { color: #38bdf8; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-950 { color: #020617; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-success { color: #10b981; }
.text-surface-container-lowest { color: #090d14; }
.text-tertiary { color: #a8ffd2; }
.text-transparent { color: transparent; }
.text-violet-300 { color: #c4b5fd; }
.text-warning { color: #f59e0b; }
.text-white { color: #ffffff; }
.text-white\/75 { color: rgb(255 255 255 / 0.75); }
.text-white\/90 { color: rgb(255 255 255 / 0.9); }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.to-amber-500 { --tw-gradient-to: #f59e0b; }
.to-amber-500\/10 { --tw-gradient-to: rgb(245 158 11 / 0.1); }
.to-amber-600 { --tw-gradient-to: #d97706; }
.to-blue-600 { --tw-gradient-to: #2563eb; }
.to-cyan-500 { --tw-gradient-to: #06b6d4; }
.to-cyan-500\/30 { --tw-gradient-to: rgb(6 182 212 / 0.3); }
.to-emerald-400 { --tw-gradient-to: #34d399; }
.to-emerald-500\/10 { --tw-gradient-to: rgb(16 185 129 / 0.1); }
.to-primary-container { --tw-gradient-to: #00e5ff; }
.to-purple-500\/10 { --tw-gradient-to: rgb(168 85 247 / 0.1); }
.to-red-600 { --tw-gradient-to: #dc2626; }
.to-secondary-container\/15 { --tw-gradient-to: rgb(5 102 217 / 0.15); }
.to-success { --tw-gradient-to: #10b981; }
.to-success\/30 { --tw-gradient-to: rgb(16 185 129 / 0.3); }
.to-surface-container-high { --tw-gradient-to: #161f33; }
.to-surface-container-low { --tw-gradient-to: #0c1322; }
.to-teal-500 { --tw-gradient-to: #14b8a6; }
.to-transparent { --tw-gradient-to: transparent; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.underline { text-decoration-line: underline; }
.uppercase { text-transform: uppercase; }
.via-black\/60 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / 0.6), var(--tw-gradient-to); }
.via-cyan-400 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), #22d3ee, var(--tw-gradient-to); }
.via-cyan-bright { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), #22d3ee, var(--tw-gradient-to); }
.via-primary { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), #00e5ff, var(--tw-gradient-to); }
.via-primary-container\/10 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(0 229 255 / 0.1), var(--tw-gradient-to); }
.via-primary-container\/15 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(0 229 255 / 0.15), var(--tw-gradient-to); }
.via-primary-container\/20 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(0 229 255 / 0.2), var(--tw-gradient-to); }
.via-purple-500\/10 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(168 85 247 / 0.1), var(--tw-gradient-to); }
.via-surface-container { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), #121c2e, var(--tw-gradient-to); }
.via-surface-container-lowest { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), #090d14, var(--tw-gradient-to); }
.via-teal-500 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), #14b8a6, var(--tw-gradient-to); }
.visible { visibility: visible; }
.w-1\.5 { width: 0.375rem; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-1\/4 { width: 25%; }
.w-1\/6 { width: 16.666667%; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-2\/12 { width: 16.666667%; }
.w-2\/3 { width: 66.666667%; }
.w-20 { width: 5rem; }
.w-28 { width: 7rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-3\/4 { width: 75%; }
.w-36 { width: 9rem; }
.w-4 { width: 1rem; }
.w-4\/12 { width: 33.333333%; }
.w-5 { width: 1.25rem; }
.w-5\/12 { width: 41.666667%; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.w-px { width: 1px; }
.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.\!bg-\[\#090d14\] { background-color: #090d14 !important; }
.\!bg-cyan-bright\/15 { background-color: rgb(34 211 238 / 0.15) !important; }
.\!bg-primary\/15 { background-color: rgb(0 229 255 / 0.15) !important; }
.\!bg-surface-ai-bubble { background-color: #0d2230 !important; }
.\!bg-surface-container-high { background-color: #161f33 !important; }
.\!bg-surface-container\/40 { background-color: rgb(18 28 46 / 0.4) !important; }
.\!border-0 { border-width: 0px !important; }
.\!border-outline-variant { border-color: #1e293b !important; }
.\!border-primary\/25 { border-color: rgb(0 229 255 / 0.25) !important; }
.\!border-primary\/40 { border-color: rgb(0 229 255 / 0.4) !important; }
.\!gap-3 { gap: 0.75rem !important; }
.\!grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.\!rounded-none { border-radius: 0px !important; }
.\!text-\[\#dfe2f1\] { color: #dfe2f1 !important; }
.\!text-cyan-bright { color: #22d3ee !important; }
.\!text-on-surface { color: #dfe2f1 !important; }
.\!text-on-surface-variant { color: #bac9cc !important; }
.\!text-primary { color: #00e5ff !important; }
.\[filter\:drop-shadow\(0_0_10px_rgba\(0\,229\,255\,0\.55\)\)\] { filter: drop-shadow(0 0 10px rgba(0,229,255,0.55)); }
.bg-\[\#07090E\] { background-color: #07090E; }
.bg-\[\#090d14\] { background-color: #090d14; }
.bg-\[\#0c1322\]\/95 { background-color: rgb(12 19 34 / 0.95); }
.bg-\[\#1e293b\] { background-color: #1e293b; }
.bg-\[\#6366f1\] { background-color: #6366f1; }
.bg-\[\#6366f1\]\/15 { background-color: rgb(99 102 241 / 0.15); }
.bg-\[\#6366f1\]\/20 { background-color: rgb(99 102 241 / 0.2); }
.border-\[\#1e293b\] { border-color: #1e293b; }
.border-\[\#6366f1\]\/30 { border-color: rgb(99 102 241 / 0.3); }
.border-\[\#6366f1\]\/35 { border-color: rgb(99 102 241 / 0.35); }
.border-\[\#6366f1\]\/40 { border-color: rgb(99 102 241 / 0.4); }
.divide-\[\#1e293b\] > :not([hidden]) ~ :not([hidden]) { border-color: #1e293b; }
.divide-\[\#1e293b\]\/70 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(30 41 59 / 0.7); }
.from-\[\#6366f1\] { --tw-gradient-from: #6366f1; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.h-\[100dvh\] { height: 100dvh; }
.h-\[18px\] { height: 18px; }
.h-\[36px\] { height: 36px; }
.max-h-\[120px\] { max-height: 120px; }
.max-h-\[220px\] { max-height: 220px; }
.max-h-\[50vh\] { max-height: 50vh; }
.max-h-\[72px\] { max-height: 72px; }
.max-h-\[85vh\] { max-height: 85vh; }
.max-h-\[88vh\] { max-height: 88vh; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-h-\[calc\(100dvh-24px\)\] { max-height: calc(100dvh - 24px); }
.max-w-\[1320px\] { max-width: 1320px; }
.max-w-\[1440px\] { max-width: 1440px; }
.max-w-\[150px\] { max-width: 150px; }
.max-w-\[170px\] { max-width: 170px; }
.max-w-\[180px\] { max-width: 180px; }
.max-w-\[200px\] { max-width: 200px; }
.max-w-\[220px\] { max-width: 220px; }
.max-w-\[240px\] { max-width: 240px; }
.max-w-\[44px\] { max-width: 44px; }
.max-w-\[64px\] { max-width: 64px; }
.max-w-\[85\%\] { max-width: 85%; }
.max-w-\[90px\] { max-width: 90px; }
.max-w-\[92\%\] { max-width: 92%; }
.max-w-\[920px\] { max-width: 920px; }
.max-w-\[calc\(100vw-130px\)\] { max-width: calc(100vw - 130px); }
.min-h-\[120px\] { min-height: 120px; }
.min-h-\[140px\] { min-height: 140px; }
.min-h-\[160px\] { min-height: 160px; }
.min-h-\[220px\] { min-height: 220px; }
.min-h-\[240px\] { min-height: 240px; }
.min-h-\[26px\] { min-height: 26px; }
.min-h-\[32px\] { min-height: 32px; }
.min-h-\[34px\] { min-height: 34px; }
.min-h-\[36px\] { min-height: 36px; }
.min-h-\[38px\] { min-height: 38px; }
.min-h-\[40px\] { min-height: 40px; }
.min-h-\[44px\] { min-height: 44px; }
.min-h-\[48px\] { min-height: 48px; }
.min-h-\[56px\] { min-height: 56px; }
.min-h-\[72px\] { min-height: 72px; }
.min-w-\[120px\] { min-width: 120px; }
.min-w-\[12px\] { min-width: 12px; }
.min-w-\[14px\] { min-width: 14px; }
.min-w-\[16px\] { min-width: 16px; }
.min-w-\[18px\] { min-width: 18px; }
.min-w-\[200px\] { min-width: 200px; }
.min-w-\[220px\] { min-width: 220px; }
.min-w-\[260px\] { min-width: 260px; }
.min-w-\[36px\] { min-width: 36px; }
.min-w-\[40px\] { min-width: 40px; }
.min-w-\[44px\] { min-width: 44px; }
.min-w-\[68px\] { min-width: 68px; }
.min-w-\[760px\] { min-width: 760px; }
.shadow-\[0_0_10px_rgba\(0\,229\,255\,0\.2\)\] { box-shadow: 0 0 10px rgba(0,229,255,0.2); }
.shadow-\[0_0_10px_rgba\(0\,229\,255\,0\.35\)\] { box-shadow: 0 0 10px rgba(0,229,255,0.35); }
.shadow-\[0_0_10px_rgba\(0\,229\,255\,0\.5\)\] { box-shadow: 0 0 10px rgba(0,229,255,0.5); }
.shadow-\[0_0_12px_rgba\(0\,229\,255\,0\.12\)\] { box-shadow: 0 0 12px rgba(0,229,255,0.12); }
.shadow-\[0_0_12px_rgba\(0\,229\,255\,0\.22\)\] { box-shadow: 0 0 12px rgba(0,229,255,0.22); }
.shadow-\[0_0_12px_rgba\(0\,229\,255\,0\.25\)\] { box-shadow: 0 0 12px rgba(0,229,255,0.25); }
.shadow-\[0_0_12px_rgba\(0\,229\,255\,0\.35\)\] { box-shadow: 0 0 12px rgba(0,229,255,0.35); }
.shadow-\[0_0_12px_rgba\(0\,229\,255\,0\.5\)\] { box-shadow: 0 0 12px rgba(0,229,255,0.5); }
.shadow-\[0_0_12px_rgba\(245\,158\,11\,0\.25\)\] { box-shadow: 0 0 12px rgba(245,158,11,0.25); }
.shadow-\[0_0_12px_rgba\(6\,182\,212\,0\.3\)\] { box-shadow: 0 0 12px rgba(6,182,212,0.3); }
.shadow-\[0_0_14px_rgba\(0\,229\,255\,0\.2\)\] { box-shadow: 0 0 14px rgba(0,229,255,0.2); }
.shadow-\[0_0_14px_rgba\(16\,185\,129\,0\.22\)\] { box-shadow: 0 0 14px rgba(16,185,129,0.22); }
.shadow-\[0_0_15px_rgba\(16\,185\,129\,0\.3\)\] { box-shadow: 0 0 15px rgba(16,185,129,0.3); }
.shadow-\[0_0_15px_rgba\(16\,185\,129\,0\.35\)\] { box-shadow: 0 0 15px rgba(16,185,129,0.35); }
.shadow-\[0_0_15px_rgba\(244\,63\,94\,0\.35\)\] { box-shadow: 0 0 15px rgba(244,63,94,0.35); }
.shadow-\[0_0_15px_rgba\(245\,158\,11\,0\.35\)\] { box-shadow: 0 0 15px rgba(245,158,11,0.35); }
.shadow-\[0_0_16px_rgba\(0\,229\,255\,0\.28\)\] { box-shadow: 0 0 16px rgba(0,229,255,0.28); }
.shadow-\[0_0_16px_rgba\(16\,185\,129\,0\.3\)\] { box-shadow: 0 0 16px rgba(16,185,129,0.3); }
.shadow-\[0_0_20px_rgba\(16\,185\,129\,0\.3\)\] { box-shadow: 0 0 20px rgba(16,185,129,0.3); }
.shadow-\[0_0_50px_rgba\(16\,185\,129\,0\.18\)\] { box-shadow: 0 0 50px rgba(16,185,129,0.18); }
.shadow-\[0_0_6px_\#00e5ff\] { box-shadow: 0 0 6px #00e5ff; }
.shadow-\[0_0_6px_\#10b981\] { box-shadow: 0 0 6px #10b981; }
.shadow-\[0_0_6px_rgba\(52\,211\,153\,0\.8\)\] { box-shadow: 0 0 6px rgba(52,211,153,0.8); }
.shadow-\[0_0_8px_\#00e5ff\] { box-shadow: 0 0 8px #00e5ff; }
.shadow-\[0_0_8px_rgba\(0\,229\,255\,0\.15\)\] { box-shadow: 0 0 8px rgba(0,229,255,0.15); }
.shadow-\[0_0_8px_rgba\(0\,229\,255\,0\.2\)\] { box-shadow: 0 0 8px rgba(0,229,255,0.2); }
.shadow-\[0_0_8px_rgba\(0\,229\,255\,0\.6\)\] { box-shadow: 0 0 8px rgba(0,229,255,0.6); }
.shadow-\[0_0_8px_rgba\(52\,211\,153\,0\.8\)\] { box-shadow: 0 0 8px rgba(52,211,153,0.8); }
.shadow-\[0_2px_10px_rgba\(16\,185\,129\,0\.28\)\] { box-shadow: 0 2px 10px rgba(16,185,129,0.28); }
.shadow-\[0_4px_18px_rgba\(0\,229\,255\,0\.08\)\] { box-shadow: 0 4px 18px rgba(0,229,255,0.08); }
.shadow-\[0_4px_24px_rgba\(0\,229\,255\,0\.08\)\] { box-shadow: 0 4px 24px rgba(0,229,255,0.08); }
.shadow-\[0_8px_32px_rgba\(0\,0\,0\,0\.5\)\] { box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.shadow-\[inset_0_0_24px_rgba\(0\,229\,255\,0\.06\)\] { box-shadow: inset 0 0 24px rgba(0,229,255,0.06); }
.text-\[\#001318\] { color: #001318; }
.text-\[\#001f24\] { color: #001f24; }
.text-\[\#002113\] { color: #002113; }
.text-\[\#1e293b\] { color: #1e293b; }
.text-\[10\.5px\] { font-size: 10.5px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11\.5px\] { font-size: 11.5px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }
.text-\[8px\] { font-size: 8px; }
.text-\[9px\] { font-size: 9px; }
.to-\[\#00e5ff\] { --tw-gradient-to: #00e5ff; }
.w-\[92\%\] { width: 92%; }
.z-\[1200\] { z-index: 1200; }
.z-\[99999\] { z-index: 99999; }
.z-\[9999\] { z-index: 9999; }
.-bottom-0\.5 { bottom: -0.125rem; }
.-right-0\.5 { right: -0.125rem; }
.-right-1 { right: -0.25rem; }
.-top-1 { top: -0.25rem; }
.border-b { border-bottom-width: 1px; }
.border-blue-500\/30 { border-color: rgb(59 130 246 / 0.3); }
.border-blue-500\/40 { border-color: rgb(59 130 246 / 0.4); }
.border-l-2 { border-left-width: 2px; }
.border-l-amber-400 { border-left-color: #fbbf24; }
.border-l-primary { border-left-color: #00e5ff; }
.border-lime-500\/30 { border-color: rgb(132 204 22 / 0.3); }
.border-lime-500\/40 { border-color: rgb(132 204 22 / 0.4); }
.border-r { border-right-width: 1px; }
.border-red-500\/30 { border-color: rgb(239 68 68 / 0.3); }
.border-rose-400 { border-color: #fb7185; }
.border-rose-400\/40 { border-color: rgb(251 113 133 / 0.4); }
.border-rose-500\/25 { border-color: rgb(244 63 94 / 0.25); }
.border-rose-500\/30 { border-color: rgb(244 63 94 / 0.3); }
.border-rose-500\/35 { border-color: rgb(244 63 94 / 0.35); }
.border-rose-500\/40 { border-color: rgb(244 63 94 / 0.4); }
.border-rose-500\/45 { border-color: rgb(244 63 94 / 0.45); }
.border-rose-500\/50 { border-color: rgb(244 63 94 / 0.5); }
.border-t { border-top-width: 1px; }
.border-t-transparent { border-top-color: transparent; }
.border-tertiary\/25 { border-color: rgb(168 255 210 / 0.25); }
.border-tertiary\/30 { border-color: rgb(168 255 210 / 0.3); }
.border-transparent { border-color: transparent; }
.bottom-0 { bottom: 0px; }
.bottom-2 { bottom: 0.5rem; }
.bottom-6 { bottom: 1.5rem; }
.left-0 { left: 0px; }
.left-1\.5 { left: 0.375rem; }
.left-1\/2 { left: 50%; }
.left-2 { left: 0.5rem; }
.left-2\.5 { left: 0.625rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-0\.5 { margin-left: 0.125rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-auto { margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-3\.5 { margin-top: 0.875rem; }
.mt-4 { margin-top: 1rem; }
.pb-0\.5 { padding-bottom: 0.125rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-1\.5 { padding-bottom: 0.375rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-8 { padding-left: 2rem; }
.pr-0\.5 { padding-right: 0.125rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-9 { padding-right: 2.25rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-1\.5 { padding-top: 0.375rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-2\.5 { padding-top: 0.625rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.right-0 { right: 0px; }
.right-1 { right: 0.25rem; }
.right-1\.5 { right: 0.375rem; }
.right-2 { right: 0.5rem; }
.right-6 { right: 1.5rem; }
.rounded-bl-sm { border-bottom-left-radius: 0.125rem; }
.rounded-br-sm { border-bottom-right-radius: 0.125rem; }
.rounded-tl-sm { border-top-left-radius: 0.125rem; }
.rounded-tr-sm { border-top-right-radius: 0.125rem; }
.top-0 { top: 0px; }
.top-0\.5 { top: 0.125rem; }
.top-1 { top: 0.25rem; }
.top-1\.5 { top: 0.375rem; }
.top-2 { top: 0.5rem; }
.top-2\.5 { top: 0.625rem; }
.\!border-l-2 { border-left-width: 2px !important; }
.\!border-l-primary { border-left-color: #00e5ff !important; }
.\!border-l-transparent { border-left-color: transparent !important; }
.after\:border::after { border-width: 1px; }
.active\:scale-95:active { transform: scale(0.95); }
.after\:absolute::after { position: absolute; }
.after\:bg-white::after { background-color: #ffffff; }
.after\:border-gray-300::after { border-color: #d1d5db; }
.after\:h-3::after { height: 0.75rem; }
.after\:rounded-full::after { border-radius: 9999px; }
.after\:transition-all::after { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.after\:w-3::after { width: 0.75rem; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\:opacity-40:disabled { opacity: 0.4; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }
.focus-within\:border-primary-container\/70:focus-within { border-color: rgb(0 229 255 / 0.7); }
.focus-within\:border-primary\/60:focus-within { border-color: rgb(0 229 255 / 0.6); }
.focus\:border-amber-400:focus { border-color: #fbbf24; }
.focus\:border-cyan-400:focus { border-color: #22d3ee; }
.focus\:border-emerald-400:focus { border-color: #34d399; }
.focus\:border-indigo-400:focus { border-color: #818cf8; }
.focus\:border-primary:focus { border-color: #00e5ff; }
.focus\:border-primary-container:focus { border-color: #00e5ff; }
.focus\:border-primary-container\/60:focus { border-color: rgb(0 229 255 / 0.6); }
.focus\:border-primary\/60:focus { border-color: rgb(0 229 255 / 0.6); }
.focus\:border-purple-500:focus { border-color: #a855f7; }
.focus\:border-secondary\/60:focus { border-color: rgb(168 85 247 / 0.6); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-0:focus { box-shadow: 0 0 #0000; }
.focus\:ring-cyan-400\/50:focus { --tw-ring-color: rgb(34 211 238 / 0.5); box-shadow: 0 0 0 2px rgb(34 211 238 / 0.5); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:rotate-45 { transform: rotate(45deg); }
.group:hover .group-hover\:scale-102 { transform: scale(1.02); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:text-emerald-300 { color: #6ee7b7; }
.group:hover .group-hover\:text-indigo-300 { color: #a5b4fc; }
.group:hover .group-hover\:text-primary { color: #00e5ff; }
.group:hover .group-hover\:text-rose-300 { color: #fda4af; }
.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }
.hover\:bg-amber-400:hover { background-color: #fbbf24; }
.hover\:bg-amber-500:hover { background-color: #f59e0b; }
.hover\:bg-amber-500\/15:hover { background-color: rgb(245 158 11 / 0.15); }
.hover\:bg-amber-500\/20:hover { background-color: rgb(245 158 11 / 0.2); }
.hover\:bg-amber-500\/25:hover { background-color: rgb(245 158 11 / 0.25); }
.hover\:bg-amber-500\/30:hover { background-color: rgb(245 158 11 / 0.3); }
.hover\:bg-black:hover { background-color: #000000; }
.hover\:bg-blue-500\/30:hover { background-color: rgb(59 130 246 / 0.3); }
.hover\:bg-cyan-400:hover { background-color: #22d3ee; }
.hover\:bg-cyan-500:hover { background-color: #06b6d4; }
.hover\:bg-cyan-500\/15:hover { background-color: rgb(6 182 212 / 0.15); }
.hover\:bg-cyan-500\/20:hover { background-color: rgb(6 182 212 / 0.2); }
.hover\:bg-cyan-500\/25:hover { background-color: rgb(6 182 212 / 0.25); }
.hover\:bg-cyan-500\/30:hover { background-color: rgb(6 182 212 / 0.3); }
.hover\:bg-cyan-500\/35:hover { background-color: rgb(6 182 212 / 0.35); }
.hover\:bg-cyan-bright:hover { background-color: #22d3ee; }
.hover\:bg-emerald-400:hover { background-color: #34d399; }
.hover\:bg-emerald-500:hover { background-color: #10b981; }
.hover\:bg-emerald-500\/15:hover { background-color: rgb(16 185 129 / 0.15); }
.hover\:bg-emerald-500\/20:hover { background-color: rgb(16 185 129 / 0.2); }
.hover\:bg-emerald-500\/25:hover { background-color: rgb(16 185 129 / 0.25); }
.hover\:bg-emerald-500\/30:hover { background-color: rgb(16 185 129 / 0.3); }
.hover\:bg-emerald-500\/35:hover { background-color: rgb(16 185 129 / 0.35); }
.hover\:bg-emerald-500\/40:hover { background-color: rgb(16 185 129 / 0.4); }
.hover\:bg-emerald-500\/5:hover { background-color: rgb(16 185 129 / 0.05); }
.hover\:bg-error:hover { background-color: #f43f5e; }
.hover\:bg-error\/20:hover { background-color: rgb(244 63 94 / 0.2); }
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.hover\:bg-primary-container:hover { background-color: #00e5ff; }
.hover\:bg-primary-container\/20:hover { background-color: rgb(0 229 255 / 0.2); }
.hover\:bg-primary-container\/30:hover { background-color: rgb(0 229 255 / 0.3); }
.hover\:bg-primary-container\/90:hover { background-color: rgb(0 229 255 / 0.9); }
.hover\:bg-primary\/15:hover { background-color: rgb(0 229 255 / 0.15); }
.hover\:bg-primary\/20:hover { background-color: rgb(0 229 255 / 0.2); }
.hover\:bg-primary\/25:hover { background-color: rgb(0 229 255 / 0.25); }
.hover\:bg-primary\/30:hover { background-color: rgb(0 229 255 / 0.3); }
.hover\:bg-primary\/35:hover { background-color: rgb(0 229 255 / 0.35); }
.hover\:bg-primary\/90:hover { background-color: rgb(0 229 255 / 0.9); }
.hover\:bg-purple-500:hover { background-color: #a855f7; }
.hover\:bg-purple-500\/15:hover { background-color: rgb(168 85 247 / 0.15); }
.hover\:bg-purple-500\/25:hover { background-color: rgb(168 85 247 / 0.25); }
.hover\:bg-purple-500\/30:hover { background-color: rgb(168 85 247 / 0.3); }
.hover\:bg-purple-500\/40:hover { background-color: rgb(168 85 247 / 0.4); }
.hover\:bg-rose-500:hover { background-color: #f43f5e; }
.hover\:bg-rose-500\/15:hover { background-color: rgb(244 63 94 / 0.15); }
.hover\:bg-rose-500\/20:hover { background-color: rgb(244 63 94 / 0.2); }
.hover\:bg-rose-500\/25:hover { background-color: rgb(244 63 94 / 0.25); }
.hover\:bg-rose-500\/30:hover { background-color: rgb(244 63 94 / 0.3); }
.hover\:bg-rose-500\/35:hover { background-color: rgb(244 63 94 / 0.35); }
.hover\:bg-rose-500\/40:hover { background-color: rgb(244 63 94 / 0.4); }
.hover\:bg-rose-500\/5:hover { background-color: rgb(244 63 94 / 0.05); }
.hover\:bg-rose-600:hover { background-color: #e11d48; }
.hover\:bg-success\/15:hover { background-color: rgb(16 185 129 / 0.15); }
.hover\:bg-surface-container:hover { background-color: #121c2e; }
.hover\:bg-surface-container-high:hover { background-color: #161f33; }
.hover\:bg-surface-container-high\/40:hover { background-color: rgb(22 31 51 / 0.4); }
.hover\:bg-surface-container-highest:hover { background-color: #2c3244; }
.hover\:bg-surface-container\/40:hover { background-color: rgb(18 28 46 / 0.4); }
.hover\:bg-surface-container\/50:hover { background-color: rgb(18 28 46 / 0.5); }
.hover\:bg-surface-container\/70:hover { background-color: rgb(18 28 46 / 0.7); }
.hover\:bg-teal-500:hover { background-color: #14b8a6; }
.hover\:bg-tertiary\/80:hover { background-color: rgb(168 255 210 / 0.8); }
.hover\:border-amber-300\/70:hover { border-color: rgb(252 211 77 / 0.7); }
.hover\:border-amber-400\/50:hover { border-color: rgb(251 191 36 / 0.5); }
.hover\:border-amber-400\/60:hover { border-color: rgb(251 191 36 / 0.6); }
.hover\:border-cyan-300\/70:hover { border-color: rgb(103 232 249 / 0.7); }
.hover\:border-cyan-400:hover { border-color: #22d3ee; }
.hover\:border-emerald-300\/70:hover { border-color: rgb(110 231 183 / 0.7); }
.hover\:border-emerald-400:hover { border-color: #34d399; }
.hover\:border-emerald-400\/40:hover { border-color: rgb(52 211 153 / 0.4); }
.hover\:border-emerald-400\/50:hover { border-color: rgb(52 211 153 / 0.5); }
.hover\:border-emerald-400\/70:hover { border-color: rgb(52 211 153 / 0.7); }
.hover\:border-indigo-300\/70:hover { border-color: rgb(165 180 252 / 0.7); }
.hover\:border-indigo-400\/40:hover { border-color: rgb(129 140 248 / 0.4); }
.hover\:border-indigo-400\/50:hover { border-color: rgb(129 140 248 / 0.5); }
.hover\:border-outline:hover { border-color: #849396; }
.hover\:border-primary:hover { border-color: #00e5ff; }
.hover\:border-primary-container:hover { border-color: #00e5ff; }
.hover\:border-primary-container\/40:hover { border-color: rgb(0 229 255 / 0.4); }
.hover\:border-primary-container\/50:hover { border-color: rgb(0 229 255 / 0.5); }
.hover\:border-primary-container\/60:hover { border-color: rgb(0 229 255 / 0.6); }
.hover\:border-primary\/35:hover { border-color: rgb(0 229 255 / 0.35); }
.hover\:border-primary\/40:hover { border-color: rgb(0 229 255 / 0.4); }
.hover\:border-primary\/45:hover { border-color: rgb(0 229 255 / 0.45); }
.hover\:border-primary\/50:hover { border-color: rgb(0 229 255 / 0.5); }
.hover\:border-primary\/60:hover { border-color: rgb(0 229 255 / 0.6); }
.hover\:border-primary\/80:hover { border-color: rgb(0 229 255 / 0.8); }
.hover\:border-purple-400\/50:hover { border-color: rgb(192 132 252 / 0.5); }
.hover\:border-slate-300\/60:hover { border-color: rgb(203 213 225 / 0.6); }
.hover\:border-success\/40:hover { border-color: rgb(16 185 129 / 0.4); }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.hover\:from-cyan-400:hover { --tw-gradient-from: #22d3ee; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:from-purple-500\/40:hover { --tw-gradient-from: rgb(168 85 247 / 0.4); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-95:hover { opacity: 0.95; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:text-amber-300:hover { color: #fcd34d; }
.hover\:text-cyan-bright:hover { color: #22d3ee; }
.hover\:text-emerald-300:hover { color: #6ee7b7; }
.hover\:text-error:hover { color: #f43f5e; }
.hover\:text-on-surface:hover { color: #dfe2f1; }
.hover\:text-primary:hover { color: #00e5ff; }
.hover\:text-purple-200:hover { color: #e9d5ff; }
.hover\:text-rose-200:hover { color: #fecdd3; }
.hover\:text-rose-300:hover { color: #fda4af; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:to-blue-500:hover { --tw-gradient-to: #3b82f6; }
.hover\:to-cyan-500\/40:hover { --tw-gradient-to: rgb(6 182 212 / 0.4); }
.hover\:underline:hover { text-decoration-line: underline; }
.peer:checked ~ .peer-checked\:after\:border-white::after { border-color: #ffffff; }
.peer:checked ~ .peer-checked\:after\:translate-x-full::after { transform: translateX(100%); }
.peer:checked ~ .peer-checked\:bg-emerald-500 { background-color: #10b981; }
.peer:focus ~ .peer-focus\:outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.placeholder\:text-on-surface-muted::placeholder { color: #94a3b8; }
.placeholder\:text-outline\/40::placeholder { color: rgb(132 147 150 / 0.4); }
.selection\:bg-primary-container::selection { background-color: #00e5ff; }
.selection\:text-black::selection { color: #000000; }
.after\:content-\[\'\'\]::after { content: ''; }
.hover\:\!bg-surface-container-high\/80:hover { background-color: rgb(22 31 51 / 0.8) !important; }
.hover\:bg-\[\#6366f1\]\/25:hover { background-color: rgb(99 102 241 / 0.25); }
.hover\:bg-\[\#6366f1\]\/30:hover { background-color: rgb(99 102 241 / 0.3); }
.hover\:bg-\[\#9cf0ff\]:hover { background-color: #9cf0ff; }
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01); }
.hover\:shadow-\[0_0_12px_rgba\(16\,185\,129\,0\.4\)\]:hover { box-shadow: 0 0 12px rgba(16,185,129,0.4); }
.hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover { box-shadow: 0 0 12px rgba(244,63,94,0.4); }
.hover\:shadow-\[0_0_12px_rgba\(245\,158\,11\,0\.4\)\]:hover { box-shadow: 0 0 12px rgba(245,158,11,0.4); }
.hover\:shadow-\[0_0_12px_rgba\(59\,130\,246\,0\.4\)\]:hover { box-shadow: 0 0 12px rgba(59,130,246,0.4); }
.hover\:shadow-\[0_0_14px_rgba\(6\,182\,212\,0\.5\)\]:hover { box-shadow: 0 0 14px rgba(6,182,212,0.5); }
.hover\:shadow-\[0_0_16px_rgba\(6\,182\,212\,0\.5\)\]:hover { box-shadow: 0 0 16px rgba(6,182,212,0.5); }
.hover\:shadow-\[0_0_20px_rgba\(16\,185\,129\,0\.5\)\]:hover { box-shadow: 0 0 20px rgba(16,185,129,0.5); }
.hover\:shadow-\[0_0_20px_rgba\(244\,63\,94\,0\.5\)\]:hover { box-shadow: 0 0 20px rgba(244,63,94,0.5); }
.hover\:shadow-\[0_0_20px_rgba\(245\,158\,11\,0\.5\)\]:hover { box-shadow: 0 0 20px rgba(245,158,11,0.5); }
.hover\:shadow-\[0_0_25px_rgba\(16\,185\,129\,0\.5\)\]:hover { box-shadow: 0 0 25px rgba(16,185,129,0.5); }
.hover\:text-\[\#001f24\]:hover { color: #001f24; }
.first\:border-t-0:first { border-top-width: 0px; }
.focus\:border-blue-400:focus { border-color: #60a5fa; }
.focus\:border-rose-400:focus { border-color: #fb7185; }
.focus\:border-tertiary:focus { border-color: #a8ffd2; }
.hover\:border-lime-400:hover { border-color: #a3e635; }
.hover\:border-rose-400:hover { border-color: #fb7185; }
.hover\:border-rose-400\/50:hover { border-color: rgb(251 113 133 / 0.5); }
.hover\:border-rose-400\/70:hover { border-color: rgb(251 113 133 / 0.7); }
.hover\:border-rose-400\/80:hover { border-color: rgb(251 113 133 / 0.8); }
.after\:left-\[2px\]::after { left: 2px; }
.after\:top-\[2px\]::after { top: 2px; }

/* Responsive: sm */
@media (min-width: 640px) {
  .sm\:p-2\.5 { padding: 0.625rem; }
  .sm\:p-3 { padding: 0.75rem; }
  .sm\:p-3\.5 { padding: 0.875rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:block { display: block; }
  .sm\:col-span-1 { grid-column: span 1 / span 1; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:flex { display: flex; }
  .sm\:flex-1 { flex: 1 1 0%; }
  .sm\:flex-none { flex: none; }
  .sm\:flex-nowrap { flex-wrap: nowrap; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-wrap { flex-wrap: wrap; }
  .sm\:gap-1\.5 { gap: 0.375rem; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-2\.5 { gap: 0.625rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm\:h-8 { height: 2rem; }
  .sm\:h-9 { height: 2.25rem; }
  .sm\:hidden { display: none; }
  .sm\:inline { display: inline; }
  .sm\:inline-block { display: inline-block; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:max-w-lg { max-width: 32rem; }
  .sm\:max-w-none { max-width: none; }
  .sm\:min-h-0 { min-height: 0px; }
  .sm\:min-w-0 { min-width: 0px; }
  .sm\:px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
  .sm\:px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
  .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:self-auto { align-self: auto; }
  .sm\:space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
  .sm\:space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-right { text-align: right; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:w-56 { width: 14rem; }
  .sm\:w-8 { width: 2rem; }
  .sm\:w-9 { width: 2.25rem; }
  .sm\:w-auto { width: auto; }
  .sm\:grid-cols-\[1fr_170px_auto\] { grid-template-columns: 1fr 170px auto; }
  .sm\:max-h-\[90vh\] { max-height: 90vh; }
  .sm\:max-h-\[92vh\] { max-height: 92vh; }
  .sm\:max-h-\[94vh\] { max-height: 94vh; }
  .sm\:max-w-\[200px\] { max-width: 200px; }
  .sm\:min-h-\[34px\] { min-height: 34px; }
  .sm\:min-h-\[36px\] { min-height: 36px; }
  .sm\:min-w-\[240px\] { min-width: 240px; }
  .sm\:min-w-\[260px\] { min-width: 260px; }
  .sm\:text-\[10px\] { font-size: 10px; }
  .sm\:text-\[11px\] { font-size: 11px; }
  .sm\:ml-0 { margin-left: 0px; }
  .sm\:ml-auto { margin-left: auto; }
  .sm\:pt-0 { padding-top: 0px; }
}

/* Responsive: md */
@media (min-width: 768px) {
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:flex { display: flex; }
  .md\:flex-col { flex-direction: column; }
  .md\:flex-none { flex: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:hidden { display: none; }
  .md\:inline { display: inline; }
  .md\:inline-flex { display: inline-flex; }
  .md\:items-center { align-items: center; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:sticky { position: sticky; }
  .md\:w-60 { width: 15rem; }
  .md\:w-auto { width: auto; }
  .md\:w-\[330px\] { width: 330px; }
  .md\:pb-0 { padding-bottom: 0px; }
  .md\:pb-12 { padding-bottom: 3rem; }
  .md\:pb-6 { padding-bottom: 1.5rem; }
  .md\:top-4 { top: 1rem; }
}

/* Responsive: lg */
@media (min-width: 1024px) {
  .lg\:p-0 { padding: 0px; }
  .lg\:p-3\.5 { padding: 0.875rem; }
  .lg\:p-4 { padding: 1rem; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:flex { display: flex; }
  .lg\:flex-1 { flex: 1 1 0%; }
  .lg\:flex-none { flex: none; }
  .lg\:flex-nowrap { flex-wrap: nowrap; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:h-14 { height: 3.5rem; }
  .lg\:hidden { display: none; }
  .lg\:items-center { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:min-h-0 { min-height: 0px; }
  .lg\:overflow-hidden { overflow: hidden; }
  .lg\:overflow-x-auto { overflow-x: auto; }
  .lg\:overflow-y-auto { overflow-y: auto; }
  .lg\:py-0 { padding-top: 0px; padding-bottom: 0px; }
  .lg\:space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0px; }
  .lg\:w-auto { width: auto; }
  .lg\:min-h-\[34px\] { min-height: 34px; }
  .lg\:min-h-\[55vh\] { min-height: 55vh; }
  .lg\:w-\[330px\] { width: 330px; }
  .lg\:w-\[360px\] { width: 360px; }
  .lg\:w-\[380px\] { width: 380px; }
  .lg\:w-\[45\%\] { width: 45%; }
  .lg\:w-\[55\%\] { width: 55%; }
  .lg\:border-b-0 { border-bottom-width: 0px; }
  .lg\:border-l { border-left-width: 1px; }
  .lg\:border-r { border-right-width: 1px; }
  .lg\:border-t-0 { border-top-width: 0px; }
  .lg\:pb-0 { padding-bottom: 0px; }
  .lg\:pb-3 { padding-bottom: 0.75rem; }
  .lg\:pb-4 { padding-bottom: 1rem; }
  .lg\:pb-6 { padding-bottom: 1.5rem; }
}

/* Responsive: xl */
@media (min-width: 1280px) {
  .xl\:block { display: block; }
  .xl\:flex-row { flex-direction: row; }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:inline-flex { display: inline-flex; }
  .xl\:items-center { align-items: center; }
}
/* ==========================================================================
   MOBILE RESPONSIVE SYSTEM (PWA & BOTTOM NAVIGATION BAR & MASTER-DETAIL CHATS)
   ========================================================================== */

/* Mobile header buttons (hidden on desktop) */
.mobile-back-btn,
.mobile-drawer-btn {
  display: none;
}

/* Mobile Bottom Drawers & Backdrop Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  transition: opacity 0.25s ease;
}

.mobile-bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #13151f;
  border-top: 1px solid #232738;
  border-radius: 20px 20px 0 0;
  z-index: 1100;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-bottom-drawer.omni-active {
  transform: translateY(0);
}

.drawer-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 10px auto 4px auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 12px 18px;
  border-bottom: 1px solid #232738;
}

.drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-textarea {
  width: 100%;
  min-height: 140px;
  background: #090a0f;
  border: 1px solid #232738;
  border-radius: 10px;
  color: #fff;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.save-status-text {
  font-size: 12px;
  color: #10b981;
}

.memory-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.rag-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

/* ==========================================================================
   DESKTOP CRM DRAWER TOGGLE & ERGONOMIC WORKSPACE
   ========================================================================== */
.btn-toggle-crm-drawer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--material-thin);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-border-specular);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.btn-toggle-crm-drawer:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-toggle-crm-drawer .kbd-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* Sub-1536px Laptop & Corporate Display Adaptive Mode (1366x768 / 1440px) */
@media (max-width: 1535px) and (min-width: 769px) {
  body.omni-body {
    overflow-x: hidden !important;
  }

  .main-sidebar {
    width: 64px;
    min-width: 64px;
  }

  .chats-sidebar {
    width: var(--chats-sidebar-width, 320px);
    min-width: 240px;
  }

  .main-chat {
    flex: 1;
    min-width: 450px;
  }

  .right-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--right-panel-width, 360px);
    max-width: 90vw;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.65);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .right-panel.drawer-open {
    transform: translateX(0);
  }

  .crm-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .crm-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --------------------------------------------------------------------------
   Reviews Master-Detail Mobile System (< 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  #view-reviews:not(.review-open) #reviews-feed-col {
    display: flex !important;
    width: 100% !important;
    max-height: none !important;
    height: 100% !important;
    flex: 1 1 100% !important;
  }
  #view-reviews:not(.review-open) #reviews-detail-col,
  #view-reviews:not(.review-open) aside {
    display: none !important;
  }

  #view-reviews.review-open #reviews-feed-col,
  #view-reviews.review-open aside {
    display: none !important;
  }
  #view-reviews.review-open #reviews-detail-col {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 100% !important;
  }

  #reviews-mobile-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    touch-action: manipulation;
  }

  /* Catalog Inspector Drawer (< 1024px) */
  #catalog-inspector-pane {
    display: none !important;
  }
  #catalog-inspector-pane.inspector-open {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    max-height: 80dvh !important;
    z-index: 65 !important;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    background: rgba(13, 18, 29, 0.98) !important;
  }

  /* Listings & Catalog Full-Page Scroll (< 1024px): top command toolbar scrolls with content */
  #view-listings.active,
  #view-catalog.active {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #view-listings > main,
  #view-catalog > main {
    flex: none !important;
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
  }

  #view-listings > main > div:nth-child(2),
  #view-catalog > main > div:nth-child(2) {
    flex: none !important;
    overflow: visible !important;
    height: auto !important;
  }

  #view-listings > main > div:nth-child(2) > section,
  #catalog-products-table-container,
  #catalog-services-table-container {
    flex: none !important;
    overflow-y: visible !important;
    height: auto !important;
  }
}

/* --------------------------------------------------------------------------
   @media (max-width: 768px) Mobile Responsive Shell
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  /* 1. App Rail becomes Bottom Navigation Bar (62px) */
  .main-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 62px;
    min-height: 62px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(13, 15, 23, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
  }

  .sidebar-header-section {
    display: none !important;
  }

  .sidebar-footer {
    display: none !important;
  }

  .main-sidebar #nav-analytics,
  .main-sidebar .nav-item.nav-secondary,
  .main-sidebar .nav-item.nav-compat,
  .main-sidebar #nav-omnichannel,
  .main-sidebar #nav-listings,
  .main-sidebar #nav-affiliate,
  .main-sidebar #nav-help,
  .main-sidebar #nav-admin {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    gap: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-item {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 2px !important;
    gap: 2px !important;
    min-width: 0 !important;
    max-width: 20% !important;
    height: 100% !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    position: relative !important;
    transition: all 0.2s ease !important;
  }

  .nav-item.active {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.12) !important;
  }

  .nav-item.active::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 20% !important;
    right: 20% !important;
    height: 3px !important;
    background: linear-gradient(90deg, #00e5ff, #10b981) !important;
    border-radius: 0 0 3px 3px !important;
    box-shadow: 0 2px 8px rgba(0, 229, 255, 0.6) !important;
  }

  .nav-item .nav-icon {
    font-size: 19px !important;
    line-height: 1 !important;
  }

  .nav-item .nav-label {
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    padding: 0 1px !important;
  }

  .nav-item .nav-badge {
    top: 2px !important;
    right: calc(50% - 18px) !important;
    font-size: 8px !important;
    padding: 1px 4px !important;
  }

  /* 2. Strict View Isolation on Mobile: Inactive views NEVER render */
  .view-section:not(.active),
  #view-chats:not(.active),
  #view-broadcast:not(.active),
  #view-reviews:not(.active),
  #view-analytics:not(.active),
  #view-sandbox:not(.active),
  #view-profile:not(.active),
  #view-affiliate:not(.active),
  #view-admin:not(.active) {
    display: none !important;
  }

  .workspace-view,
  #view-chats,
  #view-broadcast,
  #view-reviews,
  #view-analytics,
  #view-sandbox,
  #view-profile,
  #view-affiliate,
  #view-admin {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    padding-bottom: 0;
  }

  #view-sandbox {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .main-workspace {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  /* 3. Master-Detail Transition for Conversations */
  #view-chats {
    position: relative;
    display: none;
    width: 100%;
    overflow: hidden;
  }

  #view-chats.active {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden;
  }

  #view-chats #mobile-chat-tabs {
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  #view-chats:not(.chat-open) #mobile-chat-tabs {
    display: none !important;
  }

  /* Other active view sections on mobile */
  .view-section.active:not(#view-chats) {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #view-chats .chats-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    border-right: none;
    display: flex;
    flex-direction: column;
  }

  #view-chats .chats-sidebar > .overflow-y-auto {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #view-chats .main-chat {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #090a0f;
    z-index: 50;
    flex-direction: column;
  }

  /* When a chat is active on mobile */
  #view-chats.chat-open .chats-sidebar {
    display: none !important;
  }

  #view-chats.chat-open .main-chat {
    display: flex !important;
  }

  #view-chats .right-panel {
    display: none !important; /* Drawer replaces column 3 */
  }

  #chat-crm-aside,
  .mobile-bottom-drawer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Mobile Fullscreen Chat: Decoupled Fullscreen Overlay */
  body.mobile-chat-open {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  body.mobile-chat-open #main-app-header,
  body.mobile-chat-open > header,
  body.mobile-chat-open #onboarding-draft-banner,
  body.mobile-chat-open #mobile-bottom-nav,
  #view-chats.chat-open ~ #mobile-bottom-nav,
  .app-layout.mobile-chat-open #mobile-bottom-nav,
  body.mobile-chat-open .main-sidebar,
  .app-layout.mobile-chat-open .main-sidebar {
    display: none !important;
  }

  body.mobile-chat-open .main-workspace,
  .app-layout.mobile-chat-open .main-workspace,
  body.mobile-chat-open #view-chats,
  .app-layout.mobile-chat-open #view-chats {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  #view-chats.chat-open #main-chat-thread,
  #view-chats.chat-open .main-chat,
  body.mobile-chat-open #view-chats.chat-open .main-chat {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 50 !important;
    background: #090a0f !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Sleek 56px Single-Row Chat Header */
  #main-chat-thread > div:first-child,
  #chat-header-pane,
  .chat-main-header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  .mobile-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    border: 1px solid #232738 !important;
    background: #13151f !important;
    color: #f1f5f9 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 0 !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
  }

  #active-chat-avatar-wrap {
    display: none !important;
  }

  #active-chat-buyer-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    flex: 1 1 auto !important;
    min-width: 60px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }

  #active-chat-city,
  #active-chat-city + span,
  #active-chat-city ~ span {
    display: none !important;
  }

  #active-chat-platform-label {
    display: none !important;
  }

  #btn-copy-chat {
    display: none !important;
  }

  #btn-mode-toggle {
    padding: 2px 6px !important;
    font-size: 10px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  .mobile-drawer-btn,
  button[onclick="openMobileDrawer('notes')"] {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .stage-control-box {
    display: none !important;
  }

  /* Item Card Banner: Sleek 28px 1-line strip */
  #item-card-banner,
  .item-card-banner {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  #item-card-banner .w-6,
  #item-card-banner .w-7,
  #item-card-banner .w-8,
  #item-card-banner #item-card-title,
  #item-card-banner #item-banner-category-dot,
  #item-card-banner #item-banner-category,
  #item-card-banner .text-on-surface-muted,
  #item-card-banner .mt-0\.5 {
    display: none !important;
  }

  #item-card-banner a#active-chat-item-link {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    max-width: calc(100vw - 120px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #item-card-banner #item-card-price {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #34d399 !important;
    white-space: nowrap !important;
  }

  /* Messages scroll container */
  #messages-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 10px !important;
  }

  /* Modern Ergonomic Mobile Chat Composer */
  #composer-resize-handle {
    display: none !important;
  }

  #chat-composer-box {
    padding: 4px 8px !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
    background: #090a10 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  #chat-composer-box .rounded-xl {
    padding: 0 !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .composer-chips-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    height: auto !important;
    min-height: 36px !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important;
  }

  .composer-chips-bar::-webkit-scrollbar {
    display: none !important;
  }

  .composer-chips-bar button {
    min-height: 34px !important;
    height: auto !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    border-radius: 13px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  .composer-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 44px !important;
    background: #181b26 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 22px !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  }

  .composer-input-row:focus-within {
    border-color: rgba(0, 229, 255, 0.55) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2) !important;
  }

  #btn-composer-attach,
  #btn-composer-voice {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-end !important;
    color: #94a3b8 !important;
    margin: 0 0 5px 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    flex-shrink: 0 !important;
  }

  #btn-composer-attach svg,
  #btn-composer-voice svg {
    width: 17px !important;
    height: 17px !important;
  }

  #chat-composer-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    max-height: 96px !important;
    height: 36px;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 20px !important;
    padding: 8px 6px !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    resize: none !important;
    color: #ffffff !important;
    background: transparent !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  #btn-send-message {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: #00e5ff !important;
    color: #001318 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.45) !important;
    flex-shrink: 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.1s ease !important;
  }

  #btn-send-message:active {
    transform: scale(0.92) !important;
  }

  #btn-send-message svg {
    width: 16px !important;
    height: 16px !important;
    margin-left: 2px !important;
    stroke: #001318 !important;
    fill: #001318 !important;
  }

  /* Attachment Card Title Ellipsis & Wrap Protection */
  .msg-att-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 180px !important;
  }

  .input-wrapper-card {
    padding: 8px !important;
  }

  .input-toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .toolbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    padding-bottom: 2px !important;
  }
  .toolbar-left::-webkit-scrollbar {
    display: none !important;
  }

  .toolbar-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .toolbar-pill-btn {
    padding: 5px 9px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .btn-ai-polish {
    padding: 6px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .btn-ai-sparkle {
    padding: 6px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  #btn-send-message,
  .btn-send-message {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: #00e5ff !important;
    color: #001318 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Responsive Cards & Tables for Other Views */
  .view-container {
    padding: 12px;
  }

  .stats-grid,
  .kpi-row,
  .metric-cards-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .broadcast-content-grid,
  .reviews-columns,
  .affiliate-columns,
  .admin-columns {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .data-table-card,
  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wizard-steps-header {
    gap: 8px;
  }

  .step-label,
  .wizard-step-node .step-label {
    display: none !important; /* Icon-only in wizard steps on mobile */
  }

  .wizard-step-node .step-num {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }

  /* Modals on Mobile: Constrained Flex-Column Bottom-Sheet */
  .omni-modal-backdrop {
    padding: 12px 0 0 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 1200 !important;
  }

  .omni-modal-window,
  .omni-modal-window.large-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 24px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)) 14px !important;
    border-radius: 20px 20px 0 0 !important;
    box-sizing: border-box !important;
  }

  .omni-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .omni-modal-window .modal-header-row {
    flex-shrink: 0 !important;
  }

  .omni-modal-window .modal-actions-footer {
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-top: 12px !important;
  }

  .omni-modal-window .modal-actions-footer button,
  .omni-modal-window .modal-actions-footer .btn-sm {
    min-height: 44px !important;
  }

  .modal-close-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Prevent card title rows and buttons overflowing */
  .card-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .card-title-row > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .card-title-row > div:last-child .btn-sm {
    flex: 1 1 calc(50% - 6px) !important;
    font-size: 12px !important;
    padding: 8px 6px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .channel-actions-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .channel-actions-toolbar .btn-sm {
    min-height: 44px !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
  }

  .subscription-details-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .subscription-details-row .btn-primary-gradient {
    width: 100% !important;
    text-align: center !important;
  }

  .account-item-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .account-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  .section-title-wrap h2 {
    font-size: 18px !important;
  }

  .section-subtitle {
    font-size: 12px !important;
  }

  /* Prevent any element horizontally breaking viewport */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .app-layout, .main-workspace, .view-section, .view-container, .profile-container {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* DOM Parity Utility Selectors */
.schedule-trigger-btn,
.notes-btn,
.history-table-wrap,
.pwa-buttons-row,
.semantic-memory-card,
.reviews-badge,
.omni-select,
.section-title-wrap,
.panel-buyer-crystal,
.role-selector-row,
.search-input,
.stars-display,
.date-sep,
.rag-examples-content,
.sub-expires,
.analytics-results-wrap,
.hero-left,
.empty-state-small,
.theme-dark,
.mini-badge,
.table-actions-row,
.table-wrap,
.connected-accounts-list,
.recipients-table-wrap,
.form-group,
.image-preview-container,
.rag-btn,
.buyer-crystal-card,
.usage-track-item,
.withdrawal-input-row,
.kpi-info,
.ai-status-indicator,
.panel-episteme-radar,
.account-actions,
.info,
.payout-fields,
.status-text,
.image-remove-btn,
.stage-icon,
.text-secondary,
.hero-right,
.hero-sub,
.client-notes-card,
.broadcast-step-content,
.btn-accent,
.image-status-text {
  /* Defined component or utility hook */
}

/* RESPONSIVE STYLES <= 768px */
@media (max-width: 768px) {
  .omnichannel-container {
    padding: 16px;
    gap: 16px;
  }

  .omnichannel-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .omnichannel-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .omnichannel-header-actions button {
    width: 100%;
  }

  .omni-feeds-grid,
  .omni-connectors-grid {
    grid-template-columns: 1fr;
  }

  .booster-presets-grid {
    grid-template-columns: 1fr;
  }

  .booster-header-badge-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 8px;
  }

  .booster-header-badge-wrap button {
    width: 100%;
  }

  .feed-actions-row .btn-sm,
  .connector-actions .btn-sm {
    width: 100%;
  }

  /* Channel Cards Stack Vertically on Mobile */
  .connected-accounts-list .panel-card,
  .panel-card.channel-card-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .panel-card.channel-card-item > div:last-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 8px !important;
  }

  /* Telegram Code Row & Web Push Box on Mobile */
  .tg-code-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .tg-code-row code {
    font-size: 15px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-all !important;
  }
  .tg-code-row .btn-sm,
  .tg-code-row button,
  .tg-code-row a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .webpush-connect-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .webpush-connect-box button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* PWA Install Banner Mobile */
  .pwa-install-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 6px 8px !important;
  }
  .pwa-install-actions {
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* Segmented Subtab Bar Mobile Touch Scroll & Clean Sizing */
  .segmented-glass-nav {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .segmented-glass-nav::-webkit-scrollbar {
    display: none !important;
  }
  .segmented-tab-btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* P1 Listings & Catalog Mobile Fixes (<= 768px) */
  #pareto-ads-panel:has(#pareto-panel-body.hidden) #btn-pareto-mode-toggle,
  #pareto-ads-panel:has(#pareto-panel-body.hidden) #btn-pareto-simulate {
    display: none !important;
  }

  #pareto-ads-panel:has(#pareto-panel-body.hidden) > div:first-child {
    flex-direction: row !important;
    align-items: center !important;
  }

  #view-analytics {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  #listings-floating-action-bar {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 45 !important;
  }

  #catalog-bulk-bar {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 45 !important;
    max-width: calc(100vw - 16px) !important;
    flex-wrap: wrap !important;
  }

  #catalog-products-table-container,
  #catalog-services-table-container {
    overflow: visible !important;
  }

  #catalog-products-table-container table,
  #catalog-services-table-container table {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
  }
  #catalog-products-table-container thead,
  #catalog-services-table-container thead {
    display: none !important;
  }
  #catalog-products-table-container tbody,
  #catalog-products-table-container tr,
  #catalog-services-table-container tbody,
  #catalog-services-table-container tr {
    display: block !important;
    width: 100% !important;
  }
  #catalog-products-table-container tr,
  #catalog-services-table-container tr {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    background: rgba(18, 28, 46, 0.85) !important;
    border: 1px solid #1e293b !important;
  }
  #catalog-products-table-container td,
  #catalog-services-table-container td {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 4px 0 !important;
    width: 100% !important;
    text-align: left !important;
    border: none !important;
  }

  /* P3 WCAG 2.1 Touch Ergonomics (>= 44px touch targets on < 768px; 48px for bottom nav) */
  .mob-nav-item {
    min-height: 48px !important;
  }

  .stitch-touch-btn,
  #mobile-chat-tabs button,
  .segmented-tab-btn,
  .modal-actions-footer button,
  .btn-sm,
  .btn-md,
  .btn-primary,
  .btn-secondary,
  #view-admin button[id^="admin-tab-btn-"],
  #view-analytics button[id^="analytics-subtab-btn-"],
  select.omni-select,
  #admin-sim-listing-select,
  #admin-sim-stage-select,
  #listings-city-filter,
  #listings-sort-filter {
    min-height: 44px !important;
  }
}

/* ==========================================================================
   PWA INSTALL BANNER DEFAULT COMPONENT STYLES
   ========================================================================== */
.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18) 0%, rgba(236, 72, 153, 0.18) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  margin: 10px 16px 4px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 100;
  box-sizing: border-box;
}

.pwa-install-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   GLOBAL TOUCH ERGONOMICS & OVERFLOW PROTECTION
   ========================================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

button,
a,
input[type="button"],
input[type="submit"],
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.filter-chip-btn,
.preset-chip-btn,
.nav-item,
.mob-nav-item,
.segmented-tab-btn,
.composer-chips-bar button {
  touch-action: manipulation;
}




/* ==========================================================================
   Aleph Omni — Stitch Cyber-Obsidian Design Tokens & Adaptive Layout (Wave 0)
   Hairlines: #1e293b | Surface: #0f131d | Card: #121c2e | Well: #090d14
   ========================================================================== */

/* 1. Cyber-Obsidian Surface & Hairline Utilities */
.stitch-card {
  background: rgba(18, 28, 46, 0.85);
  border: 1px solid #1e293b;
  border-radius: 12px;
}

.stitch-well {
  background: #090d14;
  border: 1px solid #1e293b;
  border-radius: 8px;
}

.stitch-hairline {
  border-color: #1e293b !important;
}

/* 2. Laser Top Edge Specular Accents */
.laser-top-cyan,
.laser-top-purple,
.laser-top-emerald,
.laser-top-amber {
  position: relative;
}

.laser-top-cyan::before,
.laser-top-purple::before,
.laser-top-emerald::before,
.laser-top-amber::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  opacity: 0.9;
  pointer-events: none;
}

.laser-top-cyan::before {
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
}

.laser-top-purple::before {
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
}

.laser-top-emerald::before {
  background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.laser-top-amber::before {
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

/* 3. Cyber Range Slider (.cyber-slider) */
input[type="range"].cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

input[type="range"].cyber-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: #1e293b;
  border-radius: 9999px;
}

input[type="range"].cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 9999px;
  background: #00e5ff;
  border: 2px solid #090d14;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

input[type="range"].cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}

input[type="range"].cyber-slider::-moz-range-track {
  height: 6px;
  background: #1e293b;
  border-radius: 9999px;
}

input[type="range"].cyber-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #00e5ff;
  border: 2px solid #090d14;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  cursor: pointer;
}

/* 4. Segmented Tab Active State (Cyber-Obsidian) */
.segmented-tab-btn.active {
  background: rgba(0, 229, 255, 0.15) !important;
  border-color: rgba(0, 229, 255, 0.45) !important;
  color: #00e5ff !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}

/* 5. Desktop 3-Column Deal Miner Cockpit for #view-broadcast (>= 1024px) */
@media (min-width: 1024px) {
  #view-broadcast .bc-workspace-columns {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
  }

  #view-broadcast #bc-step-1,
  #view-broadcast #bc-step-2,
  #view-broadcast #bc-step-3,
  #view-broadcast #bc-step-1.omni-hidden,
  #view-broadcast #bc-step-2.omni-hidden,
  #view-broadcast #bc-step-3.omni-hidden {
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
    max-width: none !important;
    margin: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  /* Left Column (360px): Recipients & Cohorts (#bc-step-2) */
  #view-broadcast #bc-step-2 {
    order: 1;
    width: 360px;
    min-width: 340px;
    max-width: 380px;
    flex-shrink: 0;
    border-right: 1px solid #1e293b;
    background: rgba(12, 19, 34, 0.6);
  }

  /* Center Column (flex-1): Offer, AI Prompt & Preview (#bc-step-1) */
  #view-broadcast #bc-step-1 {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
    border-right: 1px solid #1e293b;
    background: #0f131d;
  }

  /* Right Column (340px): Campaign Summary & Anti-Ban Jitter (#bc-step-3) */
  #view-broadcast #bc-step-3 {
    order: 3;
    width: 340px;
    min-width: 320px;
    max-width: 360px;
    flex-shrink: 0;
    background: rgba(12, 19, 34, 0.7);
  }
}

/* 6. Mobile Overflow & Touch Safeguards (375x812) - Isolated from #view-chats / mobile-chat-open */
@media (max-width: 768px) {
  .view-section.active:not(#view-chats) {
    max-width: 100vw;
    overflow-x: hidden !important;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  #view-broadcast:not(.omni-hidden),
  #view-reviews:not(.omni-hidden),
  #view-omnichannel:not(.omni-hidden),
  #view-listings:not(.omni-hidden),
  #view-catalog:not(.omni-hidden),
  #view-sandbox:not(.omni-hidden),
  #view-analytics:not(.omni-hidden),
  #view-monthly-report:not(.omni-hidden),
  #view-profile:not(.omni-hidden),
  #view-admin:not(.omni-hidden) {
    max-width: 100vw;
  }

  .stitch-touch-btn {
    min-height: 40px;
  }
}

/* 7. Dark Theme Browser Autofill & Password Input Protection */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #090d14 inset !important;
  -webkit-text-fill-color: #dfe2f1 !important;
  caret-color: #00e5ff;
  transition: background-color 9999s ease-in-out 0s;
}

input[type="password"],
.omni-connector-card input.form-control,
#input-amocrm-token {
  background-color: #090d14 !important;
  color: #dfe2f1 !important;
  color-scheme: dark;
}
