.gma-entry-calendar {
  position: fixed;
  z-index: 10000;
  width: 408px;
  min-height: min(409px, calc(100dvh - 12px));
  padding: 16px;
  border: 0;
  border-radius: 2px;
  color: #333;
  background: #fff;
  box-shadow: 0 3px 14px rgb(0 0 0/0.3);
  font:
    15px/1.2 Arial,
    "Microsoft JhengHei",
    sans-serif;
}
.gma-entry-calendar.is-song {
  width: 424px;
  min-height: min(433px, calc(100dvh - 12px));
}
.gma-entry-calendar[hidden] {
  display: none;
}
.gma-entry-calendar__head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 8px;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}
.gma-entry-calendar__head > button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #777;
  cursor: pointer;
  font-size: 26px;
  line-height: 22px;
}
.gma-entry-calendar__head > button:disabled {
  opacity: 0.45;
}
.gma-entry-calendar__selects {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.gma-entry-calendar select {
  height: 29px;
  border: 1px solid #c8c8c8;
  padding: 2px 28px 2px 8px;
  background: #fff;
  font: inherit;
}
.gma-entry-calendar__year {
  display: flex;
  align-items: center;
}
.gma-entry-calendar__year button {
  width: 36px;
  height: 36px;
  border: 1px solid #c8c8c8;
  background: #eee;
  color: #555;
  font-size: 24px;
  cursor: pointer;
}
.gma-entry-calendar__year button:first-child {
  color: #fff;
  background: #789b45;
}
.gma-entry-calendar__year select {
  width: 82px;
}
.gma-entry-calendar:not(.is-song) .gma-entry-calendar__year select,
.gma-entry-calendar__selects > select {
  width: 145px;
}
.gma-entry-calendar__week,
.gma-entry-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.gma-entry-calendar__week {
  padding: 18px 0 11px;
  color: #444;
  font-weight: 700;
}
.gma-entry-calendar__days {
  row-gap: 7px;
}
.gma-entry-calendar__days button {
  width: 42px;
  height: 42px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  color: #333;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.gma-entry-calendar__days button:hover:not(:disabled),
.gma-entry-calendar__days button:focus-visible {
  color: #fff;
  background: #789b45;
  outline: 0;
}
.gma-entry-calendar__days button:disabled {
  color: #c8c8c8;
}
.gma-entry-calendar__days .is-selected {
  color: #1d6cac;
  box-shadow: inset 0 0 0 3px #9ad3fb;
  font-weight: 700;
}
.gma-entry-calendar__days .is-today:not(.is-selected) {
  background: #f2f2f2;
}
.gma-entry-calendar {
  max-width: calc(100vw - 12px);
  max-height: calc(100dvh - 12px);
  overflow: auto;
}
.gma-entry-calendar select {
  appearance: auto;
  min-height: 29px;
}
.gma-entry-calendar .gma-entry-calendar__year input {
  width: 70px;
  min-height: 29px;
  height: 33px;
  padding: 2px 4px;
  background: #fff;
  color: #333;
  font: inherit;
  text-align: center;
}
.gma-entry-calendar__year button:disabled {
  background: #ccc;
  color: #777;
}
@media (max-width: 460px) {
  .gma-entry-calendar,
  .gma-entry-calendar.is-song {
    min-height: 0;
    padding: 10px;
  }
  .gma-entry-calendar__selects {
    gap: 5px;
  }
  .gma-entry-calendar:not(.is-song) .gma-entry-calendar__year select,
  .gma-entry-calendar__selects > select {
    width: 88px;
    padding-inline: 4px;
  }
  .gma-entry-calendar__days button {
    width: 35px;
    height: 35px;
  }
}
