[hidden]{display:none!important}
.page-action-group,.quick-mode-links{display:flex;gap:9px;flex-wrap:wrap}.page-action-group button{white-space:nowrap}.quick-mode-links{margin-bottom:18px}.quick-mode-links button{font-size:12px;color:var(--primary);padding:7px 0;margin-right:12px}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.template-card{padding:23px;min-width:0}.template-heading{display:flex;gap:9px;align-items:center;color:var(--primary);margin-bottom:15px}.template-heading>span{display:grid;place-items:center;background:#e4eaf4;width:32px;height:32px;border-radius:8px}.template-heading svg{width:17px}.template-heading small{font-size:11px}.template-card h2{font-size:17px;line-height:1.6;overflow-wrap:anywhere}.template-card>p{font-size:12px;color:var(--muted);line-height:1.8;max-height:64px;overflow:hidden;margin:12px 0}.template-card .detail-actions{margin:20px 0 0;gap:9px;flex-wrap:wrap}.template-card .detail-actions button{font-size:11px}.template-preview{border:1px solid var(--border);border-radius:9px;padding:17px;margin:18px 0;background:#f2f5f9}.template-preview h3{font-size:16px}.template-preview p{font-size:12px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.template-preview>div{border-top:1px solid var(--border);padding:12px 0}.template-preview strong,.template-preview span,.template-preview small{display:block;overflow-wrap:anywhere}.template-preview strong{font-size:13px}.template-preview span,.template-preview small{font-size:11px;color:var(--muted);margin-top:5px}.history-controls,.space-search-controls{display:flex;gap:15px;flex-wrap:wrap;margin-bottom:20px}.history-controls>label:first-child{font-size:11px;color:var(--muted);display:flex;gap:8px;align-items:center}.history-controls select{font:inherit;border:1px solid var(--border);padding:9px;border-radius:6px;background:var(--surface);color:inherit}.history-controls .collection-search{min-width:180px;max-width:none}.history-list{background:var(--surface);border:1px solid var(--border);border-radius:9px;margin:16px 0}.history-entry{display:flex;gap:14px;align-items:flex-start;padding:20px;border-bottom:1px solid var(--border)}.history-entry:last-child{border:0}.history-mark{display:grid;place-items:center;background:#e4eaf4;color:#466caa;border-radius:50%;width:29px;height:29px;flex-shrink:0}.history-mark svg{width:14px}.history-entry>div{flex:1;min-width:0}.history-entry strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.history-entry p{font-size:10px;color:var(--muted);margin:5px 0}.history-entry>div>span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.history-entry>.quiet{font-size:11px;white-space:nowrap}.history-detail{max-height:55vh;overflow:auto;margin-top:18px}.history-detail section{border:1px solid var(--border);border-radius:8px;margin-bottom:14px;padding:15px}.history-detail h4{font-size:12px;overflow-wrap:anywhere}.history-detail h4 small{margin-left:9px;color:var(--muted);font-weight:400}.history-detail dl{font-size:11px;margin-top:12px}.history-detail dl>div{display:grid;grid-template-columns:85px minmax(0,1fr);padding:8px 0;border-top:1px solid var(--border);gap:10px}.history-detail dt{color:var(--muted)}.history-detail dd{margin:0;display:grid;grid-template-columns:1fr auto 1fr;gap:8px;overflow-wrap:anywhere;white-space:pre-wrap}.history-detail dd>span:first-child{color:var(--muted)}.history-detail dd b{font-weight:400;color:var(--muted)}.quick-preview-rows{max-height:53vh;overflow:auto;padding-right:8px}.quick-preview-row{border:1px solid var(--border);border-radius:8px;padding:15px;margin-bottom:15px;min-width:0}.quick-preview-row legend{font-size:12px;color:var(--muted);padding:0 7px}.quick-preview-row label{margin-bottom:14px}.quick-preview-row .form-columns{gap:15px}.space-search-controls>label{flex:1;min-width:180px;margin:0}.space-search-controls>label:nth-child(2){flex:0 1 180px}.space-search-results{max-height:50vh;overflow:auto}.space-search-results>button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 4px;border-top:1px solid var(--border)}.space-search-results>button>span{font-size:10px;color:var(--primary);width:50px;flex-shrink:0}.space-search-results>button>div{flex:1;min-width:0}.space-search-results strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere}.space-search-results small{font-size:11px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:5px}.space-search-results svg{width:13px;color:var(--muted);flex-shrink:0}.space-search-results>button:hover{background:var(--cream)}
@media(max-width:760px){.template-grid{grid-template-columns:1fr}.page-header:has(.page-action-group){flex-wrap:wrap}.page-action-group{gap:7px}.page-action-group button{font-size:11px;padding:8px 11px}.history-entry{padding:15px;gap:9px}.history-entry .quiet{font-size:10px;padding:4px}.history-detail dl>div{grid-template-columns:1fr}.history-detail dd{font-size:10px;gap:6px}.topbar-actions{gap:5px}.topbar-actions .icon-btn{width:29px;height:29px}.template-card{padding:20px}.quick-preview-row{padding:13px}.space-search-controls{gap:12px}.space-search-controls>label:nth-child(2){flex:1}.history-controls{gap:10px}}

:root[data-theme=dark]{color-scheme:dark;color:#dbdfe6;background:#17191d;--primary:#90a9d1;--muted:#9ba4b3;--border:#383d46;--surface:#22252b;--cream:#282d35}
[data-theme=dark] body,[data-theme=dark] .workspace{background:#17191d;color:#dbdfe6}
[data-theme=dark] :is(.sidebar,.topbar,.panel,.plan-card,dialog,.capture-box,.collection-search,.filter-select select,.task-filter-bar select,.space-row,.space-switcher,.hour-slot,.hour-ruler,.hour-date,.hour-corner,.quick-preview-row,.backup-text,textarea,input,select){background:var(--surface);color:#dbdfe6;border-color:var(--border)}
[data-theme=dark] :is(h1,h2,h3,h4,.task-title,.plan-title,.capture-main h3,.brand,.space-switcher strong,.space-option strong,.template-card h2,.metrics strong,.commit-plan strong,.task-main strong,.session-card h3){color:#dde5f1}
[data-theme=dark] :is(.section-note,.form-note,.page-header p,.plan-card>p,.task-main span,.capture-main p,.breadcrumb,.space-switcher small,.space-option small,.profile small,.page-footer,.tag-usage,.tag-nav,.nav-label,.calendar-toolbar strong,.task-meta-line>span,.collection-search input::placeholder,.filter-select,.plan-state-tabs button,.task-scope-tabs button,.window-rows span,small){color:#9ea9ba}
[data-theme=dark] :is(.secondary,.quiet,.icon-btn,.settings-link,.manage-tags-link,.task-title){color:#b5c6e1;border-color:var(--border)}
[data-theme=dark] :is(.primary,.brand-mark){background:#7493c6;color:#0f1725}
[data-theme=dark] .primary:hover{background:#92aad2}
[data-theme=dark] :is(.nav-item,.tag-nav){color:#adb6c5}
[data-theme=dark] :is(.nav-item.selected,.tag-nav.selected,.space-row.active,.task-scope-tabs .chosen,.plan-state-tabs .chosen,.segmented .chosen){background:#213452;color:#c8d6ec}
[data-theme=dark] :is(.tag-choice span,.template-preview,.bulk-toolbar,.tip-box,.task-description,.inherit-preview,.draggable-task,.modal-context,.space-avatar,.mode-card.selected,.history-mark,.template-heading>span,.calendar-summary){background:#272e38;color:#abbedc;border-color:#404958}
[data-theme=dark] .tag-choice input:checked+span{background:#294066;color:#d7e3f5;border-color:#7393c6}
[data-theme=dark] .tag-chip{background:#2e3642;color:#b5c6e1}
[data-theme=dark] .tag-chip.blue{background:#2c3b4a;color:#b0cfea}
[data-theme=dark] .tag-chip.amber{background:#443b26;color:#e1c588}
[data-theme=dark] .tag-chip.rose{background:#493036;color:#e5b8c0}
[data-theme=dark] .tag-chip.violet{background:#3c324d;color:#d6c2ef}
[data-theme=dark] :is(.tag-chip.slate,.tag-chip.untagged){background:#33373d;color:#b4bac4}
[data-theme=dark] .priority-chip.p3{background:#513037;color:#efb7c0!important}
[data-theme=dark] .priority-chip.p2{background:#4a4028;color:#e7ca8e!important}
[data-theme=dark] .priority-chip.p1{background:#293e50;color:#b1cde5!important}
[data-theme=dark] :is(.today-hero,.focus-card,.session-card,.hour-event,.calendar-event){background:#282f3a;color:#cbd7ea;border-color:#445062}
[data-theme=dark] :is(.external-card,.hour-event.external,.calendar-event.external){background:#3d3527;color:#d6c6a7;border-color:#5b4e37}
[data-theme=dark] :is(.hero-copy p,.timeline-time,.session-meta,.session-card p,.timeline-end,.focus-plan small,.track-label,.review-footnote,.day-heading span,.month-weekdays span,.hour-ruler span,.hour-date,.hour-corner){color:#9fabbd}
[data-theme=dark] :is(.month-day.other-month,.mode-card.unavailable){background:#1e2127;color:#89909c}
[data-theme=dark] :is(.warning,#reminder-panel){background:#3c3524;border-color:#655536;color:#e5cd91}
[data-theme=dark] :is(.reminder-row strong,.reminder-heading strong){color:#efd799}
[data-theme=dark] :is(.success-note,.badge.active,.badge.considering){background:#223452;color:#aec0de}
[data-theme=dark] :is(.capacity-track,.plan-progress>div){background:#3c4450}
[data-theme=dark] :is(.hour-slot:hover,.space-switcher:hover,.tag-nav:hover,.nav-item:hover){background:#2e3642}
[data-theme=dark] :is(.day-heading,.calendar-toolbar,.month-day,.month-weekdays,.hour-day,.hour-slot,.task-row,.capture-row,.section-heading,.review-card,.tag-manager-row,.checklist-detail label){border-color:var(--border)}
[data-theme=dark] .hour-event[data-duration]::after{background:#2f3744ed;color:#cbd8ec}

[data-theme=dark] .secondary{background:var(--surface);color:#c4d1e7}
[data-theme=dark] :is(.secondary:hover,.quiet:hover,.icon-btn:hover){background:#2e3642;color:#d9e2f1}
[data-theme=dark] :is(.profile,.page-footer,.session-actions,.timeline-line){border-color:var(--border)}
[data-theme=dark] .breadcrumb strong{color:#adbfdd}
[data-theme=dark] :is(.hero-button,.session-actions button,.section-heading a,.focus-plan,.task-duration,.plan-estimate,.plan-target){color:#9eb4d8}
[data-theme=dark] .metrics>div{border-color:#404a5a}
[data-theme=dark] :is(.day-heading,.segmented,.review-card){background:var(--surface);border-color:var(--border)}
[data-theme=dark] :is(.review-intro,.commit-plan,.commit-capacity,.plan-illustration,.capture-symbol,.space-current,.section-heading h2>span){background:#282f3a;color:#a7bbdb}
[data-theme=dark] :is(.calendar-event strong,.calendar-event>span,.calendar-event small,.hour-event-main small,.review-card p,.review-intro p,.repeat-fields legend){color:#a0b5d8}
[data-theme=dark] .calendar-event.external :is(strong,small,span){color:#dbc9a6}
[data-theme=dark] :is(.badge.paused,.badge.completed,.badge.dropped){background:#32373e;color:#bdc5d1}
[data-theme=dark] .review-card-icon{background:#443b29;color:#d5bd86}
[data-theme=dark] :is(.day-add:hover,.task-check:hover,.plan-state-tabs button:hover,.drop-target){background:#213351}
[data-theme=dark] :is(.calendar-day,.repeat-fields,.focus-plan+.focus-plan){border-color:var(--border)}
