/* Chromas Inc — light (white) theme overrides for all modules
   Light Theme 10: SaaS white + teal accent (pairs with dark-theme.css) */

html[data-gce-mode="light"],
body[data-gce-mode="light"] {
  --gce-bg: #f9fafb;
  --gce-surface: #ffffff;
  --gce-surface-2: #ffffff;
  --gce-elevated: #ffffff;
  --gce-border: #e5e7eb;
  --gce-border-strong: #d1d5db;
  --gce-accent: #0d9488;
  --gce-accent-2: #0f766e;
  --gce-accent-dim: rgba(13, 148, 136, 0.12);
  --gce-accent-glow: rgba(13, 148, 136, 0.22);

  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --blue: #0d9488;
  --blue2: #0f766e;
  --purple: #14b8a6;
  --line: #e5e7eb;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --radius: 10px;
  --dash-topbar-bg: #ffffff;
  --dash-topbar-border: #e5e7eb;
  --dash-heading: #111827;
  --dash-kpi-value: #111827;
  --dash-kpi-label: #6b7280;
  --dash-search-bg: #f9fafb;
  --dash-search-text: #111827;
  --dash-search-border: #e5e7eb;
  --dash-delta-pos: #059669;
  --dash-delta-neg: #dc2626;
  --dash-util-inner-bg: #ffffff;
  --dash-util-inner-text: #111827;
  --dash-chart-label: #6b7280;
  --dash-fleet-label: #6b7280;
  --dash-fleet-value: #111827;
  --dash-safety-value: #111827;
  --dash-safety-label: #6b7280;
  --dash-deadline-text: #374151;
  --dash-deadline-date: #0d9488;
  --dash-section-border: #e5e7eb;
  --sdt-title: #111827;
  --sdt-heading: #111827;
  --sdt-text: #374151;
  --sdt-muted: #6b7280;
  --sdt-kpi-value: #111827;
  --sdt-kpi-label: #6b7280;
  --sdt-info-label: #6b7280;
  --sdt-pill-ok: #059669;
  --sdt-pill-blue: #0d9488;
  --sdt-pill-warn: #d97706;
  --prog-card-bg: #ffffff;
  --prog-item-bg: #f9fafb;
  --prog-item-border: #e5e7eb;
  --prog-item-text: #374151;
  --prog-item-done-text: #059669;
  --prog-mini-label: #6b7280;
  --prog-count-text: #0d9488;
  color: #111827;
  background: #f9fafb;
  color-scheme: light;
}

body[data-gce-mode="light"].gce-dash-mockup,
body[data-gce-mode="light"].gce-safety-mockup,
body[data-gce-mode="light"].gce-safety-dash-mockup,
body[data-gce-mode="light"].gce-certs-mockup,
body[data-gce-mode="light"].gce-calendar-mockup,
body[data-gce-mode="light"].gce-tasks-mockup {
  background: #f1f5f9;
}

body[data-gce-mode="light"].gce-tasks-mockup main {
  background: #f1f5f9;
}

body[data-gce-mode="light"].gce-tasks-mockup .tsk-search,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-icon-btn,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-table-card,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-kpi,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-widget,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-upcoming-panel,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-table-toolbar,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-table-foot {
  background: #fff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"].gce-tasks-mockup .tsk-page-head h2,
body[data-gce-mode="light"].gce-tasks-mockup .tsk-table td b {
  color: #0f172a;
}

body[data-gce-mode="light"].gce-tasks-mockup .tsk-kebab-menu {
  background: #fff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"].gce-tasks-mockup,
body[data-gce-mode="light"].gce-crews-mockup,
body[data-gce-mode="light"].gce-finance-mockup,
body[data-gce-mode="light"].gce-equipment-mockup,
body[data-gce-mode="light"].gce-settings-mockup,
body[data-gce-mode="light"].gce-site-detail-mockup,
body[data-gce-mode="light"].gce-crew-detail-mockup {
  background: #f1f5f9;
}

body[data-gce-mode="light"].gce-sites-mockup {
  background: #fff;
}

body[data-gce-mode="light"].gce-dash-mockup main,
body[data-gce-mode="light"].gce-safety-mockup main,
body[data-gce-mode="light"].gce-safety-dash-mockup main,
body[data-gce-mode="light"].gce-certs-mockup main,
body[data-gce-mode="light"].gce-calendar-mockup main,
body[data-gce-mode="light"].gce-tasks-mockup main,
body[data-gce-mode="light"].gce-crews-mockup main,
body[data-gce-mode="light"].gce-equipment-mockup main,
body[data-gce-mode="light"].gce-finance-mockup main,
body[data-gce-mode="light"].gce-settings-mockup main,
body[data-gce-mode="light"].gce-site-detail-mockup main,
body[data-gce-mode="light"].gce-crew-detail-mockup main {
  background: #f1f5f9;
}

body[data-gce-mode="light"].gce-sites-mockup main {
  background: #fff;
}

/* Sidebar & nav */
body[data-gce-mode="light"] .sidebar,
body[data-gce-mode="light"] .sidebar.sidebar--field {
  background: #ffffff;
  border-right-color: #e2e8f0;
  backdrop-filter: none;
}

body[data-gce-mode="light"] .brand--field h1 {
  color: #0f172a;
}

body[data-gce-mode="light"] .nav--field .nav-item,
body[data-gce-mode="light"] .nav-item {
  color: #475569;
}

body[data-gce-mode="light"] .nav--field .nav-item.active,
body[data-gce-mode="light"] .nav-item.active {
  color: #1e3a8a;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(168, 85, 247, 0.08));
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: none;
}

body[data-gce-mode="light"] .nav-item:hover {
  color: #0f172a;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}
body[data-gce-mode="light"] #nav-safety-badge.nav-activity-badge,
body[data-gce-mode="light"] .nav-activity-badge--alert {
  background: #dc2626;
  box-shadow: 0 0 0 2px #fff;
}
body[data-gce-mode="light"] #nav-messages-badge.nav-activity-badge,
body[data-gce-mode="light"] .nav-activity-badge--count {
  background: #1e3a8a;
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
}
body[data-gce-mode="light"] #nav-messages.active #nav-messages-badge {
  background: #1e40af;
  box-shadow: 0 0 0 2px rgba(219, 234, 254, 0.95);
}
body[data-gce-mode="light"] .nav-sub-item {
  color: #475569;
}
body[data-gce-mode="light"] .nav-sub-item:hover,
body[data-gce-mode="light"] .nav-sub-item.active {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
}
body[data-gce-mode="light"] .side-footer-brand {
  color: #94a3b8;
}

body[data-gce-mode="light"] .side-card {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), #f8fafc);
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .sidebar-logout-btn.nav-item {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: none;
}

body[data-gce-mode="light"] .sidebar-logout-btn.nav-item:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Shared cards & panels */
body[data-gce-mode="light"] .card,
body[data-gce-mode="light"] .sfty-card,
body[data-gce-mode="light"] .stat-card,
body[data-gce-mode="light"] .doc-card,
body[data-gce-mode="light"] .dash-section,
body[data-gce-mode="light"] .fin-card,
body[data-gce-mode="light"] .fin-kpi-card,
body[data-gce-mode="light"] .cert-panel,
body[data-gce-mode="light"] .cert-kpi-card,
body[data-gce-mode="light"] .crw-state-card,
body[data-gce-mode="light"] .stg-panel {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .stat-card .label {
  color: #64748b;
}

body[data-gce-mode="light"] .stat-card .value {
  color: #0f172a;
}

body[data-gce-mode="light"] .card-head,
body[data-gce-mode="light"] .sfty-card-head,
body[data-gce-mode="light"] .dash-section-head,
body[data-gce-mode="light"] .fin-card-head,
body[data-gce-mode="light"] .cert-panel-head,
body[data-gce-mode="light"] .tsk-table-head,
body[data-gce-mode="light"] .crw-table-head,
body[data-gce-mode="light"] .sfty-detail-header,
body[data-gce-mode="light"] .sfty-audit-part-body {
  border-bottom-color: #e2e8f0;
}

/* Headings & text */
body[data-gce-mode="light"] .dash-section-head,
body[data-gce-mode="light"] .fin-page-head h2,
body[data-gce-mode="light"] .fin-card-head h3,
body[data-gce-mode="light"] .tsk-page-head h2,
body[data-gce-mode="light"] .tsk-aside-card h3,
body[data-gce-mode="light"] .crw-page-head h2,
body[data-gce-mode="light"] .crw-aside-card h3,
body[data-gce-mode="light"] .cal-page-head h2,
body[data-gce-mode="light"] .sfty-page-head h2,
body[data-gce-mode="light"] .cert-page-head h2,
body[data-gce-mode="light"] .fin-kpi-value,
body[data-gce-mode="light"] .tsk-kpi-value,
body[data-gce-mode="light"] .crw-kpi-value,
body[data-gce-mode="light"] .cal-kpi-value,
body[data-gce-mode="light"] .sfty-kpi-value,
body[data-gce-mode="light"] .cert-kpi-value,
body[data-gce-mode="light"] .dash-ops-item b,
body[data-gce-mode="light"] .fin-chart-stat-val,
body[data-gce-mode="light"] .fin-donut-center b,
body[data-gce-mode="light"] .fin-po-num,
body[data-gce-mode="light"] .fin-val-cost,
body[data-gce-mode="light"] .fin-expense-legend .fin-exp-row b {
  color: #0f172a;
}

body[data-gce-mode="light"] .fin-expense-legend .fin-exp-row {
  color: #334155;
}

body[data-gce-mode="light"] .fin-doc-consumables {
  color: #475569;
}

body[data-gce-mode="light"] .fin-subtitle,
body[data-gce-mode="light"] .tsk-subtitle,
body[data-gce-mode="light"] .crw-subtitle,
body[data-gce-mode="light"] .cal-subtitle,
body[data-gce-mode="light"] .sfty-subtitle,
body[data-gce-mode="light"] .cert-subtitle,
body[data-gce-mode="light"] .fin-kpi-label,
body[data-gce-mode="light"] .tsk-kpi-label,
body[data-gce-mode="light"] .crw-kpi-label,
body[data-gce-mode="light"] .sfty-kpi-label,
body[data-gce-mode="light"] .cal-kpi-label,
body[data-gce-mode="light"] .cert-kpi-label,
body[data-gce-mode="light"] .dash-ops-item span,
body[data-gce-mode="light"] .fin-muted,
body[data-gce-mode="light"] .crw-muted,
body[data-gce-mode="light"] .fin-page-info,
body[data-gce-mode="light"] .cert-table-footer,
body[data-gce-mode="light"] .tsk-table-foot,
body[data-gce-mode="light"] .crw-table-foot {
  color: #64748b;
}

body[data-gce-mode="light"] .fin-breadcrumb .active,
body[data-gce-mode="light"] .tsk-breadcrumb .active,
body[data-gce-mode="light"] .crw-breadcrumb .active,
body[data-gce-mode="light"] .cal-breadcrumb .active,
body[data-gce-mode="light"] .sfty-breadcrumb .active,
body[data-gce-mode="light"] .cert-breadcrumb .active,
body[data-gce-mode="light"] .stg-breadcrumb .active {
  color: #2563eb;
}

/* Tables */
body[data-gce-mode="light"] .fin-table th,
body[data-gce-mode="light"] .fin-table td,
body[data-gce-mode="light"] .tsk-table th,
body[data-gce-mode="light"] .tsk-table td,
body[data-gce-mode="light"] .crw-table th,
body[data-gce-mode="light"] .crw-table td,
body[data-gce-mode="light"] .cert-table th,
body[data-gce-mode="light"] .cert-table td,
body[data-gce-mode="light"] .sfty-table th,
body[data-gce-mode="light"] .sfty-table td,
body[data-gce-mode="light"] #equipment-main table th,
body[data-gce-mode="light"] #equipment-main table td,
body[data-gce-mode="light"] .card table th,
body[data-gce-mode="light"] .card table td {
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] #equipment-main table th,
body[data-gce-mode="light"] .card table th {
  color: #64748b;
  background: #f8fafc;
}

body[data-gce-mode="light"] #equipment-main table tr:hover td,
body[data-gce-mode="light"] .card table tr:hover td {
  background: #f8fafc;
}

body[data-gce-mode="light"] .fin-table td,
body[data-gce-mode="light"] .tsk-table td b,
body[data-gce-mode="light"] .crw-table td b,
body[data-gce-mode="light"] .cert-table td,
body[data-gce-mode="light"] .sfty-table td {
  color: #0f172a;
}

body[data-gce-mode="light"] .fin-table tbody tr:hover td,
body[data-gce-mode="light"] .tsk-table tbody tr:hover td,
body[data-gce-mode="light"] .crw-row:hover td,
body[data-gce-mode="light"] .cert-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.06);
}

/* Inputs, selects, search */
body[data-gce-mode="light"] .search input,
body[data-gce-mode="light"] .filter-select,
body[data-gce-mode="light"] .fin-search,
body[data-gce-mode="light"] .fin-select,
body[data-gce-mode="light"] .tsk-search,
body[data-gce-mode="light"] .tsk-filter-select,
body[data-gce-mode="light"] .tsk-input,
body[data-gce-mode="light"] .crw-search,
body[data-gce-mode="light"] .crw-filter-select,
body[data-gce-mode="light"] .cert-search,
body[data-gce-mode="light"] .cert-search input,
body[data-gce-mode="light"] .cert-select,
body[data-gce-mode="light"] .sfty-input,
body[data-gce-mode="light"] .sfty-select,
body[data-gce-mode="light"] .sfty-filter-input,
body[data-gce-mode="light"] .sfty-filter-select,
body[data-gce-mode="light"] .sfty-search-input,
body[data-gce-mode="light"] .cal-search input,
body[data-gce-mode="light"] .dash-filter-select,
body[data-gce-mode="light"] .gce-auth-input-wrap input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-gce-mode="light"] .fin-search input,
body[data-gce-mode="light"] .cert-search input {
  color: #0f172a;
}

