/* ============================================================
   webmoz.ai — Growth Workspace
   Scoped styles for the Growth Engine view (#growthView)
   ============================================================ */

/* Font stack variables (for growth components) */
#growthView {
  --font-display: "Larken", Georgia, serif;
  --font-ui:
    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --font-mono: "Inconsolata", "Fira Mono", "Courier New", monospace;
  --font-lato: "Lato", sans-serif;
}

/* Growth tokens */
:root {
  --gx-surface-0: rgba(255, 255, 255, 0.02);
  --gx-surface-1: rgba(255, 255, 255, 0.04);
  --gx-surface-2: rgba(255, 255, 255, 0.07);
  --gx-surface-3: rgba(255, 255, 255, 0.1);
  --gx-card-bg: rgba(10, 16, 32, 0.55);
  --gx-card-bg-2: rgba(14, 22, 42, 0.65);
  --gx-border-1: rgba(255, 255, 255, 0.06);
  --gx-border-2: rgba(255, 255, 255, 0.12);
  --gx-border-blue: rgba(74, 168, 242, 0.35);
  --gx-text-1: rgba(255, 255, 255, 0.94);
  --gx-text-2: rgba(255, 255, 255, 0.62);
  --gx-text-3: rgba(255, 255, 255, 0.36);
  --gx-text-4: rgba(255, 255, 255, 0.22);
  --gx-blue: #4aa8f2;
  --gx-blue-2: #60a5fa;
  --gx-blue-3: #136df4;
  --gx-cyan: #22d3ee;
  --gx-accent: #136df4;
  --gx-accent-soft: rgba(19, 109, 244, 0.15);
  --gx-amber: rgba(250, 200, 80, 0.95);
  --gx-amber-bg: rgba(250, 180, 50, 0.14);
  --gx-amber-border: rgba(250, 180, 50, 0.25);
  --gx-orange: rgba(255, 148, 76, 0.95);
  --gx-orange-bg: rgba(255, 132, 64, 0.14);
  --gx-orange-border: rgba(255, 132, 64, 0.28);
  --gx-green: rgba(110, 220, 140, 0.9);
  --gx-green-bg: rgba(80, 200, 120, 0.1);
  --gx-green-border: rgba(80, 200, 120, 0.22);
  --gx-red: rgba(255, 120, 120, 0.9);
  --gx-red-bg: rgba(255, 80, 80, 0.1);
  --gx-red-border: rgba(255, 80, 80, 0.22);
}

/* ============================================================
   VIEW SHOW / HIDE
   ============================================================ */
#growthView {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  margin-bottom: var(--dash-input-pad, 126px);
  flex-direction: column;
  overflow: hidden;
  color: var(--gx-text-1);
  z-index: 20;
}
body.wm-mode-growth #growthView {
  display: flex;
  overflow: hidden;
}

/* backdrop-filter must sample #color-bends (fixed, outside .webmozai-wrapper).
   overflow:hidden on .webmozai-wrapper / #chat-container clips the backdrop root
   so blur never reaches the WebGL layer — transparency still shows it, blur does not. */
body.wm-mode-growth .webmozai-wrapper {
  overflow: visible !important;
}

body.wm-mode-growth #chat-container {
  overflow: visible !important;
}

/* Gradient border: bright across top + down both sides, bluer palette for growth */
body.wm-mode-growth #growthView::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    to bottom,
    rgba(100, 185, 255, 0.95) 0%,
    rgba(65, 150, 255, 0.78) 20%,
    rgb(40 115 255 / 87%) 45%,
    rgb(25 85 248 / 60%) 70%,
    rgb(15 65 230 / 44%) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10000;
}

#growthWorkspace {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.wm-mode-growth #growthWorkspace {
  overflow: visible;
}

/* Hide other content when growth is active */
body.wm-mode-growth .wm-stage,
body.wm-mode-growth .ai-messages-container,
body.wm-mode-growth .ai-new-chat-button,
body.wm-mode-growth .venture-selector-stack {
  display: none !important;
}

/* ============================================================
   PRIMARY LAYOUT
   ============================================================ */
.gx-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
body.wm-mode-growth .gx-shell {
  overflow: visible;
}

/* TOP PLATFORM NAV — overview left, platforms centered, status right */
.gx-top-nav {
  height: 60px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 28, 0.78),
    rgba(8, 14, 28, 0.32)
  );
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  padding-left: 10px;
  padding-right: 12px;
  padding-bottom: 0;
  position: relative;
  z-index: 12;
  column-gap: 8px;
  overflow: visible;
}
.gx-top-nav-left {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
  position: relative;
  z-index: 14;
}
.gx-top-nav-center {
  position: relative;
  min-width: 0;
  overflow: visible;
}
.gx-top-nav-center-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 124px;
  padding: 0 28px 12px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: auto;
}
.gx-top-nav-center-scroll::-webkit-scrollbar {
  display: none;
}
.gx-top-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-left: 8px;
  position: relative;
  z-index: 14;
}

.gx-plat-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--gx-text-3);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  transition:
    color 0.2s,
    filter 0.2s;
  flex-shrink: 0;
  overflow: visible;
}
.gx-plat-tab:hover {
  color: var(--gx-text-1);
}
.gx-plat-tab.active {
  color: var(--gx-text-1);
}
.gx-plat-tab-overview {
  min-width: 44px;
  margin: auto;
  padding: 0 10px 6px;
}
.gx-plat-tab-platform {
  padding: 10px 12px 8px;
  min-width: 48px;
  max-width: 100px;
  transform-origin: top center;
  will-change: transform;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition:
    color 0.2s,
    filter 0.2s;
}
.gx-plat-tab-platform::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.gx-plat-tab-platform:hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(96, 165, 250, 0.45),
    transparent
  );
  opacity: 1;
}
.gx-plat-tab-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.gx-plat-tab-overview .gx-plat-tab-inner {
  gap: 0;
}
.gx-plat-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: filter 0.2s;
}
.gx-plat-tab:hover .gx-plat-tab-icon,
.gx-plat-tab.active .gx-plat-tab-icon {
  filter: drop-shadow(0 0 8px rgba(74, 168, 242, 0.35));
}
.gx-plat-tab-platform .gx-plat-tab-handle {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gx-text-4);
  line-height: 1.1;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.gx-plat-tab-platform:hover .gx-plat-tab-handle {
  color: var(--gx-text-3);
}
.gx-plat-tab-platform.active .gx-plat-tab-handle {
  color: var(--gx-blue-2);
}

