html[data-theme=dark]{--ink:#e5e7f2;--muted:#9ca2b9;--line:#34394e;--purple:#a597ff;--purple-soft:#393250;--nav:#171a2b;--bg:#151827;color-scheme:dark}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(.topbar,.stat-card,.table-scroll,.team-card,.panel-list,.calendar-panel,.dialog,.empty-state,.kanban-card,.chat-layout,.chat-conversation,.login-form-wrap){background:#202436;border-color:#34394e;color:#e5e7f2}
html[data-theme=dark] :is(input,select,textarea){background:#272c40;border-color:#41485f;color:#e8eaf4}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9a9db2}
html[data-theme=dark] :is(th,.dialog-footer){background:#252a3d;color:#b9bed0;border-color:#34394e}
html[data-theme=dark] :is(td,.project-row,.consent-row,.chat-audit-line){border-color:#34394e;color:#c0c4d6}
html[data-theme=dark] tbody tr:hover{background:#2b3046}
html[data-theme=dark] :is(.outlined,.subtle,.bordered){background:#292e43;border-color:#41475e;color:#d0cde9}
html[data-theme=dark] :is(.outlined:hover,.subtle:hover,.bordered:hover,.icon-button:hover){background:#363852;color:#e4ddff}
html[data-theme=dark] .primary{background:#7868df;color:#fff}
html[data-theme=dark] .primary:hover{background:#8c7aee}
html[data-theme=dark] .danger{background:#482c3c;color:#f2a4ba}
html[data-theme=dark] .danger:hover{background:#633448}
html[data-theme=dark] .icon-button{color:#b3accd}
html[data-theme=dark] :is(.page-heading p,.stat-card>div>span,.stat-card small,.local-tag,.eyebrow,.breadcrumbs,.board-footer,.results-meta,.field-help,.section-heading p,.team-card p,.project-row small,.user-cell small,.date-range,.unassigned,.team-name-list){color:#a4a7bd}
html[data-theme=dark] :is(.breadcrumbs strong,.stat-card strong,.user-cell strong,.task-open,.kanban-title,.chat-room strong){color:#e2dff2}
html[data-theme=dark] .stat-card small{border-color:#34394e}
html[data-theme=dark] .title-dot{color:#b4a5ff}
html[data-theme=dark] .stat-icon.purple{background:#3c3559;color:#c1afff}
html[data-theme=dark] .stat-icon.gray{background:#353a4e}
html[data-theme=dark] .stat-icon.yellow{background:#514632}
html[data-theme=dark] .stat-icon.green{background:#25463e;color:#73d5b4}
html[data-theme=dark] .view-tab{color:#a7a3bd}
html[data-theme=dark] .view-tab.active{color:#c4b5ff}
html[data-theme=dark] #sync-label{color:#9795ad}
html[data-theme=dark] .subtle[aria-pressed=true]{background:#403657;border-color:#7567a7;color:#ded1ff}
html[data-theme=dark] .privacy-box{background:#28283e;border-color:#41415b}
html[data-theme=dark] .pill{background:#3e3555;color:#d0bff2}
html[data-theme=dark] .pill.active{background:#25483d;color:#9ae3bc}
html[data-theme=dark] .pill.inactive{background:#4c303f;color:#efb2c6}
html[data-theme=dark] :is(.priority,.mock-status.gray){background:#39374d;color:#c6bfd9}
html[data-theme=dark] .priority.high{background:#493459;color:#d6b0ee}
html[data-theme=dark] .priority.urgent{background:#563440;color:#f3b0bd}
html[data-theme=dark] .priority.low{background:#2d3f5a;color:#a5c3ee}
html[data-theme=dark] .avatar{color:#4c446a}
html[data-theme=dark] .assignee-stack .avatar{border-color:#202436}
html[data-theme=dark] .kanban-column{background:#1c2031;border-color:#34394e;border-top-color:var(--column-color)}
html[data-theme=dark] .kanban-count{background:#34394f;color:#c6c1da}
html[data-theme=dark] .kanban-card{box-shadow:0 5px 15px #00000012}
html[data-theme=dark] .kanban-card:hover{border-color:#686080}
html[data-theme=dark] :is(.kanban-description,.kanban-column-scope,.kanban-empty,.kanban-team,.kanban-add,.kanban-dates){color:#aca4bd}
html[data-theme=dark] .kanban-project{background:#393148;color:#c8b5e4}
html[data-theme=dark] .kanban-move{background:#2b2d43;border-color:#414259;color:#d5cce8}
html[data-theme=dark] .kanban-column.drop-target{background:#35304d;border-color:#a18ee5}
html[data-theme=dark] .kanban-dates.overdue{color:#ed9eb6}
html[data-theme=dark] #calendar{--fc-border-color:#3a4056;--fc-today-bg-color:#39314e;--fc-page-bg-color:#202436;--fc-neutral-bg-color:#2c3045;--fc-list-event-hover-bg-color:#36344b;--fc-button-bg-color:#7160cf;--fc-button-border-color:#7160cf;--fc-button-hover-bg-color:#8a76ed;--fc-button-hover-border-color:#8a76ed;--fc-button-active-bg-color:#56479f;--fc-button-active-border-color:#56479f}
html[data-theme=dark] #calendar :is(.fc-daygrid-day-number,.fc-col-header-cell-cushion){color:#c9c4de}
html[data-theme=dark] .chat-rooms-panel{background:#1d2032;border-color:#34394e}
html[data-theme=dark] .chat-room:hover{background:#303149}
html[data-theme=dark] .chat-room.selected{background:#3c3458}
html[data-theme=dark] :is(.chat-room small,.chat-list-note,.chat-list-empty,.chat-welcome p,.chat-thread-header p,.chat-message-meta,.chat-date-divider,.chat-no-messages,.chat-audit-line small){color:#a9a1bb}
html[data-theme=dark] .chat-kind-tabs button{color:#aaa1bb}
html[data-theme=dark] .chat-kind-tabs button.active{background:#44355b;color:#dcc8ff}
html[data-theme=dark] .chat-room-icon.private{background:#46365f;color:#d0b2f1}
html[data-theme=dark] .chat-room-icon.team{background:#29473e;color:#9bcdb7}
html[data-theme=dark] .chat-room-icon.role{background:#51412d;color:#e0c28d}
html[data-theme=dark] .chat-message p{background:#303247;color:#ded7eb}
html[data-theme=dark] .chat-message.own p{background:#7461c9;color:#fff}
html[data-theme=dark] .chat-message-meta strong{color:#c7b8d8}
html[data-theme=dark] .chat-composer{background:#222639;border-color:#34394e}
html[data-theme=dark] .chat-access-banner{background:#463c2c;color:#ead3a0;border-color:#5c4e37}
html[data-theme=dark] .chat-date-divider:before,html[data-theme=dark] .chat-date-divider:after{background:#3b3a50}
html[data-theme=dark] .chat-welcome .empty-icon{background:#3f3456;color:#c8b0ea}
html[data-theme=dark] .login-layout{background:#202436}
html[data-theme=dark] .login-help{background:#2c3045;color:#bab2cd}
html[data-theme=dark] .login-form>p{color:#b0a7c0}
html[data-theme=dark] .login-form .form-error{color:#f1a2b8}
html[data-theme=dark] #generated-password{background:#3b3155;color:#dfc7ff}
html[data-theme=dark] .toast{background:#45405f;color:#fff}
html[data-theme=dark] .toast.error{background:#573548;color:#ffd1df;border-color:#87516a}
