/* ETVEL orange identity. Shared by messaging, tasks and sales. */
:root{--brand:#b94a08;--brand-hover:#963b06;--brand-soft:#fff0e2;--brand-text:#a34008;--brand-line:#efc5a6;--brand-rail:#292724;--brand-rail-active:#623a22;--red:var(--brand);--orange:var(--brand);--soft:var(--brand-soft);--ws-accent:var(--brand);--ws-soft:var(--brand-soft);--ws-bg:#f5f3f0;--ws-panel:#fff;--ws-text:#302d29;--ws-muted:#736c64;--ws-line:#e5ded6}
html[data-theme=dark]{--brand:#ff9c55;--brand-hover:#ffb47e;--brand-soft:#3f2b20;--brand-text:#ffb47e;--brand-line:#715039;--brand-rail:#211f1d;--brand-rail-active:#553722;--red:var(--brand);--orange:var(--brand);--soft:var(--brand-soft);--ws-accent:var(--brand);--ws-soft:var(--brand-soft);--ws-bg:#1c1b19;--ws-panel:#282623;--ws-text:#f2ece5;--ws-muted:#bcb1a5;--ws-line:#45403a}
html body :is(.primary,.send-button,.login-submit){background:var(--brand);border-color:var(--brand);color:#fff}
html body :is(.primary,.send-button,.login-submit):hover{background:var(--brand-hover);border-color:var(--brand-hover)}
html[data-theme=dark] body :is(.primary,.send-button,.login-submit){color:#281b12}
html body :is(button,a,input,textarea,select):focus-visible{outline-color:var(--brand)}
html body :is(.app .rail,.workspace-nav,.navigation){background:var(--brand-rail)}
html body :is(.app .rail-button,.workspace-nav>a:not(.workspace-brand),.navigation a){color:#d6cec5}
html body :is(.app .rail-button.active,.workspace-nav>a[aria-current=page],.navigation a[aria-current]){background:var(--brand-rail-active);color:#ffc79e;box-shadow:inset 3px 0 #f58220}
html body :is(.workspace-nav>a:hover,.navigation a:hover){background:var(--brand-rail-active)}
html body :is(.workspace-brand small,.workspace-nav .workspace-nav-note){color:#bfb0a1}
html body :is(.filters button.selected,.red-soft,.sidebar-title .icon-button,.attachment-chip){background:var(--brand-soft);color:var(--brand-text)}
html body .app .chat-row.selected,html body .app .chat-row.selected:hover{background:var(--brand-soft)!important;box-shadow:inset 3px 0 var(--brand)}
html body .app .message.mine{background:var(--brand-soft);border-color:var(--brand-line)}
html body :is(.app .message-author,.app .message-state.read){color:var(--brand-text)}
html body .app .badge{background:var(--brand);color:white}
html[data-theme=dark] body .app .badge{color:#281b12}
html body .login-brand{background:#a9430b}html body .brand-story :is(.eyebrow,h1 span,p),html body :is(.brand-footer,.brand-tags span){color:#ffe0c7}html body .brand-tags span{border-color:#e49a62}html body .brand-line{background:#f58220}
html body:has(.navigation){background:var(--ws-bg);color:var(--ws-text)}
html body:has(.navigation) :is(.toolbar,.deal,dialog,input,select,textarea,button:not(.primary)){background:var(--ws-panel);border-color:var(--ws-line);color:var(--ws-text)}
html body:has(.navigation) :is(.muted,.eyebrow,.column-total,.deal p,.empty){color:var(--ws-muted)}
html body:has(.navigation) .deal .value{color:var(--ws-text)}
html body:has(.navigation) .column{background:var(--ws-bg);border-left-color:var(--ws-line);border-right-color:var(--ws-line);border-bottom-color:var(--ws-line)}
html body:has(.navigation) .column:first-child,html body .workspace-crm .task-column:first-child{border-top-color:#ed8c43}
html body:has(.navigation) .column:nth-child(2){border-top-color:#cd7335}
html body:has(.navigation) a:not(.navigation a){color:var(--brand-text)}
html body.workspace-crm .task-column:first-child{border-top-color:#ed8c43}
html body .app .send-button,html body.workspace-crm .primary{background:var(--brand);border-color:var(--brand);color:#fff}
html body .app .send-button:hover,html body.workspace-crm .primary:hover{background:var(--brand-hover)}
html[data-theme=dark] body .app .send-button,html[data-theme=dark] body.workspace-crm .primary{color:#281b12}

/* Unified neutral surfaces and comfortable touch targets. */
html[data-theme=dark] body.workspace-crm{background:var(--ws-bg);color:var(--ws-text)}
html[data-theme=dark] body.workspace-crm :is(.task-column,.crm-reminder){background:var(--ws-panel);border-left-color:var(--ws-line);border-right-color:var(--ws-line);border-bottom-color:var(--ws-line)}
html[data-theme=dark] body.workspace-crm :is(.task-card,.search,input,select,textarea){background:var(--ws-bg);color:var(--ws-text);border-color:var(--ws-line)}
html[data-theme=dark] body.workspace-crm .crm-tabs button{background:transparent;color:var(--ws-muted)}
html[data-theme=dark] body.workspace-crm .crm-tabs button[aria-pressed=true]{background:transparent;color:var(--brand);border-bottom-color:var(--brand)}
html[data-theme=dark] body.workspace-crm .task-filters button[aria-pressed=true]{background:var(--brand-soft);color:var(--brand-text)}
html[data-theme=dark] body .app :is(.chat-sidebar,.conversation-header,.composer-area){background:var(--ws-panel);border-color:var(--ws-line)}
html[data-theme=dark] body .app :is(.conversation,.empty-chat){background-color:var(--ws-bg)}
html[data-theme=dark] body .app :is(.search-box,#composer,.message:not(.mine)){background:var(--ws-panel);border-color:var(--ws-line)}
html[data-theme=dark] body .app :is(.sidebar-title .icon-button,.red-soft){background:var(--brand-soft);color:var(--brand-text)}
html[data-theme=dark] body .app .chat-row:not(.selected):hover{background:var(--ws-panel)!important}
@media(max-width:700px){
 html body :is(.navigation a,.workspace-nav>a:not(.workspace-brand),.crm-tabs button,.task-filters button){min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 html body:has(.navigation) button{min-height:44px}
 html body .app :is(.filters button,.icon-button,.send-button){min-height:44px;min-width:44px}
 html body .app .filters{overflow-x:auto}
}

/* ETVEL: red, white, yellow and orange. */
:root{--brand:#c62828;--brand-hover:#a91f1f;--brand-soft:#fff1e5;--brand-text:#a63e08;--brand-line:#f0bb91;--brand-rail:#fff;--brand-rail-active:#fff0d4;--orange:#e66b0a;--ws-bg:#fffaf3;--ws-panel:#fff;--ws-text:#352b27;--ws-muted:#75645b;--ws-line:#ecddd0}
html[data-theme=dark]{--brand:#ff8580;--brand-hover:#ffaaa5;--brand-soft:#422b20;--brand-text:#ffbc79;--brand-line:#805337;--brand-rail:#241c19;--brand-rail-active:#52361f;--orange:#ffa34f;--ws-bg:#211b18;--ws-panel:#302621;--ws-text:#fff3e8;--ws-muted:#d0b9a7;--ws-line:#614b3c}
html body :is(.app .rail-button,.workspace-nav>a:not(.workspace-brand),.navigation a){color:var(--ws-muted)}
html body :is(.app .rail-button.active,.workspace-nav>a[aria-current=page],.navigation a[aria-current]){color:var(--brand-text);box-shadow:inset 3px 0 #f47716}
html body .app .message.mine{background:var(--brand-soft);border-color:var(--brand-line)}
html:not([data-theme=dark]) body .app .message:not(.mine){background:#fff;border-color:#ecddd0}
html body .login-brand{background:linear-gradient(145deg,#b71c1c,#c44512)}
html body .brand-line{background:#ffcc32}
html body .app .badge{background:#ffd34e;color:#593300}
html body:has(.navigation) .column:nth-child(1){border-top-color:#ef7518}
html body:has(.navigation) .column:nth-child(2){border-top-color:#e7b728}
html body:has(.navigation) .column:nth-child(3){border-top-color:#c62828}
.sound-toggle{min-height:44px;padding:6px 10px;border:1px solid var(--brand-line);border-radius:10px;background:var(--ws-panel);color:var(--brand-text);font:inherit;font-size:12px;cursor:pointer}.sound-toggle[aria-pressed=true]{background:var(--brand-soft)}

/* One logo in navigation; sound settings belong to profile. */
.app .chat-sidebar .sidebar-logo{display:none!important}.sound-setting{gap:16px;flex-wrap:wrap}.sound-setting small{font-size:12px;color:var(--ws-muted);margin-top:6px}

/* Devices and sessions are available from the profile. */
.app .rail #nav-devices{display:none!important}

/* Unified blue night palette for messenger and CRM. */
html[data-theme=dark]{--brand:#79b8ff;--brand-hover:#a6d0ff;--brand-soft:#1b3455;--brand-text:#abd1ff;--brand-line:#345578;--brand-rail:#101f33;--brand-rail-active:#203f65;--orange:#79b8ff;--red:var(--brand);--soft:var(--brand-soft);--ws-accent:var(--brand);--ws-soft:var(--brand-soft);--ws-bg:#0e1b2c;--ws-panel:#15283e;--ws-text:#edf5ff;--ws-muted:#a4b8d1;--ws-line:#2b4563}
html[data-theme=dark] body :is(.primary,.send-button,.login-submit){background:#387fcb!important;border-color:#387fcb!important;color:#fff!important}
html[data-theme=dark] body :is(.primary,.send-button,.login-submit):hover{background:#4596ed!important}
html[data-theme=dark] body :is(.app .rail-button.active,.workspace-nav>a[aria-current=page],.navigation a[aria-current],.profile-menu>button[aria-current=page]){background:var(--brand-rail-active);color:var(--brand-text);box-shadow:inset 3px 0 #79b8ff}
html[data-theme=dark] body .app .chat-row.selected{background:var(--brand-soft)!important;box-shadow:inset 3px 0 #79b8ff}
html[data-theme=dark] body .app .message.mine,html[data-theme=dark] .conversation[data-wallpaper] .message.mine{background:#23496f!important;border-color:#39668f!important;color:var(--ws-text)}
html[data-theme=dark] .conversation[data-wallpaper] .message:not(.mine){background:#172d46;border-color:#2b4563}
html[data-theme=dark] body .app .badge{background:#79b8ff;color:#0e1b2c}
html[data-theme=dark] .app .conversation[data-wallpaper=etvel]{background-color:#10243b!important;background-image:url('/etvel-chat-pattern.svg'),linear-gradient(135deg,#10273e,#1a3453)!important}
html[data-theme=dark] dialog.mobile-message-menu{background:rgba(21,40,62,.98)!important;color:var(--ws-text);border-color:#345578}
html[data-theme=dark] .mobile-message-menu .message-menu-action:active{background:#254b73}
html[data-theme=dark] .mobile-message-menu :is(.delete-action,.message-menu-emojis){border-color:#345578}
html[data-theme=dark] body .profile-menu{background:var(--ws-bg)}
html[data-theme=dark] body :is(dialog,.forward-dialog,.image-viewer){background-color:var(--ws-panel);color:var(--ws-text);border-color:var(--ws-line)}
html[data-theme=dark] .message-menu-selected{outline-color:#79b8ff80}
html[data-theme=dark] body .login-brand{background:linear-gradient(145deg,#10243b,#23496f)}
html[data-theme=dark] body .brand-line{background:#79b8ff}