.gx-plat-tab-overview.active::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gx-blue), transparent);
  box-shadow:
    0 0 12px rgba(74, 168, 242, 0.85),
    0 0 24px rgba(19, 109, 244, 0.35);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.gx-plat-tab-overview.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 130%;
  max-width: 72px;
  height: 56px;
  background: radial-gradient(
    ellipse at center top,
    rgba(74, 168, 242, 0.3),
    rgba(74, 168, 242, 0.07) 40%,
    transparent 72%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}

.gx-plat-tab-platform.active::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gx-blue), transparent);
  box-shadow:
    0 0 12px rgba(74, 168, 242, 0.85),
    0 0 24px rgba(19, 109, 244, 0.35);
  border-radius: 2px;
  opacity: 1;
}
.gx-plat-tab-platform.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 280%;
  max-width: none;
  height: 72px;
  background: radial-gradient(
    ellipse at center top,
    rgba(74, 168, 242, 0.34),
    rgba(74, 168, 242, 0.09) 38%,
    transparent 72%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.gx-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  height: 28px;
  border-radius: 999px;
  background: var(--gx-amber-bg);
  border: 1px solid var(--gx-amber-border);
  color: var(--gx-amber);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s;
}
.gx-status-pill-icon-mobile {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.gx-status-pill-label {
  white-space: nowrap;
}
.gx-status-pill.up {
  background: var(--gx-green-bg);
  border-color: var(--gx-green-border);
  color: var(--gx-green);
}
.gx-status-pill:hover {
  filter: brightness(1.15);
}
.gx-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.gx-status-pill.up .gx-status-dot {
  box-shadow: 0 0 6px currentColor;
}

.gx-action-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(250, 180, 50, 0.08);
  border: 1px solid rgba(250, 180, 50, 0.22);
}
.gx-action-banner-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--gx-text-1);
}
.gx-action-banner-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.gx-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(250, 180, 50, 0.28);
  background: rgba(250, 180, 50, 0.08);
  color: var(--gx-amber);
  font-family: var(--font-ui);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.gx-action-chip:hover {
  background: rgba(250, 180, 50, 0.14);
  border-color: rgba(250, 180, 50, 0.45);
}

.gx-main-status {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 20;
  pointer-events: auto;
}

.gx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
  animation: gx-fade-in 150ms ease-out;
}

.gx-chooser-modal {
  background: var(--gx-card-bg-2);
  border: 1px solid var(--gx-border-2);
  border-radius: 16px;
  padding: 20px;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.gx-chooser-title {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gx-text-3);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.gx-chooser-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gx-chooser-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gx-surface-1);
  border: 1px solid var(--gx-border-1);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--gx-text-1);
  transition: all 0.15s;
  width: 100%;
}
.gx-chooser-option:hover {
  background: var(--gx-surface-2);
  border-color: var(--gx-border-2);
}
.gx-chooser-option-body {
  flex: 1;
}
.gx-chooser-option-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gx-text-1);
}
.gx-chooser-option-sub {
  font-family: var(--font-lato);
  font-size: 11px;
  color: var(--gx-text-3);
  margin-top: 2px;
  line-height: 1.4;
}

.gx-pb-modal {
  background: var(--gx-card-bg-2);
  border: 1px solid var(--gx-border-2);
  border-radius: 16px;
  width: 540px;
  max-width: 90vw;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.gx-pb-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gx-border-1);
  flex-shrink: 0;
}
.gx-pb-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gx-text-1);
  letter-spacing: -0.01em;
}
.gx-pb-modal-sub {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-3);
  margin-top: 3px;
}
.gx-pb-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.gx-pb-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--gx-text-3);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.gx-pb-modal-close:hover {
  background: var(--gx-surface-1);
  color: var(--gx-text-1);
}
.gx-pb-modal-desc {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-3);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Body: sidebar + main */
.gx-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
  position: relative;
  z-index: 2;
}

/* SECTION SIDEBAR */
.gx-side {
  width: 52px;
  flex-shrink: 0;
  background: rgba(7, 11, 22, 0.45);
  border-right: 1px solid var(--gx-border-1);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 4px;
}
.gx-side-btn {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 6px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-text-3);
  cursor: pointer;
  transition: all 0.15s;
}
.gx-side-btn:hover {
  background: var(--gx-surface-1);
  color: var(--gx-text-1);
}
.gx-side-btn.active {
  background: linear-gradient(
    135deg,
    rgba(19, 109, 244, 0.22),
    rgba(74, 168, 242, 0.08)
  );
  border-color: rgba(74, 168, 242, 0.45);
  color: #a8c8ff;
  box-shadow: 0 0 10px rgba(19, 109, 244, 0.25);
}
.gx-side-btn-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gx-amber);
  color: #0b0f1a;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  font-family: var(--font-ui);
  min-width: 14px;
  text-align: center;
}
.gx-side-btn-tip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--gx-text-1);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-ui);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 100;
}
.gx-side-btn:hover .gx-side-btn-tip {
  opacity: 1;
}
.gx-side-divider {
  height: 1px;
  background: var(--gx-border-1);
  margin: 6px 12px;
}
.gx-side-spacer {
  flex: 1;
}
.gx-side-toggle svg {
  transition: transform 0.2s ease;
}
.gx-side-toggle.open svg {
  transform: rotate(180deg);
}

/* ERROR OVERLAY — covers the entire gx-shell, centered pill */
.gx-error-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 18, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gx-error-overlay .app-notification {
  max-width: 460px;
  width: 100%;
  cursor: default;
  animation: gx-fade-in 180ms ease-out;
}
.gx-error-overlay .app-notification:hover {
  transform: none;
  background: rgba(220, 53, 69, 0.25);
  border-color: rgba(220, 53, 69, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(220, 53, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* MAIN CONTENT */
.gx-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.gx-pane {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 84px 24px;
  opacity: 1;
  animation: gx-fade-in 200ms ease-out;
}
.gx-paid-mode {
  --gx-accent: #f59e0b;
  --gx-accent-soft: rgba(245, 158, 11, 0.16);
  --gx-border-blue: rgba(245, 158, 11, 0.38);
}
.gx-paid-mode .gx-btn.primary,
.gx-paid-mode .gx-next-progress-bar {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border-color: rgba(245, 158, 11, 0.55);
  color: #140d02;
}
.gx-paid-mode .gx-subtab.active::after {
  background: var(--gx-accent);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.65);
}
@keyframes gx-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gx-plat-swipe-panel {
  margin-bottom: 14px;
  animation: gx-slide-down 0.28s ease-out;
}
@keyframes gx-slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gx-swipe-plat-label {
  position: absolute;
  top: 8px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-3);
  z-index: 2;
}

.gx-page-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.gx-page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gx-text-1);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.gx-page-sub {
  font-family: var(--font-lato);
  font-size: 13px;
  color: var(--gx-text-3);
  margin-top: 4px;
}
.gx-page-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gx-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  height: 30px;
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-2);
  border-radius: 8px;
  color: var(--gx-text-2);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.gx-action-pill:hover {
  background: var(--gx-card-bg-2);
  color: var(--gx-text-1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   PRIMITIVES
   ============================================================ */
.gx-card {
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  border-radius: 14px;
  padding: 18px;
}
.gx-card.tight {
  padding: 14px;
}
.gx-card.elev {
  background: linear-gradient(
    180deg,
    rgba(20, 28, 46, 0.7),
    rgba(10, 16, 32, 0.5)
  );
  border-color: var(--gx-border-2);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.gx-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.gx-card-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gx-text-1);
}
.gx-card-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gx-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gx-text-3);
}

