* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f7f6f3;
  min-height: 100dvh;
  color: #2e2d33;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 30px;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.title { font-size: 15px; font-weight: 700; color: #2e2d33; letter-spacing: 1px; }
.ph { width: 44px; }
.iconbtn.small {
  height: 24px; padding: 0 8px; border-radius: 8px;
  background: rgba(0,0,0,0.04); color: #8b8790; font-size: 10.5px;
  display: flex; align-items: center; text-decoration: none;
}

.content { padding: 16px 16px 10px; }

.who-switch {
  position: relative; display: flex;
  background: rgba(0,0,0,0.045); border-radius: 999px; padding: 3px; margin-bottom: 8px;
}
.ws-slider {
  position: absolute; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  background: #fff; border-radius: 999px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.ws-slider.pos1 { transform: translateX(100%); }
.ws-opt {
  flex: 1; position: relative; z-index: 1; border: none; background: none;
  border-radius: 999px; padding: 8px 0; font-size: 13px; color: #8b8790; font-weight: 500;
}
.ws-opt.sel { color: #2e2d33; font-weight: 600; }

.scope-switch { display: flex; gap: 6px; margin-bottom: 4px; }
.sc-opt {
  border: none; border-radius: 10px; padding: 6px 13px; font-size: 11.5px;
  color: #8b8790; background: rgba(0,0,0,0.04);
}
.sc-opt.sel { background: #2e2d33; color: #fff; }

.mood-cloud { position: relative; height: 140px; margin: 6px 0; }
.cloud-blob {
  position: absolute; border-radius: 50%; filter: blur(24px);
  animation: breathe 15s ease-in-out infinite;
}
.cloud-blob.b1 { width: 110px; height: 110px; top: 10px; left: 50%; margin-left: -75px; animation-delay: 0s; }
.cloud-blob.b2 { width: 88px; height: 88px; top: 24px; left: 50%; margin-left: 12px; animation-delay: -5s; }
.cloud-blob.b3 { width: 76px; height: 76px; top: 46px; left: 50%; margin-left: -22px; animation-delay: -10s; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.03); opacity: 1; }
}

.stat-hero { text-align: center; padding: 4px 10px 22px; }
.sh-label { font-size: 12.5px; color: #8b8790; }
.sh-mood { font-size: 36px; font-weight: 700; color: #2e2d33; margin-top: 6px; }
.sh-mood .heart { font-size: 21px; color: #d9a0ab; margin-left: 5px; }
.sh-sub { font-size: 13px; color: #726d78; margin-top: 6px; }

.mood-breakdown {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.045); border-radius: 18px;
  padding: 16px 16px 4px;
}
.mrow { margin-bottom: 18px; }
.mrow-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mrow-top .micon { display: flex; color: #726d78; }
.mrow-top .mname { font-size: 13.5px; font-weight: 600; color: #2e2d33; }
.mrow-top .mpercent { margin-left: auto; font-size: 13px; font-weight: 700; color: #2e2d33; }
.mbar { height: 4px; border-radius: 2px; background: rgba(0,0,0,0.05); overflow: hidden; }
.mbar-fill { height: 100%; }
.mrow-bottom { display: flex; justify-content: space-between; font-size: 10.5px; color: #b8b3ba; margin-top: 5px; }
.mrow .excerpt { font-size: 11.5px; color: #8b8790; margin-top: 4px; font-style: italic; }
