/* Tema global do CRM LPT. O tema escuro existente permanece como padrão. */
:root[data-theme="dark"]{color-scheme:dark}
:root[data-theme="light"]{
  color-scheme:light;
  --navy:#f8fafc;
  --ink:#17263b;
  --muted:#64748b;
  --line:#dbe4ef;
  --paper:#fff;
  --bg:#edf2f7;
  --workspace-card:#fff;
  --workspace-card-soft:#f8fafc;
  --workspace-line:#d8e2ee;
  --workspace-muted:#607086;
  --lpt-border:#d8e2ee;
  --lpt-surface:#f8fafc;
  --lpt-text:#17263b;
  --lpt-muted:#64748b;
}

.theme-picker{min-height:40px;border:1px solid #30415c;border-radius:9px;background:#111d34;color:#9fb0c8;padding:5px 8px 5px 10px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;box-shadow:none}
.theme-picker>span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.theme-picker select{height:28px;border:0;border-radius:6px;background:#1a2941;color:#f1f6ff;padding:0 26px 0 8px;cursor:pointer;font-size:12px;font-weight:700;outline:none}
.theme-picker:focus-within{border-color:#5986c8;box-shadow:0 0 0 3px rgba(89,134,200,.16)}
.global-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.login-theme-picker{position:absolute;top:22px;right:22px;z-index:2}

:root[data-theme="light"] body{background:#edf2f7;color:#17263b}
:root[data-theme="light"] .login-screen{background:radial-gradient(circle at 20% 15%,#cfe0ff 0,transparent 38%),linear-gradient(135deg,#eef4fb,#dfe9f6 65%,#cfddf0)}
:root[data-theme="light"] .login-card{background:#fff;color:#17263b;box-shadow:0 30px 80px rgba(44,62,88,.2)}
:root[data-theme="light"] .theme-picker{border-color:#cbd8e8;background:#fff;color:#52637a;box-shadow:0 4px 14px rgba(31,49,75,.08)}
:root[data-theme="light"] .theme-picker select{background:#edf3fa;color:#243a57}

:root[data-theme="light"] .sidebar{background:#f8fafc;color:#334155;border-right:1px solid #d8e2ee;box-shadow:5px 0 20px rgba(31,49,75,.05)}
:root[data-theme="light"] .brand strong,:root[data-theme="light"] .user strong{color:#17263b}
:root[data-theme="light"] .brand small,:root[data-theme="light"] .user small,:root[data-theme="light"] .main-navigation .area-navigation small{color:#64748b}
:root[data-theme="light"] .sidebar nav p{color:#8492a6}
:root[data-theme="light"] .sidebar nav button{color:#52637a}
:root[data-theme="light"] .sidebar nav button:hover,:root[data-theme="light"] .sidebar nav .nav-active{background:#e8f1ff;color:#1f56c8}
:root[data-theme="light"] .section-navigation{border-left-color:#d5dfeb}
:root[data-theme="light"] .collector{background:#edf5ff;border-color:#cadcf4}
:root[data-theme="light"] .collector strong{color:#263b57}
:root[data-theme="light"] .collector small{color:#64748b}

:root[data-theme="light"] .content{background:radial-gradient(circle at 72% -10%,#dceaff 0,transparent 31%),linear-gradient(145deg,#f5f8fc,#edf2f7 70%)}
:root[data-theme="light"] .content>header{background:rgba(248,250,252,.9);border-bottom:1px solid #d8e2ee}
:root[data-theme="light"] .content>header h1,:root[data-theme="light"] .executive-welcome h2,:root[data-theme="light"] .executive-date strong,:root[data-theme="light"] .executive-metrics strong,:root[data-theme="light"] .admin-summary strong,:root[data-theme="light"] .executive-panel h2,:root[data-theme="light"] .workspace-card h2,:root[data-theme="light"] .admin-workspace h2,:root[data-theme="light"] .admin-workspace h3{color:#17263b}
:root[data-theme="light"] .content>header>div>span,:root[data-theme="light"] .executive-welcome>div>span{color:#607086}
:root[data-theme="light"] .executive-welcome{background:linear-gradient(105deg,#fff,#f5f8fd 68%,#eef4fb);border-color:#d8e2ee}
:root[data-theme="light"] .executive-date{border-left-color:#d8e2ee}
:root[data-theme="light"] .executive-date small,:root[data-theme="light"] .executive-date span{color:#64748b}
:root[data-theme="light"] .executive-metrics article,:root[data-theme="light"] .admin-summary article,:root[data-theme="light"] .executive-panel,:root[data-theme="light"] .home-chart-card{background:#fff;border-color:#d8e2ee;color:#17263b;box-shadow:0 8px 24px rgba(31,49,75,.055)}
:root[data-theme="light"] .workspace-card{background:linear-gradient(145deg,#fff,#f4f8fd);border-color:#d8e2ee;color:#17263b;box-shadow:0 8px 24px rgba(31,49,75,.055)}
:root[data-theme="light"] .workspace-card.proxmox-card{box-shadow:inset 4px 0 var(--workspace-blue),0 8px 24px rgba(31,49,75,.055)}
:root[data-theme="light"] .workspace-card.admin-card{box-shadow:inset 4px 0 var(--workspace-red),0 8px 24px rgba(31,49,75,.055)}
:root[data-theme="light"] .workspace-stats strong,:root[data-theme="light"] .quick-links>button,:root[data-theme="light"] .admin-actions>button{color:#17263b}
:root[data-theme="light"] .workspace-tabs button.active{color:#17263b}
:root[data-theme="light"] .home-chart-head h3{color:#17263b}
:root[data-theme="light"] .home-chart-head small{color:#52637a}
:root[data-theme="light"] .home-health-track,:root[data-theme="light"] .home-demand-track{stroke:#d8e2ee}
:root[data-theme="light"] .home-health-num,:root[data-theme="light"] .home-demand-total{fill:#17263b}
:root[data-theme="light"] .home-health-label,:root[data-theme="light"] .home-demand-caption{fill:#64748b}
:root[data-theme="light"] .home-health-row{border-bottom-color:#d8e2ee}
:root[data-theme="light"] .home-health-row b,:root[data-theme="light"] .home-health-row em,:root[data-theme="light"] .home-mini-bar strong,:root[data-theme="light"] .home-demand-legend em,:root[data-theme="light"] .home-team-row b{color:#17263b}
:root[data-theme="light"] .home-health-row span,:root[data-theme="light"] .home-mini-bar>span,:root[data-theme="light"] .home-demand-legend button,:root[data-theme="light"] .home-team-row small,:root[data-theme="light"] .home-team-hours{color:#52637a}
:root[data-theme="light"] .home-demand-legend button:hover{color:#17263b}
:root[data-theme="light"] .home-mini-track,:root[data-theme="light"] .home-team-track{background:#d8e2ee}

:root[data-theme="light"] .metrics article,:root[data-theme="light"] .panel,:root[data-theme="light"] .loading{background:#fff;border-color:#d8e2ee;color:#17263b}
:root[data-theme="light"] .ring:after{background:#fff}
:root[data-theme="light"] table td,:root[data-theme="light"] table td strong{color:#334155}
:root[data-theme="light"] table td,:root[data-theme="light"] .alert{border-bottom-color:#e5ebf2}
:root[data-theme="light"] .secondary{background:#fff;border-color:#d8e2ee;color:#52637a}
:root[data-theme="light"] .maintenance-banner{background:#fff4dc;border-color:#e7ad51;color:#704512}
:root[data-theme="light"] .maintenance-banner strong{color:#9a5700!important}
:root[data-theme="light"] .maintenance-banner span{color:#704512!important}
:root[data-theme="light"] .maintenance-banner small{color:#7b5727!important}
:root[data-theme="light"] .maintenance-notice{background:#fff7e8;border-color:#e7ad51;color:#704512}
:root[data-theme="light"] .environment-actions button{background:#fff;color:#52637a;border-color:#cbd8e8}
:root[data-theme="light"] .environment-actions .maintenance-start{background:#fff7e8;color:#8d5200;border-color:#e7ad51}
:root[data-theme="light"] .environment-actions .maintenance-end{background:#b96900;color:#fff;border-color:#b96900}
:root[data-theme="light"] .modal textarea{background:#fff;color:#17263b;border-color:#cbd8e8;color-scheme:light}

:root[data-theme="light"] .demands-workspace,:root[data-theme="light"] .demands-toolbar h2{color:#17263b}
:root[data-theme="light"] .demands-toolbar p{color:#64748b}
:root[data-theme="light"] .demand-shell,:root[data-theme="light"] .demand-insights article,:root[data-theme="light"] .demand-kanban-col,:root[data-theme="light"] .demand-kanban-card{background:#fff!important;border-color:#d8e2ee!important;color:#334155!important}
:root[data-theme="light"] .demand-table th,:root[data-theme="light"] .kanban-toolbar,:root[data-theme="light"] .demand-kanban-col header{background:#f1f5f9!important;border-color:#d8e2ee!important;color:#52637a!important}
:root[data-theme="light"] .demand-table td,:root[data-theme="light"] .demand-table td strong,:root[data-theme="light"] .kanban-toolbar strong,:root[data-theme="light"] .demand-kanban-col h3,:root[data-theme="light"] .demand-kanban-card b{color:#17263b!important}
:root[data-theme="light"] .dm-priority-summary span{background:#edf2f7;color:#52637a!important}

/* Demandas e agenda possuem superficies proprias; mantenha todas legiveis nos temas claros. */
:root[data-theme="light"] .demand-metrics article,
:root[data-theme="light"] .dm-team-dashboard,
:root[data-theme="light"] .dm-team-grid article,
:root[data-theme="light"] .dm-calendar-shell,
:root[data-theme="light"] .dm-report-controls,
:root[data-theme="light"] .dm-report-kpis article,
:root[data-theme="light"] .dm-report-grid article,
:root[data-theme="light"] .dm-report-detail,
:root[data-theme="light"] .dm-completed-summary article,
:root[data-theme="light"] .dm-active-summary{background:#fff!important;border-color:#d8e2ee!important;box-shadow:0 8px 22px rgba(31,49,75,.05)}
:root[data-theme="light"] .demand-metrics small,
:root[data-theme="light"] .demand-metrics span,
:root[data-theme="light"] .demand-sub,
:root[data-theme="light"] .demand-empty p,
:root[data-theme="light"] .demand-insights small,
:root[data-theme="light"] .demand-insights article>span,
:root[data-theme="light"] .kanban-toolbar span,
:root[data-theme="light"] .demand-kanban-card small,
:root[data-theme="light"] .demand-kanban-card footer,
:root[data-theme="light"] .dm-ops-head small,
:root[data-theme="light"] .dm-team-grid header small,
:root[data-theme="light"] .dm-team-grid footer,
:root[data-theme="light"] .dm-client-hours,
:root[data-theme="light"] .dm-report-head span,
:root[data-theme="light"] .dm-report-controls>span,
:root[data-theme="light"] .dm-report-kpis small,
:root[data-theme="light"] .dm-report-kpis span,
:root[data-theme="light"] .dm-report-grid header span,
:root[data-theme="light"] .dm-chart-legend span,
:root[data-theme="light"] .dm-chart-legend button,
:root[data-theme="light"] .dm-line-legend,
:root[data-theme="light"] .dm-report-empty,
:root[data-theme="light"] .dm-report-detail header span,
:root[data-theme="light"] .dm-report-detail .demand-table td small,
:root[data-theme="light"] .dm-completed-summary small,
:root[data-theme="light"] .dm-completed-summary span,
:root[data-theme="light"] .dm-active-summary{color:#52637a!important}
:root[data-theme="light"] .demand-metrics strong,
:root[data-theme="light"] .demand-title,
:root[data-theme="light"] .demand-empty h3,
:root[data-theme="light"] .dm-ops-head strong,
:root[data-theme="light"] .dm-ops-kpis b,
:root[data-theme="light"] .dm-team-grid header b,
:root[data-theme="light"] .dm-member-stats b,
:root[data-theme="light"] .dm-client-hours>b,
:root[data-theme="light"] .dm-client-hours strong,
:root[data-theme="light"] .dm-report-head h2,
:root[data-theme="light"] .dm-report-kpis strong,
:root[data-theme="light"] .dm-report-grid h3,
:root[data-theme="light"] .dm-donut b,
:root[data-theme="light"] .dm-chart-legend em,
:root[data-theme="light"] .dm-chart-legend button em,
:root[data-theme="light"] .dm-bar-row b,
:root[data-theme="light"] .dm-report-detail h3,
:root[data-theme="light"] .dm-completed-summary strong,
:root[data-theme="light"] .dm-active-summary b{color:#17263b!important}
:root[data-theme="light"] .dm-member-stats .alert b,
:root[data-theme="light"] .dm-active-summary .danger b{color:#c62828!important}
:root[data-theme="light"] .dm-team-grid article.working footer{color:#087f5b!important}
:root[data-theme="light"] .dm-ops-kpis .sla-warn b{color:#9a6700!important}
:root[data-theme="light"] .dm-ops-kpis .sla-breach b,
:root[data-theme="light"] .dm-report-kpis .warn strong{color:#c2412d!important}
:root[data-theme="light"] .dm-report-kpis .good strong{color:#087f5b!important}
:root[data-theme="light"] .demand-view-tabs{border-bottom-color:#b8c6d8}
:root[data-theme="light"] .demand-view-tabs button{color:#52637a}
:root[data-theme="light"] .demand-view-tabs button:hover{color:#17263b}
:root[data-theme="light"] .demand-view-tabs button.active{color:#2563d9}
:root[data-theme="light"] .demand-filters{border-bottom-color:#d8e2ee}
:root[data-theme="light"] .demand-filters label{color:#52637a!important}
:root[data-theme="light"] .demand-filters input,
:root[data-theme="light"] .demand-filters select{background:#fff!important;border-color:#cbd8e8!important;color:#17263b!important;color-scheme:light}
:root[data-theme="light"] .demand-filters input::placeholder{color:#718096}
:root[data-theme="light"] .demand-table td{border-bottom-color:#d8e2ee}
:root[data-theme="light"] .demand-table tr:hover td,
:root[data-theme="light"] .demand-table-modern tbody tr:hover,
:root[data-theme="light"] .demand-table tbody tr[data-demand-id]:hover{background:#edf4fc!important}
:root[data-theme="light"] .dm-sort{color:#52637a!important}
:root[data-theme="light"] .dm-sort:hover{color:#17263b!important}
:root[data-theme="light"] .dm-sort i{background:#dce9f8;color:#2563d9}
:root[data-theme="light"] .dm-sort:not(.active) i{color:#64748b}
:root[data-theme="light"] .dm-member-stats span,
:root[data-theme="light"] .dm-ops-kpis span,
:root[data-theme="light"] .dm-client-hours span,
:root[data-theme="light"] .demand-kanban-col header b,
:root[data-theme="light"] .dm-active-summary span{background:#edf2f7!important;border-color:#cbd8e8!important;color:#52637a!important}
:root[data-theme="light"] .dm-active-summary .danger{background:#fce8e8!important;color:#a61b1b!important}
:root[data-theme="light"] .dm-team-grid header>span{background:#dce9f8;color:#245892}
:root[data-theme="light"] .dm-client-hours{border-top-color:#d8e2ee}

:root[data-theme="light"] .dm-calendar-toolbar,
:root[data-theme="light"] .dm-calendar-weekdays,
:root[data-theme="light"] .dm-week-day>header{background:#f1f5f9!important;border-color:#d8e2ee!important}
:root[data-theme="light"] .dm-calendar-toolbar h2,
:root[data-theme="light"] .dm-calendar-date,
:root[data-theme="light"] .dm-week-day>header b{color:#17263b!important}
:root[data-theme="light"] .dm-calendar-view-label,
:root[data-theme="light"] .dm-calendar-weekdays div,
:root[data-theme="light"] .dm-calendar-mode span,
:root[data-theme="light"] .dm-week-day>header small,
:root[data-theme="light"] .dm-week-events>p,
:root[data-theme="light"] .dm-calendar-unscheduled{color:#52637a!important}
:root[data-theme="light"] .dm-calendar-cell,
:root[data-theme="light"] .dm-week-day{background:#fff!important;border-color:#d8e2ee!important}
:root[data-theme="light"] .dm-calendar-cell.other-month,
:root[data-theme="light"] .dm-week-grid{background:#edf2f7!important}
:root[data-theme="light"] .dm-calendar-event{background:#f1f5f9;color:#17263b}
:root[data-theme="light"] .dm-calendar-event:hover{background:#e3edf8}
:root[data-theme="light"] .dm-calendar-event small{color:#52637a}
:root[data-theme="light"] .dm-calendar-mode button{background:#fff;border-color:#cbd8e8;color:#52637a}
:root[data-theme="light"] .dm-calendar-mode button.active{background:#2563eb;border-color:#2563eb;color:#fff}
:root[data-theme="light"] .dm-calendar-unscheduled,
:root[data-theme="light"] .dm-report-detail>header{border-color:#d8e2ee}
:root[data-theme="light"] .dm-report-controls label{color:#52637a}
:root[data-theme="light"] .dm-report-controls select,
:root[data-theme="light"] .dm-report-controls input{background:#fff;border-color:#cbd8e8;color:#17263b;color-scheme:light}
:root[data-theme="light"] .dm-donut:after{background:#fff}
:root[data-theme="light"] .dm-donut small,
:root[data-theme="light"] .dm-heatmap>b,
:root[data-theme="light"] .dm-heatmap>strong,
:root[data-theme="light"] .dm-bar-row{color:#52637a}
:root[data-theme="light"] .dm-bar-row>div{background:#d8e2ee}
:root[data-theme="light"] .dm-bar-row:hover{background:#edf4fc}
:root[data-theme="light"] .dm-bar-row:hover span{color:#17263b}
:root[data-theme="light"] .dm-heatmap>span{color:#17263b}

:root[data-theme="light"] .links-toolbar h2,:root[data-theme="light"] .link-card-head h3,:root[data-theme="light"] .link-detail-head h3,:root[data-theme="light"] .link-client-group>header h3,:root[data-theme="light"] .link-quality-summary b{color:#17263b}
:root[data-theme="light"] .links-toolbar span,:root[data-theme="light"] .link-card-head p,:root[data-theme="light"] .link-card-foot,:root[data-theme="light"] .link-detail-subtitle{color:#64748b}
:root[data-theme="light"] .links-summary article,:root[data-theme="light"] .link-card,:root[data-theme="light"] .link-detail-panel,:root[data-theme="light"] .link-charts article,:root[data-theme="light"] .link-incidents,:root[data-theme="light"] .link-quality-summary article,:root[data-theme="light"] .link-speed-actions{background:#fff;border-color:#d8e2ee;box-shadow:0 8px 22px rgba(31,49,75,.05)}
:root[data-theme="light"] .link-card-metrics span,:root[data-theme="light"] .link-mini-line{background:#f1f5f9;border-color:#d8e2ee}
:root[data-theme="light"] .link-card-metrics b,:root[data-theme="light"] .links-summary strong,:root[data-theme="light"] .link-speed-actions b{color:#17263b}
:root[data-theme="light"] .link-client-picker select{background:#fff;border-color:#cbd8e8;color:#17263b}
:root[data-theme="light"] .link-grid-line{stroke:#d8e2ee}
:root[data-theme="light"] .link-axis-text{fill:#64748b}

:root[data-theme="light"] .rustdesk-workspace,:root[data-theme="light"] .oncall-workspace{color:#17263b}
:root[data-theme="light"] .rd-metrics article,:root[data-theme="light"] .rd-panel,:root[data-theme="light"] .rustdesk-card,:root[data-theme="light"] .oncall-toolbar,:root[data-theme="light"] .oncall-summary article,:root[data-theme="light"] .oncall-board-head,:root[data-theme="light"] .oncall-grid,:root[data-theme="light"] .oncall-card,:root[data-theme="light"] .oncall-report-toolbar,:root[data-theme="light"] .oncall-report-kpis article,:root[data-theme="light"] .oncall-report-grid>article{background:#fff!important;border-color:#d8e2ee!important;color:#334155!important}
:root[data-theme="light"] .rustdesk-workspace h2,:root[data-theme="light"] .rustdesk-workspace h3,:root[data-theme="light"] .rd-metrics strong,:root[data-theme="light"] .rd-table td,:root[data-theme="light"] .rd-device-name,:root[data-theme="light"] .oncall-workspace h2,:root[data-theme="light"] .oncall-workspace h3,:root[data-theme="light"] .oncall-summary strong,:root[data-theme="light"] .oncall-date strong,:root[data-theme="light"] .oncall-person b,:root[data-theme="light"] .oncall-report-kpis strong{color:#17263b!important}
:root[data-theme="light"] .rd-table th{background:#edf2f7;color:#52637a}
:root[data-theme="light"] .rd-table td{border-color:#d8e2ee}
:root[data-theme="light"] .rd-muted,:root[data-theme="light"] .rd-toolbar p,:root[data-theme="light"] .rd-note,:root[data-theme="light"] .oncall-toolbar span,:root[data-theme="light"] .oncall-person small,:root[data-theme="light"] .oncall-notes{color:#64748b!important}
:root[data-theme="light"] .oncall-state,:root[data-theme="light"] .oncall-actions button,:root[data-theme="light"] .oncall-board-head button{background:#edf2f7;border-color:#cbd8e8;color:#334155}
:root[data-theme="light"] .oncall-report-toolbar input,:root[data-theme="light"] .oncall-report-toolbar select,:root[data-theme="light"] .oncall-report-toolbar button{background:#fff;border-color:#cbd8e8;color:#17263b}
:root[data-theme="light"] .oncall-report-table th{background:#edf2f7;color:#52637a}
:root[data-theme="light"] .oncall-report-table td{border-color:#d8e2ee;color:#334155}

/* Variante neutra: reaproveita o contraste do tema claro com superficies cinza. */
:root[data-theme-variant="gray"]{
  color-scheme:light;
  --navy:#343940;
  --ink:#22272e;
  --muted:#626a73;
  --line:#cbd0d6;
  --paper:#eef0f2;
  --bg:#d8dce0;
  --workspace-card:#eceff1;
  --workspace-card-soft:#e2e5e8;
  --workspace-line:#c5cbd1;
  --workspace-muted:#5f6872;
  --lpt-border:#c7ccd2;
  --lpt-surface:#e7e9ec;
  --lpt-text:#22272e;
  --lpt-muted:#626a73;
}
:root[data-theme-variant="gray"] body{background:#d8dce0;color:#22272e}
:root[data-theme-variant="gray"] .login-screen{background:radial-gradient(circle at 18% 12%,#f0f2f4 0,transparent 36%),linear-gradient(135deg,#c9ced3,#aeb5bc 70%,#969fa8)}
:root[data-theme-variant="gray"] .login-card,:root[data-theme-variant="gray"] .modal{background:#eef0f2;color:#22272e}
:root[data-theme-variant="gray"] .sidebar{background:#343940;color:#e7eaed;border-right-color:#4a5159}
:root[data-theme-variant="gray"] .brand strong,:root[data-theme-variant="gray"] .user strong{color:#fff}
:root[data-theme-variant="gray"] .brand small,:root[data-theme-variant="gray"] .user small,:root[data-theme-variant="gray"] .main-navigation .area-navigation small{color:#b8bec5}
:root[data-theme-variant="gray"] .sidebar nav p{color:#929aa3}
:root[data-theme-variant="gray"] .sidebar nav button{color:#c5cbd2}
:root[data-theme-variant="gray"] .sidebar nav button:hover,:root[data-theme-variant="gray"] .sidebar nav .nav-active{background:#4a5159;color:#fff}
:root[data-theme-variant="gray"] .collector{background:#40464e;border-color:#555d66}
:root[data-theme-variant="gray"] .collector strong{color:#f4f5f6}
:root[data-theme-variant="gray"] .collector small{color:#b8bec5}
:root[data-theme-variant="gray"] .content{background:radial-gradient(circle at 72% -10%,#edf0f2 0,transparent 30%),linear-gradient(145deg,#dfe2e5,#cfd4d8 72%)}
:root[data-theme-variant="gray"] .content>header{background:rgba(226,229,232,.92);border-bottom-color:#c2c8ce}
:root[data-theme-variant="gray"] .theme-picker{border-color:#bbc1c8;background:#e7e9ec;color:#555e68}
:root[data-theme-variant="gray"] .theme-picker select{background:#d2d6da;color:#262c33}
:root[data-theme-variant="gray"] .executive-welcome,:root[data-theme-variant="gray"] .workspace-card{background:linear-gradient(145deg,#f1f2f3,#e2e5e8);border-color:#c5cbd1}
:root[data-theme-variant="gray"] .executive-metrics article,:root[data-theme-variant="gray"] .admin-summary article,:root[data-theme-variant="gray"] .executive-panel,:root[data-theme-variant="gray"] .home-chart-card,:root[data-theme-variant="gray"] .metrics article,:root[data-theme-variant="gray"] .panel,:root[data-theme-variant="gray"] .loading,:root[data-theme-variant="gray"] .demand-shell,:root[data-theme-variant="gray"] .demand-insights article,:root[data-theme-variant="gray"] .demand-kanban-col,:root[data-theme-variant="gray"] .demand-kanban-card,:root[data-theme-variant="gray"] .links-summary article,:root[data-theme-variant="gray"] .link-card,:root[data-theme-variant="gray"] .link-detail-panel,:root[data-theme-variant="gray"] .link-charts article,:root[data-theme-variant="gray"] .link-incidents,:root[data-theme-variant="gray"] .link-quality-summary article,:root[data-theme-variant="gray"] .link-speed-actions,:root[data-theme-variant="gray"] .rd-metrics article,:root[data-theme-variant="gray"] .rd-panel,:root[data-theme-variant="gray"] .oncall-toolbar,:root[data-theme-variant="gray"] .oncall-summary article,:root[data-theme-variant="gray"] .oncall-board-head,:root[data-theme-variant="gray"] .oncall-grid,:root[data-theme-variant="gray"] .oncall-card,:root[data-theme-variant="gray"] .oncall-report-toolbar,:root[data-theme-variant="gray"] .oncall-report-kpis article,:root[data-theme-variant="gray"] .oncall-report-grid>article{background:#eceff1!important;border-color:#c5cbd1!important;box-shadow:0 8px 22px rgba(45,52,59,.07)}
:root[data-theme-variant="gray"] input,:root[data-theme-variant="gray"] select,:root[data-theme-variant="gray"] textarea,:root[data-theme-variant="gray"] .modal-actions button,:root[data-theme-variant="gray"] .secondary{background:#f7f8f9;border-color:#c5cbd1;color:#22272e}
:root[data-theme-variant="gray"] .link-card-metrics span,:root[data-theme-variant="gray"] .link-mini-line,:root[data-theme-variant="gray"] .dm-priority-summary span,:root[data-theme-variant="gray"] .oncall-state,:root[data-theme-variant="gray"] .oncall-actions button,:root[data-theme-variant="gray"] .oncall-board-head button{background:#dfe3e6;border-color:#c1c7cd;color:#30363d}
:root[data-theme-variant="gray"] .demand-metrics article,
:root[data-theme-variant="gray"] .dm-team-dashboard,
:root[data-theme-variant="gray"] .dm-team-grid article,
:root[data-theme-variant="gray"] .dm-calendar-shell,
:root[data-theme-variant="gray"] .dm-calendar-cell,
:root[data-theme-variant="gray"] .dm-week-day,
:root[data-theme-variant="gray"] .dm-report-controls,
:root[data-theme-variant="gray"] .dm-report-kpis article,
:root[data-theme-variant="gray"] .dm-report-grid article,
:root[data-theme-variant="gray"] .dm-report-detail,
:root[data-theme-variant="gray"] .dm-completed-summary article,
:root[data-theme-variant="gray"] .dm-active-summary{background:#eceff1!important;border-color:#c5cbd1!important}
:root[data-theme-variant="gray"] .dm-calendar-toolbar,
:root[data-theme-variant="gray"] .dm-calendar-weekdays,
:root[data-theme-variant="gray"] .dm-week-day>header,
:root[data-theme-variant="gray"] .dm-calendar-cell.other-month,
:root[data-theme-variant="gray"] .dm-week-grid,
:root[data-theme-variant="gray"] .dm-member-stats span,
:root[data-theme-variant="gray"] .dm-ops-kpis span,
:root[data-theme-variant="gray"] .dm-client-hours span,
:root[data-theme-variant="gray"] .demand-kanban-col header b,
:root[data-theme-variant="gray"] .dm-active-summary span{background:#dfe3e6!important;border-color:#c1c7cd!important}
:root[data-theme-variant="gray"] .demand-filters input,
:root[data-theme-variant="gray"] .demand-filters select,
:root[data-theme-variant="gray"] .dm-calendar-mode button,
:root[data-theme-variant="gray"] .dm-report-controls select,
:root[data-theme-variant="gray"] .dm-report-controls input{background:#f7f8f9!important;border-color:#c5cbd1!important}
:root[data-theme-variant="gray"] .dm-calendar-event{background:#e3e6e9}
:root[data-theme-variant="gray"] .dm-calendar-event:hover{background:#d8dde1}
:root[data-theme-variant="gray"] .dm-donut:after{background:#eceff1}

@media(max-width:760px){
  .theme-picker>span{display:none}
  .theme-picker{padding:5px}
  .login-theme-picker{top:14px;right:14px}
  .global-header-actions{align-self:flex-start}
}
@media(prefers-reduced-motion:no-preference){
  body,.sidebar,.content,.content>header,.login-screen,.login-card,.workspace-card,.executive-panel,.home-chart-card,.panel,.metrics article{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}
}
