/* =============================================================================
   Bright theme — full platform polish (loads after page-specific CSS)
   ============================================================================= */

html[data-theme="bright"] {
  --inv-page-bg: #eef2f7;
  --inv-surface: #ffffff;
  --inv-surface-2: #f8fafc;
  --inv-border: #e2e8f0;
  --inv-text: #0f172a;
  --inv-text-secondary: #334155;
  --inv-muted: #64748b;
  --inv-nav-text: #475569;
  --inv-nav-icon: #64748b;
  --inv-nav-hover-bg: #f1f5f9;
  --inv-nav-active-bg: #dbeafe;
  --inv-nav-active-text: #1d4ed8;
  --inv-accent: #2563eb;
  --inv-accent-soft: #dbeafe;
  --inv-input-bg: #ffffff;
  --inv-shadow: rgba(15, 23, 42, 0.08);
  --inv-brand-dark: #0f172a;
  --inv-brand-accent: #2563eb;
  --inv-danger: #dc2626;
  --inv-danger-soft: #fee2e2;
  --inv-success: #059669;
  --inv-success-soft: #d1fae5;
  --inv-warning: #d97706;
  --inv-warning-soft: #fef3c7;
}

html[data-theme="bright"] body {
  background:
    radial-gradient(circle at 62% 6%, rgba(96, 165, 250, 0.14), transparent 28rem),
    radial-gradient(circle at 8% 20%, rgba(148, 163, 184, 0.10), transparent 20rem),
    linear-gradient(160deg, #f8fafc 0%, #eef2f7 48%, #e8eef5 100%) !important;
  color: var(--inv-text) !important;
}

html[data-theme="bright"] body::selection {
  background: rgba(37, 99, 235, 0.22);
  color: #0f172a;
}

html[data-theme="bright"] aside.sidebar,
html[data-theme="bright"] .inv-sidebar,
html[data-theme="bright"] .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="bright"] .sidebar .brand-header,
html[data-theme="bright"] .brand-header {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .brand-logo-split {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.7px !important;
}

html[data-theme="bright"] .brand-logo-split .black-text {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="bright"] .brand-logo-split .blue-text {
  color: #2563eb !important;
  font-weight: 300 !important;
  font-style: italic !important;
}

html[data-theme="bright"] .nav-section--panel {
  border-top-color: #e2e8f0 !important;
}

html[data-theme="bright"] .nav-section-label {
  color: #94a3b8 !important;
}

html[data-theme="bright"] .sidebar .nav-item,
html[data-theme="bright"] .sidebar .nav-subitem {
  color: var(--inv-nav-text) !important;
}

html[data-theme="bright"] .sidebar .nav-item:hover,
html[data-theme="bright"] .sidebar .nav-subitem:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .sidebar .nav-item.active,
html[data-theme="bright"] .sidebar .nav-subitem.active {
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
  box-shadow: inset 3px 0 0 #2563eb !important;
}

html[data-theme="bright"] .sidebar .nav-item.active .material-symbols-outlined,
html[data-theme="bright"] .sidebar .nav-subitem.active .material-symbols-outlined {
  color: #2563eb !important;
}

html[data-theme="bright"] .main-content {
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.08), transparent 26rem),
    transparent !important;
  color: var(--inv-text) !important;
}

html[data-theme="bright"] .top-bar-clean {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: var(--inv-text) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(16px);
}

html[data-theme="bright"] .top-bar-title,
html[data-theme="bright"] .top-bar-clean .bar-title,
html[data-theme="bright"] .page-title,
html[data-theme="bright"] .product-title,
html[data-theme="bright"] .section-title,
html[data-theme="bright"] .card-title,
html[data-theme="bright"] .mini-table-title,
html[data-theme="bright"] .health-chart-title,
html[data-theme="bright"] .action-center-title,
html[data-theme="bright"] .demand-pipeline-title,
html[data-theme="bright"] .live-alerts-title,
html[data-theme="bright"] .hub-card h2,
html[data-theme="bright"] .simple-card h2,
html[data-theme="bright"] .category-heading h3,
html[data-theme="bright"] .stat-info .value,
html[data-theme="bright"] .summary-value,
html[data-theme="bright"] .price-strong,
html[data-theme="bright"] .acct-row .val {
  color: #0f172a !important;
}

