/* Dense lists: one record, one completion action, predictable columns. */
#shell[data-page] .task-row,#shell[data-page] .task-group .task-row{display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;gap:8px!important;min-height:38px!important;padding:3px 2px!important;border-left:0!important;border-radius:0!important;align-items:center!important}
#shell[data-page] .task-row-body{display:grid!important;grid-template-columns:minmax(140px,1fr) 108px 70px 80px;gap:10px;align-items:center;min-width:0}
#shell[data-page] .task-row .task-meta{display:contents!important;margin:0!important}
#shell .dense-task-title{min-width:0;display:flex;align-items:center;gap:6px}
#shell[data-page] .task-row .task-name{font-size:15px!important;font-weight:450!important;line-height:1.35!important;min-height:28px!important;margin:0!important;padding:4px 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#shell[data-page] .task-row .task-badges{display:flex!important;flex:0 0 auto;gap:3px!important;margin:0!important}
#shell .task-row .task-badges:empty{display:none!important}
#shell .dense-task-date,#shell .dense-task-category,#shell .dense-task-status{font-size:13px;color:#647b98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#shell .dense-task-date.late{color:#c34943!important}
#shell[data-page] .task-row.is-overdue{background:#fff5f4!important;padding-left:6px!important}
#shell[data-page] .task-row .tag{font-size:10px!important;padding:2px 4px!important;line-height:1.2!important}
#shell[data-page] .task-completion{display:block!important;width:30px!important;min-width:30px!important;height:28px!important;flex-basis:30px!important;border-radius:6px!important;background:white!important;border-color:#a5c9fa!important}
#shell .completion-caption{display:none!important}
#shell .completion-face{gap:0}
#shell .completion-mark{width:18px;height:18px;background:transparent!important;border-radius:0}
#shell .completion-mark .ui-icon{width:15px;height:15px;filter:brightness(0) saturate(100%) invert(36%) sepia(95%) saturate(2900%) hue-rotate(200deg)!important}
#shell[data-page] .task-completion:has(input:checked){background:#e8f2ff!important;border-color:#d2e4fa!important}
#shell .completed .task-name{color:#8091a8!important}
#shell .dense-column-head{display:grid;grid-template-columns:minmax(140px,1fr) 108px 70px 80px 32px;gap:10px;padding:8px 2px 7px;color:#617995;font-size:12px;font-weight:600;border-bottom:1px solid #dce7f4;min-height:31px}
#shell .task-day-group h3{font-size:15px;margin:13px 0 5px;font-weight:600}
#shell .completed-list>summary,#shell #today-completed>summary{font-size:13px;min-height:32px;padding:8px 0;color:#617995}
#shell[data-page] .panel-title{margin-bottom:8px;min-height:26px}
#shell[data-page] .panel-title h2{font-size:19px!important;font-weight:650!important;letter-spacing:-.2px}
#shell .light-today-advice{padding:8px 12px!important;min-height:36px!important;background:#eff6ff!important;color:#1762b5!important;border:1px solid #e2edfc!important;border-radius:7px!important;margin-bottom:10px!important;gap:8px!important}
#shell .light-today-advice>.light-icon{width:19px;height:19px;flex-basis:19px;filter:none!important}
#shell .light-today-advice>span{display:flex;align-items:center;gap:8px}
#shell .light-today-advice small{font-size:12px!important;color:#4f739d!important;margin:0!important;white-space:nowrap}
#shell .light-today-advice strong{font-size:14px!important;font-weight:500!important;line-height:1.3}
#shell #today-view .today-hero{margin-bottom:12px!important}
#shell #today-view .hero-copy p{font-size:13px!important}
#shell .main-actions,#shell[data-page=overview] .main-actions{gap:7px;margin-bottom:10px!important}
#shell .main-actions button{min-height:32px!important;padding:6px 11px!important;font-size:13px!important}
#shell .dense-today-aside{min-width:0;display:flex;flex-direction:column;gap:22px;border-left:1px solid #e4edf7;padding-left:18px}
#shell .dense-today-aside .task-row-body{display:block!important}
#shell .dense-today-aside .dense-task-category,#shell .dense-today-aside .dense-task-status{display:none}
#shell .dense-today-aside .dense-task-date{font-size:12px}
#shell .dense-today-aside .task-row .task-name{font-size:14px!important}
#shell .dense-today-aside .task-row .task-badges{display:none!important}
#shell .dense-today-aside .task-row{min-height:50px!important}
#shell .undated-actions{display:flex;gap:4px;margin:0 0 5px!important;padding:0!important}
#shell .undated-actions button{min-height:26px!important;padding:3px 7px!important;font-size:11px!important;background:#f5f9fe}
#shell .overdue-link{font-size:13px!important;min-height:30px!important;padding:6px 8px!important;margin:6px 0!important}
#shell .today-next{font-size:13px!important;margin:0 0 8px!important}
#shell .habit-compact-row{min-height:62px!important;padding:8px 0!important;gap:10px!important}
#shell .habit-compact-row .task-name{font-size:15px!important;min-height:24px!important;padding:0!important;font-weight:500!important}
#shell .habit-compact-title>span{font-size:12px!important;line-height:1.4}
#shell .habit-compact-body progress{height:4px!important;max-width:160px;margin-top:4px!important}
#shell .habit-action-plus,#shell .habit-quick-plus{width:32px!important;min-width:32px!important;height:32px!important;flex-basis:32px!important;padding:7px!important;border-radius:7px!important}
#shell .habit-action-plus .ui-icon,#shell .habit-quick-plus .ui-icon{width:19px;height:19px}
#shell .habit-list{gap:0!important}
#shell .habit-list .habit-card{grid-template-columns:minmax(0,1fr) 36px!important;padding:8px 2px!important;column-gap:12px!important}
#shell .habit-list .habit-top>.task-name{font-size:16px!important;min-height:24px!important;line-height:1.4!important;font-weight:500!important}
#shell .habit-list .habit-count{font-size:13px!important;line-height:1.4}
#shell .habit-list .habit-body progress{height:4px!important;margin-top:4px!important;max-width:300px}
#shell .habit-list .habit-adjust>summary{font-size:12px;min-height:24px;padding:4px 0}
#shell .habit-list .habit-top>.habit-action-plus,#shell .habit-list .habit-top>.task-completion{margin-top:4px!important}
#shell .notes-grid{display:flex!important;flex-direction:column;gap:0!important}
#shell .note-card{display:grid!important;grid-template-columns:minmax(140px,1fr) minmax(160px,1.3fr) 80px 180px;gap:12px;align-items:center;padding:7px 2px!important;min-height:48px!important;border:0!important;border-bottom:1px solid #e5edf7!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
#shell .note-card>h3{grid-column:1;grid-row:1;margin:0!important;min-width:0}
#shell .dense-note-open{display:block;width:100%;min-height:30px!important;border:0!important;background:transparent!important;padding:3px 0!important;text-align:left;font-size:15px!important;font-weight:500!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#102044}
#shell .note-card>.note-body{grid-column:2;grid-row:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important;font-size:13px!important;color:#647b98;display:block!important;line-height:1.5;max-height:24px}
#shell .note-card>.note-top{grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;gap:3px;margin:0!important}
#shell .note-card .tag,#shell .note-card .pin-mark{font-size:11px!important;padding:2px 4px!important;background:#f4f7fb}
#shell .note-card>.note-foot{grid-column:4;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;border:0!important;padding:0!important;margin:0!important;font-size:12px!important}
#shell .dense-note-menu{position:relative;flex:0 0 auto}
#shell .dense-note-menu>summary{font-size:12px;color:#326da8;cursor:pointer;min-height:30px;padding:7px 0}
#shell .dense-note-menu .note-actions{position:absolute;z-index:30;top:100%;right:0;display:flex;flex-direction:column;min-width:145px;padding:5px;background:#fff;border:1px solid #dce7f4;border-radius:8px;box-shadow:0 8px 22px #17365b15}
#shell .note-card .note-actions button{font-size:13px!important;min-height:32px!important;padding:6px 9px!important;border:0;text-align:left}
#shell .compact-agenda .agenda-row{gap:10px}
#shell .compact-agenda .agenda-event{min-height:46px!important;padding:3px 0!important;gap:8px!important}
#shell .compact-agenda .agenda-event .task-name{font-size:15px!important;font-weight:500!important;min-height:24px!important;padding:0!important;line-height:1.4!important}
#shell .compact-agenda .agenda-event .small{font-size:12px!important;line-height:1.4}
#shell .compact-agenda .agenda-event .task-completion{width:30px!important;min-width:30px!important;flex-basis:30px!important}
#shell[data-page=calendar] .compact-agenda .time-hour{height:24px!important;min-height:24px!important}
#shell .compact-agenda .agenda-gap{font-size:11px!important;min-height:22px!important;padding:2px!important;border:0!important;background:#f7faff!important}
#shell .reward-row,.trash-row{min-height:36px!important;padding:6px 0!important;font-size:14px!important;border-bottom:1px solid #edf2f8}
.trash-row button{min-height:32px;font-size:13px;padding:5px 8px}
.light-search-results>button{min-height:44px!important;padding:7px 9px!important}
@media(min-width:1100px){
 #shell .sidebar{width:180px;padding:22px 12px 16px}
 #shell .content{margin-left:180px}
 #shell .sidebar #navigation{gap:3px;margin-top:22px}
 #shell .sidebar #navigation button{padding:9px 10px!important;min-height:39px!important;font-size:15px!important;gap:10px!important}
 #shell main,#shell[data-page=overview] main{max-width:1560px!important;padding:20px 24px 40px!important}
 #shell .utility-header{top:20px;right:24px}
 #shell .page-heading{min-height:83px;margin-bottom:12px}
 #shell h1,#shell .page-heading h1{font-size:29px}
 #shell .page-heading .muted{font-size:14px}
 #shell .light-week-control{top:62px;right:24px}
 #shell .light-today-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 270px!important;gap:20px!important;align-items:start}
 #shell #today-content .today-habits{margin:0!important}
 #shell[data-page=overview] .main-actions{position:absolute!important;top:112px;right:24px;margin:0!important;z-index:15}
 #shell[data-page=overview] .light-today-advice{margin-right:225px!important}
 #shell #today-view .today-hero{margin:4px 0 15px!important}
}
@media(min-width:801px) and (max-width:1099px){
 #shell .light-today-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 #shell .dense-today-aside{border-left:0;padding-left:0;display:grid;grid-template-columns:1fr 1fr;gap:20px}
 #shell .task-row-body{grid-template-columns:minmax(120px,1fr) 100px 65px 68px!important;gap:6px}
 #shell .dense-column-head{grid-template-columns:minmax(120px,1fr) 100px 65px 68px 32px;gap:6px}
 #shell .note-card{grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) 65px 100px;gap:8px}
 #shell .note-foot time{display:none}
}
@media(max-width:800px){
 #shell .dense-column-head{display:none}
 #shell[data-page] .task-row,#shell[data-page] .task-group .task-row{grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;min-height:58px!important;padding:5px 0!important}
 #shell[data-page] .task-row-body{display:block!important;min-width:0}
 #shell[data-page] .task-row .task-name{font-size:16px!important;font-weight:450!important;white-space:normal;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:22px!important;padding:0!important;line-height:1.3!important}
 #shell[data-page] .task-row .task-meta{display:flex!important;flex-wrap:wrap;gap:3px 8px;margin:3px 0 0!important;line-height:1.3!important}
 #shell .dense-task-date,#shell .dense-task-category,#shell .dense-task-status{font-size:12px;line-height:1.35}
 #shell .dense-task-title{gap:5px}
 #shell .task-row .task-badges{max-width:50px!important}
 #shell .task-row .tag{font-size:9px!important}
 #shell[data-page] .task-completion{width:44px!important;min-width:44px!important;height:44px!important;flex-basis:44px!important;border-radius:8px!important}
 #shell .completion-mark{width:20px;height:20px}
 #shell .completion-mark .ui-icon{width:18px;height:18px}
 #shell .dense-today-aside{border:0;padding:0;gap:18px}
 #shell #today-content .today-habits{margin-top:18px!important}
 #shell .light-today-advice{min-height:36px!important;padding:8px 10px!important;margin-bottom:9px!important}
 #shell .light-today-advice small{display:none!important}
 #shell .light-today-advice strong{font-size:14px!important;font-weight:500!important}
 #shell .main-actions,#shell[data-page=overview] .main-actions{margin-bottom:8px!important}
 #shell #today-view .today-hero{margin-bottom:12px!important}
 #shell[data-page] .panel-title h2{font-size:19px!important}
 #shell .habit-compact-row{min-height:64px!important;padding:7px 0!important}
 #shell .habit-compact-row .task-name{font-size:16px!important}
 #shell .habit-action-plus,#shell .habit-quick-plus{width:44px!important;min-width:44px!important;height:44px!important;flex-basis:44px!important;padding:10px!important}
 #shell .habit-list .habit-card{grid-template-columns:minmax(0,1fr) 44px!important}
 #shell .habit-list .habit-count{font-size:13px!important}
 #shell .habit-list .habit-top>.task-name{font-size:16px!important}
 #shell .habit-list .habit-adjust>summary{min-height:32px;padding:7px 0}
 #shell .note-card{grid-template-columns:minmax(0,1fr) 65px;gap:4px 8px;padding:9px 0!important;min-height:80px!important}
 #shell .note-card>h3{grid-column:1;grid-row:1}
 #shell .dense-note-open{font-size:16px!important;min-height:26px!important}
 #shell .note-card>.note-body{grid-column:1;grid-row:2;font-size:13px!important}
 #shell .note-card>.note-top{grid-column:1;grid-row:3;font-size:11px}
 #shell .note-card>.note-foot{grid-column:2;grid-row:1 / span 3;align-self:start;justify-content:flex-end}
 #shell .note-foot time{display:none}
 #shell .dense-note-menu>summary{min-height:44px;padding:12px 0}
 #shell .dense-note-menu .note-actions button{min-height:44px!important}
 #shell .compact-agenda .agenda-event{min-height:54px!important}
 #shell .compact-agenda .agenda-event .task-completion{width:44px!important;min-width:44px!important;flex-basis:44px!important}
 #shell .compact-agenda .agenda-event .task-name{font-size:16px!important;min-height:22px!important}
 #shell[data-page=calendar] .compact-agenda .time-hour{height:32px!important;min-height:32px!important}
 #shell .compact-agenda .agenda-gap{min-height:30px!important}
}

