html { overflow-x: hidden; }

body.gablu-brand-system {
  --bg: var(--gablu-graphite);
  --bg-0: var(--gablu-graphite);
  --bg-primary: var(--gablu-graphite);
  --bg-soft: var(--gablu-graphite-raised);
  --bg-1: var(--gablu-graphite-raised);
  --bg-2: var(--gablu-graphite-soft);
  --bg-card: var(--gablu-panel);
  --bg-card-hover: rgba(20, 26, 38, 0.98);
  --bg-input: #0c1018;
  --panel: var(--gablu-panel);
  --panel-2: rgba(13, 17, 25, 0.97);
  --card: var(--gablu-panel);
  --card-2: #0c1018;
  --border: var(--gablu-border);
  --border-hover: rgba(var(--gablu-accent-rgb), 0.20);
  --border-focus: rgba(var(--gablu-accent-rgb), 0.38);
  --border-strong: var(--gablu-border-strong);
  --text: var(--gablu-text);
  --text-1: var(--gablu-text);
  --text-primary: var(--gablu-text);
  --text-2: var(--gablu-muted);
  --text-secondary: var(--gablu-muted);
  --text-3: var(--gablu-faint);
  --text-tertiary: var(--gablu-faint);
  --muted: var(--gablu-muted);
  --faint: var(--gablu-faint);
  --accent: var(--gablu-accent);
  --blue: var(--gablu-accent);
  --gold: var(--gablu-accent);
  --gold-accent: var(--gablu-accent-bright);
  --accent-soft: rgba(var(--gablu-accent-rgb), 0.10);
  --accent-glow: rgba(var(--gablu-accent-rgb), 0.14);
  --gold-soft: rgba(var(--gablu-accent-rgb), 0.10);
  --green: var(--gablu-success);
  --success: var(--gablu-success);
  --success-soft: rgba(var(--gablu-success-rgb), 0.10);
  --red: var(--gablu-danger);
  color: var(--gablu-text);
  background:
    radial-gradient(circle at 50% -18%, rgba(63, 95, 168, 0.20), transparent 36%),
    linear-gradient(180deg, #090b10 0%, #080a0f 62%, #07090d 100%) !important;
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.gablu-brand-system::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  background-position: 0 0 !important;
  opacity: 1 !important;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 76%);
}

body.gablu-brand-system .gablu-nav,
body.workspace-module .nav {
  min-height: 56px;
  padding: 0 28px;
  background: rgba(8, 10, 15, 0.88) !important;
  border-color: var(--gablu-border) !important;
  backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 1px rgba(255, 255, 255, 0.015);
}

body.gablu-brand-system .gablu-brand,
body.workspace-module .brand {
  color: var(--gablu-text) !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.gablu-brand-system .gablu-modules,
body.workspace-module .nav-links {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--gablu-border) !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

body.gablu-brand-system .gablu-mod,
body.workspace-module .nav-link {
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #81899a !important;
  font-size: 11px;
  font-weight: 700;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

body.gablu-brand-system .gablu-mod:hover,
body.workspace-module .nav-link:hover {
  color: #dbe4f8 !important;
  background: rgba(var(--gablu-accent-rgb), 0.055) !important;
}

body.gablu-brand-system .gablu-mod.active,
body.workspace-module .nav-link.active {
  color: #f8faff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.30) !important;
  background: linear-gradient(180deg, rgba(var(--gablu-accent-rgb), 0.17), rgba(var(--gablu-accent-rgb), 0.08)) !important;
  box-shadow: 0 8px 24px rgba(40, 75, 150, 0.18), inset 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.gablu-brand-system a[href='/logout'],
body.workspace-module a[href='/logout'] {
  color: #b9ccf8 !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.20) !important;
  background: rgba(var(--gablu-accent-rgb), 0.045) !important;
}

body.gablu-brand-system a[href='/logout']:hover,
body.workspace-module a[href='/logout']:hover {
  color: #fff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.36) !important;
  background: rgba(var(--gablu-accent-rgb), 0.10) !important;
}

body.listinator-module .topbar,
body.marketsniper-module .topbar,
body.serviceops-module .so-topbar {
  top: 0;
  min-height: 70px;
  background: rgba(10, 13, 19, 0.88) !important;
  border-color: var(--gablu-border) !important;
  backdrop-filter: blur(24px) saturate(1.2);
}

body.listinator-module .topbar .logo-icon,
body.marketsniper-module .topbar .logo-icon,
body.serviceops-module .so-topbar-icon,
body.workspace-module .brand-mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(158, 187, 255, 0.38) !important;
  border-radius: 11px;
  color: #fff !important;
  background:
    radial-gradient(circle at 23% 16%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, #739cff 0%, #416fda 48%, #274c9b 100%) !important;
  box-shadow:
    0 14px 34px rgba(42, 78, 163, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.32),
    inset 0 -8px 16px rgba(11, 31, 78, 0.18) !important;
}

body.listinator-module .topbar .logo-icon::before,
body.marketsniper-module .topbar .logo-icon::before,
body.serviceops-module .so-topbar-icon::before,
body.workspace-module .brand-mark::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -45% 48% -45% -18%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.21), transparent);
  pointer-events: none;
}