html[data-theme="bright"] .top-bar-subtitle,
html[data-theme="bright"] .page-subtitle,
html[data-theme="bright"] .section-note,
html[data-theme="bright"] .card-desc,
html[data-theme="bright"] .card-sub,
html[data-theme="bright"] .muted,
html[data-theme="bright"] .stat-label,
html[data-theme="bright"] .chart-note,
html[data-theme="bright"] .summary-label,
html[data-theme="bright"] .hub-card > p.note,
html[data-theme="bright"] .acct-row .lbl {
  color: var(--inv-muted) !important;
}

html[data-theme="bright"] .simple-card,
html[data-theme="bright"] .pos-card,
html[data-theme="bright"] .performance-card,
html[data-theme="bright"] .table-card,
html[data-theme="bright"] .table-container,
html[data-theme="bright"] .category-section,
html[data-theme="bright"] .mini-table-card,
html[data-theme="bright"] .section-panel,
html[data-theme="bright"] .rental-card,
html[data-theme="bright"] .detail-card,
html[data-theme="bright"] .hub-card,
html[data-theme="bright"] .profile-card,
html[data-theme="bright"] .ledger-card,
html[data-theme="bright"] .summary-card,
html[data-theme="bright"] .stat-card,
html[data-theme="bright"] .stat-box,
html[data-theme="bright"] .overview-card,
html[data-theme="bright"] .insight-card,
html[data-theme="bright"] .live-alerts-panel,
html[data-theme="bright"] .health-chart-card,
html[data-theme="bright"] .action-center-card,
html[data-theme="bright"] .demand-pipeline-card,
html[data-theme="bright"] .hero-card,
html[data-theme="bright"] .config-card,
html[data-theme="bright"] .danger-panel,
html[data-theme="bright"] .logo-drop,
html[data-theme="bright"] .cart-wrap,
html[data-theme="bright"] .modal-card,
html[data-theme="bright"] .prebook-modal,
html[data-theme="bright"] .demand-modal-card,
html[data-theme="bright"] .mission-modal-card,
html[data-theme="bright"] .page-header,
html[data-theme="bright"] .page-heading-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  color: var(--inv-text) !important;
}

