.main[data-page="day-counter"] {
  --daycounter-calendar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' ry='2'/%3E%3Cline x1='16' y1='3' x2='16' y2='7'/%3E%3Cline x1='8' y1='3' x2='8' y2='7'/%3E%3Cline x1='3' y1='11' x2='21' y2='11'/%3E%3C/svg%3E");
  --daycounter-calendar-icon-color: var(--text-faint);
}

.main_0 .dynamic_item {
  display: flex;
  padding: 0.8rem;
  justify-content: flex-start;
  margin-right: auto;
}

.main[data-page="day-counter"] .daycounter_date_shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(228, 234, 247, 0.96);
  box-shadow: inset 0 0 0 1px rgba(114, 122, 105, 0.14);
  color: var(--daycounter-calendar-icon-color);
}

.main[data-page="day-counter"] .daycounter_date_shell::after {
  content: "";
  position: absolute;
  right: 1.28rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  background-color: currentColor;
  pointer-events: none;
  -webkit-mask-image: var(--daycounter-calendar-icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--daycounter-calendar-icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.main[data-page="day-counter"] .daycounter_date_label {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.main[data-page="day-counter"] #target_date {
  position: relative;
  min-width: 196px;
  min-height: 40px;
  padding: 0 2.8rem 0 0.95rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(114, 122, 105, 0.12);
}

.main[data-page="day-counter"] #target_date::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.8rem;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

body.dark-mode .main[data-page="day-counter"] #target_date {
  background: rgba(24, 27, 32, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color-scheme: normal;
}

body.dark-mode .main[data-page="day-counter"] .daycounter_date_shell {
  --daycounter-calendar-icon-color: #c7ccd4;
  background: rgba(41, 45, 52, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.main[data-page="day-counter"] .daycounter_hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.main[data-page="day-counter"] .daycounter_badge {
  font-size: 0.88rem;
  color: var(--primary);
}

.main_1 .clock {
  font-family: "Manrope", sans-serif;
}
.main_1 .clock#day {
  font-size: clamp(4.6rem, 11vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.94;
}
.main_1 .clock#time {
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  color: var(--text-soft);
  line-height: 1;
}

.main[data-page="day-counter"] .daycounter_hint {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 34rem;
}

@media screen and (max-width: 700px) and (orientation: portrait) {
  .main[data-page="day-counter"] .daycounter_date_shell {
    width: 100%;
    justify-content: space-between;
    padding-left: 0.8rem;
  }
  .main[data-page="day-counter"] #target_date {
    min-width: 0;
    width: min(56vw, 220px);
  }
  .main_1 .clock#day {
    font-size: clamp(4rem, 18vw, 6rem);
  }
  .main_1 .clock#time {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }
  .main[data-page="day-counter"] .daycounter_hint {
    font-size: 0.94rem;
  }
}