.gx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gx-text-1);
  white-space: nowrap;
}
.gx-btn.primary {
  background: linear-gradient(180deg, var(--gx-accent), #0e58c4);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(19, 109, 244, 0.4),
    0 6px 18px rgba(19, 109, 244, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.gx-btn.primary:hover {
  filter: brightness(1.1);
}
.gx-btn.primary:active {
  transform: scale(0.97);
}
.gx-btn.primary:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gx-text-3);
  cursor: not-allowed;
  box-shadow: none;
}
.gx-btn.ghost {
  background: var(--gx-card-bg);
  border-color: var(--gx-border-2);
  color: var(--gx-text-1);
}
.gx-btn.ghost:hover {
  background: var(--gx-card-bg-2);
  border-color: rgba(255, 255, 255, 0.2);
}
.gx-btn.success {
  background: rgba(80, 200, 120, 0.16);
  border-color: rgba(80, 200, 120, 0.4);
  color: rgba(140, 230, 160, 0.95);
}
.gx-btn.success:hover {
  background: rgba(80, 200, 120, 0.24);
}
.gx-btn.danger {
  background: rgba(255, 100, 100, 0.14);
  border-color: rgba(255, 100, 100, 0.32);
  color: rgba(255, 170, 170, 0.95);
}
.gx-btn.danger:hover {
  background: rgba(255, 100, 100, 0.22);
}
.gx-btn.sm {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 7px;
}

.gx-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--gx-text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.gx-icon-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--gx-text-1);
}
.gx-icon-btn:active {
  background: rgba(255, 255, 255, 0.04);
}
.gx-icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.gx-icon-btn.subtle {
  color: var(--gx-text-3);
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.gx-icon-btn.subtle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gx-text-2);
}

.gx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.gx-pill.amber {
  background: var(--gx-amber-bg);
  color: var(--gx-amber);
  border: 1px solid var(--gx-amber-border);
}
.gx-pill.green {
  background: var(--gx-green-bg);
  color: var(--gx-green);
  border: 1px solid var(--gx-green-border);
}
.gx-pill.blue {
  background: rgba(74, 168, 242, 0.12);
  color: var(--gx-blue);
  border: 1px solid rgba(74, 168, 242, 0.28);
}
.gx-pill.red {
  background: var(--gx-red-bg);
  color: var(--gx-red);
  border: 1px solid var(--gx-red-border);
}
.gx-pill.orange {
  background: var(--gx-orange-bg);
  color: var(--gx-orange);
  border: 1px solid var(--gx-orange-border);
}
.gx-pill.muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gx-text-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  height: 28px;
  background: var(--gx-surface-1);
  border: 1px solid var(--gx-border-1);
  border-radius: 8px;
  color: var(--gx-text-2);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.gx-chip:hover {
  background: var(--gx-surface-2);
  color: var(--gx-text-1);
  border-color: var(--gx-border-2);
}
.gx-chip.active {
  background: rgba(74, 168, 242, 0.14);
  border-color: rgba(74, 168, 242, 0.4);
  color: #a8c8ff;
}

.gx-toggle {
  display: inline-flex;
  background: var(--gx-surface-1);
  border: 1px solid var(--gx-border-1);
  border-radius: 8px;
  padding: 3px;
}
.gx-toggle button {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--gx-text-3);
  cursor: pointer;
  transition: all 0.15s;
}
.gx-toggle button:hover {
  color: var(--gx-text-1);
}
.gx-toggle button.active {
  background: rgba(74, 168, 242, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(74, 168, 242, 0.35);
}

/* ============================================================
   OVERVIEW — PLATFORM CARDS
   ============================================================ */
.gx-plat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.gx-plat-card {
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.gx-plat-card:hover {
  background: var(--gx-card-bg-2);
  border-color: var(--gx-border-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 168, 242, 0.1);
}
.gx-plat-card.add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gx-text-3);
  border-style: dashed;
  font-family: var(--font-ui);
  font-size: 12px;
  min-height: 110px;
}
.gx-plat-card.add:hover {
  color: var(--gx-text-2);
  border-color: var(--gx-border-2);
  background: var(--gx-surface-1);
  transform: none;
  box-shadow: none;
}
.gx-plat-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.gx-plat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gx-plat-card-meta {
  flex: 1;
  min-width: 0;
}
.gx-plat-card-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gx-text-1);
}
.gx-plat-card-handle {
  font-family: var(--font-lato);
  font-size: 11px;
  color: var(--gx-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gx-connection-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gx-border-1);
  color: var(--gx-text-3);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.gx-connection-badge.connected {
  background: var(--gx-green-bg);
  border-color: var(--gx-green-border);
  color: var(--gx-green);
}
.gx-plat-card-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gx-text-1);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.gx-plat-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.gx-plat-card-label {
  font-family: var(--font-lato);
  font-size: 11px;
  color: var(--gx-text-3);
  flex: 1;
}
.gx-plat-card-delta {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.gx-plat-card-delta.up   { color: var(--gx-green); }
.gx-plat-card-delta.down { color: var(--gx-red); }
.gx-plat-card-spark { opacity: 0.75; }

/* ============================================================
   OVERVIEW — GENERATE SECTION
   ============================================================ */
.gx-overview-generate {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.gx-gen-selector {
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
  animation: gx-fade-in 150ms ease-out;
}
.gx-gen-selector-label {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gx-text-3);
}
.gx-gen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gx-overview-generate .gx-gen-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gx-text-2);
  padding: 6px 0;
}
.gx-gen-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gx-border-2);
  border-top-color: var(--gx-blue);
  border-radius: 50%;
  animation: gx-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes gx-spin {
  to { transform: rotate(360deg); }
}
.gx-overview-swipe {
  animation: gx-slide-down 0.28s ease-out;
}

/* ============================================================
   PERFORMANCE METRICS
   ============================================================ */
