:root { color-scheme: light; --ink: #142a2a; --muted: #5e7070; --paper: #f6f7f3; --white: #ffffff; --teal: #183d3d; --mint: #dff3e8; --peach: #ffe5d6; --line: #dce4df; --focus: #0b8571; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(150deg, #edf8f2 0%, var(--paper) 42%, #fff7f0 100%); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100%, 680px); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
.hero, .history-heading, .form-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero { margin: 8px 2px 22px; }
h1, h2, p { margin: 0; }
h1 { color: var(--teal); font-size: clamp(2rem, 8vw, 2.75rem); letter-spacing: -.055em; line-height: .95; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.eyebrow { color: #51716a; font-size: .7rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 5px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: rgb(255 255 255 / .75); font-size: 1.45rem; line-height: 1; }
.icon-button:active { transform: rotate(45deg); }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.total-card { grid-column: 1 / -1; background: var(--teal); color: #fff; border-radius: 22px; padding: 21px 20px 18px; box-shadow: 0 9px 20px rgb(24 61 61 / .12); }
.card-label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; opacity: .76; text-transform: uppercase; }
.total-card strong { display: inline-block; font-size: 3.2rem; line-height: 1.1; margin-top: 4px; letter-spacing: -.06em; }
.unit { font-size: 1rem; font-weight: 700; }
.total-card p { color: #c7e5d4; font-size: .85rem; margin-top: 3px; }
.mini-card { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 17px; min-width: 0; }
.mini-card > span { font-size: 1.35rem; }
.mini-card div { display: grid; gap: 2px; min-width: 0; }
.mini-card div span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mini-card strong { font-size: 1rem; white-space: nowrap; }
.bottle-card { background: #dceef7; }.breast-card { background: var(--peach); }
.form-card, .history { background: rgb(255 255 255 / .92); border: 1px solid rgb(220 228 223 / .9); border-radius: 22px; padding: 20px; box-shadow: 0 5px 14px rgb(45 72 60 / .04); }
.form-card { margin-bottom: 16px; }
.form-heading { margin-bottom: 17px; }
.text-button { border: 0; background: none; color: #27675d; font-weight: 750; padding: 8px 2px; }
.hidden { display: none !important; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; } legend, label { font-size: .88rem; font-weight: 750; }
legend { margin-bottom: 8px; }
.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.type-picker legend { grid-column: 1 / -1; }
.type-option { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 54px; padding: 10px; border: 1.5px solid var(--line); border-radius: 13px; color: var(--muted); transition: .15s ease; }
.type-option input { appearance: none; position: absolute; }.type-option.selected { border-color: var(--teal); background: #eaf5ed; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }.type-icon { font-size: 1.18rem; }
.field-group { margin: 15px 0; }.field-group label { display: block; margin-bottom: 7px; }.field-group label span { color: var(--muted); font-weight: 500; }
input[type="number"], input[type="datetime-local"], input[type="text"] { width: 100%; min-height: 52px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; outline: none; }
input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(11 133 113 / .14); }.amount-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.quick-amounts { display: flex; gap: 4px; }.quick-amounts button { min-width: 43px; padding: 0 7px; border: 1px solid #cae1d4; border-radius: 10px; color: #245b52; background: #f1f9f4; font-size: .75rem; font-weight: 800; }
.primary-button { width: 100%; min-height: 55px; border: 0; border-radius: 13px; color: white; background: var(--teal); font-weight: 800; font-size: 1rem; box-shadow: 0 5px 12px rgb(24 61 61 / .16); }.primary-button:disabled { opacity: .65; cursor: wait; }.delete-button { display: block; margin: 14px auto 0; padding: 5px; border: 0; color: #ad3650; background: none; font-size: .8rem; font-weight: 750; }.delete-button:disabled { opacity: .55; }.form-message { min-height: 1.25em; color: #287263; margin-top: 10px; text-align: center; font-size: .84rem; font-weight: 650; }.form-message.error { color: #b11f35; }
.week-summary { margin-bottom: 16px; padding: 20px; border: 1px solid #dbe8df; border-radius: 22px; background: linear-gradient(135deg, #edf8f1, #f9fcf8); }.week-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.week-range { color: var(--muted); font-size: .8rem; font-weight: 650; }.week-total { display: grid; gap: 2px; text-align: right; }.week-total span { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }.week-total strong { color: var(--teal); font-size: 1.2rem; letter-spacing: -.03em; white-space: nowrap; }.week-breakdown { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 15px 0 12px; color: var(--muted); font-size: .78rem; }.week-breakdown strong { color: var(--ink); margin-left: 3px; }.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 5px; height: 112px; }.week-bar { display: grid; grid-template-rows: 17px 70px 16px; align-items: end; min-width: 0; padding: 0; border: 0; border-radius: 9px; color: var(--muted); background: transparent; }.week-bar-amount { width: 100%; overflow: hidden; font-size: .64rem; font-weight: 800; line-height: 1; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.week-bar-track { display: flex; align-items: end; justify-content: center; height: 70px; margin: 0 3px; border-radius: 7px; background: #dce9e0; overflow: hidden; }.week-bar-fill { width: 100%; min-height: 2px; border-radius: 6px 6px 0 0; background: #72ab91; transition: height .2s ease; }.week-bar-label { padding-top: 5px; font-size: .7rem; font-weight: 800; text-align: center; text-transform: capitalize; }.week-bar.selected { color: var(--teal); }.week-bar.selected .week-bar-track { box-shadow: 0 0 0 2px var(--teal); }.week-bar.selected .week-bar-fill { background: var(--teal); }.week-bar:focus-visible { outline: 3px solid #62af9c; outline-offset: 2px; }
.energy-card { margin-bottom: 16px; padding: 20px; border: 1px solid #e7dfd2; border-radius: 22px; background: linear-gradient(135deg, #fffaf1, #fffefd); }.energy-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.energy-empty { color: var(--muted); margin: 14px 0 0; font-size: .9rem; line-height: 1.45; }.energy-results { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }.energy-results article { display: grid; gap: 3px; padding: 13px; border-radius: 14px; background: rgb(255 255 255 / .76); }.energy-results article span { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }.energy-results article strong { color: #6d4a20; font-size: 1.15rem; letter-spacing: -.03em; }.energy-detail { grid-column: 1 / -1; margin: 2px 1px 0; color: var(--muted); font-size: .8rem; line-height: 1.43; }.profile-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee6d9; }.profile-intro, .field-help { color: var(--muted); font-size: .8rem; line-height: 1.42; }.profile-intro { margin-bottom: 10px; }.field-help { margin: -5px 0 13px; }.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }.profile-grid .field-group { margin: 9px 0; }.profile-grid select { width: 100%; min-height: 52px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; outline: none; }.profile-grid select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(11 133 113 / .14); }.health-guidance { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee6d9; color: var(--muted); font-size: .8rem; line-height: 1.45; }.health-guidance summary { color: #315d56; cursor: pointer; font-weight: 800; }.health-guidance p { margin-top: 11px; }.source-links a { color: #246c60; font-weight: 750; }
.history { padding-top: 19px; }.date-picker-label { color: var(--muted); font-size: .68rem; text-align: right; text-transform: uppercase; letter-spacing: .07em; }.date-picker-label input { display: block; width: 128px; min-height: 32px; margin-top: 3px; padding: 2px 0; border: 0; color: var(--teal); background: transparent; font-weight: 800; text-align: right; outline: 0; }
.day-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 17px 0 10px; padding: 3px; background: #f1f5f1; border-radius: 13px; text-align: center; }.day-nav button { width: 38px; height: 38px; border: 0; border-radius: 10px; color: var(--teal); background: white; font-size: 1.55rem; line-height: 1; }.day-nav strong { font-size: .92rem; text-transform: capitalize; }
.feedings { display: grid; gap: 8px; }.feeding-item { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid #edf0ed; }.feeding-item:last-child { border-bottom: 0; }.feeding-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 1rem; }.feeding-bottle .feeding-icon { background: #e4f1f7; }.feeding-breast .feeding-icon { background: #fff0e6; color: #c55f48; }.feeding-main { min-width: 0; display: grid; gap: 2px; }.feeding-main strong { font-size: .92rem; }.feeding-note { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }.feeding-side { display: grid; gap: 2px; text-align: right; }.feeding-side strong { font-size: .9rem; }.feeding-side span { color: var(--muted); font-size: .75rem; }.edit-button { padding: 6px 0 6px 5px; border: 0; color: #347369; background: none; font-size: .74rem; font-weight: 800; }.empty-state { padding: 25px 5px 15px; color: var(--muted); font-size: .9rem; text-align: center; }
@media (max-width: 390px) { .shell { padding-inline: 12px; }.form-card, .history { padding: 16px; }.quick-amounts button { min-width: 38px; padding: 0 4px; }.feeding-item { grid-template-columns: 32px minmax(0,1fr) auto; }.edit-button { grid-column: 2 / -1; justify-self: end; padding-top: 0; }.feeding-side { grid-column: 3; grid-row: 1; }.feeding-main { grid-column: 2; grid-row: 1; } }
@media (min-width: 640px) { .shell { padding-top: 38px; }.summary { grid-template-columns: 1.35fr 1fr 1fr; }.total-card { grid-column: auto; }.mini-card { flex-direction: column; align-items: flex-start; justify-content: center; }.mini-card div { width: 100%; }.form-card, .history, .week-summary, .energy-card { padding: 24px; } }
