:root {
  --ops-sidebar-width: 280px;
  --ops-page-gutter: 18px;
  --ops-transition: 150ms ease;
}

html[data-product-ui="modern"] .legacy-ui-only {
  display: inline-flex !important;
}

html[data-product-ui="classic"] .legacy-ui-only {
  display: none !important;
}

/*
  We keep both modes on the same DOM/CSS structure and switch primarily through
  token overrides so every product page stays in sync.
 */
html[data-product-ui="modern"] {
  --gp-color-bg: #101522;
  --gp-color-surface: #182033;
  --gp-color-surface-2: #202a40;
  --gp-color-border: #2b3752;
  --gp-color-border-strong: #394967;
  --gp-color-text: #edf2ff;
  --gp-color-muted: #b7c1da;
  --gp-color-faint: #8d9bbc;
  --gp-color-accent: #2f6fff;
  --gp-color-accent-soft: rgba(47, 111, 255, 0.16);
  --gp-btn-primary-bg: #2f6fff;
  --gp-btn-primary-text: #ffffff;
  --gp-btn-secondary-bg: rgba(47, 111, 255, 0.16);
  --gp-btn-secondary-text: #9cbaff;
  --gp-btn-secondary-border: rgba(87, 139, 255, 0.56);
  --gp-btn-tertiary-bg: rgba(47, 111, 255, 0.08);
  --gp-btn-tertiary-text: #b2c9ff;
  --gp-btn-tertiary-border: rgba(87, 139, 255, 0.44);
  --gp-btn-destructive-bg: rgba(47, 111, 255, 0.16);
  --gp-btn-destructive-text: #9cbaff;
  --gp-btn-destructive-border: rgba(87, 139, 255, 0.56);
  --gp-focus-ring: 0 0 0 2px rgba(87, 139, 255, 0.42);
  --gp-chip-zero-text: #f3dc8a;
  --gp-chip-zero-bg: rgba(250, 204, 21, 0.2);
  --gp-chip-zero-border: rgba(234, 179, 8, 0.5);
}

html[data-product-ui="classic"] {
  --gp-color-bg: #f8fafc;
  --gp-color-surface: #ffffff;
  --gp-color-surface-2: #f1f5f9;
  --gp-color-border: #e2e8f0;
  --gp-color-border-strong: #cbd5e1;
  --gp-color-text: #0f172a;
  --gp-color-muted: #475569;
  --gp-color-faint: #64748b;
  --gp-color-accent: #3b82f6;
  --gp-color-accent-soft: rgba(59, 130, 246, 0.1);
  --gp-btn-primary-bg: #3b82f6;
  --gp-btn-primary-text: #ffffff;
  --gp-btn-secondary-bg: #ffffff;
  --gp-btn-secondary-text: #1e293b;
  --gp-btn-secondary-border: #e2e8f0;
  --gp-btn-tertiary-bg: #f8fafc;
  --gp-btn-tertiary-text: #475569;
  --gp-btn-tertiary-border: #e2e8f0;
  --gp-btn-destructive-bg: #fef2f2;
  --gp-btn-destructive-text: #ef4444;
  --gp-btn-destructive-border: #fee2e2;
  --gp-focus-ring: 0 0 0 2px rgba(59, 130, 246, 0.2);
  --gp-chip-zero-text: #92400e;
  --gp-chip-zero-bg: #fef3c7;
  --gp-chip-zero-border: #fde68a;
  --gp-radius: 10px;
  --gp-radius-lg: 14px;
  --gp-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
}

body.product-ui {
  margin: 0;
  min-height: 100vh;
  background: var(--gp-color-bg);
  color: var(--gp-color-text);
  font-family: var(--gp-font-sans);
}

body.product-ui *,
body.product-ui *::before,
body.product-ui *::after {
  box-sizing: border-box;
}

body.product-ui a {
  color: var(--gp-color-text);
}

body.product-ui h1,
body.product-ui h2,
body.product-ui h3,
body.product-ui h4,
body.product-ui h5,
body.product-ui h6 {
  margin: 0;
  font-weight: 500;
  color: var(--gp-color-text);
}

body.product-ui p {
  color: var(--gp-color-muted);
  margin: 0;
}

html[data-product-ui="modern"] body.product-ui .panel,
html[data-product-ui="modern"] body.product-ui .kpi-card,
html[data-product-ui="modern"] body.product-ui .form-card,
html[data-product-ui="modern"] body.product-ui .list-item {
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(8, 12, 24, 0.22) !important;
}

html[data-product-ui="modern"] body.product-ui .ops-link.active::after {
  display: none;
}

body.product-ui .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--gp-header-height);
  border-bottom: 1px solid var(--gp-color-border);
  background: var(--gp-color-bg);
  box-shadow: none !important;
}

body.product-ui .header-inner {
  height: var(--gp-header-height);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--ops-page-gutter);
}

body.product-ui .header-title-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 180px;
}

body.product-ui .header-title {
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  color: var(--gp-color-text);
}

body.product-ui .header-meta {
  font-size: 12.5px;
  line-height: 1;
  color: var(--gp-color-faint);
  font-family: var(--gp-font-mono);
  font-variant-numeric: tabular-nums;
}

body.product-ui .header-search {
  margin-left: auto;
  width: min(280px, 38vw);
  min-width: 220px;
  height: 34px;
  border: 1px solid var(--gp-color-border-strong);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

body.product-ui .header-search .icon {
  width: 16px;
  height: 16px;
  color: var(--gp-color-faint);
  flex: 0 0 auto;
}

body.product-ui .header-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--gp-color-text);
  width: 100%;
  font-size: 13px;
}

body.product-ui .header-search input::placeholder {
  color: var(--gp-color-faint);
}

body.product-ui .kbd-hint {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--gp-color-border-strong);
  border-radius: var(--gp-radius-sm);
  color: var(--gp-color-faint);
  font-family: var(--gp-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

body.product-ui .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.product-ui .header-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--gp-radius);
  border: 1px solid rgba(19, 174, 180, 0.45);
  background: var(--gp-color-accent-soft);
  color: var(--gp-color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ops-transition), border-color var(--ops-transition), color var(--ops-transition);
}

body.product-ui .header-icon-btn:hover {
  background: var(--gp-color-accent);
  color: #062126;
}

body.product-ui .header-icon-btn .icon {
  width: 16px;
  height: 16px;
}

body.product-ui .notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--gp-color-accent);
  color: #0c0d10;
  font-family: var(--gp-font-mono);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border: 1px solid var(--gp-color-bg);
}

body.product-ui .notifications-btn {
  position: relative;
}

body.product-ui :where(button, a, input, select, textarea, [role="button"]):focus-visible {
  outline: none !important;
  box-shadow: var(--gp-focus-ring) !important;
}

body.product-ui .btn,
body.product-ui .primary-action,
body.product-ui .primary-btn,
body.product-ui .primary-btn.secondary-action,
body.product-ui .new-campaign-btn,
body.product-ui .try-btn {
  border-radius: var(--gp-radius) !important;
  border: 1px solid var(--gp-btn-secondary-border) !important;
  background: var(--gp-btn-secondary-bg) !important;
  color: var(--gp-btn-secondary-text) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none;
  min-height: 30px;
  padding: 6px 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  line-height: 1;
  box-shadow: none !important;
  transition:
    background var(--ops-transition),
    color var(--ops-transition),
    border-color var(--ops-transition),
    filter var(--ops-transition);
}

body.product-ui .btn--primary,
body.product-ui .primary-action,
body.product-ui .primary-btn,
body.product-ui .primary-btn.secondary-action,
body.product-ui .new-campaign-btn,
body.product-ui .try-btn,
body.product-ui .ui-action-primary {
  border: 0 !important;
  background: var(--gp-btn-primary-bg) !important;
  color: var(--gp-btn-primary-text) !important;
}

body.product-ui .btn--secondary,
body.product-ui .secondary-action,
body.product-ui .card-action-btn,
body.product-ui .logout-btn,
body.product-ui .ad-tool-btn.muted,
body.product-ui .settings-control-value,
body.product-ui .notifications-link,
body.product-ui .platform-tab,
body.product-ui .angle-tab {
  border: 1px solid var(--gp-btn-secondary-border) !important;
  background: var(--gp-btn-secondary-bg) !important;
  color: var(--gp-btn-secondary-text) !important;
  border-radius: var(--gp-radius) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

body.product-ui .btn--tertiary {
  border: 1px solid var(--gp-btn-tertiary-border) !important;
  background: var(--gp-btn-tertiary-bg) !important;
  color: var(--gp-btn-tertiary-text) !important;
}

body.product-ui .btn--destructive,
body.product-ui .destructive-btn,
body.product-ui .card-action-btn.delete,
body.product-ui .campaign-bulk-btn.delete,
body.product-ui .card-delete-btn,
body.product-ui .bulk-delete-btn,
body.product-ui .delete-asset-btn {
  border: 1px solid var(--gp-btn-destructive-border) !important;
  background: var(--gp-btn-destructive-bg) !important;
  color: var(--gp-btn-destructive-text) !important;
}

body.product-ui .btn-connect.btn-meta {
  border: 0 !important;
  background: #1877f2 !important;
  color: #ffffff !important;
}

body.product-ui .btn-connect.btn-google {
  border: 0 !important;
  background: #4285f4 !important;
  color: #ffffff !important;
}

body.product-ui .btn-disconnect {
  border: 1px solid var(--gp-btn-destructive-border) !important;
  background: var(--gp-btn-destructive-bg) !important;
  color: var(--gp-btn-destructive-text) !important;
}

body.product-ui .settings-control-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  line-height: 1;
}

body.product-ui .btn--sm {
  min-height: 26px;
  padding: 4px 10px !important;
  font-size: 12px !important;
}

body.product-ui .btn--md {
  min-height: 32px;
  padding: 7px 12px !important;
  font-size: 13px !important;
}