body.listinator-module .topbar .logo-icon::after,
body.marketsniper-module .topbar .logo-icon::after,
body.serviceops-module .so-topbar-icon::after,
body.workspace-module .brand-mark::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(18, 43, 96, 0.12);
  pointer-events: none;
}

body.gablu-brand-system .status-dot,
body.gablu-brand-system .topbar-status .status-dot,
body.gablu-brand-system .autopilot-dot.on {
  background: var(--gablu-emerald) !important;
  box-shadow: 0 0 10px rgba(var(--gablu-success-rgb), 0.48) !important;
}

body.workspace-module .hero-main,
body.workspace-module .hero-side,
body.workspace-module .module-card,
body.workspace-module .request-card,
body.workspace-module .request-log,
body.listinator-module .card,
body.listinator-module .progress-panel,
body.listinator-module .result-card,
body.marketsniper-module .panel,
body.marketsniper-module .hero,
body.marketsniper-module .feed-card,
body.marketsniper-module .competitor-card,
body.marketsniper-module .secondary-panel,
body.serviceops-module #mainContent,
body.serviceops-module .summary-panel,
body.serviceops-module .resolution-panel,
body.serviceops-module .order-panel,
body.serviceops-module .changes-panel,
body.serviceops-module .pod-resolve-panel,
body.serviceops-module .intel-panel {
  border-color: var(--gablu-border) !important;
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.97), rgba(12, 16, 24, 0.98)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.025) !important;
}

body.workspace-module .hero-btn.primary,
body.workspace-module .submit-btn,
body.listinator-module .submit-btn,
body.listinator-module .redo-run-btn,
body.marketsniper-module .action-btn.primary,
body.serviceops-module .reply-send-btn,
body.serviceops-module .pod-send-btn,
body.serviceops-module .intel-btn.primary,
body.login-module .submit-btn {
  color: #fff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.36) !important;
  background: linear-gradient(180deg, #719bfa, var(--gablu-accent-deep)) !important;
  box-shadow: 0 10px 28px rgba(62, 105, 204, 0.22), inset 0 1px rgba(255, 255, 255, 0.22) !important;
}

body.gablu-brand-system input:focus,
body.gablu-brand-system select:focus,
body.gablu-brand-system textarea:focus {
  border-color: rgba(var(--gablu-accent-rgb), 0.42) !important;
  box-shadow: 0 0 0 4px rgba(var(--gablu-accent-rgb), 0.09) !important;
}

body.listinator-module .topbar-tab.active,
body.listinator-module .products-store-btn.active,
body.listinator-module .size-mode-btn.active,
body.marketsniper-module .tab-btn.active,
body.marketsniper-module .subtab-btn.active,
body.marketsniper-module .filter-chip.active,
body.serviceops-module .cat-pill.active,
body.serviceops-module .sidebar-item.active,
body.serviceops-module .store-pill.active,
body.serviceops-module .pod-mode-btn.active {
  color: #f8faff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.28) !important;
  background: linear-gradient(180deg, rgba(var(--gablu-accent-rgb), 0.16), rgba(var(--gablu-accent-rgb), 0.07)) !important;
  box-shadow: 0 8px 22px rgba(40, 75, 150, 0.14), inset 0 1px rgba(255, 255, 255, 0.06) !important;
}

body.login-module .login-shell {
  border-color: var(--gablu-border) !important;
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.98), rgba(12, 16, 24, 0.98)) !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.035) !important;
}

