/* Shared readability baseline, applied after the compact component styles. */
:root{--readable-secondary:#71657e;--readable-body:#43394f}
body{color:var(--readable-body);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body .page-nav button[data-page]{font-size:12px;line-height:1.3}
body #summary,body .save-hint{font-size:12px;color:var(--readable-secondary)}
body .legal-links{font-size:11px;line-height:1.5}body .legal-links a{color:#766a83}
body #tasks .title,body .matrix-task-name{font-size:16px;line-height:1.5}
body .compact-task-layout .swipe-task .title{font-size:15px!important;line-height:22px!important}
body #tasks .date,body .matrix-task-name small,body #tasks .untagged-label{font-size:12px;line-height:1.5;color:var(--readable-secondary)}
body #tasks .task-section>h2,body .tag-section-toggle,body .completed-section-toggle{font-size:14px;line-height:1.5}
body .task-group-heading,body .priority-heading{font-size:14px}
body .dashboard-count span{font-size:12px}body .dashboard-count strong{font-size:21px}
body .dashboard-details h2,body .week-progress-heading{font-size:13px;line-height:1.4}
body .dashboard-upnext button span{font-size:13px;line-height:1.5}body .dashboard-upnext button small{font-size:12px;line-height:1.5;color:var(--readable-secondary)}
body .dashboard-upnext button{padding:5px 0;min-height:38px}body .dashboard-upnext p{font-size:12px;color:var(--readable-secondary)}
body .week-progress-copy>small,body .week-progress-footer,body .week-progress-empty{font-size:12px;line-height:1.5;color:var(--readable-secondary)}
body .week-progress-footer{flex-wrap:wrap;gap:2px 8px}body .week-progress-card{padding:11px 12px}
body .week-progress-ring strong small{font-size:12px}
body .dashboard-filter,body .dashboard-filter button{font-size:12px}
body .task-detail-row{font-size:14px;line-height:1.65;grid-template-columns:100px minmax(0,1fr)}
body .task-detail-row dt,body .task-detail-description h3{font-size:13px;color:var(--readable-secondary)}
body #desktopTags button,body .tag-drawer button[data-filter]{font-size:14px}
@media(max-width:360px){body .dashboard-details{grid-template-columns:1fr 1fr}body .week-progress-main{gap:7px}body .week-progress-ring{width:44px;height:44px}body .week-progress-copy>strong{font-size:20px}}
body .layout .page-nav button[data-page]{font-size:12px;line-height:1.3}
body #tasks .task-section .title{font-size:16px;line-height:1.5}
body .matrix-subtitle,body .matrix-empty{font-size:13px;line-height:1.6;color:var(--readable-secondary)}
body .matrix-quadrant h2{font-size:17px}
body .dates-list-first #datesWeekStrip .week-day-name,body .week-day-name{font-size:11px;color:var(--readable-secondary)}
body #datesWeekMonthLabel{font-size:13px;color:var(--readable-secondary)}
body .lunar-calendar-legend,body .dates-calendar-legend{font-size:11px;line-height:1.5;color:var(--readable-secondary)}
body .holiday-calendar-entry strong{font-size:14px;line-height:1.6}body .holiday-calendar-entry span{font-size:12px;line-height:1.5;opacity:1}
body #upcomingHolidays h2,body #desktopDateCalendar #upcomingHolidays li,body #upcomingHolidays li,body #upcomingHolidays p{font-size:13px;line-height:1.6}
body #upcomingHolidays time{min-width:50px}body #upcomingHolidays span{white-space:normal}
body .all-holidays-content time{font-size:12px}body .all-holidays-content strong{font-size:14px}
body .dates-list-first .legal-links{font-size:11px;line-height:1.5}
body #settingsPage p,body #settingsPage .cloud-settings p,body #settingsPage .account-identity p,body #settingsPage .account-identity #cloudStatus{font-size:13px;line-height:1.65;color:var(--readable-secondary)}
body #settingsPage label,body #settingsPage summary,body #settingsPage .backup-settings>summary{font-size:13px;line-height:1.5}
body #settingsPage h2,body #settingsPage .account-identity h2{font-size:16px;line-height:1.5}
body #settingsPage button,body #settingsPage .account-summary .cloud-actions button{font-size:13px;line-height:1.4}
body #settingsPage .account-summary{flex-wrap:wrap;row-gap:10px}
body #settingsPage select,body #settingsPage input,body #settingsPage #voiceLanguageSetting{font-size:16px;line-height:1.4}
body #taskForm label,body #taskForm legend{font-size:13px;line-height:1.5;color:var(--readable-secondary)}
body #taskForm #tagChoices label,body #taskForm .matrix-options label,body #taskForm .repeat-options label{font-size:13px;min-height:36px;height:auto;line-height:1.4}
body #taskForm #tagScrollHint,body #taskForm .muted,body #taskReminderHelp,body .time-hint{font-size:12px;line-height:1.6;color:var(--readable-secondary)}
body #taskForm #dateTrigger,body #taskForm #timeTrigger{font-size:14px;min-height:42px;height:auto}
body #taskForm input:not([type=checkbox]):not([type=radio]),body #taskForm select,body #taskForm textarea,body #tagName,body #descriptionDraft{font-size:16px}
body #taskForm #taskName{font-size:19px;line-height:1.5}
body #taskForm .formactions .primary,body #taskForm #showDescription,body #taskForm #viewDescription{font-size:14px}
body #taskDetailsDialog>header,body .details-status{font-size:12px;color:#71607f}
body .task-detail-description>div,body #fullDescription{font-size:15px;line-height:1.8;color:#5e506b}
body #taskDetailsDialog .details-edit{font-size:14px;min-height:40px}
body .description-draft-note{font-size:12px;line-height:1.5;color:var(--readable-secondary)}
body .tour-card p{font-size:14px;line-height:1.65}body .tour-card footer button{font-size:13px}body .tour-card header{font-size:12px}
body .inbox-note,body .notification-note{font-size:12px;line-height:1.6;color:var(--readable-secondary)}
body #settingsPage .account-summary{align-items:flex-start}
body #taskForm .quick-reschedule button{font-size:12px;min-height:32px}
body #customRepeat,body #customRepeat small{font-size:12px;line-height:1.6}
body #notificationInbox .inbox-item strong{font-size:14px}body #notificationInbox .inbox-item small{font-size:12px;color:var(--readable-secondary)}
body #notificationInbox .inbox-tools button{font-size:12px;min-height:32px}
body #tagDialog .tag-color-options label{font-size:13px}
@media(max-width:360px){body .task-detail-row{grid-template-columns:82px minmax(0,1fr);gap:10px}}
/* Folded phones: use the full width instead of squeezing two text-heavy cards. */
@media(max-width:480px){
 body #taskOverview .dashboard-details{grid-template-columns:minmax(0,1fr);gap:0;background:transparent;overflow:visible}
 body #taskOverview .dashboard-details .dashboard-week{border:0;border-radius:16px;background:linear-gradient(135deg,#eee8ff,#f8f5ff)}
 body #taskOverview .week-progress-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:10px 13px}
 body #taskOverview .week-progress-heading{grid-column:1/-1;font-size:13px}
 body #taskOverview .week-progress-main{margin:0;gap:10px;min-width:0}
 body #taskOverview .week-progress-ring{width:43px;height:43px}
 body #taskOverview .week-progress-ring strong{font-size:16px}
 body #taskOverview .week-progress-copy>strong{font-size:22px}
 body #taskOverview .week-progress-copy>small{font-size:12px;white-space:nowrap}
 body #taskOverview .week-progress-footer{flex-direction:column;justify-content:center;align-items:flex-end;gap:2px;margin:0;font-size:12px;line-height:1.5}
 body #taskOverview .week-progress-track{display:none}
 body #taskOverview .week-progress-empty{grid-column:1/-1;margin:0;font-size:12px}
 body #taskOverview .dashboard-details .dashboard-upnext{padding:10px 13px;border:0;background:transparent}
 body #taskOverview .dashboard-upnext h2{font-size:13px;margin-bottom:4px}
 body #taskOverview .dashboard-upnext button{min-height:38px;padding:4px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:baseline}
 body #taskOverview .dashboard-upnext button span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;font-size:13px;line-height:1.5}
 body #taskOverview .dashboard-upnext button small{font-size:12px;line-height:1.5;white-space:normal;text-align:right;max-width:110px;color:#71657e}
 body #taskOverview .dashboard-upnext button+button{border-top:1px solid #e9e2f1;border-radius:0}
}
/* Weekly progress is the sole overview widget. */
body #taskOverview .dashboard-details{grid-template-columns:minmax(0,1fr)}
body #taskOverview .dashboard-details .dashboard-week{border-left:0}
/* Reduce listed task titles by 20%; retain full-size detail/editor text. */
body #tasks .title,body #tasks .task-section .title,body .matrix-task-name{font-size:12.8px;line-height:1.5}
body .compact-task-layout .swipe-task .title{font-size:12px!important;line-height:18px!important}
/* Up Next is reserved for a desktop with a mouse/trackpad. */
body #taskOverview .dashboard-upnext{display:none}
@media(min-width:1200px) and (hover:hover) and (pointer:fine){body #taskOverview .dashboard-upnext{display:block}}
/* Activity chart complements scheduled weekly progress without another list. */
body #taskOverview .dashboard-details{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;background:transparent}
body #taskOverview .dashboard-details .dashboard-week{border-radius:16px;background:linear-gradient(135deg,#eee8ff,#f8f5ff)}
body #taskOverview .dashboard-details .daily-completions{order:0;min-width:0;border:0;border-radius:16px;background:#f0ecf9;padding:11px 10px}
body #taskOverview .daily-completions h2{font-size:12px;line-height:1.4;margin:0 0 5px}
.daily-completions>p{font-size:11px;line-height:1.5;color:#71657e;margin:0 0 8px}.daily-completions>p strong{font-size:16px;color:#5e489a}
.daily-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.daily-column{text-align:center;min-width:0;font-size:11px;color:#71657e}.daily-column>span{display:block;font-variant-numeric:tabular-nums;line-height:18px}
.daily-track{height:58px;border-radius:5px;background:#e3daef;display:flex;align-items:flex-end;overflow:hidden}.daily-track i{display:block;width:100%;border-radius:5px;background:#b39adf;transition:height .25s ease}.daily-column small{display:block;font-size:11px;line-height:17px;margin-top:3px}.daily-column.is-today small{color:#6945bc;font-weight:700}.daily-column.is-today i{background:#7958ed}
body #taskOverview .dashboard-upnext{grid-column:1/-1;order:2}
@media(max-width:480px){
 body #taskOverview .week-progress-card{display:block;padding:11px 10px}
 body #taskOverview .week-progress-heading{font-size:12px}
 body #taskOverview .week-progress-main{margin:9px 0;gap:7px}
 body #taskOverview .week-progress-ring{width:36px;height:36px}
 body #taskOverview .week-progress-ring strong{font-size:13px}
 body #taskOverview .week-progress-copy>strong{font-size:20px}
 body #taskOverview .week-progress-copy>small{font-size:11px;white-space:normal}
 body #taskOverview .week-progress-footer{align-items:flex-start;gap:2px;font-size:12px}
 body #taskOverview .week-progress-empty{font-size:11px;margin-top:5px}
}
@media(prefers-reduced-motion:reduce){.daily-track i{transition:none}}
/* Scale the percentage to its ring, with room for all three digits at 100%. */
body #taskOverview .week-progress-ring{container-type:inline-size}
body #taskOverview .week-progress-ring strong{font-size:clamp(9px,28cqi,18px);line-height:1;white-space:nowrap;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
body #taskOverview .week-progress-ring strong small{font-size:.55em;line-height:1;letter-spacing:0}
body #taskOverview .week-progress-ring:before{inset:10%}
/* Keep weekly progress compact rather than stretching it to chart height. */
body #taskOverview .dashboard-details .dashboard-week{align-self:start}
body #taskOverview .week-progress-card{height:auto;padding:10px}
body #taskOverview .week-progress-main{margin:6px 0}
body #taskOverview .week-progress-footer{margin-top:5px;gap:0 8px}
@media(max-width:480px){
 body #taskOverview .week-progress-card{padding:9px 10px}
 body #taskOverview .week-progress-main{margin:5px 0}
 body #taskOverview .week-progress-footer{flex-direction:row;align-items:center;justify-content:flex-start;gap:1px 9px;margin-top:4px}
 body #taskOverview .week-progress-empty{margin-top:3px}
}
/* Paired widgets share one height, with deliberate spacing inside progress. */
body #taskOverview .dashboard-details{align-items:stretch}
body #taskOverview .dashboard-details .dashboard-week{align-self:stretch;display:flex}
body #taskOverview .week-progress-card{height:100%;width:100%;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box}
body #taskOverview .week-progress-main{flex:1;align-items:center;margin:8px 0}
body #taskOverview .week-progress-footer{margin-top:5px}
body #taskOverview .week-progress-empty{margin-top:4px}
/* Fill the shared card height with a clear, left-aligned hierarchy. */
body #taskOverview .week-progress-card{align-items:stretch;text-align:left;gap:0;padding:12px}
body #taskOverview .week-progress-heading{width:100%;text-align:left;font-size:13px;justify-content:space-between}
body #taskOverview .week-progress-main{width:100%;justify-content:flex-start;gap:10px;margin:9px 0}
body #taskOverview .week-progress-ring{width:clamp(44px,12vw,56px);height:clamp(44px,12vw,56px)}
body #taskOverview .week-progress-copy>strong{font-size:26px;line-height:1.1}
body #taskOverview .week-progress-copy>strong>span{font-size:14px}
body #taskOverview .week-progress-copy>small{font-size:12px;line-height:1.5}
body #taskOverview .week-progress-footer{width:100%;font-size:12px;line-height:1.6;justify-content:space-between;align-items:flex-start;gap:0 6px}
@media(max-width:360px){body #taskOverview .week-progress-card{padding:10px}body #taskOverview .week-progress-main{gap:7px}body #taskOverview .week-progress-copy>strong{font-size:23px}}
/* Desktop overview is a vertical stack within its sidebar. */
@media(min-width:1200px) and (hover:hover) and (pointer:fine){
 body #taskOverview .dashboard-details{grid-template-columns:minmax(0,1fr);gap:14px}
 body #taskOverview .dashboard-details .dashboard-week{order:0;min-width:0}
 body #taskOverview .dashboard-details .daily-completions{order:1;grid-column:1;min-width:0}
 body #taskOverview .dashboard-details .dashboard-upnext{order:2;grid-column:1;min-width:0}
 body #taskOverview .week-progress-card{min-width:0;height:auto}
}
