/* Selected Focus system. All overrides are scoped; auth and public pages unchanged. */
body.focus-theme #shell main{max-width:1600px!important;min-width:0!important;padding:20px 24px 50px!important;width:100%!important;margin:0 auto!important}
body.focus-theme #shell .classic-masthead{display:flex!important;flex-direction:column!important;gap:12px!important;height:auto!important;min-height:0!important;padding:18px 20px!important;margin-bottom:18px!important;border-radius:14px!important;grid-template-rows:none!important;position:relative!important}
body.focus-theme #shell .classic-masthead>.page-heading{order:0!important;min-height:58px!important;padding:0 145px 0 0!important;margin:0!important;grid-row:auto!important;grid-column:auto!important}
body.focus-theme #shell .page-heading h1,body.focus-theme #shell .page-heading #page-title{font-size:30px!important;line-height:1.15!important;margin:0!important;padding:0!important;min-height:0!important;max-width:none!important}
body.focus-theme #shell .page-heading .muted{font-size:14px!important;margin-top:5px!important}
body.focus-theme #shell .light-mobile-brand{display:none!important}
body.focus-theme #shell .utility-header{top:0!important;right:0!important}
body.focus-theme #shell .utility-actions{gap:7px!important}
body.focus-theme #shell .utility-actions :is(#assistant-open,.light-search-button,.light-account-button){width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important}
body.focus-theme #shell .classic-masthead>.main-actions{order:1!important;display:flex;gap:8px!important;align-self:stretch!important;min-height:0!important;margin:0!important;grid-row:auto!important;grid-column:auto!important}
body.focus-theme #shell .classic-masthead .main-actions button{height:40px!important;min-height:40px!important;font-size:15px!important}
body.focus-theme #shell .classic-masthead .main-actions #create{flex:0 1 180px!important}
body.focus-theme #shell .classic-masthead>#light-week-control{order:2!important;margin:0!important;grid-row:auto!important;grid-column:auto!important;width:100%!important}
body.focus-theme #shell .classic-masthead>.classic-metrics{order:3!important;display:flex!important;gap:8px!important;grid-row:auto!important;grid-column:auto!important}
body.focus-theme #shell .classic-metrics .classic-metric{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:7px 12px!important;border:1px solid #6c91bd!important;background:#ffffff0d!important;border-radius:9px!important;min-height:36px!important;height:auto!important;font-size:14px!important;flex:0 1 auto!important}
body.focus-theme #shell .classic-metric strong{font-size:20px!important}
body.focus-theme #shell .classic-metric span{white-space:nowrap!important}
body.focus-theme #shell #today-view{display:none!important}
body.focus-theme #shell #light-today-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
body.focus-theme #shell #dense-today-aside{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;gap:12px!important}
body.focus-theme #shell #daily-task-panel,body.focus-theme #shell .today-habits{min-width:0!important;width:100%!important}
body.focus-theme #shell .today-habits.focus-empty-habits{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:8px!important;padding:12px!important}
body.focus-theme #shell .today-habits.focus-empty-habits .panel-title{min-height:0!important;margin:0!important}
body.focus-theme #shell .today-habits.focus-empty-habits #today-habits-list{margin:0!important}
body.focus-theme #shell .task-row{min-height:58px!important;padding:9px 0!important}
body.focus-theme #shell .task-name{font-size:16px!important;line-height:1.3!important;overflow-wrap:break-word!important}
body.focus-theme #shell .task-completion{width:36px!important;min-width:36px!important;min-height:38px!important;align-self:center!important}
body.focus-theme #shell #classic-task-tools{margin-bottom:12px!important;padding:10px!important;gap:10px!important;flex-wrap:wrap!important}
body.focus-theme #shell #light-task-filter{margin:0 0 10px!important;display:flex;gap:5px!important;flex-wrap:wrap!important}
body.focus-theme #shell #classic-task-search{flex:1 1 160px!important;min-width:0!important}
body.focus-theme #shell .classic-categories{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
body.focus-theme #shell #calendar-view .agenda-event .small{margin-top:6px!important;font-size:13px!important}
body.focus-theme #shell #calendar-view .day-panel>.panel-title{margin-bottom:0!important}
body.focus-theme #shell #calendar-now,body.focus-theme #shell #month-toggle{min-height:36px!important;font-size:13px!important;margin:0 6px 12px 0!important}
body.focus-theme #shell .body-panel .body-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.focus-theme #shell .light-body-layout{display:block!important}
body.focus-theme #shell .light-body-values{min-width:0!important}
body.focus-theme #shell .light-weight-chart{margin-top:12px!important}
body.focus-theme #shell .body-panel .light-body-metric{min-height:100px!important;padding:12px!important}
body.focus-theme #shell #health-daily-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.focus-theme #shell #health-daily-cards .health-metric{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:5px!important;grid-column:auto!important;min-width:0!important;padding:10px!important;min-height:104px!important}
body.focus-theme #shell #health-daily-cards .health-metric .metric-value{font-size:22px!important;line-height:1.2!important;white-space:normal!important}
body.focus-theme #shell #health-daily-cards .health-metric .metric-label{font-size:14px!important}
body.focus-theme #shell #health-daily-cards .health-metric small{font-size:12px!important}
body.focus-theme #shell [data-health-panel=activity] .fitness-hero>:is(.eyebrow,.steps-summary,#steps-goal-text,#steps-progress){display:none!important}
body.focus-theme #shell .fitness-advice{min-height:0!important;padding:12px 14px!important}
body.focus-theme #shell .fitness-advice #fitness-advice-title{font-size:18px!important;margin:4px 0!important}
body.focus-theme #shell .notes-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.focus-theme #shell .note-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;padding:14px!important;min-width:0!important}
body.focus-theme #shell .note-card h3{margin:0!important;white-space:normal!important;overflow:visible!important;max-width:none!important}
body.focus-theme #shell .note-card .dense-note-open{font-size:19px!important;white-space:normal!important;line-height:1.25!important;text-align:left!important;width:100%!important}
body.focus-theme #shell .note-card .note-body{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden!important;white-space:normal!important;max-width:none!important;font-size:15px!important;line-height:1.4!important;margin:0!important}
body.focus-theme #shell .note-card .note-top,body.focus-theme #shell .note-card .note-foot{display:flex!important;align-items:center!important;gap:7px!important;justify-content:space-between!important;flex-wrap:wrap!important}
body.focus-theme #shell #note-controls{display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:10px!important}
body.focus-theme #shell #note-controls[hidden]{display:none!important}
body.focus-theme #shell .notes-search-label{flex:1 1 220px!important}
body.focus-theme #shell #habit-list:not(:has(.habit-card)){display:flex!important;flex-direction:column!important;align-items:center!important;padding:28px 16px!important}
body.focus-theme #shell #habit-list .empty{padding:14px!important;min-height:0!important}
body.focus-theme #shell .focus-add-habit{margin-top:12px!important;padding:12px 22px!important}
body.focus-theme .focus-settings-label{font-size:13px;font-weight:700;color:#5c7290;margin:12px 0 6px}
body.focus-theme #settings-dialog{max-width:580px!important}
body.focus-theme .focus-entry-modes{display:flex;gap:8px;align-items:center;margin:0 0 12px}
body.focus-theme .focus-entry-modes>button,body.focus-theme .focus-mode-current{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:8px;border:1px solid #cbdcf0;padding:8px 16px;font-size:15px;flex:1}
body.focus-theme .focus-mode-current{background:#1765fa;color:white;border-color:#1765fa}
body.focus-theme .focus-new-task:not(.focus-task-expanded) #task-form label:has([name=description]),body.focus-theme .focus-new-task:not(.focus-task-expanded) #task-form label:has([name=status]),body.focus-theme .focus-new-task:not(.focus-task-expanded) #task-form .checks{display:none!important}
body.focus-theme .focus-task-more{margin:0 0 8px;min-height:36px}
body.focus-theme #task-dialog:not(.focus-new-task) .focus-task-more{display:none}
body.focus-theme #task-dialog:not(.focus-new-task) .focus-entry-modes{display:none}
@media(min-width:801px){
 body.focus-theme #shell{grid-template-columns:176px minmax(0,1fr)!important}
 body.focus-theme #shell .sidebar{width:176px!important;min-width:176px!important;padding:18px 12px!important}
 body.focus-theme #shell .sidebar .brand{display:flex!important;justify-content:flex-start!important;gap:9px!important;margin-bottom:22px!important;padding:0 5px!important}
 body.focus-theme #shell .sidebar .brand .light-wordmark{display:block!important;font-size:24px!important}
 body.focus-theme #shell #navigation{gap:5px!important}
 body.focus-theme #shell #navigation button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;padding:10px!important;min-height:45px!important}
 body.focus-theme #shell #navigation button>span{display:block!important;white-space:nowrap!important;font-size:16px!important}
 body.focus-theme #shell .sidebar .light-sidebar-bottom>button{display:flex!important;justify-content:flex-start!important;gap:8px!important;padding:10px!important}
 body.focus-theme #shell .sidebar .light-sidebar-bottom>button>span{display:block!important}
 body.focus-theme #shell .sidebar .light-qwen-link small,body.focus-theme #shell .sidebar .light-profile-link small{display:none!important}
 body.focus-theme #shell .classic-masthead .main-actions{position:absolute!important;top:18px!important;right:20px!important;width:auto!important;align-self:auto!important}
 body.focus-theme #shell .classic-masthead:has(.main-actions:not([hidden])) .page-heading{padding-right:370px!important}
 body.focus-theme #shell .classic-masthead:has(.main-actions:not([hidden])) .utility-header{right:210px!important}
 body.focus-theme #shell .main-actions #create{min-width:120px!important}
 body.focus-theme #shell .main-actions #open-filters{width:42px!important;min-width:42px!important;padding:9px!important}
 body.focus-theme #shell .main-actions #open-filters span{display:none!important}
}
@media(min-width:1200px){body.focus-theme #shell #light-today-layout{grid-template-columns:minmax(0,1fr) 250px!important}body.focus-theme #shell .body-panel .body-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:801px) and (max-width:1099px){body.focus-theme #shell .classic-masthead .main-actions{position:static!important;width:100%!important}body.focus-theme #shell .classic-masthead:has(.main-actions:not([hidden])) .page-heading{padding-right:145px!important}body.focus-theme #shell .classic-masthead:has(.main-actions:not([hidden])) .utility-header{right:0!important}}
@media(max-width:800px){
 body.focus-theme #shell main{padding:10px 10px calc(94px + env(safe-area-inset-bottom,0px))!important}
 body.focus-theme #shell .classic-masthead{padding:14px 12px!important;gap:10px!important;margin-bottom:12px!important}
 body.focus-theme #shell .classic-masthead>.page-heading{padding:0 119px 0 38px!important;min-height:48px!important}
 body.focus-theme #shell .page-heading h1,body.focus-theme #shell .page-heading #page-title{font-size:26px!important;line-height:1.15!important}
 body.focus-theme #shell .page-heading .muted{font-size:12px!important}
 body.focus-theme #shell .light-mobile-brand{display:block!important;position:absolute!important;left:0!important;top:0!important;width:30px!important;height:30px!important}
 body.focus-theme #shell .utility-actions{gap:4px!important}
 body.focus-theme #shell .utility-actions :is(#assistant-open,.light-search-button,.light-account-button){width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;padding:6px!important}
 body.focus-theme #shell .classic-metrics .classic-metric{flex:1 1 0!important;min-width:0!important;padding:6px!important;gap:4px!important;flex-direction:column!important;align-items:flex-start!important;font-size:12px!important}
 body.focus-theme #shell .classic-metric strong{font-size:21px!important}
 body.focus-theme #shell .classic-metric span{white-space:normal!important;line-height:1.15!important}
 body.focus-theme #shell .classic-masthead .main-actions #create{flex:1!important}
 body.focus-theme #shell #bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;padding:5px 3px calc(5px + env(safe-area-inset-bottom,0px))!important}
 body.focus-theme #shell #bottom-nav button b{font-size:11px!important}
 body.focus-theme #shell .notes-grid{grid-template-columns:1fr!important}
 body.focus-theme #shell #health-daily-cards .health-metric .metric-value{font-size:20px!important}
 body.focus-theme #shell #health-daily-cards .health-metric{padding:9px 7px!important}
 body.focus-theme .focus-entry-modes{margin-bottom:10px}
}
@media(max-width:360px){body.focus-theme #shell .page-heading h1,body.focus-theme #shell .page-heading #page-title{font-size:23px!important}body.focus-theme #shell .classic-masthead>.page-heading{padding-right:112px!important}body.focus-theme #shell .utility-actions{gap:1px!important}body.focus-theme #shell #bottom-nav button b{font-size:10px!important}}
body.focus-theme #shell .classic-masthead>#classic-metrics[hidden],body.focus-theme #shell .classic-masthead>#light-week-control[hidden],body.focus-theme #shell .classic-masthead>.main-actions[hidden]{display:none!important}
body.focus-theme #shell[data-page=fitness] #health-daily-cards .health-metric{grid-column:auto!important;grid-row:auto!important;min-height:110px!important}
body.focus-theme #shell[data-page=fitness] #health-daily-cards .health-metric>.metric-value{align-self:flex-start!important;text-align:left!important;font-size:21px!important;grid-column:auto!important;grid-row:auto!important;margin:0!important}
body.focus-theme #shell[data-page=fitness] #health-daily-cards .health-metric>progress{width:100%!important}
body.focus-theme #shell[data-page=fitness] #health-daily-cards .light-goal-unit{font-size:11px!important;display:block!important}
body.focus-theme #shell[data-page=fitness] #health-daily-cards .health-metric>.metric-label,body.focus-theme #shell[data-page=fitness] #health-daily-cards .health-metric>.metric-info{grid-column:auto!important;grid-row:auto!important;align-self:flex-start!important}
body.focus-theme #shell[data-page=fitness] #health-daily-cards .health-metric>.metric-info{margin-top:auto!important}


body.focus-theme #shell[data-page=fitness] .health-daily:not(.show-all-health) #health-daily-cards .health-metric:not(.primary-metric){display:none!important}
body.focus-theme #shell .steps-chart-heading{margin:0 0 10px!important;flex-wrap:wrap!important;gap:8px!important}
body.focus-theme #shell .steps-chart-heading h3{font-size:18px!important;margin:0!important}
body.focus-theme #shell #steps-chart{min-height:0!important}
body.focus-theme #shell #steps-chart svg{width:100%!important;height:180px!important}
body.focus-theme #shell .workouts-panel{margin-top:12px!important;min-height:0!important;padding:12px!important}
body.focus-theme #shell #fitness-view[aria-busy=true]::before{content:'Обновляем показатели…';display:block;font-size:13px;color:#496681;margin:0 0 8px}

body.focus-theme #shell .focus-note-preview{display:none!important}
@media(min-width:1100px){
 body.focus-theme #shell[data-page=notes] #items{display:grid!important;grid-template-columns:290px minmax(0,1fr)!important;gap:14px!important;align-items:start!important}
 body.focus-theme #shell[data-page=notes] .notes-grid{grid-template-columns:1fr!important}
 body.focus-theme #shell[data-page=notes] .focus-note-preview{display:block!important;background:white;border:1px solid #dce7f4;border-radius:11px;padding:18px;min-height:320px;min-width:0}
 body.focus-theme #shell .focus-note-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6;margin-top:20px}
 body.focus-theme #shell .focus-note-preview .panel-title{align-items:start;gap:10px}
 body.focus-theme #shell .focus-note-preview h2{overflow-wrap:anywhere}
 body.focus-theme #shell .focus-note-preview .primary{flex-shrink:0;font-size:14px;padding:9px 14px}
}

body.focus-theme .focus-new-task:not(.focus-task-expanded) #task-form .form-grid{grid-template-columns:1fr!important}
body.focus-theme #shell .light-body-metric .metric-value{font-variant-numeric:tabular-nums}
/* Notes toolbar: explicit mobile rows prevent inherited flex/grid overlap. */
@media(max-width:800px){
 body.focus-theme #shell[data-page=notes] #note-controls{display:grid!important;grid-template-columns:minmax(0,1fr) 100px!important;align-items:end!important;gap:9px!important;width:100%!important;min-width:0!important}
 body.focus-theme #shell[data-page=notes] #note-controls>.notes-search-label{grid-column:1!important;grid-row:1!important;display:block!important;width:100%!important;min-width:0!important;margin:0!important;flex:none!important}
 body.focus-theme #shell[data-page=notes] #notes-search{width:100%!important;min-width:0!important;margin-top:5px!important;box-sizing:border-box!important}
 body.focus-theme #shell[data-page=notes] #note-controls>label:not(.notes-search-label){grid-column:2!important;grid-row:1!important;display:block!important;width:100%!important;min-width:0!important;margin:0!important;flex:none!important;position:static!important}
 body.focus-theme #shell[data-page=notes] #note-filter{width:100%!important;min-width:0!important;margin-top:5px!important;box-sizing:border-box!important}
 body.focus-theme #shell[data-page=notes] #notes-chips{grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;width:100%!important;min-width:0!important;margin:0!important;position:static!important}
 body.focus-theme #shell[data-page=notes] #notes-chips button{flex:0 0 auto!important;min-width:0!important;width:auto!important;white-space:nowrap!important;padding:8px 11px!important;min-height:36px!important}
}
/* Unified day: five destinations. Add controls always participate in layout. */
body.focus-theme.merged-day-theme #shell #navigation [data-page=calendar]{display:none!important}
body.focus-theme.merged-day-theme #shell .classic-masthead{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:12px!important}
body.focus-theme.merged-day-theme #shell .classic-masthead>.page-heading{grid-column:1!important;grid-row:1!important;padding-right:145px!important;min-width:0!important}
body.focus-theme.merged-day-theme #shell .classic-masthead>.main-actions{position:static!important;inset:auto!important;transform:none!important;grid-column:2!important;grid-row:1!important;display:flex;align-items:center!important;justify-content:flex-end!important;width:auto!important;margin:0!important;min-width:0!important;align-self:center!important}
body.focus-theme.merged-day-theme #shell .classic-masthead:has(.main-actions:not([hidden])) .utility-header{right:0!important}
body.focus-theme.merged-day-theme #shell .classic-masthead>#light-week-control{grid-column:1/-1!important;grid-row:2!important;order:unset!important}
body.focus-theme.merged-day-theme #shell .classic-masthead>#classic-metrics{grid-column:1/-1!important;grid-row:3!important}
body.focus-theme.merged-day-theme #shell #create{position:static!important;inset:auto!important;transform:none!important;float:none!important;width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important;margin:0!important;z-index:auto!important}
body.focus-theme.merged-day-theme #shell .light-measurement-button,body.focus-theme.merged-day-theme #shell .habit-action-plus,body.focus-theme.merged-day-theme #shell .habit-quick-plus{position:static!important;inset:auto!important;transform:none!important;z-index:auto!important;float:none!important;max-width:100%!important}
body.focus-theme.merged-day-theme #shell .body-panel>.panel-title{flex-wrap:wrap!important;gap:8px!important}
body.focus-theme.merged-day-theme #shell #calendar-view>.merged-day-overdue{background:white;border:1px solid #f1c9d2;border-radius:11px;margin:0 0 12px;padding:0 12px}
body.focus-theme.merged-day-theme #shell .merged-day-overdue>summary{cursor:pointer;color:#bb405d;font-size:16px;font-weight:700;min-height:44px;padding:11px 0}
body.focus-theme.merged-day-theme #shell .merged-day-overdue[hidden]{display:none!important}
body.focus-theme.merged-day-theme #shell .merged-day-overdue .task-group{border:0!important;margin:0!important;padding:0!important}
body.focus-theme.merged-day-theme #shell #calendar-habits{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important}
body.focus-theme.merged-day-theme #shell #calendar-habits h2{margin:0!important}
body.focus-theme.merged-day-theme #shell #calendar-habit-list{grid-column:1/-1!important}
body.focus-theme.merged-day-theme #shell #calendar-habits .merged-add-habit{position:static!important;min-height:36px!important;margin:0!important;white-space:normal!important;text-align:right!important}
body.focus-theme.merged-day-theme #shell .unscheduled-section{padding:0 14px!important}
body.focus-theme.merged-day-theme #shell .unscheduled-section summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;cursor:pointer;padding:10px 0}
body.focus-theme.merged-day-theme #shell .unscheduled-section summary h2{font-size:18px!important;margin:0!important}
body.focus-theme.merged-day-theme #shell .unscheduled-section #unscheduled-items{padding-bottom:12px}
body.focus-theme.merged-day-theme #shell #calendar-now{display:none!important}
body.focus-theme.merged-day-theme #shell .habit-action-plus,body.focus-theme.merged-day-theme #shell .habit-quick-plus{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important;flex-basis:34px!important}
@media(max-width:1099px){
 body.focus-theme.merged-day-theme #shell .classic-masthead{grid-template-columns:minmax(0,1fr)!important}
 body.focus-theme.merged-day-theme #shell .classic-masthead>.main-actions{grid-column:1!important;grid-row:3!important;width:100%!important;justify-content:flex-start!important}
 body.focus-theme.merged-day-theme #shell .classic-masthead>#light-week-control{grid-row:2!important}
 body.focus-theme.merged-day-theme #shell .classic-masthead>#classic-metrics{grid-row:4!important}
 body.focus-theme.merged-day-theme #shell .classic-masthead .main-actions #create{flex:1!important}
}
@media(max-width:800px){
 body.focus-theme.merged-day-theme #shell #bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 body.focus-theme.merged-day-theme #shell .classic-masthead>.page-heading{padding-left:38px!important;padding-right:119px!important}
 body.focus-theme.merged-day-theme #shell .classic-masthead>.main-actions{gap:8px!important}
 body.focus-theme.merged-day-theme #shell #calendar-view .agenda-row{grid-template-columns:38px minmax(0,1fr)!important}
}
@media(max-width:360px){body.focus-theme.merged-day-theme #shell .classic-masthead>.page-heading{padding-right:112px!important}}

/* A shared header frame: controls stay in normal flow; notes keep their compact header. */
body.focus-theme.merged-day-theme #shell .classic-masthead.focus-uniform-header{height:160px!important;min-height:160px!important;box-sizing:border-box!important;grid-template-rows:58px 48px!important;align-content:start!important}
body.focus-theme #shell main>.classic-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 16px}
body.focus-theme #shell main>.classic-metrics[hidden]{display:none!important}
@media(max-width:1099px){body.focus-theme.merged-day-theme #shell .classic-masthead.focus-uniform-header{height:208px!important;min-height:208px!important;grid-template-rows:58px 48px 40px!important}}
@media(max-width:800px){body.focus-theme.merged-day-theme #shell .classic-masthead.focus-uniform-header{height:192px!important;min-height:192px!important;grid-template-rows:48px 48px 40px!important}}

/* Fitness uses one spacing system; activity figures and their chart share a surface. */
body.focus-theme #shell #fitness-view{display:flex!important;flex-direction:column!important;gap:12px!important}
body.focus-theme #shell #fitness-view[hidden]{display:none!important}
body.focus-theme #shell #fitness-view> *{margin:0!important;min-width:0!important}
body.focus-theme #shell #fitness-view> .panel{padding:14px!important;border-radius:12px!important}
body.focus-theme #shell #fitness-view .health-daily>[data-health-panel=activity]{margin:14px 0 0!important;padding:14px 0 0!important;border:0!important;border-top:1px solid #dce4ef!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
body.focus-theme #shell #fitness-view [data-health-panel=activity] .fitness-hero{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.focus-theme #shell #fitness-view .panel-title{margin:0 0 12px!important;gap:8px!important;align-items:center!important}
body.focus-theme #shell #fitness-view .fitness-toolbar{padding:0!important}
@media(max-width:800px){body.focus-theme #shell #fitness-view>.panel{padding:12px!important}body.focus-theme #shell #fitness-view .health-daily>[data-health-panel=activity]{margin-top:12px!important;padding-top:12px!important}}

body.focus-theme #shell #fitness-view .steps-chart-heading{border-top:0!important;margin-top:0!important;padding-top:0!important}

/* Tasks use the reserved calendar row for their three filters. Fitness keeps a compact masthead. */
body.focus-theme.merged-day-theme #shell[data-page=tasks] .classic-masthead>#classic-metrics{grid-row:2!important;grid-column:1/-1!important;margin:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.focus-theme.merged-day-theme #shell[data-page=tasks] .classic-masthead .classic-metric{min-width:0!important;padding:7px!important;justify-content:center!important;gap:5px!important}
body.focus-theme.merged-day-theme #shell[data-page=tasks] .classic-metric span{white-space:normal!important}
body.focus-theme #shell main>#light-week-control:not([hidden]){margin:0 0 12px!important}
body.focus-theme #shell main>#light-week-control[hidden]{display:none!important}
@media(max-width:800px){body.focus-theme.merged-day-theme #shell[data-page=tasks] .classic-masthead .classic-metric{font-size:13px!important}body.focus-theme.merged-day-theme #shell[data-page=tasks] .classic-metric strong{font-size:18px!important}}

body.focus-theme #shell main>#light-week-control .light-week-today{background:#fff!important;color:#173361!important;border:1px solid #c9d6e8!important}

/* Fitness dates occupy the same action row as the Notes create button. */
body.focus-theme.merged-day-theme #shell[data-page=fitness] .classic-masthead>#light-week-control{grid-row:3!important;grid-column:1/-1!important;margin:0!important}
@media(min-width:1100px){body.focus-theme.merged-day-theme #shell[data-page=fitness] .classic-masthead>#light-week-control{grid-row:1!important;grid-column:2!important;width:auto!important}body.focus-theme.merged-day-theme #shell[data-page=fitness] .classic-masthead{grid-template-columns:minmax(0,1fr) auto!important}body.focus-theme.merged-day-theme #shell[data-page=fitness] .light-week-strip{min-width:350px!important}}

body.focus-theme.merged-day-theme #shell[data-page=fitness] .classic-masthead .light-week-today{height:40px!important;min-height:40px!important}

body.focus-theme.merged-day-theme #shell[data-page=fitness] .classic-masthead>#light-week-control{height:44px!important;min-height:0!important}

/* Desktop alignment and full-width data graphics. */
@media(min-width:1100px){
 body.focus-theme.merged-day-theme #shell .classic-masthead .utility-header{top:9px!important}
 body.focus-theme #shell #navigation button,body.focus-theme #shell .sidebar-account{justify-content:flex-start!important;text-align:left!important}
 body.focus-theme #shell[data-page=calendar] #light-week-control{max-width:none!important;width:100%!important}
 body.focus-theme #shell[data-page=calendar] .light-week-strip{max-width:none!important;flex:1!important;width:auto!important}
 body.focus-theme #shell[data-page=calendar] .light-week-day{flex:1!important}
 body.focus-theme #shell[data-page=calendar] .light-week-today{flex:0 0 auto!important}
}
body.focus-theme #shell #steps-chart,body.focus-theme #shell #body-chart{width:100%!important;max-width:none!important;min-width:0!important}
body.focus-theme #shell #steps-chart svg,body.focus-theme #shell #body-chart svg{display:block!important;width:100%!important;max-width:none!important;height:180px!important}
body.focus-theme #shell .light-body-metric,body.focus-theme #shell .health-metric{text-align:left!important}

@media(min-width:1100px){body.focus-theme.merged-day-theme #shell .classic-masthead .utility-header{top:11px!important}body.focus-theme #shell .light-profile-link{display:flex!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:11px!important;padding:10px!important}body.focus-theme #shell .light-profile-link>.light-avatar{width:24px!important;min-width:24px!important;margin:0!important}body.focus-theme #shell .light-profile-link>span:last-child{margin:0!important;text-align:left!important}}

/* Shared desktop month strip in Day, Habits and Fitness; mobile keeps seven days. */
@media(min-width:1100px){
 body.focus-theme.merged-day-theme #shell:is([data-page=calendar],[data-page=habits],[data-page=fitness]) .classic-masthead{height:160px!important;min-height:160px!important;box-sizing:border-box!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:58px 48px!important}
 body.focus-theme.merged-day-theme #shell:is([data-page=calendar],[data-page=habits],[data-page=fitness]) .classic-masthead>#light-week-control{grid-column:1/-1!important;grid-row:2!important;width:100%!important;height:48px!important;min-height:0!important;max-width:none!important;margin:0!important}
 body.focus-theme.merged-day-theme #shell .month-date-strip .light-week-strip{flex:1!important;min-width:0!important;max-width:none!important;width:0!important;display:flex!important;gap:0!important;padding:3px!important}
 body.focus-theme.merged-day-theme #shell .month-date-strip .light-week-day{flex:1 1 0!important;min-width:0!important;width:auto!important;padding:3px 0!important}
 body.focus-theme.merged-day-theme #shell .month-date-strip .light-week-day small{font-size:9px!important}
 body.focus-theme.merged-day-theme #shell .month-date-strip .light-week-day strong{font-size:14px!important}
 body.focus-theme.merged-day-theme #shell .month-date-strip .light-week-arrow{width:22px!important;min-width:22px!important;padding:3px!important;flex:0 0 22px!important}
 body.focus-theme.merged-day-theme #shell .month-date-strip .light-week-today{flex:0 0 auto!important}
}

body.focus-theme #shell .fitness-advice .coach-heading{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;min-height:24px!important}
body.focus-theme #shell .fitness-advice .coach-heading>.coach-label-icon{position:static!important;inset:auto!important;transform:none!important;display:block!important;flex:0 0 24px!important;width:24px!important;height:24px!important;margin:0!important}
body.focus-theme #shell .fitness-advice .coach-heading>.eyebrow{margin:0!important;min-width:0!important}
body.focus-theme #shell .fitness-advice #health-ai-updated{margin-left:auto!important}

/* UX refinement: useful density, clear state and fewer duplicate controls. */
body.focus-theme #shell [data-light-period][hidden],body.focus-theme #assistant-entry-modes[hidden]{display:none!important}
body.focus-theme #shell .classic-metric[aria-pressed=true]{background:#fff!important;color:#13315b!important;border-color:#fff!important;box-shadow:inset 0 -3px #56bed8}
body.focus-theme #shell #light-task-filter{gap:6px!important;margin-bottom:8px!important}
body.focus-theme #shell .task-date-context{display:block;font-size:13px;line-height:1.4;margin-top:4px;color:#56708f;white-space:normal}
body.focus-theme #shell .task-date-context.late{color:#aa405b}
body.focus-theme #shell .selected-note{border-color:#779cd7!important;background:#f0f6ff!important;box-shadow:inset 3px 0 #3475d2}
body.focus-theme #shell .health-metric[data-freshness=previous]{border-color:#d6bb8c!important}
body.focus-theme #shell .health-metric[data-freshness=previous] .metric-info{color:#835b1f!important;font-weight:700!important}
body.focus-theme #shell .health-metric[data-freshness=missing] .metric-info{color:#657a94!important}
body.focus-theme #shell .health-metric .metric-info{font-size:13px!important;line-height:1.4!important}
body.focus-theme #shell .focus-sync-help{margin-top:8px;min-height:36px;font-size:14px}
body.focus-theme #assistant-entry-modes{padding:10px 16px;margin:0;border-bottom:1px solid #dce5f1}
body.focus-theme #assistant-entry-modes .focus-mode-current{background:#142b56;color:white}
body.focus-theme #assistant-entry-modes #assistant-manual{position:static!important;width:auto!important;margin:0!important;font-size:15px!important;min-height:40px!important}
body.focus-theme #assistant-dialog.assistant-creation-start{height:auto!important;max-height:calc(100dvh - 24px)!important}
body.focus-theme #assistant-dialog.assistant-creation-start .assistant-messages{flex:0 1 auto!important;min-height:60px!important;max-height:120px!important}
body.focus-theme #month-toggle{font-size:13px!important;white-space:nowrap!important;min-height:36px!important}
body.focus-theme #shell .light-week-day[aria-pressed=true]{outline-offset:1px}
body.focus-theme #shell .light-week-day:focus-visible{outline:2px solid #0781ff!important}
@media(max-width:800px){
 body.focus-theme.merged-day-theme #shell[data-page=calendar] .classic-masthead{height:176px!important;min-height:176px!important;padding:12px!important;gap:8px!important;grid-template-rows:48px 44px 40px!important;margin-bottom:10px!important}
 body.focus-theme #shell #merged-day-overdue{margin:0 0 10px!important}
 body.focus-theme #shell #merged-day-overdue>summary{padding:10px 12px!important;min-height:40px!important}
 body.focus-theme #shell #calendar-view .day-panel>.panel-title{flex-wrap:wrap!important;gap:6px!important;margin-bottom:6px!important}
 body.focus-theme #shell #calendar-view .day-panel>.panel-title h2{font-size:18px!important}
 body.focus-theme #shell #month-toggle{padding:5px 8px!important;font-size:12px!important}
 body.focus-theme #shell #day-summary{margin:0 0 8px!important}
 body.focus-theme #shell .health-metric .metric-info{font-size:12px!important}
 body.focus-theme #shell .light-week-day{min-height:40px!important}
}

/* One metric-card layout for activity and body composition. */
body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:34px 44px minmax(30px,auto) 5px!important;align-items:start!important;align-content:start!important;justify-content:stretch!important;gap:4px 8px!important;padding:10px!important;min-height:145px!important;min-width:0!important;text-align:left!important;border-radius:10px!important}
body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.light-icon{grid-column:1!important;grid-row:1!important;width:24px!important;height:24px!important;margin:0!important;align-self:center!important;position:static!important}
body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.metric-label{grid-column:2!important;grid-row:1!important;font-size:14px!important;line-height:1.2!important;font-weight:400!important;align-self:center!important;margin:0!important;text-align:left!important;white-space:normal!important;overflow-wrap:normal!important}
body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.metric-value{grid-column:1/-1!important;grid-row:2!important;font-size:22px!important;line-height:1.15!important;font-weight:700!important;align-self:start!important;justify-self:start!important;margin:0!important;padding:0!important;text-align:left!important;white-space:normal!important}
body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.metric-info{grid-column:1/-1!important;grid-row:3!important;font-size:12px!important;line-height:1.3!important;font-weight:400!important;align-self:end!important;margin:0!important;padding:0!important;text-align:left!important}
body.focus-theme #shell[data-page=fitness] #health-daily-cards .health-metric>progress{grid-column:1/-1!important;grid-row:4!important;height:5px!important;margin:0!important;align-self:end!important}
@media(max-width:800px){body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric){grid-template-columns:22px minmax(0,1fr)!important;column-gap:5px!important;padding:9px 7px!important}body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.metric-value{font-size:20px!important}body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.light-icon{width:22px!important;height:22px!important}}

/* Desktop density: retain mobile sizing and the current visual system. */
@media(min-width:801px){
 body.focus-theme #shell{font-size:14px!important}
 body.focus-theme #shell .page-heading :is(h1,#page-title){font-size:26px!important}
 body.focus-theme #shell :is(.panel-title h2,#fitness-view h2,#habit-day-title,#day-title){font-size:18px!important;line-height:1.25!important}
 body.focus-theme #shell :is(.task-name,.agenda-event .task-name){font-size:14px!important;line-height:1.3!important}
 body.focus-theme #shell .task-row{min-height:50px!important;padding:6px 0!important}
 body.focus-theme #shell #calendar-view .agenda-event{padding:9px 12px!important;min-height:56px!important}
 body.focus-theme #shell #calendar-view .agenda-event .small{font-size:12px!important;margin-top:3px!important}
 body.focus-theme #shell :is(.task-date-context,#day-summary){font-size:12px!important}
 body.focus-theme #shell .note-card .dense-note-open{font-size:17px!important}
 body.focus-theme #shell .note-card .note-body{font-size:14px!important;line-height:1.4!important}
 body.focus-theme #shell .focus-note-content{font-size:14px!important;line-height:1.5!important;margin-top:14px!important}
 body.focus-theme #shell #navigation button>span{font-size:14px!important}
 body.focus-theme #shell .classic-masthead .main-actions button{font-size:14px!important}
 body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric){grid-template-rows:28px 32px minmax(26px,auto) 5px!important;min-height:117px!important;padding:8px 10px!important}
 body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.metric-label{font-size:13px!important}
 body.focus-theme #shell[data-page=fitness] :is(#health-daily-cards .health-metric,.body-panel .light-body-metric)>.metric-value{font-size:20px!important}
}
/* Selected desktop floating dock. It owns a gutter and never covers content. */
@media(min-width:801px){
 body.focus-theme #shell{grid-template-columns:102px minmax(0,1fr)!important}
 body.focus-theme #shell .sidebar{width:102px!important;min-width:102px!important;height:100dvh!important;position:sticky!important;top:0!important;padding:20px 12px 16px!important;background:transparent!important;border:0!important;display:flex!important;align-items:stretch!important;overflow:auto!important;gap:16px!important}
 body.focus-theme #shell .sidebar .brand{display:flex!important;justify-content:center!important;margin:0!important;padding:0!important;min-height:44px!important;flex-shrink:0!important}
 body.focus-theme #shell .sidebar .brand img{width:40px!important;height:40px!important}
 body.focus-theme #shell .sidebar .brand .light-wordmark{display:none!important}
 body.focus-theme #shell #navigation{display:flex!important;flex-direction:column!important;margin:0!important;padding:8px 5px!important;gap:4px!important;background:#ffffffcf!important;border:1px solid #dce8f5!important;border-radius:22px!important;box-shadow:0 5px 20px #0a477008!important;flex-shrink:0!important}
 body.focus-theme #shell #navigation button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:64px!important;padding:8px 2px!important;border:0!important;border-radius:14px!important;text-align:center!important;background:transparent!important}
 body.focus-theme #shell #navigation button>span{display:block!important;white-space:nowrap!important;font-size:12px!important;line-height:1.2!important}
 body.focus-theme #shell #navigation button .light-icon{width:26px!important;height:26px!important;flex:0 0 26px!important;margin:0!important}
 body.focus-theme #shell #navigation button.active{background:#102453!important;color:#fff!important;box-shadow:0 3px 9px #10245318!important}
 body.focus-theme #shell #navigation button.active>span{color:#fff!important}
 body.focus-theme #shell #navigation button:hover:not(.active){background:#eaf3ff!important}
 body.focus-theme #shell .light-sidebar-bottom{display:flex!important;flex-direction:column!important;gap:0!important;margin-top:auto!important;padding:5px!important;background:#ffffffcf!important;border:1px solid #dce8f5!important;border-radius:22px!important;flex-shrink:0!important}
 body.focus-theme #shell .sidebar .light-sidebar-bottom>button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;padding:9px 2px!important;gap:5px!important;min-height:64px!important;border:0!important;border-radius:15px!important;background:transparent!important;text-align:center!important;margin:0!important}
 body.focus-theme #shell .sidebar .light-sidebar-bottom>button>span{display:block!important;flex:none!important;text-align:center!important}
 body.focus-theme #shell .sidebar .light-sidebar-bottom :is(strong,span){font-size:12px!important;line-height:1.2!important;white-space:normal!important}
 body.focus-theme #shell .sidebar .light-sidebar-bottom :is(small,.light-chevron){display:none!important}
 body.focus-theme #shell .sidebar .light-sidebar-bottom .light-icon{width:25px!important;height:25px!important}
 body.focus-theme #shell .sidebar .light-profile-link>.light-avatar{margin:0!important;width:28px!important;min-width:28px!important;height:28px!important}
 body.focus-theme #shell .sidebar .light-profile-link{border-top:1px solid #dce8f5!important;border-radius:0 0 15px 15px!important}
 body.focus-theme #shell .sidebar .account-menu{margin:0!important;padding:0!important;align-self:center!important}
 body.focus-theme #shell .sidebar .account-menu>summary{min-height:24px!important;padding:3px!important}
 body.focus-theme #shell main{padding:20px 20px 40px!important;max-width:none!important}
 body.focus-theme #shell .task-row{min-height:46px!important;padding:5px 0!important}
 body.focus-theme #shell #calendar-view .agenda-event{min-height:52px!important;padding:8px 10px!important}
}
@media(min-width:801px) and (max-height:720px){body.focus-theme #shell .sidebar{gap:10px!important;padding-top:12px!important}body.focus-theme #shell #navigation button{min-height:58px!important}body.focus-theme #shell .sidebar .light-sidebar-bottom>button{min-height:54px!important}}
@media(min-width:801px){
 body.focus-theme #shell>.content{margin-left:102px!important;width:calc(100% - 102px)!important;min-width:0!important}
 body.focus-theme #shell>.sidebar{position:fixed!important;left:0!important;top:0!important;z-index:30!important}
 body.focus-theme #shell .sidebar .light-qwen-link,body.focus-theme #shell .sidebar .light-qwen-link strong{color:#17315a!important}
}