html[data-theme="bright"] .hero {
  background:
    linear-gradient(135deg, #ffffff 0%, #eff6ff 100%),
    radial-gradient(circle at 78% 22%, rgba(96, 165, 250, 0.12), transparent 20rem) !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="bright"] .data-table th,
html[data-theme="bright"] .ledger-table th,
html[data-theme="bright"] .simple-table th,
html[data-theme="bright"] .cart-table th,
html[data-theme="bright"] .demand-table th,
html[data-theme="bright"] .mini-table th {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .data-table td,
html[data-theme="bright"] .ledger-table td,
html[data-theme="bright"] .simple-table td,
html[data-theme="bright"] .cart-table td,
html[data-theme="bright"] .demand-table td,
html[data-theme="bright"] .mini-table td {
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .data-table tr:hover,
html[data-theme="bright"] .ledger-table tr:hover,
html[data-theme="bright"] .simple-table tr:hover,
html[data-theme="bright"] .demand-table tr:hover {
  background: #f8fafc !important;
}

html[data-theme="bright"] .product-link,
html[data-theme="bright"] .product-name-text a,
html[data-theme="bright"] .product-cell a,
html[data-theme="bright"] .contact-link,
html[data-theme="bright"] .footer-cross a,
html[data-theme="bright"] .data-table td a,
html[data-theme="bright"] .ledger-table td a,
html[data-theme="bright"] .simple-table td a,
html[data-theme="bright"] .demand-table td a,
html[data-theme="bright"] .mini-table td a,
html[data-theme="bright"] .product-name,
html[data-theme="bright"] .product-name-text,
html[data-theme="bright"] .contact-name,
html[data-theme="bright"] .cat-name,
html[data-theme="bright"] .demand-item-name,
html[data-theme="bright"] td strong {
  color: #1d4ed8 !important;
}

html[data-theme="bright"] .product-link:hover,
html[data-theme="bright"] .product-cell a:hover,
html[data-theme="bright"] .footer-cross a:hover,
html[data-theme="bright"] .data-table td a:hover {
  color: #2563eb !important;
}

html[data-theme="bright"] input,
html[data-theme="bright"] select,
html[data-theme="bright"] textarea,
html[data-theme="bright"] .pos-input,
html[data-theme="bright"] .demand-input,
html[data-theme="bright"] .filter-select,
html[data-theme="bright"] .form-group input,
html[data-theme="bright"] .form-group select,
html[data-theme="bright"] .form-group textarea,
html[data-theme="bright"] .modal-field input,
html[data-theme="bright"] .modal-field select,
html[data-theme="bright"] .modal-field textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="bright"] input::placeholder,
html[data-theme="bright"] textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="bright"] input:focus,
html[data-theme="bright"] select:focus,
html[data-theme="bright"] textarea:focus,
html[data-theme="bright"] .pos-input:focus,
html[data-theme="bright"] .form-group input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

html[data-theme="bright"] .main-search,
html[data-theme="bright"] .user-profile-top,
html[data-theme="bright"] .period-filter,
html[data-theme="bright"] .control-panel-btn,
html[data-theme="bright"] .dashboard-tab-list,
html[data-theme="bright"] .table-toolbar,
html[data-theme="bright"] .filter-row,
html[data-theme="bright"] .mini-img-box,
html[data-theme="bright"] .action-list-item,
html[data-theme="bright"] .empty-state,
html[data-theme="bright"] .demand-empty {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .main-search input {
  color: #0f172a !important;
}

html[data-theme="bright"] .btn-secondary,
html[data-theme="bright"] .btn-outline,
html[data-theme="bright"] .btn-export,
html[data-theme="bright"] .modal-cancel,
html[data-theme="bright"] .mission-settings-btn,
html[data-theme="bright"] .mission-skip-btn,
html[data-theme="bright"] .mission-done-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .btn-secondary:hover,
html[data-theme="bright"] .btn-outline:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="bright"] .btn-export-ledger {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #0ea5e9) !important;
  color: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="bright"] .btn-export-ledger:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8, #0284c7) !important;
  color: #ffffff !important;
}

html[data-theme="bright"] .btn-export-ledger .material-symbols-outlined {
  color: #ffffff !important;
}

html[data-theme="bright"] .btn-export-buy-list {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="bright"] .btn-export-buy-list:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #2563eb !important;
}

html[data-theme="bright"] .btn-export-buy-list .material-symbols-outlined {
  color: #2563eb !important;
}

html[data-theme="bright"] .icon-btn,
html[data-theme="bright"] .batch-btn,
html[data-theme="bright"] .undo-btn,
html[data-theme="bright"] .return-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="bright"] .live-alert-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .live-alert--alert,
html[data-theme="bright"] .live-alert--profit-down {
  background: #fef2f2 !important;
  border-left-color: #ef4444 !important;
  color: #991b1b !important;
}

html[data-theme="bright"] .live-alert--warning {
  background: #fffbeb !important;
  border-left-color: #f59e0b !important;
  color: #92400e !important;
}

html[data-theme="bright"] .live-alert--restock,
html[data-theme="bright"] .live-alert--profit-up {
  background: #ecfdf5 !important;
  border-left-color: #10b981 !important;
  color: #047857 !important;
}

html[data-theme="bright"] .modal-backdrop,
html[data-theme="bright"] .modal-overlay,
html[data-theme="bright"] .demand-modal,
html[data-theme="bright"] .mission-modal {
  background: rgba(15, 23, 42, 0.35) !important;
}