body.product-ui .btn--lg {
  min-height: 38px;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.product-ui .btn--primary:hover,
body.product-ui .primary-action:hover,
body.product-ui .primary-btn:hover,
body.product-ui .new-campaign-btn:hover,
body.product-ui .try-btn:hover,
body.product-ui .ui-action-primary:hover {
  filter: brightness(0.94);
}

body.product-ui .btn--secondary:hover,
body.product-ui .btn--tertiary:hover,
body.product-ui .btn.secondary-action:hover,
body.product-ui .btn--destructive:hover,
body.product-ui .card-action-btn:hover,
body.product-ui .logout-btn:hover,
body.product-ui .secondary-action:hover,
body.product-ui .platform-tab:hover,
body.product-ui .angle-tab:hover {
  filter: brightness(0.96);
}

body.product-ui .btn:disabled,
body.product-ui button:disabled,
body.product-ui .primary-action:disabled,
body.product-ui .secondary-action:disabled,
body.product-ui .ui-action-primary:disabled,
body.product-ui [aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
}

body.product-ui .workspace-shell {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  display: block !important;
}

body.product-ui .ops-sidebar {
  position: fixed;
  left: 0;
  top: var(--gp-header-height);
  bottom: 0;
  width: var(--ops-sidebar-width);
  border-right: 1px solid var(--gp-color-border);
  background: var(--gp-color-surface);
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  box-shadow: 1px 0 3px rgba(0,0,0,0.02);
}

body.product-ui .ops-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

body.product-ui .ops-brand-mark {
  display: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gp-color-border-strong);
  border-radius: var(--gp-radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--gp-color-accent);
  flex: 0 0 auto;
}

body.product-ui .ops-brand-mark .icon {
  width: 14px;
  height: 14px;
}

body.product-ui .ops-brand img {
  width: var(--gp-logo-width);
  height: var(--gp-logo-height);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

body.product-ui .ops-workspace-row {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--gp-color-muted);
  font-size: 12px;
  font-family: var(--gp-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.product-ui .ops-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.product-ui .ops-nav-group[hidden] {
  display: none;
}

body.product-ui .ops-nav-group-title {
  font-family: var(--gp-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gp-color-faint);
  padding: 0 8px;
  min-height: 18px;
  display: flex;
  align-items: center;
}

body.product-ui .ops-link[hidden],
body.product-ui .ops-link[data-plan-pending] {
  display: none;
}

/* Zero-flash plan nav: when data-plan-sections is set on <html> (applied
   synchronously from localStorage before body renders), hide all section nav
   links by default, then reveal only those in the plan. */
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/dashboard.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/meta-ads-manager.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/meta-new-campaign.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/google-ads-manager.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/google-ads-new-campaign.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/gbp-optimization.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/competitor-analysis.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/ca-variants.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/campaigns.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/chat.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/ad-variants.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/share.html"],
html[data-plan-sections] body.product-ui .ops-link-anchor[href="/ad-library.html"] {
  display: none;
}

html[data-plan-sections~="dashboard"] body.product-ui .ops-link-anchor[href="/dashboard.html"] { display: flex; }
html[data-plan-sections~="meta_ads"] body.product-ui .ops-link-anchor[href="/meta-ads-manager.html"],
html[data-plan-sections~="meta_ads"] body.product-ui .ops-link-anchor[href="/meta-new-campaign.html"] { display: flex; }
html[data-plan-sections~="google_ads"] body.product-ui .ops-link-anchor[href="/google-ads-manager.html"],
html[data-plan-sections~="google_ads"] body.product-ui .ops-link-anchor[href="/google-ads-new-campaign.html"] { display: flex; }
html[data-plan-sections~="gbp"] body.product-ui .ops-link-anchor[href="/gbp-optimization.html"] { display: flex; }
html[data-plan-sections~="competitor_analysis"] body.product-ui .ops-link-anchor[href="/competitor-analysis.html"],
html[data-plan-sections~="competitor_analysis"] body.product-ui .ops-link-anchor[href="/ca-variants.html"] { display: flex; }
html[data-plan-sections~="campaigns"] body.product-ui .ops-link-anchor[href="/campaigns.html"],
html[data-plan-sections~="campaigns"] body.product-ui .ops-link-anchor[href="/chat.html"],
html[data-plan-sections~="campaigns"] body.product-ui .ops-link-anchor[href="/ad-variants.html"],
html[data-plan-sections~="campaigns"] body.product-ui .ops-link-anchor[href="/share.html"] { display: flex; }
html[data-plan-sections~="ad_library"] body.product-ui .ops-link-anchor[href="/ad-library.html"] { display: flex; }

body.product-ui .ops-link-anchor[href="/seo-blogs.html"] {
  display: none !important;
}

/* Integrations page: hide platform cards that don't apply to the current plan */
html[data-plan-sections] #meta-card { display: none; }
html[data-plan-sections] #google-card { display: none; }
html[data-plan-sections] #gbp-card { display: none; }
html[data-plan-sections~="meta_ads"] #meta-card { display: block; }
html[data-plan-sections~="google_ads"] #google-card { display: block; }
html[data-plan-sections~="gbp"] #gbp-card { display: block; }

/* Hide the entire Ad Platform section if the plan has none of those integrations */
html[data-plan-sections]:not([data-plan-sections~="meta_ads"]):not([data-plan-sections~="google_ads"]):not([data-plan-sections~="gbp"]) #ad-platform-section {
  display: none;
}

body.product-ui .ops-link {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--gp-radius);
  color: var(--gp-color-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  position: relative;
  transition: background var(--ops-transition), color var(--ops-transition);
}

body.product-ui .ops-link .ops-ico,
body.product-ui .ops-link .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

body.product-ui .ops-link:hover {
  background: var(--gp-color-surface);
  color: var(--gp-color-text);
}

body.product-ui .ops-link.active {
  background: var(--gp-color-surface);
  color: var(--gp-color-text);
}

html[data-product-ui="modern"] body.product-ui .ops-link.active {
  background: linear-gradient(135deg, rgba(33, 243, 230, 0.22), rgba(19, 142, 184, 0.24));
  border-color: rgba(33, 243, 230, 0.32);
  color: #fff;
  box-shadow: 0 16px 38px rgba(33, 243, 230, 0.1);
}

body.product-ui .ops-link.active .ops-ico,
body.product-ui .ops-link.active .icon {
  color: var(--gp-color-accent);
}

body.product-ui .ops-link.active::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 1px;
  background: var(--gp-color-accent);
}

body.product-ui .seo-side-submenu {
  display: grid;
  gap: 3px;
  margin: 2px 0 6px 24px;
}

body.product-ui .seo-side-submenu-link {
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: var(--gp-radius-sm);
  padding: 4px 8px;
  text-decoration: none;
  color: var(--gp-color-faint);
  font-size: 12px;
  display: flex;
  align-items: center;
}

body.product-ui .seo-side-submenu-link:hover,
body.product-ui .seo-side-submenu-link.active {
  background: var(--gp-color-surface);
  color: var(--gp-color-text);
}

body.product-ui .ops-sub-link {
  display: block;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: var(--gp-radius-sm);
  padding: 4px 8px 4px 24px;
  text-decoration: none;
  color: var(--gp-color-faint);
  font-size: 12px;
  line-height: 1.5;
  margin: 1px 0;
}

body.product-ui .ops-sub-link:hover {
  background: var(--gp-color-surface);
  color: var(--gp-color-text);
}

body.product-ui .ops-sub-link-active {
  background: var(--gp-color-surface);
  color: var(--gp-color-text);
}

body.product-ui .ops-user-block {
  margin-top: auto;
  border-top: 1px solid var(--gp-color-border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.product-ui .ops-user-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gp-color-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gp-color-accent);
  font-family: var(--gp-font-mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--gp-color-surface-2);
}

body.product-ui .ops-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.product-ui .ops-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.product-ui .ops-user-email {
  font-size: 12px;
  color: var(--gp-color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.product-ui .page-content,
body.product-ui .chat-container,
body.product-ui .settings-main,
body.product-ui .ad-review-main,
body.product-ui .share-main {
  margin-left: var(--ops-sidebar-width);
  width: calc(100% - var(--ops-sidebar-width));
  max-width: none !important;
  min-width: 0;
  padding: calc(var(--gp-header-height) + 16px) var(--ops-page-gutter) 26px;
}

body.product-ui .site-footer {
  margin-left: var(--ops-sidebar-width);
  width: calc(100% - var(--ops-sidebar-width));
  max-width: none !important;
  border-top: 1px solid var(--gp-color-border);
  background: var(--gp-color-bg);
}

body.product-ui .site-footer-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 var(--ops-page-gutter);
}

body.product-ui .site-footer-brand,
body.product-ui .site-footer-links a {
  font-size: 12px;
  color: var(--gp-color-faint);
  text-decoration: none;
}

body.product-ui .site-footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.product-ui .panel,
body.product-ui .kpi-card,
body.product-ui .form-card,
body.product-ui .list-item,
body.product-ui .integration-card,
body.product-ui .settings-control-row,
body.product-ui .library-summary,
body.product-ui .library-bulk-actions,
body.product-ui .share-card,
body.product-ui .readonly-notice,
body.product-ui .error-state,
body.product-ui .empty-state {
  background: var(--gp-color-surface) !important;
  border: 1px solid var(--gp-color-border) !important;
  border-radius: var(--gp-radius) !important;
  box-shadow: none !important;
}

body.product-ui .panel,
body.product-ui .form-card,
body.product-ui .integration-card,
body.product-ui .settings-control-row,
body.product-ui .share-card,
body.product-ui .readonly-notice,
body.product-ui .error-state,
body.product-ui .empty-state {
  padding: 16px;
}

body.product-ui .panel h3,
body.product-ui .form-card h3,
body.product-ui .integration-name,
body.product-ui .section-title {
  font-size: 14px;
  font-weight: 500;
}

body.product-ui .panel p,
body.product-ui .integration-desc,
body.product-ui .section-desc,
body.product-ui .item-meta,
body.product-ui .card-meta,
body.product-ui .audit-score-note {
  font-size: 12px;
  color: var(--gp-color-faint);
}

body.product-ui .campaign-status-section {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

body.product-ui .section-header,
body.product-ui .campaign-status-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 2px;
}

body.product-ui .section-header-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.product-ui .section-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gp-color-text);
}

body.product-ui .section-header-subtitle {
  font-size: 12px;
  color: var(--gp-color-faint);
}

