/* OKHBOT official extended brand palette, approved 2026-11-22.
   Single source for UI color tokens; do not change uploaded artwork or user avatar colors.
   Only semantic state tokens may represent an operational status.
*/
:root {
  --okhb-brand-100:#E8B8C7;
  --okhb-brand-300:#A84D68;
  --okhb-brand-500:#713248;
  --okhb-brand-700:#3D1422;
  --okhb-brand-900:#2B0D18;
  --okhb-white:#FFFFFF;
  --okhb-light:#FFF9F7;
  --okhb-cream:#FDF5F3;
  --okhb-rose-100:#F7E7EC;
  --okhb-rose-200:#F0D4DD;
  --okhb-accent-teal:#88B9BE;
  --okhb-accent-coral:#E99B8F;
  --okhb-accent-lavender:#9F8AC7;
  --okhb-accent-sage:#B8CBA3;
  --okhb-accent-honey:#E5A85B;
  --okhb-status-inactive:#93838A;
  --okhb-status-info:#527DB5;
  --okhb-status-error:#CA4B57;
  --okhb-status-warning:#D08A29;
  --okhb-status-success:#237B61;
  --okhb-neutral-surface:#F6F4F5;
  --okhb-neutral-border:#E7E1E3;
  --okhb-neutral-muted:#988E93;
  --okhb-neutral-secondary:#62565C;
  --okhb-neutral-text:#282127;
  /* Shared workspace aliases (all roles, web and installed PWA). */
  --okh-ds-primary:var(--okhb-brand-700);
  --okh-ds-accent:var(--okhb-brand-700);
  --okh-ds-text:var(--okhb-neutral-text);
  --okh-ds-muted:var(--okhb-neutral-secondary);
  --okh-ds-surface:var(--okhb-white);
  --okh-ds-surface-muted:var(--okhb-cream);
  --okh-ds-border:var(--okhb-neutral-border);
  --okh-ds-surface-alt:var(--okhb-neutral-surface);
  --okh-blue:var(--okhb-brand-700);
  --okh-blue-hover:var(--okhb-brand-900);
  --okh-ink:var(--okhb-neutral-text);
  --okh-muted:var(--okhb-neutral-secondary);
  --okh-border:var(--okhb-neutral-border);
  --okh-bg:var(--okhb-light);
  --okh-chat-primary:var(--okhb-brand-700);
  --okh-chat-pink:var(--okhb-cream);
  --okh-chat-border:var(--okhb-neutral-border);
  --okh-chat-sender:var(--okhb-brand-500);
  --okh-chat-subtle:var(--okhb-neutral-secondary);
  --okh-uc-border:var(--okhb-neutral-border);
  --okh-uc-muted:var(--okhb-neutral-secondary);
  /* Legacy public theme tokens: unified values, no change to layout. */
  --ok23-ink:var(--okhb-neutral-text);
  --ok23-ink-strong:var(--okhb-brand-900);
  --ok23-muted:var(--okhb-neutral-secondary);
  --ok23-muted-light:var(--okhb-neutral-muted);
  --ok23-primary:var(--okhb-brand-700);
  --ok23-primary-hover:var(--okhb-brand-900);
  --ok23-primary-tint:var(--okhb-rose-100);
  --ok23-primary-stroke:var(--okhb-rose-200);
  --ok23-teal:var(--okhb-accent-teal);
  --ok23-teal-tint:var(--okhb-cream);
  --ok23-blue:var(--okhb-status-info);
  --ok23-orange:var(--okhb-accent-honey);
  --ok23-paper:var(--okhb-light);
  --ok23-canvas:var(--okhb-cream);
  --ok23-surface:var(--okhb-white);
  --ok23-surface-soft:var(--okhb-light);
  --ok23-border:var(--okhb-neutral-border);
  --ok23-border-strong:var(--okhb-rose-200);
  --ok23-focus:var(--okhb-brand-500);
  --ok23-success:var(--okhb-status-success);
  --ok23-danger:var(--okhb-status-error);
  --ok23-warning:var(--okhb-status-warning);
  --purple:var(--okhb-brand-700);
  --purpleDark:var(--okhb-brand-900);
  --ink:var(--okhb-neutral-text);
  --muted:var(--okhb-neutral-secondary);
  --line:var(--okhb-neutral-border);
  --bg:var(--okhb-light);
}
/* Preserve contrast in the existing dark theme. */
html.okh-dark #okh-app,html.okhb-dark #okh-app,html[data-theme="dark"] #okh-app,
body.okh-dark #okh-app,body[data-theme="dark"] #okh-app {
  --okh-ds-text:#FFFFFF;
  --okh-ds-muted:#C5AFBA;
  --okh-ds-surface:#30252D;
  --okh-ds-surface-muted:#392932;
  --okh-ds-border:#493640;
  --okh-border:#493640;
  --okh-muted:#C5AFBA;
}