html[data-theme="bright"] .account-summary-card,
html[data-theme="bright"] .settings-card,
html[data-theme="bright"] .account-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .account-avatar {
  background: linear-gradient(145deg, #3b82f6, #6366f1) !important;
  color: #ffffff !important;
}

html[data-theme="bright"] .mobile-nav-toggle,
html[data-theme="bright"] .mobile-nav-close {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .mobile-nav-backdrop {
  background: rgba(15, 23, 42, 0.35) !important;
}

/* =============================================================================
   Dashboard — undo inline dark glass overrides
   ============================================================================= */

html[data-theme="bright"] body.app-shell {
  background:
    radial-gradient(circle at 62% 6%, rgba(96, 165, 250, 0.12), transparent 26rem),
    linear-gradient(160deg, #f8fafc 0%, #eef2f7 55%, #e8eef5 100%) !important;
  color: #0f172a !important;
}

html[data-theme="bright"] .workspace-area {
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.06), transparent 24rem),
    transparent !important;
}

html[data-theme="bright"] .main-search {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="bright"] .main-search .material-symbols-outlined {
  color: #64748b !important;
}

html[data-theme="bright"] .main-search input {
  color: #0f172a !important;
}

html[data-theme="bright"] .user-profile-top {
  color: #475569 !important;
}

html[data-theme="bright"] .user-profile-top .material-symbols-outlined {
  color: #64748b !important;
}

html[data-theme="bright"] .header-chip,
html[data-theme="bright"] .header-icon-btn,
html[data-theme="bright"] .header-tools .mission-streak {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .header-action-select {
  color: #b45309 !important;
}

html[data-theme="bright"] .mission-card,
html[data-theme="bright"] .overview-card,
html[data-theme="bright"] .quick-launch-card,
html[data-theme="bright"] .action-alert-card,
html[data-theme="bright"] .mini-table-card,
html[data-theme="bright"] .demand-pipeline-card,
html[data-theme="bright"] .live-alerts-panel,
html[data-theme="bright"] .health-chart-card,
html[data-theme="bright"] .action-center-card,
html[data-theme="bright"] .dashboard-tab-list,
html[data-theme="bright"] .revenue-spark-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07) !important;
  color: #0f172a !important;
  backdrop-filter: none !important;
}

html[data-theme="bright"] .mission-card {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
}

html[data-theme="bright"] .mission-card::before,
html[data-theme="bright"] .overview-card::before,
html[data-theme="bright"] .quick-launch-card::before,
html[data-theme="bright"] .action-alert-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 42%) !important;
  opacity: 0.85 !important;
}

html[data-theme="bright"] .mission-kicker {
  color: #2563eb !important;
}

html[data-theme="bright"] .mission-title,
html[data-theme="bright"] .mission-value,
html[data-theme="bright"] .card-value,
html[data-theme="bright"] .overview-title,
html[data-theme="bright"] .quick-launch-title,
html[data-theme="bright"] .action-alert-body strong {
  color: #0f172a !important;
}

html[data-theme="bright"] .mission-message,
html[data-theme="bright"] .mission-label,
html[data-theme="bright"] .card-sub,
html[data-theme="bright"] .card-desc,
html[data-theme="bright"] .section-note,
html[data-theme="bright"] .demand-muted,
html[data-theme="bright"] .health-chart-note,
html[data-theme="bright"] .action-center-note,
html[data-theme="bright"] .action-alert-body p,
html[data-theme="bright"] .action-alert-tick-label {
  color: #64748b !important;
}

html[data-theme="bright"] .mission-ring-center strong {
  color: #0f172a !important;
}

html[data-theme="bright"] .mission-ring-center span,
html[data-theme="bright"] .mission-ring-center small,
html[data-theme="bright"] .mission-ring-percent {
  color: #64748b !important;
}

html[data-theme="bright"] .mission-ring-track {
  stroke: #e2e8f0 !important;
}

html[data-theme="bright"] .mission-ring-fill {
  stroke: #2563eb !important;
}