body.product-ui .section-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.product-ui .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gp-space-sm);
}

body.product-ui .hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gp-space-md);
  margin-bottom: var(--gp-space-md);
}

body.product-ui .hero-kpi-grid .kpi-card {
  padding: var(--gp-space-lg);
  border-left: 4px solid var(--gp-color-accent) !important;
}

body.product-ui .hero-kpi-grid .kpi-value {
  font-size: clamp(28px, 3vw, 36px);
}

body.product-ui .kpi-card {
  padding: var(--gp-space-md);
  min-height: 122px;
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-sm);
}

body.product-ui .kpi-label {
  font-size: 12px;
  color: var(--gp-color-faint);
}

body.product-ui .kpi-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.product-ui .kpi-value {
  font-family: var(--gp-font-mono);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 500;
  color: var(--gp-color-text);
  font-variant-numeric: tabular-nums;
}

body.product-ui .kpi-sparkline {
  width: 110px;
  height: 30px;
  color: var(--gp-color-accent);
}

body.product-ui .kpi-sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

body.product-ui .kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--gp-font-mono);
  font-size: 11.5px;
}

body.product-ui .kpi-delta .icon {
  width: 12px;
  height: 12px;
}

body.product-ui .kpi-delta.positive { color: var(--gp-color-success); }
body.product-ui .kpi-delta.negative { color: var(--gp-color-error); }
body.product-ui .kpi-delta.neutral { color: var(--gp-color-muted); }

body.product-ui .analytics-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
}

body.product-ui .analytics-bottom-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.product-ui .line-chart,
body.product-ui .bar-chart,
body.product-ui .area-chart {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-bg);
  min-height: 210px;
}

body.product-ui .area-fill {
  fill: rgba(92, 200, 215, 0.2);
}

body.product-ui .area-line,
body.product-ui .chart-created,
body.product-ui .chart-ready {
  stroke: var(--gp-color-accent);
  stroke-width: 1.5;
  fill: none;
}

body.product-ui .chart-ready {
  stroke-dasharray: 4 4;
}

body.product-ui .chart-focus-dot {
  fill: var(--gp-color-accent);
}

body.product-ui .chart-axis {
  fill: var(--gp-color-faint);
  font-family: var(--gp-font-mono);
  font-size: 10px;
}

body.product-ui .status-donut,
body.product-ui .automation-ring {
  --progress: 0;
  width: 120px;
  height: 120px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.product-ui .status-donut svg,
body.product-ui .automation-ring svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

body.product-ui .status-donut .ring-bg,
body.product-ui .automation-ring .ring-bg {
  stroke: var(--gp-color-border);
  stroke-width: 1.5;
  fill: none;
}

body.product-ui .status-donut .ring-progress,
body.product-ui .automation-ring .ring-progress {
  stroke: var(--gp-color-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 301.6;
  stroke-dashoffset: calc(301.6 - (301.6 * var(--progress)) / 100);
}

body.product-ui .status-donut span,
body.product-ui .automation-ring span {
  position: absolute;
  font-family: var(--gp-font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--gp-color-text);
}

body.product-ui .status-caption,
body.product-ui #automation-health-caption {
  font-size: 12px;
  color: var(--gp-color-faint);
}

body.product-ui .status-legend,
body.product-ui .chart-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--gp-color-faint);
}

body.product-ui .status-legend .dot,
body.product-ui .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--gp-color-muted);
  margin-right: 6px;
}

body.product-ui .status-dot.success,
body.product-ui .dot.cyan { background: var(--gp-color-success); }
body.product-ui .status-dot.warning,
body.product-ui .dot.purple { background: var(--gp-color-warning); }
body.product-ui .status-dot.error { background: var(--gp-color-error); }

body.product-ui .list {
  display: grid;
  gap: 8px;
}

body.product-ui .list-item {
  padding: 10px;
}

body.product-ui .item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.product-ui .item-title {
  color: var(--gp-color-text);
  font-size: 13px;
  font-weight: 500;
}

body.product-ui .chip,
body.product-ui .status-badge {
  border: 0 !important;
  background: transparent !important;
  color: var(--gp-color-muted) !important;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.product-ui .chip::before,
body.product-ui .status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gp-color-muted);
}

body.product-ui .chip.ok,
body.product-ui .status-connected { color: var(--gp-color-success) !important; }
body.product-ui .chip.ok::before,
body.product-ui .status-connected::before { background: var(--gp-color-success); }
body.product-ui .chip.err,
body.product-ui .status-error { color: var(--gp-color-error) !important; }
body.product-ui .chip.err::before,
body.product-ui .status-error::before { background: var(--gp-color-error); }
body.product-ui .chip.warn,
body.product-ui .status-loading,
body.product-ui .status-disconnected { color: var(--gp-color-warning) !important; }
body.product-ui .chip.warn::before,
body.product-ui .status-loading::before,
body.product-ui .status-disconnected::before { background: var(--gp-color-warning); }

body.product-ui .table-shell,
body.product-ui .campaign-table-wrap,
body.product-ui .pipeline-table-wrap,
body.product-ui .library-table-wrap {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  overflow: auto;
  background: var(--gp-color-surface);
}

body.product-ui table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

body.product-ui thead th {
  text-align: left;
  padding: 10px 11px;
  border-bottom: 1px solid var(--gp-color-border);
  font-family: var(--gp-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gp-color-faint);
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--gp-color-surface);
}

body.product-ui tbody td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--gp-color-border);
  font-size: 13px;
  color: var(--gp-color-muted);
  height: 44px;
  vertical-align: middle;
}

body.product-ui tbody tr:hover {
  background: var(--gp-color-surface-2);
}

body.product-ui tbody tr.is-selected,
body.product-ui tbody tr.selected {
  background: var(--gp-color-surface-2);
}

body.product-ui td.num,
body.product-ui td[data-num],
body.product-ui .table-num {
  text-align: right;
  font-family: var(--gp-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--gp-color-text);
  white-space: nowrap;
}

body.product-ui .table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gp-color-muted);
  font-size: 12px;
}

body.product-ui .table-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gp-color-muted);
}

body.product-ui .table-status.live::before,
body.product-ui .table-status.published::before,
body.product-ui .table-status.ready::before {
  background: var(--gp-color-success);
}

body.product-ui .table-status.review::before,
body.product-ui .table-status.pending::before,
body.product-ui .table-status.draft_saved::before {
  background: var(--gp-color-warning);
}

body.product-ui .table-status.paused::before,
body.product-ui .table-status.error::before,
body.product-ui .table-status.publish_failed::before {
  background: var(--gp-color-error);
}

body.product-ui .table-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--gp-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gp-color-border);
  color: var(--gp-color-faint);
  background: var(--gp-color-surface-2);
}

body.product-ui .table-chip.zero {
  border-color: var(--gp-chip-zero-border);
  color: var(--gp-chip-zero-text);
  background: var(--gp-chip-zero-bg);
}

body.product-ui .table-chip.na {
  border-color: rgba(148, 163, 184, 0.34);
  color: var(--gp-color-faint);
  background: rgba(148, 163, 184, 0.1);
}

body.product-ui .filter-strip,
body.product-ui .segmented-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
  padding: 2px;
}

body.product-ui .segmented-controls button,
body.product-ui .filter-chip {
  border: 0;
  background: transparent;
  color: var(--gp-color-muted);
  border-radius: var(--gp-radius-sm);
  font-size: 12px;
  min-height: 28px;
  padding: 0 10px;
  cursor: pointer;
}

body.product-ui .segmented-controls button.active,
body.product-ui .filter-chip.active {
  background: var(--gp-color-surface-2);
  color: var(--gp-color-text);
}

body.product-ui .bulk-actions-bar,
body.product-ui .campaign-bulk-actions,
body.product-ui .library-bulk-actions {
  margin: 10px 0;
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
  padding: 8px 10px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.product-ui .bulk-actions-bar.active,
body.product-ui .campaign-bulk-actions.active,
body.product-ui .library-bulk-actions.active {
  display: flex;
}

body.product-ui .bulk-selected-count,
body.product-ui #campaign-total-count,
body.product-ui #library-selected-count {
  font-family: var(--gp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--gp-color-accent);
}

body.product-ui input,
body.product-ui select,
body.product-ui textarea {
  background: var(--gp-color-bg) !important;
  border: 1px solid var(--gp-color-border-strong) !important;
  border-radius: var(--gp-radius) !important;
  color: var(--gp-color-text) !important;
  font-size: 13.5px !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
}

body.product-ui input:focus,
body.product-ui select:focus,
body.product-ui textarea:focus {
  outline: none !important;
  border-color: var(--gp-color-accent) !important;
  box-shadow: 0 0 0 1px rgba(92, 200, 215, 0.2) !important;
}

body.product-ui label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--gp-color-muted) !important;
}

body.product-ui .dashboard-head,
body.product-ui .dashboard-hero,
body.product-ui .eyebrow,
body.product-ui .page-subtitle,
body.product-ui .header-tagline,
body.product-ui .workspace-pill,
body.product-ui .onboarding-visual .visual-blob {
  display: none !important;
}

body.product-ui .chat-container {
  display: grid;
  gap: 12px;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

body.product-ui .onboarding-flow {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
  padding: 12px;
}

body.product-ui .onboarding-title {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-family: var(--gp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gp-color-faint);
}

body.product-ui .onboarding-steps {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

body.product-ui .onboarding-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gp-color-faint);
  font-size: 11px;
  padding: 0 10px 0 26px;
  min-height: 20px;
  white-space: nowrap;
}

body.product-ui .onboarding-step::before {
  content: "";
  position: absolute;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--gp-color-faint);
}

body.product-ui .onboarding-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  width: 10px;
  height: 1px;
  background: var(--gp-color-border);
}

body.product-ui .onboarding-step.active {
  color: var(--gp-color-text);
}

body.product-ui .onboarding-step.active::before {
  border-color: var(--gp-color-accent);
}

body.product-ui .onboarding-step.done {
  color: var(--gp-color-accent);
}

