/* Shared semantic palettes: themes change presentation, never data or access. */
:root{--ot-sidebar:#272321;--ot-bar:#3f3733;--ot-bar-ink:#fff;--ot-search:#504640;--ot-header:#f0e6dc;--ot-header-ink:#3f332e;--ot-header-sub:#60504a;--ot-strong:#9b3043;--ot-accent:#9b3043;--ot-accent-hover:#7d2434;--ot-soft:#f6e8e9}
:root:not([data-theme=dark]){--ui-bg:#f5f1ec;--ui-surface:#fffdf9;--ui-soft:#f5efe7;--ui-ink:#272321;--ui-muted:#60504a;--ui-line:#e0d7ce;--ui-link:#822337;--ui-accent:#9b3043;--ui-font:"Segoe UI",SolaimanLipi,Arial,sans-serif;color-scheme:light}
:root[data-palette=signature]{--ot-sidebar:#171719;--ot-bar:#34343a;--ot-search:#414149;--ot-header:#414149;--ot-header-ink:#fff;--ot-header-sub:#e4e4ec;--ot-strong:#bd3444;--ot-accent:#bd3444;--ot-accent-hover:#a42c3a;--ot-soft:#fff1f3}
:root[data-palette=signature]:not([data-theme=dark]){--ui-bg:#f4f5f7;--ui-surface:#fff;--ui-soft:#f2f2f6;--ui-ink:#24242b;--ui-muted:#555561;--ui-line:#dedee6;--ui-link:#922037;--ui-accent:#bd3444}
:root[data-palette=pearl]{--ot-sidebar:#18191d;--ot-bar:#fafafb;--ot-bar-ink:#292932;--ot-search:#f1f1f5;--ot-header:#fafafb;--ot-header-ink:#24242b;--ot-header-sub:#555561;--ot-strong:#b92f43;--ot-accent:#b92f43;--ot-accent-hover:#9c2234;--ot-soft:#fff1f3}
:root[data-palette=pearl]:not([data-theme=dark]){--ui-bg:#f3f3f6;--ui-surface:#fff;--ui-soft:#f4f4f7;--ui-ink:#24242b;--ui-muted:#555561;--ui-line:#dedee6;--ui-link:#922037;--ui-accent:#b92f43}
:root[data-palette=graphite]{--ot-sidebar:#1f2024;--ot-bar:#f7f8fa;--ot-bar-ink:#272b33;--ot-search:#fff;--ot-header:#e4e6eb;--ot-header-ink:#272b33;--ot-header-sub:#515560;--ot-strong:#353941;--ot-accent:#b32e47;--ot-accent-hover:#93223a;--ot-soft:#fcecf0}
:root[data-palette=graphite]:not([data-theme=dark]){--ui-bg:#f0f1f4;--ui-surface:#fff;--ui-soft:#f1f2f5;--ui-ink:#272b33;--ui-muted:#515560;--ui-line:#d8dbe3;--ui-link:#94233b;--ui-accent:#b32e47}
/* Keep text readable even where older module styles hard-code blue chrome. */
html:not([data-theme=dark]) body.orbit-app:not(.personal-color-sidebar) .app-sidebar{background:var(--ot-sidebar)!important;border-color:#ffffff26}
html:not([data-theme=dark]) body.orbit-app:not(.personal-color-sidebar) .app-sidebar :is(.app-sidebar-identity,.app-desktop-profile){background:transparent!important;border-color:#ffffff32!important;color:#fff!important}
html:not([data-theme=dark]) body.orbit-app .app-sidebar :is(.app-profile-copy strong,.app-profile-copy small,.app-profile-copy span,.app-nav-group,summary.app-nav-group){color:#f0e7df!important}
html:not([data-theme=dark]) body.orbit-app .app-sidebar nav a{color:#f0e7df;border-color:transparent}
html:not([data-theme=dark]) body.orbit-app .app-sidebar nav a[aria-current]{background:var(--ot-accent)!important;color:#fff!important;border-color:#ffffff4d}
html:not([data-theme=dark]) body.orbit-app .app-sidebar nav a:hover{background:#ffffff15;color:#fff}
html:not([data-theme=dark]) body.orbit-app .app-sidebar-brand img{filter:url('/ssr-logo-theme.svg#ssr-dark-ink')!important}
html:not([data-theme=dark]):not([data-palette=pearl]):not([data-palette=graphite]) body.orbit-app .app-mobile-logo img{filter:url('/ssr-logo-theme.svg#ssr-dark-ink')!important}
html:not([data-theme=dark]) body.orbit-app:not(.personal-color-header) :is(.app-header.app-header,.app-mobile-top){background:var(--ot-bar)!important;color:var(--ot-bar-ink)!important;border-bottom-color:var(--ot-accent)!important}
html:not([data-theme=dark]) body.orbit-app:not(.personal-color-header) .app-header.app-header :is(.app-search,.app-search input){background:var(--ot-search)!important;color:var(--ot-bar-ink)!important;border-color:#88807b!important}
html:not([data-theme=dark]) body.orbit-app:not(.personal-color-header) .app-header.app-header .app-search input::placeholder{color:var(--ot-bar-ink)!important;opacity:1}
html:not([data-theme=dark]) body.orbit-app:not(.personal-color-header) :is(.app-header-actions,.app-mobile-top) :is(.app-header-action,.app-signout,.app-preferences button,.app-scope-trigger,.app-icon-button){background:var(--ot-bar)!important;color:var(--ot-bar-ink)!important;border-color:#88807b!important}
html:not([data-theme=dark]) body.orbit-app:not(.personal-color-header) .app-header.app-header .app-scope-trigger{background:var(--ot-bar)!important;color:var(--ot-bar-ink)!important;border-color:#88807b!important}
html:not([data-theme=dark]) body.orbit-app :is(.app-avatar,.app-mobile-top .app-avatar){background:var(--ot-accent)!important;color:#fff}
html:not([data-theme=dark]) body:not(.personal-color-boxes):not(.personal-color-sections) #dashboard-boxes-grid :is(.dbx-card,.lf-approvals,.lf-fuel-summary)>header,
html:not([data-theme=dark]) body:not(.personal-color-boxes):not(.personal-color-sections) #dashboard-boxes-grid .summary-header{background:var(--ot-header)!important;color:var(--ot-header-ink)!important;border-bottom-color:var(--ui-line)!important}
html:not([data-theme=dark]) body:not(.personal-color-boxes):not(.personal-color-sections) #dashboard-boxes-grid header :is(h2,h3,.dbx-standard-icon,.summary-icon){color:var(--ot-header-ink)!important}
html:not([data-theme=dark]) body:not(.personal-color-boxes):not(.personal-color-sections) #dashboard-boxes-grid header :is(small,p){color:var(--ot-header-sub)!important}
html:not([data-theme=dark]) body:not(.personal-color-boxes):not(.personal-color-sections) #dashboard-boxes-grid :is(.dbx-account-card,.lf-approvals)>header{background:var(--ot-strong)!important;color:#fff!important}
html:not([data-theme=dark]) body:not(.personal-color-boxes):not(.personal-color-sections) #dashboard-boxes-grid :is(.dbx-account-card,.lf-approvals)>header :is(h2,h3,small,p,svg,.dbx-standard-icon){color:#fff!important}
html:not([data-theme=dark]) #dashboard-boxes-grid :is(footer>a,.summary-footer button){background:var(--ot-accent)!important;color:#fff!important;border-color:var(--ot-accent)!important}
html:not([data-theme=dark]) .orbit-app :is(.app-primary-link,#dbx-personal-toggle,.orbit-theme-panel button.primary){background:var(--ot-accent)!important;color:#fff!important;border-color:var(--ot-accent)!important}
html:not([data-theme=dark]) #dashboard-boxes-grid .dashboard-scrollbar{background:var(--ui-soft);border-color:var(--ui-line)}
html:not([data-theme=dark]) #dashboard-boxes-grid .dashboard-scrollbar-thumb{background:#82746b}
html:not([data-theme=dark]) #dashboard-boxes-grid .dashboard-scrollbar:hover .dashboard-scrollbar-thumb{background:var(--ot-accent)}
html:not([data-theme=dark]) .orbit-app .app-bottom-nav [aria-current]{color:var(--ui-link)!important;background:var(--ot-soft)}
html:not([data-theme=dark]) #orbit-agent{--agent-accent:var(--ot-accent)}
html:not([data-theme=dark]) #orbit-agent #agent-launcher{background:var(--ot-accent)!important;color:#fff!important}
.orbit-theme-panel{padding:20px;margin:16px 0 24px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);color:var(--ui-ink);max-width:100%;box-sizing:border-box}
.orbit-theme-panel>header{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}.orbit-theme-panel h2{margin:0;font-size:21px}.orbit-theme-panel p{margin:6px 0;color:var(--ui-muted);line-height:1.6}.orbit-theme-icon{background:var(--ui-soft);color:var(--ui-link);font-size:26px;line-height:1;padding:10px;border-radius:9px}
.orbit-theme-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:760px}.orbit-theme-fields label{display:grid;gap:6px;min-width:0;font-weight:600;margin:0!important;align-content:start}.orbit-theme-fields select{width:100%;min-width:0;min-height:44px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-surface);color:var(--ui-ink);font:inherit}
.orbit-theme-swatches{display:flex;gap:7px;margin:16px 0 8px}.orbit-theme-swatches i{height:28px;width:54px;border:1px solid var(--ui-line);border-radius:5px}.orbit-theme-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.orbit-theme-actions button{min-height:44px;padding:9px 14px;border-radius:7px;border:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-ink);cursor:pointer;font:inherit;font-weight:600}.orbit-theme-actions button.primary{background:var(--ui-accent);color:#fff}.orbit-theme-actions button:disabled{opacity:.65;cursor:wait}.orbit-theme-panel :is(select,button):focus-visible{outline:3px solid var(--ui-link);outline-offset:2px}.orbit-theme-panel [data-theme-status]{min-height:25px;font-weight:600;color:var(--ui-ink);overflow-wrap:anywhere}
@media(max-width:600px){.orbit-theme-panel{padding:15px}.orbit-theme-fields{grid-template-columns:minmax(0,1fr);gap:12px}.orbit-theme-panel h2{font-size:19px}.orbit-theme-fields select{font-size:16px}.orbit-theme-actions button{flex:1 1 140px}}
/* Customizable section headings occupy their own row above the quick links. */
.orbit-app .admin-v2-quick{display:block}
.orbit-app .admin-v2-quick>nav{width:100%;min-width:0;margin-top:12px}
.orbit-app .admin-v2-quick a{min-width:0;overflow-wrap:anywhere}
@media(max-width:1000px){.orbit-app .admin-v2-quick>nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.orbit-theme-panel{display:none!important}}
