/* Match the current Calendar's system-font scale across the Tasks workspace. */
body.tasks-page{--apple-font:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",sans-serif;font-family:var(--apple-font);font-size:14px;line-height:1.45}
body.tasks-page :is(.tasks-main,.tasks-main *,dialog,dialog *,.account-menu,.account-menu *){font-family:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",sans-serif!important;font-size:14px!important;line-height:1.45!important}
body.tasks-page :is(h1,h2,h3,h4){font-size:18px!important;line-height:1.25!important;letter-spacing:-.025em;font-weight:600}
body.tasks-page :is(h1,h2,h3,h4) :where(*){font-size:inherit!important;line-height:inherit!important}
body.tasks-page .tasks-calendar-section .hero-copy h2,body.tasks-page .tasks-calendar-section .hero-copy h2 em,body.tasks-page .tasks-calendar-section .metric-card>strong,body.tasks-page .production-health-shell>header dd{font-size:28px!important;line-height:1.15!important}
body.tasks-page .tasks-calendar-section .hero-copy h2{letter-spacing:-.05em}
body.tasks-page .tasks-calendar-section .metric-card>strong{font-weight:700;letter-spacing:-.04em}
body.tasks-page .tasks-calendar-section .intelligence-title h3{letter-spacing:-.035em}
body.tasks-page .tasks-calendar-insights .insight-section-heading h2{letter-spacing:-.04em}
body.tasks-page .tasks-calendar-insights .insight-card-copy h3{letter-spacing:-.042em}
body.tasks-page :is(button,select,input,textarea){font-family:var(--apple-font);font-weight:500}
body.tasks-page :is(.task-copy b,.task-project,.task-status-table-header,.health-kind h3,.task-question-toggle,.view-switch button,.task-status-tabs>button,.health-filter-row>button,.add-task,.primary){font-weight:600}
body.tasks-page :is(.tasks-main,dialog) :is(input:not([type="checkbox"]):not([type="radio"]),select){min-height:36px;box-sizing:border-box}
body.tasks-page dialog textarea{min-height:70px;box-sizing:border-box}
body.tasks-page :is(.priority,.detail-pills span){font-weight:600;letter-spacing:0}
body.tasks-page .task-status-tabs{grid-template-columns:repeat(4,minmax(150px,1fr));overflow-x:auto}
body.tasks-page .production-health .health-filter-row{grid-template-columns:repeat(5,minmax(125px,1fr))}
body.tasks-page :is(.task-status-tabs>button,.health-filter-row>button){min-height:55px;height:auto;padding-top:12px;white-space:nowrap}
body.tasks-page :is(.health-filter-row>button>b,.task-status-tabs>button>b){min-width:26px;width:auto;min-height:26px;height:auto;padding:2px 6px}
body.tasks-page .production-health-layout>aside .health-period{flex-wrap:wrap}
body.tasks-page .health-row{row-gap:12px;padding-top:18px;padding-bottom:18px}
body.tasks-page :is(.health-row>span,.health-kind,.health-row h3,.task-question-answer p,.task-copy){min-width:0}
body.tasks-page .health-row :is(p,small,b){overflow-wrap:anywhere}
body.tasks-page .task-row .task-open{min-height:74px}
body.tasks-page .task-row .task-code{letter-spacing:0;overflow-wrap:anywhere}
body.tasks-page .task-row .task-progress{min-width:0}
body.tasks-page .task-row :is(.avatar,.priority){flex-shrink:0}
body.tasks-page .task-search{height:auto;min-height:44px}
body.tasks-page .task-search input{min-width:0}
body.tasks-page .tasks-calendar-section .metric-card{padding:12px;min-height:148px;gap:4px}
body.tasks-page .tasks-calendar-section .metric-card>span{white-space:normal;overflow-wrap:anywhere}
body.tasks-page .tasks-calendar-section .metric-card small{flex-wrap:wrap;row-gap:2px}
body.tasks-page .tasks-calendar-insights .insight-card-meta em{letter-spacing:.04em;padding:4px 8px}
body.tasks-page .tasks-calendar-insights .insight-front-action{align-items:flex-end}
body.tasks-page .tasks-calendar-insights .insight-front-action>div{min-width:0}
body.tasks-page .tasks-calendar-insights .insight-card-back{padding:24px}
body.tasks-page .tasks-calendar-insights .simple-agent-copy{padding-top:18px}
/* Keep every month visible at the same readable 14px scale as Calendar tables. */
body.tasks-page .tasks-calendar-insights .task-matrix-overlay{top:118px;left:18px;right:18px}
body.tasks-page .tasks-calendar-insights .task-state-mix>header{margin-bottom:4px!important}
body.tasks-page .tasks-calendar-insights .task-state-mix>header>span{padding:2px 6px}
body.tasks-page .tasks-calendar-insights .task-state-heatmap table{border-spacing:2px 3px}
body.tasks-page .tasks-calendar-insights .task-state-heatmap th:first-child{width:78px}
body.tasks-page .tasks-calendar-insights .task-state-heatmap :is(th,td){height:24px!important;padding:0!important;letter-spacing:0;white-space:nowrap}
body.tasks-page .tasks-calendar-insights .task-state-mix-footer{display:none!important}
body.tasks-page .tasks-calendar-insights .task-state-disclosure{margin:5px 0 0!important;color:#50555f!important}
body.tasks-page .tasks-calendar-insights .task-state-trend{display:none}
@media(min-width:1101px){body.tasks-page .task-status-table-header,body.tasks-page .task-status-table .task-row{min-width:1160px}body.tasks-page .task-status-table{overflow-x:auto}}
@media(max-width:1100px) and (min-width:761px){body.tasks-page .production-health-layout{grid-template-columns:minmax(0,1fr) 260px}body.tasks-page .health-row{grid-template-columns:minmax(0,1fr)}body.tasks-page .health-row>a{grid-column:auto;grid-row:auto;justify-self:start}}
@media(max-width:760px){
 body.tasks-page .tasks-calendar-section .metric-card{padding:10px 8px;min-height:164px}
 body.tasks-page .tasks-calendar-section .metric-card .metric-action-hint{white-space:normal}
 body.tasks-page .tasks-calendar-insights .insight-flip-card{height:460px}
 body.tasks-page .tasks-calendar-insights .task-matrix-overlay{top:126px;left:14px;right:14px}
 body.tasks-page .tasks-calendar-insights .task-state-heatmap th:first-child{width:78px}
 body.tasks-page .health-row>a{width:auto;justify-self:start;padding:9px 18px}
 body.tasks-page .task-row .task-open{row-gap:10px;min-height:150px}
 body.tasks-page .task-status-tabs{grid-template-columns:repeat(4,170px)}
 body.tasks-page .production-health .health-filter-row{grid-template-columns:repeat(5,145px)}
 body.tasks-page .task-dialog{width:calc(100vw - 28px);max-width:600px;padding:20px}
 body.tasks-page .task-dialog .form-row{grid-template-columns:minmax(0,1fr)}
 body.tasks-page .task-dialog footer{flex-wrap:wrap}
}
/* Headings win over the universal body scale, including their inline emphasis. */
body.tasks-page .tasks-main :is(h1,h2,h3,h4),body.tasks-page dialog :is(h1,h2,h3,h4){font-size:18px!important;line-height:1.25!important;letter-spacing:-.025em;font-weight:600}
body.tasks-page .tasks-main :is(h1,h2,h3,h4) :where(*),body.tasks-page dialog :is(h1,h2,h3,h4) :where(*){font-size:inherit!important;line-height:inherit!important}
body.tasks-page .tasks-main .tasks-calendar-section .hero-copy h2,body.tasks-page .tasks-main .tasks-calendar-section .hero-copy h2 em{font-size:28px!important;line-height:1.15!important;letter-spacing:-.05em}
body.tasks-page .tasks-calendar-section .metric-card small{flex-wrap:nowrap;align-items:baseline}
body.tasks-page .health-period-row .health-period{width:auto;max-width:100%}
body.tasks-page .health-period-row .health-period button{white-space:nowrap;min-width:64px;padding-left:8px;padding-right:8px}
@media(min-width:761px){body.tasks-page .task-row .task-code{white-space:nowrap;overflow-wrap:normal}body.tasks-page .task-open{grid-template-columns:90px minmax(170px,1.5fr) minmax(130px,.7fr) minmax(140px,.85fr) 85px 110px 90px}body.tasks-page .task-status-table .task-row{min-width:1250px}}
