/* Mobile Daily picker: layout follows the picker itself, not the browser
   viewport. The star is an overlay instead of a 44px reserved grid column. */
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-sheet-list.gtt-mobile-daily-grid{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:6px 12px 14px!important;
  align-content:start!important;
  overflow-x:hidden!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-daily-grid > .gtt-mobile-page-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  grid-template-rows:auto!important;
  box-sizing:border-box!important;
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:56px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-daily-grid > .gtt-mobile-page-row > button.gtt-mobile-page-link{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  grid-column:1!important;
  grid-row:1!important;
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:58px!important;
  min-height:58px!important;
  gap:7px!important;
  margin:0!important;
  padding:8px 27px 8px 8px!important;
  border:1px solid rgba(160,211,251,.22)!important;
  border-radius:12px!important;
  color:#ecf7ff!important;
  background:linear-gradient(145deg,rgba(103,162,227,.16),rgba(38,84,139,.13))!important;
  text-align:left!important;
  overflow:hidden!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-daily-grid > .gtt-mobile-page-row > button.gtt-mobile-page-link.is-selected{
  border-color:rgba(166,228,255,.84)!important;
  background:linear-gradient(140deg,rgba(122,197,251,.29),rgba(36,100,163,.33))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.22)!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-daily-grid .gtt-mobile-page-icon{
  flex:0 0 27px!important;
  display:block!important;
  width:27px!important;
  min-width:27px!important;
  height:29px!important;
  object-fit:contain!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-daily-grid .gtt-mobile-page-name{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  white-space:normal!important;
  hyphens:none!important;
  font:750 clamp(11px,3.3vw,13px)/1.22 Inter,system-ui,sans-serif!important;
  letter-spacing:-.12px!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-daily-grid .gtt-mobile-page-row > .gtt-mobile-nav-star{
  position:absolute!important;
  display:grid!important;
  place-items:center!important;
  top:50%!important;
  right:2px!important;
  left:auto!important;
  bottom:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  box-sizing:border-box!important;
  transform:translateY(-50%)!important;
  width:24px!important;
  height:36px!important;
  padding:2px!important;
  z-index:2!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-daily-grid .gtt-mobile-page-row > .gtt-mobile-nav-star .gtt-mobile-nav-star-art{
  width:19px!important;
  height:20px!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-sheet-heading{
  min-width:0!important;
  align-items:flex-start!important;
  padding:14px 14px 9px!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-sheet-titles{
  min-width:0!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-sheet h2{
  font-size:18px!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
.gtt-mobile-sheet p{
  font-size:11px!important;
  line-height:1.35!important;
}
@media (max-width:340px){
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
  .gtt-mobile-sheet-list.gtt-mobile-daily-grid{gap:6px!important;padding-inline:8px!important}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
  .gtt-mobile-daily-grid > .gtt-mobile-page-row > button.gtt-mobile-page-link{
    gap:5px!important;padding:7px 23px 7px 6px!important
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
  .gtt-mobile-daily-grid .gtt-mobile-page-name{font-size:11px!important}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation.is-daily-picker
  .gtt-mobile-daily-grid .gtt-mobile-page-icon{flex-basis:23px!important;width:23px!important}
}

/* Give the calendar a responsive sizing context based on its ACTUAL width.
   This handles narrow side-by-side panels and desktop device emulators
   where @media(max-width:...) does not reflect the rendered calendar width. */
html[data-gtt-design-mode="workbench"] body[data-theme="glass"]
#content .calendar-panel{
  container-name:gttdc-phone-calendar;
  container-type:inline-size;
  box-sizing:border-box!important;
  width:100%;
  min-width:0;
}
@container gttdc-phone-calendar (max-width:620px){
  body[data-theme="glass"] #content .calendar-panel .calendar-content{
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
    gap:12px!important;
    min-width:0!important;
    padding:10px 8px 14px!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-preview,
  body[data-theme="glass"] #content .calendar-panel .selected-pane{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:3px!important;
    min-width:0!important;
    width:100%!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .weekday{
    box-sizing:border-box!important;
    min-width:0!important;
    font-size:9px!important;
    padding:4px 0!important;
    line-height:1.2!important;
    text-align:center!important;
    letter-spacing:0!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    position:relative!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:69px!important;
    min-height:69px!important;
    max-height:69px!important;
    gap:2px!important;
    padding:5px 2px 10px!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-top{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-self:stretch!important;
    min-height:12px!important;
    width:100%!important;
    font-size:10px!important;
    line-height:1.1!important;
    padding:0 2px!important;
    margin:0!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-top small{
    display:none!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art{
    display:flex!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-height:0!important;
    max-height:39px!important;
    min-width:0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art img{
    width:29px!important;
    max-width:min(29px,100%)!important;
    height:auto!important;
    max-height:32px!important;
    object-fit:contain!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell
  :is(.day-title,.v86-random-subtitle){
    display:none!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .v5-cycle-label{
    display:block!important;
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:1px!important;
    transform:translateX(-50%)!important;
    max-width:calc(100% - 2px)!important;
    padding:1px 2px!important;
    font-size:6px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    pointer-events:none!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .possible-flag{
    position:absolute!important;
    left:1px!important;
    right:1px!important;
    top:auto!important;
    bottom:1px!important;
    max-width:calc(100% - 2px)!important;
    width:auto!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    font-size:6px!important;
    line-height:1.1!important;
  }
  body[data-theme="glass"] #content .calendar-panel .gttdc-inline-calendar-bar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    align-items:start!important;
    gap:7px!important;
    min-width:0!important;
    width:100%!important;
  }
  body[data-theme="glass"] #content .calendar-panel .gttdc-inline-calendar-title{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    align-self:start!important;
    justify-self:start!important;
  }
  body[data-theme="glass"] #content .calendar-panel .gttdc-inline-calendar-title h2{
    font-size:14px!important;
    line-height:1.2!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body[data-theme="glass"] #content .calendar-panel .gttdc-inline-calendar-actions{
    grid-column:1!important;
    grid-row:2!important;
    min-width:0!important;
    display:flex!important;
    justify-content:flex-end!important;
    justify-self:end!important;
    align-items:center!important;
    gap:6px!important;
    flex-wrap:wrap!important;
  }
  body[data-theme="glass"] #content .calendar-panel .gttdc-inline-calendar-actions .text-button{
    font-size:11px!important;
    min-height:32px!important;
    padding:6px 8px!important;
    white-space:nowrap!important;
  }
  body[data-theme="glass"] #content .calendar-panel .gttdc-inline-calendar-bar > .v5-month-control{
    grid-column:1!important;
    grid-row:3!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
  }
  body[data-theme="glass"] #content .calendar-panel .v5-calendar-jumps{
    display:flex!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    width:100%!important;
    min-width:0!important;
    gap:6px!important;
  }
  body[data-theme="glass"] #content .calendar-panel .selected-pane{
    overflow-wrap:break-word!important;
  }
}
