body[data-tasks-theme="dark"]{color-scheme:dark;background:radial-gradient(ellipse at 75% 5%,#37245166,transparent 50%),#101523;color:#dce6fa;--task-line:#35415b;--task-ink:#e1e9fa}
body[data-tasks-theme="dark"] :is(.tasks-header,.tasks-main,.tasks-product,.tasks-surface,.tasks-settings,.product-panel,.product-project-card,.task-row,.task-comment,.product-team-card,.tasks-toolbar,dialog,.task-form,.project-form,.tasks-feedback){background-color:#192235;background-image:none;color:#dce6fa;border-color:#35415b}
body[data-tasks-theme="dark"] :is(h1,h2,h3,.task-main b,.tasks-toolbar h2,.tasks-setting b,.product-panel b,.task-history b,.task-form label){color:#edf3ff}
body[data-tasks-theme="dark"] :is(p,small,label,.task-meta,.tasks-summary,.product-note,.tasks-footer,.tasks-pagination,.tasks-kicker,.product-toolbar){color:#afc2e1}
body[data-tasks-theme="dark"] :is(input,textarea,select,.tasks-secondary,.tasks-toolbar button,.auth-account-button){background:#111a2b;color:#dce8ff;border-color:#475677}
body[data-tasks-theme="dark"] :is(.task-row:hover,.task-row:focus-visible){background:#26314b}
body[data-tasks-theme="dark"] a{color:#8ddaf4}body[data-tasks-theme="dark"] #tasksInstallHelp{color:#b5d1fc}
.tasks-neon{display:none}
body[data-tasks-theme="dark"] .tasks-neon{display:block;position:fixed;right:7px;top:40%;z-index:5;width:22px;margin:0;padding:4px 2px;writing-mode:vertical-rl;pointer-events:none;user-select:none;color:#d8b9ff;animation:tasks-neon-drift 8s ease-in-out infinite}
.tasks-neon strong{font-size:13px;font-weight:700;letter-spacing:.19em;line-height:1.5;text-shadow:0 0 5px #b48bff,0 0 13px #8b4cde,0 0 23px #655cda}
@keyframes tasks-neon-drift{0%,100%{transform:translateY(0);opacity:.7}50%{transform:translateY(-7px);opacity:1}}
[data-tasks-paused="true"] .tasks-neon{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){body[data-tasks-theme="dark"] .tasks-neon{animation:none}}
@media(max-width:900px),(pointer:coarse){body[data-tasks-theme="dark"] .tasks-neon{display:none}}body[data-tasks-theme="dark"] :is(.tasks-filter-fold,.tasks-saved-fold)>summary{color:#bdcff0;font-size:13px}body[data-tasks-theme="dark"] .tasks-header-search button{color:#b3d6ff}

/* Keep dark text/surface pairs together, including section-specific light gradients. */
body[data-tasks-theme="dark"] .tasks-main :is(.product-toolbar,.product-member,.product-departments,.product-timeline,.product-panel,.product-project-card,.product-empty,.kanban-column,.kanban-card){background:#19263b;color:#e4edfc;border-color:#3f526d;box-shadow:0 7px 22px #050b1729}
body[data-tasks-theme="dark"] :is(.product-toolbar b,.product-setting b,.product-timeline b,.product-progress-heading b,.product-project-bottom b,.kanban-open,.kanban-column h2,.kanban-column h3){color:#edf3ff}
body[data-tasks-theme="dark"] :is(.product-progress-heading,.product-project-bottom,.kanban-person,.kanban-project,.kanban-deadline,.kanban-description,.kanban-hint,.kanban-readonly,.product-departments>summary){color:#bdcee8}
body[data-tasks-theme="dark"] .product-avatar{box-shadow:0 0 0 4px #28495b}
body[data-tasks-theme="dark"] :is(input,textarea)::placeholder{color:#9bb0cc;opacity:1}
body[data-tasks-theme="dark"] dialog :is(input,textarea,select):disabled{background:#202c40;color:#c0d0e7;border-color:#43526c;opacity:1}
body[data-tasks-theme="dark"] :is(.tasks-view-toggle,.kanban-column>header,.kanban-column>footer){background:#202f46;color:#d6e4f8;border-color:#43526c}
body[data-tasks-theme="dark"] :is(.tasks-view-toggle button,.kanban-column>footer button,.kanban-move button,.product-activity-link){background:#253751;color:#c9ddff;border-color:#526784}
body[data-tasks-theme="dark"] .tasks-view-toggle button[aria-pressed="true"]{background:#6a55dc;color:white}
body[data-tasks-theme="dark"] .kanban-deadline.overdue{color:#ffb5bf}
/* Editor surfaces and text must switch themes together. */
body[data-tasks-theme="dark"] :is(.task-collaborators,.task-review-toggle){background:#202c40;background-image:none;border-color:#435675;color:#e4edfc}
body[data-tasks-theme="dark"] :is(.task-collaborator-heading,.task-collaborator-heading b,.task-review-toggle,.task-review-toggle span){color:#edf3ff}
body[data-tasks-theme="dark"] :is(.task-collaborators p,.task-collaborator-heading span,.task-collaborator-chips>small,.task-collaborator-option small,.task-collaborator-options>p,.task-review-toggle small){color:#b8cbe6}
body[data-tasks-theme="dark"] .task-collaborator-chip{background:#354164;border-color:#626e99;color:#e3eaff}
body[data-tasks-theme="dark"] .task-collaborator-option:hover{background:#30415d}
body[data-tasks-theme="dark"] .task-collaborator-option input,body[data-tasks-theme="dark"] .task-review-toggle input{accent-color:#b59aff}
body[data-tasks-theme="dark"] .time-panel{background:#202c40;border-color:#435675;color:#edf3ff}
body[data-tasks-theme="dark"] .time-panel :is(.time-note,.time-feedback,.time-panel-top small,.time-mine span,.time-running-row small,.time-history>div>span:nth-child(2)){color:#b8cbe6}
body[data-tasks-theme="dark"] .time-panel :is(.time-history summary,.time-running){color:#c8bbff}
body[data-tasks-theme="dark"] .time-refresh{background:#30415d;border-color:#526887;color:#e3eaff}
body[data-tasks-theme="dark"] .time-panel :is(.time-running-row,.time-history>div){border-color:#435675}
body[data-tasks-theme="dark"] .task-readiness{background:#202c40;color:#edf3ff;border-color:#435675}body[data-tasks-theme="dark"] .task-readiness li{border-color:#435675}body[data-tasks-theme="dark"] .task-readiness :is(p,strong){color:#b8cbe6}body[data-tasks-theme="dark"] .task-readiness strong.is-ready{color:#82e4ca}body[data-tasks-theme="dark"] .task-description-tools summary{color:#c8bbff}
body[data-tasks-theme="dark"] .tasks-main .tasks-fold-tools>details[open]>.tasks-control-filters,body[data-tasks-theme="dark"] .tasks-main .tasks-fold-tools>details[open]>.tasks-saved-views{background:#202c40;border-color:#435675;color:#edf3ff}
