/* Calendar typography: system fonts and three balanced sizes across every surface. */
:where(.calendar-redesign-sections12,.calendar-redesign-whole,.calendar-horizon-detail){--apple-font:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",sans-serif;font-family:var(--apple-font)!important;font-size:14px!important;line-height:1.45!important}
:where(.calendar-redesign-sections12,.calendar-redesign-whole,.calendar-horizon-detail) :where(*){font-family:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",sans-serif!important;font-size:14px!important;line-height:1.45!important}
:where(.calendar-redesign-sections12,.calendar-redesign-whole,.calendar-horizon-detail) :is(h1,h2,h3,h4){font-size:18px!important;line-height:1.25!important;letter-spacing:-.025em}
.calendar-redesign-sections12 .hero-copy h2,.calendar-redesign-sections12 .hero-copy h2 em,.calendar-redesign-sections12 .metric-card>strong,.calendar-redesign-planner .day-status-strip button>strong{font-size:28px!important;line-height:1.15!important}
.calendar-redesign-planner .day-status-strip button[aria-current="date"]>span::after{font-size:14px!important;line-height:1.45!important}
:where(.calendar-redesign-sections12,.calendar-redesign-whole,.calendar-horizon-detail) :is(input:not([type="checkbox"]):not([type="radio"]),select){min-height:36px;box-sizing:border-box}
:where(.calendar-redesign-sections12,.calendar-redesign-whole,.calendar-horizon-detail) textarea{min-height:70px;box-sizing:border-box}
.calendar-redesign-sections12 .metric-card{padding:16px;gap:7px}
.calendar-redesign-sections12 .metric-card .metric-action-hint{padding-top:10px;white-space:normal}
.calendar-redesign-sections12 .calendar-attention-list article{gap:12px;padding:20px 0}
.calendar-redesign-sections12 .calendar-attention-list article p{margin:8px 0 12px}
.calendar-redesign-sections12 .calendar-attention-list .calendar-issue-marker{width:28px;height:28px;flex-basis:28px}
.calendar-horizon-month>header{flex-wrap:wrap;align-items:center;row-gap:7px}
.calendar-horizon-month>header h3{min-width:0}
.calendar-horizon-month>header nav{flex:none}
.calendar-horizon-month>header small{white-space:normal}
.calendar-horizon-booking-table th>button{white-space:normal;text-align:left;min-height:36px}
.calendar-horizon-table-filters :is(input,select){height:36px;min-height:36px}
.calendar-horizon-booking-table td{padding-top:10px;padding-bottom:10px}
.calendar-horizon-table-pill{white-space:normal}
.calendar-horizon-booking-table table{min-width:1120px}
.calendar-horizon-table-team>span{min-width:30px;width:30px;height:30px;flex:0 0 30px}
.calendar-redesign-whole .calendar-agent-dock .agent-compact-row{gap:10px}
.calendar-redesign-whole .calendar-agent-dock .agent-bullet-trigger{padding-top:16px;padding-bottom:16px}
.calendar-redesign-whole .calendar-agent-dock .agent-suggestion-group>h3{margin:20px 0 12px}
.calendar-redesign-whole .calendar-agent-composer label{white-space:normal}
.calendar-redesign-whole .calendar-agent-launcher{max-width:calc(100vw - 32px)}
.calendar-redesign-whole .calendar-agent-launcher strong{white-space:normal}
@media(max-width:650px){
 .calendar-redesign-sections12 .metric-row{gap:9px}
 .calendar-redesign-sections12 .metric-card{padding:12px 9px}
 .calendar-redesign-sections12 .metric-card span,.calendar-redesign-sections12 .metric-card small{overflow-wrap:anywhere}
 .calendar-redesign-sections12 .calendar-horizon-month>header{gap:8px}
}
:where(.calendar-redesign-sections12,.calendar-redesign-whole,.calendar-horizon-detail) :is(h1,h2,h3,h4) :where(*){font-size:inherit!important;line-height:inherit!important}
.calendar-redesign-planner .day-period-columns .is-short :is(time,strong){line-height:17px!important}
.calendar-redesign-planner .day-period-columns .planner-person-thumb{line-height:1!important}
.calendar-redesign-planner .day-period-columns .day-period-heading{min-height:56px}
.calendar-redesign-planner .day-period-columns .day-vertical-body{height:calc(60svh - 56px)!important}
.calendar-horizon-month-summary{grid-template-rows:auto auto;min-height:64px;gap:4px}
.calendar-horizon-month-summary>span{white-space:normal;overflow:visible;text-overflow:clip}
.calendar-redesign-planner .day-period-columns{grid-template-columns:repeat(3,minmax(360px,1fr))}
.calendar-redesign-planner .day-vertical-body>.planner-now-line>b{left:-56px;transform:none;white-space:nowrap;padding:2px 5px}
@media(max-width:650px){.calendar-redesign-planner .day-period-columns{grid-template-columns:repeat(3,minmax(360px,1fr))}.calendar-redesign-planner .day-status-strip button{min-height:130px}}
.calendar-redesign-planner .week-day-column>header strong{font-size:28px!important;line-height:1.15!important}
/* Restore compact summary proportions while keeping readable type and actions. */
.calendar-redesign-sections12 .metric-card{min-height:148px;padding:12px;gap:4px}
.calendar-redesign-sections12 .metric-card .metric-action-hint{padding-top:7px;white-space:nowrap}
@media(max-width:650px){.calendar-redesign-sections12 .metric-card{padding:10px 8px}.calendar-redesign-sections12 .metric-card .metric-action-hint{white-space:normal}}
/* Month titles and navigation share a dedicated row, never the weekday row. */
.calendar-horizon-month{grid-template-rows:36px 22px minmax(0,1fr);gap:8px;padding:14px 12px}
.calendar-horizon-month>.calendar-horizon-month-header{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:6px;height:36px;min-height:36px;flex-wrap:nowrap}
.calendar-horizon-month>.calendar-horizon-month-header h3{white-space:nowrap;letter-spacing:-.025em;line-height:22px!important}
.calendar-horizon-month-nav{gap:6px;width:62px;justify-content:flex-end}
.calendar-horizon-strip .calendar-horizon-month-arrow{width:28px;height:28px;min-width:28px;border-radius:50%}
.calendar-horizon-weekdays{margin:0;align-items:center;min-height:22px}
.calendar-horizon-weekdays>span{line-height:20px!important;text-align:center;letter-spacing:-.02em}
.calendar-horizon-strip .calendar-horizon-day>span:first-child{width:24px;height:24px;line-height:1!important}
.calendar-horizon-strip .calendar-horizon-count{line-height:18px!important;min-width:18px;height:18px;max-width:none;padding:0;text-align:center}
.calendar-horizon-month-summary{min-height:60px}
.calendar-horizon-copy h2{max-width:18ch}
.calendar-redesign-whole .agent-suggestion-group>h3{font-size:18px!important}

/* Reserve enough room for issue labels and keep booking rows on one line. */
.calendar-horizon-booking-table table{table-layout:fixed;min-width:1180px}
.calendar-horizon-booking-table :is(th,td):nth-child(1){width:3%;padding-left:8px;padding-right:8px}
.calendar-horizon-booking-table :is(th,td):nth-child(2){width:22%}
.calendar-horizon-booking-table :is(th,td):nth-child(3){width:12%}
.calendar-horizon-booking-table :is(th,td):nth-child(4){width:7%}
.calendar-horizon-booking-table :is(th,td):nth-child(5){width:12%}
.calendar-horizon-booking-table :is(th,td):nth-child(6){width:8%}
.calendar-horizon-booking-table :is(th,td):nth-child(7){width:17%}
.calendar-horizon-booking-table :is(th,td):nth-child(8){width:11%}
.calendar-horizon-booking-table :is(th,td):nth-child(9){width:8%;padding-right:8px}
.calendar-horizon-booking-table tbody td{height:50px;padding-top:8px;padding-bottom:8px;white-space:nowrap}
.calendar-horizon-booking-table tbody :is(strong,.calendar-horizon-table-pill,.calendar-horizon-table-muted,a){white-space:nowrap}
.calendar-horizon-booking-table tbody td:nth-child(7) .calendar-horizon-table-pill{max-width:none}
/* One heading divider and four compact attention rows by default. */
.calendar-redesign-sections12 .intelligence-panel .calendar-attention-list{border-top:0;margin-top:0}
.calendar-redesign-sections12 .calendar-attention-list article{padding:12px 0;gap:10px}
.calendar-redesign-sections12 .calendar-attention-list article p{margin:4px 0 6px}
.calendar-redesign-sections12 .calendar-attention-list .calendar-attention-more{margin-top:10px}
/* Keep the calendar key and navigation aligned on one desktop baseline. */
@media(min-width:1100px){
.calendar-redesign-planner .calendar-bottom-tools{flex-wrap:nowrap;gap:16px;align-items:center}
.calendar-redesign-planner .calendar-bottom-tools .day-calendar-key{width:auto;flex-wrap:nowrap;gap:12px;flex:none}
.calendar-redesign-planner .calendar-bottom-tools .day-calendar-key>span{white-space:nowrap}
.calendar-redesign-planner .calendar-bottom-controls{flex-wrap:nowrap;gap:10px;margin-left:auto}
.calendar-redesign-planner .calendar-bottom-controls nav{flex-wrap:nowrap;gap:6px}
.calendar-redesign-planner .planner-resource-filter{flex-wrap:nowrap;gap:6px}
.calendar-redesign-planner .planner-resource-filter select{width:140px;max-width:140px}
.calendar-redesign-planner .calendar-bottom-controls .calendar-visibility-menu summary{gap:4px;padding:0;min-height:36px}
.calendar-redesign-planner .calendar-bottom-controls nav button{width:36px;height:36px;padding:9px}
.calendar-redesign-planner .calendar-bottom-controls nav span{min-width:74px}
}
/* Compact weekly agenda, with explicit access to past and additional events. */
.calendar-redesign-planner .week-day-column>button.week-event-card{min-height:124px;padding:10px 9px 34px;gap:3px;margin-top:7px;margin-bottom:7px}
.calendar-redesign-planner .week-day-column>button.week-event-card[hidden]{display:none!important}
.calendar-redesign-planner .week-event-card .week-event-kind{padding-top:2px}
.calendar-redesign-planner .week-day-column>button.week-events-toggle{display:block;position:static;width:calc(100% - 16px);height:auto;min-height:34px;margin:7px 8px;padding:7px 9px;border:1px solid #dce5f5;border-radius:8px;background:#f0f5ff;color:#2765c5;text-align:center;line-height:20px;box-shadow:none}
.calendar-redesign-planner .week-day-column>button.week-events-toggle[data-week-disclosure="past"]{background:#f3f5f7;border-color:#e0e5eb;color:#5c697b}
.calendar-redesign-planner .week-events-toggle:focus-visible{outline:2px solid #1769f5;outline-offset:2px}
/* One restrained spacing rhythm between the major page sections. */
.calendar-redesign-sections12{--calendar-section-gap:32px}
.calendar-redesign-sections12 #section-one{padding-bottom:16px}
.calendar-redesign-sections12 #section-insights{padding-top:16px;padding-bottom:32px}
.calendar-redesign-sections12 .calendar-horizon-strip{margin-bottom:32px}
.calendar-redesign-sections12 .calendar-horizon-booking-table{margin-bottom:16px}
.calendar-redesign-sections12 #section-three{padding-top:16px;padding-bottom:16px}
.calendar-redesign-sections12 #section-four{padding-top:16px;padding-bottom:32px}
.calendar-redesign-sections12 .insight-section-note{display:none!important}
.calendar-redesign-planner .conflict-resolution-content>h4{margin:16px 0 8px;font-weight:600}
.calendar-redesign-planner .conflict-resolution-content>h4:first-child{margin-top:0}
@media(max-width:650px){.calendar-redesign-sections12 .calendar-horizon-strip{margin-bottom:24px}.calendar-redesign-sections12 #section-insights{padding-bottom:24px}}
/* Lower the month row slightly alongside the studio outlook introduction. */
@container(min-width:1141px){.calendar-horizon-months{margin-top:24px}}
