/* =========================================================
   Guard Baseline Landing
   ========================================================= */
html[data-theme="light"] .landing-blurb,
html[data-theme="light"] .landing-visual,
html[data-theme="light"] .landing-features,
html[data-theme="light"] .landing-contact-card,
html[data-theme="light"] .landing-benefits-copy,
html[data-theme="light"] .landing-benefits-carousel-shell {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .landing-visual {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 36%),
    radial-gradient(circle at bottom left, rgba(2, 132, 199, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(244, 251, 255, 0.98));
}

html[data-theme="light"] .landing-visual-frame {
  background:
    linear-gradient(180deg, rgba(2, 132, 199, 0.03), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(2, 132, 199, 0.22);
}

html[data-theme="light"] .landing-visual-frame::before {
  border-color: rgba(2, 132, 199, 0.2);
}

html[data-theme="light"] .landing-features::before {
  background:
    radial-gradient(circle at top center, rgba(34, 197, 94, 0.12), transparent 42%),
    radial-gradient(circle at bottom right, rgba(2, 132, 199, 0.08), transparent 34%);
}

html[data-theme="light"] .landing-feature-card,
html[data-theme="light"] .landing-benefits-track .landing-feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.28) 34%, rgba(255, 255, 255, 0)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(242, 250, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(2, 132, 199, 0.08),
    0 0 0 1px rgba(2, 132, 199, 0.06),
    0 14px 22px rgba(2, 132, 199, 0.08),
    0 28px 44px rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .landing-benefits-carousel-shell::before {
  background:
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.1), transparent 38%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.08), transparent 30%);
}

html[data-theme="light"] .landing-benefits-track .landing-feature-card::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), transparent 26%),
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.08), transparent 32%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.08), transparent 30%);
}

html[data-theme="light"] .landing-carousel-indicator {
  border-color: rgba(2, 132, 199, 0.22);
  background: rgba(186, 230, 253, 0.28);
}

html[data-theme="light"] .landing-carousel-button {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0369a1;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .landing-carousel-button:hover {
  background: rgba(239, 246, 255, 1);
  border-color: rgba(2, 132, 199, 0.4);
  color: #075985;
}

html[data-theme="light"] .header-actions button:not(.btn-primary) {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0369a1;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .header-actions button:not(.btn-primary):hover {
  background: rgba(239, 246, 255, 1);
  border-color: rgba(2, 132, 199, 0.4);
  color: #075985;
}

html[data-theme="light"] .header-actions .btn-primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .header-actions .btn-primary:hover {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
}

html[data-theme="light"] .landing-carousel-indicator:hover {
  border-color: rgba(2, 132, 199, 0.42);
  background: rgba(125, 211, 252, 0.4);
}

html[data-theme="light"] .landing-carousel-indicator.is-active {
  background: rgba(2, 132, 199, 0.88);
  border-color: rgba(3, 105, 161, 0.95);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .landing-contact-band::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(239, 251, 246, 0.95), rgba(227, 246, 255, 0.9), rgba(239, 251, 246, 0.95));
}

html[data-theme="light"] .landing-contact-input {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.22);
  color: var(--text-main);
}

/* =========================================================
   Guard Baseline Index
   ========================================================= */
html[data-theme="light"] #partnerStats,
html[data-theme="light"] .client-select-card,
html[data-theme="light"] .client-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .client-header {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.98), rgba(240, 253, 250, 0.98) 42%, rgba(255, 255, 255, 0.99));
  border-bottom-color: rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .client-body,
