/* Shared chrome; each tool retains its own original DOM and local interaction code. */
html[data-theme="light"] body.dashboard-dark,
html[data-theme="light"] body.agent-dark,
html[data-theme="light"] body.automation-dark {background:var(--lp-page);color:var(--lp-ink);color-scheme:light}
html[data-theme="light"] .dashboard-window,
html[data-theme="light"] body.agent-dark .agent-demo,
html[data-theme="light"] body.automation-dark .qa-workbench {background:#fff;border-color:#cbd4de;box-shadow:0 9px 28px rgba(35,53,73,.055)}
html[data-theme="light"] body.dashboard-dark .dashboard-windowbar,
html[data-theme="light"] body.agent-dark .agent-windowbar,
html[data-theme="light"] body.automation-dark .qa-workbench-bar {background:linear-gradient(#f6f7f9,#edf0f4);border-color:#d2dae3;color:var(--lp-muted)}
html[data-theme="light"] body.dashboard-dark .dashboard-window-title,
html[data-theme="light"] body.agent-dark .agent-window-title,
html[data-theme="light"] body.automation-dark .qa-workbench-title {color:var(--lp-text)}
html[data-theme="light"] body.dashboard-dark .dashboard-sidebar {background:#f8fafc;border-color:var(--lp-line)}
html[data-theme="light"] body.dashboard-dark .dashboard-main {background:#fff}
html[data-theme="light"] body.dashboard-dark .dashboard-nav button.is-active {background:#eaf0f7;color:var(--lp-accent);border-color:#c5d4e3}
html[data-theme="light"] body.dashboard-dark .dashboard-nav button.is-active strong {color:var(--lp-accent)}
html[data-theme="light"] body.dashboard-dark .demo-notice {background:#f1f5f9;color:var(--lp-muted);border-color:#d8e1ea}
html[data-theme="light"] body.dashboard-dark .dashboard-logo {background:#e6eef6;color:var(--lp-accent)}
html[data-theme="light"] body.dashboard-dark :where(input,select,textarea) {color:var(--lp-ink);background-color:#fff;border-color:var(--lp-line-strong)}
/* Retain plot shapes and distinct series. There is no canvas or image inversion. */
html[data-theme="light"] body.dashboard-dark :where(.chart-card,.metric-card,.summary-card,.table-card,.report-card) {background:#fff;box-shadow:none}
html[data-theme="light"] body.dashboard-dark :where(.chart-axis text,.chart-label,.axis-label,.tick-label) {fill:var(--lp-muted);color:var(--lp-muted)}
html[data-theme="light"] body.dashboard-dark :where(table th) {background:#f0f4f8;color:#465a70;border-color:var(--lp-line)}
html[data-theme="light"] body.dashboard-dark :where(table td) {border-color:#e2e7ed}
html[data-theme="light"] body.dashboard-dark :where(tbody tr:hover) {background:#f7f9fb}
html[data-theme="light"] body.dashboard-dark :where(.is-positive,.positive,.trend-up) {color:var(--lp-green)}
html[data-theme="light"] body.dashboard-dark :where(.is-negative,.negative,.trend-down) {color:var(--lp-red)}
html[data-theme="light"] body.agent-dark .agent-window-content,
html[data-theme="light"] body.agent-dark .agent-command-panel {background:#fff}
html[data-theme="light"] body.agent-dark .agent-query {background:#fff;border-color:#b8c7d7}
html[data-theme="light"] body.agent-dark .agent-query:focus-within {border-color:var(--lp-accent);box-shadow:0 0 0 2px #3e638d14}
html[data-theme="light"] body.agent-dark .agent-query button {color:#fff;background:var(--lp-accent);border-color:var(--lp-accent)}
html[data-theme="light"] body.agent-dark .agent-query button:hover {color:#fff;background:#325478}
html[data-theme="light"] body.agent-dark .agent-ops-examples button {background:#f8fafc;border-color:var(--lp-line)}
html[data-theme="light"] body.agent-dark .agent-ops-examples button:hover,
html[data-theme="light"] body.agent-dark .agent-ops-examples button.is-active {background:var(--lp-accent-soft);border-color:#a6bad0}
html[data-theme="light"] body.agent-dark .ops-fix {background:#edf3f9;border-color:var(--lp-accent)}
html[data-theme="light"] body.agent-dark .agent-local-note,
html[data-theme="light"] body.agent-dark .ops-table-caption {color:var(--lp-muted)}
html[data-theme="light"] body.automation-dark .qa-code-window {background:#f9fbfd;border-color:var(--lp-line);box-shadow:none}
html[data-theme="light"] body.automation-dark .qa-code-toolbar,
html[data-theme="light"] body.automation-dark .qa-code-window footer {background:#f0f4f8;border-color:var(--lp-line)}
html[data-theme="light"] body.automation-dark .qa-code-window pre {background:#f9fbfd;color:#33485d}
html[data-theme="light"] body.automation-dark .qa-code-window code {color:#33485d}
html[data-theme="light"] body.automation-dark .qa-code-window code b {color:#715486}
html[data-theme="light"] body.automation-dark .qa-code-window code em {color:#35735d}
html[data-theme="light"] body.automation-dark .qa-demo-surface {background:#fff}
html[data-theme="light"] body.automation-dark :where(input,textarea,select) {background:#fff;color:var(--lp-ink);border-color:#b9c8d8}
html[data-theme="light"] body.automation-dark .qa-code-run,
html[data-theme="light"] body.automation-dark .qa-primary-button {color:#fff;background:var(--lp-accent);border-color:var(--lp-accent)}
html[data-theme="light"] body.automation-dark .qa-code-run:hover,
html[data-theme="light"] body.automation-dark .qa-primary-button:hover {color:#fff;background:#325478}
html[data-theme="light"] body.automation-dark .qa-secondary-button {color:var(--lp-accent);background:#edf3f9;border-color:#c3d2e2}
html[data-theme="light"] body.automation-dark .qa-tier-picker button {background:#fafbfd;border-color:var(--lp-line)}
html[data-theme="light"] body.automation-dark .qa-tier-picker button.is-selected {background:#eaf1f8;border-color:var(--lp-accent)}
html[data-theme="light"] body.automation-dark .qa-view-tabs [aria-selected="true"] {color:var(--lp-accent);border-color:var(--lp-accent)}
html[data-theme="light"] body.automation-dark .qa-review-tags [aria-pressed="true"] {color:var(--lp-accent);background:var(--lp-accent-soft);border-color:#bacde0}
html[data-theme="light"] body.automation-dark .qa-review-rating [aria-checked="true"] {color:var(--lp-amber)}
html[data-theme="light"] body.automation-dark :where(.qa-log,.qa-cart-counter,.qa-fingerprint-console,.qa-mock-browser,.qa-flow-browser) {background:#f7f9fc;border-color:var(--lp-line)}
html[data-theme="light"] body.automation-dark [data-qa-run-status][data-state="PASS"] {color:var(--lp-green)}
html[data-theme="light"] body.automation-dark [data-qa-run-status][data-state="FAIL"] {color:var(--lp-red)}
html[data-theme="light"] body.automation-dark :where(button,input,textarea,select):disabled {color:#697584;opacity:1;background:#edf0f4;border-color:#d8dfe7;cursor:not-allowed}
@media(prefers-reduced-motion:reduce) {
 html[data-theme] :where(.agent-query,.qa-code-run,.dashboard-toolbar button) {transition:none}
}
/* Small supporting metrics: expose the entire number and label, not ellipses. */
html[data-theme="light"] body.dashboard-dark .summary-card span,
html[data-theme="light"] body.dashboard-dark .summary-card strong,
html[data-theme="light"] body.dashboard-dark .summary-card small {
 white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere;
}
html[data-theme="light"] body.dashboard-dark .summary-card strong {line-height:1.2;margin-bottom:3px}
html[data-theme="light"] body.dashboard-dark .summary-card small {position:static;margin-bottom:8px}
html[data-theme="light"] body.dashboard-dark .summary-card::after {background:#6386ac}
@media(min-width:821px) {
 html[data-theme="light"] body.dashboard-dark .summary-grid {grid-template-columns:repeat(auto-fit,minmax(158px,1fr))}
 html[data-theme="light"] body.dashboard-dark .summary-card span {min-height:2.6em}
}
/* Preserve the familiar three Mac controls in every original window. */
html[data-theme="light"] .qa-window-lights i:nth-child(1) {background:#ff6059}
html[data-theme="light"] .qa-window-lights i:nth-child(2) {background:#ffbd2e}
html[data-theme="light"] .qa-window-lights i:nth-child(3) {background:#28c840}