.gx-perf-card {
  padding: 18px;
}
.gx-perf-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.gx-perf-metric {
  padding-right: 18px;
  border-right: 1px solid var(--gx-border-1);
}
.gx-perf-metric:last-child {
  border-right: none;
  padding-right: 0;
}
.gx-perf-metric-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-3);
  font-weight: 500;
}
.gx-perf-metric-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--gx-text-1);
  margin-top: 6px;
  line-height: 1;
}
.gx-perf-metric-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
}
.gx-perf-metric-foot.up {
  color: var(--gx-green);
}
.gx-perf-metric-foot.down {
  color: var(--gx-red);
}
.gx-perf-metric-foot .vs {
  color: var(--gx-text-3);
  font-weight: 400;
}

/* ============================================================
   CHART
   ============================================================ */
.gx-chart {
  width: 100%;
  height: 180px;
}
.gx-chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.gx-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-2);
  cursor: pointer;
}
.gx-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================================
   INSIGHTS
   ============================================================ */
.gx-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gx-insight {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(
    150deg,
    rgba(74, 168, 242, 0.06),
    rgba(74, 168, 242, 0.02)
  );
  border: 1px solid rgba(74, 168, 242, 0.18);
  display: flex;
  gap: 12px;
}
.gx-insight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 168, 242, 0.12);
  border: 1px solid rgba(74, 168, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gx-blue);
  box-shadow:
    0 0 14px rgba(74, 168, 242, 0.25),
    inset 0 0 12px rgba(74, 168, 242, 0.1);
}
.gx-insight-body {
  flex: 1;
  min-width: 0;
}
.gx-insight-label {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-text-3);
  font-weight: 500;
}
.gx-insight-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gx-text-1);
  margin-top: 4px;
}
.gx-insight-foot {
  font-family: var(--font-lato);
  font-size: 11px;
  color: var(--gx-text-2);
  margin-top: 4px;
  line-height: 1.4;
}
.gx-insight-foot .up {
  color: var(--gx-green);
  font-weight: 600;
}

/* ============================================================
   TOP POSTS LIST
   ============================================================ */
.gx-post-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--gx-border-1);
}
.gx-post-row:first-child {
  border-top: none;
  padding-top: 0;
}
.gx-post-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.gx-post-thumb-platform {
  position: absolute;
  top: 4px;
  left: 4px;
}
.gx-post-row-text {
  flex: 1;
  min-width: 0;
}
.gx-post-row-text > div:first-child {
  font-family: var(--font-lato);
  font-size: 13px;
  color: var(--gx-text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-post-row-text > div:last-child {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-text-3);
  margin-top: 2px;
}
.gx-post-row-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.gx-post-row-stat {
  text-align: right;
}
.gx-post-row-stat-label {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--gx-text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gx-post-row-stat-value {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--gx-text-1);
}

/* ============================================================
   CALENDAR
   ============================================================ */
.gx-cal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gx-cal-month-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gx-text-1);
  min-width: 170px;
}
.gx-cal-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-2);
  color: var(--gx-text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.gx-cal-nav-btn:hover {
  background: var(--gx-card-bg-2);
  color: var(--gx-text-1);
}

.gx-cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: 24px repeat(5, 1fr);
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  border-radius: 14px;
  overflow: hidden;
  min-height: 480px;
}
.gx-cal-dow {
  padding: 4px 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gx-text-3);
  border-bottom: 1px solid var(--gx-border-1);
  border-right: 1px solid var(--gx-border-1);
  display: flex;
  align-items: center;
}
.gx-cal-dow:last-child {
  border-right: none;
}
.gx-cal-day {
  padding: 6px 8px;
  border-right: 1px solid var(--gx-border-1);
  border-bottom: 1px solid var(--gx-border-1);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.gx-cal-day:hover {
  background: rgba(74, 168, 242, 0.04);
}
.gx-cal-day.muted {
  opacity: 0.32;
}
.gx-cal-day.today .gx-cal-day-num {
  background: var(--gx-accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(19, 109, 244, 0.5);
}
.gx-cal-day-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--gx-text-2);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gx-cal-day-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  flex: 1;
}
.gx-cal-day-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-lato);
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.gx-cal-day-chip.published {
  background: rgba(80, 200, 120, 0.1);
  color: var(--gx-green);
  border-left: 2px solid var(--gx-green);
}
.gx-cal-day-chip.scheduled {
  background: rgba(74, 168, 242, 0.1);
  color: var(--gx-blue);
  border-left: 2px solid var(--gx-blue);
}
.gx-cal-day-chip.pending {
  background: rgba(250, 180, 50, 0.1);
  color: var(--gx-amber);
  border-left: 2px solid var(--gx-amber);
}
.gx-cal-day-chip.manual_required {
  background: var(--gx-orange-bg);
  color: var(--gx-orange);
  border-left: 2px solid var(--gx-orange);
}
.gx-cal-day-chip.rejected {
  background: rgba(255, 100, 100, 0.1);
  color: var(--gx-red);
  border-left: 2px solid var(--gx-red);
}
.gx-cal-day-chip-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-cal-day-more {
  font-family: var(--font-ui);
  font-size: 8px;
  color: var(--gx-text-3);
  margin-top: auto;
}