html[data-theme="light"] .management-panel {
  border-top-color: rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .client-multiselect,
html[data-theme="light"] .tenant-card,
html[data-theme="light"] .tenant-table,
html[data-theme="light"] table,
html[data-theme="light"] #tenantSelect,
html[data-theme="light"] .client-form input,
html[data-theme="light"] .client-form select,
html[data-theme="light"] .ugr-table {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
  color: var(--text-main);
}

html[data-theme="light"] .tenant-table th,
html[data-theme="light"] .ugr-table th,
html[data-theme="light"] th {
  background: rgba(239, 246, 255, 0.98);
  color: var(--text-soft);
  border-color: rgba(2, 132, 199, 0.18);
  border-bottom-color: rgba(2, 132, 199, 0.14);
}

html[data-theme="light"] .tenant-table td,
html[data-theme="light"] .ugr-table td,
html[data-theme="light"] td {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-color: rgba(2, 132, 199, 0.14);
  border-bottom-color: rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .client-multiselect option {
  background: #ffffff;
  color: var(--text-main);
}

html[data-theme="light"] button {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-color: rgba(2, 132, 199, 0.22);
}

html[data-theme="light"] button:hover {
  background: rgba(239, 246, 255, 0.98);
  border-color: var(--accent-strong);
}

html[data-theme="light"] .btn-ghost {
  background: rgba(248, 252, 255, 0.98);
  color: var(--text-soft);
  border-color: rgba(2, 132, 199, 0.2);
}

html[data-theme="light"] .kpi-tag,
html[data-theme="light"] .client-meta,
html[data-theme="light"] .client-select-subtitle,
html[data-theme="light"] .client-select-hint,
html[data-theme="light"] .management-panel h3,
html[data-theme="light"] .toolbar label,
html[data-theme="light"] .status,
html[data-theme="light"] .empty,
html[data-theme="light"] .attention-list,
html[data-theme="light"] .form-hint,
html[data-theme="light"] .ugr-card-header {
  color: var(--text-soft);
}

html[data-theme="light"] .client-toggle,
html[data-theme="light"] .trend-pill {
  border-color: rgba(2, 132, 199, 0.22);
  color: var(--text-soft);
}

html[data-theme="light"] .trend-up {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.32);
}

html[data-theme="light"] .trend-stable {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

html[data-theme="light"] .trend-down {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.24);
}

/* =========================================================
   Tenant Reports Management
   ========================================================= */
html[data-theme="light"] body.tenant-reports-page {
  background: #ffffff;
}

html[data-theme="light"] body.tenant-reports-page .hamburger-header {
  background: linear-gradient(to right, rgba(220, 252, 231, 0.98) 0%, rgba(240, 253, 250, 0.98) 38%, rgba(255, 255, 255, 0.99) 72%);
}

html[data-theme="light"] .page-card {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .panel {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.22);
}

html[data-theme="light"] .panel h3 {
  background: #ffffff;
  color: var(--text-main);
  border-bottom-color: rgba(2, 132, 199, 0.18);
}

/* =========================================================
   Client Users / Manage Partner Users
   ========================================================= */
html[data-theme="light"] .attention-panel,
html[data-theme="light"] .ugr-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .attention-panel {
  border-color: rgba(2, 132, 199, 0.2);
}

html[data-theme="light"] .panel {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.22);
}

html[data-theme="light"] .panel h3 {
  background: rgba(239, 246, 255, 0.98);
  color: var(--text-main);
  border-bottom-color: rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .attention-title span.icon {
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--accent-strong);
  background: rgba(2, 132, 199, 0.1);
}

/* =========================================================
   Tenant Home
   ========================================================= */
html[data-theme="light"] .tenant-metrics-card,
html[data-theme="light"] .tenant-integrations-card,
html[data-theme="light"] .tenant-changes-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .tenant-switcher select,
html[data-theme="light"] .tenant-metrics-subtitle,
html[data-theme="light"] .tenant-metric-action {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
  color: var(--text-main);
}

