/* Shared, accessible theme control. Keyboard handling comes from the native button. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dedfe2;background:#fff;color:#31363d;border-radius:999px;padding:8px 11px;min-height:36px;margin:0;width:auto;font:inherit;font-size:10px;cursor:pointer;white-space:nowrap}.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-toggle:hover{border-color:#9fa5ae}.theme-sun{display:none}.theme-toggle-track{display:block;width:26px;height:15px;border-radius:20px;background:#d9dde2;padding:2px}.theme-toggle-track i{display:block;width:11px;height:11px;border-radius:50%;background:#fff;transition:transform .15s}.auth-theme-control{position:absolute;right:25px;top:25px}.portal-theme-control{display:flex;justify-content:flex-end;margin-bottom:23px}.brand-wordmark{mix-blend-mode:normal}
:root[data-theme="dark"]{color-scheme:dark;--bg:#101214;--sidebar:#16191d;--white:#191d22;--text:#edf1f5;--muted:#aab3bf;--line:#343b45;--accent:#f2f4f7;--soft:#242a32;--green:#8ebda4;background:#101214;color:#edf1f5}
[data-theme="dark"] :is(body,.shell){background:#101214;color:#edf1f5}
[data-theme="dark"] :is(.sidebar,.topbar,.panel,.app-card,.client-card,.task-card,.table-scroll,dialog,.auth,.skip){background:#191d22;color:#edf1f5;border-color:#343b45}
[data-theme="dark"] :is(.sidebar,.topbar,.panel,.app-card,.client-card,.task-card,.table-scroll,dialog,.auth,.skip) :is(h1,h2,h3,strong){color:inherit}
[data-theme="dark"] :is(.workspace-pill,.week-day,.date-block,.client-initial,.details,.notice,.column,.tabs,.task-card select){background:#242a32;color:#b6c0cd;border-color:#343b45}
[data-theme="dark"] :is(.btn,.circle-link){background:#191d22;color:#e7ecf2;border-color:#46505d}
[data-theme="dark"] :is(.btn,.circle-link):hover{background:#303741;border-color:#748092}
[data-theme="dark"] :is(.btn.primary,.primary,.nav-link.active,.week-day.is-today,.check.done,.today .day-number,.unread-count){background:#f0f3f7;color:#11161c;border-color:#f0f3f7}
[data-theme="dark"] :is(.btn.primary,.primary,.nav-link.active):hover{background:#d9e0ea;color:#11161c;border-color:#d9e0ea}
[data-theme="dark"] :is(.nav-link,.logout,.breadcrumb,.top-actions>span:first-child,.private-label,.user-profile small,.settings-grid p,.settings-grid li,.client-heading p,.client-card p,.client-card small,.project-layout .panel>p,.task-workspace-heading p,.customer-task-row small,.customer-comment small,.comment small,.due,form>small,.auth small,.auth p,.auth .remember){color:#aab3bf}
[data-theme="dark"] :is(.breadcrumb strong,.text-btn,.empty strong,.task-info button,.preview-task-main>button,.day-number){color:#e5eaf0}
[data-theme="dark"] :is(.nav-link:hover,.overview-metrics>button:hover){background:#242a32;color:#f0f3f7}
[data-theme="dark"] .nav-link.active .count{background:#1012141c;color:#19212a}
[data-theme="dark"] :is(input,select,textarea,.input){background:#12161b;color:#edf1f5;border-color:#46505d}
[data-theme="dark"] :is(input,textarea)::placeholder{color:#939eac}
[data-theme="dark"] :is(input,select,textarea,.btn,.theme-toggle):focus-visible{outline:2px solid #b5c8ed;outline-offset:3px}
[data-theme="dark"] :is(.field label,.comment-label,.auth label,.project-status,.deadline-label,.task-info small,.preview-task-main small,.overview-metrics span,.week-day>span,.date-block small,.edit-note,.empty p){color:#aeb8c6}
[data-theme="dark"] :is(.project-status,.project-link,.internal-note,.customer-comment,.customer-task-row,.comment,.task-share-panel,.preview-task,.task-line,.panel-bottom,.overview-metrics>button,.delivery-link-row,.editor-task-shortcut,.suggestion,.footer,header){border-color:#343b45}
[data-theme="dark"] .project-link{color:#e7edf6;background:#1c222a}
[data-theme="dark"] .project-link:hover{border-color:#8190a4}
[data-theme="dark"] :is(.empty-icon){background:#242a32!important;color:#aeb8c6!important}
[data-theme="dark"] :is(.owner-badge,.avatar,.avatar.jakob){background:#303741;color:#e0e6ed}
[data-theme="dark"] :is(.owner-badge.oliver,.avatar.oliver){background:#24383f;color:#b2d0dc}
[data-theme="dark"] .owner-badge.third{background:#342d43;color:#cfc2e5}
[data-theme="dark"] .check{border-color:#697689;background:#191d22}
[data-theme="dark"] .check:hover{background:#303741}
[data-theme="dark"] :is(.overdue,.overview-metrics .has-overdue strong){color:#f3a69c!important}
[data-theme="dark"] .priority{color:#e7bc81}
[data-theme="dark"] .btn.danger{color:#f1a6a6}
[data-theme="dark"] :is(.error,.error-panel){background:#332327;color:#f3b3b3;border-color:#75454e}
[data-theme="dark"] .toast{background:#e9eef6;color:#151a21}
[data-theme="dark"] .toast.error{background:#713c45;color:#fff}
[data-theme="dark"] .sync-error{color:#efa4a4!important}
[data-theme="dark"] .calendar{background:#343b45;border-color:#343b45}
[data-theme="dark"] :is(th,.weekday){background:#20262e;color:#aeb8c6}
[data-theme="dark"] :is(td,th){border-color:#343b45}
[data-theme="dark"] .cal-day{background:#191d22}
[data-theme="dark"] .cal-day.outside{background:#12161b}
[data-theme="dark"] .cal-day.today{background:#27303c}
[data-theme="dark"] .cal-item{background:#342d43;color:#dccdf3;border-color:#9484af}
[data-theme="dark"] .cal-item.jakob{background:#303741;color:#e0e6ed;border-color:#8d99aa}
[data-theme="dark"] .cal-item.oliver{background:#24383f;color:#b2d0dc;border-color:#83afc0}
[data-theme="dark"] .legend{color:#b3bdcc}
[data-theme="dark"] .column.dragover{background:#2b3645;outline-color:#a6b9d6}
[data-theme="dark"] .tabs button.active{background:#414c5a;color:#fff}
[data-theme="dark"] .app-icon.coral{background:#402c29;color:#f3b2a1}
[data-theme="dark"] .app-icon.blue{background:#283548;color:#b6c9e7}
[data-theme="dark"] .app-icon.navy{background:#2b3042;color:#c2c9ec}
[data-theme="dark"] .app-icon.green{background:#293c30;color:#b4d9ba}
[data-theme="dark"] .app-icon.yellow{background:#423b28;color:#e7d194}
[data-theme="dark"] .app-icon.lime{background:#383c29;color:#d2d7a4}
[data-theme="dark"] .app-icon.purple{background:#382f45;color:#d6c2ec}
[data-theme="dark"] :is(.app-card small,.app-card>.arrow){color:#b4becd}
[data-theme="dark"] .task-comment-button.has-unread{border-color:#a9bbd7;color:#edf3ff}
[data-theme="dark"] .workspace-mark{background:#303741}
[data-theme="dark"] .workspace-mark img{filter:none}
[data-theme="dark"] .theme-toggle{background:#191d22;color:#e7edf6;border-color:#46505d}
[data-theme="dark"] .theme-toggle-track{background:#8fa8cf}
[data-theme="dark"] .theme-toggle-track i{background:#17202d;transform:translateX(11px)}
[data-theme="dark"] .theme-moon{display:none}
[data-theme="dark"] .theme-sun{display:block}
[data-theme="dark"] dialog::backdrop{background:#000a}
@media(max-width:620px){.theme-toggle{padding:7px 9px;gap:6px;min-height:34px}.theme-toggle-label{display:none}.top-actions{gap:10px}.top-actions .team-avatars{display:none}.auth-theme-control{top:15px;right:15px}.login-page{padding-top:70px}}
@media(max-width:420px){.top-actions #connection{display:none}.customer-portal header img{max-width:70%}}
@media(prefers-reduced-motion:reduce){.theme-toggle-track i{transition:none}}
[data-theme="dark"] [data-brand-light="/brand-wordmark.svg"]{content:url('/brand-wordmark-white.svg')}
[data-theme="dark"] [data-brand-light="/brand-icon.svg"]{content:url('/brand-icon-white.svg')}
[data-theme="dark"] .nav-link.active,[data-theme="dark"] .nav-link.active:hover,[data-theme="dark"] .nav-link.active>span,[data-theme="dark"] .nav-link.active>svg,[data-theme="dark"] .today .day-number,[data-theme="dark"] .check.done{color:#11161c}
[data-theme="dark"] .week-day.is-today>span{color:#4a5360}
[data-theme="dark"] .week-day.is-today i.has-items{background:#11161c}
[data-theme="dark"] .customer-portal header>span{color:#aab3bf}
[data-theme="dark"] .customer-portal form>button{background:#f0f3f7;color:#11161c}
[data-theme="dark"] .customer-portal form>button:hover{background:#d9e0ea}
[data-theme="dark"] input[type="checkbox"]{accent-color:#b9cbe8}