.gx-cal-detail {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  background: rgba(8, 12, 29, 0.94);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--gx-border-2);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.4);
  z-index: 8;
  overflow-y: auto;
  padding: 20px;
  animation: gx-slide-in 220ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gx-cal-timezone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gx-border-1);
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-2);
}
.gx-cal-timezone-tag {
  margin-left: auto;
  color: var(--gx-text-3);
  font-size: 10px;
}
.gx-cal-reschedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gx-cal-reschedule label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gx-cal-reschedule input,
.gx-cal-reschedule select {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--gx-border-2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gx-text-1);
  padding: 0 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.gx-cal-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 280px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--gx-border-2);
  background: rgba(8, 12, 29, 0.9);
  color: var(--gx-text-2);
  font-family: var(--font-ui);
  font-size: 11px;
  z-index: 9;
}
@keyframes gx-slide-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.gx-cal-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--gx-surface-1);
  border: 1px solid var(--gx-border-1);
  color: var(--gx-text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   APPROVALS
   ============================================================ */
.gx-approvals-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
.gx-approvals-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gx-approvals-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gx-approvals-right .gx-card {
  padding: 0;
  overflow: hidden;
}

.gx-proposal-card {
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gx-border-1);
  border-left: 3px solid rgba(250, 180, 50, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gx-proposal-card.resolved {
  opacity: 0.5;
  border-left-color: rgba(80, 200, 120, 0.6);
}
.gx-proposal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gx-proposal-node {
  color: var(--gx-blue);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}
.gx-proposal-text {
  font-family: var(--font-lato);
  font-size: 13px;
  color: var(--gx-text-1);
  line-height: 1.5;
}
.gx-proposal-evidence {
  font-family: var(--font-lato);
  font-style: italic;
  font-size: 11px;
  color: var(--gx-text-3);
  line-height: 1.5;
}
.gx-proposal-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Swipe stack */
.gx-swipe-stage {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gx-swipe-progress {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-3);
}
.gx-swipe-platform-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.gx-swipe-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: center;
}
.gx-swipe-card-wrap {
  position: relative;
  width: 300px;
  max-width: 100%;
}
.gx-swipe-card {
  width: 100%;
  background: rgba(8, 14, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.gx-swipe-card.swipe-right {
  transform: translateX(180px) rotate(8deg);
  opacity: 0;
}
.gx-swipe-card.swipe-left {
  transform: translateX(-180px) rotate(-8deg);
  opacity: 0;
}
.gx-swipe-flash {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms;
}
.gx-swipe-flash.show {
  opacity: 0.7;
}
.gx-swipe-flash.approve {
  background: rgba(80, 200, 80, 0.4);
  color: #fff;
}
.gx-swipe-flash.reject {
  background: rgba(255, 80, 80, 0.4);
  color: #fff;
}
.gx-swipe-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.gx-swipe-btn:active {
  transform: scale(0.94);
}
.gx-swipe-btn.reject {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.55);
  color: rgba(255, 140, 140, 0.9);
}
.gx-swipe-btn.reject:hover {
  background: rgba(255, 80, 80, 0.22);
}
.gx-swipe-btn.approve {
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.55);
  color: rgba(140, 230, 160, 0.95);
}
.gx-swipe-btn.approve:hover {
  background: rgba(80, 200, 120, 0.22);
}
.gx-swipe-meta {
  font-family: var(--font-lato);
  font-size: 11px;
  color: var(--gx-text-3);
  text-align: center;
}
.gx-swipe-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.gx-swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.15s;
}
.gx-swipe-dot.active {
  background: var(--gx-blue);
  width: 18px;
  border-radius: 999px;
}
.gx-swipe-dot.done {
  background: rgba(80, 200, 120, 0.6);
}
.gx-swipe-dot.passed {
  background: rgba(255, 100, 100, 0.5);
}
.gx-completion-card {
  padding: 28px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(19, 109, 244, 0.12),
    rgba(80, 200, 120, 0.06)
  );
  border: 1px solid rgba(19, 109, 244, 0.32);
}

/* ============================================================
   POST MOCKUPS
   ============================================================ */
.gx-mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 12px;
  background: linear-gradient(135deg, #136df4, #0ea5e9);
  color: #fff;
  flex-shrink: 0;
}
.gx-mock-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--gx-text-1);
}
.gx-mock-handle {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-3);
}
.gx-mock-text {
  font-family: var(--font-lato);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}
.gx-mock-actions {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--gx-text-3);
}
.gx-mock-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font-ui);
}
.gx-mock-ig-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f, #4aa8f2, #22d3ee);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.gx-mock-ig-label {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.gx-mock-tt {
  width: 100%;
  aspect-ratio: 9/14;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0c1d3a, #1e3a5f, #0a1626);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}
.gx-mock-tt-side {
  position: absolute;
  right: 8px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  color: #fff;
}
.gx-mock-tt-side > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-family: var(--font-ui);
}
.gx-mock-tt-caption {
  color: #fff;
  font-family: var(--font-lato);
  font-size: 12px;
  max-width: 75%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   PLAYBOOKS
   ============================================================ */
.gx-pb-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  align-items: start;
}
.gx-pb-side {
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  border-radius: 14px;
  padding: 10px;
}
.gx-pb-side-group {
  padding: 10px 8px 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gx-text-3);
}
.gx-pb-node {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gx-text-2);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  text-align: left;
}
.gx-pb-node:hover {
  background: var(--gx-surface-1);
  color: var(--gx-text-1);
}
.gx-pb-node.active {
  background: rgba(74, 168, 242, 0.14);
  color: #fff;
}
.gx-pb-node.active .gx-pb-node-icon {
  color: var(--gx-blue);
}
.gx-pb-node-icon {
  color: var(--gx-text-3);
  display: flex;
  align-items: center;
}
.gx-pb-node-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gx-amber);
  box-shadow: 0 0 6px rgba(250, 180, 50, 0.6);
}
.gx-pb-node-label {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.gx-pb-node-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gx-amber-bg);
  border: 1px solid var(--gx-amber-border);
  color: var(--gx-amber);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
}

.gx-pb-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.gx-pb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gx-pb-head-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 168, 242, 0.12);
  border: 1px solid rgba(74, 168, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-blue);
  box-shadow: 0 0 12px rgba(74, 168, 242, 0.2);
}
.gx-pb-head-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gx-text-1);
  line-height: 1.1;
}
.gx-pb-head-sub {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-3);
  margin-top: 2px;
}

.gx-pb-section {
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  border-radius: 12px;
  padding: 16px;
}
.gx-pb-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gx-pb-section-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gx-text-1);
}
.gx-pb-rule {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--gx-border-1);
  margin-bottom: 8px;
}
.gx-pb-rule:last-child {
  margin-bottom: 0;
}
.gx-pb-rule.highlighted {
  background: linear-gradient(
    90deg,
    rgba(74, 168, 242, 0.18),
    rgba(74, 168, 242, 0.05)
  );
  border-color: rgba(74, 168, 242, 0.5);
  box-shadow: 0 0 12px rgba(74, 168, 242, 0.2);
  animation: gx-rule-glow 1.8s ease-in-out infinite alternate;
}
@keyframes gx-rule-glow {
  from {
    box-shadow: 0 0 8px rgba(74, 168, 242, 0.1);
  }
  to {
    box-shadow: 0 0 16px rgba(74, 168, 242, 0.3);
  }
}
.gx-pb-rule-strong {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--gx-text-1);
  margin-bottom: 2px;
}
.gx-pb-rule-body {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-2);
  line-height: 1.5;
}
.gx-pb-rule-edit {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(74, 168, 242, 0.4);
  color: var(--gx-text-1);
  font-family: var(--font-lato);
  font-size: 12px;
  resize: vertical;
}

.gx-pb-proposal-card {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(250, 180, 50, 0.12),
    rgba(250, 180, 50, 0.04)
  );
  border: 1px solid rgba(250, 180, 50, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gx-pb-proposal-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gx-pb-proposal-head-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(250, 180, 50, 0.18);
  color: var(--gx-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   TOPICS + MEDIA
   ============================================================ */
.gx-source-banner {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(74, 168, 242, 0.06);
  border: 1px solid rgba(74, 168, 242, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.gx-source-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  background: rgba(74, 168, 242, 0.18);
  color: var(--gx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(74, 168, 242, 0.25);
}
.gx-source-banner-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gx-text-1);
}
.gx-source-banner-sub {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-2);
  margin-top: 2px;
}
.gx-source-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(560px, 100%);
  margin-top: 8px;
}
.gx-source-input-row .gx-input {
  flex: 1;
  min-width: 0;
}

