/* The date selection and its agenda stay together in every calendar layout. */
.appointment.day-agenda{padding:12px;gap:8px;min-height:0;overflow:visible;transform:none}
.agenda-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}
.agenda-heading .eyebrow{font-size:12px;letter-spacing:.7px;line-height:1.4}
.appointment.day-agenda .agenda-heading .text-action{display:inline-block;font-size:12px;min-height:24px;padding:2px 0;border:0}
.agenda-scroll{flex:1;min-height:0;overflow:visible;padding:0 3px 4px 0}
.agenda-empty{font-size:15px;line-height:1.45;margin:0 0 12px!important}
.agenda-next-label{font-size:11px;letter-spacing:.6px;line-height:1.4;margin:0 0 8px!important}
.agenda-cards{display:grid;gap:10px}
.agenda-card{padding:10px 0;min-width:0;border-top:1px solid var(--line)}
.agenda-card:first-child{border-top:0;padding-top:0}
.agenda-card-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.day-agenda .agenda-card h3{font-size:22px;line-height:1.15;margin:0;overflow-wrap:anywhere}
.agenda-card-top time{font-size:17px;font-weight:700;white-space:nowrap}
.agenda-role{font-size:14px;line-height:1.4;margin:4px 0 0!important;overflow-wrap:anywhere}
.agenda-card-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
.agenda-zone{font-size:12px;line-height:1.3;color:var(--muted);overflow-wrap:anywhere;min-width:0;margin:0!important}
.day-agenda .agenda-card .priority{font-size:13px;min-height:36px;margin:0;flex-shrink:0;padding:7px 10px;white-space:nowrap}
.agenda-none{font-size:14px;line-height:1.5;color:var(--muted);margin:0!important}
.calendar-page .agenda-scroll{overflow:visible}
.desk-week-day.selected{outline:2px solid var(--blue);outline-offset:-2px;background:color-mix(in srgb,var(--blue),transparent 90%)}
.desk-week-day.has-event.selected{background:var(--blue)}
@media(min-width:1200px) and (max-height:850px){
 .desk-expanded .appointment.day-agenda{padding:9px;gap:6px}
 .desk-expanded .day-agenda .agenda-card h3{font-size:19px}
 .desk-expanded .agenda-card-top time{font-size:15px}
 .desk-expanded .agenda-card{padding:7px 0}
 .desk-expanded .agenda-card:first-child{padding-top:0}
 .desk-expanded .agenda-role{font-size:12px}
 .desk-expanded .day-agenda.has-many .agenda-role{display:none}
 .desk-expanded .day-agenda .agenda-card .priority{font-size:12px;min-height:32px;padding:5px 8px}
 .desk-expanded .agenda-card-bottom{margin-top:5px}
 .desk-expanded .agenda-cards{gap:6px}
}
@media(max-width:1199px){
 body[data-view=desk] #main{min-height:609px}
 .desk-compact{min-height:560px;grid-template-rows:minmax(342px,1.4fr) minmax(88px,.48fr) minmax(100px,.55fr)}
 .compact-calendar .compact-agenda{background:none;border:0;box-shadow:none;padding:0;flex:1;min-height:0;gap:6px}
 .compact-agenda .agenda-scroll{padding-bottom:3px}
 .compact-agenda .agenda-card h3{font-size:23px}
 .compact-agenda .agenda-card{padding:7px 0}
 .compact-agenda .agenda-card:first-child{padding-top:0}
 .compact-agenda .agenda-role{font-size:13px}
 .compact-agenda .agenda-card-bottom{margin-top:5px}
 .compact-agenda .agenda-card .priority{min-height:34px;padding:6px 10px;font-size:13px}
 .compact-agenda.has-many .agenda-role{display:none}
 .compact-agenda .agenda-empty{margin-bottom:8px!important;font-size:14px}
 .compact-agenda .agenda-cards{gap:6px}
}
@media(max-width:767px){body[data-view=desk] #main{min-height:601px}.compact-calendar .calendar-content{gap:7px}.compact-agenda .agenda-card h3{font-size:21px}.compact-agenda .agenda-card-top time{font-size:16px}.compact-agenda .agenda-heading .eyebrow{font-size:11px}.compact-agenda .agenda-card .priority{min-height:32px;padding:5px 9px}}
@media(max-width:1199px){
 .compact-calendar .compact-agenda{margin:0}
 .compact-agenda:has(.agenda-empty) .agenda-heading:not(:has(button)){display:none}
 .compact-agenda.has-many .agenda-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:7px 0}
 .compact-agenda.has-many .agenda-card:first-child{padding-top:0}
 .compact-agenda.has-many .agenda-card-top{grid-column:1;grid-row:1;gap:5px}
 .compact-agenda.has-many .agenda-card h3{font-size:18px}
 .compact-agenda.has-many .agenda-card-top time{font-size:14px}
 .compact-agenda.has-many .agenda-card-bottom{display:contents}
 .compact-agenda.has-many .agenda-zone{grid-column:1;grid-row:2;font-size:11px}
 .compact-agenda.has-many .agenda-card .priority{grid-column:2;grid-row:1/3;align-self:center;font-size:12px;padding:6px 8px;min-height:34px}
}
@media(max-width:767px) and (max-height:739px){
 .compact-object{padding-top:8px;padding-bottom:8px}
 .compact-pages .monitor-screen{padding-top:6px;padding-bottom:6px}
 .compact-pages .monitor-screen>strong{display:none}
}
.day-agenda:has(.agenda-empty) .agenda-heading:not(:has(button)){display:none}
@media(min-width:1200px) and (max-height:850px){
 .desk-expanded .day-agenda.has-many .agenda-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:7px 0}
 .desk-expanded .day-agenda.has-many .agenda-card:first-child{padding-top:0}
 .desk-expanded .day-agenda.has-many .agenda-card-top{grid-column:1;grid-row:1;gap:5px;flex-wrap:wrap}
 .desk-expanded .day-agenda.has-many .agenda-card h3{font-size:18px}
 .desk-expanded .day-agenda.has-many .agenda-card-top time{font-size:14px}
 .desk-expanded .day-agenda.has-many .agenda-card-bottom{display:contents}
 .desk-expanded .day-agenda.has-many .agenda-zone{grid-column:1;grid-row:2;font-size:11px}
 .desk-expanded .day-agenda.has-many .agenda-card .priority{grid-column:2;grid-row:1/3;align-self:center;font-size:12px;padding:6px 8px;min-height:34px}
}
/* Leave clear space for the calendar frame, shadow and the taped cards below. */
@media(max-width:1199px){
 .desk-compact .compact-calendar{height:calc(100% - 24px);margin-bottom:24px}
}
@media(max-height:739px){
 .desk-compact .compact-calendar{height:calc(100% - 16px);margin-bottom:16px}
 .compact-calendar .calendar-content{gap:4px}
 .compact-agenda .agenda-empty{margin-bottom:5px!important}
 .compact-agenda.has-many .agenda-card{padding-block:5px}
 .compact-agenda.has-many .agenda-card:first-child{padding-top:0}
 .compact-profile .washi{top:0}
}

