/* Fix only switch geometry; preserve the existing View menu. */
#norellaViewMenu #norellaViewSidebar{box-sizing:border-box!important;display:block!important;appearance:none!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:20px!important;min-height:20px!important;max-height:20px!important;padding:0!important;margin:0!important;border:1px solid var(--theme-border)!important;border-radius:12px!important;background:var(--theme-input)!important;box-shadow:none!important;align-self:center}
#norellaViewMenu #norellaViewSidebar:before{box-sizing:border-box;position:absolute;width:14px;height:14px;left:2px;top:50%;transform:translateY(-50%);border-radius:50%;background:var(--theme-muted);transition:left .12s}
#norellaViewMenu #norellaViewSidebar:checked{background:var(--theme-accent)!important}
#norellaViewMenu #norellaViewSidebar:checked:before{left:18px;background:var(--theme-surface)}
.u-completion-dialog{width:min(480px,calc(100vw - 32px));max-width:480px!important;box-sizing:border-box;padding:24px!important;background:var(--theme-surface)!important;color:var(--theme-text)!important;border:1px solid var(--theme-border);border-radius:14px}
.u-completion-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.u-completion-dialog h2{margin:0;font-size:20px;line-height:1.3}.u-completion-dialog header button{flex:none}
.u-completion-title{font-weight:600;overflow-wrap:anywhere;margin:0 0 20px;line-height:1.5}.u-completion-dialog label{display:grid;gap:8px;font-size:13px;color:var(--theme-text)}.u-completion-dialog label small{font-weight:400;color:var(--theme-muted)}.u-completion-dialog textarea{width:100%;box-sizing:border-box;min-height:96px;padding:12px;background:var(--theme-input);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:8px;font:inherit;resize:vertical}.u-completion-dialog .w-muted{font-size:12px;line-height:1.5;margin:12px 0 24px}.u-completion-dialog footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.u-completion-dialog footer button{font-size:13px;min-height:40px}
body .u-task .u-priority,body .u-task .u-state{display:inline-flex;align-items:center;min-height:26px;box-sizing:border-box;padding:4px 10px!important;border:1px solid transparent!important;border-radius:6px!important;font-size:11px!important;font-weight:750!important;line-height:16px;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap;flex:none}
body .u-task .u-priority.priority-urgent{background:#b42318!important;color:#fff!important;border-color:#b42318!important}
body .u-task .u-priority.priority-high{background:#b54708!important;color:#fff!important;border-color:#b54708!important}
body .u-task .u-priority.priority-normal{background:#e4e7ec!important;color:#344054!important;border-color:#98a2b3!important}
body .u-task .u-priority.priority-low{background:var(--theme-surface2)!important;color:var(--theme-muted)!important;border-color:var(--theme-border)!important}
body .u-task .u-state.state-new{background:#175cd3!important;color:#fff!important;border-color:#175cd3!important}
body .u-task .u-state.state-in_progress{background:#fef0c7!important;color:#93370d!important;border-color:#dc6803!important}
body .u-task .u-state.state-done{background:#067647!important;color:#fff!important;border-color:#067647!important}
.u-task-tabs{display:flex;gap:6px;margin:24px 0 18px;padding:4px;width:fit-content;max-width:100%;box-sizing:border-box;background:var(--theme-surface2);border:1px solid var(--theme-border);border-radius:10px}.u-task-tabs button{min-height:40px;padding:8px 18px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--theme-muted)!important;font-size:13px!important;font-weight:650!important}.u-task-tabs button[aria-selected=true]{background:var(--theme-primary)!important;color:#fff!important;box-shadow:0 1px 4px var(--theme-shadow)}
[data-task-list]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px;align-items:stretch}[data-task-list]>.daily-empty{grid-column:1/-1;padding:28px 0}
[data-task-list]>.u-task{display:flex;flex-direction:column;gap:10px;min-width:0;box-sizing:border-box;margin:0;padding:18px!important;border:1px solid var(--theme-border)!important;border-radius:12px!important;background:var(--theme-surface)!important}
[data-task-list]>.u-task>header{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0!important}[data-task-list]>.u-task>header strong{flex:1 1 100%;line-height:1.5;overflow-wrap:anywhere;font-size:15px}[data-task-list]>.u-task .u-project{margin:2px 0;overflow-wrap:anywhere}[data-task-list]>.u-task>small{margin:0;font-size:12px;line-height:1.5}[data-task-list]>.u-task .u-actions{margin-top:auto!important;padding-top:12px;display:flex;gap:8px;flex-wrap:wrap}[data-task-list]>.u-task .u-actions button{font-size:12px!important;padding:9px 12px!important;min-height:38px}
.u-heading{justify-content:flex-start!important;gap:12px}.u-heading>div:first-child{margin-right:auto}.u-heading>button{flex:none}.u-toolbar select[data-state][hidden]{display:none!important}
@media(max-width:700px){.u-task-tabs{width:100%;gap:3px}.u-task-tabs button{flex:1;padding:8px!important;white-space:nowrap}[data-task-list]{grid-template-columns:minmax(0,1fr)}}