.gx-dropzone {
  border: 1.5px dashed rgba(74, 168, 242, 0.3);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-lato);
  font-size: 13px;
  color: var(--gx-text-2);
  transition: all 0.15s;
  cursor: pointer;
  background: rgba(74, 168, 242, 0.025);
}
.gx-dropzone:hover {
  background: rgba(74, 168, 242, 0.06);
  border-color: rgba(74, 168, 242, 0.5);
}
.gx-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(74, 168, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-blue);
}

.gx-topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gx-topic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  transition: all 0.15s;
  cursor: pointer;
}
.gx-topic-row:hover {
  background: var(--gx-card-bg-2);
  border-color: var(--gx-border-2);
}
.gx-topic-row.flagged {
  border-left: 3px solid var(--gx-red);
}
.gx-topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(74, 168, 242, 0.1);
  color: var(--gx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.gx-topic-meta {
  flex: 1;
  min-width: 0;
}
.gx-topic-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gx-text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-topic-sub {
  font-family: var(--font-lato);
  font-size: 11px;
  color: var(--gx-text-3);
  margin-top: 2px;
}
.gx-topic-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gx-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.gx-media-cell {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gx-border-1);
  cursor: pointer;
  transition: all 0.15s;
}
.gx-media-cell:hover {
  border-color: rgba(74, 168, 242, 0.5);
  transform: translateY(-2px);
}
.gx-media-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}
.gx-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  gap: 4px;
}
.gx-media-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-media-meta {
  font-family: var(--font-ui);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
}
.gx-media-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 3px;
}
.gx-media-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gx-text-2);
  font-family: var(--font-ui);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gx-media-status.processed {
  color: var(--gx-green);
}
.gx-media-status.processing,
.gx-media-status.new {
  color: var(--gx-blue);
}
.gx-media-status.flagged,
.gx-media-status.failed {
  color: var(--gx-red);
}
.gx-media-used-pill {
  position: absolute;
  top: 32px;
  left: 8px;
  padding: 2px 6px;
  background: rgba(80, 200, 120, 0.18);
  border: 1px solid rgba(80, 200, 120, 0.4);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  color: var(--gx-green);
}

/* ============================================================
   REPORTS
   ============================================================ */
.gx-report-feature {
  position: relative;
  padding: 24px 26px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(19, 109, 244, 0.18),
    rgba(74, 168, 242, 0.04)
  );
  border: 1px solid rgba(74, 168, 242, 0.4);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(19, 109, 244, 0.15) inset;
}
.gx-report-feature::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(
    ellipse,
    rgba(74, 168, 242, 0.3) 0%,
    transparent 60%
  );
  filter: blur(60px);
  pointer-events: none;
}
.gx-report-feature > * {
  position: relative;
  z-index: 1;
}
.gx-report-feature .gx-label {
  color: var(--gx-blue);
}
.gx-report-feature h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gx-text-1);
  line-height: 1.2;
  margin-top: 8px;
  max-width: 600px;
}
.gx-report-feature-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.gx-report-feature-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gx-report-feature-meta-label {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gx-report-feature-meta-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--gx-text-1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gx-report-feature-meta-value.up {
  color: rgba(150, 230, 170, 0.95);
}
.gx-report-feature-meta-value.down {
  color: rgba(255, 170, 170, 0.95);
}

.gx-report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gx-report-row {
  display: grid;
  grid-template-columns: 110px 1fr 130px 110px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  cursor: pointer;
  transition: all 0.15s;
}
.gx-report-row:hover {
  background: var(--gx-card-bg-2);
  border-color: var(--gx-border-2);
}
.gx-report-row-week {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-3);
}
.gx-report-row-week strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gx-text-1);
  font-weight: 600;
  margin-top: 2px;
}
.gx-report-row-headline {
  font-family: var(--font-lato);
  font-size: 13px;
  color: var(--gx-text-1);
  line-height: 1.4;
}
.gx-report-row-deltas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gx-report-row-delta {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.gx-report-row-delta.up {
  color: var(--gx-green);
}
.gx-report-row-delta.down {
  color: var(--gx-red);
}

/* ============================================================
   STEP FLOW
   ============================================================ */
.gx-step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--gx-text-3);
}
.gx-step-pill.active {
  background: rgba(74, 168, 242, 0.18);
  border-color: rgba(74, 168, 242, 0.5);
  color: #fff;
}
.gx-step-pill.done {
  background: rgba(80, 200, 120, 0.1);
  border-color: rgba(80, 200, 120, 0.25);
  color: var(--gx-green);
}
.gx-step-pill-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.gx-step-pill.active .gx-step-pill-num {
  background: var(--gx-accent);
  color: #fff;
}
.gx-step-pill.done .gx-step-pill-num {
  background: rgba(80, 200, 120, 0.3);
  color: #fff;
}
.gx-step-connector {
  width: 30px;
  height: 1px;
  background: var(--gx-border-1);
}

.gx-gate {
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gx-border-1);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.gx-gate.ready {
  border-color: rgba(80, 200, 120, 0.4);
  background: rgba(80, 200, 120, 0.06);
}
.gx-gate.processing {
  border-color: rgba(74, 168, 242, 0.35);
  background: rgba(74, 168, 242, 0.06);
}
.gx-gate.proposal {
  border-color: rgba(250, 180, 50, 0.32);
  background: rgba(250, 180, 50, 0.06);
}
.gx-gate-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gx-generate-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gx-accent), #0e58c4);
  color: #fff;
  border: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow:
    0 6px 20px rgba(19, 109, 244, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gx-generate-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}
.gx-generate-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gx-text-3);
  cursor: not-allowed;
  box-shadow: none;
}

