/* Calendar-only squash & stretch microinteraction.  Does not move the picker. */
@media (prefers-reduced-motion:no-preference) {
 .date-picker > summary.control-trigger > .period-indicator {
  transform-origin:center center;
  transition:scale 260ms cubic-bezier(.2,1.55,.4,1);
 }
 .date-picker > summary.control-trigger:active > .period-indicator {
  scale:1.14 .85;
  transition-duration:90ms;
 }
 .date-picker[open] > summary.control-trigger > .period-indicator {
  animation:nexo-calendar-icon-squash 420ms cubic-bezier(.2,.75,.35,1) both;
 }
 .date-picker[open] > .date-menu > .date-days {
  transform-origin:50% 0;
  animation:nexo-calendar-grid-stretch 320ms cubic-bezier(.2,.85,.35,1) both;
 }
 .date-picker > .date-menu .date-days > button[data-date-value] {
  transform-origin:center center;
  transition:scale 250ms cubic-bezier(.2,1.55,.4,1);
 }
 .date-picker > .date-menu .date-days > button[data-date-value]:active:not(:disabled) {
  scale:1.10 .86;
  transition-duration:90ms;
 }
}
@keyframes nexo-calendar-icon-squash {
 0% {scale:1 1}
 27% {scale:1.18 .82}
 52% {scale:.91 1.11}
 76% {scale:1.045 .965}
 100% {scale:1 1}
}
@keyframes nexo-calendar-grid-stretch {
 0% {scale:1 .965;opacity:.93}
 48% {scale:1.01 1.015;opacity:1}
 100% {scale:1 1;opacity:1}
}
@media (prefers-reduced-motion:reduce) {
 .date-picker > summary.control-trigger > .period-indicator,
 .date-picker > .date-menu .date-days > button[data-date-value] {
  transition:none!important;
 }
 .date-picker[open] > summary.control-trigger > .period-indicator,
 .date-picker[open] > .date-menu > .date-days {
  animation:none!important;
 }
}

/* Keep date highlights perfectly square on mobile.
   Older 36px max-width and newer 40px height were both !important, producing tall shapes.
   Preserve the approved 13px rounded rectangle and the squash/stretch animation. */
@media (max-width:800px) {
 html body dialog#modal#modal#modal#modal[open]
 #form#form#form[data-finance-type]
 .date-picker.date-picker .date-days > button[data-date-value] {
  box-sizing:border-box!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  aspect-ratio:1 / 1!important;
  padding:0!important;
  margin:auto!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
  border-radius:13px!important;
 }
}
@media (max-width:360px) {
 html body dialog#modal#modal#modal#modal[open]
 #form#form#form[data-finance-type]
 .date-picker.date-picker .date-days > button[data-date-value] {
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
 }
}
