/* Shared GLM appearance tokens. Original uses the existing per-component fallbacks. */
html[data-ui-theme="light"]{color-scheme:light!important;--theme-on-accent:#ffffff;--theme-on-warning:#ffffff;--theme-success:#196d40;--theme-success-tint:#e5f4e9;--theme-warning:#855300;--theme-warning-tint:#fff0d1;--theme-danger:#b02d3a;--theme-danger-tint:#ffecef;--theme-info:#245f9b;--theme-info-tint:#e8f1ff;--theme-instagram:#9d367b;--theme-nav-text:#eef6f2;--theme-nav-muted:#b1c6bd;--theme-page:#f3f6f5;--theme-surface:#ffffff;--theme-raised:#eaf0ed;--theme-text:#182e28;--theme-muted:#50655d;--theme-border:#c2d0c9;--theme-accent:#166e55;--theme-nav:#142e2b;--theme-accent-hover:#10533f;--theme-accent-tint:#e0f1e9;--theme-nav-selected:#2b5146;}
html[data-ui-theme="dark"]{color-scheme:dark!important;--theme-on-accent:#102c22;--theme-on-warning:#352002;--theme-success:#83d8a1;--theme-success-tint:#183829;--theme-warning:#efc279;--theme-warning-tint:#49371b;--theme-danger:#ff9aaa;--theme-danger-tint:#492633;--theme-info:#9ccaff;--theme-info-tint:#21364e;--theme-instagram:#eba1d3;--theme-nav-text:#eef3f8;--theme-nav-muted:#b1bfcc;--theme-page:#10171f;--theme-surface:#19232e;--theme-raised:#22313e;--theme-text:#eef3f8;--theme-muted:#b1bfcc;--theme-border:#3c5163;--theme-accent:#78d5b5;--theme-nav:#0c131b;--theme-accent-hover:#a3e6cf;--theme-accent-tint:#173d36;--theme-nav-selected:#243544;}
html[data-ui-theme="ocean"]{color-scheme:light!important;--theme-on-accent:#ffffff;--theme-on-warning:#ffffff;--theme-success:#196d40;--theme-success-tint:#e5f4e9;--theme-warning:#855300;--theme-warning-tint:#fff0d1;--theme-danger:#b02d3a;--theme-danger-tint:#ffecef;--theme-info:#245f9b;--theme-info-tint:#e8f1ff;--theme-instagram:#9d367b;--theme-nav-text:#eef6f2;--theme-nav-muted:#bbcee5;--theme-page:#f0f5fb;--theme-surface:#ffffff;--theme-raised:#e5eef8;--theme-text:#192e46;--theme-muted:#516681;--theme-border:#becce0;--theme-accent:#245e9b;--theme-nav:#132b47;--theme-accent-hover:#194674;--theme-accent-tint:#e3eefd;--theme-nav-selected:#274b74;}
html[data-ui-theme="sand"]{color-scheme:light!important;--theme-on-accent:#ffffff;--theme-on-warning:#ffffff;--theme-success:#196d40;--theme-success-tint:#e5f4e9;--theme-warning:#855300;--theme-warning-tint:#fff0d1;--theme-danger:#b02d3a;--theme-danger-tint:#ffecef;--theme-info:#245f9b;--theme-info-tint:#e8f1ff;--theme-instagram:#9d367b;--theme-nav-text:#eef6f2;--theme-nav-muted:#d6c4ae;--theme-page:#f8f4ec;--theme-surface:#fffcf6;--theme-raised:#efe8db;--theme-text:#382e25;--theme-muted:#73604d;--theme-border:#d1c3ad;--theme-accent:#84572d;--theme-nav:#342a24;--theme-accent-hover:#61401f;--theme-accent-tint:#f3e6d1;--theme-nav-selected:#594637;}

html[data-ui-theme]:not([data-ui-theme="original"]) body{background:var(--theme-page);color:var(--theme-text)}
html[data-ui-theme]:not([data-ui-theme="original"]) .shell>aside,
html[data-ui-theme]:not([data-ui-theme="original"]) .sp-sidebar{--theme-text:var(--theme-nav-text);--theme-muted:var(--theme-nav-muted);--theme-on-accent:var(--theme-nav-text);background:var(--theme-nav);color:var(--theme-nav-text)}
html[data-ui-theme]:not([data-ui-theme="original"]) .shell>aside nav button.selected,
html[data-ui-theme]:not([data-ui-theme="original"]) .shell>aside .company-icon,
html[data-ui-theme]:not([data-ui-theme="original"]) .sp-sidebar .active{background:var(--theme-nav-selected);color:var(--theme-nav-text)}
html[data-ui-theme]:not([data-ui-theme="original"]) main.login,
html[data-ui-theme]:not([data-ui-theme="original"]) .password-gate{background:var(--theme-page);color:var(--theme-text)}
html[data-ui-theme]:not([data-ui-theme="original"]) main.login .login-brand{color:var(--theme-text)}
html[data-ui-theme]:not([data-ui-theme="original"]) main.login h1 span{color:var(--theme-muted)}
html[data-ui-theme]:not([data-ui-theme="original"]) input,
html[data-ui-theme]:not([data-ui-theme="original"]) select,
html[data-ui-theme]:not([data-ui-theme="original"]) textarea{accent-color:var(--theme-accent)}
.ui-theme-control{display:flex;align-items:center;gap:8px}.ui-theme-control svg{flex:none}
.platform-theme{display:flex;align-items:center;gap:8px;font-size:12px;flex:none}
.platform-theme label{margin:0;font-size:11px;color:var(--text-secondary)}
.platform-theme select{min-height:34px;max-width:160px;border:1px solid var(--border);border-radius:8px;padding:5px 8px;background:var(--surface);color:var(--text-primary)}
.platform-theme [role="alert"]{color:var(--danger);max-width:230px}
@media(max-width:1100px){.platform-topbar .platform-theme label,.platform-topbar .platform-language label{display:none}.platform-topbar .topbar-context>strong{display:none}}
@media(max-width:600px){.platform-theme select{max-width:125px}.login-brand{flex-wrap:wrap}.platform-topbar .account-name{display:none}}

html[data-ui-theme]:not([data-ui-theme="original"]) .ui-language-bar{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-ui-theme]:not([data-ui-theme="original"]) .ui-language-bar select{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