html[data-theme="bright"] .period-filter,
html[data-theme="bright"] .mission-settings-btn,
html[data-theme="bright"] .mission-status-badge,
html[data-theme="bright"] .custom-date-panel {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .period-filter input,
html[data-theme="bright"] .custom-date-toggle {
  color: #0f172a !important;
}

html[data-theme="bright"] .overview-card .card-label {
  color: #475569 !important;
}

html[data-theme="bright"] .overview-card .card-value {
  color: #0f172a !important;
}

html[data-theme="bright"] .metric-list,
html[data-theme="bright"] .metric-bullets {
  color: #64748b !important;
}

html[data-theme="bright"] .metric-list strong,
html[data-theme="bright"] .metric-bullets strong {
  color: #0f172a !important;
}

html[data-theme="bright"] .quick-option-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] button.quick-option-row:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

html[data-theme="bright"] .action-alert-complete-tick {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .action-alert-completed li {
  color: #475569 !important;
}

html[data-theme="bright"] .action-alert-completed strong {
  color: #94a3b8 !important;
}

html[data-theme="bright"] .mission-streak,
html[data-theme="bright"] .mission-done-targets {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .mission-done-btn,
html[data-theme="bright"] .mission-skip-btn {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="bright"] .dashboard-tab {
  color: #64748b !important;
}

html[data-theme="bright"] #businessActivityTab:checked ~ .dashboard-tab-list label[for="businessActivityTab"],
html[data-theme="bright"] #inventoryHealthTab:checked ~ .dashboard-tab-list label[for="inventoryHealthTab"] {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

html[data-theme="bright"] .simple-table td,
html[data-theme="bright"] .demand-table td,
html[data-theme="bright"] .product-cell,
html[data-theme="bright"] .demand-item-name {
  color: #334155 !important;
}

html[data-theme="bright"] .simple-table th,
html[data-theme="bright"] .demand-table th {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .mini-img-box,
html[data-theme="bright"] .action-list-item,
html[data-theme="bright"] .action-detail-line {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .action-alert-progress {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

html[data-theme="bright"] .dashboard-secondary .dashboard-product-link,
html[data-theme="bright"] .dashboard-secondary .product-cell a {
  color: #1d4ed8 !important;
}

html[data-theme="bright"] .dashboard-secondary .dashboard-product-link:hover,
html[data-theme="bright"] .dashboard-secondary .product-cell a:hover {
  color: #2563eb !important;
}

html[data-theme="bright"] .donut-hole {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="bright"] .catalog-page .page-header,
html[data-theme="bright"] .catalog-page .table-card {
  background: #ffffff !important;
}

html[data-theme="bright"] .catalog-page .product-img-box {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

html[data-theme="bright"] .catalog-page .product-img-box .material-symbols-outlined {
  color: #2563eb !important;
}

/* Settings & Account — top bar + page heroes */
html[data-theme="bright"] .main-content > .top-bar-clean {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="bright"] .main-content > .top-bar-clean .top-bar-title {
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

html[data-theme="bright"] .main-content > .top-bar-clean .top-bar-subtitle {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin-top: 2px !important;
}

html[data-theme="bright"] .settings-hero,
html[data-theme="bright"] .account-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-bottom: 22px !important;
  padding: 24px 26px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 48%, #eff6ff 100%) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07) !important;
  color: #0f172a !important;
  backdrop-filter: none !important;
}

html[data-theme="bright"] .account-hero {
  justify-content: flex-start !important;
}

html[data-theme="bright"] .settings-hero .section-kicker,
html[data-theme="bright"] .account-hero .section-kicker {
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}

html[data-theme="bright"] .settings-hero .page-title,
html[data-theme="bright"] .account-hero .page-title {
  color: #0f172a !important;
  font-size: clamp(26px, 2.2vw, 32px) !important;
  font-weight: 850 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
}

html[data-theme="bright"] .settings-hero .page-subtitle,
html[data-theme="bright"] .account-hero .page-subtitle {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 42rem;
}

html[data-theme="bright"] .account-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 100%) !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12) !important;
}

html[data-theme="bright"] .settings-hero-account-btn {
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  color: #1e40af !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="bright"] .settings-hero-account-btn .material-symbols-outlined {
  color: #2563eb !important;
}

html[data-theme="bright"] .settings-hero-account-btn:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14) !important;
}

html[data-theme="bright"] .settings-hero-account-btn:hover .material-symbols-outlined {
  color: #1d4ed8 !important;
}

html[data-theme="bright"] .settings-card,
html[data-theme="bright"] .account-card,
html[data-theme="bright"] .account-summary-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: none !important;
}