/* Buttons & chips */
body[data-gce-mode="light"] .fin-btn-outline,
body[data-gce-mode="light"] .fin-btn-icon,
body[data-gce-mode="light"] .fin-page-btn,
body[data-gce-mode="light"] .fin-action-btn,
body[data-gce-mode="light"] .cert-btn-outline,
body[data-gce-mode="light"] .cert-menu-btn,
body[data-gce-mode="light"] .cert-icon-btn,
body[data-gce-mode="light"] .cert-page-btn,
body[data-gce-mode="light"] .tsk-icon-btn,
body[data-gce-mode="light"] .tsk-menu-btn,
body[data-gce-mode="light"] .tsk-page-btn,
body[data-gce-mode="light"] .crw-page-btn,
body[data-gce-mode="light"] .crw-menu-btn,
body[data-gce-mode="light"] .sfty-icon-btn,
body[data-gce-mode="light"] .cal-icon-btn,
body[data-gce-mode="light"] .dash-icon-btn,
body[data-gce-mode="light"] .sfty-subtab,
body[data-gce-mode="light"] .sfty-audit-btn.secondary,
body[data-gce-mode="light"] .sfty-audit-yesno button,
body[data-gce-mode="light"] .cert-pill {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

body[data-gce-mode="light"] .dash-notif-badge,
body[data-gce-mode="light"] .gce-cn-unread-badge {
  box-shadow: 0 0 0 2px #ffffff;
}

html[data-gce-mode="dark"] .dash-notif-badge,
body[data-gce-mode="dark"] .dash-notif-badge,
html[data-gce-mode="dark"] .gce-cn-unread-badge,
body[data-gce-mode="dark"] .gce-cn-unread-badge {
  box-shadow: 0 0 0 2px #0b1220;
}

body[data-gce-mode="light"] .fin-btn-outline:hover,
body[data-gce-mode="light"] .cert-btn-outline:hover,
body[data-gce-mode="light"] .sfty-subtab:hover,
body[data-gce-mode="light"] .sfty-subtab.active {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}

/* Finance tabs — inactive/active labels must stay readable on light background */
html[data-gce-mode="light"] .fin-tab-btn,
body[data-gce-mode="light"] .fin-tab-btn {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
}
html[data-gce-mode="light"] .fin-tab-btn:hover,
body[data-gce-mode="light"] .fin-tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
html[data-gce-mode="light"] .fin-tab-btn.active,
body[data-gce-mode="light"] .fin-tab-btn.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: #93c5fd;
  color: #1d4ed8;
}

