/* Approved TaskHub component selections, release 48. */
:root{--blue:#075bff;--ink:#071b4b;--muted:#5d729b;--line:#d9e5f5;--green:#075bff;--mint:#edf6ff;--classic-blue:#071d50;--classic-deep:#071d50;--classic-orange:#075bff;--classic-canvas:#f3f7fc;--classic-ink:#071b4b;--classic-muted:#5d729b;--classic-line:#d9e5f5;--navy:#071d50;--cyan:#00bde8;--coral:#e34f64}
html,body,button,input,select,textarea,dialog,#shell :is(h1,h2,h3,.task-name,.muted){font-family:'Aptos Narrow','Arial Narrow',sans-serif!important}
body,#shell .content{color:var(--ink)!important;background:#f3f7fc!important}
button,input,select,textarea{border-radius:8px;border-color:var(--line);font-size:16px}
button{min-height:40px}button:hover{background:#eaf3ff}.primary,button.primary{background:var(--blue)!important;border-color:var(--blue)!important;color:white!important;box-shadow:none!important}.primary:hover{background:#004bd8!important}
:is(input,textarea,select):focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #43a5ff!important;outline-offset:2px}
.muted,.small{color:var(--muted)}.danger{color:var(--coral)!important;background:white!important;border-color:#f3c4cc!important}
#shell .sidebar{width:216px!important;padding:24px 16px!important;background:#e9f3fe!important;border-right:1px solid #d7e7fa!important}
#shell .content{margin-left:216px!important}#shell main{max-width:1480px;padding:22px 28px 60px!important}
#shell .sidebar .light-wordmark{color:var(--ink)!important}#shell .sidebar .light-wordmark>span{color:var(--blue)!important}
#shell .sidebar #navigation{gap:5px!important;margin-top:26px!important}#shell .sidebar #navigation button{color:var(--ink)!important;min-height:44px!important;background:transparent!important;border-radius:9px!important;font-size:17px!important;padding:10px 12px!important}
#shell .sidebar #navigation button .light-icon{filter:none!important;width:23px;height:23px}
#shell .sidebar #navigation button.active{background:white!important;color:var(--blue)!important;box-shadow:inset 3px 0 var(--cyan)!important}
#shell .light-sidebar-bottom .light-qwen-link{background:var(--navy)!important;color:white!important;border-radius:10px!important;padding:13px!important}
#shell .light-sidebar-bottom .light-qwen-link :is(small,strong){color:white!important}#shell .light-profile-link{border-top:1px solid #cbdff5!important;color:var(--ink)!important}#shell .light-profile-link :is(small,strong){color:var(--ink)!important}
#shell .classic-masthead{background:#071d50 url('/approved-header-bg.png') right top/cover no-repeat!important;color:white!important;border-radius:16px!important;box-shadow:none!important;padding:18px!important;gap:12px!important;position:relative}
#shell .page-heading{position:relative!important;padding-right:132px!important;padding-left:43px!important;min-height:57px!important}
#shell .light-mobile-brand{display:block!important;position:absolute!important;left:0;top:3px;width:33px;height:33px}#shell .light-mobile-brand img{width:33px!important;height:33px!important;border-radius:9px}
#shell .page-heading h1{font-size:34px!important;line-height:1.12!important;letter-spacing:-.5px!important;color:white!important;font-weight:700!important}
#shell .page-heading .muted{font-size:15px!important;color:#d4e4fc!important;margin-top:5px!important}
#shell .utility-header{position:absolute!important;top:0!important;right:0!important;left:auto!important;padding:0!important;margin:0!important;min-height:0!important}
#shell .utility-actions{gap:6px!important}#shell .utility-actions :is(.assistant-open,.light-search-button,.light-account-button){background:#071d5080!important;border:1px solid #008fc1!important;color:white!important;border-radius:9px!important;width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important;padding:7px!important}
#shell .utility-actions .light-icon{filter:brightness(0) invert(1)!important;width:21px!important;height:21px!important}#shell .utility-actions .assistant-open{display:none!important}
#shell[data-page] #create{background:var(--blue)!important;box-shadow:none!important;border:1px solid #2989ff!important;min-height:38px!important;padding:8px 14px!important;border-radius:8px!important;font-size:16px!important}
#shell #open-filters{background:white!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:8px!important;min-height:38px!important}
#shell .classic-metric{background:#fff!important;border:0!important;border-radius:9px!important;min-height:45px!important;padding:8px 12px!important;font-size:15px!important;color:var(--muted)!important}#shell .classic-metric strong{font-size:25px!important;color:var(--blue)!important}#shell .classic-metric[data-kind=overdue] strong{color:var(--coral)!important}
#shell .light-week-strip{background:white!important;padding:4px!important;border-radius:8px!important;gap:2px!important;max-width:460px}
#shell .light-week-day{border-radius:5px!important;background:white!important;padding:3px!important;min-width:0!important}#shell .light-week-day[aria-pressed=true]{background:var(--navy)!important;box-shadow:inset 0 -2px var(--cyan)!important}
#shell .light-week-day strong{font-size:16px!important}#shell .light-week-day small{font-size:12px!important}
#shell .light-week-today{border-radius:7px!important;font-size:13px!important}
#shell :is(.panel,.daily-task-panel,.today-habits,#today-undated,.habit-card,.habit-summary,.calendar-main,.calendar-side,.month-panel,.note-card,.motivation){background:white!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:11px!important;box-shadow:none!important;padding:14px!important}
#shell h2{font-size:22px!important;color:var(--ink)!important;font-weight:700!important}#shell h3{color:var(--ink)!important}
#shell .panel-title{margin-bottom:8px!important;gap:8px!important}.panel-title .text-button{font-size:14px!important;white-space:nowrap}
#shell .light-today-layout{grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr)!important;gap:14px!important}
#shell #today-view{background:transparent!important;padding:0!important;margin:0!important;grid-column:1/-1!important}#shell .today-hero{background:transparent!important;padding:0!important;min-height:0!important;color:white!important}#shell .hero-copy p{font-size:14px!important;color:#deebff!important;margin:0!important}#shell .hero-copy{display:flex;align-items:center;gap:10px!important}#shell #today-progress-bar{height:4px!important;width:180px!important;max-width:45%}
#shell #today-overdue{margin-top:10px!important;border-top:1px solid #efd7df;padding-top:10px!important}#shell #today-overdue:empty{display:none}#shell #today-overdue h2{color:var(--coral)!important}
#shell #today-content .today-habits,#shell #today-undated{margin:0!important}#shell .dense-today-aside{gap:14px!important}#shell .dense-column-head{display:none!important}
#shell[data-page] .task-row,#shell[data-page] .task-group .task-row{display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;gap:7px!important;min-height:51px!important;padding:7px 0!important;background:white!important;border:0!important;border-bottom:1px solid #e4ecf6!important;border-radius:0!important;align-items:center!important;box-shadow:none!important}
#shell[data-page] .task-row-body{display:grid!important;grid-template-columns:47px minmax(0,1fr)!important;gap:2px 9px!important;align-items:center!important;min-width:0!important}
#shell[data-page] .task-row-body>.dense-task-date{grid-column:1;grid-row:1/span 2;border-right:1px solid #d8e5f5;min-height:32px;display:flex;align-items:center;font-size:13px!important;white-space:normal!important;color:var(--muted)!important;padding-right:5px}
#shell[data-page] .dense-task-title{grid-column:2;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:3px!important;min-width:0!important}
#shell[data-page] .task-row .task-name{font-size:16px!important;font-weight:400!important;line-height:1.25!important;display:block!important;-webkit-line-clamp:unset!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;padding:0!important;min-height:0!important;color:var(--ink)!important}
#shell[data-page] .task-row .task-meta{grid-column:2;display:flex!important;flex-wrap:wrap!important;gap:4px 6px!important;margin:0!important;line-height:1.2!important}
#shell .dense-task-category{font-size:12px!important;line-height:1.25!important;color:#496b9f!important;background:#edf4fe;border-radius:4px;padding:1px 5px!important}
#shell .dense-task-status{font-size:12px!important;color:var(--muted)!important}#shell .dense-task-status[data-status=todo]{display:none!important}
#shell .task-row-body>.dense-task-date.late{color:var(--coral)!important}#shell .task-row .tag{font-size:11px!important;padding:1px 5px!important;background:white!important;border:1px solid #9dbbe8!important;color:var(--blue)!important;border-radius:4px!important}#shell .task-row .tag.urgent{color:var(--coral)!important;border-color:#efbac5!important}
#shell[data-page] .task-row .task-completion{width:28px!important;min-width:28px!important;height:32px!important;min-height:32px!important;padding:3px!important;grid-column:2;position:static!important;transform:none!important;background:transparent!important;border:0!important}
#shell .task-completion .completion-face{width:22px!important;height:22px!important;border:1px solid #809abb!important;border-radius:50%!important;background:white!important}#shell .task-completion:has(input:checked) .completion-face{background:var(--blue)!important;border-color:var(--blue)!important}.completion-caption{display:none!important}
#shell .undated-actions{padding-left:56px!important;gap:5px!important;margin:2px 0 8px!important}#shell .undated-actions button{min-height:27px!important;font-size:12px!important;padding:4px 8px!important;background:#edf4ff!important;color:var(--blue)!important;border:0!important}
#shell :is(.classic-categories,.notes-chips,.light-task-filters){gap:6px!important}#shell :is(.classic-categories,.notes-chips,.light-task-filters) button{background:white!important;border:1px solid #ccddf2!important;color:var(--ink)!important;font-size:14px!important;padding:6px 11px!important;min-height:32px!important;border-radius:7px!important}
#shell :is(.classic-categories,.notes-chips,.light-task-filters) button[aria-pressed=true]{background:var(--navy)!important;color:white!important;border-color:var(--navy)!important}
#shell .agenda-card{background:white!important;border:0!important;border-bottom:1px solid #dfebf7!important;border-radius:0!important;box-shadow:none!important;padding:10px 4px!important}#shell .agenda-time{color:var(--blue)!important}#shell .month-cell{border-radius:3px!important;border-color:#e1eaf7!important}#shell .month-cell.selected{border:2px solid var(--blue)!important;background:#edf5ff!important;color:var(--ink)!important}
#shell .note-card{border-top:2px solid var(--blue)!important;padding:13px!important}#shell .note-top{font-size:12px!important}.note-top .tag{background:#eaf3ff!important;color:var(--blue)!important}.pin-mark{color:var(--blue)!important}#shell .dense-note-open{font-size:20px!important;color:var(--ink)!important}#shell .note-body{font-size:15px!important;line-height:1.4!important;color:var(--muted)!important}#shell .note-foot{font-size:12px!important;border-top:1px solid var(--line);padding-top:8px}.dense-note-menu summary{color:var(--blue)!important}
#shell .habit-view-switch button{min-height:34px!important;padding:6px 18px!important;background:#f5f9fe!important;color:var(--ink)!important;border:1px solid #d7e6f9!important}#shell .habit-view-switch button.active{background:var(--navy)!important;color:white!important}
#shell .habit-summary{display:flex!important;align-items:center;gap:15px;min-height:50px!important}.habit-summary progress{height:5px!important}#shell .habit-counter button{border-radius:7px!important;background:#f2f7ff!important;color:var(--blue)!important;border-color:#d8e5f5!important;width:40px!important;min-height:40px!important}#shell .habit-counter input{border-radius:7px!important;border-color:#d8e5f5!important;width:52px!important}#shell .habit-card{padding:13px!important}.habit-count{font-size:14px!important}.habit-body{margin-left:0!important}
progress{accent-color:var(--blue)!important;border-radius:6px!important}progress::-webkit-progress-bar{background:#e5edf9!important;border-radius:6px!important}progress::-webkit-progress-value{background:var(--blue)!important;border-radius:6px!important}progress::-moz-progress-bar{background:var(--blue)!important}
#shell .fitness-advice{background:white!important;border:1px solid #d8e7f8!important;border-left:3px solid var(--cyan)!important;color:var(--ink)!important;box-shadow:none!important;border-radius:10px!important;padding:14px!important;min-height:0!important;margin:0 0 14px!important}
#shell .fitness-advice :is(h2,p,.eyebrow,summary){color:var(--ink)!important}#shell .fitness-advice #fitness-advice-title{font-size:22px!important;line-height:1.2!important;margin:8px 0!important}#shell .fitness-advice .eyebrow{font-size:13px!important}#shell .fitness-advice .advice-freshness{font-size:12px!important}#shell .fitness-advice>.light-icon{filter:none!important;width:23px!important;height:23px!important}#shell .fitness-advice summary{font-size:13px!important}
#shell .health-daily{padding:0!important;border:0!important;background:transparent!important;margin-bottom:15px!important}
#shell #health-daily-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
#shell[data-page=fitness] #health-daily-cards .health-metric{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;padding:11px!important;min-height:94px!important;border:1px solid #dce8f7!important;border-radius:9px!important;background:white!important;color:var(--ink)!important;gap:3px 7px!important;box-shadow:none!important}
#shell[data-page=fitness] #health-daily-cards .health-metric>.light-icon{grid-column:1;grid-row:1/span 2;width:23px!important;height:23px!important;filter:none!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.metric-label{grid-column:2;font-size:13px!important;color:var(--ink)!important;line-height:1.2!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.metric-value{grid-column:1/-1;font-size:23px!important;line-height:1.2!important;white-space:normal!important;color:var(--ink)!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.metric-info{grid-column:1/-1;font-size:12px!important;color:var(--muted)!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric{grid-column:1/-1;grid-template-columns:29px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;min-height:62px!important;padding:12px!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.light-icon{grid-column:1;grid-row:1/span 2;width:27px!important;height:27px!important}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-label{grid-column:2;grid-row:1;font-size:16px!important}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-value{grid-column:3;grid-row:1/span 2;font-size:28px!important;white-space:nowrap!important}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-info{grid-column:2;grid-row:2}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>progress{grid-column:2/-1!important;height:4px!important}
#shell[data-page=fitness] #health-daily-cards .health-metric[data-metric=respiratory_rate]{display:none!important}#shell .show-all-health .health-metric[data-metric=respiratory_rate]{display:grid!important}
#shell[data-page=fitness] #health-daily-cards .health-metric .light-goal-unit{font-size:14px!important;color:var(--muted)!important}#shell .health-daily-status{font-size:12px!important}
#shell[data-page=fitness] .body-panel{padding:13px!important}.body-panel .body-metrics{gap:8px!important}.body-panel .light-body-metric{background:white!important;border:1px solid var(--line)!important;border-radius:8px!important;padding:11px!important;min-height:93px!important}.body-panel .light-body-metric>.light-icon{filter:none!important}.body-panel .light-body-metric .metric-label{font-size:13px!important;display:block!important}.body-panel .light-body-metric .metric-value{font-size:25px!important;color:var(--ink)!important}.body-panel .light-body-metric .metric-info{font-size:12px!important;color:var(--muted)!important}
#shell .light-body-extra{background:#f0f7ff!important;border:1px solid #d8e7fa!important;border-radius:9px!important;padding:0 10px!important}#shell .light-body-extra summary strong{font-size:16px!important;color:var(--ink)!important}#shell .light-body-extra summary small{font-size:12px!important;color:var(--muted)!important}.light-extra-grid{gap:7px!important}
#shell .fitness-hero{background:white!important;padding:14px!important;border-radius:10px!important;border:1px solid var(--line)!important}#shell .steps-total{font-size:36px!important;color:var(--ink)!important}#shell #steps-goal-text{font-size:15px!important}#shell .body-periods button{font-size:13px!important;padding:6px 10px!important;min-height:32px!important;border:1px solid var(--line)!important;background:white!important;color:var(--ink)!important}#shell .body-periods button.active{background:var(--navy)!important;color:white!important}#shell .steps-chart-heading h3{font-size:19px!important}#shell .steps-chart-heading>.text-button{font-size:14px!important}#shell :is(#steps-chart-stats,#steps-updated){font-size:13px!important;line-height:1.4!important}
.approved-line-chart{display:block;width:100%;height:auto;overflow:visible;font-family:'Aptos Narrow',sans-serif}.chart-line{stroke:#075bff;stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart-area{fill:#dff3ff;opacity:.65}.chart-point{fill:#075bff;stroke:white;stroke-width:1.3}.chart-baseline{stroke:#dce7f7;stroke-width:1}.chart-goal{stroke:#0874ff;stroke-width:1.2;stroke-dasharray:5 5}.chart-goal-label{fill:#075bff;font-size:11px}.chart-date{fill:#5d729b;font-size:11px}.chart-value{fill:#071d50;font-size:12px}.chart-missing{stroke:#b7c9e3;stroke-dasharray:2 2;stroke-width:1.5}#weekly{display:block!important;height:auto!important;min-height:180px}
#shell .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}#shell .stat{background:white!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:12px!important;min-height:70px!important;color:var(--ink)!important;gap:7px!important}#shell .stat:first-child{grid-column:1/-1;min-height:60px!important}#shell .stat:first-child>div{display:flex;align-items:center;justify-content:space-between;width:100%;gap:15px}#shell .stat-label{font-size:14px!important;margin:0 0 3px!important;color:var(--ink)!important}#shell .stat strong{font-size:29px!important}.stat-icon{filter:none!important}#shell .stat:last-child{color:var(--coral)!important;background:#fff9fa!important}#shell .stat:last-child .stat-label{color:var(--coral)!important}#shell .ring-track{stroke:#e2eaf5!important}#ring-value{stroke:var(--blue)!important;stroke-linecap:round}#ring-text{fill:var(--ink)!important;font-size:25px!important}.dot.done{background:var(--blue)!important}.dot.doing{background:#21bde5!important}.dot.todo{background:#c8d5e8!important}.legend-row{font-size:15px!important}.progress-body{gap:18px!important}.chart-note{font-size:13px!important}.progress-panel .ring{width:130px!important;height:130px!important}
/* All dialogs share the approved white header and compact input system. */
body dialog{background:white!important;color:var(--ink)!important;border:1px solid #d6e3f5!important;border-radius:12px!important;box-shadow:0 18px 65px #071d5030!important;padding:18px!important;max-height:calc(100dvh - 32px)!important;scrollbar-width:thin}
dialog::backdrop{background:#071d5066;backdrop-filter:blur(4px)}
body dialog h2{font-family:'Aptos Narrow',sans-serif!important;font-weight:700!important;color:var(--ink)!important;font-size:24px!important;letter-spacing:-.3px!important}
body dialog .panel-title,body dialog .task-editor-heading,body dialog .assistant-header{background:white!important;border-bottom:1px solid #dce7f6!important;padding-bottom:12px!important;margin-bottom:12px!important;gap:10px!important;flex-wrap:nowrap!important}
body dialog .approved-close{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important;display:grid!important;place-items:center!important;border:1px solid #a8c4ed!important;border-radius:7px!important;background:white!important;flex-shrink:0;font-size:0!important;color:var(--ink)!important}
.approved-close img{width:19px!important;height:19px!important}
.approved-heading-icon{width:23px;height:23px;flex:0 0 23px}.approved-modal-title{display:flex;align-items:center;gap:9px}
body dialog label{font-size:14px!important;color:#5374a6!important;margin:8px 0!important}
body dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fbfdff!important;color:var(--ink)!important;border:1px solid #bcd2ef!important;border-radius:8px!important;font-size:16px!important;min-height:43px!important;padding:9px 10px!important;box-shadow:none!important;max-width:100%}
body dialog label.approved-field{position:relative!important;display:block!important;border:1px solid #bcd2ef;border-radius:8px;padding:6px 10px 3px!important;background:#fbfdff;color:#5374a6;font-size:12px!important;margin:9px 0!important}
body dialog label.approved-field>:is(input,select,textarea){border:0!important;border-radius:0!important;background:transparent!important;margin:3px 0 0!important;padding:2px 0 5px!important;width:100%!important;min-height:26px!important;outline-offset:4px}
body dialog label.approved-field:focus-within{border-color:#398eff;box-shadow:0 0 0 1px #398eff}
body dialog input[type=checkbox]{accent-color:var(--blue)!important;width:21px!important;height:21px!important;min-height:21px!important;margin:0!important}
body dialog .checks label{display:flex!important;align-items:center!important;gap:8px!important;color:var(--ink)!important;font-size:16px!important}
body dialog .dialog-actions{border-top:1px solid #e0eaf8!important;padding-top:12px!important;gap:10px!important;background:white!important}body dialog .dialog-actions button{min-height:42px!important;border-radius:7px!important;font-size:16px!important;box-shadow:none!important}
body #task-form .task-editor-heading{top:-18px!important;margin:-18px -18px 8px!important;padding:14px 18px!important}body #task-form .task-basics{gap:10px!important}body #task-form textarea{height:76px!important;min-height:65px!important}body #task-form .task-editor-actions{bottom:-18px!important;margin:10px -18px -18px!important;padding:12px 18px!important}body #task-form .task-priorities{gap:22px!important}
body dialog .task-planning{border:1px solid #c3d8f2!important;background:#f8fbff!important;border-radius:9px!important;padding:0 11px!important;margin:10px 0!important}body dialog .task-planning summary{font-size:16px!important;color:var(--ink)!important;padding:12px 0!important;min-height:40px!important}
body #note-form{padding:18px!important}body #note-form textarea{font-size:16px!important;line-height:1.45!important;min-height:36dvh!important;border-left:2px solid #00bde8!important;background:white!important}body #note-form .panel-title{top:-18px!important}body #note-form .dialog-actions{bottom:-18px!important}body #note-save-status{font-size:12px!important}
body .settings-list{gap:8px!important}body .settings-list button{display:flex;align-items:center;gap:11px;text-align:left;min-height:47px!important;padding:11px 12px!important;background:#f5f9ff!important;border:1px solid #d7e6f7!important;border-radius:8px!important;font-size:16px!important;color:var(--ink)!important}body .settings-list button.primary{background:var(--blue)!important;color:white!important}body .settings-list img{width:23px;height:23px}.settings-list .approved-chevron{margin-left:auto;width:14px;height:14px}
body .trash-row{gap:10px!important;padding:12px 0!important;border-color:var(--line)!important;font-size:16px!important;line-height:1.3!important}body .trash-row span{min-width:0;overflow-wrap:anywhere}body #trash-list .trash-row button{background:var(--navy)!important;color:white!important;border:0!important;border-radius:7px!important;font-size:14px!important;padding:8px 10px!important;min-height:36px!important}
body .light-search-results button{padding:12px 3px!important;border-radius:0!important;border-bottom:1px solid #dce8f8!important;background:white!important;text-align:left!important}body .light-search-results strong{font-size:16px!important;font-weight:400!important;line-height:1.3!important}body .light-search-results small{font-size:12px!important;color:var(--blue)!important}body .light-search-dialog>input{font-size:17px!important}
body #habit-dialog .weekdays{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}body #habit-dialog .weekdays label{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:7px!important;font-size:13px!important;color:var(--ink)!important;min-width:0}body #habit-dialog fieldset{border:1px solid var(--line)!important;border-radius:8px!important;padding:10px!important}
body .health-help details{border:1px solid var(--line)!important;border-radius:8px!important;background:white!important;padding:0 10px!important;margin:7px 0!important}.health-help details[open]{border-left:3px solid var(--cyan)!important;background:#f8fbff!important}.health-help summary{font-size:16px!important;min-height:42px!important;padding:11px 0!important}.health-help p,.health-help li{font-size:14px!important;line-height:1.45!important}.goal-input{gap:9px!important}#fitness-goal{min-width:0!important}
body #assistant-dialog{padding:0!important;border-radius:12px!important}body #assistant-dialog .assistant-header{padding:14px 16px!important;margin:0!important}body #assistant-dialog .assistant-header h2{font-size:24px!important}body #assistant-status{font-size:12px!important}body #assistant-messages{padding:14px 16px!important;background:white!important;font-size:15px!important}body .assistant-prompts{padding:8px 14px!important;gap:6px!important}body .assistant-prompts button{background:var(--navy)!important;border:0!important;color:white!important;font-size:13px!important;min-height:32px!important;border-radius:18px!important;padding:7px 10px!important}
body #assistant-form{padding:0 14px 12px!important}body #assistant-privacy{border:0!important;border-left:2px solid var(--cyan)!important;border-radius:0!important;padding:3px 8px!important;background:white!important;font-size:14px!important}body .assistant-consent{font-size:13px!important;color:var(--ink)!important;line-height:1.35!important;display:flex!important;gap:8px!important;align-items:flex-start!important}body #assistant-privacy p{font-size:12px!important;line-height:1.35!important}body #assistant-message{min-height:70px!important;font-size:16px!important;background:#f8fbff!important}body #assistant-send{background:var(--navy)!important;border-color:var(--navy)!important}body .assistant-compose-actions button{min-height:40px!important;border-radius:7px!important;font-size:15px!important}
.login{color:var(--ink)!important;background:#fff!important}.login h1{font-family:'Aptos Narrow',sans-serif!important;color:var(--ink)!important}.login input{border:1px solid #c1d6f1!important;background:#f8fbff!important;border-radius:8px!important}.login form{border-color:#d9e6f7!important;box-shadow:none!important}.login .primary{background:var(--blue)!important}
@media(max-width:800px){
 #shell .sidebar{display:none!important}#shell .content{margin-left:0!important}#shell main{padding:10px 10px calc(88px + env(safe-area-inset-bottom))!important}
 #shell .classic-masthead{padding:14px 12px 12px!important;gap:10px!important;margin-bottom:13px!important;grid-template-columns:1fr!important;border-radius:13px!important}
 #shell .page-heading{padding-left:39px!important;padding-right:83px!important;min-height:54px!important}#shell .page-heading h1{font-size:30px!important;max-width:none!important;white-space:normal!important}#shell .page-heading .muted{font-size:13px!important;margin-top:4px!important}#shell .light-mobile-brand{width:30px!important;top:2px!important}#shell .light-mobile-brand img{width:30px!important;height:30px!important}
 #shell .utility-actions{gap:5px!important}#shell .utility-actions :is(.light-search-button,.light-account-button){width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:6px!important}
 #shell .classic-masthead .main-actions,#shell[data-page] .classic-masthead .main-actions{grid-column:1!important;grid-row:auto!important;justify-content:flex-start!important;margin:0!important}#shell #light-week-control{grid-column:1!important;grid-row:auto!important;width:100%!important;gap:5px!important}#shell .light-week-strip{gap:0!important;min-width:0!important;padding:3px!important}#shell .light-week-day{padding:2px!important;min-height:37px!important}#shell .light-week-day small{font-size:10px!important}#shell .light-week-day strong{font-size:15px!important}#shell .light-week-arrow{width:16px!important;min-width:16px!important;padding:1px!important}#shell .light-week-today{min-width:44px!important;width:44px!important;padding:5px 3px!important;font-size:11px!important}
 #shell .classic-metrics{gap:6px!important}#shell .classic-metric{gap:7px!important;padding:7px 8px!important;min-height:43px!important;font-size:13px!important}#shell .classic-metric strong{font-size:24px!important}
 #shell .light-today-layout{display:flex!important;flex-direction:column!important;gap:11px!important}#shell .dense-today-aside{gap:11px!important}#shell :is(.panel,.daily-task-panel,.today-habits,#today-undated,.habit-card,.habit-summary,.calendar-main,.calendar-side,.month-panel){padding:11px!important}
 #shell #bottom-nav{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;gap:1px!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom))!important;background:#edf5ff!important;border:1px solid #d5e5f8!important;border-radius:16px 16px 0 0!important;box-shadow:0 -3px 14px #071d5008!important;z-index:30!important;height:auto!important}
 #shell #bottom-nav button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:7px 1px!important;min-width:0!important;min-height:58px!important;background:transparent!important;border:0!important;border-radius:12px!important;color:#4b6896!important;font-size:11px!important;overflow:visible!important}#shell #bottom-nav button b{font-family:'Aptos Narrow',sans-serif!important;font-size:11px!important;font-weight:400!important;white-space:nowrap!important;line-height:1.2!important}#shell #bottom-nav button .light-icon{width:23px!important;height:23px!important;filter:none!important}#shell #bottom-nav button.active{background:var(--navy)!important;color:white!important;box-shadow:inset 0 -2px var(--cyan)!important}#shell #bottom-nav button.active .light-icon{filter:brightness(0) saturate(100%) invert(61%) sepia(93%) saturate(1802%) hue-rotate(145deg) brightness(102%) contrast(103%)!important}
 #shell h2{font-size:20px!important}#shell .health-daily>.panel-title h2{font-size:19px!important}#shell .health-daily>.panel-title .text-button{font-size:13px!important}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-value{font-size:24px!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.metric-value{font-size:20px!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.metric-label{font-size:12px!important}#shell[data-page=fitness] #health-daily-cards .health-metric{padding:9px!important;gap:3px 5px!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.light-icon{width:20px!important;height:20px!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.metric-info{font-size:11px!important}#shell .fitness-advice #fitness-advice-title{font-size:21px!important}
 #shell #progress-view .charts{grid-template-columns:1fr!important;gap:11px!important}#shell .progress-body{gap:12px!important}.legend-row{font-size:14px!important}#shell .stat{padding:10px!important}.stat-icon{width:21px!important;height:21px!important}#shell .stat-label{font-size:13px!important}#shell .stat strong{font-size:26px!important}
 body dialog{width:calc(100vw - 22px)!important;max-width:580px!important;padding:15px!important;max-height:calc(100dvh - 24px)!important}body dialog h2{font-size:23px!important}body #task-form .task-editor-heading{top:-15px!important;margin:-15px -15px 8px!important;padding:13px 15px!important}body #task-form .task-editor-actions{bottom:-15px!important;margin:10px -15px -15px!important;padding:11px 15px!important}body #task-form .task-basics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.form-grid{gap:8px!important}body #note-form .form-grid{grid-template-columns:1fr 1fr!important}body #note-form{padding:15px!important}body #note-form>.panel-title{top:-15px!important}body #note-dialog{padding:0!important}body #note-form textarea{min-height:38dvh!important}body #assistant-dialog{height:min(760px,calc(100dvh - 24px))!important;width:calc(100vw - 18px)!important}body #assistant-form{flex-shrink:0!important}body #assistant-messages{min-height:90px!important}
}
@media(max-width:360px){#shell #bottom-nav button b{font-size:10px!important}#shell .page-heading h1{font-size:27px!important}#shell .classic-metric{font-size:12px!important;padding:7px 6px!important}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-value{font-size:22px!important}#shell[data-page=fitness] #health-daily-cards .health-metric>.metric-value{font-size:18px!important}.panel-title{flex-wrap:wrap}.health-daily>.panel-title{flex-wrap:nowrap}}
body #habit-dialog .habit-schedule{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}body #habit-dialog .habit-schedule label{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:7px!important;font-size:13px!important;color:var(--ink)!important;min-width:0}
.settings-list .primary img{filter:brightness(0) invert(1)}
/* Final header hierarchy follows selected compact navy concept. */
#shell .classic-masthead{display:flex!important;flex-direction:column!important;align-items:stretch!important}
#shell .classic-masthead .page-heading{order:0!important;text-align:left!important;display:block!important}
#shell .classic-masthead #light-week-control{order:1!important}
#shell .classic-masthead .classic-metrics{order:2!important;display:grid!important}
#shell .classic-masthead #today-view{order:3!important}
#shell .classic-masthead .main-actions{order:4!important;align-self:stretch!important}
#shell .classic-masthead .main-actions #create{flex:1!important;background:#075bff!important;border:1px solid #00bde8!important}
#shell .classic-masthead #open-filters{background:#112c60!important;color:white!important;border-color:#5698df!important}
#shell .classic-metrics .classic-metric{background:transparent!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;padding:4px 12px!important;border-radius:0!important;border-right:1px solid #3975a7!important;color:#e0ebff!important;min-height:51px!important}
#shell .classic-metric:last-child{border-right:0!important}#shell .classic-metric strong{color:#00c6ee!important;font-size:31px!important}#shell .classic-metric[data-kind=undated] strong{color:#a6d8ff!important}#shell .classic-metric[data-kind=overdue] strong{color:#ff7b8d!important}
#shell #today-view .hero-copy{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important}#shell #today-progress-bar{width:100%!important;max-width:none!important;height:4px!important}
#shell[data-page] :is(#items,#today-tasks,#today-overdue,#today-undated,#today-done-list) .task-row{background:white!important;padding:6px 0!important}
#shell[data-page] .task-row-body>.dense-task-date{flex-direction:column;align-items:flex-start;justify-content:center;gap:0;line-height:1.05!important}.dense-task-date strong{font-size:22px;font-weight:700}.dense-task-date small{font-size:11px}
#shell .empty{padding:16px 10px!important;min-height:0!important}#shell .empty h3{font-size:17px!important;margin:0 0 4px!important}#shell .empty p{font-size:14px!important;margin:0!important}
#shell #today-tasks .empty{margin:5px 0 8px!important}#shell .today-hero .hero-copy p{text-align:left!important}
@media(max-width:800px){#shell .classic-masthead .page-heading h1{text-align:left!important;margin-left:0!important}#shell .classic-metrics .classic-metric{padding:3px 8px!important;min-height:49px!important}#shell .classic-metric strong{font-size:28px!important}#shell .classic-masthead{gap:10px!important}}
#shell[data-page] .task-row .task-completion{position:relative!important;isolation:isolate!important;overflow:hidden!important}
#shell .task-completion input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important}
#shell #open-filters img{filter:brightness(0) invert(1)!important}
body dialog :is(#task-form,#note-form,#habit-form) label.approved-field>:is(input,select,textarea){border:0!important;box-shadow:none!important;margin:3px 0 0!important;padding:2px 0 5px!important;border-radius:0!important;background:transparent!important;min-height:26px!important}
body dialog .approved-modal-title>.approved-heading-icon{display:none!important}
body dialog .approved-modal-title::before{content:'';display:block;width:23px;height:23px;flex:0 0 23px;background:url('/i-squares-four.svg') center/contain no-repeat}
body #task-dialog .approved-modal-title::before{background-image:url('/i-light-nav-tasks.svg')}body #note-dialog .approved-modal-title::before{background-image:url('/i-notebook.svg')}body #habit-dialog .approved-modal-title::before{background-image:url('/i-light-heart.svg')}body #assistant-dialog .approved-modal-title::before{background-image:url('/i-light-robot.svg')}body #light-search-dialog .approved-modal-title::before{background-image:url('/i-light-search.svg')}
body #task-form textarea{height:65px!important;min-height:65px!important}
body #shell [hidden],body dialog [hidden],#shell .classic-masthead .classic-metrics[hidden],#shell .classic-masthead .main-actions[hidden],#shell .classic-masthead #light-week-control[hidden],#shell #today-view[hidden],#shell #today-completed[hidden]{display:none!important}
#shell[data-page=fitness] #health-daily-cards .health-metric>.light-icon,#shell[data-page=fitness] .body-panel .light-body-metric>.light-icon{filter:brightness(0) saturate(100%) invert(24%) sepia(98%) saturate(4311%) hue-rotate(219deg) brightness(101%) contrast(105%)!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric{order:0!important;grid-column:1/-1!important}
#shell[data-page=fitness] #health-daily-cards .health-metric:not(.primary-metric){order:1!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric[data-metric=steps]{order:-3!important}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric[data-metric=sleep_minutes]{order:-2!important}#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric[data-metric=active_kcal]{order:-1!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.light-icon{grid-column:1!important;grid-row:1/span 2!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-label{grid-column:2!important;grid-row:1!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-value{grid-column:3!important;grid-row:1/span 2!important;align-self:center!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>.metric-info{grid-column:2!important;grid-row:2!important;overflow:visible!important;white-space:normal!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric>progress{grid-column:2/-1!important;grid-row:3!important}
#shell[data-page=fitness] #health-daily-cards .health-metric:not(.primary-metric)>.metric-value{grid-column:1/-1!important;grid-row:2!important;white-space:normal!important;font-size:19px!important}
#shell[data-page=fitness] #health-daily-cards .health-metric:not(.primary-metric)>.metric-info{grid-column:1/-1!important;grid-row:3!important;white-space:normal!important;overflow:visible!important}
#shell[data-page=fitness] #health-daily-cards .health-metric:not(.primary-metric)>.light-icon{grid-column:1!important;grid-row:1!important}
#shell .habit-view-switch button[aria-pressed=true]{background:var(--navy)!important;color:white!important;border-color:var(--navy)!important}
body dialog .approved-modal-title::before{filter:brightness(0) saturate(100%) invert(24%) sepia(98%) saturate(4311%) hue-rotate(219deg) brightness(101%) contrast(105%)}
body #note-form>label.approved-field:has(textarea){flex:1!important;min-height:160px!important;display:flex!important;flex-direction:column!important}body #note-form>label.approved-field>textarea{flex:1!important;min-height:0!important;height:auto!important;resize:none!important}body #note-form>.dialog-actions{margin-top:auto!important}
#shell[data-page=notes] .note-card{border-top:2px solid var(--blue)!important}#shell[data-page=notes] .note-card h3 button{font-size:20px!important;font-weight:700!important}#shell[data-page=notes] .note-body{font-size:15px!important;line-height:1.4!important}
#shell[data-page=fitness] #health-daily-cards .health-metric.primary-metric{height:auto!important;align-content:center!important;min-height:64px!important}
#shell[data-page=fitness] #health-daily-cards .health-metric:not(.primary-metric){height:auto!important;min-height:88px!important}
.settings-list img:not(.approved-chevron){filter:brightness(0) saturate(100%) invert(24%) sepia(98%) saturate(4311%) hue-rotate(219deg) brightness(101%) contrast(105%)}.settings-list .primary img{filter:brightness(0) invert(1)!important}.trash-source-link{margin:5px 0 0!important;padding:0!important;border:0!important;font-size:13px!important;color:var(--muted)}.trash-source-link summary{padding:2px 0!important;min-height:24px!important;font-size:13px!important}.trash-source-link p{font-size:12px;overflow-wrap:anywhere;margin:4px 0}
body .light-more-dialog>.approved-qwen-entry{background:var(--navy)!important;color:white!important;border-radius:8px!important;padding:12px!important}
body #assistant-dialog .assistant-chips{display:flex!important;gap:6px!important;padding:8px 14px!important;flex-wrap:wrap!important;border-top:1px solid var(--line)!important}body #assistant-dialog .assistant-chips button{background:var(--navy)!important;border:0!important;color:white!important;font-size:13px!important;min-height:32px!important;padding:6px 10px!important;border-radius:18px!important}
body #assistant-dialog #assistant-form .assistant-consent{font-size:13px!important}body #assistant-dialog #assistant-form #assistant-privacy p{font-size:12px!important}body #assistant-dialog #assistant-messages .muted{font-size:14px!important;line-height:1.4!important}
#shell #month-grid{gap:0!important;border-top:1px solid var(--line);border-left:1px solid var(--line)}#shell #month-grid .calendar-day{border:0!important;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;min-height:44px!important;background:white!important;color:var(--ink)!important;font-size:14px!important;padding:6px 2px!important}#shell #month-grid .calendar-day[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--blue)!important;background:#eff6ff!important;color:var(--blue)!important}#shell .day-dots .dot{background:var(--blue)!important}#shell .day-dots .family-dot{background:var(--cyan)!important}#shell .day-count{font-size:10px!important}
body #invite-dialog #invite-form label.approved-field>input{border:0!important;background:transparent!important;box-shadow:none!important;padding:3px 0 5px!important;margin:3px 0 0!important;min-height:26px!important}
body #invite-dialog #invite-form button,body #fitness-dialog #fitness-goal-form button{font-size:15px!important;min-height:40px!important;padding:8px 12px!important;border-radius:7px!important}
body #invite-dialog #account-users .trash-row button{font-size:14px!important;min-height:34px!important}body #invite-dialog #account-users .trash-row button:last-child{color:var(--coral)!important;background:white!important}
#shell #progress-view .charts{align-items:start!important}#shell .reward-row>strong,#shell .achievement{color:var(--blue)!important;background:transparent!important}.habit-done,.habit-done .task-name{color:var(--blue)!important}.habit-done{background:#f4f8ff!important}.tag.family,.tag.work{background:#edf4ff!important;color:#496b9f!important}
@media(max-width:800px){body #note-dialog{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0!important}body #note-form{height:100%!important}}
#shell .stat{min-width:0!important}#shell .stat>div{min-width:0!important}#shell .stat .stat-label{white-space:normal!important;overflow-wrap:anywhere!important}
@media(max-width:360px){#shell .stat:not(:first-child){display:flex!important;flex-direction:column!important;align-items:flex-start!important;padding:9px!important;gap:5px!important}#shell .stat:not(:first-child)>div{width:100%}#shell .stat .stat-label{font-size:12px!important}#shell .stat:not(:first-child) .stat-icon{width:19px!important;height:19px!important}#shell .progress-body{gap:8px!important}#shell .progress-body .ring{width:115px!important;height:115px!important}}
/* v49: consistent completion controls and stable planning header geometry. */
#shell .task-completion,#shell[data-page] .task-row .task-completion{position:relative!important;isolation:isolate!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;height:34px!important;min-height:34px!important;padding:3px!important;border:0!important;background:transparent!important;transform:none!important}
#shell .task-completion .completion-face{display:flex!important;align-items:center!important;justify-content:center!important;width:22px!important;height:22px!important;min-width:22px!important;border:1px solid #809abb!important;border-radius:50%!important;background:white!important;box-shadow:none!important}
#shell .task-completion .completion-mark{width:100%!important;height:100%!important;border:0!important;border-radius:50%!important;background:transparent!important}
#shell .task-completion:has(input:checked) .completion-face{background:var(--blue)!important;border-color:var(--blue)!important}
#shell .task-completion:not(:has(input:checked)) .completion-mark .ui-icon{visibility:hidden!important}
#shell .task-completion:has(input:checked) .completion-mark .ui-icon{visibility:visible!important;filter:brightness(0) invert(1)!important;width:14px!important;height:14px!important}
#shell[data-page] .habit-card{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;column-gap:7px!important;row-gap:3px!important;align-items:center!important}
#shell .habit-card>.habit-top{grid-column:1!important;grid-row:1!important;display:flex!important;min-width:0!important;margin:0!important;padding:0!important}
#shell .habit-card>.habit-top .task-name{font-size:16px!important;line-height:1.25!important;padding:0!important;min-height:0!important;background:transparent!important;white-space:normal!important}
#shell .habit-card>.habit-body{grid-column:1!important;grid-row:2!important;margin:0!important;padding:0!important;min-width:0!important}
#shell .habit-card>.habit-body .habit-count{margin:0 0 5px!important;font-size:13px!important;line-height:1.25!important}
#shell .habit-card>.habit-body>progress{display:block!important;width:100%!important;height:4px!important;margin:0!important}
#shell .habit-card>.habit-completion{grid-column:2!important;grid-row:1/span 2!important;position:relative!important;inset:auto!important;align-self:start!important;margin:5px 0 0!important}
#shell .habit-card .habit-adjust{margin-top:7px!important}
#shell #calendar-habit-list .habit-card{padding:7px 0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;min-height:55px!important}
#shell #calendar-habit-list .habit-card>.habit-completion{align-self:center!important;margin:0!important}
#shell #calendar-habit-list .habit-card>.habit-body{padding-left:0!important}
#shell #calendar-habit-list .habit-card>.habit-top{padding-left:0!important}
body #habit-form .habit-editor-actions{display:flex!important;flex-wrap:wrap!important}
body #habit-form .habit-editor-actions #delete-habit{margin-right:auto!important;color:var(--coral)!important;border-color:#f1c7d0!important}
body #habit-form .habit-editor-actions #delete-habit:not(.danger){color:var(--blue)!important;border-color:#bcd2ef!important}
#shell[data-page=overview] main,#shell[data-page=tasks] main,#shell[data-page=calendar] main{padding:22px 28px 60px!important}
#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:57px 44px 51px 42px!important;gap:10px!important;padding:18px!important;align-content:start!important;align-items:stretch!important;height:260px!important;min-height:260px!important}
#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead>.page-heading{grid-column:1!important;grid-row:1!important;min-height:0!important}
#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead>#light-week-control,#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead>#today-view{grid-column:1!important;grid-row:2!important;margin:0!important;align-self:center!important;width:100%!important}
#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead>.classic-metrics{grid-column:1!important;grid-row:3!important}
#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead>.main-actions{grid-column:1!important;grid-row:4!important;align-self:stretch!important;align-items:stretch!important;min-height:0!important}
#shell .fitness-advice>.advice-explainer{margin-top:8px!important;padding-top:8px!important;border-top:1px solid var(--line)!important}
#shell .fitness-advice>.advice-explainer>summary{font-size:14px!important;line-height:1.3!important;min-height:28px!important}
#shell .fitness-advice #health-ai-result,#shell .fitness-advice #fitness-advice-cards{font-size:15px!important;line-height:1.45!important;color:var(--ink)!important}
#shell .fitness-advice #health-ai-result p,#shell .fitness-advice #health-ai-result li,#shell .fitness-advice #fitness-advice-cards p{font-size:15px!important;line-height:1.45!important;color:var(--ink)!important}
#shell .fitness-advice #health-ai-limitations{font-size:12px!important;color:var(--muted)!important}
@media(max-width:800px){
 #shell[data-page=overview] main,#shell[data-page=tasks] main,#shell[data-page=calendar] main{padding:10px 10px calc(88px + env(safe-area-inset-bottom))!important}
 #shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead{grid-template-rows:54px 42px 49px 42px!important;padding:14px 12px!important;height:245px!important;min-height:245px!important}
 #shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .classic-masthead .main-actions button{min-height:0!important;height:42px!important}
}
#shell[data-page=calendar] #calendar-habit-list{padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}
#shell[data-page=calendar] #calendar-habit-list .habit-card,#shell[data-page=habits] #habit-list .habit-card{display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;gap:3px 7px!important;position:relative!important}
#shell[data-page=calendar] #calendar-habit-list .habit-card{padding:7px 0!important;min-height:55px!important}
#shell[data-page=calendar] #calendar-habit-list .habit-top,#shell[data-page=habits] #habit-list .habit-top{display:flex!important;grid-column:1!important;grid-row:1!important;min-width:0!important}
#shell[data-page=calendar] #calendar-habit-list .habit-body,#shell[data-page=habits] #habit-list .habit-body{grid-column:1!important;grid-row:2!important}
#shell[data-page=calendar] #calendar-habit-list .task-completion,#shell[data-page=habits] #habit-list .task-completion{display:flex!important;position:relative!important;inset:auto!important;grid-column:2!important;grid-row:1/span 2!important;align-self:center!important;justify-self:end!important;width:30px!important;min-width:30px!important;height:34px!important;min-height:34px!important;padding:3px!important;margin:0!important;align-items:center!important;justify-content:center!important}
#shell[data-page=calendar] #calendar-habit-list .task-completion .completion-face,#shell[data-page=habits] #habit-list .task-completion .completion-face{width:22px!important;height:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #809abb!important;border-radius:50%!important}
body #habit-form .habit-editor-actions{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr)!important;gap:6px!important;align-items:stretch!important}
body #habit-form .habit-editor-actions button{width:100%!important;min-width:0!important;padding:8px 5px!important;font-size:14px!important;min-height:42px!important;margin:0!important}
body #habit-form .habit-editor-actions:has(#delete-habit[hidden]){grid-template-columns:1fr 1fr!important}
#shell .fitness-advice #fitness-advice-cards .fitness-advice-item>p{display:block!important;margin:9px 0 4px!important;font-size:15px!important;line-height:1.45!important;color:var(--ink)!important}

/* Calendar undated tasks use the same bounded surface as other calendar groups. */
#shell[data-page=calendar] .unscheduled-section{background:#fff!important;border:1px solid var(--line)!important;border-radius:11px!important;padding:14px!important;margin-top:14px!important;box-shadow:none!important;min-width:0!important}
#shell[data-page=calendar] #unscheduled-items .task-row{background:#fff!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:8px 0!important;margin:0!important}
#shell[data-page=calendar] #unscheduled-items .task-row:last-child{border-bottom:0!important}
#shell[data-page=calendar] .agenda-row.is-overdue .agenda-event{border-color:var(--coral)!important}
@media(max-width:700px){#shell[data-page=calendar] .unscheduled-section{padding:11px!important}}

/* Timed calendar events have their own content layout, independent of task date grids. */
#shell[data-page=calendar] .compact-agenda .agenda-row{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;margin:8px 0!important}
#shell[data-page=calendar] .compact-agenda .agenda-row>time{width:auto!important;min-width:0!important;flex:none!important;padding-top:10px!important;font-size:12px!important;text-align:center!important;font-variant-numeric:tabular-nums}
#shell[data-page=calendar] .compact-agenda .agenda-event{display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;gap:8px!important;align-items:center!important;padding:10px!important;min-width:0!important;min-height:66px!important;border:1px solid #dce8f7!important;border-left:3px solid var(--blue)!important;border-radius:9px!important;background:#f5f9ff!important}
#shell[data-page=calendar] .compact-agenda .agenda-event>.task-row-body{display:block!important;min-width:0!important;width:auto!important;grid-template-columns:none!important}
#shell[data-page=calendar] .compact-agenda .agenda-event .task-name{display:block!important;width:100%!important;font-size:16px!important;line-height:1.3!important;min-height:0!important;padding:0!important;overflow-wrap:break-word!important;word-break:normal!important;text-align:left!important}
#shell[data-page=calendar] .compact-agenda .agenda-event .small{display:block!important;margin:5px 0 0!important;font-size:12px!important;line-height:1.35!important}
#shell[data-page=calendar] .compact-agenda .agenda-event .task-completion{width:30px!important;min-width:30px!important;height:34px!important;justify-self:end!important;margin:0!important}
#shell[data-page] .task-row-body>.dense-task-date{align-items:center!important;text-align:center!important;padding-right:5px!important}
#shell[data-page] .task-row-body>.dense-task-date.undated-date{gap:3px!important;color:#7890af!important}
#shell[data-page] .undated-date .ui-icon{width:20px!important;height:20px!important;opacity:.65}
#shell[data-page] .undated-date small{font-size:10px!important;line-height:1.1!important;white-space:normal!important;text-align:center!important}
#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .utility-actions #assistant-open{display:flex!important;align-items:center!important;justify-content:center!important}
#shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .utility-actions #assistant-open span{display:none!important}
@media(max-width:360px){
 #shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .page-heading #page-title{font-size:22px!important}
 #shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .utility-actions{gap:4px!important}
 #shell:is([data-page=overview],[data-page=tasks],[data-page=calendar]) .utility-actions :is(#assistant-open,.light-search-button,.light-account-button){width:30px!important;min-width:30px!important;height:32px!important;min-height:32px!important;padding:5px!important}
}

/* Empty day is a compact hint; progress appears only for actual planned tasks. */
#shell[data-page=overview] #today-progress-bar[hidden]{display:none!important}
#shell[data-page=overview] #today-progress-bar{appearance:none!important;border:0!important;border-radius:5px!important;overflow:hidden!important;background:#ffffff25!important;height:4px!important;min-height:4px!important;padding:0!important}
#shell[data-page=overview] #today-progress-bar::-webkit-progress-bar{background:#ffffff25!important;border-radius:5px!important}
#shell[data-page=overview] #today-progress-bar::-webkit-progress-value{background:var(--cyan)!important;border-radius:5px!important}
#shell[data-page=overview] #today-progress-bar::-moz-progress-bar{background:var(--cyan)!important;border-radius:5px!important}

/* Keep the existing icon boxes and layout, preserve cartoon colours. */
#shell .utility-actions .light-icon,#shell #bottom-nav button.active .light-icon,#shell[data-page=fitness] #health-daily-cards .health-metric>.light-icon,#shell[data-page=fitness] .body-panel .light-body-metric>.light-icon,.settings-list img:not(.approved-chevron),.settings-list .primary img,body dialog .approved-modal-title::before{filter:none!important}

/* Calendar and progress: compact content, original brand and shared header unchanged. */
#shell[data-page=calendar] #calendar-view{display:block}
#shell[data-page=calendar] .calendar-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
#shell[data-page=calendar] .month-panel:not([hidden]){grid-column:1!important}
#shell[data-page=calendar] .day-panel{padding:14px!important;border:1px solid var(--line)!important;background:white!important;border-radius:12px!important}
#shell[data-page=calendar] #day-summary{margin:5px 0 12px!important}
#shell[data-page=calendar] .compact-agenda .agenda-row{grid-template-columns:40px minmax(0,1fr)!important;gap:7px!important;margin:8px 0!important}
#shell[data-page=calendar] .compact-agenda .agenda-row>time{padding-top:10px!important;font-size:13px!important;color:#183454!important;font-weight:700}
#shell[data-page=calendar] .agenda-row>time small{display:block;margin-top:4px;font-size:11px;color:#6c82a1;font-weight:400}
#shell[data-page=calendar] .compact-agenda .agenda-event{background:#edf8ff!important;border:0!important;border-left:3px solid #20beec!important;border-radius:0 9px 9px 0!important;min-height:66px!important;padding:10px!important}
#shell[data-page=calendar] .compact-agenda .time-hour{min-height:25px!important;margin:2px 0!important}
#shell[data-page=calendar] .compact-agenda .time-hour>time{padding-top:4px!important;font-size:11px!important;color:#8191a6!important}
#shell[data-page=calendar] .compact-agenda .agenda-gap{min-height:25px!important;padding:4px 8px!important;font-size:11px!important;background:transparent!important;border:0!important;color:#7189a7!important;text-align:left!important}
#shell[data-page=calendar] #calendar-habits,#shell[data-page=calendar] .unscheduled-section{margin-top:12px!important;padding:14px!important;background:white!important;border:1px solid var(--line)!important;border-radius:12px!important}
#shell[data-page=calendar] #calendar-habits h2{font-size:18px!important;margin:0 0 10px!important}
#shell[data-page=calendar] .empty{padding:12px!important;min-height:0!important}
#shell[data-page=progress] #page-subtitle::after{content:' · все задачи'}
#shell[data-page=progress] #stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-bottom:12px!important}
#shell[data-page=progress] #stats .stat:first-child{display:none!important}
#shell[data-page=progress] #stats .stat{min-height:94px!important;display:block!important;padding:12px!important;background:#edf7ff!important}
#shell[data-page=progress] #stats .stat:nth-child(3){order:-1;background:#eaf8ff!important}
#shell[data-page=progress] #stats .stat:last-child{background:#fff1f3!important}
#shell[data-page=progress] #stats .stat-icon{width:20px!important;height:20px!important;float:right}
#shell[data-page=progress] #stats strong{display:block;font-size:34px!important}
#shell[data-page=progress] #dashboard .charts{display:flex!important;flex-direction:column!important;gap:12px!important}
#shell[data-page=progress] #dashboard .panel{margin:0!important;padding:14px!important}
#shell[data-page=progress] .progress-panel>.progress-body,#shell[data-page=progress] .progress-panel>h2{display:none!important}
#shell[data-page=progress] .progress-completion progress{display:block;width:100%;height:10px;margin:12px 0 2px;accent-color:#13bfe6}
#shell[data-page=progress] .progress-category{display:grid;grid-template-columns:90px minmax(0,1fr) 28px;align-items:center;gap:10px;margin-top:14px;font-size:15px}
#shell[data-page=progress] .progress-category progress{width:100%;height:10px;accent-color:#198fff}
#shell[data-page=progress] #progress-insight{background:#edf9ff!important;border-left:3px solid #24c7ed!important}
#shell[data-page=progress] #progress-insight p{margin:8px 0 0}
#shell[data-page=progress] #motivation{margin-top:12px!important;padding:14px!important}
#shell[data-page=progress] #motivation .points-total{font-size:22px!important;display:inline-block;margin-right:10px}
#shell[data-page=progress] #motivation .level-name{display:inline-block}
#shell[data-page=progress] #motivation details{margin-top:12px}
@media(min-width:1100px){#shell[data-page=progress] #dashboard .charts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}#shell[data-page=progress] .progress-week-chart{grid-column:1/-1}}
#shell[data-page=progress] #dashboard .charts{align-items:stretch!important}
#shell[data-page=progress] #dashboard .charts>.panel{width:100%!important;min-width:0!important;box-sizing:border-box!important}
#shell[data-page=progress] #weekly{height:auto!important;min-height:0!important;display:block!important}
#shell[data-page=progress] #weekly svg{width:100%!important;height:190px!important;display:block!important}
#shell[data-page=calendar] .compact-agenda{gap:2px!important}
#shell[data-page=calendar] .compact-agenda .agenda-row.time-hour{height:25px!important;min-height:25px!important;margin:0!important}

/* Six primary sections after retiring the progress screen. */
#shell #navigation [data-page=progress],#shell #bottom-nav [data-dest=progress],#settings-progress,#shell #progress-view{display:none!important}
@media(max-width:800px){#shell #bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
