.tm-calendar-grid{
  width:100%;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:4px;
  margin:12px 0 16px;
  font-family:system-ui,sans-serif;
}
.tm-calendar-grid th{font-size:14px;color:#526159}
.tm-calendar-grid td{padding:0;text-align:center;vertical-align:middle}
.tm-calendar-grid td :is(a,button){
  position:relative;
  display:grid;
  place-items:center;
  min-height:44px;
  border:2px solid transparent;
  border-radius:8px;
  font-size:15px;
  color:#244638;
  background:#f4f6f1;
  text-decoration:none;
}
.tm-calendar-grid td button{width:100%;padding:0;cursor:pointer}
.tm-calendar-grid td button:hover{background:#e9f3ea}
.tm-calendar-grid td a{font-weight:700;background:#e9f3ea}
.tm-calendar-grid td a:hover{text-decoration:underline}
.tm-calendar-grid td .tm-calendar-has-events{border-color:#ac3635}
.tm-calendar-grid td .tm-calendar-has-events[aria-current=date]{
  outline:none;box-shadow:inset 0 0 0 1px #306249
}
.tm-calendar-grid td .tm-calendar-cell-holiday{background:#f7efd6}
.tm-calendar-grid td [aria-current=date]{outline:2px solid #306249;outline-offset:-2px}
.tm-calendar-grid td small{
  position:absolute;
  top:1px;
  right:4px;
  font-size:10px;
}
@media(max-width:520px){
  .tm-calendar-grid{border-spacing:2px}
  .tm-calendar-grid td small{right:2px}
}
.tm-calendar-month-label{margin:4px 0 0;color:#526159;font:600 14px/1.4 system-ui,sans-serif}
.tm-calendar-home-agenda{display:grid;gap:6px;padding:0;margin:0;list-style:none}
.tm-calendar-home-agenda a{
  display:grid;grid-template-columns:4.5em minmax(0,1fr);gap:8px;
  padding:8px;min-height:44px;border:1px solid #ac3635;border-radius:8px;color:#244638;overflow-wrap:anywhere;
  font:400 14px/1.35 system-ui,sans-serif;text-decoration:none
}
.tm-calendar-home-agenda a:hover strong{text-decoration:underline}
.tm-calendar-home-agenda small{display:block;color:#536358}
.tm-count{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  min-width:20px;height:20px;padding:0 5px;border-radius:999px;margin-inline-start:5px;
  background:#246047;color:#fff;font:700 11px/1 system-ui,sans-serif;white-space:nowrap
}
.tm-count[hidden]{display:none!important}
.tm-calendar-button .tm-count{background:#fff8de;color:#224739}
.tm-calendar-button .tm-count-new{background:#ffda86;color:#243e32;animation:tm-new-calendar-count 1.7s ease-in-out infinite}
@keyframes tm-new-calendar-count{50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){.tm-calendar-button .tm-count-new{animation:none}}
@media(max-width:430px){
  .tm-count{min-width:16px;height:16px;padding:0 3px;margin-inline-start:3px;font-size:10px}
}
.tm-counted-label{display:inline-flex;align-items:center;justify-content:center}
.tm-counted-label[hidden]{display:none}
.tm-event-tabs :is(.tm-counted-label,.tm-calendar-button)>span:first-child{
  min-width:0;overflow-wrap:anywhere
}
@media(max-width:360px){
  body.tamyr-family-shell .tm-events .tm-event-tabs :is(button,.tm-calendar-button){
    padding-inline:3px;font-size:11px
  }
}
.tm-calendar-day-group h3{margin:0 0 6px;color:#244638;font-size:17px}
.tm-calendar-day-group ul{margin:0;padding:0;list-style:none}
.tm-calendar-day-group li{
  display:grid;
  gap:3px;
  padding:8px 10px;
  border:1px solid #ac3635;
  border-radius:8px;
  overflow-wrap:anywhere;
}
.tm-calendar-day-group li+li{margin-top:6px}
.tm-calendar-day-group li p{margin:0}
.tm-calendar-category{color:#536358;font-size:13px}
.tm-calendar-description{white-space:pre-wrap}

.tm-calendar-day-group img{
  display:block;width:auto;max-width:min(100%,340px);max-height:260px;object-fit:contain;border-radius:8px
}
.tm-calendar-day-group audio{width:100%;max-width:380px}
.tm-calendar-day-dialog .tm-calendar-day-group{margin-bottom:14px}