html[data-theme="light"] .tenant-metric,
html[data-theme="light"] .tenant-integration-panel {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .tenant-changes-table-wrap,
html[data-theme="light"] .trend-modal-table-wrap {
  border-color: rgba(2, 132, 199, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .tenant-changes-table th,
html[data-theme="light"] .trend-modal-table th {
  background: rgba(239, 246, 255, 0.98);
  color: var(--text-soft);
  border-bottom-color: rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .tenant-changes-table td,
html[data-theme="light"] .trend-modal-table td {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-bottom-color: rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .trend-modal-backdrop {
  background: rgba(226, 232, 240, 0.72);
}

html[data-theme="light"] .trend-modal {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .trend-modal-close {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
  color: var(--text-main);
}

/* =========================================================
   Tenant Actions
   ========================================================= */
html[data-theme="light"] .tenant-metrics-card,
html[data-theme="light"] .tenant-changes-card,
html[data-theme="light"] .tenant-integrations-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .tenant-actions-overview-icon-wrap,
html[data-theme="light"] .tenant-action-stat,
html[data-theme="light"] .tenant-actions-status-pill {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
  color: var(--text-main);
}

html[data-theme="light"] .tenant-actions-filter-grid input,
html[data-theme="light"] .tenant-actions-filter-grid select {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
  color: var(--text-main);
}

html[data-theme="light"] .tenant-actions-table-wrap {
  border-color: rgba(2, 132, 199, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .tenant-actions-table thead th {
  background: rgba(239, 246, 255, 0.98);
  color: var(--text-soft);
  border-bottom-color: rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .tenant-actions-table td {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-bottom-color: rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .tenant-actions-feedback.is-error {
  color: #b91c1c;
}

html[data-theme="light"] .tenant-actions-feedback.is-success {
  color: #166534;
}

/* =========================================================
   Audit Users / Help Content
   ========================================================= */
html[data-theme="light"] .audit-card,
html[data-theme="light"] .help-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .audit-card-title,
html[data-theme="light"] .help-card-title,
html[data-theme="light"] .help-card-title-text {
  color: var(--text-main);
}

html[data-theme="light"] .audit-table-wrap,
html[data-theme="light"] .help-card-body,
html[data-theme="light"] .help-card-html {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .audit-table thead th {
  background: rgba(239, 246, 255, 0.98);
  color: var(--text-soft);
  border-bottom-color: rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] .audit-table td {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-bottom-color: rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .audit-action-btn {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0369a1;
}

html[data-theme="light"] .audit-action-btn:hover {
  background: rgba(239, 246, 255, 1);
  border-color: rgba(2, 132, 199, 0.4);
  color: #075985;
}

html[data-theme="light"] .help-card-summary,
html[data-theme="light"] .help-card-cmmc {
  color: var(--text-soft);
}

/* =========================================================
   Tenant Action Detail
   ========================================================= */
html[data-theme="light"] .tenant-action-detail-meta,
html[data-theme="light"] .tenant-action-detail-form label,
html[data-theme="light"] .tenant-action-detail-feedback {
  color: var(--text-soft);
}

html[data-theme="light"] .tenant-action-detail-form input,
html[data-theme="light"] .tenant-action-detail-form select,
html[data-theme="light"] .tenant-action-detail-form textarea {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
  color: var(--text-main);
}

html[data-theme="light"] .tenant-action-detail-form input[readonly] {
  background: rgba(239, 246, 255, 0.98);
}

html[data-theme="light"] .tenant-action-detail-feedback.is-error {
  color: #b91c1c;
}

html[data-theme="light"] .tenant-action-detail-feedback.is-success {
  color: #166534;
}

/* =========================================================
   Tenant User Reports Management
   ========================================================= */
html[data-theme="light"] body.tenant-user-reports-page .card,
html[data-theme="light"] body.tenant-user-reports-page .panel,
html[data-theme="light"] body.tenant-user-reports-page .subpanel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] body.tenant-user-reports-page .label,
html[data-theme="light"] body.tenant-user-reports-page .status,
html[data-theme="light"] body.tenant-user-reports-page .empty,
html[data-theme="light"] body.tenant-user-reports-page th {
  color: var(--text-soft);
}

html[data-theme="light"] body.tenant-user-reports-page .grid-form input,
html[data-theme="light"] body.tenant-user-reports-page .grid-form-inline input,
html[data-theme="light"] body.tenant-user-reports-page select {
  background: rgba(248, 252, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.18);
  color: var(--text-main);
}

html[data-theme="light"] body.tenant-user-reports-page .grid-form-inline {
  background: rgba(239, 246, 255, 0.98);
  border-bottom-color: rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] body.tenant-user-reports-page .panel h3,
html[data-theme="light"] body.tenant-user-reports-page .subpanel h4 {
  background: rgba(239, 246, 255, 0.98);
  color: var(--text-main);
  border-bottom-color: rgba(2, 132, 199, 0.16);
}

html[data-theme="light"] body.tenant-user-reports-page table {
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] body.tenant-user-reports-page td {
  color: var(--text-main);
  border-bottom-color: rgba(2, 132, 199, 0.12);
}