body.login-module .eyebrow { color: var(--gablu-accent-bright); }

body.workspace-module .signal-value,
body.workspace-module .module-metric strong,
body.workspace-module .hero-btn.secondary,
body.workspace-module .eyebrow,
body.workspace-module .module-kicker {
  color: var(--gablu-accent-bright) !important;
}

body.workspace-module .hero-btn.secondary {
  border-color: rgba(var(--gablu-accent-rgb), 0.18) !important;
  background: rgba(var(--gablu-accent-rgb), 0.045) !important;
}

body.listinator-module .section-label,
body.listinator-module .composer-heading,
body.listinator-module .hint,
body.listinator-module .summary-value.highlight,
body.listinator-module .recent-fab-count,
body.listinator-module .alpha-fab,
body.listinator-module .alpha-context-product,
body.listinator-module .alpha-welcome-icon {
  color: var(--gablu-accent-bright) !important;
}

body.listinator-module .status-tab.active {
  color: #f8faff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.28) !important;
  background: linear-gradient(180deg, rgba(var(--gablu-accent-rgb), 0.16), rgba(var(--gablu-accent-rgb), 0.07)) !important;
}

body.listinator-module .alpha-fab {
  color: var(--gablu-accent-bright) !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.25) !important;
  background:
    linear-gradient(180deg, rgba(var(--gablu-accent-rgb), 0.10), rgba(var(--gablu-accent-deep-rgb), 0.045)),
    rgba(8, 12, 20, 0.96) !important;
  box-shadow: 0 12px 32px rgba(var(--gablu-accent-deep-rgb), 0.14), inset 0 1px rgba(255, 255, 255, 0.04) !important;
}

body.listinator-module .alpha-fab:hover {
  color: #fff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.46) !important;
  background:
    linear-gradient(180deg, rgba(var(--gablu-accent-rgb), 0.17), rgba(var(--gablu-accent-deep-rgb), 0.08)),
    rgba(8, 12, 20, 0.98) !important;
  box-shadow: 0 16px 36px rgba(var(--gablu-accent-deep-rgb), 0.22) !important;
}

body.listinator-module .alpha-fab .alpha-fab-icon {
  color: #fff !important;
  background: linear-gradient(145deg, var(--gablu-accent), var(--gablu-accent-deep)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 6px 14px rgba(var(--gablu-accent-deep-rgb), 0.24) !important;
}

body.listinator-module .recent-fab {
  color: #fff !important;
  border: 1px solid rgba(var(--gablu-accent-rgb), 0.46) !important;
  background: linear-gradient(145deg, var(--gablu-accent), var(--gablu-accent-deep)) !important;
  box-shadow: 0 14px 34px rgba(var(--gablu-accent-deep-rgb), 0.28), inset 0 1px rgba(255, 255, 255, 0.24) !important;
}

body.listinator-module .recent-fab:hover {
  background: linear-gradient(145deg, var(--gablu-accent-bright), var(--gablu-accent-deep)) !important;
  box-shadow: 0 18px 40px rgba(var(--gablu-accent-deep-rgb), 0.36), inset 0 1px rgba(255, 255, 255, 0.28) !important;
}

body.listinator-module .recent-fab-count {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 10, 22, 0.78) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

body.serviceops-module .sidebar-brand-icon {
  color: #fff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.32) !important;
  background: linear-gradient(145deg, #739cff, #416fda 52%, #274c9b) !important;
  box-shadow: 0 10px 26px rgba(42, 78, 163, 0.24), inset 0 1px rgba(255, 255, 255, 0.22) !important;
}

body.serviceops-module .so-sync-btn {
  color: #dce6ff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.24) !important;
  background: rgba(var(--gablu-accent-rgb), 0.10) !important;
}

body.serviceops-module .sidebar-item.active .sidebar-item-name,
body.serviceops-module .sidebar-item.active .sidebar-item-icon {
  color: #dce6ff !important;
}

/* Listinator listing options: compact, consistent segmented controls. */
body.listinator-module .listing-options-label {
  margin-top: 34px;
  margin-bottom: 14px;
  color: var(--gablu-accent-bright) !important;
}

body.listinator-module .listing-option-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  margin-bottom: 12px;
  padding: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, rgba(var(--gablu-accent-rgb), 0.035), transparent 52%),
    rgba(11, 14, 21, 0.92) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025) !important;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.listinator-module .listing-option-row:hover {
  border-color: rgba(var(--gablu-accent-rgb), 0.18) !important;
  background:
    linear-gradient(145deg, rgba(var(--gablu-accent-rgb), 0.055), transparent 52%),
    rgba(12, 16, 24, 0.96) !important;
}

