/* UXC5.60.71.59 — agenda UX, incremental. No financial, provider or persistence changes. */
body.route-agenda .l2-agenda-mobile-actions,
body.route-agenda .l2-agenda-sync-health{display:none!important;} /* legacy selectors: safe if cached HTML */
body.route-agenda .l2-agenda-legend>strong{display:none!important;}
body.route-agenda .l2-agenda-legend{border-top:0;padding:7px 12px 9px;background:#fff;}
body.route-agenda .l2-agenda-legend-items{display:flex;align-items:center;gap:6px 9px;flex-wrap:wrap;min-width:0;}
body.route-agenda .l2-agenda-legend-items .ux637-type-chip{white-space:nowrap;}
body.route-agenda .l2-agenda-mobile-icons{display:none;}
@media screen and (max-width:767px){
 body.route-agenda .l2-agenda-mobile-icons{
  display:flex;gap:8px;align-items:center;justify-content:flex-start;
  width:100%;max-width:100%;box-sizing:border-box;padding:9px 12px;
  border-bottom:1px solid #e9eef3;background:#fff;
 }
 body.route-agenda .l2-agenda-mobile-icons .ux592-round-action{
  display:grid!important;place-items:center!important;flex:0 0 44px;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  padding:0!important;border:1px solid #dae4ed!important;border-radius:12px!important;
  background:#f7fafc!important;color:#215a7b!important;box-shadow:none!important;text-decoration:none;
 }
 body.route-agenda .l2-agenda-mobile-icons .ux-lucide{width:20px;height:20px;}
 body.route-agenda .l2-agenda-mobile-icons a:focus-visible{outline:3px solid #0a84ff;outline-offset:2px;}
 body.route-agenda .l2-agenda-legend{padding:8px 11px!important;margin-top:0!important;}
}
@media screen and (max-width:340px){
 body.route-agenda .l2-agenda-mobile-icons{gap:6px;padding-inline:8px;}
 body.route-agenda .l2-agenda-mobile-icons .ux592-round-action{flex-basis:42px;min-width:42px!important;width:42px!important;}
}
/* Desktop/notebook: the old 732px month-grid minimum and 760px window minimum
   clipped the actual calendar below the viewport. Keep a single responsive
   scroll container and accessible day links rather than hiding overflow. */
@media screen and (min-width:768px){
 body.route-agenda .ux714-ecosystem-banner{min-height:0;padding:5px 12px;font-size:11px;}
 body.route-agenda .l2-agenda-legend{padding:5px 9px 6px;}
 body.route-agenda .l2-agenda-legend-items{gap:4px 6px;}
 body.route-agenda .l2-agenda-legend-items .ux637-type-chip{padding:3px 5px;font-size:10px;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-calendar-appbar{min-height:46px;padding:5px 12px;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-period-head{padding:8px 13px 7px;min-height:44px;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-period-head h2{font-size:24px;line-height:1.1;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar{
  height:clamp(530px,calc(100dvh - 255px),920px)!important;
  min-height:0!important;max-height:none!important;
  box-sizing:border-box!important;
 }
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-calendar-main{
  min-height:0!important;overflow-y:auto;overscroll-behavior:contain;
 }
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-month-calendar{flex:1 1 auto;min-height:0!important;overflow:hidden;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-month-grid{
  min-height:0!important;
  grid-template-rows:repeat(6,minmax(0,1fr))!important;
  flex:1 1 0!important;height:0;overflow:hidden;
 }
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-day-cell{
  height:auto!important;min-height:0!important;max-width:100%;padding:5px 5px 4px;
 }
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-day-number{min-height:28px;padding-bottom:2px;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-day-number .ux714-month-desktop-date{
  width:26px;height:26px;min-width:26px;font-size:12px;
 }
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-day-events{max-height:65px;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-day-cell.has-overflow .ux638-day-events-scroll{max-height:65px;overflow-y:auto;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-event{
  min-height:19px;padding:3px 4px;font-size:10px;gap:4px;
 }
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux714-mobile-daylist{
  flex:0 0 auto;min-height:0;padding:11px 16px;
 }
}
@media screen and (min-width:768px) and (max-height:700px){
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar{height:max(500px,calc(100dvh - 205px))!important;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-month-grid{
  grid-template-rows:repeat(6,minmax(0,1fr))!important;
 }
}
@media print{
 body.route-agenda .l2-agenda-mobile-icons{display:none!important;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar{height:auto!important;max-height:none!important;overflow:visible!important;}
 body.route-agenda .ux592-calendar-window.ux714-apple-calendar .ux592-calendar-main{overflow:visible!important;}
}
