/* One outer Calendar gutter for every Tasks section. Keep card interiors independent. */
body.tasks-page{--tasks-page-gutter:72px}
body.tasks-page :is(.tasks-calendar-section,.tasks-calendar-insights,.tasks-calendar-qa){--workspace-gutter:var(--tasks-page-gutter)}
body.tasks-page .production-health{width:auto;max-width:none;margin-left:var(--tasks-page-gutter);margin-right:var(--tasks-page-gutter)}
body.tasks-page #task-workspace{width:auto;max-width:none;margin-left:var(--tasks-page-gutter);margin-right:var(--tasks-page-gutter);padding-left:0;padding-right:0}
body.tasks-page .production-health-shell>header,body.tasks-page .production-health-layout{padding-left:0;padding-right:0}
@media(min-width:761px){
 body.tasks-page .tasks-main{margin-left:232px;width:auto;max-width:none}
 body.tasks-page.nav-collapsed .tasks-main{margin-left:83px}
}
@media(min-width:761px) and (max-width:1100px){body.tasks-page{--tasks-page-gutter:36px}}
@media(max-width:760px){
 body.tasks-page{--tasks-page-gutter:14px}
 body.tasks-page .tasks-main{margin-left:0;width:auto}
 body.tasks-page .production-health-shell>header{padding-left:0;padding-right:0}
 body.tasks-page .production-health-layout{padding-left:0;padding-right:0}
 body.tasks-page #task-workspace{padding-left:0;padding-right:0}
}
/* The shared density sheet appends an important shell margin after page styles. */
@media(min-width:761px){body.tasks-page .tasks-main{margin-left:232px!important}body.tasks-page.nav-collapsed .tasks-main{margin-left:83px!important}}
@media(max-width:760px){body.tasks-page .tasks-main{margin-left:0!important}}
/* Founder screenshot correction: Calendar centers a capped design canvas on wide screens. */
@media(min-width:761px){
 body.tasks-page{--tasks-page-gutter:clamp(38px,5vw,76px)}
 body.tasks-page .tasks-main{width:calc(100vw - 232px);max-width:1440px;margin-left:max(232px,calc((100vw - 1440px + 232px)/2))!important}
 body.tasks-page.nav-collapsed .tasks-main{width:calc(100vw - 83px);max-width:1440px;margin-left:max(83px,calc((100vw - 1440px + 83px)/2))!important}
}
/* Preserve Calendar's fixed card size and the next-card peek. */
body.tasks-page .tasks-calendar-insights .insight-rail{padding-right:32px;gap:20px}
body.tasks-page .tasks-calendar-insights .insight-flip-card{flex:0 0 min(390px,84vw);width:min(390px,84vw);height:450px;border-radius:26px}
@media(max-width:650px){
 body.tasks-page .tasks-calendar-insights .insight-rail{padding-right:18px;gap:14px}
 body.tasks-page .tasks-calendar-insights .insight-flip-card{flex-basis:min(320px,82vw);width:min(320px,82vw);height:410px;border-radius:24px}
 /* Keep the six readable columns between the card heading and action footer. */
 body.tasks-page .tasks-calendar-insights .task-matrix-overlay{top:103px;left:14px;right:14px}
 body.tasks-page .tasks-calendar-insights .task-state-mix>header{margin-bottom:2px!important}
 body.tasks-page .tasks-calendar-insights .task-state-mix>header>span{padding:0 5px}
 body.tasks-page .tasks-calendar-insights .task-state-heatmap table{border-spacing:2px 2px}
 body.tasks-page .tasks-calendar-insights .task-state-heatmap :is(th,td){height:21px!important}
 body.tasks-page .tasks-calendar-insights .task-state-disclosure{margin-top:3px!important}
}