body.product-ui .onboarding-step.done::before {
  background: var(--gp-color-accent);
  border-color: var(--gp-color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230c0d10' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.2l3.1 3.1L13 4.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

body.product-ui .chat-stage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
  padding: 12px;
  min-height: 0;
}

body.product-ui .chat-main,
body.product-ui .onboarding-visual {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
}

body.product-ui .chat-main {
  padding: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.product-ui .messages {
  min-height: 420px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
  min-width: 0;
}

body.product-ui .msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

body.product-ui .msg-row.user {
  justify-content: flex-end;
}

body.product-ui .msg-avatar {
  width: 26px;
  height: 26px;
  border: 1px solid var(--gp-color-accent);
  border-radius: var(--gp-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gp-font-mono);
  font-size: 11px;
  color: var(--gp-color-accent);
  background: transparent;
}

body.product-ui .msg-bubble {
  border-radius: var(--gp-radius) !important;
  border: 1px solid var(--gp-color-border) !important;
  background: transparent !important;
  color: var(--gp-color-text);
  padding: 10px 12px !important;
  max-width: min(760px, 92%);
  overflow-wrap: anywhere;
}

body.product-ui .msg-row.user .msg-bubble {
  background: var(--gp-color-surface-2) !important;
  border-color: var(--gp-color-border-strong) !important;
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .msg-row.user .msg-bubble,
body.chat-page.product-ui .msg-row.user .msg-bubble * {
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .msg-bubble h2,
body.chat-page.product-ui .msg-bubble h3,
body.chat-page.product-ui .msg-bubble strong {
  color: var(--gp-color-text) !important;
  font-weight: 500 !important;
}

body.chat-page.product-ui .msg-bubble p,
body.chat-page.product-ui .msg-bubble li {
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .msg-bubble em,
body.chat-page.product-ui .msg-bubble .angle-char,
body.chat-page.product-ui .msg-bubble .spy-threat,
body.chat-page.product-ui .msg-bubble .spy-counter,
body.chat-page.product-ui .msg-bubble .spy-inspired-rationale,
body.chat-page.product-ui .msg-bubble .meta-field-help,
body.chat-page.product-ui .msg-bubble .meta-history-empty {
  color: var(--gp-color-muted) !important;
}

body.chat-page.product-ui .msg-bubble code {
  background: var(--gp-color-surface-2) !important;
  color: var(--gp-color-text) !important;
}

body.product-ui .quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.product-ui .quick-replies button {
  border: 1px solid var(--gp-color-border);
  border-radius: 999px;
  padding: 5px 10px;
  background: transparent;
  color: var(--gp-color-muted);
  font-size: 12px;
}

body.product-ui .quick-replies button.selected,
body.product-ui .quick-replies button.active {
  border-color: var(--gp-color-accent);
  color: var(--gp-color-accent);
  background: var(--gp-color-surface-2);
}

body.product-ui .input-area {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-bg);
  padding: 6px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 6px;
  align-items: end;
}

body.product-ui .attach-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  color: var(--gp-color-muted);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.product-ui .attach-btn .icon {
  width: 14px;
  height: 14px;
}

body.product-ui .input-box {
  border: 0 !important;
  padding: 6px 4px !important;
  min-height: 28px;
  max-height: 180px;
  resize: none;
}

body.product-ui .send-hint {
  align-self: center;
  color: var(--gp-color-faint);
  font-family: var(--gp-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.product-ui .send-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--gp-radius);
  border: 0;
  background: var(--gp-color-accent);
  color: #0c0d10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.product-ui .send-btn svg {
  width: 15px;
  height: 15px;
}

body.product-ui .onboarding-visual {
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

body.product-ui .campaign-context-card,
body.product-ui .research-brief-card {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-bg);
  padding: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.product-ui .context-kicker,
body.product-ui .research-kicker {
  font-size: 10.5px;
  font-family: var(--gp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gp-color-faint);
  margin-bottom: 6px;
}

body.product-ui .research-list {
  display: grid;
  gap: 6px;
}

body.product-ui .research-list-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--gp-color-muted);
}

body.product-ui .research-list-item .num {
  color: var(--gp-color-text);
}

body.chat-page.product-ui .quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 8px;
}

body.chat-page.product-ui .quick-reply-btn {
  background: transparent !important;
  color: var(--gp-color-text) !important;
  border: 1px solid var(--gp-color-border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  min-height: 28px;
}

body.chat-page.product-ui .quick-reply-btn::before {
  content: none !important;
  display: none !important;
}

body.chat-page.product-ui .quick-reply-btn:hover {
  background: var(--gp-color-surface) !important;
  border-color: var(--gp-color-border-strong) !important;
}

body.chat-page.product-ui .quick-reply-btn.selected {
  border-color: var(--gp-color-accent) !important;
  color: var(--gp-color-accent) !important;
  background: var(--gp-color-surface-2) !important;
}

body.chat-page.product-ui .quick-reply-confirm {
  border: 0 !important;
  border-radius: var(--gp-radius) !important;
  background: var(--gp-color-accent) !important;
  color: #0c0d10 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-height: 28px;
  padding: 6px 12px !important;
}

body.chat-page.product-ui .campaign-summary .summary-chip {
  border: 1px solid var(--gp-color-border) !important;
  background: var(--gp-color-surface) !important;
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .campaign-summary .summary-chip strong {
  color: var(--gp-color-accent) !important;
  background: transparent !important;
}

body.chat-page.product-ui .campaign-context-card > strong,
body.chat-page.product-ui .research-list-item span,
body.chat-page.product-ui .research-list-item .num {
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .research-list-item .num {
  font-family: var(--gp-font-mono);
  font-variant-numeric: tabular-nums;
}

body.chat-page.product-ui .research-list-item span:first-child {
  color: var(--gp-color-muted) !important;
}

body.chat-page.product-ui .research-brief-card[hidden] {
  display: none !important;
}

body.chat-page.product-ui .research-empty {
  font-size: 12px;
  color: var(--gp-color-faint);
}

body.chat-page.product-ui .meta-push-panel,
body.chat-page.product-ui .meta-approval-panel,
body.chat-page.product-ui .meta-approval-preview div,
body.chat-page.product-ui .meta-asset-box,
body.chat-page.product-ui .platform-settings-disclosure,
body.chat-page.product-ui .platform-settings-block,
body.chat-page.product-ui .spy-card,
body.chat-page.product-ui .spy-ad-item,
body.chat-page.product-ui .spy-inspired-card,
body.chat-page.product-ui .angle-panel,
body.chat-page.product-ui .angle-list li,
body.chat-page.product-ui .mode-intro,
body.chat-page.product-ui .manual-preview-card,
body.chat-page.product-ui .benchmarks-strip .bm-chip {
  background: var(--gp-color-surface) !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
  box-shadow: none !important;
}

body.chat-page.product-ui .platform-settings-content {
  border-top-color: var(--gp-color-border) !important;
}

body.chat-page.product-ui .spy-threat,
body.chat-page.product-ui .spy-counter,
body.chat-page.product-ui .spy-inspired-body,
body.chat-page.product-ui .preview-desc-text,
body.chat-page.product-ui .meta-field-help,
body.chat-page.product-ui .mode-intro,
body.chat-page.product-ui .bm-lbl {
  color: var(--gp-color-faint) !important;
}

body.chat-page.product-ui .preview-url,
body.chat-page.product-ui .ad-preview-url {
  color: var(--gp-color-success) !important;
}

body.chat-page.product-ui .preview-headline-text,
body.chat-page.product-ui .ad-preview-headline,
body.chat-page.product-ui .meta-approval-preview strong {
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .spy-card,
body.chat-page.product-ui .spy-ad-item,
body.chat-page.product-ui .spy-inspired-card,
body.chat-page.product-ui .platform-settings-disclosure,
body.chat-page.product-ui .platform-settings-block {
  background: var(--gp-color-surface) !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .spy-name,
body.chat-page.product-ui .spy-card-header strong {
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .spy-counter,
body.chat-page.product-ui .spy-inspired-body,
body.chat-page.product-ui .meta-review-ready,
body.chat-page.product-ui .meta-review-warning {
  background: var(--gp-color-surface-2) !important;
  border: 1px solid var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .spy-threat,
body.chat-page.product-ui .spy-counter,
body.chat-page.product-ui .spy-inspired-desc,
body.chat-page.product-ui .spy-inspired-cta,
body.chat-page.product-ui .spy-inspired-rationale,
body.chat-page.product-ui .spy-status-note,
body.chat-page.product-ui .meta-push-row {
  color: var(--gp-color-muted) !important;
}

body.chat-page.product-ui .spy-threat strong,
body.chat-page.product-ui .spy-counter strong,
body.chat-page.product-ui .spy-inspired-headline,
body.chat-page.product-ui .meta-push-row span:first-child {
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .spy-link-btn,
body.chat-page.product-ui .spy-copy-name-btn,
body.chat-page.product-ui .spy-analyse-btn,
body.chat-page.product-ui .ad-tool-btn {
  background: transparent !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .spy-link-btn:hover,
body.chat-page.product-ui .spy-copy-name-btn:hover,
body.chat-page.product-ui .spy-analyse-btn:hover,
body.chat-page.product-ui .ad-tool-btn:hover {
  background: var(--gp-color-surface-2) !important;
  border-color: var(--gp-color-border-strong) !important;
}

body.chat-page.product-ui .spy-chip {
  background: var(--gp-color-surface-2) !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-muted) !important;
}

body.chat-page.product-ui .spy-chip.theme {
  color: var(--gp-color-accent) !important;
}

body.chat-page.product-ui .spy-chip.offer {
  color: var(--gp-color-warning) !important;
}

body.chat-page.product-ui .research-content h2 {
  color: var(--gp-color-accent) !important;
}

body.chat-page.product-ui .research-content p,
body.chat-page.product-ui .research-content li {
  color: var(--gp-color-text) !important;
}

body.chat-page.product-ui .research-content small {
  color: var(--gp-color-faint) !important;
}

body.product-ui .billing-credit-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 35;
}

body.product-ui .billing-credit-trigger {
  min-height: 30px;
  border: 1px solid var(--gp-color-border) !important;
  background: var(--gp-color-surface) !important;
  color: var(--gp-color-muted) !important;
  border-radius: var(--gp-radius) !important;
  padding: 0 10px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none !important;
}

body.product-ui .billing-credit-trigger strong {
  color: var(--gp-color-text);
  font-family: var(--gp-font-mono);
  font-variant-numeric: tabular-nums;
  background: transparent !important;
}

body.product-ui .billing-credit-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--gp-color-border) !important;
  border-radius: var(--gp-radius-lg);
  background: var(--gp-color-surface) !important;
  color: var(--gp-color-text);
  box-shadow: none !important;
  overflow: hidden;
}

body.product-ui .billing-popover-head,
body.product-ui .billing-popover-body {
  padding: 12px;
}

body.product-ui .billing-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gp-color-border);
  font-size: 12px;
  font-family: var(--gp-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gp-color-faint);
}

body.product-ui .billing-popover-close {
  border: 1px solid var(--gp-color-border);
  background: transparent;
  color: var(--gp-color-muted);
  border-radius: var(--gp-radius-sm);
  min-height: 24px;
  padding: 2px 8px;
  cursor: pointer;
}

body.product-ui .billing-balance-row > div,
body.product-ui .billing-pack-btn,
body.product-ui .billing-ledger-item,
body.product-ui .billing-plan-card,
body.product-ui .billing-settings-panel,
body.product-ui .billing-settings-metric {
  background: var(--gp-color-bg) !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
}

body.product-ui .billing-muted,
body.product-ui .billing-message,
body.product-ui .billing-pack-btn span,
body.product-ui .billing-ledger-item span,
body.product-ui .billing-plan-card p,
body.product-ui .billing-plan-card li {
  color: var(--gp-color-faint) !important;
}

body.product-ui .billing-meter {
  background: var(--gp-color-border);
}

body.product-ui .billing-meter span {
  background: var(--gp-color-accent);
}

body.product-ui .billing-settings-overview,
body.product-ui .billing-balance-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.product-ui #subscription-settings-body .billing-settings-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.product-ui .billing-plan-layout,
body.product-ui .billing-ledger-list {
  display: grid;
  gap: 10px;
}

body.product-ui .billing-pack-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.product-ui #subscription-settings-body .billing-pack-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.product-ui .billing-pack-row.compact {
  grid-template-columns: 1fr;
}

body.product-ui .billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.product-ui #subscription-settings-body .billing-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.product-ui .billing-settings-metric strong,
body.product-ui .billing-balance-row strong {
  display: block;
  margin-top: 4px;
  color: var(--gp-color-text);
  font-family: var(--gp-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  background: transparent !important;
}

body.product-ui #subscription-settings-body .billing-settings-metric strong {
  font-family: var(--gp-font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

body.product-ui .billing-settings-panel h3,
body.product-ui .billing-popover-body h4 {
  margin: 0 0 6px;
  color: var(--gp-color-text);
}

body.product-ui .billing-plan-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
  border-color: #c6d7f4;
  background: linear-gradient(180deg, #eef4fd 0%, #f9fbff 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.product-ui .billing-plan-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.11);
}

body.product-ui .billing-plan-card.active {
  border-color: rgba(79, 136, 224, 0.52);
  background: linear-gradient(180deg, #e6f0ff 0%, #f7fbff 100%);
  box-shadow: 0 0 0 3px rgba(111, 163, 240, 0.16), 0 16px 28px rgba(59, 130, 246, 0.11);
}

body.product-ui .billing-plan-card.featured {
  border-color: #b7cbef;
  background: linear-gradient(180deg, #dfeafb 0%, #f3f8ff 100%);
}

body.product-ui .billing-plan-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.product-ui .billing-plan-card__head > span {
  color: var(--gp-color-faint);
  font-family: var(--gp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10.5px;
}

body.product-ui .billing-plan-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  background: #dfeafb;
  color: #3676e5;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

body.product-ui .billing-plan-card h3,
body.product-ui .billing-plan-card > strong,
body.product-ui .billing-plan-card a,
body.product-ui .billing-plan-card button {
  color: var(--gp-color-text) !important;
}

body.product-ui .billing-plan-card > strong {
  font-family: var(--gp-font-mono);
  font-size: 28px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

body.product-ui #subscription-settings-body .billing-plan-card h3 {
  font-family: var(--gp-font-sans);
  font-size: 24px;
  font-weight: 600;
}

body.product-ui #subscription-settings-body .billing-plan-card > strong {
  font-size: 42px;
  letter-spacing: -0.02em;
}

body.product-ui .billing-plan-card > strong small {
  color: var(--gp-color-faint);
  font-size: 12px;
  margin-left: 4px;
}

body.product-ui .billing-plan-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

body.product-ui .billing-plan-card li {
  color: var(--gp-color-muted);
  font-size: 12px;
}

body.product-ui .billing-plan-card a,
body.product-ui .billing-plan-card button {
  margin-top: auto;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(79, 136, 224, 0.32);
  background: rgba(255, 255, 255, 0.75);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.product-ui .billing-plan-card a:hover,
body.product-ui .billing-plan-card button:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 136, 224, 0.52);
  box-shadow: 0 14px 24px rgba(59, 130, 246, 0.13);
}

body.product-ui .billing-pack-btn {
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
  border: 1px solid #c6d7f4;
  background: linear-gradient(180deg, #eef4fd 0%, #f9fbff 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position: relative;
  overflow: hidden;
}

body.product-ui .billing-pack-btn:hover {
  transform: translateY(-1px);
  border-color: #adc6ef;
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.11);
}

body.product-ui .billing-pack-btn.featured {
  border-color: rgba(79, 136, 224, 0.52);
  background: linear-gradient(180deg, #dfeafb 0%, #f3f8ff 100%);
  box-shadow: 0 0 0 3px rgba(111, 163, 240, 0.16), 0 16px 28px rgba(59, 130, 246, 0.11);
}

body.product-ui .billing-pack-btn__eyebrow {
  color: var(--gp-color-faint);
  font-family: var(--gp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}

body.product-ui .billing-pack-btn__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.product-ui .billing-pack-btn__meta,
body.product-ui .billing-pack-btn__desc,
body.product-ui .billing-pack-btn__saving,
body.product-ui .billing-pack-btn__cta {
  color: var(--gp-color-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.product-ui .billing-pack-btn__saving {
  color: var(--gp-color-text);
  font-weight: 700;
}

body.product-ui .billing-pack-btn__saving.is-empty {
  color: var(--gp-color-faint);
  font-weight: 500;
}

body.product-ui .billing-pack-btn__cta {
  color: var(--gp-color-accent, #2563eb);
  font-weight: 700;
}

body.product-ui .billing-pack-btn__ribbon {
  position: absolute;
  top: 16px;
  right: -40px;
  min-width: 150px;
  padding: 6px 0;
  background: linear-gradient(90deg, #2f7df5, #4aa8ff);
  color: #111827;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(38deg);
  box-shadow: 0 10px 20px rgba(47, 125, 245, 0.24);
  pointer-events: none;
}

body.product-ui .billing-ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.product-ui .billing-exhausted-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  overflow-y: auto;
}

body.product-ui .billing-exhausted-dialog {
  background: var(--gp-color-bg-card, #fff);
  border: 1px solid var(--gp-color-border, #e0e0e0);
  border-radius: var(--gp-radius-lg, 12px);
  padding: 28px 32px 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 40px);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

body.product-ui .billing-exhausted-dialog h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

body.product-ui .billing-exhausted-dialog p {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--gp-color-text-muted, #666);
  line-height: 1.5;
}

body.product-ui .billing-exhausted-packs .billing-pack-row {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

body.product-ui .billing-exhausted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

body.product-ui .billing-exhausted-actions .btn--secondary {
  background: transparent;
  border: 1px solid var(--gp-color-border, #ccc);
}

body.product-ui .ada-tooltip {
  position: fixed;
  z-index: 1420;
  display: grid;
  gap: 4px;
  width: min(300px, calc(100vw - 24px));
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius-lg);
  padding: 10px 12px;
  color: var(--gp-color-text);
  background: rgba(20, 22, 26, 0.97);
  box-shadow: none;
  pointer-events: none;
  overflow-wrap: anywhere;
}

body.product-ui .ada-tooltip strong {
  font-size: 12px;
  font-weight: 500;
}

body.product-ui .ada-tooltip span {
  display: block;
  color: var(--gp-color-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.product-ui .ada-tour-popover {
  position: fixed;
  z-index: 1430;
  width: min(336px, calc(100vw - 24px));
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius-lg);
  padding: 12px;
  color: var(--gp-color-text);
  background: rgba(20, 22, 26, 0.98);
  box-shadow: none;
  overflow-wrap: anywhere;
}

body.product-ui .ada-tour-popover p,
body.product-ui .ada-tour-popover .ada-kicker {
  color: var(--gp-color-faint);
}

body.product-ui .ada-tour-actions button {
  border-radius: var(--gp-radius);
}

body.product-ui .campaign-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.product-ui .campaign-filter-right {
  display: flex;
  gap: 8px;
}

body.product-ui .campaign-filter-right select {
  min-width: 140px;
}

body.product-ui .campaigns-grid,
body.product-ui #campaigns-grid {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: block !important;
  width: 100%;
}

body.product-ui .settings-main .settings-subnav,
body.product-ui .settings-main .settings-control-list,
body.product-ui .settings-main .integration-card,
body.product-ui .settings-main .info-section,
body.product-ui .settings-main .account-detail {
  background: var(--gp-color-surface) !important;
  border-color: var(--gp-color-border) !important;
  box-shadow: none !important;
}

body.product-ui .settings-main .account-card {
  background: var(--gp-color-surface) !important;
}

body.product-ui .settings-main .settings-subnav-link {
  color: var(--gp-color-muted) !important;
  border-color: transparent !important;
  background: transparent !important;
}

body.product-ui .settings-main .settings-subnav-link:hover,
body.product-ui .settings-main .settings-subnav-link.active {
  background: var(--gp-color-surface-2) !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
}

body.product-ui .settings-main .settings-subnav-icon,
body.product-ui .settings-main .integration-logo {
  background: var(--gp-color-surface-2) !important;
  color: var(--gp-color-accent) !important;
}

body.product-ui .settings-main .settings-title,
body.product-ui .settings-main .section-title,
body.product-ui .settings-main .integration-name,
body.product-ui .settings-main .account-value,
body.product-ui .settings-main .settings-control-row h3 {
  color: var(--gp-color-text) !important;
}

body.product-ui .settings-main .section-desc,
body.product-ui .settings-main .integration-desc,
body.product-ui .settings-main .account-label,
body.product-ui .settings-main .account-helper,
body.product-ui .settings-main .settings-control-row p,
body.product-ui .settings-main .settings-preferences-status {
  color: var(--gp-color-muted) !important;
}

body.product-ui .settings-main .setup-hint {
  background: var(--gp-color-surface-2) !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-muted) !important;
}

body.product-ui .settings-main .setup-hint code {
  background: var(--gp-color-bg) !important;
  color: var(--gp-color-text) !important;
}

body.product-ui .settings-main .gbp-feature-package {
  background: var(--gp-color-surface) !important;
  border-color: var(--gp-color-border) !important;
}

body.product-ui .settings-main .gbp-feature-tier,
body.product-ui .settings-main .gbp-feature-price,
body.product-ui .settings-main .gbp-feature-list li,
body.product-ui .settings-main .gbp-inline-grid input,
body.product-ui .settings-main .gbp-inline-grid select,
body.product-ui .settings-main .gbp-context-grid input,
body.product-ui .settings-main .gbp-posts-form textarea,
body.product-ui .settings-main .gbp-draft-option textarea,
body.product-ui .settings-main .gbp-report-box {
  color: var(--gp-color-text) !important;
}

body.product-ui .settings-main .gbp-feature-price span,
body.product-ui .settings-main .gbp-package-note,
body.product-ui .settings-main .gbp-inline-grid label,
body.product-ui .settings-main .gbp-draft-option-head {
  color: var(--gp-color-muted) !important;
}

body.product-ui .settings-main .gbp-inline-grid input,
body.product-ui .settings-main .gbp-inline-grid select,
body.product-ui .settings-main .gbp-context-grid input,
body.product-ui .settings-main .gbp-posts-form textarea,
body.product-ui .settings-main .gbp-draft-option textarea,
body.product-ui .settings-main .gbp-report-box {
  border-color: var(--gp-color-border) !important;
  background: var(--gp-color-surface-2) !important;
}

body.product-ui .settings-main .gbp-action-row .btn-link {
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
  background: var(--gp-color-surface-2) !important;
}

body.product-ui .settings-main .gbp-post-mode-option,
body.product-ui .settings-main .gbp-context-block,
body.product-ui .settings-main .gbp-draft-option {
  border-color: var(--gp-color-border) !important;
  background: var(--gp-color-surface-2) !important;
  color: var(--gp-color-text) !important;
}

body.product-ui .settings-main .gbp-post-mode-option.active,
body.product-ui .settings-main .gbp-draft-option.active {
  border-color: rgba(124, 181, 255, 0.72) !important;
  background: rgba(59, 130, 246, 0.14) !important;
  color: var(--gp-color-text) !important;
}

body.product-ui .settings-main .gbp-feature-badge {
  background: rgba(92, 212, 154, 0.16) !important;
  color: var(--gp-color-success) !important;
}

body.product-ui .settings-main .status-loading,
body.product-ui .settings-main .status-disconnected {
  background: var(--gp-color-surface-2) !important;
  color: var(--gp-color-muted) !important;
}

body.product-ui .settings-main .status-connected {
  background: rgba(92, 212, 154, 0.12) !important;
  color: var(--gp-color-success) !important;
}

body.product-ui .settings-main [style*="background:#fff"],
body.product-ui .settings-main [style*="background: #fff"],
body.product-ui .settings-main [style*="background:#ffffff"],
body.product-ui .settings-main [style*="background: #ffffff"],
body.product-ui .settings-main [style*="background:#f8fafc"],
body.product-ui .settings-main [style*="background: #f8fafc"],
body.product-ui .settings-main [style*="background:#f5f7fd"],
body.product-ui .settings-main [style*="background: #f5f7fd"] {
  background: var(--gp-color-surface) !important;
}

body.product-ui .settings-main [style*="color:#334155"],
body.product-ui .settings-main [style*="color: #334155"],
body.product-ui .settings-main [style*="color:#374151"],
body.product-ui .settings-main [style*="color: #374151"],
body.product-ui .settings-main [style*="color:#475569"],
body.product-ui .settings-main [style*="color: #475569"] {
  color: var(--gp-color-text) !important;
}

body.product-ui [style*="background:#fff"],
body.product-ui [style*="background: #fff"],
body.product-ui [style*="background:#ffffff"],
body.product-ui [style*="background: #ffffff"],
body.product-ui [style*="background:#f9fafb"],
body.product-ui [style*="background: #f9fafb"] {
  background: var(--gp-color-surface) !important;
}

body.product-ui [style*="color:#1f2937"],
body.product-ui [style*="color: #1f2937"],
body.product-ui [style*="color:#233151"],
body.product-ui [style*="color: #233151"],
body.product-ui [style*="color:#263247"],
body.product-ui [style*="color: #263247"] {
  color: var(--gp-color-text) !important;
}

body.product-ui [style*="color:#334155"],
body.product-ui [style*="color: #334155"],
body.product-ui [style*="color:#374151"],
body.product-ui [style*="color: #374151"],
body.product-ui [style*="color:#64748b"],
body.product-ui [style*="color: #64748b"] {
  color: var(--gp-color-muted) !important;
}

body.product-ui .seo-top-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

body.product-ui .seo-page {
  background: transparent !important;
}

body.product-ui .seo-subpage-on-page > .section-split {
  display: none;
}

body.product-ui .seo-page .section-split,
body.product-ui .seo-page .audit-hero,
body.product-ui .seo-page .project-crawl-panel,
body.product-ui .seo-page .audit-scoreboard,
body.product-ui .seo-page .audit-reports,
body.product-ui .seo-page .audit-results .panel,
body.product-ui .seo-page .project-trend-card,
body.product-ui .seo-page .project-metrics-card,
body.product-ui .seo-page .project-top-issues > div,
body.product-ui .seo-page .project-history-empty,
body.product-ui .seo-page .crawl-status-card,
body.product-ui .seo-page .metric-chip,
body.product-ui .seo-page .executive-summary-card,
body.product-ui .seo-page .action-plan-panel,
body.product-ui .seo-page .competitor-list a {
  background: var(--gp-color-surface) !important;
  border: 1px solid var(--gp-color-border) !important;
  box-shadow: none !important;
}

body.product-ui .seo-page .audit-hero p,
body.product-ui .seo-page .section-split p,
body.product-ui .seo-page .project-crawl-head p,
body.product-ui .seo-page .project-trend-head span,
body.product-ui .seo-page .project-top-issues span:last-child,
body.product-ui .seo-page .metric-chip .label,
body.product-ui .seo-page .metric-chip .sub {
  color: var(--gp-color-faint) !important;
}

body.product-ui .seo-page .audit-hero h2,
body.product-ui .seo-page .section-split h2,
body.product-ui .seo-page .project-trend-head strong,
body.product-ui .seo-page .metric-chip .value {
  color: var(--gp-color-text) !important;
}

body.product-ui .seo-page .health-ring {
  background: conic-gradient(var(--gp-color-accent) calc(var(--ring-value) * 1%), var(--gp-color-border) 0) !important;
}

body.product-ui .seo-page .health-ring::before {
  background: var(--gp-color-bg) !important;
}

body.product-ui .domain-score-card,
body.product-ui .top-issues-card {
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius);
  background: var(--gp-color-surface);
  padding: 14px;
}

body.product-ui .domain-score-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.product-ui .domain-score-wrap svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

body.product-ui .domain-score-wrap .ring-bg {
  stroke: var(--gp-color-border);
  stroke-width: 1.5;
  fill: none;
}

body.product-ui .domain-score-wrap .ring-progress {
  stroke: var(--gp-color-accent);
  stroke-width: 1.5;
  fill: none;
}

body.product-ui .domain-score-value {
  position: absolute;
  text-align: center;
}

body.product-ui .domain-score-value strong {
  font-size: 30px;
  font-family: var(--gp-font-mono);
  font-weight: 500;
  color: var(--gp-color-text);
}

body.product-ui .domain-score-value span {
  display: block;
  color: var(--gp-color-faint);
  font-size: 12px;
  font-family: var(--gp-font-mono);
}

body.product-ui .top-issues-list {
  display: grid;
  gap: var(--gp-space-sm);
}

body.product-ui .top-issue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: var(--gp-space-sm);
  align-items: center;
  border-bottom: 1px solid var(--gp-color-border);
  padding-bottom: var(--gp-space-sm);
}

body.product-ui .severity-label {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  background: var(--gp-color-surface-muted);
  color: var(--gp-color-text-muted);
}

body.product-ui .severity-label.critical {
  background: #fee2e2;
  color: #b91c1c;
}

body.product-ui .severity-label.warning {
  background: #fef3c7;
  color: #92400e;
}

body.product-ui .severity-label.info {
  background: #e0f2fe;
  color: #0369a1;
}

body.product-ui .top-issue-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.product-ui .top-issue-body strong {
  display: block;
  font-size: 13px;
  color: var(--gp-color-text);
}

body.product-ui .top-issue-body span {
  font-size: 12px;
  color: var(--gp-color-faint);
}

body.product-ui .severity-label {
  font-family: var(--gp-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gp-color-faint);
}

body.product-ui .issue-arrow {
  width: 14px;
  height: 14px;
  color: var(--gp-color-faint);
}

body.product-ui .publish-status-table td.score {
  font-family: var(--gp-font-mono);
  font-variant-numeric: tabular-nums;
}

body.product-ui .publish-status-table td.score.high { color: var(--gp-color-success); }
body.product-ui .publish-status-table td.score.mid { color: var(--gp-color-accent); }
body.product-ui .publish-status-table td.score.low { color: var(--gp-color-warning); }

body.product-ui .ad-library-head,
body.product-ui .settings-title,
body.product-ui .ad-review-main > .loading-spinner,
body.product-ui .share-main > .loading-spinner {
  margin-bottom: 10px;
}

body.product-ui .ad-library-grid,
body.product-ui #ad-library-grid {
  display: block !important;
}

body.ad-variants-page.product-ui .ad-review-main {
  margin-left: var(--ops-sidebar-width) !important;
  width: calc(100% - var(--ops-sidebar-width)) !important;
  max-width: none !important;
  padding: calc(var(--gp-header-height) + 16px) var(--ops-page-gutter) 26px !important;
}

body.ad-variants-page.product-ui .review-hero,
body.ad-variants-page.product-ui .review-card,
body.ad-variants-page.product-ui .platform-output,
body.ad-variants-page.product-ui .copy-work-panel,
body.ad-variants-page.product-ui .social-preview-card,
body.ad-variants-page.product-ui .google-search-preview,
body.ad-variants-page.product-ui .google-display-preview,
body.ad-variants-page.product-ui .ads-manager-preview,
body.ad-variants-page.product-ui .manager-row,
body.ad-variants-page.product-ui .variant-edit-details,
body.ad-variants-page.product-ui .selectable-variant-card {
  background: var(--gp-color-surface) !important;
  border-color: var(--gp-color-border) !important;
  box-shadow: none !important;
}

body.ad-variants-page.product-ui .social-ad-shell,
body.ad-variants-page.product-ui .social-link-card,
body.ad-variants-page.product-ui .google-result-shell,
body.ad-variants-page.product-ui .display-ad-shell {
  background: var(--gp-color-surface-2) !important;
  border-color: var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
  box-shadow: none !important;
}

body.ad-variants-page.product-ui .social-post-head strong,
body.ad-variants-page.product-ui .social-post-head small,
body.ad-variants-page.product-ui .social-ad-shell p,
body.ad-variants-page.product-ui .social-link-card strong,
body.ad-variants-page.product-ui .social-link-card span,
body.ad-variants-page.product-ui .social-link-card p,
body.ad-variants-page.product-ui .google-sponsored,
body.ad-variants-page.product-ui .google-url-line,
body.ad-variants-page.product-ui .google-result-shell h4,
body.ad-variants-page.product-ui .google-result-shell p,
body.ad-variants-page.product-ui .display-ad-shell strong,
body.ad-variants-page.product-ui .display-ad-shell span,
body.ad-variants-page.product-ui .display-ad-shell p,
body.ad-variants-page.product-ui .meta-option-note,
body.ad-variants-page.product-ui .counter-tip,
body.ad-variants-page.product-ui .muted-note {
  color: var(--gp-color-text) !important;
}

body.ad-variants-page.product-ui .social-post-head small,
body.ad-variants-page.product-ui .social-link-card span,
body.ad-variants-page.product-ui .social-link-card p,
body.ad-variants-page.product-ui .google-sponsored,
body.ad-variants-page.product-ui .google-url-line,
body.ad-variants-page.product-ui .google-result-shell p,
body.ad-variants-page.product-ui .display-ad-shell span,
body.ad-variants-page.product-ui .display-ad-shell p,
body.ad-variants-page.product-ui .meta-option-note,
body.ad-variants-page.product-ui .counter-tip,
body.ad-variants-page.product-ui .muted-note {
  color: var(--gp-color-muted) !important;
}

body.ad-variants-page.product-ui .social-avatar {
  background: var(--gp-color-surface) !important;
  border: 1px solid var(--gp-color-border) !important;
  color: var(--gp-color-text) !important;
}

body.ad-variants-page.product-ui .meta-option-cta,
body.ad-variants-page.product-ui .social-link-card button,
body.ad-variants-page.product-ui .instagram-cta-row button {
  background: var(--gp-color-accent-soft) !important;
  border: 1px solid rgba(19, 174, 180, 0.45) !important;
  color: var(--gp-color-accent) !important;
}

body.product-ui .library-preview {
  width: 54px;
  height: 36px;
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius-sm);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gp-color-bg);
  color: var(--gp-color-faint);
  font-size: 10px;
}

body.product-ui .library-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.product-ui .library-card,
body.product-ui .campaign-card {
  border-radius: var(--gp-radius) !important;
  box-shadow: none !important;
}

body.product-ui .notifications-popover,
body.product-ui .research-panel-inner,
body.product-ui .fix-dialog,
body.product-ui dialog {
  border: 1px solid var(--gp-color-border) !important;
  border-radius: var(--gp-radius) !important;
  background: var(--gp-color-surface) !important;
  color: var(--gp-color-text);
  box-shadow: none !important;
}

body.product-ui .panel-close,
body.product-ui .fix-dialog-close {
  border: 1px solid var(--gp-color-border);
  background: transparent;
  color: var(--gp-color-muted);
  border-radius: var(--gp-radius);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.product-ui .panel-close .icon,
body.product-ui .fix-dialog-close .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 1120px) {
  body.product-ui .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.product-ui .ops-sidebar {
    display: flex !important;
  }

  body.product-ui .analytics-layout,
  body.product-ui .analytics-bottom-grid,
  body.product-ui .chat-stage,
  body.product-ui .seo-top-row {
    grid-template-columns: 1fr;
  }

  body.product-ui .header-search {
    min-width: 160px;
    width: min(220px, 34vw);
  }
}

@media (max-width: 920px) {
  body.product-ui .header {
    height: auto;
    min-height: var(--gp-header-height);
  }

  body.product-ui .header-inner {
    height: auto;
    min-height: var(--gp-header-height);
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  body.product-ui .header-title-block {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.product-ui .header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.product-ui .header-search {
    order: 3;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  body.product-ui .ops-sidebar {
    display: flex !important;
    position: static;
    width: 100%;
    top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--gp-color-border);
    max-height: none;
    padding-bottom: 10px;
  }

  body.product-ui .ops-nav-group {
    gap: 4px;
  }

  body.product-ui .ops-link {
    min-height: 32px;
    font-size: 13px;
  }

  body.product-ui .page-content,
  body.product-ui .chat-container,
  body.product-ui .settings-main,
  body.product-ui .ad-review-main,
  body.product-ui .share-main,
  body.product-ui .site-footer {
    margin-left: 0;
    width: 100%;
  }

  body.product-ui .page-content,
  body.product-ui .chat-container,
  body.product-ui .settings-main,
  body.product-ui .ad-review-main,
  body.product-ui .share-main {
    padding-top: 112px;
  }

  body.ad-variants-page.product-ui .ad-review-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 112px !important;
  }

  body.product-ui .workspace-shell {
    padding-top: 1px;
  }
}

@media (max-width: 640px) {
  body.product-ui .header-inner {
    gap: 8px;
  }

  body.product-ui .header-title-block {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  body.product-ui .header-search {
    display: none;
  }

  body.product-ui .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  body.product-ui .header-meta {
    display: none;
  }

  body.product-ui .primary-action,
  body.product-ui .secondary-action,
  body.product-ui .billing-credit-trigger {
    min-height: 28px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 12px !important;
  }

  body.product-ui .ops-nav-group-title {
    padding: 0 2px;
  }

  body.product-ui .ops-sidebar {
    padding-top: 10px;
    gap: 8px;
  }

  body.product-ui .ops-brand img {
    width: min(240px, 56vw);
    height: auto;
  }

  body.product-ui .ops-workspace-row {
    font-size: 11px;
    min-height: 28px;
  }

  body.product-ui #subscription-settings-body .billing-settings-overview {
    grid-template-columns: 1fr;
  }

  body.product-ui #subscription-settings-body .billing-plan-card > strong {
    font-size: 34px;
  }

  body.product-ui .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px var(--ops-page-gutter);
  }
}

/* ── Ada help dock on product-ui pages ── */
body.product-ui .ada-help-dock,
body.product-ui .ada-checklist,
body.product-ui .ada-tooltip,
body.product-ui .ada-tour-popover,
body.product-ui .ada-spotlight,
body.product-ui .ada-hotspot {
  box-sizing: border-box;
  font-family: inherit;
}

body.product-ui .ada-help-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

body.product-ui .ada-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(107, 205, 228, 0.36);
  border-radius: 999px;
  padding: 9px 14px 9px 10px;
  color: #06101e;
  background: linear-gradient(135deg, var(--gp-color-accent), #3a8cba);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

body.product-ui .ada-help-button:hover,
body.product-ui .ada-help-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(107, 205, 228, 0.2);
}

body.product-ui .ada-help-mark,
body.product-ui .ada-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 900;
}

body.product-ui .ada-help-mark {
  width: 24px;
  height: 24px;
  color: var(--gp-color-text);
  background: rgba(18, 27, 55, 0.86);
}

html[data-product-ui="classic"] body.product-ui .ada-help-mark {
  color: #ffffff;
  background: var(--gp-color-accent);
}

body.product-ui .ada-avatar {
  width: 32px;
  height: 32px;
  color: #06101e;
  background: linear-gradient(135deg, var(--gp-color-accent), #8a6bda);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

body.product-ui .ada-help-panel {
  width: min(320px, calc(100vw - 28px));
  border: 1px solid rgba(107, 205, 228, 0.26);
  border-radius: 14px;
  padding: 14px;
  color: var(--gp-color-text);
  background: var(--gp-color-surface);
  box-shadow: 0 22px 58px rgba(4, 10, 24, 0.36);
  backdrop-filter: blur(18px);
}

body.product-ui .ada-help-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

body.product-ui .ada-help-panel strong,
body.product-ui .ada-checklist strong,
body.product-ui .ada-tour-popover h2,
body.product-ui .ada-tooltip strong {
  color: var(--gp-color-text);
  letter-spacing: 0;
}

body.product-ui .ada-help-panel p,
body.product-ui .ada-checklist p,
body.product-ui .ada-tour-popover p,
body.product-ui .ada-tooltip span {
  margin: 4px 0 0;
  color: var(--gp-color-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.product-ui .ada-help-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body.product-ui .ada-help-actions button,
body.product-ui .ada-tour-actions button,
body.product-ui .ada-checklist a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--gp-color-border);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--gp-color-text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

body.product-ui .ada-help-actions button:hover,
body.product-ui .ada-tour-actions button:hover,
body.product-ui .ada-checklist a:hover {
  border-color: rgba(107, 205, 228, 0.42);
  background: rgba(107, 205, 228, 0.12);
}

body.product-ui .ada-help-chat {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--gp-color-border);
  padding-top: 12px;
}

body.product-ui .ada-help-chat[hidden] {
  display: none !important;
}

body.product-ui .ada-help-chat-log {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--gp-color-border);
  border-radius: 12px;
  padding: 10px;
  background: var(--gp-color-bg);
}

body.product-ui .ada-help-chat-msg {
  max-width: 92%;
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--gp-color-text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.product-ui .ada-help-chat-msg.user {
  justify-self: end;
  color: #06101e;
  background: linear-gradient(135deg, var(--gp-color-accent), #3a8cba);
  font-weight: 750;
}

body.product-ui .ada-help-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.product-ui .ada-help-chat-suggestions button {
  min-height: 28px;
  border: 1px solid rgba(107, 205, 228, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gp-color-accent);
  background: rgba(107, 205, 228, 0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

body.product-ui .ada-help-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body.product-ui .ada-help-chat-input {
  min-width: 0;
  border: 1px solid var(--gp-color-border);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--gp-color-text);
  background: var(--gp-color-surface);
  font: inherit;
  font-size: 12px;
  outline: none;
}

body.product-ui .ada-help-chat-input::placeholder {
  color: var(--gp-color-muted);
}

body.product-ui .ada-help-chat-input:focus {
  border-color: rgba(107, 205, 228, 0.55);
  box-shadow: 0 0 0 3px rgba(107, 205, 228, 0.12);
}

body.product-ui .ada-help-chat-form button {
  min-height: 36px;
  border: 1px solid rgba(107, 205, 228, 0.38);
  border-radius: 10px;
  padding: 8px 11px;
  color: #06101e;
  background: linear-gradient(135deg, var(--gp-color-accent), #3a8cba);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

body.product-ui .ada-help-issue {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--gp-color-border);
  padding-top: 12px;
}

body.product-ui .ada-help-issue[hidden] {
  display: none !important;
}

body.product-ui .ada-help-issue-copy,
body.product-ui .ada-help-issue-meta {
  margin: 0;
  color: var(--gp-color-muted);
  font-size: 11px;
  line-height: 1.4;
}

body.product-ui .ada-help-issue-form {
  display: grid;
  gap: 9px;
}

body.product-ui .ada-help-field {
  display: grid;
  gap: 5px;
}

body.product-ui .ada-help-field > span {
  color: var(--gp-color-text);
  font-size: 11px;
  font-weight: 700;
}

body.product-ui .ada-help-issue-input,
body.product-ui .ada-help-issue-files {
  min-width: 0;
  border: 1px solid var(--gp-color-border);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--gp-color-text);
  background: var(--gp-color-surface);
  font: inherit;
  font-size: 12px;
  outline: none;
}

body.product-ui .ada-help-issue-input:focus,
body.product-ui .ada-help-issue-files:focus {
  border-color: rgba(107, 205, 228, 0.55);
  box-shadow: 0 0 0 3px rgba(107, 205, 228, 0.12);
}

body.product-ui .ada-help-issue-description {
  min-height: 88px;
  resize: vertical;
}

body.product-ui .ada-help-shot-list {
  display: grid;
  gap: 8px;
  max-height: 170px;
  overflow: auto;
  border: 1px solid var(--gp-color-border);
  border-radius: 12px;
  padding: 8px;
  background: var(--gp-color-bg);
}

body.product-ui .ada-help-shot-list p {
  margin: 0;
  color: var(--gp-color-muted);
  font-size: 11px;
}

body.product-ui .ada-help-shot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
}

body.product-ui .ada-help-shot img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gp-color-border);
}

body.product-ui .ada-help-shot figcaption {
  color: var(--gp-color-text);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.product-ui .ada-help-shot button {
  min-height: 28px;
  border: 1px solid var(--gp-color-border);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--gp-color-text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

body.product-ui .ada-help-issue-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.product-ui .ada-help-issue-actions button {
  min-height: 34px;
  border: 1px solid var(--gp-color-border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--gp-color-text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

body.product-ui .ada-help-issue-actions button.primary {
  border-color: rgba(107, 205, 228, 0.44);
  color: #06101e;
  background: linear-gradient(135deg, var(--gp-color-accent), #3a8cba);
}

body.product-ui .ada-help-issue-status {
  margin: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
}

body.product-ui .ada-help-issue-status.info {
  color: var(--gp-color-text);
  background: rgba(58, 140, 186, 0.16);
}

body.product-ui .ada-help-issue-status.success {
  color: #0e4323;
  background: rgba(104, 221, 160, 0.3);
}

body.product-ui .ada-help-issue-status.warn {
  color: #503a00;
  background: rgba(255, 214, 120, 0.3);
}

body.product-ui .ada-help-issue-status.error {
  color: #5f1212;
  background: rgba(255, 179, 179, 0.32);
}

body.product-ui .ada-help-capture-hidden {
  visibility: hidden !important;
}

body.product-ui .ada-tooltip {
  position: fixed;
  z-index: 1420;
  display: grid;
  gap: 3px;
  width: min(292px, calc(100vw - 24px));
  border: 1px solid rgba(107, 205, 228, 0.32);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--gp-color-text);
  background: var(--gp-color-surface);
  box-shadow: 0 18px 48px rgba(4, 10, 24, 0.36);
  pointer-events: none;
  backdrop-filter: blur(14px);
}

body.product-ui .ada-tooltip strong {
  font-size: 12px;
  font-weight: 900;
}

body.product-ui .ada-tooltip span {
  display: block;
}

body.product-ui .ada-hotspot {
  position: absolute;
  z-index: 1390;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #06101e;
  background: linear-gradient(135deg, var(--gp-color-accent), #3a8cba);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  cursor: help;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

body.product-ui .ada-hotspot:hover,
body.product-ui .ada-hotspot:focus-visible {
  transform: scale(1.08);
  outline: 2px solid rgba(107, 205, 228, 0.36);
  outline-offset: 2px;
}

body.product-ui.ada-tour-active {
  scroll-behavior: smooth;
}

body.product-ui .ada-spotlight {
  position: fixed;
  z-index: 1410;
  border: 2px solid var(--gp-color-accent);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(8, 14, 32, 0.36), 0 0 34px rgba(107, 205, 228, 0.3);
  transition: left 160ms ease, top 160ms ease, width 160ms ease, height 160ms ease;
}

body.product-ui .ada-tour-popover {
  position: fixed;
  z-index: 1430;
  width: min(336px, calc(100vw - 24px));
  border: 1px solid rgba(107, 205, 228, 0.34);
  border-radius: 15px;
  padding: 14px;
  color: var(--gp-color-text);
  background: var(--gp-color-surface);
  box-shadow: 0 24px 62px rgba(4, 10, 24, 0.4);
  backdrop-filter: blur(18px);
}

body.product-ui .ada-tour-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

body.product-ui .ada-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--gp-color-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.product-ui .ada-tour-popover h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

body.product-ui .ada-tour-popover > p {
  margin-top: 10px;
  font-size: 13px;
}

body.product-ui .ada-tour-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

body.product-ui .ada-tour-actions button {
  min-height: 32px;
}

body.product-ui .ada-tour-actions button.primary {
  border-color: transparent;
  color: #06101e;
  background: linear-gradient(135deg, var(--gp-color-accent), #3a8cba);
}

body.product-ui .ada-checklist {
  position: fixed;
  z-index: 1400;
  width: min(300px, calc(100vw - 24px));
  border: 1px solid var(--gp-color-border);
  border-radius: 14px;
  padding: 14px;
  color: var(--gp-color-text);
  background: var(--gp-color-surface);
  box-shadow: 0 18px 48px rgba(4, 10, 24, 0.36);
  backdrop-filter: blur(16px);
}

/* Classic dashboard palette aligns to modern clean Slate surfaces. */
html[data-product-ui="classic"] body.dashboard-page {
  --dash-text: var(--gp-color-text);
  --dash-muted: var(--gp-color-muted);
  --dash-cyan: #3b82f6;
  --dash-blue: #2563eb;
  --dash-purple: #8b5cf6;
  --dash-line: var(--gp-color-border);
  --dash-card: var(--gp-color-surface);
  --dash-border: var(--gp-color-border);
  background: var(--gp-color-bg);
  color: var(--dash-text);
}

html[data-product-ui="classic"] body.dashboard-page .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--gp-color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  backdrop-filter: blur(16px);
}

html[data-product-ui="classic"] body.dashboard-page .ops-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--gp-color-border);
  box-shadow: 1px 0 3px rgba(0,0,0,0.02);
}

html[data-product-ui="classic"] body.dashboard-page .ops-link {
  color: var(--gp-color-muted);
}

html[data-product-ui="classic"] body.dashboard-page .ops-link:hover {
  background: var(--gp-color-surface-2);
  color: var(--gp-color-text);
}

html[data-product-ui="classic"] body.dashboard-page .ops-link.active {
  background: var(--gp-color-surface-2);
  border-color: var(--gp-color-border-strong);
  color: var(--gp-color-accent);
}

html[data-product-ui="classic"] body.dashboard-page .kpi-card {
  border: 1px solid var(--gp-color-border) !important;
  background: #ffffff !important;
  color: var(--gp-color-text);
  box-shadow: var(--gp-shadow-sm) !important;
}

html[data-product-ui="classic"] body.dashboard-page .panel {
  border: 1px solid var(--gp-color-border) !important;
  background: #ffffff !important;
  box-shadow: var(--gp-shadow-sm) !important;
}

html[data-product-ui="classic"] body.dashboard-page .panel h3 {
  color: #0f172a;
}

html[data-product-ui="classic"] body.dashboard-page .panel h4 {
  color: #475569;
}

html[data-product-ui="classic"] body.dashboard-page .panel p {
  color: var(--gp-color-muted);
}

html[data-product-ui="classic"] body.dashboard-page .list-item {
  border-color: var(--gp-color-border);
  background: #ffffff;
}

html[data-product-ui="classic"] body.dashboard-page .monitor-summary-grid div {
  border: 1px solid var(--gp-color-border);
  background: var(--gp-color-surface-2);
}

html[data-product-ui="classic"] body.dashboard-page .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--gp-color-border);
}
