.month-picker {
  width: 132px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--uc-line, #e2e3e5);
  border-radius: 9px;
  background: #fff;
  color: var(--uc-ink, #242529);
  font: 600 13px/1 Inter Variable, Inter, "Microsoft YaHei UI", sans-serif;
  outline: 0;
}

.month-picker:focus {
  border-color: #8d8f94;
  box-shadow: 0 0 0 3px rgba(36, 37, 41, .06);
}

.calendar-scroll.month-scroll {
  display: grid;
  grid-template-columns: var(--uc-calendar-axis, 58px) minmax(0, 1fr);
  align-content: start;
  background: rgba(255, 255, 255, .84);
}

.month-calendar-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  grid-auto-rows: minmax(118px, 1fr);
  gap: 1px;
  min-height: calc(100vh - 220px);
  height: auto;
  border: 1px solid #343432;
  background: #343432;
}

.month-cell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 118px;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px 13px 12px 17px;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, .72);
  color: #26272a;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.month-cell::before {
  content: "";
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--month-fill, 0%);
  max-height: 100%;
  background: color-mix(in srgb, var(--month-accent, #96999e) 17%, #fff);
  transition: height .35s cubic-bezier(.2, .8, .2, 1);
}

.month-cell.has-records::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 6px;
  width: 4px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--month-accent, #96999e) 82%, #25262a);
}

.month-cell:hover {
  background-color: rgba(255, 255, 255, .94);
  box-shadow: inset 0 0 0 1px rgba(45, 46, 50, .14);
}

.month-cell.today,
.month-cell.selected {
  z-index: 2;
  background-color: rgba(255, 255, 255, .78);
}

.month-cell.today {
  box-shadow: inset 0 0 0 2px #55585e;
}

.month-cell.selected {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--month-accent, #6f9cf5) 86%, #202124);
}

.month-cell.today.selected {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--month-accent, #6f9cf5) 86%, #202124);
}

.month-cell.outside {
  min-height: 118px;
  cursor: default;
  background: rgba(247, 247, 248, .46);
}

.month-cell.outside::before,
.month-cell.outside::after {
  display: none;
}

.month-date {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  color: #5e6065;
  font: 600 13px/1 Inter Variable, Inter, sans-serif;
}

.month-date small {
  color: color-mix(in srgb, var(--month-accent, #96999e) 72%, #444);
  font-size: 9px;
  font-weight: 750;
}

.month-recorded {
  display: block;
  margin-top: auto;
  color: #202124;
  font: 590 22px/1 Inter Variable, Inter, sans-serif;
  letter-spacing: -.035em;
}

.month-dominant {
  display: block;
  width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: #63656a;
  font: 520 11px/1.25 Inter Variable, Inter, "Microsoft YaHei UI", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-calendar-active .recording-heatmap {
  display: none;
}

.month-calendar-active .time-overview {
  padding-block: 16px;
}

@media (max-width: 1200px) {
  .month-calendar-grid {
    grid-template-columns: repeat(7, minmax(92px, 1fr));
  }
}

@media (max-width: 820px) {
  .month-picker {
    width: 118px;
  }

  .month-calendar-grid {
    min-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .month-cell,
  .month-cell::before {
    transition: none;
  }
}