html[data-theme="bright"] .settings-step {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #2563eb !important;
}

html[data-theme="bright"] .settings-card .card-title,
html[data-theme="bright"] .account-card-head h2 {
  color: #0f172a !important;
}

html[data-theme="bright"] .settings-card .card-desc,
html[data-theme="bright"] .account-card-head .note {
  color: #64748b !important;
}

html[data-theme="bright"] .account-summary-card .lbl,
html[data-theme="bright"] .account-summary-note {
  color: #64748b !important;
}

html[data-theme="bright"] .account-summary-card .val {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="bright"] .logo-drop {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="bright"] .logo-drop-lead {
  color: #334155 !important;
}

html[data-theme="bright"] .logo-drop-hint {
  color: #94a3b8 !important;
}

html[data-theme="bright"] .footer-cross a {
  color: #2563eb !important;
}

html[data-theme="bright"] .toast {
  color: #334155 !important;
}

html[data-theme="bright"] .toast.error {
  color: #b91c1c !important;
}

/* Standalone platform admin dashboard */
html[data-theme="bright"] body.admin-standalone {
  background:
    radial-gradient(circle at 62% 6%, rgba(96, 165, 250, 0.14), transparent 28rem),
    radial-gradient(circle at 8% 20%, rgba(148, 163, 184, 0.10), transparent 20rem),
    linear-gradient(160deg, #f8fafc 0%, #eef2f7 48%, #e8eef5 100%) !important;
  color: #0f172a !important;
}

html[data-theme="bright"] .admin-standalone .admin-brand .brand-logo-split {
  font-size: 24px !important;
}

html[data-theme="bright"] .admin-standalone .admin-brand .brand-logo-split .black-text {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="bright"] .admin-standalone .admin-brand .brand-logo-split .blue-text {
  color: #2563eb !important;
  font-weight: 300 !important;
  font-style: italic !important;
}

html[data-theme="bright"] .admin-standalone .admin-signed-in {
  color: #334155 !important;
}

html[data-theme="bright"] .admin-standalone .admin-actions {
  color: #64748b !important;
}

html[data-theme="bright"] .admin-standalone .admin-eyebrow {
  color: #2563eb !important;
}

html[data-theme="bright"] .admin-standalone .admin-page-header h1 {
  color: #0f172a !important;
}

html[data-theme="bright"] .admin-standalone .admin-subtitle {
  color: #64748b !important;
}

html[data-theme="bright"] .admin-standalone .admin-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
}

html[data-theme="bright"] .admin-standalone .admin-table th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="bright"] .admin-standalone .admin-table td {
  border-bottom-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="bright"] .admin-standalone .admin-table tr:hover td {
  background: #f8fafc !important;
}

html[data-theme="bright"] .admin-standalone .admin-user-avatar {
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 100%) !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

html[data-theme="bright"] .admin-standalone .admin-user-name {
  color: #0f172a !important;
}

html[data-theme="bright"] .admin-standalone .admin-user-meta,
html[data-theme="bright"] .admin-standalone .admin-user-email,
html[data-theme="bright"] .admin-standalone .admin-muted-note,
html[data-theme="bright"] .admin-standalone .admin-empty-cell {
  color: #64748b !important;
}

html[data-theme="bright"] .admin-standalone .role-pill-admin {
  background: #fee2e2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
}

