.period-toggle {
  display: flex;
  gap: 6px;
  background: var(--cream);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 14px;
}
.period-btn {
  flex: 1;
  font-family: 'Klee One', serif;
  font-size: 13px;
  padding: 8px 6px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.period-btn.active {
  background: var(--paper);
  color: var(--gold-deep);
  box-shadow: 0 2px 6px rgba(201, 127, 29, 0.2);
}

/* Week grid */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.day-cell {
  aspect-ratio: 1;
  background: var(--cream);
  border: 2px dashed var(--cream-dark);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: all 0.3s;
}
.day-cell.earned {
  background: linear-gradient(135deg, #fff5dc 0%, #ffd97a 100%);
  border: 2px solid var(--gold);
  border-style: solid;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(232, 168, 56, 0.3);
}
.day-cell.today {
  border-color: var(--rose);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(232, 123, 111, 0.2);
}
.day-label {
  font-family: 'Klee One', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.day-star {
  font-size: clamp(20px, 4vw, 28px);
  margin-top: 2px;
  filter: drop-shadow(0 1px 2px rgba(201, 127, 29, 0.4));
}
.day-star.empty { opacity: 0.2; filter: grayscale(1); }
.star-count {
  text-align: center;
  margin-top: 14px;
  font-family: 'Klee One', serif;
  font-size: 18px;
  color: var(--gold-deep);
}

/* Month grid */
.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.month-nav-btn {
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.month-nav-btn:hover { background: var(--paper); color: var(--gold-deep); }
.month-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.month-title {
  font-family: 'Klee One', serif;
  font-size: 18px;
  color: var(--ink);
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.month-day-label {
  font-family: 'Klee One', serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.05em;
}
.month-cell {
  aspect-ratio: 1;
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Klee One', serif;
  font-size: 11px;
  color: var(--ink-soft);
  position: relative;
}
.month-cell.blank { background: transparent; }
.month-cell.earned {
  background: linear-gradient(135deg, #fff5dc 0%, #ffd97a 100%);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.month-cell.earned::after {
  content: '⭐';
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9px;
}
.month-cell.today {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(232, 123, 111, 0.2);
}
.month-summary {
  text-align: center;
  margin-top: 14px;
  font-family: 'Klee One', serif;
  font-size: 16px;
  color: var(--gold-deep);
}

/* Year grid */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.year-month {
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.year-month.has-data { border-color: var(--gold); background: linear-gradient(135deg, #fff5dc 0%, #ffe9b5 100%); }
.year-month.current { box-shadow: 0 0 0 2px rgba(232, 123, 111, 0.3); }
.year-month-name {
  font-family: 'Klee One', serif;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.year-month-count {
  font-family: 'Klee One', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--gold-deep);
  line-height: 1;
}
.year-month-label {
  font-family: 'Klee One', serif;
  font-size: 9px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.year-title {
  font-family: 'Klee One', serif;
  font-size: 18px;
  color: var(--ink);
}
.year-summary {
  text-align: center;
  margin-top: 14px;
  font-family: 'Klee One', serif;
  font-size: 16px;
  color: var(--gold-deep);
}
