/* Den · 经期记录 */
.den-period{padding:0 0 24px}
.pd-hero{
  margin:14px 18px 0;padding:20px 24px 18px;border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.97) 0%,rgba(240,249,241,.74) 100%);
  border:1px solid rgba(25,108,60,.08);
  box-shadow:0 8px 26px rgba(30,71,48,.045);
}
.pd-hero-title{
  display:flex;align-items:baseline;gap:8px;margin-bottom:12px;
  color:#4d8065;font-size:15px;letter-spacing:.02em;
}
.pd-hero-main{font-weight:600}
.pd-hero-dot{opacity:.4;font-size:13px}
.pd-hero-day{font-size:14px;opacity:.8}
.pd-hero-sub{font-size:12px;opacity:.62;line-height:1.4}

.pd-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 18px 0;
}
.pd-stat{
  padding:10px;border-radius:13px;text-align:center;
  background:rgba(255,255,255,.55);border:1px solid rgba(126,95,159,.12);
}
.pd-stat-val{display:block;font-size:17px;font-weight:600;color:#4d8065;margin-bottom:3px}
.pd-stat-label{display:block;font-size:10px;opacity:.6;letter-spacing:.03em}

.pd-btn{
  margin:14px 18px 0;padding:12px 0;border:0;border-radius:14px;width:calc(100% - 36px);
  background:linear-gradient(135deg,#7eb397,#5f9a7d);color:#fff;
  font:inherit;font-size:14px;font-weight:600;letter-spacing:.04em;cursor:pointer;
}
.pd-btn:disabled{opacity:.55}

.pd-legend{
  margin:12px 18px 0;display:flex;gap:14px;justify-content:center;flex-wrap:wrap;
  font-size:11px;opacity:.7;
}
.pd-legend-item{display:flex;align-items:center;gap:5px}
.pd-legend-dot{
  width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto;
}

.pd-cal{margin:14px 18px 0;padding:16px 14px 14px;border-radius:16px;background:rgba(255,255,255,.62);border:1px solid rgba(126,95,159,.12)}
.pd-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.pd-cal-nav{
  flex:0 0 auto;width:28px;height:28px;padding:0;border:0;border-radius:50%;
  background:rgba(126,95,159,.08);color:#6b5f7d;font-size:18px;line-height:1;cursor:pointer;
}
.pd-cal-nav:active{background:rgba(126,95,159,.16)}
.pd-cal-month{flex:1;text-align:center;font-size:14px;font-weight:600;letter-spacing:.02em;color:#4d4158}
.pd-cal-weekdays{
  display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:6px;
}
.pd-cal-weekday{
  text-align:center;font-size:10px;opacity:.5;letter-spacing:.02em;padding:4px 0;
}
.pd-cal-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.pd-day{
  position:relative;aspect-ratio:1;border:0;border-radius:8px;
  background:transparent;color:#3c4842;font:inherit;font-size:13px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.pd-day:disabled{cursor:default}
.pd-day.start{background:#eff8f0;font-weight:600}
.pd-day.today{font-weight:600}
.pd-day.due{color:#39554a}
.pd-day-dot{
  position:absolute;bottom:3px;left:50%;transform:translateX(-50%);
  width:4px;height:4px;border-radius:50%;
}

.pd-err{margin:14px 18px 0;font-size:12px;color:#b74f5c;line-height:1.5}
.pd-loading{margin:14px 18px 0;font-size:12px;color:#8f9994;opacity:.7}
