/* Shared light theme. Dark theme and user-selected wallpapers remain separate. */
html:not([data-theme=dark]){color-scheme:light;--brand:#246fe5;--brand-hover:#1858bd;--brand-soft:#eaf2ff;--brand-text:#225fae;--brand-line:#cbdcf1;--brand-rail:#fff;--brand-rail-active:#eaf2ff;--red:var(--brand);--orange:var(--brand);--soft:var(--brand-soft);--ws-accent:var(--brand);--ws-soft:var(--brand-soft);--ws-bg:#f5f8fc;--ws-panel:#fff;--ws-text:#20334b;--ws-muted:#65788f;--ws-line:#dce5ef}
html:not([data-theme=dark]) body{background:#f5f8fc;color:#20334b}
html:not([data-theme=dark]) body :is(.app .rail,.workspace-nav,.navigation,.chat-sidebar,.conversation-header,.composer-area,.toolbar,dialog,.profile-content){background:#fff!important;color:#20334b;border-color:#dce5ef}
html:not([data-theme=dark]) body :is(.app .rail-button,.workspace-nav>a:not(.workspace-brand),.navigation a){color:#65788f}
html:not([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:#eaf2ff!important;color:#246fe5!important;box-shadow:inset 3px 0 #4389ee!important}
html:not([data-theme=dark]) body :is(.workspace-brand small,.workspace-nav-note,.muted,.eyebrow){color:#65788f}
html:not([data-theme=dark]) body :is(.primary,.send-button,.login-submit,#new-chat){background:#246fe5!important;border-color:#246fe5!important;color:#fff!important}
html:not([data-theme=dark]) body :is(.primary,.send-button,.login-submit,#new-chat):hover{background:#1858bd!important}
html:not([data-theme=dark]) body :is(input,textarea,select,.search-box,.profile-menu){background-color:#f5f8fc;color:#20334b;border-color:#dce5ef}
html:not([data-theme=dark]) body :is(input,textarea)::placeholder{color:#74869b}
html:not([data-theme=dark]) body .app .chat-row{border-color:#dce5ef}
html:not([data-theme=dark]) body .app .chat-row.selected{background:#eaf2ff!important;box-shadow:inset 3px 0 #4389ee!important}
html:not([data-theme=dark]) body .app .badge{background:#246fe5;color:#fff}
html:not([data-theme=dark]) body .app .conversation[data-wallpaper=etvel]{background-color:#edf4fc!important;background-image:url('/etvel-chat-pattern.svg'),linear-gradient(135deg,#f2f8ff,#e6f0fc)!important}
html:not([data-theme=dark]) body .app .message:not(.mine){background:#fff!important;color:#20334b;border-color:#dce5ef}
html:not([data-theme=dark]) body .app .message.mine{background:#deecff!important;color:#20334b!important;border-color:#c4dafa!important}
html:not([data-theme=dark]) body .app :is(.message-author,.message-state.read){color:#246fe5!important}
html:not([data-theme=dark]) body .app .message :is(.message-meta,.message-time){color:#65788f}
html:not([data-theme=dark]) body .app .message a{color:#1858bd;text-decoration:underline;text-underline-offset:3px}
html:not([data-theme=dark]) body .app :is(.message-reply-preview,.reply-preview,.attachment-chip){background:#edf4fc;color:#365675;border-color:#cadcf1}
html:not([data-theme=dark]) body .app #empty-chat{--home-bg:#f5f8fc;background:radial-gradient(ellipse at 85% 20%,#e3efff 0,transparent 52%),#f5f8fc!important;color:#20334b}
html:not([data-theme=dark]) body .app #empty-chat .home-heading{color:#20334b}
html:not([data-theme=dark]) .home-name{color:#246fe5}
html:not([data-theme=dark]) :is(.home-top,.home-description,.home-hint){color:#65788f;border-color:#dce5ef}
html:not([data-theme=dark]) .home-eyebrow{color:#246fe5}
html:not([data-theme=dark]) .home-secondary{background:#fff;color:#225fae!important;border-color:#c4d7ef}
html:not([data-theme=dark]) body .app .home-card{background:#fff!important;border-color:#dce5ef;color:#20334b!important;box-shadow:0 5px 22px #295b9510}
html:not([data-theme=dark]) body .app .home-card:hover{background:#fafdff!important;border-color:#8eb8ee}
html:not([data-theme=dark]) .home-card>span:last-child{color:#65788f}
html:not([data-theme=dark]) .home-card-icon svg{stroke:#347bd8}
html:not([data-theme=dark]) .home-orbit{opacity:.55}
html:not([data-theme=dark]) .home-orbit i{border-color:#91b5e7}
html:not([data-theme=dark]) .home-orbit b{background:radial-gradient(circle at 30% 22%,#e2f3ff,#68a5ed 55%,#3d7bc7);box-shadow:0 0 65px #91b8ed40}
html:not([data-theme=dark]) body #dialog:has([aria-label="Поиск сотрудника"]){background:#fff!important;color:#20334b;border-color:#dce5ef;box-shadow:0 24px 90px #19385828}
html:not([data-theme=dark]) body #dialog:has([aria-label="Поиск сотрудника"]) :is(#dialog-title,.person-detail strong){color:#20334b}
html:not([data-theme=dark]) body #dialog:has([aria-label="Поиск сотрудника"]) :is(.dialog-search,#close-dialog){background:#f5f8fc!important;color:#20334b!important;border-color:#dce5ef}
html:not([data-theme=dark]) body #dialog:has([aria-label="Поиск сотрудника"]) .person-row{background:#f8faff!important;border-color:#dce5ef!important}
html:not([data-theme=dark]) body #dialog:has([aria-label="Поиск сотрудника"]) .person-row:hover{background:#eaf2ff!important;border-color:#a7c5ec!important}
html:not([data-theme=dark]) body #dialog:has([aria-label="Поиск сотрудника"]) .person-detail small{color:#65788f}
html:not([data-theme=dark]) body #dialog:has([aria-label="Поиск сотрудника"]) .avatar{background:#e4efff;color:#35639f}
html:not([data-theme=dark]) body :is(.message-context,.emoji-panel){background:#fff!important;color:#20334b;border-color:#dce5ef;box-shadow:0 15px 50px #19385825}
html:not([data-theme=dark]) body :is(.context-action,.message-context-close){color:#20334b!important}
html:not([data-theme=dark]) body :is(.context-action:hover,.context-reactions button,.saved-message,.emoji-panel input,.emoji-grid button:hover){background:#edf4fc!important;color:#20334b!important;border-color:#dce5ef}
html:not([data-theme=dark]) body .context-action.danger-action{color:#b42332!important;border-color:#dce5ef}
html:not([data-theme=dark]) body :is(.workspace-main,.workspace-content,.task-column,.column){background-color:#f5f8fc;color:#20334b;border-color:#dce5ef}
html:not([data-theme=dark]) body :is(.task-card,.deal,.crm-reminder,.panel,.card){background-color:#fff;color:#20334b;border-color:#dce5ef}
html:not([data-theme=dark]) body :is(.task-column,.column):first-child{border-top-color:#4389ee}
html:not([data-theme=dark]) body .column:nth-child(2){border-top-color:#65a6d9}
html:not([data-theme=dark]) body .column:nth-child(3){border-top-color:#718de0}
html:not([data-theme=dark]) body .login-brand{background:linear-gradient(145deg,#edf5ff,#dbeaff);color:#20334b}
html:not([data-theme=dark]) body .brand-story :is(.eyebrow,h1 span,p),html:not([data-theme=dark]) body :is(.brand-footer,.brand-tags span){color:#365675}
html:not([data-theme=dark]) body .brand-tags span{border-color:#aac9ed}
html:not([data-theme=dark]) body .brand-line{background:#4389ee}