body[data-gce-mode="light"] .dash-user-chip,
body[data-gce-mode="light"] .sfty-user-chip,
body[data-gce-mode="light"] .cal-user-chip,
body[data-gce-mode="light"] .cert-user-chip,
body[data-gce-mode="light"] .fin-user-chip,
body[data-gce-mode="light"] .tsk-user-chip,
body[data-gce-mode="light"] .crw-user-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* Dashboard — pleasant light palette, high readability */
body[data-gce-mode="light"] .dash-topbar {
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

body[data-gce-mode="light"] .dash-topbar-title h2 {
  color: #1e293b;
}

body[data-gce-mode="light"] .dash-search-input {
  background: #f8fafc;
  border-color: #dbe3ee;
  color: #1e293b;
}

body[data-gce-mode="light"] .dash-search-input::placeholder {
  color: #94a3b8;
}

body[data-gce-mode="light"] .dash-search-input:focus {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body[data-gce-mode="light"] .dash-kpi-label {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-kpi-value {
  color: #0f172a;
}

body[data-gce-mode="light"] .dash-kpi-delta {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-kpi-delta.pos {
  color: #059669;
}

body[data-gce-mode="light"] .dash-kpi-delta.neg {
  color: #dc2626;
}

body[data-gce-mode="light"] .dash-kpi-delta.muted-delta {
  color: #94a3b8;
}

body[data-gce-mode="light"] .dash-kpi-icon-sites {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

body[data-gce-mode="light"] .dash-kpi-icon-done {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

body[data-gce-mode="light"] .dash-kpi-icon-crews {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

body[data-gce-mode="light"] .dash-kpi-icon-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

body[data-gce-mode="light"] .dash-ops-item,
body[data-gce-mode="light"] .dash-fleet-stat,
body[data-gce-mode="light"] .dash-crew-row,
body[data-gce-mode="light"] .dash-alert-item,
body[data-gce-mode="light"] .dash-search-kbd {
  background: #f8fafc;
  border-color: #e8edf4;
}

body[data-gce-mode="light"] .dash-ops-item--click:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body[data-gce-mode="light"] .dash-progress {
  background: #e2e8f0;
}

body[data-gce-mode="light"] .dash-range-select {
  background-color: #f8fafc;
  border-color: #dbe3ee;
  color: #475569;
}

body[data-gce-mode="light"] .dash-chart-legend {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-svg-label {
  fill: #64748b;
}

body[data-gce-mode="light"] .dash-util-inner {
  background: #ffffff;
  border-color: #e8edf4;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}

body[data-gce-mode="light"] .dash-util-inner b {
  color: #1e293b;
}

body[data-gce-mode="light"] .dash-util-inner small {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-util-legend > div {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-util-legend b {
  color: #1e293b;
}

body[data-gce-mode="light"] .dash-util-total {
  border-top-color: #e8edf4;
}

body[data-gce-mode="light"] .dash-util-donut {
  background: conic-gradient(
    #3b82f6 0 calc(var(--a) * 1%),
    #8b5cf6 calc(var(--a) * 1%) calc((var(--a) + var(--av)) * 1%),
    #10b981 calc((var(--a) + var(--av)) * 1%) calc((var(--a) + var(--av) + var(--o)) * 1%),
    #e8edf4 calc((var(--a) + var(--av) + var(--o)) * 1%) 100%
  );
}

body[data-gce-mode="light"] .dash-table th {
  color: #64748b;
  background: #f8fafc;
  border-bottom-color: #e8edf4;
}

body[data-gce-mode="light"] .dash-table td {
  color: #334155;
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"] .dash-row-click:hover {
  background: rgba(59, 130, 246, 0.06);
}

body[data-gce-mode="light"] .dash-pct-cell b {
  color: #64748b;
}

body[data-gce-mode="light"] .score-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.22);
}

body[data-gce-mode="light"] .dash-fleet-total {
  border-bottom-color: #e8edf4;
  color: #64748b;
}

body[data-gce-mode="light"] .dash-fleet-total b,
body[data-gce-mode="light"] .dash-fleet-row b {
  color: #1e293b;
}

body[data-gce-mode="light"] .dash-fleet-row {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-safety-stat {
  background: #f8fafc;
  border-color: #e8edf4;
}

body[data-gce-mode="light"] .dash-safety-stat b {
  color: #1e293b;
}

body[data-gce-mode="light"] .dash-safety-stat span {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-deadline-item {
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"] .dash-deadline-item span {
  color: #334155;
}

body[data-gce-mode="light"] .dash-deadline-item b {
  color: #2563eb;
}

body[data-gce-mode="light"] .dash-deadline-empty {
  color: #94a3b8;
}

body[data-gce-mode="light"] .dash-empty-row {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-page .pill.ok {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

body[data-gce-mode="light"] .dash-page .pill.warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

body[data-gce-mode="light"] .dash-page .pill.bad {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

body[data-gce-mode="light"] .dash-page .pill.blue {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

body[data-gce-mode="light"] .dash-toolbar {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-date-range {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

body[data-gce-mode="light"] .dash-week-nav {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

body[data-gce-mode="light"] .dash-week-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

body[data-gce-mode="light"] .dash-week-opt {
  color: #334155;
}

body[data-gce-mode="light"] .dash-week-opt--active {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

body[data-gce-mode="light"] .dash-kpi-icon-tasks {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

body[data-gce-mode="light"] .dash-kpi-icon-incidents {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

body[data-gce-mode="light"] .dash-kpi-icon-overdue {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

body[data-gce-mode="light"] .dash-user-avatar--solo {
  box-shadow: 0 0 0 2px #ffffff;
}

body[data-gce-mode="light"] .ai-briefing-bar {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border-color: #e9d5ff;
}

body[data-gce-mode="light"] .ai-briefing-bar-title b {
  color: #0f172a;
}

body[data-gce-mode="light"] .ai-brief-chip {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] button.ai-brief-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body[data-gce-mode="light"] .ai-chip--blue { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
body[data-gce-mode="light"] .ai-chip--orange { background: #fffbeb; border-color: #fde68a; color: #b45309; }
body[data-gce-mode="light"] .ai-chip--purple { background: #faf5ff; border-color: #e9d5ff; color: #7e22ce; }
body[data-gce-mode="light"] .ai-chip--green { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
body[data-gce-mode="light"] .ai-chip--teal { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }
body[data-gce-mode="light"] .ai-chip--ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

body[data-gce-mode="light"] .ai-ops-center {
  background: #ffffff;
  border-left-color: #e2e8f0;
  border-top-color: #e2e8f0;
}

body[data-gce-mode="light"] .ai-ops-center-head {
  background: #f5f3ff;
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"] .ai-ops-center-brand b,
body[data-gce-mode="light"] .ai-ops-greeting,
body[data-gce-mode="light"] .ai-ops-crew-row b,
body[data-gce-mode="light"] .ai-ops-row b {
  color: #0f172a;
}

body[data-gce-mode="light"] .ai-ops-greeting,
body[data-gce-mode="light"] .ai-ops-crew-row,
body[data-gce-mode="light"] .ai-ops-row {
  color: #64748b;
}

body[data-gce-mode="light"] .ai-ops-priority-row {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] .ai-ops-priority-row:hover:not(.ai-ops-priority-row--static) {
  background: #f1f5f9;
}

body[data-gce-mode="light"] .ai-ops-center-foot {
  border-top-color: #e2e8f0;
}

body[data-gce-mode="light"] .ai-ops-priority-buttons {
  border-top-color: #e2e8f0;
}

body[data-gce-mode="light"] .ai-ops-value--neg {
  color: #dc2626 !important;
}

body[data-gce-mode="light"] .dash-link-btn {
  color: #7c3aed;
}

body[data-gce-mode="light"] .dash-link-btn:hover {
  color: #6d28d9;
}

body[data-gce-mode="light"] .dash-panel-foot {
  border-top-color: #e8edf4;
}

body[data-gce-mode="light"] .dash-task-count {
  color: #0f172a;
}

body[data-gce-mode="light"] .dash-task-trend.pos {
  color: #047857;
}

body[data-gce-mode="light"] .dash-task-trend.neg {
  color: #b91c1c;
}

body[data-gce-mode="light"] .dash-task-trend.muted {
  color: #94a3b8;
}

body[data-gce-mode="light"] .dash-prog-purple {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}

body[data-gce-mode="light"] .dash-safety-grid--overview .dash-safety-stat small {
  color: #94a3b8;
}

body[data-gce-mode="light"] .dash-deadline-main b {
  color: #1e293b;
}

body[data-gce-mode="light"] .dash-deadline-main span {
  color: #64748b;
}

body[data-gce-mode="light"] .dash-deadline-main em {
  color: #94a3b8;
}

body[data-gce-mode="light"] .dash-svg-line-alarm {
  stroke: #9333ea;
}

body[data-gce-mode="light"] .dash-svg-dot-alarm {
  fill: #9333ea;
}

body[data-gce-mode="light"] .dash-util-donut--field {
  background: conic-gradient(
    #3b82f6 0 calc(var(--a) * 1%),
    #22c55e calc(var(--a) * 1%) calc((var(--a) + var(--av)) * 1%),
    #a855f7 calc((var(--a) + var(--av)) * 1%) calc((var(--a) + var(--av) + var(--o)) * 1%),
    #e2e8f0 calc((var(--a) + var(--av) + var(--o)) * 1%) 100%
  );
}

/* Safety & certs */
body[data-gce-mode="light"] .sfty-list-item,
body[data-gce-mode="light"] .sfty-issue-card,
body[data-gce-mode="light"] .sfty-doc-row,
body[data-gce-mode="light"] .sfty-audit-q,
body[data-gce-mode="light"] .sfty-audit-def-row,
body[data-gce-mode="light"] .sfty-audit-nav-item,
body[data-gce-mode="light"] .cert-crew-card,
body[data-gce-mode="light"] .cert-member-files,
body[data-gce-mode="light"] .cert-crew-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] .sfty-list-item:hover,
body[data-gce-mode="light"] .sfty-audit-nav-item:hover,
body[data-gce-mode="light"] .cert-crew-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* Certifications — light text on white panels (crew detail, members, files) */
body[data-gce-mode="light"] .cert-panel-head h3,
html[data-gce-mode="light"] body .cert-panel-head h3,
body[data-gce-mode="light"] .cert-crew-detail-head h3,
html[data-gce-mode="light"] body .cert-crew-detail-head h3 {
  color: #0f172a;
}

body[data-gce-mode="light"] .cert-member-files b,
html[data-gce-mode="light"] body .cert-member-files b,
body[data-gce-mode="light"] .cert-crew-card-head b,
html[data-gce-mode="light"] body .cert-crew-card-head b {
  color: #0f172a;
}

body[data-gce-mode="light"] .cert-member-files ul,
html[data-gce-mode="light"] body .cert-member-files ul {
  color: #64748b;
}

body[data-gce-mode="light"] .cert-import-hint,
html[data-gce-mode="light"] body .cert-import-hint {
  color: #64748b;
}

body[data-gce-mode="light"] .cert-import-hint code,
html[data-gce-mode="light"] body .cert-import-hint code {
  color: #1d4ed8;
  background: #eff6ff;
}

body[data-gce-mode="light"] .cert-muted-inline,
html[data-gce-mode="light"] body .cert-muted-inline {
  color: #64748b;
}

body[data-gce-mode="light"] .cert-empty,
html[data-gce-mode="light"] body .cert-empty {
  color: #64748b !important;
}

body[data-gce-mode="light"] .cert-table th,
html[data-gce-mode="light"] body .cert-table th {
  color: #64748b;
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"] .cert-member-cell b,
html[data-gce-mode="light"] body .cert-member-cell b,
body[data-gce-mode="light"] .cert-cell b,
html[data-gce-mode="light"] body .cert-cell b {
  color: #0f172a;
}

body[data-gce-mode="light"] .cert-member-cell small,
html[data-gce-mode="light"] body .cert-member-cell small,
body[data-gce-mode="light"] .cert-cell small,
html[data-gce-mode="light"] body .cert-cell small {
  color: #64748b;
}

body[data-gce-mode="light"] .cert-back-btn,
html[data-gce-mode="light"] body .cert-back-btn {
  color: #475569;
  border-color: #cbd5e1;
  background: #fff;
}

body[data-gce-mode="light"] .cert-back-btn:hover,
html[data-gce-mode="light"] body .cert-back-btn:hover {
  color: #0f172a;
  border-color: #94a3b8;
}

body[data-gce-mode="light"] .cert-btn-danger,
html[data-gce-mode="light"] body .cert-btn-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

body[data-gce-mode="light"] .cert-ring-bg,
html[data-gce-mode="light"] body .cert-ring-bg {
  stroke: #e2e8f0;
}

body[data-gce-mode="light"] .cert-ring-label,
html[data-gce-mode="light"] body .cert-ring-label {
  color: #0f172a;
}

body[data-gce-mode="light"] .cert-link-btn,
html[data-gce-mode="light"] body .cert-link-btn {
  color: #2563eb;
}

body[data-gce-mode="light"] .cert-crew-card-head small,
html[data-gce-mode="light"] body .cert-crew-card-head small,
body[data-gce-mode="light"] .cert-crew-card-meta,
html[data-gce-mode="light"] body .cert-crew-card-meta {
  color: #64748b;
}

body[data-gce-mode="light"] .cert-panel-head,
html[data-gce-mode="light"] body .cert-panel-head {
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"] .cert-cell--miss b,
html[data-gce-mode="light"] body .cert-cell--miss b {
  color: #64748b;
}

/* Safety Audit — light mockup */
body[data-gce-mode="light"] .sfty-audit-hero,
body[data-gce-mode="light"] .sfty-audit-form {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .sfty-audit-hero-title {
  color: #0f172a;
}

body[data-gce-mode="light"] .sfty-audit-status-pill--draft {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
}

body[data-gce-mode="light"] .sfty-audit-status-pill--submitted {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.3);
}

body[data-gce-mode="light"] .sfty-audit-meta-row {
  color: #64748b;
}

body[data-gce-mode="light"] .sfty-audit-meta-row b {
  color: #0f172a;
}

body[data-gce-mode="light"] .sfty-audit-config {
  border-top-color: #e2e8f0;
}

body[data-gce-mode="light"] .sfty-audit-config-field > span,
body[data-gce-mode="light"] .sfty-audit-field label,
body[data-gce-mode="light"] .sfty-audit-def-row h4 {
  color: #64748b;
}

body[data-gce-mode="light"] .sfty-audit-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-gce-mode="light"] .sfty-audit-part {
  background: #ffffff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .sfty-audit-part--open {
  border-color: #93c5fd;
  background: #f8fafc;
}

body[data-gce-mode="light"] .sfty-audit-part-head {
  color: #0f172a;
}

body[data-gce-mode="light"] .sfty-audit-part-head:hover {
  background: #f1f5f9;
}

body[data-gce-mode="light"] .sfty-audit-part--open .sfty-audit-part-head {
  color: #1d4ed8;
  background: #eff6ff;
}

body[data-gce-mode="light"] .sfty-audit-part-chevron,
body[data-gce-mode="light"] .sfty-audit-part-collapse {
  color: #64748b;
}

body[data-gce-mode="light"] .sfty-audit-part--open .sfty-audit-part-chevron,
body[data-gce-mode="light"] .sfty-audit-part--open .sfty-audit-part-collapse {
  color: #2563eb;
}

body[data-gce-mode="light"] .sfty-audit-part-count {
  background: #e2e8f0;
  color: #475569;
}

body[data-gce-mode="light"] .sfty-audit-part--open .sfty-audit-part-count {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

body[data-gce-mode="light"] .sfty-audit-part-body {
  border-top-color: #e2e8f0;
}

body[data-gce-mode="light"] .sfty-audit-q-label {
  color: #334155;
}

body[data-gce-mode="light"] .sfty-audit-radio {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body[data-gce-mode="light"] .sfty-audit-radio:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

body[data-gce-mode="light"] .sfty-audit-btn.secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

body[data-gce-mode="light"] .sfty-audit-btn.secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

body[data-gce-mode="light"] .sfty-subtab {
  color: #64748b;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .sfty-subtab:hover {
  background: #f8fafc;
  color: #0f172a;
}

body[data-gce-mode="light"] .sfty-subtab.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* Safety — Site Check-In (light theme) */
body[data-gce-mode="light"].gce-safety-mockup .sfty-page-head h2,
body[data-gce-mode="light"].gce-safety-mockup .sfty-card-head h3,
body[data-gce-mode="light"].gce-safety-mockup .sfty-detail-header h3,
body[data-gce-mode="light"].gce-safety-mockup .sfty-detail-section h4,
body[data-gce-mode="light"].gce-safety-mockup .sfty-issue-feature-head b,
body[data-gce-mode="light"].gce-safety-mockup .sfty-issue-head b,
body[data-gce-mode="light"].gce-safety-mockup .sfty-site-card-body b,
body[data-gce-mode="light"].gce-safety-mockup .sfty-info-grid b,
body[data-gce-mode="light"].gce-safety-mockup .sfty-quick-bar b,
body[data-gce-mode="light"].gce-safety-mockup .sfty-activity-item b,
body[data-gce-mode="light"].gce-safety-mockup .sfty-incident-main b {
  color: #0f172a;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-filter-input,
body[data-gce-mode="light"].gce-safety-mockup .sfty-filter-select,
body[data-gce-mode="light"].gce-safety-mockup .sfty-search-input,
body[data-gce-mode="light"].gce-safety-mockup #safety-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]),
body[data-gce-mode="light"].gce-safety-mockup #safety-main select,
body[data-gce-mode="light"].gce-safety-mockup #safety-main textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  color-scheme: light;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-filter-input:focus,
body[data-gce-mode="light"].gce-safety-mockup .sfty-filter-select:focus,
body[data-gce-mode="light"].gce-safety-mockup .sfty-search-input:focus {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-site-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-site-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-site-card.active {
  background: #eff6ff;
  border-color: #93c5fd;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-site-card-body small,
body[data-gce-mode="light"].gce-safety-mockup .sfty-subtitle,
body[data-gce-mode="light"].gce-safety-mockup .sfty-meta-tag,
body[data-gce-mode="light"].gce-safety-mockup .sfty-info-grid span,
body[data-gce-mode="light"].gce-safety-mockup .sfty-quick-bar span,
body[data-gce-mode="light"].gce-safety-mockup .sfty-issue-desc,
body[data-gce-mode="light"].gce-safety-mockup .sfty-issue-meta,
body[data-gce-mode="light"].gce-safety-mockup .sfty-muted,
body[data-gce-mode="light"].gce-safety-mockup .sfty-activity-item small,
body[data-gce-mode="light"].gce-safety-mockup .sfty-incident-main p,
body[data-gce-mode="light"].gce-safety-mockup .sfty-incident-main small {
  color: #64748b;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-detail-tab {
  color: #64748b;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-detail-tab:hover {
  color: #334155;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-detail-tab.active {
  color: #1d4ed8;
  border-bottom-color: #3b82f6;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-detail-header,
body[data-gce-mode="light"].gce-safety-mockup .sfty-detail-tabs,
body[data-gce-mode="light"].gce-safety-mockup .sfty-card-head {
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-issue-thumb {
  background: linear-gradient(135deg, #fef2f2, #f8fafc) !important;
  border-color: #fecaca !important;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-issue-card,
body[data-gce-mode="light"].gce-safety-mockup .sfty-incident-row {
  background: #ffffff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-link-btn {
  color: #2563eb;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-checkin-map {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-map-empty {
  color: #64748b;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-map-legend {
  color: #64748b;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-exports-table th {
  background: #f8fafc;
  color: #64748b;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-exports-table td {
  color: #334155;
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-text-ok {
  color: #15803d;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-text-bad {
  color: #dc2626;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-insp-item {
  color: #64748b;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-insp-item.done {
  color: #334155;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-insp-check {
  background: #f1f5f9;
  color: #64748b;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-insp-item.done .sfty-insp-check {
  background: rgba(16, 185, 129, 0.15);
  color: #15803d;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-photo-tile--mock {
  background: linear-gradient(135deg, #eff6ff, #f8fafc) !important;
  border: 1px solid #dbeafe;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-photo-tile-label,
body[data-gce-mode="light"].gce-safety-mockup .sfty-photo-tile-count {
  color: #334155;
}

body[data-gce-mode="light"].gce-safety-mockup .sfty-photo-tile-ts {
  color: #64748b;
}

/* Calendar */
body[data-gce-mode="light"] .cal-month-title,
body[data-gce-mode="light"] .cal-weekday--big b,
body[data-gce-mode="light"] .cal-day-view-title,
body[data-gce-mode="light"] .cal-panel-head h3,
body[data-gce-mode="light"] .cal-panel-section h4,
body[data-gce-mode="light"] .cal-stat b,
body[data-gce-mode="light"] .cal-day-list-body b {
  color: #0f172a;
}

body[data-gce-mode="light"] .cal-shell-card,
body[data-gce-mode="light"] .cal-toolbar.cal-shell-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .cal-main,
body[data-gce-mode="light"] .cal-panel,
body[data-gce-mode="light"] .cal-day,
body[data-gce-mode="light"] .cal-week-col,
body[data-gce-mode="light"] .cal-week-ev,
body[data-gce-mode="light"] .cal-sidebar-card,
body[data-gce-mode="light"] .cal-detail-card,
body[data-gce-mode="light"] .cal-day-list-item,
body[data-gce-mode="light"] .cal-stat {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] .cal-day--muted {
  background: #f8fafc;
}

body[data-gce-mode="light"] .cal-day--muted .cal-day-num {
  color: #94a3b8;
}

body[data-gce-mode="light"] .cal-day-num {
  color: #475569;
}

body[data-gce-mode="light"] .cal-day--today,
body[data-gce-mode="light"] .cal-week-col--today {
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px #3b82f6;
}

body[data-gce-mode="light"] .cal-day--selected,
body[data-gce-mode="light"] .cal-week-col--selected {
  background: #eef2ff;
  box-shadow: inset 0 0 0 2px #6366f1;
}

body[data-gce-mode="light"] .cal-week-row,
body[data-gce-mode="light"] .cal-week-head,
body[data-gce-mode="light"] .cal-week-row--plain,
body[data-gce-mode="light"] .cal-grid-head,
body[data-gce-mode="light"] .cal-week-col-head,
body[data-gce-mode="light"] .cal-weekday,
body[data-gce-mode="light"] .cal-panel-head,
body[data-gce-mode="light"] .cal-panel-tabs,
body[data-gce-mode="light"] .cal-panel-footer,
body[data-gce-mode="light"] .cal-legend {
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .cal-period-label {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body[data-gce-mode="light"] .cal-time-grid {
  background: #ffffff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .cal-time-corner,
body[data-gce-mode="light"] .cal-time-allday-label,
body[data-gce-mode="light"] .cal-time-gutter {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .cal-time-day-head {
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .cal-time-day-head b {
  color: #0f172a;
}

body[data-gce-mode="light"] .cal-time-day-head--today span,
body[data-gce-mode="light"] .cal-time-day-head--today b {
  color: #2563eb;
}

body[data-gce-mode="light"] .cal-time-allday-col,
body[data-gce-mode="light"] .cal-time-col {
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .cal-time-col {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 51px,
    #e2e8f0 51px,
    #e2e8f0 52px
  );
}

body[data-gce-mode="light"] .cal-time-col--today {
  background-color: #eff6ff;
}

body[data-gce-mode="light"] .cal-time-gutter-label {
  color: #64748b;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .cal-time-block b {
  color: #0f172a;
}

body[data-gce-mode="light"] .cal-time-block small,
body[data-gce-mode="light"] .cal-time-block-range {
  color: rgba(15, 23, 42, 0.72);
}

body[data-gce-mode="light"] .cal-month-select,
body[data-gce-mode="light"] .cal-nav-btn,
body[data-gce-mode="light"] .cal-btn-outline,
body[data-gce-mode="light"] .cal-view-toggle {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body[data-gce-mode="light"] .cal-nav-btn:hover,
body[data-gce-mode="light"] .cal-btn-outline:hover {
  background: #f8fafc;
  border-color: #93c5fd;
  color: #1e40af;
}

body[data-gce-mode="light"] .cal-view-btn {
  color: #64748b;
}

body[data-gce-mode="light"] .cal-view-btn.active {
  background: #eff6ff;
  color: #1d4ed8;
}

body[data-gce-mode="light"] .cal-view-btn:hover:not(.active) {
  color: #334155;
}

body[data-gce-mode="light"] .cal-panel-sub,
body[data-gce-mode="light"] .cal-panel-row span,
body[data-gce-mode="light"] .cal-panel-datetime,
body[data-gce-mode="light"] .cal-stat span,
body[data-gce-mode="light"] .cal-ev-text small,
body[data-gce-mode="light"] .cal-week-ev-body small,
body[data-gce-mode="light"] .cal-day-list-body small,
body[data-gce-mode="light"] .cal-muted,
body[data-gce-mode="light"] .cal-muted-inline,
body[data-gce-mode="light"] .cal-legend-item {
  color: #64748b;
}

body[data-gce-mode="light"] .cal-panel-row b,
body[data-gce-mode="light"] .cal-ev-item,
body[data-gce-mode="light"] .cal-ev-text b,
body[data-gce-mode="light"] .cal-week-ev,
body[data-gce-mode="light"] .cal-week-ev-body b {
  color: #334155;
}

body[data-gce-mode="light"] .cal-ev-item:hover,
body[data-gce-mode="light"] .cal-ev-item--sel,
body[data-gce-mode="light"] .cal-week-ev:hover,
body[data-gce-mode="light"] .cal-week-ev--sel,
body[data-gce-mode="light"] .cal-day-list-item:hover,
body[data-gce-mode="light"] .cal-day-list-item--sel {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

body[data-gce-mode="light"] .cal-panel-tab {
  color: #64748b;
}

body[data-gce-mode="light"] .cal-panel-tab.active {
  color: #1d4ed8;
  border-bottom-color: #3b82f6;
}

body[data-gce-mode="light"] .cal-panel-close {
  border-color: #e2e8f0;
  color: #64748b;
}

body[data-gce-mode="light"] .cal-panel-close:hover {
  background: #f8fafc;
  color: #334155;
}

body[data-gce-mode="light"] .cal-photo-thumb {
  background: linear-gradient(135deg, #eff6ff, #f8fafc) !important;
  border-color: #cbd5e1 !important;
}

body[data-gce-mode="light"] .cal-photo-more {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

body[data-gce-mode="light"] .cal-photo-add {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}

body[data-gce-mode="light"] .cal-photo-add:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

body[data-gce-mode="light"] .cal-note-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body[data-gce-mode="light"] .cal-note-card p {
  color: #334155;
}

body[data-gce-mode="light"] .cal-note-card small {
  color: #64748b;
}

body[data-gce-mode="light"] .cal-link-btn,
body[data-gce-mode="light"] .cal-map-link {
  color: #2563eb;
}

body[data-gce-mode="light"].gce-calendar-mockup .cal-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]),
body[data-gce-mode="light"].gce-calendar-mockup .cal-page textarea,
body[data-gce-mode="light"].gce-calendar-mockup .cal-page select,
body[data-gce-mode="light"] #cal-event-modal input,
body[data-gce-mode="light"] #cal-event-modal textarea,
body[data-gce-mode="light"] #cal-event-modal select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  color-scheme: light;
}

body[data-gce-mode="light"] #cal-event-modal input:focus,
body[data-gce-mode="light"] #cal-event-modal textarea:focus,
body[data-gce-mode="light"] #cal-event-modal select:focus {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

/* Finance extras */
body[data-gce-mode="light"] .fin-chart-footer,
body[data-gce-mode="light"] .fin-po-footer,
body[data-gce-mode="light"] .fin-po-toolbar,
body[data-gce-mode="light"] .cert-toolbar {
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .fin-expense-link {
  border-top-color: #e2e8f0;
  color: #2563eb;
}

body[data-gce-mode="light"] .fin-expense-link:hover {
  background: rgba(59, 130, 246, 0.06);
}

/* Settings */
body[data-gce-mode="light"] .stg-section-title,
body[data-gce-mode="light"] .stg-panel h4 {
  color: #0f172a;
}

body[data-gce-mode="light"] .stg-hint,
body[data-gce-mode="light"] .stg-row-val {
  color: #64748b;
}

body[data-gce-mode="light"] .stg-row-link {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] .stg-row-link:hover {
  background: #eff6ff;
}

body[data-gce-mode="light"] .stg-badge {
  background: #f1f5f9;
  color: #475569;
}

body[data-gce-mode="light"] .stg-mock-card,
body[data-gce-mode="light"] .stg-modal-panel {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .stg-mock-header h2,
body[data-gce-mode="light"] .stg-mock-card-head h3,
body[data-gce-mode="light"] .stg-nav-row-copy b,
body[data-gce-mode="light"] .stg-notif-copy b,
body[data-gce-mode="light"] .stg-int-name,
body[data-gce-mode="light"] .stg-role-stats b {
  color: #0f172a;
}

body[data-gce-mode="light"] .stg-btn-help {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] .stg-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Login page keeps its own light mockup styles */
body.gce-login-active,
body.gce-login-active .gce-auth-overlay {
  color: #1e293b !important;
}

/* Tabs */
body[data-gce-mode="light"] .tabs {
  background: rgba(255, 255, 255, 0.92);
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .tab {
  color: #475569;
}

body[data-gce-mode="light"] .tab.active {
  color: #ffffff;
}

/* Site detail — light palette, high contrast */
body[data-gce-mode="light"] .sdt-breadcrumb {
  color: #64748b;
}

body[data-gce-mode="light"] .sdt-breadcrumb .active {
  color: #334155;
}

body[data-gce-mode="light"] .sdt-page--mockup .sdt-btn-primary {
  background: #0052cc;
}

body[data-gce-mode="light"] .sdt-page--mockup .sdt-btn-primary:hover {
  background: #0047b3;
}

body[data-gce-mode="light"] .sdt-hero-icon {
  background: #0052cc;
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.18);
}

body[data-gce-mode="light"] .sdt-hero-bar {
  background: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-hero-bar span {
  background: #0052cc;
}

body[data-gce-mode="light"] .sdt-hero-profit {
  color: #047857 !important;
}

body[data-gce-mode="light"] .sdt-edit-btn {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

body[data-gce-mode="light"] .sdt-task-table-wrap {
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-task-table th {
  background: #f8fafc;
  color: #64748b;
}

body[data-gce-mode="light"] .sdt-task-table th,
body[data-gce-mode="light"] .sdt-task-table td {
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-task-pill--high {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

body[data-gce-mode="light"] .sdt-task-pill--med {
  background: rgba(250, 204, 21, 0.2);
  color: #a16207;
}

body[data-gce-mode="light"] .sdt-task-pill--low,
body[data-gce-mode="light"] .sdt-task-pill--done {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

body[data-gce-mode="light"] .sdt-task-pill--pending,
body[data-gce-mode="light"] .sdt-task-pill--progress {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

body[data-gce-mode="light"] .sdt-task-pill--overdue {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

body[data-gce-mode="light"] .sdt-view-all-tasks {
  color: #0052cc;
}

body[data-gce-mode="light"] .sdt-task-add-panel {
  border-color: #e2e8f0;
  background: #f8fafc;
}

body[data-gce-mode="light"] .sdt-task-add-input,
body[data-gce-mode="light"] .sdt-task-add-date,
body[data-gce-mode="light"] .sdt-task-add-priority {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list {
  border-top-color: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-item {
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-final-count {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-status--pending {
  color: #64748b;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-status--done {
  color: #047857;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-checkbox {
  border-color: #cbd5e1;
  background: #fff;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-date-input,
body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-inline-select {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-gce-mode="light"] .sdt-progress-wrap .site-completed-special-box {
  border-top-color: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-add-panel {
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-add-input {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-list-remove:hover {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
}

body[data-gce-mode="light"] .sdt-page--mockup .sdt-pill-status.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

body[data-gce-mode="light"] .sdt-page--mockup .sdt-hero,
body[data-gce-mode="light"] .sdt-page--mockup .sdt-fin-card,
body[data-gce-mode="light"] .sdt-page--mockup .sdt-tasks-card,
body[data-gce-mode="light"] .sdt-page--mockup .sdt-info-card {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .sdt-site-tab {
  background: #fff;
  border-color: #e2e8f0;
  color: #64748b;
}
body[data-gce-mode="light"] .sdt-site-tab.is-active {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}
body[data-gce-mode="light"] .sdt-fin-kpi,
body[data-gce-mode="light"] .sdt-fin-table-card {
  background: #fff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-vendor-badge {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.25);
}

body[data-gce-mode="light"] .sdt-kpi-po { color: #047857; background: rgba(16, 185, 129, 0.12); }
body[data-gce-mode="light"] .sdt-kpi-exp { color: #1d4ed8; background: rgba(37, 99, 235, 0.1); }
body[data-gce-mode="light"] .sdt-kpi-ded { color: #b45309; background: rgba(245, 158, 11, 0.12); }
body[data-gce-mode="light"] .sdt-kpi-profit { color: #047857; background: rgba(16, 185, 129, 0.12); }
body[data-gce-mode="light"] .sdt-kpi-margin { color: #6d28d9; background: rgba(124, 58, 237, 0.1); }
body[data-gce-mode="light"] .sdt-kpi-days { color: #1d4ed8; background: rgba(37, 99, 235, 0.1); }

body[data-gce-mode="light"] .sdt-aside-card h3,
body[data-gce-mode="light"] .sdt-timeline-card h3,
body[data-gce-mode="light"] .sdt-notes-head {
  color: #1e293b;
}

body[data-gce-mode="light"] .sdt-btn-outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

body[data-gce-mode="light"] .sdt-doc-row {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

body[data-gce-mode="light"] .sdt-doc-row b {
  color: #1e293b;
}

body[data-gce-mode="light"] .sdt-link-btn {
  color: #6d28d9;
}

body[data-gce-mode="light"] .sdt-timeline-line {
  background: #e2e8f0;
}

body[data-gce-mode="light"] .sdt-timeline-dot {
  background: #cbd5e1;
  border-color: #f1f5f9;
}

body[data-gce-mode="light"] .sdt-timeline-node--done .sdt-timeline-dot {
  background: #22c55e;
  border-color: rgba(34, 197, 94, 0.35);
}

body[data-gce-mode="light"] .sdt-page .sfty-card,
body[data-gce-mode="light"] .sdt-kpi.sfty-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

body[data-gce-mode="light"] .sdt-progress-wrap .progress-final-item.done,
body[data-gce-mode="light"] .progress-final-item.done {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

body[data-gce-mode="light"] .progress-final-date,
body[data-gce-mode="light"] .progress-final-select,
body[data-gce-mode="light"] .date-input,
body[data-gce-mode="light"] .notes-task-date,
body[data-gce-mode="light"] .notes-area,
body[data-gce-mode="light"] .notes-add-input,
body[data-gce-mode="light"] .progress-custom-input,
body[data-gce-mode="light"] #site-detail .notes-area,
body[data-gce-mode="light"] #site-detail input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]),
body[data-gce-mode="light"] #site-detail textarea,
body[data-gce-mode="light"] #site-detail select,
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]),
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page textarea,
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  color-scheme: light;
}

body[data-gce-mode="light"] .progress-final-date:focus,
body[data-gce-mode="light"] .progress-final-select:focus,
body[data-gce-mode="light"] .date-input:focus,
body[data-gce-mode="light"] .notes-task-date:focus,
body[data-gce-mode="light"] .notes-area:focus,
body[data-gce-mode="light"] .notes-add-input:focus,
body[data-gce-mode="light"] .progress-custom-input:focus,
body[data-gce-mode="light"] #site-detail input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body[data-gce-mode="light"] #site-detail textarea:focus,
body[data-gce-mode="light"] #site-detail select:focus,
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page textarea:focus,
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page select:focus {
  background: #ffffff !important;
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

body[data-gce-mode="light"] .notes-add-input::placeholder,
body[data-gce-mode="light"] .notes-area::placeholder,
body[data-gce-mode="light"] .progress-custom-input::placeholder,
body[data-gce-mode="light"] #site-detail input::placeholder,
body[data-gce-mode="light"] #site-detail textarea::placeholder,
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page input::placeholder,
body[data-gce-mode="light"].gce-site-detail-mockup .sdt-page textarea::placeholder {
  color: #94a3b8;
}

body[data-gce-mode="light"] .date-tab {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .date-tab label {
  color: #64748b;
}

body[data-gce-mode="light"] .progress-order-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

body[data-gce-mode="light"] .notes-complete-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .notes-complete-label {
  color: #334155;
}

body[data-gce-mode="light"] .notes-complete-row.done {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
}

body[data-gce-mode="light"] .progress-final-drag-handle {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

/* Sites management — light mode reinforcement */
body[data-gce-mode="light"].gce-sites-mockup .stm-page-head h2,
body[data-gce-mode="light"].gce-sites-mockup .stm-table-head h3,
body[data-gce-mode="light"].gce-sites-mockup .stm-aside-card h3,
body[data-gce-mode="light"].gce-sites-mockup .stm-kpi-value,
body[data-gce-mode="light"].gce-sites-mockup .stm-site-cell b {
  color: #0f172a;
}

body[data-gce-mode="light"].gce-sites-mockup .stm-search,
body[data-gce-mode="light"].gce-sites-mockup .stm-filter-select,
body[data-gce-mode="light"].gce-sites-mockup .stm-inline-select {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}

body[data-gce-mode="light"].gce-sites-mockup .stm-table th {
  background: transparent;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

body[data-gce-mode="light"].gce-sites-mockup .stm-table td {
  color: #334155;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 #e2e8f0;
}

body[data-gce-mode="light"].gce-sites-mockup .stm-table tbody tr.stm-row:last-child td {
  box-shadow: none;
}

body[data-gce-mode="light"].gce-sites-mockup .stm-row:hover td {
  background: #f8fafc !important;
}

body[data-gce-mode="light"].gce-sites-mockup .stm-btn-outline,
body[data-gce-mode="light"].gce-sites-mockup .stm-btn-ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #334155;
}

/* Sites — crew picker & inline selects (light) */
body[data-gce-mode="light"] .crew-picker-menu {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

body[data-gce-mode="light"] .crew-picker-search {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

body[data-gce-mode="light"] .crew-picker-search::placeholder {
  color: #94a3b8;
}

body[data-gce-mode="light"] .crew-picker-search:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body[data-gce-mode="light"] .crew-picker-option {
  color: #334155;
}

body[data-gce-mode="light"] .crew-picker-option:hover {
  background: #f8fafc;
}

body[data-gce-mode="light"] .crew-picker-option.active {
  background: #ecfdf5;
  color: #15803d;
}

body[data-gce-mode="light"] .crew-picker-option small {
  color: #64748b;
}

body[data-gce-mode="light"] .crew-picker-empty {
  color: #64748b;
}

body[data-gce-mode="light"] .crew-picker-btn {
  background: #fff;
  border-color: #bbf7d0;
  color: #15803d;
}

body[data-gce-mode="light"] .crew-picker-btn.unassigned {
  border-color: #fde68a;
  color: #b45309;
  background: #fffbeb;
}

body[data-gce-mode="light"] .crew-select {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}

body[data-gce-mode="light"] .crew-select.unassigned {
  border-color: #fde68a;
  color: #b45309;
  background: #fffbeb;
}

body[data-gce-mode="light"] .crew-select.assigned {
  border-color: #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}

body[data-gce-mode="light"] .status-select {
  border-color: #e2e8f0;
  background: #fff;
  color: #0f172a;
}

body[data-gce-mode="light"] .status-select.complete {
  border-color: #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}

body[data-gce-mode="light"] .status-select.construction {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

body[data-gce-mode="light"] .status-select.pending {
  border-color: #fed7aa;
  color: #c2410c;
  background: #fff7ed;
}

body[data-gce-mode="light"] .status-select.delay,
body[data-gce-mode="light"] .gce-sites-mockup .status-select.stm-inline-select.delay {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

body[data-gce-mode="light"] .status-select.ending,
body[data-gce-mode="light"] .gce-sites-mockup .status-select.stm-inline-select.ending {
  border-color: #e9d5ff;
  color: #7e22ce;
  background: #faf5ff;
}

body[data-gce-mode="light"] .status-select.hold,
body[data-gce-mode="light"] .gce-sites-mockup .status-select.stm-inline-select.hold {
  border-color: #fed7aa;
  color: #c2410c;
  background: #fff7ed;
}

body[data-gce-mode="light"] .status-select.overdue,
body[data-gce-mode="light"] .gce-sites-mockup .status-select.stm-inline-select.overdue {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

body[data-gce-mode="light"] .vendor-select {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}

body[data-gce-mode="light"] .vendor-select.unknown {
  border-color: #fde68a;
  color: #b45309;
  background: #fffbeb;
}

/* Responsive — light mode */
body[data-gce-mode="light"] .gce-mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.96);
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

body[data-gce-mode="light"] .gce-sidebar-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

body[data-gce-mode="light"].gce-nav-open .sidebar {
  box-shadow: 16px 0 48px rgba(15, 23, 42, 0.12);
}

/* Modals & unified forms — light mode (matches white app theme) */
body[data-gce-mode="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

body[data-gce-mode="light"] .modal {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1), 0 4px 16px rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

body[data-gce-mode="light"] .modal-head,
body[data-gce-mode="light"] .modal-actions {
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .modal-head h3,
body[data-gce-mode="light"] .modal-section > h3,
body[data-gce-mode="light"] .modal-excel-block h3,
body[data-gce-mode="light"] .modal-excel-block h4,
body[data-gce-mode="light"] .modal-body h3,
body[data-gce-mode="light"] .modal-body h4 {
  color: #0f172a;
}

body[data-gce-mode="light"] .modal .muted,
body[data-gce-mode="light"] .modal-body .muted {
  color: #64748b;
}

body[data-gce-mode="light"] .close-x {
  color: #64748b;
}

body[data-gce-mode="light"] .close-x:hover {
  color: #0f172a;
}

body[data-gce-mode="light"] .form-field label,
body[data-gce-mode="light"] .ai-field label,
body[data-gce-mode="light"] .member-add-field label,
body[data-gce-mode="light"] .manual-cds-card label {
  color: #64748b;
}

body[data-gce-mode="light"] .form-field input,
body[data-gce-mode="light"] .form-field select,
body[data-gce-mode="light"] .form-field textarea,
body[data-gce-mode="light"] .ai-field input,
body[data-gce-mode="light"] .ai-field select,
body[data-gce-mode="light"] .ai-field textarea,
body[data-gce-mode="light"] .member-add-field input,
body[data-gce-mode="light"] .member-add-field textarea,
body[data-gce-mode="light"] .crd-member-edit-input,
body[data-gce-mode="light"] .manual-cds-card input,
body[data-gce-mode="light"] .manual-cds-card select,
body[data-gce-mode="light"] .manual-cds-card textarea,
body[data-gce-mode="light"] .modal .stg-input {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

body[data-gce-mode="light"] .form-field input:focus,
body[data-gce-mode="light"] .form-field select:focus,
body[data-gce-mode="light"] .form-field textarea:focus,
body[data-gce-mode="light"] .ai-field input:focus,
body[data-gce-mode="light"] .ai-field select:focus,
body[data-gce-mode="light"] .ai-field textarea:focus,
body[data-gce-mode="light"] .member-add-field input:focus,
body[data-gce-mode="light"] .member-add-field textarea:focus,
body[data-gce-mode="light"] .crd-member-edit-input:focus,
body[data-gce-mode="light"] .manual-cds-card input:focus,
body[data-gce-mode="light"] .manual-cds-card select:focus,
body[data-gce-mode="light"] .manual-cds-card textarea:focus,
body[data-gce-mode="light"] .modal .stg-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body[data-gce-mode="light"] .modal-excel-block {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.28);
}

body[data-gce-mode="light"] .modal-excel-block--blue {
  background: rgba(59, 130, 246, 0.07);
  border-color: rgba(59, 130, 246, 0.28);
}

/* Support & Feature Requests modal — light mode */
body[data-gce-mode="light"] .stg-support-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .stg-support-item-head b {
  color: #0f172a;
}

body[data-gce-mode="light"] .stg-support-item-meta,
body[data-gce-mode="light"] .stg-support-empty {
  color: #64748b;
}

body[data-gce-mode="light"] .stg-support-item-body {
  color: #334155;
}

body[data-gce-mode="light"] .stg-support-form h4 {
  color: #0f172a;
}

body[data-gce-mode="light"] .stg-support-form .stg-field > span {
  color: #64748b;
}

body[data-gce-mode="light"] .stg-support-badge--open {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

body[data-gce-mode="light"] .stg-support-badge--progress {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

body[data-gce-mode="light"] .stg-support-badge--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

body[data-gce-mode="light"] .stg-support-badge--muted {
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
}

body[data-gce-mode="light"] .doc-upload-tile,
body[data-gce-mode="light"] .vehicle-doc-upload,
body[data-gce-mode="light"] .financial-doc-upload {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body[data-gce-mode="light"] .doc-upload-tile:hover,
body[data-gce-mode="light"] .vehicle-doc-upload:hover,
body[data-gce-mode="light"] .financial-doc-upload:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

body[data-gce-mode="light"] .doc-upload-icon,
body[data-gce-mode="light"] .vehicle-doc-icon {
  background: rgba(59, 130, 246, 0.12);
}

body[data-gce-mode="light"] .doc-upload-title,
body[data-gce-mode="light"] .vehicle-doc-title {
  color: #0f172a;
}

body[data-gce-mode="light"] .doc-upload-file,
body[data-gce-mode="light"] .vehicle-doc-file {
  color: #16a34a;
}

body[data-gce-mode="light"] .member-add-form,
body[data-gce-mode="light"] .crd-member-edit {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .finance-mini-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .finance-mini-card .label {
  color: #64748b;
}

body[data-gce-mode="light"] .finance-mini-card .value {
  color: #0f172a;
}

body[data-gce-mode="light"] .financial-ai-status {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

body[data-gce-mode="light"] .financial-ai-status.ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

body[data-gce-mode="light"] .financial-ai-status.warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

body[data-gce-mode="light"] .equipment-tile {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .equipment-tile label {
  color: #0f172a;
}

body[data-gce-mode="light"] .vehicle-detail-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .ai-preview-text {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

body[data-gce-mode="light"] .ai-confidence {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #15803d;
}

body[data-gce-mode="light"] .ai-confidence.warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #b45309;
}

body[data-gce-mode="light"] .ai-missing {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

body[data-gce-mode="light"] #po-list-modal .filter-bar {
  border-bottom-color: #e2e8f0;
}

body[data-gce-mode="light"] #po-list-modal table th {
  color: #64748b;
  background: #f8fafc;
}

body[data-gce-mode="light"] #po-list-modal table td {
  color: #334155;
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"] .modal .stg-integration-row {
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .modal .stg-hint {
  color: #64748b;
}

body[data-gce-mode="light"] .modal .btn.secondary {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
  box-shadow: none;
}

body[data-gce-mode="light"] .field-photo-reject-note {
  color: #b91c1c;
}

/* Add Crew wizard — light mode */
body[data-gce-mode="light"] .crew-wizard-step {
  color: #64748b;
}

body[data-gce-mode="light"] .crew-wizard-step.is-active {
  color: #6d28d9;
}

body[data-gce-mode="light"] .crew-wizard-step.is-active .crew-wizard-step-num {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

body[data-gce-mode="light"] .crew-wizard-step.is-done {
  color: #7c3aed;
}

body[data-gce-mode="light"] .crew-wizard-step-line {
  background: #e2e8f0;
}

body[data-gce-mode="light"] .crew-wizard-main {
  border-right-color: #e2e8f0;
}

body[data-gce-mode="light"] .crew-wizard-side {
  background: #f8fafc;
}

body[data-gce-mode="light"] .crew-wizard-section-head h4,
body[data-gce-mode="light"] .crew-wizard-dropzone-title,
body[data-gce-mode="light"] .crew-wizard-doc-title,
body[data-gce-mode="light"] .crew-wizard-members-count,
body[data-gce-mode="light"] .crew-wizard-side-members,
body[data-gce-mode="light"] .crew-wizard-summary-list dd {
  color: #0f172a;
}

body[data-gce-mode="light"] .crew-wizard-section-icon {
  background: rgba(124, 58, 237, 0.1);
}

body[data-gce-mode="light"] .crew-wizard-dropzone {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body[data-gce-mode="light"] .crew-wizard-dropzone.is-dragover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.06);
}

body[data-gce-mode="light"] .crew-wizard-members-card,
body[data-gce-mode="light"] .crew-wizard-doc-card,
body[data-gce-mode="light"] .crew-wizard-side-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .crew-wizard-doc-card.is-uploaded {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.28);
}

body[data-gce-mode="light"] .crew-wizard-member-line {
  color: #334155;
}

body[data-gce-mode="light"] .crew-wizard-template-link {
  color: #2563eb;
}

body[data-gce-mode="light"] .crew-wizard-template-link:hover {
  color: #1d4ed8;
}

body[data-gce-mode="light"] .crew-wizard-doc-card:not(.is-uploaded) .crew-wizard-doc-filename {
  color: #64748b;
}

body[data-gce-mode="light"] .crew-wizard-doc-filename {
  color: #16a34a;
}

body[data-gce-mode="light"] .crew-wizard-doc-icon {
  background: rgba(59, 130, 246, 0.1);
}

body[data-gce-mode="light"] .crew-wizard-doc-upload-btn {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

body[data-gce-mode="light"] .crew-wizard-summary-list > div {
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"] .crew-wizard-checklist li {
  color: #64748b;
}

body[data-gce-mode="light"] .crew-wizard-checklist li.is-done {
  color: #15803d;
}

body[data-gce-mode="light"] .crew-wizard-progress-meta #cw-progress-pct {
  color: #6d28d9;
}

body[data-gce-mode="light"] .crew-wizard-progress-bar {
  background: #e2e8f0;
}

body[data-gce-mode="light"] .crew-wizard-body {
  border-color: #e2e8f0;
}

@media (max-width: 900px) {
  body[data-gce-mode="light"] .crew-wizard-main {
    border-bottom-color: #e2e8f0;
  }
}

body[data-gce-mode="light"] .eq-page-head h2,
body[data-gce-mode="light"] .eq-kpi-value,
body[data-gce-mode="light"] .eq-list-title,
body[data-gce-mode="light"] .eq-detail-head h3,
body[data-gce-mode="light"] .eq-detail-hero h4,
body[data-gce-mode="light"] .eq-vehicle-top b {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-kpi-card,
body[data-gce-mode="light"] .eq-list-panel,
body[data-gce-mode="light"] .eq-detail-panel,
body[data-gce-mode="light"] .eq-recent-card,
body[data-gce-mode="light"] .eq-recent-empty,
body[data-gce-mode="light"] .eq-fleet-card,
body[data-gce-mode="light"] .eq-reg-review,
body[data-gce-mode="light"] .eq-section-card {
  background: #fff;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .eq-detail-panel-mock {
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-gce-mode="light"] .eq-kpi-sub,
body[data-gce-mode="light"] .eq-expense-total {
  color: #64748b;
}

body[data-gce-mode="light"] .eq-expense-total b,
body[data-gce-mode="light"] .eq-expense-amt,
body[data-gce-mode="light"] .eq-expense-body b,
body[data-gce-mode="light"] .eq-detail-grid > div b {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-detail-hero-mock {
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"] .eq-detail-actions {
  border-top-color: #f1f5f9;
}

body[data-gce-mode="light"] .eq-expense-row {
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"] .eq-badge-plate {
  background: #f1f5f9;
  color: #475569;
}

body[data-gce-mode="light"] .eq-fleet-page .eq-list-panel {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .eq-section-card {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .eq-exp-cat-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body[data-gce-mode="light"] .eq-exp-cat-chip b,
body[data-gce-mode="light"] .eq-exp-cat-cell {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-exp-cat-chip--total {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

body[data-gce-mode="light"] .eq-exp-cat-chip--total b {
  color: #6d28d9;
}

body[data-gce-mode="light"] .eq-exp-table th {
  color: #64748b;
  border-color: #e2e8f0;
  background: #f8fafc;
}

body[data-gce-mode="light"] .eq-exp-table td {
  color: #334155;
  border-color: #f1f5f9;
}

body[data-gce-mode="light"] .eq-kpi-trend--up {
  background: #dcfce7;
  color: #15803d;
}

body[data-gce-mode="light"] .eq-kpi-trend--down {
  background: #fee2e2;
  color: #b91c1c;
}

body[data-gce-mode="light"] .eq-exp-viewall {
  border-color: #e2e8f0;
  color: #7c3aed;
}

body[data-gce-mode="light"] .eq-fleet-row {
  color: #64748b;
  border-bottom-color: #f1f5f9;
}

body[data-gce-mode="light"] .eq-fleet-row b,
body[data-gce-mode="light"] .eq-empty-mock h4 {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-extract-checklist li {
  color: #64748b;
}

body[data-gce-mode="light"].gce-equipment-mockup .eq-subtitle,
body[data-gce-mode="light"].gce-equipment-mockup .eq-muted,
body[data-gce-mode="light"].gce-equipment-mockup .eq-side-label {
  color: #64748b;
}

body[data-gce-mode="light"].gce-equipment-mockup .eq-search input {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-kpi-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

body[data-gce-mode="light"] .eq-list-panel {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body[data-gce-mode="light"] .eq-dropzone {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05), rgba(255, 255, 255, 0.8));
}

body[data-gce-mode="light"] .eq-drop-icon-wrap {
  background: rgba(139, 92, 246, 0.1);
}

body[data-gce-mode="light"] .eq-extract-checklist {
  background: rgba(139, 92, 246, 0.04);
  border-color: #ede9fe;
}

body[data-gce-mode="light"] .eq-extract-checklist li {
  color: #475569;
}

body[data-gce-mode="light"] .eq-empty-truck {
  background: rgba(139, 92, 246, 0.08);
}


body[data-gce-mode="light"] .eq-dropzone {
  background: rgba(139, 92, 246, 0.06);
  border-color: #c4b5fd;
}

body[data-gce-mode="light"] .eq-dropzone h4 {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-btn-outline,
body[data-gce-mode="light"] .eq-btn-icon {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-search,
body[data-gce-mode="light"] .eq-select {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-vehicle-card:hover,
body[data-gce-mode="light"] .eq-vehicle-card.active {
  background: rgba(139, 92, 246, 0.08);
}

body[data-gce-mode="light"] .eq-kv-list > div b {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-reg-review {
  background: #fff;
  border-color: #ddd6fe;
}

body[data-gce-mode="light"] .eq-reg-review-head h4 {
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-reg-field input {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body[data-gce-mode="light"] .eq-reg-ai-status {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

body[data-gce-mode="light"] .eq-reg-ai-status.ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

body[data-gce-mode="light"] .eq-reg-ai-status.warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

/* Light shell — html is source of truth (body attribute may lag) */
html[data-gce-mode="light"] body {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
html[data-gce-mode="light"] body main {
  background: #f1f5f9 !important;
}
html[data-gce-mode="light"] body.gce-certs-mockup .cert-dash-panel,
html[data-gce-mode="light"] body.gce-certs-mockup .cert-dash-kpi,
html[data-gce-mode="light"] body.gce-certs-mockup .cert-dash-table-card,
html[data-gce-mode="light"] body.gce-certs-mockup .cert-dash-upload-progress {
  background: #fff !important;
  border-color: #e2e8f0 !important;
}

html[data-gce-mode="light"] body.gce-certs-mockup .cert-dash-head h1,
html[data-gce-mode="light"] body.gce-certs-mockup .cert-dash-table td b,
html[data-gce-mode="light"] body.gce-certs-mockup .cert-dash-cert-name {
  color: #0f172a !important;
}

html[data-gce-mode="light"] body.gce-certs-mockup main {
  background: #f1f5f9 !important;
}

html[data-gce-mode="light"] body.gce-dash-mockup,
html[data-gce-mode="light"] body.gce-sites-mockup,
html[data-gce-mode="light"] body.gce-crews-mockup,
html[data-gce-mode="light"] body.gce-finance-mockup,
html[data-gce-mode="light"] body.gce-equipment-mockup,
html[data-gce-mode="light"] body.gce-tasks-mockup,
html[data-gce-mode="light"] body.gce-calendar-mockup,
html[data-gce-mode="light"] body.gce-settings-mockup,
html[data-gce-mode="light"] body.gce-safety-mockup,
html[data-gce-mode="light"] body.gce-safety-dash-mockup,
html[data-gce-mode="light"] body.gce-certs-mockup,
html[data-gce-mode="light"] body.gce-site-detail-mockup,
html[data-gce-mode="light"] body.gce-crew-detail-mockup {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
html[data-gce-mode="light"] body.gce-sites-mockup,
html[data-gce-mode="light"] body.gce-sites-mockup main {
  background: #fff !important;
}
html[data-gce-mode="light"] body .sidebar,
html[data-gce-mode="light"] body .sidebar.sidebar--field {
  background: #fff !important;
  border-right-color: #e2e8f0 !important;
  backdrop-filter: none !important;
}
html[data-gce-mode="light"] body .nav--expert .nav-item {
  color: #6b7280 !important;
}
html[data-gce-mode="light"] body .nav--expert .nav-item:hover {
  color: #111827 !important;
  background: rgba(13, 148, 136, 0.08) !important;
  border-color: rgba(13, 148, 136, 0.16) !important;
}
html[data-gce-mode="light"] body .nav--expert .nav-item.active {
  color: #0f766e !important;
  background: rgba(13, 148, 136, 0.1) !important;
  border: 1px solid rgba(13, 148, 136, 0.22) !important;
  border-left: 3px solid #0d9488 !important;
  padding-left: 11px !important;
  box-shadow: none !important;
}
html[data-gce-mode="light"] body .nav--expert .nav-item.active .nav-icon {
  color: #0d9488 !important;
  background: rgba(13, 148, 136, 0.12) !important;
}
html[data-gce-mode="light"] body .brand--field h1 {
  color: #111827 !important;
}

/* Finance mockup — force readable text when html is light (body attr may lag) */
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-header h2,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-sites-panel-head h3,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-table-panel-head h3,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-site-idblock h4,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-table td,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-table td b,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-metrics div b,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-exp-data-row td,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-exp-data-row td b {
  color: #0f172a !important;
}
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-header p,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-table th,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-metrics div span,
html[data-gce-mode="light"] body.gce-finance-mockup .fin-mock-site-loc {
  color: #64748b !important;
}

/* === LIGHT THEME 10 (SaaS white + teal) === */
html[data-gce-mode="light"] body,
html[data-gce-mode="light"] body.gce-dash-mockup,
html[data-gce-mode="light"] body.gce-sites-mockup,
html[data-gce-mode="light"] body.gce-crews-mockup,
html[data-gce-mode="light"] body.gce-finance-mockup,
html[data-gce-mode="light"] body.gce-equipment-mockup,
html[data-gce-mode="light"] body.gce-tasks-mockup,
html[data-gce-mode="light"] body.gce-calendar-mockup,
html[data-gce-mode="light"] body.gce-settings-mockup,
html[data-gce-mode="light"] body.gce-safety-mockup,
html[data-gce-mode="light"] body.gce-safety-dash-mockup,
html[data-gce-mode="light"] body.gce-certs-mockup,
html[data-gce-mode="light"] body.gce-site-detail-mockup,
html[data-gce-mode="light"] body.gce-crew-detail-mockup {
  background: #f9fafb !important;
  color: #111827 !important;
  background-image: none !important;
}
html[data-gce-mode="light"] body main {
  background: #f9fafb !important;
}
html[data-gce-mode="light"] body .sidebar,
html[data-gce-mode="light"] body .sidebar.sidebar--field {
  background: #ffffff !important;
  border-right: 1px solid #e5e7eb !important;
}
html[data-gce-mode="light"] .card,
html[data-gce-mode="light"] .dash-kpi-card,
html[data-gce-mode="light"] .dash-card,
html[data-gce-mode="light"] .dash-panel,
html[data-gce-mode="light"] .panel,
html[data-gce-mode="light"] .stm-kpi,
html[data-gce-mode="light"] .tsk-card,
html[data-gce-mode="light"] .tsk-kpi,
html[data-gce-mode="light"] .tsk-table-card,
html[data-gce-mode="light"] .crw-card,
html[data-gce-mode="light"] .cal-card,
html[data-gce-mode="light"] .sfty-card,
html[data-gce-mode="light"] .cert-kpi-card,
html[data-gce-mode="light"] .fin-card,
html[data-gce-mode="light"] .fin-kpi-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: none !important;
}
html[data-gce-mode="light"] .dash-topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
}
html[data-gce-mode="light"] .btn,
html[data-gce-mode="light"] .btn-primary,
html[data-gce-mode="light"] .stm-btn-primary,
html[data-gce-mode="light"] .fin-btn-primary,
html[data-gce-mode="light"] .stg-btn-primary,
html[data-gce-mode="light"] .sdt-btn-primary,
html[data-gce-mode="light"] .dash-ai-btn {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.22) !important;
}
html[data-gce-mode="light"] .btn-outline,
html[data-gce-mode="light"] .stm-btn-outline,
html[data-gce-mode="light"] .fin-btn-outline {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: none !important;
}
html[data-gce-mode="light"] .progress > span,
html[data-gce-mode="light"] .stm-progress-fill,
html[data-gce-mode="light"] .dash-progress-fill,
html[data-gce-mode="light"] .prog-bar > i {
  background: linear-gradient(90deg, #0f766e, #0d9488) !important;
}
html[data-gce-mode="light"] .progress,
html[data-gce-mode="light"] .stm-progress-track {
  background: #e5e7eb !important;
}
html[data-gce-mode="light"] .pill.ok {
  background: #ecfdf5 !important;
  color: #059669 !important;
}
html[data-gce-mode="light"] .pill.warn {
  background: #fffbeb !important;
  color: #d97706 !important;
}
html[data-gce-mode="light"] .pill.bad {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}
html[data-gce-mode="light"] .pill.blue {
  background: rgba(13, 148, 136, 0.12) !important;
  color: #0f766e !important;
}
html[data-gce-mode="light"] .dash-search,
html[data-gce-mode="light"] .stm-search,
html[data-gce-mode="light"] input[type="search"] {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
}
html[data-gce-mode="light"] .logo.logo--tower {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.25) !important;
}
html[data-gce-mode="light"] .fin-mock-tab.active,
html[data-gce-mode="light"] .fin-mock-open-site,
html[data-gce-mode="light"] .fin-mock-btn-primary {
  color: #0f766e !important;
  border-color: rgba(13, 148, 136, 0.28) !important;
  background: rgba(13, 148, 136, 0.1) !important;
}
html[data-gce-mode="light"] .fin-mock-btn-primary {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #fff !important;
  border-color: transparent !important;
}
html[data-gce-mode="light"] table th,
html[data-gce-mode="light"] .stm-table th {
  color: #6b7280 !important;
}
html[data-gce-mode="light"] table td,
html[data-gce-mode="light"] .stm-table td {
  color: #111827 !important;
}
