body[data-ui-theme="dark"]:not(.preview-shadcn) {
  --bg: #0b0b0c !important;
  --surface: #171717 !important;
  --surface-soft: #1d1d1f !important;
  --surface-muted: #222325 !important;
  --line: rgba(255, 255, 255, 0.08) !important;
  --line-strong: rgba(255, 255, 255, 0.14) !important;
  --text: #f5f5f5 !important;
  --muted: #a3a3a3 !important;
  --accent: #f5f5f5 !important;
  --accent-strong: #ffffff !important;
  --accent-soft: rgba(255, 255, 255, 0.06) !important;
  --warning: #e5e7eb !important;
  --warning-soft: rgba(255, 255, 255, 0.08) !important;
  --success: #22c55e !important;
  --danger: #ef4444 !important;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34) !important;
  color-scheme: dark;
  background: #0b0b0c;
}

body[data-ui-theme="dark"]:not(.preview-shadcn) .module-card,
body[data-ui-theme="dark"]:not(.preview-shadcn) .topbar,
body[data-ui-theme="dark"]:not(.preview-shadcn) .strip-card,
body[data-ui-theme="dark"]:not(.preview-shadcn) .login-card,
body[data-ui-theme="dark"]:not(.preview-shadcn) .auth-shell .login-brand,
body[data-ui-theme="dark"]:not(.preview-shadcn) .table-enhancer,
body[data-ui-theme="dark"]:not(.preview-shadcn) .table-toolbar,
body[data-ui-theme="dark"]:not(.preview-shadcn) .table-columns-menu,
body[data-ui-theme="dark"]:not(.preview-shadcn) .status-dock-panel {
  background: linear-gradient(180deg, rgba(25, 25, 27, 0.98), rgba(18, 18, 19, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body[data-ui-theme="dark"]:not(.preview-shadcn) .login-brand {
  background: linear-gradient(135deg, rgba(22, 22, 24, 0.98), rgba(32, 32, 36, 0.96));
}

body[data-ui-theme="dark"]:not(.preview-shadcn) input,
body[data-ui-theme="dark"]:not(.preview-shadcn) select,
body[data-ui-theme="dark"]:not(.preview-shadcn) textarea {
  background: #101113;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-ui-theme="dark"]:not(.preview-shadcn) input::placeholder,
body[data-ui-theme="dark"]:not(.preview-shadcn) textarea::placeholder {
  color: #7c7c84;
}

body[data-ui-theme="dark"]:not(.preview-shadcn) .ghost-btn,
body[data-ui-theme="dark"]:not(.preview-shadcn) .inline-link,
body[data-ui-theme="dark"]:not(.preview-shadcn) .radio-pill span,
body[data-ui-theme="dark"]:not(.preview-shadcn) .status-pill,
body[data-ui-theme="dark"]:not(.preview-shadcn) .summary-chip,
body[data-ui-theme="dark"]:not(.preview-shadcn) .workspace-pill,
body[data-ui-theme="dark"]:not(.preview-shadcn) .report-head-pill {
  background: #1f1f22;
  color: #ededed;
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-ui-theme="dark"]:not(.preview-shadcn) .primary-btn {
  background: #f5f5f5;
  color: #0f1012;
}

body[data-ui-theme="dark"]:not(.preview-shadcn) .workspace-footer,
body[data-ui-theme="dark"]:not(.preview-shadcn) .status-caption,
body[data-ui-theme="dark"]:not(.preview-shadcn) .module-copy {
  color: #a3a3a3;
}

body[data-ui-theme="dark"]:not(.preview-shadcn) thead th {
  background: #212225;
  color: #f5f5f5;
}

body[data-ui-theme="dark"]:not(.preview-shadcn) tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

body[data-ui-theme="light"]:not(.preview-shadcn) {
  --bg: #f4f4f5 !important;
  --surface: #ffffff !important;
  --surface-soft: #fafafa !important;
  --surface-muted: #f5f5f5 !important;
  --line: #e5e7eb !important;
  --line-strong: #d1d5db !important;
  --text: #111827 !important;
  --muted: #6b7280 !important;
  --accent: #111827 !important;
  --accent-strong: #030712 !important;
  --accent-soft: #f3f4f6 !important;
  --warning: #374151 !important;
  --warning-soft: #f3f4f6 !important;
  --success: #15803d !important;
  --danger: #b91c1c !important;
  --shadow: 0 16px 36px rgba(17, 24, 39, 0.06) !important;
  color-scheme: light;
  background:
    radial-gradient(circle at top left, rgba(17, 24, 39, 0.05), transparent 18%),
    linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
}

body[data-ui-theme="light"]:not(.preview-shadcn) .module-card,
body[data-ui-theme="light"]:not(.preview-shadcn) .topbar,
body[data-ui-theme="light"]:not(.preview-shadcn) .strip-card,
body[data-ui-theme="light"]:not(.preview-shadcn) .login-card,
body[data-ui-theme="light"]:not(.preview-shadcn) .table-enhancer,
body[data-ui-theme="light"]:not(.preview-shadcn) .table-toolbar,
body[data-ui-theme="light"]:not(.preview-shadcn) .table-columns-menu,
body[data-ui-theme="light"]:not(.preview-shadcn) .status-dock-panel {
  border-color: #e5e7eb;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.05);
}

body[data-ui-theme="light"]:not(.preview-shadcn) .topbar,
body[data-ui-theme="light"]:not(.preview-shadcn) .auth-shell .login-brand {
  background: linear-gradient(135deg, #111827, #1f2937 55%, #374151);
}

body[data-ui-theme="light"]:not(.preview-shadcn) .primary-btn {
  background: #111827;
  color: #ffffff;
}

body[data-ui-theme="light"]:not(.preview-shadcn) .ghost-btn,
body[data-ui-theme="light"]:not(.preview-shadcn) .inline-link {
  background: #ffffff;
  color: #111827;
}
