.theme-toggle{width:44px;height:44px;min-height:44px;flex:none;padding:0!important;display:grid;place-items:center;background:#f1edf7;color:#6947a1;border:0;border-radius:50%;cursor:pointer}.theme-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-toggle:focus-visible{outline:3px solid #b5a0d4;outline-offset:3px}.theme-toggle-floating{position:fixed;right:16px;top:calc(12px + env(safe-area-inset-top));z-index:90}
html[data-theme=dark]{color-scheme:dark;--dash-bg:#14121b;--dash-ink:#eee9f6;--dash-muted:#b4a9c3;--dash-accent:#c9a9f4;--dash-line:#393141;--dash-green:#93d2b7;--ink:#eee9f6;--text:#eee9f6;--dark:#eee9f6;--purple:#c9a9f4;--muted:#b4a9c3;--line:#393141;--paper:#201c2a;--bg:#14121b;--pink:#30233e;--theme-surface:#201c2a;--theme-soft:#2b2336}
html[data-theme=dark] body,html[data-theme=dark] body.app-workspace,html[data-theme=dark] body[data-page=chat]{background:#14121b!important;color:#eee9f6!important}
html[data-theme=dark] .shared-workspace{--purple:#c9a9f4;--dark:#eee9f6;--text:#eee9f6;--pink:#30233e;--line:#393141;--muted:#b4a9c3}
html[data-theme=dark] :is(.card,.sidebar,.topbar,.chat-appbar,.conversation,.chat-tools,.task-row,.project-tile,.document-item,.document-card,.filters,.day-event,.mobile-day-event,.day-panel,.calendar-day,.login-side,.login-box,.chat-entry,dialog,.stats>div,.home-agenda-item,.inbox-note,.app-bottom-nav){background:#201c2a!important;color:#eee9f6!important;border-color:#393141!important;box-shadow:none}
html[data-theme=dark] :is(h1,h2,h3,.brand,.login-brand,.task-title,.project-title,.chat-appbar strong,.mobile-event-title,.chat-task-title){color:#eee9f6!important}
html[data-theme=dark] :is(.muted,.intro,.eyebrow,.meta,.breadcrumb,.sidebar-note,.profile small,.brand small,.chat-appbar span,.task-note,.task-meta,.message-label,.composer-note,.message-steps,.mode-note,.composer-permissions,.nav-caption,.document-card p,.document-item p,.chat-task-meta,.message-copy,.learn-feedback summary,.calendar-outside){color:#b4a9c3!important}
html[data-theme=dark] :is(input,textarea,select){background:#17131f!important;color:#eee9f6!important;border-color:#554461!important}html[data-theme=dark] ::placeholder{color:#a89bb9;opacity:1}
html[data-theme=dark] :is(.secondary,.icon-button,.theme-toggle,.chat-close,.avatar,.tag,.source-link,.calendar-chip,.calendar-entry,.uploaditem,.task-board-column,.chat-task-card,.message.user,.prompt-examples button,.side-nav a.active,.side-nav a:hover,.app-bottom-nav a[aria-current=page],.date-navigator button,pre,.message-content code,.control-status,.admin-code){background:#30263e!important;color:#dfc5ff!important;border-color:#51405e!important}
html[data-theme=dark] :is(.side-nav a,.text-link,.profile,a){color:#c9a9f4}html[data-theme=dark] .brand-mark,html[data-theme=dark] .primary-action,html[data-theme=dark] form>button:not(.secondary):not(.icon-button):not(.theme-toggle){background:#7653a6;color:#fff}
html[data-theme=dark] #chat-form{background:#201c2a!important;border-color:#393141!important}html[data-theme=dark] .messages{background:#14121b!important}html[data-theme=dark] .prompt-examples{background:#201c2a!important;border-color:#393141!important}
html[data-theme=dark] .tick{background:#201c2a!important;color:#c9a9f4!important;border-color:#86689d!important}html[data-theme=dark] .message.assistant{color:#eee9f6}html[data-theme=dark] .message-steps{border-color:#685178}
html[data-theme=dark] :is(.error,.admin-danger,.admin-warning){background:#38212b!important;color:#ffc4c4!important;border-color:#704151!important}html[data-theme=dark] :is(.success,.secure-label,.control-status.active){background:#20382f!important;color:#a7dfbe!important}
html[data-theme=dark] :is(.tag.hoog,.tag.urgent,.task-blocked,.chat-task-warning){color:#efbd8f!important}html[data-theme=dark] .calendar-day.today,html[data-theme=dark] .calendar-day.selected{border-color:#c9a9f4!important}html[data-theme=dark] .calendar-day.outside{opacity:.6}
html[data-theme=dark] :is(td,th,.profile,.change-item,.search-result,.memory-item,.handoff-item,.checks,iframe){border-color:#393141!important}html[data-theme=dark] .login-story{background:linear-gradient(145deg,#30203d,#17121d)!important;color:#f4eaff}
html[data-theme=dark] .app-workspace .home-compose{background:linear-gradient(130deg,#463063,#694486)!important}html[data-theme=dark] .home-compose input{background:#ffffff15!important}html[data-theme=dark] .home-compose h2{color:#fff!important}
html[data-theme=dark] .composer-entry{background:#292233!important;border-color:#554461!important}html[data-theme=dark] #chat-attach{background:transparent!important;color:#dfc5ff!important}html[data-theme=dark] .chat-attachment-chip{background:#292233;color:#eee9f6;border-color:#554461}html[data-theme=dark] #chat-form #chat-input{background:transparent!important}html[data-theme=dark] .archive-attachment{background:#30263e!important;color:#eee9f6!important}

/* Semantic dashboard surfaces: task links remain links; only the selected day is accented. */
html[data-theme=dark] .focus-card{background:#201c2a!important;color:#eee9f6!important;border-color:#393141!important}
html[data-theme=dark] .focus-card h2{color:#eee9f6!important}
html[data-theme=dark] :is(.section-kicker,.focus-card>.muted,.focus-item small,.week-preview small,.project-count,.stat-note,.focus-link){color:#b4a9c3!important}
html[data-theme=dark] .focus-item{border-color:#393141!important}
html[data-theme=dark] .focus-number{background:#3a2d46!important;color:#dfc5ff!important}
html[data-theme=dark] .focus-item button,html[data-theme=dark] .week-preview button,html[data-theme=dark] #week-detail button{background:transparent!important;color:#eee9f6!important;border:0;box-shadow:none}
html[data-theme=dark] .week-day{background:#30263e!important;color:#dfc5ff!important;border-color:transparent!important}
html[data-theme=dark] .week-day.selected{background:#7653a6!important;color:#fff!important;border-color:#b490df!important}
html[data-theme=dark] .week-day :is(span,strong){color:inherit!important}
html[data-theme=dark] .week-day em{background:#c9a9f4!important}html[data-theme=dark] .week-day.selected em{background:#fff!important}html[data-theme=dark] .week-day em.empty-dot{background:transparent!important}
html[data-theme=dark] .project-symbol{background:#30263e!important;color:#dfc5ff!important}
html[data-theme=dark] :is(.quickviews,.week-preview,.project-progress,.progress-bar){border-color:#393141!important}

html[data-theme=dark] :is(.selection-bar,.calendar-toolbar){background:#201c2a!important;color:#eee9f6!important;border-color:#393141!important}
html[data-theme=dark] :is(#week-detail,#week-detail strong,#week-detail p,.project-count,.stat-note){color:#b4a9c3!important}
html[data-theme=dark] .agenda-compact-month button{background:transparent;color:#dfc5ff!important}html[data-theme=dark] .agenda-compact-month button.selected{background:#7653a6!important;color:#fff!important}
