body[data-theme="dark"]{color:#dce8dd;background:#101713}body[data-theme="dark"] .chat-app{background:#18231c;border-color:#304238;box-shadow:0 18px 80px #0008}body[data-theme="dark"] .workspace-rail,body[data-theme="dark"] .sidebar,body[data-theme="dark"] .my-profile,body[data-theme="dark"] .chat-header,body[data-theme="dark"] .composer{background:#18231c;border-color:#304238}body[data-theme="dark"] .workspace-rail{background:#142019}body[data-theme="dark"] .conversation{background:#121b16}body[data-theme="dark"] .sidebar-section-label,body[data-theme="dark"] .muted,body[data-theme="dark"] .connection,body[data-theme="dark"] .preview,body[data-theme="dark"] .user-top time,body[data-theme="dark"] .chat-header-note,body[data-theme="dark"] .composer-bottom,body[data-theme="dark"] .composer-top{color:#91a797}body[data-theme="dark"] .sidebar-heading h1,body[data-theme="dark"] .user-top strong,body[data-theme="dark"] .profile-text strong,body[data-theme="dark"] .chat-header h2{color:#e5f0e6}body[data-theme="dark"] .school-label,body[data-theme="dark"] .search-box,body[data-theme="dark"] .user-item:hover:where(html:not([data-input="touch"]) *),body[data-theme="dark"] .tool-card,body[data-theme="dark"] .welcome-links>a{background:#1d2b22;border-color:#35483a}body[data-theme="dark"] .rail-brand,body[data-theme="dark"] .rail-link{color:#b7cbb8;background:#1b2a20;border-color:#35483a}body[data-theme="dark"] .sidebar-utilities{background:#18231c;border-color:#304238}body[data-theme="dark"] .drive-entry,body[data-theme="dark"] .announcement-entry,body[data-theme="dark"] .tools-entry{background:#1d2b22;border-color:#35483a;color:#d4e3d6}body[data-theme="dark"] .user-item.selected,body[data-theme="dark"] .user-item.group-item{background:#243a29;border-color:#416047}body[data-theme="dark"] .search-box input,body[data-theme="dark"] .composer textarea{color:#dce8dd}body[data-theme="dark"] .search-box input::placeholder,body[data-theme="dark"] textarea::placeholder{color:#718676}body[data-theme="dark"] .bubble{background:#1d2b22;border-color:#35483a;color:#d7e6d9;box-shadow:none}body[data-theme="dark"] .own .bubble{background:#285237;border-color:#356746;color:#e5f4e6}body[data-theme="dark"] .welcome{background:radial-gradient(ellipse at 50% 35%,#203526,transparent 66%)}body[data-theme="dark"] .welcome h2,body[data-theme="dark"] .welcome p,body[data-theme="dark"] .welcome-links strong,body[data-theme="dark"] .welcome-links small{color:#d5e5d6}body[data-theme="dark"] .welcome-art{background:#253c2a;border-color:#416047}body[data-theme="dark"] .welcome-art>span:not(.orbit-dot){background:#1d2b22;color:#dce8dd;border-color:#405544}body[data-theme="dark"] .attachment-tool,body[data-theme="dark"] .icon-button{color:#a7bea9}body[data-theme="dark"] .secondary-button,body[data-theme="dark"] .newline-button{background:#1e2d23;border-color:#3a5040;color:#dce8dd}body[data-theme="dark"] .manage-dialog{background:#18231c;border-color:#3a5040;color:#dce8dd}body[data-theme="dark"] .manage-dialog::backdrop{background:#050906bb}body[data-theme="dark"] .dialog-heading{border-color:#304238}body[data-theme="dark"] .manage-dialog input,body[data-theme="dark"] .manage-dialog select,body[data-theme="dark"] .manage-dialog textarea{background:#101913;border-color:#3a5040;color:#dce8dd}body[data-theme="dark"] .manage-dialog button:not(.primary){color:#dce8dd}body[data-theme="dark"] .ai-toolbar h2,body[data-theme="dark"] .ai-section-heading,body[data-theme="dark"] .ai-provider-heading strong{color:#dce8dd}body[data-theme="dark"] .ai-message{background:#1d2b22;border-color:#35483a;color:#dce8dd}body[data-theme="dark"] .ai-message.user{background:#285237;border-color:#356746}body[data-theme="dark"] .ai-provider-card,body[data-theme="dark"] .ai-model-card,body[data-theme="dark"] .ai-usage-row{background:#1b2a20;border-color:#35483a}body[data-theme="dark"] .ai-chat-form{border-color:#304238}

/* Shared theme tokens also cover secondary text, dividers and scrollbars. */
body[data-theme="dark"]{color-scheme:dark;--line:#304238;--muted:#a0b4a5;--workspace-border:#304238;--workspace-muted:#a0b4a5;--workspace-soft:#1d2b22}
body[data-theme="dark"] :is(.user-list,.message-scroll){background:#121b16;scrollbar-color:#405748 #121b16}
body[data-theme="dark"] :is(.sidebar-brand,.my-profile,.chat-header,.dialog-heading,.dialog-footnote,.announcement-row,.moderation-row,.order-row){border-color:var(--workspace-border)}
body[data-theme="dark"] :is(.sidebar-section-label,.list-heading,.list-heading span:last-child,.user-presence,.peer-status,.sidebar-brand .brand-en,.utilities-heading,.utilities-heading small,.rail-signature,.welcome-topline,.welcome .eyebrow,.welcome-bottom,.ai-message-role,.ai-message-meta,.ai-model-picker,.ai-admin-check,.dialog-footnote,.attempts-note,.tool-copy small,.manage-dialog p.muted){color:#a0b4a5}
body[data-theme="dark"] :is(.connection,.connection.connected,.sidebar-heading h1 span,.role-badge){background:#263b2d;color:#b8d9bf}
body[data-theme="dark"] .sidebar-utilities > :is(.drive-entry,.announcement-entry,.ai-entry,.tools-entry){background:#1d2b22;border-color:#35483a;color:#d4e3d6}
body[data-theme="dark"] .sidebar-utilities > :is(.drive-entry,.announcement-entry,.ai-entry,.tools-entry):hover{background:#293e30;border-color:#526d58}
body[data-theme="dark"] :is(.dialog-close,.dialog-symbol,.tool-symbol,.welcome-link-icon,.info-box,.lock-note,.admin-benefits,.announcement-row,.recall-menu,.emoji-panel,.emoji-search,.emoji-tabs,.emoji-empty,.image-stage){background:#1d2b22;border-color:#35483a;color:#d4e3d6}
body[data-theme="dark"] :is(.tool-card:hover:where(html:not([data-input="touch"]) *),.announcement-row[role="button"]:hover:where(html:not([data-input="touch"]) *),.recall-menu button:hover:where(html:not([data-input="touch"]) *),.emoji-tabs button.active,.emoji-cell:hover:where(html:not([data-input="touch"]) *)){background:#293e30}
body[data-theme="dark"] :is(.ai-usage-row strong,.announcement-row strong){color:#d4e3d6}
body[data-theme="dark"] .ai-chat-form textarea{background:#101913;border-color:#3a5040;color:#dce8dd}
body[data-theme="dark"] .ai-message.user{background:#285237;border-color:#356746}
body[data-theme="dark"] .user-item.pinned-item{background:#20312b;border-color:#3d5748;box-shadow:none}
body[data-theme="dark"] .group-avatar{background:#294733!important;color:#b8dbbe!important}
body[data-theme="dark"] .sidebar-utilities svg{fill:none;stroke:currentColor}
body[data-theme="dark"] :is(.user-list,.message-scroll,.dialog-body)::-webkit-scrollbar-thumb{background:#405748}
body[data-theme="dark"] :is(.user-list,.message-scroll,.dialog-body)::-webkit-scrollbar-track{background:transparent}

body[data-theme="dark"] :is(.owner-panel,.application-controls .channel-row,.selection-toolbar,.selection-toggle,.upload-progress-wrap,.compose-preview,.message-quote,.attachment-link,.file-expired,.duration-options button,.new-messages,.memory-cell){background:#1d2b22;border-color:#35483a;color:#d4e3d6}
body[data-theme="dark"] :is(.owner-panel h3,.settings-tip,.channel-row small,.ai-empty,.ai-usage-row small){color:#a9c0ad}
body[data-theme="dark"] :is(.search-box:focus-within,.composer.is-muted){background:#1d2b22}
body[data-theme="dark"] :is(.attachment-tool:hover:where(html:not([data-input="touch"]) *):enabled,.emoji-button[aria-expanded="true"],.icon-button:hover:where(html:not([data-input="touch"]) *),.secondary-button:hover:where(html:not([data-input="touch"]) *),.newline-button:hover:where(html:not([data-input="touch"]) *):enabled,.dialog-close:hover:where(html:not([data-input="touch"]) *),.attachment-link:hover:where(html:not([data-input="touch"]) *),.emoji-choice:hover:where(html:not([data-input="touch"]) *),.emoji-choice:focus-visible,.duration-options button:hover:where(html:not([data-input="touch"]) *)){background:#293e30}
body[data-theme="dark"] :is(.mute-banner,.reconnect-banner){background:#3b3420;border-color:#675b33;color:#e6d8ad}
body[data-theme="dark"] .danger-button{background:#3a2523;border-color:#62423d;color:#efbbb1}
body[data-theme="dark"] .danger-button:hover:where(html:not([data-input="touch"]) *):enabled{background:#4a2d28}

body[data-theme="dark"] :is(.composer-top,.composer-bottom,.compose-preview,.message-quote,.emoji-tabs,.upload-list li,.announcement-history-list){border-color:var(--workspace-border)}
body[data-theme="dark"] .welcome-links > a:hover:where(html:not([data-input="touch"]) *){background:#293e30;border-color:#526d58}
body[data-theme="dark"] :is(.form-error,.ai-info){color:#f1a497}