/* Generation loading animation */
.gx-gen-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.gx-gen-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gx-blue), transparent);
  background-size: 200% 100%;
  animation: gx-gen-progress 2s linear infinite;
}
@keyframes gx-gen-progress {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.gx-gen-grid {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 12px;
}
.gx-gen-item {
  border: 1px solid var(--gx-border-1);
  border-radius: 10px;
  background: var(--gx-surface-1);
  padding: 8px;
  opacity: 0;
  transform: scale(0.9);
  animation: gx-gen-item-in 500ms ease-out forwards;
}
@keyframes gx-gen-item-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.gx-gen-item .ph {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.gx-gen-status {
  font-family: var(--font-lato);
  font-size: 14px;
  color: var(--gx-text-2);
  min-height: 20px;
  text-align: center;
}
.gx-gen-est {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-3);
}

/* ============================================================
   SETUP ROADMAP MODAL
   ============================================================ */

.gx-roadmap-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.55);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: gx-fade-in 200ms ease-out;
}
.gx-roadmap-modal {
  width: 100%;
  max-width: 900px;
  max-height: 90%;
  background: linear-gradient(
    180deg,
    rgba(14, 20, 36, 0.97),
    rgba(10, 16, 28, 0.97)
  );
  border: 1px solid rgba(74, 168, 242, 0.3);
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(19, 109, 244, 0.18);
  position: relative;
  overflow: hidden;
  animation: gx-modal-in 280ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
@keyframes gx-modal-in {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.gx-roadmap-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--gx-border-1);
}
.gx-roadmap-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 20px 24px;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}
.gx-roadmap-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow-y: auto;
}

.gx-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.gx-ring svg {
  transform: rotate(-90deg);
}
.gx-ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}
.gx-ring-fg {
  stroke: url(#ring-gradient);
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(74, 168, 242, 0.5));
}
.gx-ring-label {
  position: absolute;
  text-align: center;
}
.gx-ring-pct {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--gx-text-1);
  line-height: 1;
}
.gx-ring-pct .sym {
  font-size: 16px;
  font-weight: 500;
}
.gx-ring-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-text-3);
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gx-progress-card {
  padding: 16px;
  border-radius: 12px;
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
  display: flex;
  gap: 16px;
  align-items: center;
}
.gx-next-card {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(19, 109, 244, 0.18),
    rgba(74, 168, 242, 0.04)
  );
  border: 1px solid rgba(74, 168, 242, 0.4);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.gx-next-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(
    ellipse,
    rgba(74, 168, 242, 0.2),
    transparent 60%
  );
  filter: blur(50px);
}
.gx-next-card > * {
  position: relative;
  z-index: 1;
}
.gx-next-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.gx-next-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(74, 168, 242, 0.2);
  border: 1px solid rgba(74, 168, 242, 0.4);
  color: var(--gx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(74, 168, 242, 0.4);
}
.gx-next-card-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--gx-text-1);
}
.gx-next-card-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.gx-next-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.gx-next-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gx-blue-3), var(--gx-cyan));
  border-radius: 2px;
}
.gx-next-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.gx-next-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-lato);
  font-size: 13px;
  color: var(--gx-text-2);
}
.gx-next-item.done {
  color: var(--gx-text-1);
}
.gx-next-item-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gx-text-4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gx-next-item.done .gx-next-item-check {
  background: var(--gx-blue-3);
  border-color: var(--gx-blue);
  color: #fff;
}

.gx-stages-table {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}
.gx-stages-header {
  display: grid;
  grid-template-columns: 1fr 120px;
  padding: 0 6px 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gx-text-3);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gx-stages-header > span:last-child {
  text-align: right;
  padding-right: 30px;
}
.gx-stage-row {
  display: grid;
  grid-template-columns: 1fr 120px 24px;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-top: 1px solid var(--gx-border-1);
  cursor: pointer;
  transition: background 0.15s;
}
.gx-stage-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.gx-stage-row.current {
  background: rgba(74, 168, 242, 0.06);
}
.gx-stage-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.gx-stage-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gx-border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gx-text-2);
}
.gx-stage-row.completed .gx-stage-icon-wrap {
  color: var(--gx-blue);
  border-color: rgba(74, 168, 242, 0.3);
  background: rgba(74, 168, 242, 0.04);
}
.gx-stage-row.current .gx-stage-icon-wrap {
  color: var(--gx-blue);
  border-color: rgba(74, 168, 242, 0.6);
  background: rgba(74, 168, 242, 0.12);
  box-shadow: 0 0 16px rgba(74, 168, 242, 0.4);
}
.gx-stage-row.locked .gx-stage-icon-wrap {
  color: var(--gx-text-4);
  opacity: 0.6;
}
.gx-stage-row.optional .gx-stage-icon-wrap {
  color: var(--gx-amber);
  border-color: var(--gx-amber-border);
  background: var(--gx-amber-bg);
}
.gx-stage-row.not-started .gx-stage-icon-wrap {
  color: var(--gx-blue);
  border-color: rgba(74, 168, 242, 0.4);
  background: rgba(74, 168, 242, 0.07);
}
.gx-stage-row.partial .gx-stage-icon-wrap {
  color: var(--gx-amber);
  border-color: var(--gx-amber-border);
  background: var(--gx-amber-bg);
}
.gx-stage-meta {
  min-width: 0;
}
.gx-stage-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--gx-text-1);
}
.gx-stage-name .num {
  color: var(--gx-text-3);
  font-weight: 500;
  margin-right: 4px;
}
.gx-stage-sub {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-3);
  margin-top: 2px;
}
.gx-stage-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  justify-self: end;
}
.gx-stage-status-pill.completed {
  background: var(--gx-green-bg);
  color: var(--gx-green);
  border: 1px solid var(--gx-green-border);
}
.gx-stage-status-pill.in-progress {
  background: rgba(74, 168, 242, 0.12);
  color: var(--gx-blue);
  border: 1px solid rgba(74, 168, 242, 0.32);
}
.gx-stage-status-pill.locked {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gx-text-3);
  border: 1px solid var(--gx-border-1);
}
.gx-stage-status-pill.optional {
  background: var(--gx-amber-bg);
  color: var(--gx-amber);
  border: 1px solid var(--gx-amber-border);
}
.gx-stage-status-pill.not-started {
  background: rgba(74, 168, 242, 0.12);
  color: var(--gx-blue);
  border: 1px solid rgba(74, 168, 242, 0.35);
  cursor: pointer;
}
.gx-stage-status-pill.partial {
  background: rgba(251, 191, 36, 0.1);
  color: var(--gx-amber);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.gx-setup-platforms {
  padding: 14px;
  border-radius: 12px;
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border-1);
}
.gx-setup-platform-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--gx-border-1);
}
.gx-setup-platform-row:first-of-type {
  border-top: none;
}
.gx-connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gx-text-4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}
.gx-connection-dot.connected {
  background: var(--gx-green);
  box-shadow: 0 0 0 3px var(--gx-green-bg);
}
.gx-setup-platform-name {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--gx-text-1);
}
.gx-setup-platform-sub {
  font-family: var(--font-lato);
  font-size: 11px;
  color: var(--gx-text-3);
  margin-top: 2px;
}

/* ============================================================
   PLATFORM DETAIL
   ============================================================ */
