/* Main app and legacy dashboard keep their palettes; standalone pages share tokens. */
html.ecomos-theme-standalone[data-theme="light"] {
  --bg:#f4f6fa;--panel:#fff;--panel2:#edf1f7;--panel-2:#edf1f7;
  --line:#d7deea;--tx:#192438;--tx-2:#52617a;--tx-3:#63718a;
  --mut:#52617a;--muted:#52617a;--dim:#63718a;--tx2:#52617a;--tx3:#63718a;--shadow:0 8px 28px rgba(25,36,56,.06);
  --amber:#9a5a00;--amber-soft:rgba(180,110,0,.09);
  --up:#087d52;--green:#087d52;--down:#bf3045;--red:#bf3045;--blue:#285fc0;
}
html.ecomos-theme-standalone[data-theme="light"] body{background:var(--bg);color:var(--tx)}
html.ecomos-theme-standalone[data-theme="light"] :is(.card,.panel,dialog,.drawerHead,.modal,.secret){background:var(--panel);color:var(--tx);border-color:var(--line);box-shadow:0 8px 28px rgba(25,36,56,.06)}
html.ecomos-theme-standalone[data-theme="light"] :is(.metric,.kpi,.queue,.purpose,.insightGuide,.demoBanner,.planCard,.receipt,.source){background:var(--panel2);border-color:var(--line)}
html.ecomos-theme-standalone[data-theme="light"] :is(input,select,textarea){background:var(--panel);color:var(--tx);border-color:var(--line)}
html.ecomos-theme-standalone[data-theme="light"] :is(td,th){border-color:var(--line)}
html.ecomos-theme-standalone[data-theme="light"] tr:hover td{background:rgba(40,95,192,.04)}
html[data-theme="light"] .shell>.side{background:rgba(255,255,255,.96)!important;border-color:#d7deea!important;box-shadow:1px 0 0 rgba(25,36,56,.04)}
html[data-theme="light"] .side :is(.brand,.nav-item:hover){color:#192438}
html[data-theme="light"] .side :is(.nav-item,.side-foot,.side-foot a,.nav-tag){color:#52617a}
html[data-theme="light"] .side .nav-item.is-on{color:#925500;background:rgba(245,165,36,.14);border-color:rgba(180,110,0,.24)}
html[data-theme="light"] .side .nav-item:hover{background:rgba(40,95,192,.06)}
html[data-theme="light"] :is(.ecomos-mobile-bar,.ecomos-mobile-nav-toggle,.ecomos-mobile-nav-close){background:#fff;color:#192438;border-color:#d7deea}
html[data-theme="light"] .ecomos-mobile-title strong{color:#192438}
html[data-theme="light"] .ecomos-mobile-title small{color:#52617a}
html.ecomos-theme-standalone[data-theme="light"] :is(.btn,button):not(.primary){background:var(--panel2);color:var(--tx)}
html.ecomos-theme-standalone[data-theme="light"] :is(.primary,.currentPill){background:#f5a524;color:#171003}
html.ecomos-theme-standalone[data-theme="light"] th{background:var(--panel2)}
html[data-theme="light"] :is(.ecomos-command,.ecomos-command-close,.ecomos-command-icon,.ecomos-command-trigger kbd,.ecomos-command-mobile){background:#fff;color:#192438;border-color:#d7deea}
html[data-theme="light"] :is(.ecomos-command-input,.ecomos-command-result,.ecomos-command-trigger){color:#192438}
html[data-theme="light"] .ecomos-command-copy small{color:#52617a}
html.ecomos-theme-standalone[data-theme="light"] :is(section,pre){background:var(--panel);border-color:var(--line)}
html.ecomos-theme-standalone[data-theme="light"] .muted{color:var(--muted)}
html.ecomos-theme-standalone[data-theme="light"] input{color-scheme:light}
html.ecomos-theme-standalone[data-theme="light"] select[style]{background-color:var(--panel)!important;color:var(--tx)!important;border-color:var(--line)!important}
html.ecomos-theme-standalone[data-theme="light"] :is(.card.fact,.lpCard,.methodNote,.executive,.tableCard,.hero,.feature,.actions){background:var(--panel);border-color:var(--line)}