/* The agenda is a short summary, with a single Today control below the calendar. */
.appointment.day-agenda{align-self:start;width:100%;height:auto;min-height:0;flex-shrink:0}
.agenda-scroll{flex:0 0 auto;min-height:auto;padding:0}
.agenda-heading .eyebrow{font-size:12px;line-height:1.35}
.agenda-empty{font-size:14px;line-height:1.35;margin-bottom:8px!important}
.agenda-next-label{font-size:12px;letter-spacing:0;line-height:1.35;margin-bottom:7px!important}
.agenda-card{padding:7px 0 2px}
.agenda-role{font-size:14px;line-height:1.3}
.agenda-card-bottom{justify-content:flex-end;margin-top:7px}
.day-agenda.has-many .agenda-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 8px;padding:7px 0}
.day-agenda.has-many .agenda-card-top{grid-column:1;grid-row:1;flex-wrap:wrap;gap:3px 8px}
.day-agenda.has-many .agenda-card h3{font-size:18px}
.day-agenda.has-many .agenda-card-top time{font-size:14px}
.day-agenda.has-many .agenda-role{display:none}
.day-agenda.has-many .agenda-card-bottom{display:contents}
.day-agenda.has-many .agenda-card .priority{grid-column:2;grid-row:1;font-size:12px!important;min-height:32px!important;padding:5px 7px!important}
@media(max-width:1199px){.compact-calendar .compact-agenda{flex:1 0 auto;min-height:auto;align-self:stretch}.compact-agenda .agenda-scroll{padding:0}.compact-agenda .agenda-card-bottom{margin-top:6px}}


/* Keep the time zone legible beside compact appointment actions. */
.day-agenda.has-many .agenda-zone{grid-column:1;grid-row:2}
.day-agenda.has-many .agenda-card .priority{grid-row:1/3}
.calendar-legend>span{overflow-wrap:anywhere;min-width:0}

.form-field[data-time-occurrence][hidden]{display:none}

.agenda-card-bottom [data-meeting-action]{min-height:44px;display:inline-flex;align-items:center;padding:8px 4px;font-size:14px}