body.listinator-module .listing-option-row .toggle-label span:first-child {
  display: block;
  min-width: 0;
  color: var(--gablu-text) !important;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

body.listinator-module .listing-option-row .toggle-switch-wrap {
  width: 100%;
  min-width: 0;
  max-width: none;
}

body.listinator-module .listing-option-row .option-pill-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  width: 100%;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(5, 8, 13, 0.72);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.28);
}

body.listinator-module .listing-option-row .option-pill {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent !important;
  border-radius: 9px;
  color: var(--gablu-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

body.listinator-module .listing-option-row .option-pill:hover {
  color: var(--gablu-text) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body.listinator-module .listing-option-row .option-pill.active {
  color: #fff !important;
  border-color: rgba(var(--gablu-accent-rgb), 0.34) !important;
  background:
    linear-gradient(180deg, rgba(var(--gablu-accent-rgb), 0.27), rgba(var(--gablu-accent-deep-rgb), 0.17)) !important;
  box-shadow:
    0 8px 22px rgba(var(--gablu-accent-deep-rgb), 0.16),
    inset 0 1px rgba(255, 255, 255, 0.10) !important;
}

@media (max-width: 760px) {
  body.gablu-brand-system .gablu-nav,
  body.workspace-module .nav {
    min-height: 48px;
    height: 48px;
    padding: 0 12px;
    gap: 12px;
    overflow: hidden;
  }

  body.gablu-brand-system .gablu-brand,
  body.workspace-module .brand {
    flex: 0 0 auto;
    font-size: 13px;
  }

  body.gablu-brand-system .gablu-modules,
  body.workspace-module .nav-links,
  body.gablu-brand-system .gablu-auth,
  body.gablu-brand-system .gablu-nav > div:last-child,
  body.workspace-module .nav > div:last-child {
    display: none !important;
  }

  body.gablu-brand-system .gablu-nav::after,
  body.workspace-module .nav::after {
    margin-left: auto;
    padding: 6px 9px;
    border: 1px solid rgba(var(--gablu-accent-rgb), 0.24);
    border-radius: 999px;
    color: var(--gablu-accent-bright);
    background: rgba(var(--gablu-accent-rgb), 0.08);
    font: 800 9px/1 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: 0.08em;
  }

  body.workspace-module .nav::after { content: 'WORKSPACE'; }
  body.listinator-module .gablu-nav::after { content: 'LISTINATOR'; }
  body.serviceops-module .gablu-nav::after { content: 'SERVICEOPS'; }
  body.printing-v2 .gablu-nav::after { content: 'PRINTING' !important; }
  body.marketsniper-module .gablu-nav::after { content: 'MARKETSNIPER'; }

  body.workspace-module .nav { flex-direction: row; align-items: center; }
  body.workspace-module .shell { padding-top: 0; }
  body.workspace-module .hero { margin-top: 18px; }

  body.listinator-module .topbar,
  body.marketsniper-module .topbar,
  body.serviceops-module .so-topbar { top: 0; }

  body.listinator-module .topbar-status { display: none; }

  body.listinator-module .listing-options-label {
    margin-top: 28px;
    margin-bottom: 12px;
  }

  body.listinator-module .listing-option-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
    min-height: 0;
    padding: 14px !important;
    border-radius: 15px !important;
  }

  body.listinator-module .listing-option-row .toggle-label span:first-child {
    font-size: 13px;
  }

  body.listinator-module .listing-option-row .toggle-switch-wrap {
    width: 100%;
    max-width: none;
  }

  body.listinator-module .listing-option-row .option-pill-group {
    grid-auto-columns: minmax(0, 1fr);
  }

  body.listinator-module .listing-option-row .option-pill {
    width: 100%;
    padding: 10px 8px;
    font-size: 11px;
  }
}

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