:root { --baby-ink: #314342; --baby-muted: #687a78; --baby-bg: #f7f8f5; --baby-card: #fff; --baby-line: #dce5e1; --baby-accent: #357b72; --baby-accent-soft: #d9ece7; --baby-warm: #f3e7df; }
body { background: var(--baby-bg); color: var(--baby-ink); font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; }
.diaper-header, .diaper-footer { width: min(920px, calc(100% - 40px)); margin: 0 auto; }
.diaper-header { display: flex; justify-content: space-between; padding: 18px 0; color: var(--baby-muted); font-size: .9rem; }
.diaper-header a { text-decoration: none; }
.diaper-header a:hover { color: var(--baby-accent); }
.diaper-header span { font-weight: 650; color: var(--baby-ink); }
.tool-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; }
.tool-intro { padding: 28px 0 22px; text-align: center; }
.tool-intro h1 { margin: 0; font-family: inherit; font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.tool-intro > p { max-width: 560px; margin: 14px auto 0; color: var(--baby-muted); line-height: 1.55; }
.weight-panel { padding: 15px 20px; border: 1px solid var(--baby-line); border-radius: 16px; background: var(--baby-card); box-shadow: 0 8px 28px rgb(49 67 66 / 7%); }
.weight-panel fieldset { display: flex; align-items: end; gap: 14px; margin: 0; padding: 0; border: 0; }
.weight-panel legend { float: left; width: 170px; padding: 0 20px 9px 0; font-size: 1.05rem; font-weight: 650; }
.weight-panel label span { display: block; margin-bottom: 6px; color: var(--baby-muted); font-size: .78rem; font-weight: 600; }
.weight-panel input { width: 96px; min-height: 44px; padding: 8px 11px; border: 1px solid #b8c8c3; border-radius: 9px; background: #fff; color: var(--baby-ink); font: inherit; font-size: 1rem; }
.weight-message { margin: 8px 0 0 170px; color: #a33b3b; font-size: .85rem; }
.results { padding: 28px 0 38px; }
.chart-section { padding: 42px 0 48px; border-top: 1px solid var(--baby-line); border-bottom: 1px solid var(--baby-line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-label { margin: 0 0 5px; color: var(--baby-accent); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: inherit; font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--baby-muted); font-size: .9rem; }
#weight-display { color: var(--baby-accent); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.results-heading { margin-bottom: 18px; }
.recommendations { overflow: hidden; border: 1px solid var(--baby-line); border-radius: 13px; background: var(--baby-card); }
.recommendation { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(130px, 1fr) auto; align-items: center; gap: 16px; min-height: 38px; padding: 7px 14px; border-bottom: 1px solid var(--baby-line); }
.recommendation:last-child { border-bottom: 0; }
.recommendation h3, .recommendation p, .recommendation small { margin: 0; }
.recommendation h3 { font-size: .9rem; font-weight: 650; }
.recommendation p { color: var(--baby-accent); font-size: .95rem; font-weight: 700; }
.recommendation small { color: var(--baby-muted); font-size: .76rem; text-align: right; }
.chart-scroll { overflow-x: auto; padding-bottom: 8px; }
.chart { min-width: 820px; }
.axis { display: grid; grid-template-columns: 124px 1fr; align-items: end; margin-bottom: 12px; }
.axis-scale { position: relative; height: 24px; border-bottom: 1px solid #9caeaa; }
.tick { position: absolute; bottom: 5px; transform: translateX(-50%); color: var(--baby-muted); font-size: .7rem; }
.brand-row { display: grid; grid-template-columns: 124px 1fr; min-height: 52px; border-bottom: 1px solid var(--baby-line); }
.brand-name { padding: 17px 12px 10px 0; font-size: .78rem; font-weight: 650; }
.range-track { position: relative; }
.range { position: absolute; height: 17px; top: var(--lane); left: var(--start); width: var(--width); overflow: hidden; border: 1px solid #b8c8c3; border-radius: 5px; background: #e8eeeb; color: var(--baby-ink); font-size: .64rem; line-height: 15px; text-align: center; white-space: nowrap; }
.range.active { z-index: 2; border-color: var(--baby-accent); background: var(--baby-accent-soft); color: #205b54; font-weight: 700; }
.weight-line { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--position); width: 2px; background: #d68b65; pointer-events: none; }
.weight-line::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #d68b65; }
.chart-note { margin: 16px 0 0 124px; color: var(--baby-muted); font-size: .8rem; }
.disclaimer { margin: 40px 0 54px; padding: 20px 22px; border-radius: 12px; background: var(--baby-warm); color: var(--baby-muted); line-height: 1.55; font-size: .9rem; }
.disclaimer strong { color: var(--baby-ink); }
.diaper-footer { padding: 24px 0 38px; border-top: 1px solid var(--baby-line); color: var(--baby-muted); font-size: .8rem; text-align: center; }

@media (max-width: 760px) {
  .tool-main, .diaper-header, .diaper-footer { width: min(100% - 28px, 920px); }
  .tool-intro { padding: 24px 0 20px; }
  .weight-panel { padding: 15px; }
  .weight-panel fieldset { display: grid; grid-template-columns: 1fr 1fr; }
  .weight-panel legend { float: none; width: auto; grid-column: 1 / -1; }
  .weight-panel input { width: 100%; }
  .weight-message { margin-left: 0; }
  .section-heading { align-items: start; }
  .section-heading > p { display: none; }
}

@media (max-width: 430px) {
  .recommendation { grid-template-columns: 1fr auto; gap: 8px; }
  .recommendation small { display: none; }
  .chart-note { margin-left: 0; }
}