.gx-plat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gx-plat-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gx-card-bg-2);
  border: 1px solid var(--gx-border-2);
}
.gx-plat-header-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gx-text-1);
  line-height: 1.1;
}
.gx-plat-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gx-paid-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fbbf24;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.gx-plat-header-handle {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--gx-text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gx-paid-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
  flex-wrap: wrap;
}
.gx-paid-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 9px;
  background: var(--gx-surface-1);
  border: 1px solid var(--gx-border-1);
}
.gx-paid-toggle button {
  min-width: 82px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--gx-text-3);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.gx-paid-toggle button.active.organic {
  background: rgba(74, 168, 242, 0.18);
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(74, 168, 242, 0.35);
}
.gx-paid-toggle button.active.paid {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4);
}
.gx-budget-line,
.gx-paid-tooltip {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-2);
}
.gx-budget-line {
  color: #fbbf24;
}
.gx-paid-tooltip {
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.gx-subtabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gx-border-1);
}
.gx-subtab {
  position: relative;
  padding: 9px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gx-text-3);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.15s;
}
.gx-subtab:hover {
  color: var(--gx-text-1);
}
.gx-subtab.active {
  color: var(--gx-text-1);
}
.gx-subtab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--gx-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(74, 168, 242, 0.6);
}

.gx-plat-perf-card {
  padding: 18px;
}
.gx-plat-perf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--gx-border-1);
}
.gx-plat-perf-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.gx-plat-perf-row:first-child {
  padding-top: 0;
}
.gx-plat-perf-row-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-3);
  font-weight: 500;
}
.gx-plat-perf-row-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gx-text-1);
  line-height: 1;
}
.gx-plat-perf-row-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  font-family: var(--font-ui);
}
.gx-plat-perf-row-foot.up {
  color: var(--gx-green);
}

.gx-platform-post-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gx-border-1);
}
.gx-sponsored-card {
  border-left: 3px solid var(--gx-accent);
  background: rgba(245, 158, 11, 0.055);
}
.gx-sponsored-label {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gx-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.gx-bar-row-label {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-1);
  min-width: 100px;
}
.gx-bar-row-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}
.gx-bar-row-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gx-blue-3), var(--gx-cyan));
  border-radius: 3px;
}
.gx-bar-row-value {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gx-text-2);
  font-weight: 600;
  min-width: 44px;
  text-align: right;
}

.gx-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.gx-recent-cell {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gx-border-1);
  cursor: pointer;
  transition: all 0.15s;
}
.gx-recent-cell:hover {
  border-color: rgba(74, 168, 242, 0.5);
}
.gx-recent-thumb {
  position: absolute;
  inset: 0;
}
.gx-recent-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  font-family: var(--font-ui);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@container chat-shell (max-width: 720px) {
  .gx-status-pill .gx-status-pill-label,
  .gx-status-pill .gx-status-dot {
    display: none;
  }
  .gx-status-pill .gx-status-pill-icon-mobile {
    display: flex;
  }
  .gx-status-pill,
  .gx-status-pill.up {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
  }
  .gx-plat-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .gx-perf-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gx-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gx-approvals-grid {
    grid-template-columns: 1fr;
  }
  .gx-pb-layout {
    grid-template-columns: 1fr;
  }
  .gx-pb-side {
    max-height: 200px;
    overflow-y: auto;
  }
  .gx-roadmap-body {
    grid-template-columns: 1fr;
  }
  .gx-report-row {
    grid-template-columns: 100px 1fr;
  }
  .gx-report-row-deltas {
    display: none;
  }
}
@container chat-shell (max-width: 480px) {
  .gx-plat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gx-insights {
    grid-template-columns: 1fr;
  }
  .gx-side {
    width: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   First-open boot overlay (lazy bundle) — GSAP-driven
   ============================================================ */
#growthViewBoot.growth-view-boot {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
#growthViewBoot.growth-view-boot--active {
  display: block;
}
.growth-view-boot-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 58% 52% at 50% 50%,
      rgba(74, 168, 242, 0.22) 0%,
      rgba(34, 211, 238, 0.08) 38%,
      transparent 72%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(12, 22, 42, 0.42) 0%,
      rgba(8, 14, 28, 0.18) 45%,
      transparent 68%
    );
}
.growth-view-boot-ripples {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.growth-view-boot-ring {
  position: absolute;
  width: min(120vmin, 720px);
  height: min(120vmin, 720px);
  border-radius: 50%;
  border: 5px solid rgba(96, 165, 250, 0.38);
  box-shadow:
    0 0 0 3px rgba(19, 109, 244, 0.12),
    0 0 0 10px rgba(74, 168, 242, 0.06),
    0 0 72px rgba(74, 168, 242, 0.18);
  transform-origin: 50% 50%;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

#growthWorkspace .gx-card.border-glow-card {
  border-color: var(--gx-border-2);
}

#growthWorkspace .gx-card.elev.border-glow-card {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0.1) 0px 1px 2px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px,
    rgba(0, 0, 0, 0.1) 0px 4px 8px,
    rgba(0, 0, 0, 0.1) 0px 8px 16px,
    rgba(0, 0, 0, 0.1) 0px 16px 32px,
    rgba(0, 0, 0, 0.1) 0px 32px 64px;
}

/* Manual post modal */
.gx-modal {
  background: var(--gx-card-bg-2);
  border: 1px solid var(--gx-border-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
}
.gx-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gx-border-1);
}
.gx-modal-close {
  background: none;
  border: none;
  color: var(--gx-text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}
.gx-modal-close:hover { color: var(--gx-text-1); background: rgba(255,255,255,0.06); }
.gx-manual-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.gx-manual-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gx-border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--gx-text-2);
  flex-shrink: 0;
  margin-top: 2px;
}
.gx-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gx-border-1);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--gx-text-1);
  font-family: var(--font-lato);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.gx-input:focus { border-color: var(--gx-blue); }

.gx-dnd-route-modal {
  width: 560px;
  max-width: 92vw;
  background: var(--gx-card-bg-2);
  border: 1px solid var(--gx-border-2);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.gx-dnd-route-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gx-text-1);
  margin-bottom: 16px;
}
.gx-dnd-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gx-dnd-route-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--gx-border-1);
  background: var(--gx-surface-1);
  color: var(--gx-text-1);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.gx-dnd-route-card:hover {
  background: var(--gx-surface-2);
  border-color: var(--gx-border-2);
}
.gx-dnd-route-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 168, 242, 0.12);
  color: var(--gx-blue);
}
.gx-dnd-route-card-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}
.gx-dnd-route-card-sub {
  font-family: var(--font-lato);
  font-size: 12px;
  color: var(--gx-text-3);
  line-height: 1.45;
}

/* Media attachment section on swipe stack */
.gx-swipe-media-section {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 4px;
}
