/* Selected APEX identity. This layer changes presentation only. */
:root { --brand-ops:#111111; --green:#876100; --green-light:#fff5d8; --cream:#f6f7f9; --ink:#17212b; --line:#dfe4eb; --radius:16px; }
/* Office-only tokens preserve HQ's existing inherited palette. */
body:not(:has(.hq-shell)) { --green:#111111; --green-light:#f1f2f4; --ops-focus:#111111; }
.app-shell:not(.hq-shell) .sidebar { background:#fff; color:#17212b; border-right:1px solid var(--line); }
.app-shell:not(.hq-shell) .sidebar .brand { color:#17212b; }
.app-shell:not(.hq-shell) .brand-caption { color:#667085; }
.app-shell:not(.hq-shell) .company-chip { background:#f7f8fa; border-color:var(--line); }
.app-shell:not(.hq-shell) .company-monogram { background:#eef0f3; color:#17212b; }
.app-shell:not(.hq-shell) .company-chip small,.app-shell:not(.hq-shell) .sidebar-bottom p,.app-shell:not(.hq-shell) .sidebar-bottom small { color:#667085; }
.app-shell:not(.hq-shell) .nav-link { color:#475569; }
.app-shell:not(.hq-shell) .nav-link .icon { color:#64748b; }
.app-shell:not(.hq-shell) .nav-link.active { background:#eceff3; color:#111111; box-shadow:inset 3px 0 #111111; }
.app-shell:not(.hq-shell) .nav-link.active .icon { color:#111111; }
.app-shell:not(.hq-shell) .nav-link:hover { background:#f7f8fa; }
.app-shell:not(.hq-shell) .control-note { color:#667085; border-color:var(--line); }
.app-shell:not(.hq-shell) .control-note .icon { color:#111111; }
.app-shell:not(.hq-shell) .button-primary,.auth-content .button-primary { background:#111111; border-color:#111111; color:#FFFFFF; }
.app-shell:not(.hq-shell) .button-primary:hover:not(:disabled),.auth-content .button-primary:hover:not(:disabled) { background:#303030; border-color:#303030; color:#FFFFFF; }
.app-shell:not(.hq-shell) .stat-card>.icon { color:#333333; }
.app-shell:not(.hq-shell) .stat-card:hover { border-color:#98a2b3; }
.app-shell:not(.hq-shell) .topbar { background:#ffffffed; border-color:var(--line); }
.app-shell:not(.hq-shell) .panel,.app-shell:not(.hq-shell) .stat-card { box-shadow:0 4px 20px #17212b05; }
.auth-story { background:#17212b; --ops-focus:#FFFFFF; }
.auth-story-main>p { color:#d2d9e2; }
.auth-benefits .icon { color:#FFFFFF; }
.auth-story .brand-caption { color:#d2d9e2; }
.auth-content a { color:#111111; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline-color:var(--ops-focus,#9a7109); }
/* Private HQ retains its native 3D map, review drawer and dark visual system. */
.hq-shell .hq-brand-symbol { width:44px; height:44px; }
.hq-shell .nav-link.active { box-shadow:inset 3px 0 #D9363E; border-color:#d9363e66; }
.hq-shell .nav-link.active .icon { color:#ffb8bd; }
.hq-shell .brand-caption { color:#e7b5bb; }
.hq-auth-layout .auth-story::after { border-color:#d9363e38; }
.hq-auth-layout .auth-story .brand-caption { color:#f3c8cc; }
.hq-auth-layout .auth-content .button-primary { background:#d9363e; border-color:#d9363e; color:#fff; }
.hq-auth-layout .auth-content .button-primary:hover:not(:disabled) { background:#bc2932; border-color:#bc2932; color:#fff; }
@media(prefers-reduced-motion:reduce) { .app-shell:not(.hq-shell) .button { transition:none; } }

/* Shared calls to action outside the signed-in shell, including plan enquiry. */
body:not(:has(.hq-shell)) .button-primary { background:#111111; border-color:#111111; color:#FFFFFF; }
body:not(:has(.hq-shell)) .button-primary:hover:not(:disabled) { background:#303030; border-color:#303030; color:#FFFFFF; }
