main h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; }
.panel > p { margin: 0; }
.panel h3 { font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }

.fields { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 12px 0; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fields label > span, .fields > div > span { color: var(--muted); font-size: 13px; }
input[type="range"] { width: min(420px, 70vw); accent-color: var(--accent); }
input[type="number"], select { font: inherit; padding: 8px 10px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--recessed); color: var(--ink); }
input[type="number"] { width: 160px; }

.people-read { display: flex; align-items: baseline; gap: 10px; }
.people-read strong { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; }
.badge23 { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; letter-spacing: .1em; }

progress { width: 100%; height: 8px; margin: 8px 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.stats > div { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.stats .muted { font-size: 13px; color: var(--muted); }
.warn { color: #b45309; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .4); border-radius: 12px; padding: 10px 14px; }
#curve, #conv-chart { width: 100%; height: auto; display: block; margin-top: 8px; }

.calendar { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.cal-month { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.cal-label { width: 34px; flex: none; font-size: 12px; color: var(--muted); }
.cal-day { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; font-size: 10.5px; color: var(--muted); border-radius: 5px; background: var(--recessed); }
.cal-day.present { color: var(--ink); background: var(--selected); }
.cal-day.hit { color: #fff; background: #e5484d; font-weight: 700; width: auto; min-width: 22px; padding: 0 3px; }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .cal-day { width: 19px; height: 19px; font-size: 9.5px; }
}
