:root {
  --bg: #f6f8f4;
  --surface: #ffffff;
  --ink: #18211e;
  --muted: #7c8780;
  --line: #e8ece8;
  --green: #2f9d74;
  --green-dark: #1b7555;
  --green-soft: #dff3e9;
  --orange: #f39755;
  --orange-soft: #fff0e3;
  --purple: #8574c8;
  --purple-soft: #eeeaff;
  --shadow: 0 14px 40px rgba(33, 54, 45, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Noto Sans KR", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(47, 157, 116, .26); outline-offset: 2px; }

.app-shell { max-width: 430px; min-height: 100svh; margin: 0 auto; background: var(--bg); position: relative; padding-bottom: 96px; }
.topbar { height: calc(68px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 22px 0; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; background: rgba(246,248,244,.92); backdrop-filter: blur(14px); }
.brand-mark { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.7px; font-size: 16px; }
.brand-icon { width: 26px; height: 26px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 9px; font-size: 15px; box-shadow: 0 5px 10px rgba(47,157,116,.22); }
.topbar-date { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: .2px; }
.icon-button { background: transparent; color: #9ca59f; font-size: 18px; padding: 4px; }
.main-content { padding: 4px 20px 30px; }
.view { display: none; animation: fade-in .25s ease; }
.view.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.hero-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 2px 22px; }
.eyebrow { margin: 0 0 5px; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; color: var(--green); letter-spacing: 1.7px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 29px; line-height: 1.25; letter-spacing: -1.5px; margin: 0; font-weight: 800; }
h2 { font-size: 19px; line-height: 1.25; letter-spacing: -0.8px; margin: 0; }
.today-badge { background: var(--green-soft); color: var(--green-dark); padding: 6px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.balance-card { border-radius: var(--radius-lg); padding: 23px 21px 19px; color: white; background: linear-gradient(142deg, #2fa077 0%, #238562 100%); box-shadow: 0 15px 27px rgba(36, 137, 99, .2); }
.balance-topline { display: flex; justify-content: space-between; align-items: center; }
.card-kicker { margin: 0 0 5px; color: rgba(255,255,255,.7); font-size: 11px; }
.calorie-number { display: flex; align-items: baseline; gap: 5px; }
.calorie-number strong { font-family: "DM Sans", sans-serif; font-size: 40px; letter-spacing: -2px; line-height: 1; }
.calorie-number span { font-family: "DM Sans", sans-serif; font-size: 12px; opacity: .75; }
.balance-ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff 0deg, rgba(255,255,255,.17) 0deg); position: relative; }
.balance-ring::before { content: ""; position: absolute; inset: 6px; background: #2a946e; border-radius: 50%; }
.balance-ring > div { position: relative; display: flex; flex-direction: column; text-align: center; z-index: 1; }
.balance-ring strong { font-family: "DM Sans", sans-serif; font-size: 15px; }
.balance-ring span { font-size: 8px; opacity: .75; }
.progress-track { height: 5px; margin: 22px 0 9px; background: rgba(255,255,255,.2); border-radius: 9px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 9px; background: white; transition: width .5s ease; }
.balance-meta { display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: 10px; }
.balance-meta strong { color: white; font-family: "DM Sans", sans-serif; font-size: 11px; }
.balance-divider { height: 1px; margin: 18px 0 15px; background: rgba(255,255,255,.15); }
.balance-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.balance-stats > div { display: flex; align-items: center; gap: 7px; }
.stat-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 700; }
.stat-icon.mint { background: rgba(190,245,218,.2); color: #d6ffea; }
.stat-icon.peach { background: rgba(255,207,166,.2); color: #ffe0c7; }
.stat-icon.lilac { background: rgba(220,210,255,.2); color: #e8e2ff; }
.balance-stats span:last-child { display: flex; flex-direction: column; }
.balance-stats b { font-family: "DM Sans", sans-serif; font-size: 14px; line-height: 1.2; }
.balance-stats small { color: rgba(255,255,255,.62); font-size: 9px; margin-top: 2px; }

.section-heading, .page-heading, .movement-card-heading, .chart-card-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading { margin: 31px 1px 15px; }
.text-button { padding: 3px 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; }
.meal-list { display: flex; flex-direction: column; gap: 10px; }
.meal-item { display: flex; align-items: center; padding: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 5px 15px rgba(38,54,45,.025); }
.meal-thumb { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; margin-right: 12px; font-size: 24px; overflow: hidden; background: #f0eee7; }
.meal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-bibimbap { background: linear-gradient(140deg,#f3d0a7,#9fbf78); }
.thumb-salad { background: linear-gradient(140deg,#badc9c,#5eae72); }
.thumb-chicken { background: linear-gradient(140deg,#eccd96,#d98d63); }
.thumb-cola { background: linear-gradient(140deg,#e9cbc1,#bc7c62); }
.thumb-coffee { background: linear-gradient(140deg,#d9c4a5,#9f7957); }
.thumb-snack { background: linear-gradient(140deg,#f5d38a,#df9a53); }
.meal-info { flex: 1; min-width: 0; }
.meal-info strong { font-size: 13px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal-info span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.meal-calories { align-self: center; text-align: right; margin-left: 8px; }
.meal-calories strong { display: block; color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 16px; }
.meal-calories span { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 9px; }
.meal-actions { display: flex; gap: 3px; margin-left: 7px; }
.mini-action { padding: 4px; color: #9ca59f; font-size: 12px; background: transparent; }
.movement-card { margin-top: 31px; background: var(--surface); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--line); }
.round-add { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 20px; line-height: 1; }
.movement-summary { display: flex; align-items: center; margin: 22px 0 15px; gap: 15px; }
.movement-figure { color: var(--green); font-family: "DM Sans", sans-serif; font-size: 39px; font-weight: 700; line-height: 1; letter-spacing: -2px; }
.movement-figure small { font-family: "Noto Sans KR", sans-serif; font-size: 11px; letter-spacing: 0; margin-left: 3px; color: var(--muted); font-weight: 500; }
.movement-copy { display: flex; flex-direction: column; gap: 4px; }
.movement-copy strong { font-size: 12px; }
.movement-copy span { font-size: 10px; color: var(--muted); }
.activity-bar { min-height: 10px; display: flex; gap: 5px; align-items: end; }
.activity-bar i { flex: 1; background: #dcefe7; border-radius: 5px 5px 2px 2px; height: 8px; }
.activity-bar i.filled { background: var(--green); }
.activity-bar i:nth-child(2n) { height: 13px; }
.activity-bar i:nth-child(3n) { height: 18px; }
.primary-button { background: var(--green); color: white; padding: 12px 17px; border-radius: 12px; font-weight: 700; font-size: 12px; box-shadow: 0 7px 14px rgba(47,157,116,.17); transition: transform .15s, background .15s; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.primary-button.wide { width: 100%; margin-top: 22px; }
.primary-button.compact { padding: 10px 12px; font-size: 11px; }
.button-plus { font-size: 18px; vertical-align: -1px; margin-right: 5px; }
.disclaimer { color: #9aa59e; font-size: 10px; text-align: center; line-height: 1.6; margin: 14px 12px; }

.page-heading { padding: 23px 1px 22px; }
.page-heading h1 { font-size: 27px; }
.date-switcher { display: flex; align-items: center; justify-content: space-between; margin: 0 0 15px; }
.date-arrow { width: 31px; height: 31px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--green); font-size: 20px; line-height: 20px; }
.date-label { background: transparent; font-size: 12px; font-weight: 700; color: var(--ink); }
.nutrient-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); border-radius: 15px; margin-bottom: 16px; overflow: hidden; }
.nutrient-strip > div { text-align: center; padding: 12px 5px; border-right: 1px solid var(--line); }
.nutrient-strip > div:last-child { border-right: 0; }
.nutrient-strip b { display: block; font-family: "DM Sans", sans-serif; font-size: 17px; }
.nutrient-strip span { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.stacked .meal-item { padding: 13px; }
.meal-detail { display: flex; gap: 6px; color: var(--muted); font-size: 9px; margin-top: 5px; }
.meal-detail b { color: var(--ink); font-weight: 600; }
.empty-state { text-align: center; padding: 62px 20px 20px; color: var(--muted); }
.empty-state.hidden { display: none; }
.empty-illustration { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 23px; background: var(--green-soft); color: var(--green); font-size: 30px; }
.empty-state h3 { margin-bottom: 7px; color: var(--ink); font-size: 15px; }
.empty-state p { margin-bottom: 18px; font-size: 11px; }
.empty-state .primary-button { margin-top: 0; }

.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #e9eeea; border-radius: 11px; margin-bottom: 21px; }
.segment { padding: 9px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.segment.active { color: var(--green-dark); background: var(--surface); box-shadow: 0 2px 5px rgba(34,54,44,.08); }
.history-date-row { display: flex; align-items: center; justify-content: space-between; text-align: center; margin-bottom: 19px; }
.history-date-row p { font-size: 14px; font-weight: 800; margin: 0 0 3px; }
.history-date-row span { font-family: "DM Sans", sans-serif; color: var(--muted); font-size: 10px; }
.history-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); border-radius: 11px; }
.history-highlight { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #262e2a; border-radius: var(--radius-lg); color: white; margin-bottom: 13px; }
.history-highlight .highlight-number { font-family: "DM Sans", sans-serif; font-size: 28px; letter-spacing: -1px; display: block; }
.history-highlight .highlight-number em { font-family: "Noto Sans KR", sans-serif; font-style: normal; font-size: 10px; color: rgba(255,255,255,.65); margin-left: 3px; }
.history-highlight .highlight-label { color: rgba(255,255,255,.62); font-size: 9px; display: block; margin-top: 3px; }
.highlight-line { width: 1px; background: rgba(255,255,255,.15); position: absolute; }
.chart-card, .history-breakdown { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 19px; margin-bottom: 13px; }
.chart-card h2 { font-size: 16px; }
.chart-legend { color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; margin-left: 7px; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot.intake { background: var(--green); }.legend-dot.burned { background: var(--orange); }
.chart { height: 155px; display: flex; align-items: flex-end; justify-content: space-around; gap: 6px; padding: 22px 0 3px; margin-top: 8px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, #f0f3f0 38px); }
.chart-group { height: 100%; flex: 1; display: flex; gap: 4px; justify-content: center; align-items: flex-end; position: relative; }
.chart-bar { width: 11px; max-height: 100%; border-radius: 6px 6px 2px 2px; min-height: 4px; transition: height .4s ease; }
.chart-bar.intake { background: var(--green); }.chart-bar.burned { background: var(--orange); }
.chart-label { position: absolute; bottom: -19px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 9px; }
.macro-bars { display: flex; flex-direction: column; gap: 15px; margin-top: 19px; }
.macro-row { display: grid; grid-template-columns: 58px 1fr 42px; align-items: center; gap: 10px; font-size: 10px; }
.macro-row > span:first-child { color: var(--muted); }
.macro-row strong { text-align: right; font-family: "DM Sans", sans-serif; font-size: 12px; }
.macro-track { height: 7px; background: #eff2ef; border-radius: 9px; overflow: hidden; }.macro-fill { height: 100%; border-radius: 9px; }.macro-fill.carbs { background: var(--orange); }.macro-fill.protein { background: var(--green); }.macro-fill.fat { background: var(--purple); }

.exercise-total-card { background: linear-gradient(135deg,#f1dfd1,#f5c39c); border-radius: var(--radius-lg); padding: 19px; position: relative; overflow: hidden; margin-bottom: 21px; }
.exercise-total-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 20px solid rgba(255,255,255,.3); right: -45px; top: -42px; }
.exercise-total-card .card-kicker { color: #926e53; margin-bottom: 4px; }.exercise-total-card strong { font-family: "DM Sans", sans-serif; font-size: 38px; letter-spacing: -2px; }.exercise-total-card > div:first-child span { font-family: "DM Sans", sans-serif; font-size: 12px; color: #926e53; }
.exercise-total-icon { position: absolute; right: 22px; top: 48px; color: #cb7e4c; font-size: 26px; z-index: 1; transform: rotate(-18deg); }.exercise-total-meta { display: flex; gap: 13px; margin-top: 13px; color: #9c7255; font-size: 10px; }
.exercise-list { display: flex; flex-direction: column; gap: 10px; }.exercise-item { padding: 15px; display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.exercise-item-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border-radius: 13px; font-size: 19px; }.exercise-item-info strong { display: block; font-size: 13px; }.exercise-item-info span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }.exercise-item-kcal { text-align: right; }.exercise-item-kcal strong { display: block; font-family: "DM Sans", sans-serif; font-size: 16px; }.exercise-item-kcal span { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 9px; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; z-index: 20; width: 100%; max-width: 430px; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; padding: 9px 15px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: 1px solid rgba(227,233,228,.9); backdrop-filter: blur(16px); }
.nav-item { display: flex; align-items: center; flex-direction: column; gap: 3px; background: transparent; color: #a2aaa4; font-size: 9px; font-weight: 600; }.nav-item.active { color: var(--green); }.nav-icon { font-size: 21px; line-height: 19px; font-weight: 500; }.nav-add { width: 44px; height: 44px; margin: -12px auto 0; border-radius: 15px; color: white; background: var(--green); box-shadow: 0 7px 15px rgba(47,157,116,.3); font-size: 28px; line-height: 1; display: grid; place-items: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(22,33,28,.4); opacity: 0; pointer-events: none; transition: opacity .25s ease; }.modal-backdrop.open { opacity: 1; pointer-events: auto; }.modal-sheet { width: min(430px, 100%); max-height: 92svh; background: var(--bg); border-radius: 25px 25px 0 0; transform: translateY(20px); transition: transform .3s ease; padding: 10px 20px calc(30px + env(safe-area-inset-bottom)); overflow: hidden; }.modal-backdrop.open .modal-sheet { transform: translateY(0); }.modal-handle { width: 38px; height: 4px; border-radius: 4px; background: #d7ded8; margin: 0 auto 17px; }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }.modal-header h2 { font-size: 22px; }.close-button { background: var(--surface); color: #7a857e; border-radius: 10px; width: 42px; height: 42px; font-size: 22px; line-height: 20px; }.modal-scroll { max-height: calc(92svh - 90px); overflow-y: auto; padding: 1px 1px 10px; -webkit-overflow-scrolling: touch; }.small-sheet { max-height: auto; }.small-sheet .form-grid { margin-bottom: 0; }
.photo-dropzone { min-height: 190px; border: 1.5px dashed #cdd8cf; border-radius: 19px; position: relative; overflow: hidden; background: #edf4ef; }.photo-dropzone > input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.upload-prompt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; text-align: center; }.upload-icon { width: 45px; height: 45px; display: grid; place-items: center; color: var(--green); background: white; border-radius: 15px; font-size: 25px; margin-bottom: 6px; }.upload-prompt strong { font-size: 13px; }.upload-prompt span { color: var(--muted); font-size: 10px; }.secondary-button { margin-top: 9px; background: white; color: var(--green-dark); border: 1px solid #d9e5dc; border-radius: 8px; padding: 7px 11px; font-size: 10px; font-weight: 700; pointer-events: none; }.photo-preview { position: absolute; inset: 0; z-index: 3; }.photo-preview.hidden, .upload-prompt.hidden, .analysis-panel.hidden { display: none; }.photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }.photo-remove { position: absolute; right: 10px; top: 10px; z-index: 3; width: 27px; height: 27px; background: rgba(20,30,25,.65); color: white; border-radius: 50%; font-size: 17px; }.ai-analysis-actions { display: flex; align-items: center; gap: 9px; margin: 11px 0 12px; }.ai-analysis-actions span { color: var(--muted); font-size: 9px; line-height: 1.45; }.sample-selector { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 15px; }.sample-selector > span { color: var(--muted); font-size: 10px; margin-right: 2px; }.sample-chip { color: #637168; background: #edf1ee; padding: 7px 10px; border-radius: 9px; font-size: 10px; }.sample-chip.active { color: var(--green-dark); background: var(--green-soft); font-weight: 700; }.analysis-panel { background: white; border: 1px solid #dcefe3; border-radius: 15px; margin-bottom: 16px; overflow: hidden; }.analysis-status { display: flex; align-items: center; gap: 9px; padding: 13px; }.status-check { width: 22px; height: 22px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 12px; }.analysis-status > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }.analysis-status strong { font-size: 11px; }.analysis-status span:not(.status-check):not(.estimate-pill) { color: var(--muted); font-size: 9px; }.estimate-pill { color: #b76d32; background: var(--orange-soft); border-radius: 6px; font-size: 9px; padding: 4px 6px; font-weight: 700; }.confidence-note { padding: 10px 13px; border-top: 1px solid #edf2ee; color: #829087; font-size: 9px; line-height: 1.55; }
.photo-capture > input { z-index: 1; }.photo-capture .upload-prompt { z-index: 2; pointer-events: auto; }.photo-capture .secondary-button { pointer-events: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; }.field { display: flex; flex-direction: column; gap: 6px; }.field.full { grid-column: 1 / -1; }.field > span { color: #6e7b72; font-size: 10px; font-weight: 700; }.field em { color: #a3ada6; font-size: 9px; font-style: normal; font-weight: 400; }.field small { color: #a3ada6; font-size: 9px; font-weight: 400; }.field input, .field select { width: 100%; min-width: 0; padding: 11px 11px; background: white; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); font-size: 12px; }.field input::placeholder { color: #bac3bc; }.field select { appearance: auto; }.form-grid .primary-button { margin-top: 5px; }
.healthkit-card { margin-top: 19px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }.healthkit-heading { display: flex; align-items: center; gap: 9px; }.healthkit-symbol { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #ee746f; border-radius: 9px; font-size: 16px; }.healthkit-heading > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }.healthkit-heading strong { font-size: 12px; }.healthkit-heading span:not(.coming-pill) { color: var(--muted); font-size: 9px; }.coming-pill { color: #b76d32; background: var(--orange-soft); padding: 4px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; }.healthkit-card p { margin: 12px 0; color: #7c8780; font-size: 10px; line-height: 1.55; }.healthkit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 10px; background: #fff7f6; border-radius: 9px; color: #ce6b65; font-size: 10px; font-weight: 700; }.healthkit-button span { font-size: 17px; line-height: 10px; }
.health-import-panel { margin: 15px 0; padding: 15px; background: #fff; border: 1px solid #dcefe3; border-radius: 16px; }.health-import-panel .panel-heading { margin-bottom: 8px; }.health-import-panel h2 { font-size: 16px; }.health-import-help, .health-import-note { margin: 0 0 9px; color: #7f8c83; font-size: 10px; line-height: 1.55; }.health-import-note { margin: 9px 0 0; color: #9aa59e; font-size: 9px; }.health-import-panel textarea { display: block; width: 100%; min-height: 70px; box-sizing: border-box; padding: 10px; resize: vertical; color: var(--ink); background: #fbfdfb; border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; font-size: 11px; line-height: 1.55; }.health-import-panel textarea:focus { border-color: #a9d9c1; box-shadow: 0 0 0 3px rgba(47,157,116,.08); }.health-import-panel .secondary-button { width: 100%; pointer-events: auto; }
.exercise-source-badge { display: inline-block; margin-top: 5px; padding: 3px 6px; color: var(--green-dark); background: var(--green-soft); border-radius: 6px; font-size: 9px; font-weight: 700; }
.goal-glance { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9px; margin-top: 11px; }.goal-glance-item { min-width: 0; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }.glance-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.glance-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; }.goal-glance-item strong { display: block; margin-top: 8px; font-family: "DM Sans", sans-serif; font-size: 20px; letter-spacing: -.6px; }.goal-glance-item strong small { color: var(--muted); font-family: "Noto Sans KR", sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0; }.weight-glance strong { color: #bd7a4c; }.weight-glance > span:last-child { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }.mini-progress, .hydration-progress { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 8px; background: #edf2ee; }.mini-progress > div, .hydration-progress > div { height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.hydration-card { margin-top: 13px; padding: 18px; background: #f0f8f3; border: 1px solid #dbeee2; border-radius: var(--radius-lg); }.hydration-header { display: flex; align-items: center; justify-content: space-between; }.hydration-figure { display: flex; align-items: baseline; gap: 5px; margin-top: 14px; }.hydration-figure strong { color: var(--green-dark); font-family: "DM Sans", sans-serif; font-size: 30px; letter-spacing: -1.5px; }.hydration-figure span { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 11px; }.hydration-figure b { color: var(--ink); }.water-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }.water-actions button { min-height: 34px; color: var(--green-dark); background: white; border: 1px solid #d7e9dc; border-radius: 9px; font-size: 10px; font-weight: 700; }.other-drink-summary { margin: 11px 0 0; color: #849289; font-size: 9px; }
.photo-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.photo-capture { min-height: 156px; }.photo-capture .upload-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; margin-bottom: 3px; }.photo-capture .upload-prompt strong { font-size: 11px; }.photo-capture .upload-prompt span { font-size: 9px; }.photo-capture .secondary-button { padding: 6px 8px; font-size: 9px; }.photo-compare { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 10px 12px; border-radius: 11px; color: #717e76; background: #eef7f1; font-size: 9px; }.photo-compare.hidden { display: none; }.compare-label { display: flex; align-items: center; gap: 4px; color: var(--green-dark); font-weight: 700; }.compare-label i { color: #b0c0b4; font-style: normal; }.photo-compare strong { text-align: right; font-size: 9px; }
.chatgpt-paste-panel { margin-bottom: 15px; padding: 14px; background: #fff; border: 1px solid #dcefe3; border-radius: 16px; }.chatgpt-paste-panel .panel-heading { margin-bottom: 8px; }.chatgpt-paste-help { margin: 0 0 9px; color: #7f8c83; font-size: 10px; line-height: 1.5; }.chatgpt-paste-panel textarea { display: block; width: 100%; min-height: 92px; box-sizing: border-box; padding: 10px; resize: vertical; color: var(--ink); background: #fbfdfb; border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; font-size: 11px; line-height: 1.55; }.chatgpt-paste-panel textarea:focus { border-color: #a9d9c1; box-shadow: 0 0 0 3px rgba(47,157,116,.08); }.chatgpt-paste-panel .secondary-button { width: 100%; margin-top: 9px; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 80; transform: translate(-50%, 15px); padding: 10px 15px; border-radius: 10px; background: #26342d; color: white; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) { .app-shell { box-shadow: 0 0 50px rgba(38, 53, 44, .06); } .bottom-nav { border-radius: 20px 20px 0 0; } }
@media (max-width: 370px) { .main-content { padding-left: 15px; padding-right: 15px; }.balance-card { padding-left: 17px; padding-right: 17px; }.balance-stats { gap: 5px; }.balance-stats small { font-size: 8px; }.meal-calories strong { font-size: 14px; } }
 .numeric-entry { display: flex; align-items: stretch; gap: 5px; min-width: 0; }
 .numeric-entry > input { flex: 1; min-width: 0; }
 .numeric-stepper { display: flex; flex-direction: column; gap: 3px; }
 .numeric-stepper button { width: 28px; min-height: 21px; padding: 0; color: var(--green-dark); background: var(--green-soft); border: 1px solid #d8e9dc; border-radius: 6px; font-size: 13px; line-height: 1; }
 .numeric-stepper button:active { transform: scale(.96); }
