* { box-sizing: border-box; }
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20312b;
  background: #f3f6f2;
}
body { margin: 0; padding: 32px 16px; }
.app { width: min(100%, 620px); margin: 0 auto; }
header { text-align: center; margin: 12px 0 26px; }
.eyebrow { color: #398064; font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
h1 { margin: 8px 0; font-size: clamp(2.3rem, 8vw, 3.5rem); letter-spacing: -.06em; }
.intro, .muted { color: #718078; }
.intro { margin-top: 0; }
.progress-card, .entry-card, .milestones-card, .history-card {
  background: white; border: 1px solid #e4ebe5; border-radius: 22px;
  padding: 24px; margin: 16px 0; box-shadow: 0 8px 28px rgba(31, 55, 43, .05);
}
.total-row, .history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { font-size: .88rem; }
.total-row .muted { margin: 0 0 5px; font-weight: 700; letter-spacing: .08em; font-size: .7rem; }
.total { margin: 0; font-size: 2.6rem; font-weight: 800; letter-spacing: -.06em; }
.unit { font-size: 1rem; font-weight: 600; color: #718078; letter-spacing: 0; }
.percent { color: #287653; font-weight: 800; font-size: 1.2rem; }
.progress-track { height: 13px; border-radius: 99px; background: #e9efea; overflow: hidden; margin-top: 20px; }
.progress-fill { width: 0; height: 100%; background: #3d9872; border-radius: inherit; transition: width .35s ease; }
.progress-caption { margin: 9px 0 20px; font-size: .8rem; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #edf1ed; padding-top: 18px; gap: 8px; }
.goals div { display: flex; flex-direction: column; gap: 3px; }
.goals strong { font-size: 1.2rem; }
.goals span { color: #718078; font-size: .75rem; }
h2 { margin: 0 0 6px; font-size: 1.15rem; }
.entry-card > p { margin: 5px 0 20px; }
form { display: grid; gap: 9px; }
label { font-size: .85rem; font-weight: 700; margin-top: 5px; }
input { width: 100%; padding: 13px 14px; border: 1px solid #d9e2db; border-radius: 11px; font: inherit; color: inherit; background: #fff; }
input:focus { outline: 3px solid #d8eee2; border-color: #398064; }
button { border: 0; border-radius: 12px; padding: 14px 18px; background: #287653; color: white; font: inherit; font-weight: 750; cursor: pointer; margin-top: 8px; }
button:hover { background: #1e6042; }
.message { min-height: 1.2em; margin: 0; color: #287653; font-size: .85rem; }
.milestones { display: grid; gap: 10px; margin-top: 16px; }
.milestone { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: #f5f8f5; gap: 12px; }
.milestone.done { background: #e8f4ed; }
.milestone span:last-child { color: #718078; font-size: .8rem; text-align: right; }
.milestone.done span:last-child { color: #287653; font-weight: 700; }
.celebration { color: #287653; font-weight: 750; line-height: 1.5; }
.run-list { list-style: none; padding: 0; margin: 12px 0 0; }
.run-list li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #edf1ed; gap: 12px; }
.run-list li strong { white-space: nowrap; }
.text-button { background: transparent; color: #8b514c; padding: 6px; margin: 0; }
.text-button:hover { background: #fff1ef; color: #8b514c; }
footer { text-align: center; color: #87938c; font-size: .75rem; padding: 12px 0 24px; }
@media (max-width: 420px) {
  body { padding: 18px 12px; }
  .progress-card, .entry-card, .milestones-card, .history-card { padding: 19px; }
}