html[data-theme="bright"] .admin-standalone .role-pill-user {
  background: #dcfce7 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}

html[data-theme="bright"] .admin-standalone .impersonate-btn {
  background: #0f172a !important;
  color: #ffffff !important;
}

html[data-theme="bright"] .admin-standalone .impersonate-btn:hover {
  background: #2563eb !important;
}

html[data-theme="bright"] .admin-standalone .workspace-btn,
html[data-theme="bright"] .admin-standalone .role-toggle-btn {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

html[data-theme="bright"] .admin-standalone .workspace-btn:hover,
html[data-theme="bright"] .admin-standalone .role-toggle-btn:hover:not(:disabled) {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="bright"] .admin-standalone .delete-user-btn {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}

html[data-theme="bright"] .admin-standalone .delete-user-btn:hover:not(:disabled) {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  html[data-theme="bright"] .admin-standalone .admin-brand .brand-logo-split {
    font-size: 20px !important;
  }

  html[data-theme="bright"] .admin-standalone .admin-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  html[data-theme="bright"] .admin-standalone .admin-user-row {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
  }

  html[data-theme="bright"] .admin-standalone .admin-user-row:hover td {
    background: transparent !important;
  }

  html[data-theme="bright"] .admin-standalone .admin-table td {
    border-bottom-color: #e2e8f0 !important;
  }

  html[data-theme="bright"] .admin-standalone .admin-table td.admin-td-primary {
    border-bottom-color: #e2e8f0 !important;
  }

  html[data-theme="bright"] .admin-standalone .admin-table td::before {
    color: #64748b !important;
  }

  html[data-theme="bright"] .admin-standalone .admin-empty-cell {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
  }
}

/* Sign in / Sign up */
html[data-theme="bright"] body.auth-standalone {
  background:
    radial-gradient(circle at 62% 6%, rgba(96, 165, 250, 0.14), transparent 28rem),
    radial-gradient(circle at 8% 20%, rgba(148, 163, 184, 0.10), transparent 20rem),
    linear-gradient(160deg, #f8fafc 0%, #eef2f7 48%, #e8eef5 100%) !important;
  color: #0f172a !important;
}

html[data-theme="bright"] body.auth-standalone .brand-logo-split .black-text {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="bright"] body.auth-standalone .brand-logo-split .blue-text {
  color: #2563eb !important;
  font-weight: 300 !important;
  font-style: italic !important;
}

html[data-theme="bright"] body.auth-standalone .login-card,
html[data-theme="bright"] body.auth-standalone .signup-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
}

html[data-theme="bright"] body.auth-standalone h1,
html[data-theme="bright"] body.auth-standalone label {
  color: #111827 !important;
}

html[data-theme="bright"] body.auth-standalone .subtitle,
html[data-theme="bright"] body.auth-standalone .footer-text,
html[data-theme="bright"] body.auth-standalone .form-note,
html[data-theme="bright"] body.auth-standalone .password-checklist {
  color: #6b7280 !important;
}

html[data-theme="bright"] body.auth-standalone input[type="email"],
html[data-theme="bright"] body.auth-standalone input[type="password"],
html[data-theme="bright"] body.auth-standalone input[type="text"] {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #0f172a !important;
}

html[data-theme="bright"] body.auth-standalone input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

html[data-theme="bright"] body.auth-standalone .sign-in-btn,
html[data-theme="bright"] body.auth-standalone .submit-btn {
  background: #2563eb !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22) !important;
}

html[data-theme="bright"] body.auth-standalone .sign-in-btn:hover,
html[data-theme="bright"] body.auth-standalone .submit-btn:hover {
  background: #1d4ed8 !important;
}

html[data-theme="bright"] body.auth-standalone .google-btn {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #374151 !important;
}

html[data-theme="bright"] body.auth-standalone .divider {
  color: #9ca3af !important;
}

html[data-theme="bright"] body.auth-standalone .divider::before,
html[data-theme="bright"] body.auth-standalone .divider::after {
  border-bottom-color: #e5e7eb !important;
}

html[data-theme="bright"] body.auth-standalone .footer-text a,
html[data-theme="bright"] body.auth-standalone .helper-link,
html[data-theme="bright"] body.auth-standalone .forgot-pwd {
  color: #2563eb !important;
}

html[data-theme="bright"] body.auth-standalone .auth-lang-links a {
  color: #2563eb !important;
}

html[data-theme="bright"] body.auth-standalone .auth-lang-links a.is-muted {
  color: #64748b !important;
}
