/* Calendar phone/preview: render based on observed panel width rather
 * than only browser width. The corresponding JS tags the actual calendar. */
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"] .calendar-content{
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
  gap:12px!important;
  padding:10px 8px 14px!important;
  min-width:0!important;
  max-width:100%!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
:is(.calendar-preview,.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[data-gtt-narrow-calendar="true"]
.calendar-week{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .weekday{
  box-sizing:border-box!important;
  min-width:0!important;
  padding:5px 0!important;
  font-size:9px!important;
  letter-spacing:0!important;
  line-height:1.1!important;
  text-align:center!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .day-cell{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:center!important;
  position:relative!important;
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  min-height:71px!important;
  height:71px!important;
  max-height:71px!important;
  overflow:hidden!important;
  padding:5px 2px 10px!important;
  gap:2px!important;
  border-radius:8px!important;
  touch-action:manipulation!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .day-cell .day-top{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-self:stretch!important;
  flex:0 0 13px!important;
  width:100%!important;
  min-height:13px!important;
  height:13px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0 2px!important;
  text-align:left!important;
  font-size:10px!important;
  line-height:1.1!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .day-cell .day-top small{display:none!important}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.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-width:0!important;
  min-height:0!important;
  max-height:38px!important;
  margin:0!important;
  overflow:hidden!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .day-cell .day-art>img{
  width:min(28px,100%)!important;
  height:30px!important;
  max-width:28px!important;
  max-height:30px!important;
  object-fit:contain!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .day-cell :is(.day-title,.v86-random-subtitle){display:none!important;}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .day-cell .v5-cycle-label{
  display:block!important;
  position:absolute!important;
  top:auto!important;
  left:50%!important;
  right:auto!important;
  bottom:1px!important;
  transform:translateX(-50%)!important;
  margin:0!important;
  padding:1px 2px!important;
  max-width:calc(100% - 2px)!important;
  min-height:0!important;
  font-size:6px!important;
  line-height:1!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.calendar-week .day-cell .possible-flag{
  position:absolute!important;
  top:auto!important;
  bottom:1px!important;
  left:1px!important;
  right:1px!important;
  max-width:calc(100% - 2px)!important;
  width:auto!important;
  padding:1px 2px!important;
  min-height:0!important;
  font-size:6px!important;
  line-height:1.1!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.gttdc-inline-calendar-bar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:0 0 10px!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.gttdc-inline-calendar-title{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:stretch!important;
  min-width:0!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.gttdc-inline-calendar-title h2{
  font-size:14px!important;
  line-height:1.2!important;
  word-break:normal!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.gttdc-inline-calendar-actions{
  grid-column:1!important;
  grid-row:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  justify-self:end!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  min-width:0!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.gttdc-inline-calendar-actions .text-button{
  min-height:34px!important;
  padding:6px 8px!important;
  font-size:11px!important;
  white-space:nowrap!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.gttdc-inline-calendar-bar>.v5-month-control{
  grid-column:1!important;
  grid-row:3!important;
  justify-self:stretch!important;
  display:flex!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.v5-calendar-jumps{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  gap:6px!important;
}
body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"]
.selected-pane{
  overflow-wrap:break-word!important;
}
@media(max-width:365px){
 body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"] .calendar-content{
   padding-inline:5px!important;
 }
 body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"] .calendar-week{
   gap:2px!important;
 }
 body[data-theme="glass"] #content .calendar-panel[data-gtt-narrow-calendar="true"] .calendar-week .day-cell{
   height:66px!important;
   min-height:66px!important;
   max-height:66px!important;
 }
}