@media(min-width:801px){#shell[data-page] :is(#items,#today-tasks,#today-done-list,#today-undated,#day-agenda,#unscheduled-items) .task-row{padding:3px 2px!important;min-height:38px!important}}
@media(min-width:1100px){#shell[data-page=overview] .light-today-advice{width:calc(100% - 225px)!important}}

#shell .note-card{background:#fff!important}
#shell .note-card>.note-foot time{font-size:12px!important;color:#647b98;white-space:nowrap}
#shell #habit-summary{padding:10px 12px!important;min-height:48px!important;margin-bottom:10px!important;gap:15px!important}
#shell .habit-summary-metric{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;max-width:none!important}
#shell .habit-summary-metric strong{font-size:18px!important;white-space:nowrap}
#shell .habit-summary-metric span{font-size:13px!important}
#shell .habit-summary-track{max-width:180px}
@media(min-width:801px){
 #shell .habit-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 #shell .habit-list .habit-card{grid-template-columns:minmax(160px,1fr) minmax(200px,360px) 36px!important;align-items:center!important;gap:15px!important}
 #shell .habit-list .habit-top>.task-name{grid-column:1!important;grid-row:1!important;align-self:center}
 #shell .habit-list .habit-top>.habit-action-plus,#shell .habit-list .habit-top>.task-completion{grid-column:3!important;grid-row:1!important;align-self:center!important;margin:0!important}
 #shell .habit-list .habit-body{grid-column:2!important;grid-row:1!important}
}
@media(max-width:800px){#shell .note-card>.note-foot{flex-direction:column-reverse;align-items:flex-end;gap:2px}#shell .note-card>.note-foot time{display:block!important;white-space:normal;font-size:11px!important;text-align:right}}

@media(max-width:800px){#shell[data-page] :is(#items,#today-tasks,#today-done-list,#today-undated,#day-agenda,#unscheduled-items) .task-row{padding:5px 0!important;min-height:58px!important}}
#shell .dense-task-status[data-status=doing]{color:#0877ff}