/* ELITE — membership accents only. Keep original surfaces, theme, logo and action colors. */
#okh-app[data-okh-membership="elite"]{
 --okh-elite-gold:#C5A059;
 --okh-elite-tint:#FAF5E8;
 --okh-elite-label-ink:#72531F;
}
:is(html.okh-dark,html.okhb-dark,html[data-theme="dark"]) #okh-app[data-okh-membership="elite"],body.okh-dark #okh-app[data-okh-membership="elite"],body[data-theme="dark"] #okh-app[data-okh-membership="elite"]{
 --okh-elite-gold:#D8BE86;
 --okh-elite-tint:#493725;
 --okh-elite-label-ink:#F2D9A1;
}
#okh-app[data-okh-membership="elite"] .okh-elite-label{
 display:inline-flex;align-items:center;width:fit-content;max-width:100%;
 font-size:10px;letter-spacing:.1em;font-weight:750;line-height:1.5;
 color:var(--okh-elite-label-ink);background:var(--okh-elite-tint);
 padding:2px 8px;border-radius:6px;margin-block-end:4px;
}
#okh-app[data-okh-membership="elite"] .okh-smart-heading-copy{min-width:0;overflow-wrap:anywhere}
#okh-app[data-okh-membership="elite"] #okh-app-sidebar .okh-user .okh-avatar{outline:1px solid var(--okh-elite-gold);outline-offset:2px}
#okh-app[data-okh-membership="elite"] #okh-app-sidebar:not(.collapsed) .okh-user-display-name::after{
 content:"ELITE";display:inline-block;vertical-align:middle;margin-inline-start:5px;
 color:var(--okh-elite-label-ink);background:var(--okh-elite-tint);font-size:9px;
 line-height:1.4;padding:1px 5px;border-radius:4px;font-weight:750;letter-spacing:.04em;
}
#okh-app[data-okh-membership="elite"] .okh-v4622-summary h2::after{
 content:"ELITE";display:inline-block;vertical-align:middle;margin-inline-start:8px;
 color:var(--okh-elite-label-ink);background:var(--okh-elite-tint);font-size:11px;
 line-height:1.4;padding:3px 8px;border-radius:5px;font-weight:750;letter-spacing:.08em;direction:ltr;
}
#okh-app[data-okh-membership="elite"] .okh-v4685-subscription .okh-v4622-summary{
 border-inline-start:2px solid var(--okh-elite-gold);
}
@media(max-width:767px){#okh-app[data-okh-membership="elite"] .okh-elite-label{font-size:9px}}

/* ELITE WORKSPACE v4.8.1.005 — exclusively effective active business subscription.
   Presentation only; explicit chrome and page selectors, not status badges, chat or artwork. */
#okh-app[data-okh-membership="elite"] {
 --okh-elite-line:#DDC99C;
 --okh-elite-strong:#856126;
 --okh-elite-button-ink:#F2D69A;
 --okh-elite-wash:linear-gradient(112deg,#FFFCF5,#FAF5E8 60%,#F4E7C9);
}
:is(html.okh-dark,html.okhb-dark,html[data-theme="dark"],body.okh-dark,body[data-theme="dark"]) #okh-app[data-okh-membership="elite"] {
 --okh-elite-line:#796344;
 --okh-elite-strong:#F2D9A1;
 --okh-elite-wash:linear-gradient(112deg,#292023,#392C22 60%,#433422);
}
/* Account navigation; explicit override of existing glass/dark active-state rules. */
#okh-app[data-okh-membership="elite"] #okh-app-sidebar .okh-client-nav .okh-nav.active {
 background:var(--okh-elite-tint)!important;color:var(--okh-elite-strong)!important;
 box-shadow:inset -2px 0 var(--okh-elite-gold);
}
#okh-app[data-okh-membership="elite"]:dir(ltr) #okh-app-sidebar .okh-client-nav .okh-nav.active {box-shadow:inset 2px 0 var(--okh-elite-gold)}
#okh-app[data-okh-membership="elite"] #okh-app-sidebar .okh-client-nav .okh-nav.active .okh-ico{color:var(--okh-elite-strong)}
#okh-app[data-okh-membership="elite"] #okh-app-sidebar .okh-user-display-name::after{border:1px solid var(--okh-elite-line)}
#okh-app[data-okh-membership="elite"] #okh-app-sidebar .okh-user .okh-avatar{outline:2px solid var(--okh-elite-gold)}
#okh-app[data-okh-membership="elite"] #okh-app-sidebar .okh-profile-menu{border-color:var(--okh-elite-line)}
#okh-app[data-okh-membership="elite"] #okh-app-sidebar .okh-profile-menu :is(button,a):hover{background:var(--okh-elite-tint)}
/* Specific client surfaces, retaining white workspace and existing layout. */
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-v47281-hero,.okh-v451-storage-card,.okh-v4662-card.is-active){
 background:var(--okh-elite-wash)!important;border-color:var(--okh-elite-line)!important;
}
#okh-app[data-okh-membership="elite"] #okh-content .okh-simple-active-home .okh-smart-assistant{border-color:var(--okh-elite-line)!important}
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-simple-work-card,.okh-v47292-metrics>div,.okh-v47292-completed,.okh-v424-brand-card,.okh-v4217-site-card,.okh-v4217-section,.okh-v47140-directory,.okh-v47281-directory,.okh-v47288-records,.okh-v4726-settings-nav,.okh-v4726-settings .okh-settings-content){border-color:var(--okh-elite-line)}
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-v47140-table-head,.okh-v47281-head,.okh-v47286-row.head){background:var(--okh-elite-tint)!important;color:var(--okh-elite-strong)!important}
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-v4262-empty-icon,.okh-empty-symbol,.okh-v464-empty-symbol,.okh-v47284-empty-icon,.okh-v451-storage-symbol,.okh-v451-folder-icon,.okh-simple-work-icon,.okh-v4662-service-icon,.okh-v4662-slot-label){background:var(--okh-elite-tint)!important;color:var(--okh-elite-strong)!important}
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-v4662-occupancy-track,.okh-v451-storage-meter){background:var(--okh-elite-tint)}
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-v4662-occupancy-track,.okh-v451-storage-meter)>span{background:var(--okh-elite-gold)!important;opacity:1}
#okh-app[data-okh-membership="elite"] #okh-content .okh-v4662-card.is-active::before{background:linear-gradient(100deg,transparent 20%,#C5A05922 48%,transparent 76%)}
#okh-app[data-okh-membership="elite"] #okh-content .okh-v47291-metric-heading svg{color:var(--okh-elite-strong);opacity:1}
#okh-app[data-okh-membership="elite"] #okh-content .okh-v4726-settings{--okh-settings-soft:var(--okh-elite-tint);--okh-settings-border:var(--okh-elite-line)}
#okh-app[data-okh-membership="elite"] #okh-content .okh-v4726-settings :is(.okh-v4685-menu-item.is-current,.okh-v4685-menu-item:hover,.okh-v4685-menu-icon){background:var(--okh-elite-tint)!important;color:var(--okh-elite-strong)!important}
#okh-app[data-okh-membership="elite"] #okh-content .okh-v4685-account-avatar{outline:1px solid var(--okh-elite-gold);outline-offset:2px}
/* Primary actions limited to these page-level surfaces, never shared chat controls. */
#okh-app[data-okh-membership="elite"] .okh-shell:is([data-okh-route="home"],[data-okh-route="requests"],[data-okh-route="mood"],[data-okh-route="team"],[data-okh-route="brands"],[data-okh-route="referrals"],[data-okh-route="filesCenter"],[data-okh-route="siteHub"],[data-okh-route="reports"],[data-okh-route="settings"]) #okh-content .okh-ds-page-header .okh-btn.primary:not(:disabled){border-color:var(--okh-elite-gold);box-shadow:inset 0 0 0 1px var(--okh-elite-gold);color:var(--okh-elite-button-ink)}
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-simple-active-home,.okh-v4662-requests,.okh-box-index,.okh-v4262-brand-page,.okh-v47140-team-page,.okh-simple-brand-list,.okh-v4217-page,.okh-v47281-referrals,.okh-v47284-files,.okh-v464-reports,.okh-v4726-settings) .okh-btn.primary:not(:disabled),
#okh-app[data-okh-membership="elite"] #okh-content :is(.okh-v4659-new,.okh-simple-home-action.primary):not(:disabled){border-color:var(--okh-elite-gold);box-shadow:inset 0 0 0 1px var(--okh-elite-gold);color:var(--okh-elite-button-ink)}
#okh-app[data-okh-membership="elite"] #okh-content .okh-v47288-hero.elite{border-color:var(--okh-elite-gold)}
#okh-app[data-okh-membership="elite"] #okh-content .okh-v47288-hero.elite h2{color:var(--okh-elite-button-ink)!important}
/* Native navigation is a body sibling, hence :has() rather than global role classes. */
@media(max-width:767px){
 body:has(#okh-app[data-okh-membership="elite"]) #okhb-mobile-tabbar .okhb-mobile-tab.is-active:not(.okhb-brand-home) .okhb-tab-icon{background:#FAF5E8!important;color:#856126!important}
 body:has(#okh-app[data-okh-membership="elite"]) #okhb-mobile-tabbar .okhb-mobile-tab.is-active:not(.okhb-brand-home) .okhb-tab-label{color:#856126!important}
 :is(html.okh-dark,html.okhb-dark,html[data-theme="dark"]) body:has(#okh-app[data-okh-membership="elite"]) #okhb-mobile-tabbar .okhb-mobile-tab.is-active:not(.okhb-brand-home) .okhb-tab-icon{background:#493725!important;color:#F2D9A1!important}
 :is(html.okh-dark,html.okhb-dark,html[data-theme="dark"]) body:has(#okh-app[data-okh-membership="elite"]) #okhb-mobile-tabbar .okhb-mobile-tab.is-active:not(.okhb-brand-home) .okhb-tab-label{color:#F2D9A1!important}
}

/* ELITE TINT CONTRACT v4.8.1.007 — keep white surfaces and semantic status colors. */
#okh-app[data-okh-membership="elite"] {
 --okh-elite-soft:#FAF5E8; --okh-elite-raised:#F5E9CB; --okh-elite-edge:#E4D3AC;
 --okh-ds-surface-muted:var(--okh-elite-soft); --okh-ds-surface-soft:var(--okh-elite-soft);
 --okh-ds-tint:var(--okh-elite-raised); --okh-ds-border:var(--okh-elite-edge);
 --okh-border:var(--okh-elite-edge); --okh-settings-soft:var(--okh-elite-soft);
}
:is(html.okh-dark,html.okhb-dark,html.dark,html[data-theme="dark"],body.okh-dark,body[data-theme="dark"]) #okh-app[data-okh-membership="elite"] {
 --okh-elite-soft:#362B20; --okh-elite-raised:#493725; --okh-elite-edge:#796344;
}
#okh-app[data-okh-membership="elite"] :is(.okh-v425-side-tabs>button.active,.okh-v425-side-tabs>button:hover,.okh-sidebar-util:hover,.okh-sidebar-util:focus-visible,.okh-settings-nav button.current,.okh-appearance-options button.chosen,.okh-v4296-more-panel>button:hover,.okh-v4296-more-panel>button:focus-visible){background:var(--okh-elite-soft)!important;color:var(--okh-elite-strong)!important}
#okh-app[data-okh-membership="elite"] :is(.okh-profile-menu,.okh-user-popup){border-color:var(--okh-elite-edge)!important}
#okh-app[data-okh-membership="elite"] :is(.okh-profile-menu,.okh-user-popup) :is(button,a):hover{background:var(--okh-elite-soft)!important}
#okh-app[data-okh-membership="elite"] :is(.okh-v425-side-tabs,.okh-v425-request-side){border-color:var(--okh-elite-edge)!important}

/* Neutral decorative accents in legacy page modules; do not recolor status badges, errors or plan comparisons. */
#okh-app[data-okh-membership="elite"] :is(.okh-v425-workicon,.okh-v4262-empty-icon,.okh-v464-report-switch button.active,.okh-v4299-request-avatar,.okh-v4299-nav-back:active,.okh-v4299-menu-trigger:active,.okh-v4299-menu>button:active,.okh-v4299-menu>button:focus-visible,.okh-v476-attach-menu button:hover,.okh-v476-attach-menu button:focus-visible,.okh-v4315-file-icon,.okh-v451-folder-icon,.okh-v472fin-entry-icon,.okh-v472fin-invoice-icon,.okh-v472fin-desktop-table th,.okh-v47140-team-page .okh-v47140-icon,.okh-v431-editor-nav button:hover,.okh-v424-attachment-icon){background:var(--okh-elite-soft)!important;color:var(--okh-elite-strong)!important}
#okh-app[data-okh-membership="elite"] :is(.okh-v47140-checkbox,input[type="checkbox"],input[type="radio"]){accent-color:var(--okh-elite-gold)}
