/* TaskHub: plain content and a separate, consistent action on the right. */
#shell .task-row,#shell .task-group .task-row{display:grid!important;grid-template-columns:minmax(0,1fr) 62px!important;align-items:center;gap:14px!important;padding:17px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #e5edf7!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;cursor:default}
#shell .task-row.has-task-time{grid-template-columns:46px minmax(0,1fr) 62px!important}
#shell .task-row-body{min-width:0;order:0!important}
#shell .task-row .task-name,#shell .habit-card .task-name,#shell .habit-compact-row .task-name,#shell .agenda-event .task-name,#shell .agenda-card .task-name{display:block!important;min-height:44px!important;width:100%;padding:4px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#101e43!important;text-align:left;font-size:18px!important;font-weight:650!important;line-height:1.35!important;letter-spacing:0!important;overflow-wrap:anywhere}
#shell .task-name:hover{text-decoration:underline;text-underline-offset:3px}
#shell .task-row-time{font-size:16px;color:#486588;align-self:start;padding-top:12px;font-weight:600}
#shell .task-row .task-meta,#shell .agenda-event .small{margin:2px 0 0!important;font-size:13px!important;color:#627c9d!important;line-height:1.4!important}
#shell .task-row .task-badges{display:flex!important;flex-wrap:wrap!important;max-width:none!important;margin:5px 0 0!important;gap:5px;justify-content:flex-start!important}
#shell .task-row.is-overdue{background:#fff6f5!important;border-left:3px solid #e17c75!important;padding-left:11px!important}
#shell .task-row.completed,#shell .agenda-row.completed .agenda-event,#shell .habit-done{background:#f2f8ff!important;opacity:1!important}
#shell .completed .task-name{color:#778ba5!important;text-decoration:line-through}
#shell .task-completion{position:relative!important;display:block!important;width:62px!important;min-width:62px!important;height:62px!important;margin:0!important;padding:0!important;flex:0 0 62px!important;border:1px solid #83b7ff!important;border-radius:12px!important;background:#f7fbff!important;cursor:pointer;order:3!important;overflow:hidden}
#shell .task-completion input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;opacity:0!important;z-index:2;cursor:pointer;appearance:none!important}
.completion-face{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:#0877ff;pointer-events:none}
.completion-mark{display:grid;place-items:center;width:24px;height:24px;background:#0877ff;border-radius:50%}
.completion-mark .ui-icon{width:15px;height:15px;filter:brightness(0) invert(1)}
.completion-caption{font-size:13px;font-weight:600;line-height:1}
#shell .task-completion:has(input:checked){background:#0877ff!important}
.task-completion input:checked+.completion-face{color:white}
.task-completion input:checked+.completion-face .completion-mark{background:white}
.task-completion input:checked+.completion-face .completion-mark .ui-icon{filter:brightness(0) saturate(100%) invert(33%) sepia(99%) saturate(2200%) hue-rotate(200deg)}
#shell .task-completion:focus-within{outline:3px solid #9bc8ff;outline-offset:3px}
#shell .task-completion:has(input:disabled){opacity:.55;cursor:wait}
#shell .completion-pending{opacity:.65!important}
#shell #daily-task-panel,#shell .today-habits,#shell #today-undated{border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;background:transparent!important}
#shell .task-group{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
#shell .panel-title h2{font-size:23px!important}
#shell #today-view .today-hero{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:0!important;margin:0 0 22px!important}
#shell #today-view #today-message{font-size:17px!important;margin:0 0 4px!important}
#shell .today-hero p{font-size:14px!important;margin:0!important}
#shell #today-progress-bar{max-width:160px;height:5px;margin-top:8px}
#shell .overdue-link{background:#fff5f4!important;color:#be514c!important;border:0!important;font-size:14px!important;min-height:44px;margin:10px 0!important;padding:11px 12px!important;text-align:left}
#shell .habit-card,#shell .habit-compact-row{border:0!important;border-bottom:1px solid #e5edf7!important;border-radius:0!important;background:transparent!important;padding:17px 0!important;margin:0!important;box-shadow:none!important}
#shell .habit-top{display:flex;align-items:center;gap:15px}
#shell .habit-top .task-name{flex:1;min-width:0}
#shell .habit-body{margin-left:0!important;padding-right:76px}
#shell .habit-count{font-size:14px!important;color:#627c9d!important}
#shell .habit-body progress,#shell .habit-compact-body progress{width:100%;height:7px!important;max-width:260px;margin:8px 0 0!important}
#shell .habit-action-plus,#shell .habit-quick-plus{display:grid!important;place-items:center;width:58px!important;min-width:58px!important;height:58px!important;padding:14px!important;border:1px solid #b6d4fc!important;border-radius:12px!important;background:#f3f8ff!important;color:#0877ff!important;box-shadow:none!important;flex:0 0 58px}
#shell .habit-action-plus .ui-icon,#shell .habit-quick-plus .ui-icon{width:27px;height:27px;opacity:1}
#shell .habit-action-plus:disabled{opacity:.45}
#shell .habit-compact-row{display:flex;align-items:center;gap:15px}
#shell .habit-compact-body{flex:1;min-width:0}
#shell .habit-compact-title{display:block!important}
#shell .habit-compact-title>span{font-size:14px!important;color:#627c9d!important}
#shell .habit-adjust{margin-top:10px}
#shell .habit-adjust>summary{color:#627c9d;font-size:13px;min-height:44px;padding:12px 0;cursor:pointer}
#shell .habit-counter{padding:0!important;border:0!important;background:transparent!important}
#shell .habit-counter button{min-width:44px;min-height:44px}
#shell .habit-counter input{min-height:44px;font-size:16px}
#shell .agenda-event{display:flex!important;align-items:center;gap:12px!important;border:0!important;border-bottom:1px solid #e5edf7!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:12px 0!important;min-height:90px}
#shell .agenda-event>.task-row-body{flex:1;min-width:0}
#shell .agenda-event .task-name{font-size:17px!important}
#shell .agenda-card{border-radius:0!important;box-shadow:none!important;border-width:0 0 1px!important;padding:14px 0!important}
#shell .note-card{box-shadow:none!important;border-radius:10px!important;border-color:#e4edf8!important}
#shell .note-card h3{font-size:19px!important}
#shell .note-actions button{min-height:44px!important;font-size:14px!important}
#shell .health-metric,#shell .body-metrics>div,#shell .stat,#shell .progress-panels .panel{box-shadow:none!important}
#shell .light-today-layout{gap:26px!important}
@media(max-width:800px){
 #shell .task-row,#shell .task-group .task-row{grid-template-columns:minmax(0,1fr) 56px!important;gap:11px!important;padding:14px 0!important}
 #shell .task-row.has-task-time{grid-template-columns:38px minmax(0,1fr) 56px!important}
 #shell .task-completion{width:56px!important;min-width:56px!important;height:58px!important;flex-basis:56px!important;border-radius:10px!important}
 #shell .task-row .task-name,#shell .habit-card .task-name,#shell .habit-compact-row .task-name{font-size:17px!important}
 #shell .task-row-time{font-size:14px;padding-top:11px}
 #shell .task-row .task-meta{font-size:13px!important}
 #shell .habit-body{padding-right:66px}
 #shell .habit-action-plus,#shell .habit-quick-plus{width:54px!important;min-width:54px!important;height:54px!important;flex-basis:54px}
 #shell .today-habits{margin-top:25px!important}
 #shell .agenda-event .task-completion{width:50px!important;min-width:50px!important;flex-basis:50px!important}
 #shell .agenda-event{gap:8px!important}
 #shell .agenda-event .task-name{font-size:16px!important}
 #shell .light-today-advice{min-height:65px!important;padding:12px 14px!important;margin-bottom:16px!important}
 #shell .light-today-advice strong{font-size:17px!important}
 #shell .panel-title h2{font-size:22px!important}
}
@media(max-width:360px){#shell .task-row.has-task-time{grid-template-columns:32px minmax(0,1fr) 52px!important;gap:7px!important}#shell .task-row .task-name{font-size:16px!important}#shell .task-completion{width:52px!important;min-width:52px!important;flex-basis:52px!important}.completion-caption{font-size:12px}}

#shell #today-view .hero-copy{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%}
#shell #today-view #today-message{display:none!important}
#shell #today-view .hero-copy p{font-size:14px!important;color:#627c9d!important}
#shell #today-view #today-progress-bar{max-width:110px;width:110px;margin:0!important}

#shell .habit-list .habit-card{display:grid!important;grid-template-columns:minmax(0,1fr) 62px;column-gap:14px;align-items:start}
#shell .habit-list .habit-top{display:contents}
#shell .habit-list .habit-top>.task-name{grid-column:1;grid-row:1;margin:0!important;padding:0!important;min-height:34px!important}
#shell .habit-list .habit-top>.habit-action-plus,#shell .habit-list .habit-top>.task-completion{grid-column:2;grid-row:1 / span 2;align-self:start;margin-top:4px!important}
#shell .habit-list .habit-body{grid-column:1;grid-row:2;margin:0!important;padding:0!important}
#shell .habit-list .habit-count{margin:0!important}
#shell .habit-list .habit-body progress{margin-top:5px!important}
#shell .habit-list .habit-adjust{margin-top:4px}
#shell .habit-list .habit-adjust>summary{font-size:12px;min-height:34px;padding:8px 0}
#shell .habit-list .habit-detail{margin-top:6px!important}

/* Restore the owner's orbit mark on every app surface. */
.light-brand-logo{width:30px;height:30px;object-fit:contain;flex:0 0 30px;border-radius:8px}
.light-mobile-brand{display:none}
@media(max-width:800px){
 #shell .page-heading{position:relative}
 #shell .light-mobile-brand{display:flex;align-items:center;justify-content:center;position:absolute;left:0;top:1px;width:30px;height:30px}
 #shell[data-page] .page-heading #page-title{padding-left:38px!important;min-height:30px}
 #shell .page-heading .light-brand-logo{width:28px;height:28px;flex-basis:28px;border-radius:7px}
}

@media(max-width:360px){#shell[data-page] .page-heading #page-title{max-width:calc(100% - 104px)!important;font-size:22px!important;white-space:nowrap!important;letter-spacing:-.5px!important}}
