.theme-settings{margin:20px 0;padding:17px 0;border-top:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef}.theme-settings label{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;font-weight:600;color:inherit}.theme-settings select{max-width:220px;border:1px solid #dfe5ed;border-radius:10px;padding:10px 12px;background:#f7f9fc;color:#374151;font:inherit;font-size:12px}.theme-settings small{display:block;margin-top:10px;color:#8592a3;font-size:10px}
html[data-theme=dark]{color-scheme:dark;--red:#f08a54;--orange:#f08a54;--ink:#111721;--muted:#9ca9bb;--line:#303a48;--soft:#33251e;--paper:#141b25;color:#e6ecf5;background:#10151d}
html[data-theme=dark] body{background:#10151d;color:#e6ecf5}
html[data-theme=dark] :is(.app,.chat-sidebar,.login-panel,.login-screen,.department-card,.topic-card,.article-card,.surface,.card,dialog){background:#18212d;color:#e6ecf5;border-color:#303b4b;box-shadow:none}
html[data-theme=dark] :is(.rail,.side){background:#111823;border-color:#303b4b}
html[data-theme=dark] :is(.conversation,.empty-chat){background-color:#121a25;color:#e6ecf5}
html[data-theme=dark] .conversation{background-image:radial-gradient(#8296b014 .7px,transparent .7px)}
html[data-theme=dark] :is(.conversation-header,.composer-area){background:#18212df2;border-color:#303b4b}
html[data-theme=dark] :is(h1,h2,h3,strong,.chat-row-title,.message-text,.empty-chat h2,.login-panel label,.person-detail strong,.department-card h2,.article-card h3){color:#e6ecf5}
html[data-theme=dark] :is(.search-box,#composer,.dialog-search,.field input,.personal-profile-field input,.personal-profile-field textarea,.form-field input,.form-field select,.form-field textarea,.login-panel input,.theme-settings select,.password-result,.search,input,textarea,select){background:#111a26;color:#e6ecf5;border-color:#354255}
html[data-theme=dark] :is(.search-box input,#message-input){background:transparent;color:#e6ecf5}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#8b99ad}
html[data-theme=dark] :is(.message,.person-row,.device-row,.branch,.empty,.branch-icon-edit){background:#202c3b;border-color:#354255;color:#dce5f2}
html[data-theme=dark] .message.mine{background:#3a2920;border-color:#65462f}
html[data-theme=dark] .message-author{color:#f3ad80}
html[data-theme=dark] :is(.secondary,.profile-device-link,.icon-button,.conversation-header #chat-options){background:#293649;color:#c6d2e4}
html[data-theme=dark] :is(.filters button.selected,.chat-row.selected,.red-soft,.sidebar-title .icon-button,.attachment-chip,.recording-bar,.department-symbol,.topic-icon,.profile-photo-preview){background:#3a2a20;color:#ffb284;border-color:#65462f}
html[data-theme=dark] .chat-row:hover{background:#253246!important}
html[data-theme=dark] .chat-row.selected:hover{background:#493022!important}
html[data-theme=dark] :is(.branch:hover,.topic-card:hover,.article-card:hover,.person-row:hover,.device-row:hover){background:#29384b;border-color:#52617a}
html[data-theme=dark] :is(.primary,.send-button,.login-submit){background:#ec793e;color:#fff}
html[data-theme=dark] :is(.primary:hover,.send-button:hover,.login-submit:hover){background:#fc9257}
html[data-theme=dark] :is(.danger,.form-error,#notice){background:#3c2421;color:#ffb3a0;border-color:#71433a}
html[data-theme=dark] :is(.theme-settings,.profile-settings,.reader-footer,.reader #reader-summary,.filters,.side-bottom){border-color:#303b4b}
html[data-theme=dark] :is(.dialog-muted,.profile-assigned,.personal-profile-field,.form-field,.article-card p,.surface p,#reader-body p,.login-panel .intro,.chat-preview,.conversation-heading p,.empty-chat p){color:#a7b5c8}
html[data-theme=dark] :is(.tone-0,.tone-2,.tone-5){background:#273e48;color:#b4d0dc}
html[data-theme=dark] :is(.tone-1,.tone-4){background:#493b2e;color:#e7c5a3}
html[data-theme=dark] .tone-3{background:#38314d;color:#d0c2ed}
html[data-theme=dark] .pill{background:#2b3749;color:#becadd}
html[data-theme=dark] .pill.read{background:#203d31;color:#9fdfb8}
html[data-theme=dark] .pill.draft{background:#443722;color:#efcd88}
html[data-theme=dark] .profile-presence.is-online{color:#55d889}
html[data-theme=dark] .profile-presence.is-offline{color:#ff7575}
html[data-theme=dark] dialog::backdrop{background:#050911aa}
html[data-theme=dark] .new-messages{background:#293649;color:#ffb284;border-color:#52617a}
@media(max-width:700px){html[data-theme=dark] .side nav{background:#17212eed;border-color:#354255}}
@media(max-width:680px){html[data-theme=dark] .app .rail,html[data-theme=dark] .app.chat-open .rail{background:#17212eed;border-color:#354255}html[data-theme=dark] .theme-settings label{align-items:flex-start;flex-direction:column;gap:10px}html[data-theme=dark] .theme-settings select{width:100%;max-width:none}}

