/* WeightTrack — styles. Fonts, resets, and component classes. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ---------- resets ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #dfe2e2;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
/* let real text inputs still be selectable */
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; border: 0; outline: 0; background: none; width: 100%; }
a { color: #3a5a8c; text-decoration: none; }
a:hover { color: #2c4670; }
svg { display: block; }

::-webkit-scrollbar { width: 0; height: 0; }

@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.anim-fade { animation: fadeIn .25s ease; }
.anim-fade-slow { animation: fadeIn .3s ease; }
.anim-scr { animation: scrIn .3s ease; }
.anim-sheet { animation: sheetUp .28s cubic-bezier(.16,1,.3,1); }
.anim-overlay { animation: fadeIn .2s ease; }

/* ---------- shell ---------- */
.stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px; }
.phone {
  position: relative; width: 393px; height: 852px; background: #fbfcfc;
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.28); border: 1px solid #ececec;
}
#app-root { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; }

/* On real phones: drop the mockup frame and go full-bleed edge to edge. */
@media (max-width: 480px) {
  html, body { height: 100%; overflow: hidden; }
  .stage {
    padding: 0; background: #fbfcfc;
    min-height: 0; height: 100dvh;
    align-items: stretch; justify-content: stretch;
  }
  .phone {
    width: 100%; height: 100%;
    border: 0; border-radius: 0; box-shadow: none;
  }
}

/* ---------- generic ---------- */
.screen { padding: 6px 22px 28px; }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.flex-none { flex: none; }
.mb12 { margin-bottom: 12px; } .mb14 { margin-bottom: 14px; } .mb16 { margin-bottom: 16px; }
.mb18 { margin-bottom: 18px; } .mb20 { margin-bottom: 20px; } .mb22 { margin-bottom: 22px; } .mb24 { margin-bottom: 24px; }
.lh12 { line-height: 1.2; }

.title { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.kicker { font-size: 13px; font-weight: 500; color: #3a5a8c; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 16px; }
.sec-label { font-size: 13px; font-weight: 500; color: #6b6b6b; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 8px; }
.step-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.step-sub { font-size: 15px; color: #6b6b6b; line-height: 1.4; margin-bottom: 26px; }
.lbl { font-size: 13px; font-weight: 500; color: #1a1a1a; margin-bottom: 8px; }
.metric-l { font-size: 13px; color: #6b6b6b; font-weight: 500; }

.page-head { padding: 34px 0 18px; }
.page-head .title { margin-top: 2px; }
.page-head-row { display: flex; justify-content: space-between; align-items: center; padding: 34px 0 18px; }
.date-line { font-size: 13px; color: #6b6b6b; font-weight: 500; letter-spacing: .01em; }

/* ---------- cards ---------- */
.card { border: 1px solid #e5e5e5; border-radius: 14px; }
.card-pad { padding: 18px; }
.card-flush { overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.card-title { font-size: 15px; font-weight: 500; }

/* ---------- buttons ---------- */
.btn-primary { background: #3a5a8c; color: #fff; font-weight: 500; border-radius: 12px; }
.btn-primary.dim { background: #c4d0e6; }
.btn-block { width: 100%; height: 52px; font-size: 16px; }
.btn-inline { height: 46px; padding: 0 22px; border-radius: 11px; font-size: 15px; }
.btn-grey { background: #f2f3f4; color: #1a1a1a; font-weight: 500; border-radius: 9px; }
.btn-danger { background: #c0392b; color: #fff; font-weight: 500; border-radius: 9px; }

/* steppers */
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px 16px; }
.stepper.mb12 { margin-bottom: 12px; } .stepper.mb18 { margin-bottom: 18px; }
.stepper.mb20 { margin-bottom: 20px; } .stepper.mb24 { margin-bottom: 24px; }
.step-btn { width: 44px; height: 44px; border-radius: 9px; background: #f2f3f4; display: flex; align-items: center; justify-content: center; flex: none; }
.step-btn.sm { width: 40px; height: 40px; }
.stepper-val { font-weight: 500; letter-spacing: -.01em; }

/* segmented + chips */
.seg-row { display: flex; gap: 8px; }
.seg { padding: 11px; border-radius: 9px; font-size: 14px; font-weight: 500; background: #fff; color: #6b6b6b; border: 1px solid #e5e5e5; }
.seg.seg-flex { flex: 1; }
.seg.on { background: #3a5a8c; color: #fff; border-color: #3a5a8c; }
.chip { padding: 12px 8px; border-radius: 10px; font-size: 15px; font-weight: 500; background: #f2f3f4; color: #6b6b6b; border: 1px solid #e5e5e5; }
.chip.on { background: #3a5a8c; color: #fff; border-color: #3a5a8c; }
.chip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 18px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chip.chip-flex { flex: 1; padding: 10px; font-size: 14px; }

/* ---------- onboarding ---------- */
.ob { min-height: 100%; display: flex; flex-direction: column; padding: 16px 26px 30px; }
.ob-dots { display: flex; align-items: center; gap: 6px; padding: 18px 0 44px; }
.ob-dot { height: 3px; border-radius: 2px; flex: 1; background: #e5e5e5; }
.ob-dot.on { background: #3a5a8c; }
.ob-step { flex: 1; }
.ob-center { display: flex; flex-direction: column; justify-content: center; }
.ob-badge { width: 52px; height: 52px; border-radius: 14px; background: #3a5a8c; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.ob-badge-lt { background: #eef1f7; margin-bottom: 24px; }
.ob-hero-img { display: block; width: 430px; max-width: none; height: auto; margin: 0 0 26px -26px; }
.ob-hero { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.ob-lead { font-size: 17px; line-height: 1.45; color: #6b6b6b; }
.priv-list { display: flex; flex-direction: column; gap: 2px; }
.priv-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e5e5e5; font-size: 15px; color: #1a1a1a; }
.priv-row svg { flex: none; }
.pace-card { background: #eef1f7; border-radius: 10px; padding: 16px; }
.pace-head { display: flex; justify-content: space-between; align-items: baseline; }
.pace-l { font-size: 15px; color: #29426b; }
.pace-v { font-size: 17px; font-weight: 500; color: #3a5a8c; }
.pace-note { font-size: 13px; color: #55688a; line-height: 1.45; margin-top: 14px; }
.pace-div { height: 1px; background: #d4dcec; margin: 14px 0; }
/* two-up pace comparison so it scans instead of stacking */
.pace-split { display: flex; }
.pace-col { flex: 1; }
.pace-col-r { padding-left: 16px; border-left: 1px solid #d4dcec; }
.pace-col-l { font-size: 12px; color: #55688a; font-weight: 500; letter-spacing: .01em; }
.pace-col-v { font-size: 16px; font-weight: 600; color: #3a5a8c; letter-spacing: -.01em; margin-top: 5px; line-height: 1.2; }
.pace-col-sub { font-size: 12px; color: #55688a; margin-top: 3px; }
.plan-card { border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; }
.plan-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; }
.plan-row.rb { border-top: 1px solid #e5e5e5; }
.plan-l { font-size: 15px; color: #6b6b6b; }
.plan-v { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.plan-foot { font-size: 13px; color: #6b6b6b; line-height: 1.5; margin-top: 16px; }
.ob-nav { display: flex; gap: 10px; padding-top: 24px; }
.ob-back { width: 52px; flex: none; height: 52px; border-radius: 12px; border: 1px solid #e5e5e5; display: flex; align-items: center; justify-content: center; }
.ob-next { flex: 1; height: 52px; border-radius: 12px; background: #3a5a8c; color: #fff; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }

/* inputs */
.inp-wrap { border: 1px solid #e5e5e5; border-radius: 10px; padding: 13px 16px; }
.inp-lg { font-size: 17px; font-weight: 500; }

/* ---------- home ---------- */
.focus-card { background: #3a5a8c; border-radius: 14px; padding: 18px 18px 16px; margin-bottom: 16px; }
.focus-kicker { font-size: 13px; color: #b9c8e2; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 16px; }
.focus-text { font-size: 17px; color: #fff; line-height: 1.4; font-weight: 400; }
.row-top { display: flex; justify-content: space-between; align-items: flex-start; }
.metric-v { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; }
.metric-since { font-size: 17px; font-weight: 500; color: #3a5a8c; margin-top: 6px; }
.gauge { margin-top: 8px; }
.gauge-svg { display: block; margin: 0 auto; }
.gauge-big { font-size: 30px; font-weight: 600; fill: #1a1a1a; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gauge-small { font-size: 14px; font-weight: 500; fill: #6b6b6b; }
.startgoal { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 4px; }
.sg-l { font-size: 11px; color: #6b6b6b; font-weight: 500; letter-spacing: .03em; }
.sg-v { font-size: 14px; font-weight: 500; margin-top: 2px; }
.habit { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 0; border-top: 1px solid #e5e5e5; text-align: left; }
.check { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid #cfcfcf; background: #fff; display: flex; align-items: center; justify-content: center; }
.check.on { border-color: #3a5a8c; background: #3a5a8c; }
.habit-label { font-size: 15px; color: #1a1a1a; }
.habit-label.done { color: #6b6b6b; }
.cta { width: 100%; display: flex; align-items: center; gap: 14px; background: #eef1f7; border-radius: 14px; padding: 18px; text-align: left; }
.cta-icon { width: 44px; height: 44px; flex: none; border-radius: 11px; background: #3a5a8c; display: flex; align-items: center; justify-content: center; }
.cta-body { flex: 1; }
.cta-t { font-size: 15px; font-weight: 500; color: #29426b; }
.cta-s { font-size: 13px; color: #55688a; margin-top: 2px; }

/* ---------- measure ---------- */
.add-btn { width: 38px; height: 38px; border-radius: 10px; background: #3a5a8c; display: flex; align-items: center; justify-content: center; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 30px; }
.empty-icon { width: 56px; height: 56px; border-radius: 15px; background: #f2f3f4; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.empty-t { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.empty-s { font-size: 15px; color: #6b6b6b; line-height: 1.45; max-width: 240px; margin-bottom: 22px; }
.delta { font-size: 15px; font-weight: 500; color: #6b6b6b; }
.delta.pos { color: #3a5a8c; }
.measure-cap { font-size: 12px; color: #6b6b6b; text-align: center; margin-top: 2px; }
.hist-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; }
.hist-row.rb { border-top: 1px solid #e5e5e5; }
.hist-v { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.hist-d { font-size: 13px; color: #6b6b6b; margin-top: 2px; }
.hist-delta { font-size: 14px; font-weight: 500; color: #6b6b6b; }
.hist-delta.pos { color: #3a5a8c; }

/* ---------- log ---------- */
.pill-row { display: flex; gap: 3px; background: #eceef0; border-radius: 10px; padding: 3px; margin-bottom: 18px; }
.pill { flex: 1; height: 36px; border-radius: 8px; font-size: 14px; font-weight: 400; color: #6b6b6b; background: transparent; }
.pill.on { font-weight: 500; color: #1a1a1a; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kcal-card { border: 1px solid #e5e5e5; border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.kcal-head { display: flex; justify-content: space-between; align-items: baseline; }
.kcal-of { font-size: 13px; color: #6b6b6b; }
.kcal-big { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 12px; color: #3a5a8c; }
.kcal-big.over { color: #6b6b6b; }
.card-pad .kcal-big { margin: 8px 0 2px; color: #1a1a1a; }
.bar { height: 8px; border-radius: 5px; background: #e8eaed; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: #3a5a8c; }
.kcal-foot { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; color: #6b6b6b; }
.meal { border: 1px solid #e5e5e5; border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.meal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; }
.meal-head-l { display: flex; align-items: center; gap: 11px; }
.meal-title { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.meal-sub { font-size: 14px; color: #6b6b6b; font-weight: 500; }
.mini-add { width: 32px; height: 32px; border-radius: 9px; background: #eef1f7; display: flex; align-items: center; justify-content: center; }
.meal-item { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-top: 1px solid #e5e5e5; text-align: left; }
.mi-name { font-size: 15px; color: #1a1a1a; }
.mi-kcal { font-size: 14px; color: #6b6b6b; font-weight: 500; }
.meal-empty { width: 100%; padding: 6px 18px 16px; text-align: left; font-size: 14px; color: #6b6b6b; }
.sess { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid #e5e5e5; text-align: left; }
.sess-l { display: flex; align-items: center; gap: 12px; }
.sess-name { font-size: 15px; color: #1a1a1a; }
.sess-meta { font-size: 13px; color: #6b6b6b; margin-top: 1px; }
.sess-dur { font-size: 15px; color: #1a1a1a; font-weight: 500; }

/* ---------- settings ---------- */
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; gap: 12px; }
.set-row.rb { border-top: 1px solid #e5e5e5; }
.set-l { font-size: 15px; color: #6b6b6b; }
.set-sub { font-size: 12px; color: #a0a0a0; margin-top: 1px; }
.set-input { font-size: 15px; font-weight: 500; text-align: right; }
.set-stepper { display: flex; align-items: center; gap: 14px; }
.set-val { font-size: 15px; font-weight: 500; text-align: center; }
.seg-mini { display: flex; gap: 6px; }
.seg-mini .seg { padding: 8px 12px; }
.units-note { font-size: 13px; color: #6b6b6b; line-height: 1.45; margin-top: 14px; }
.data-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; }
.data-row.rb { border-top: 1px solid #e5e5e5; }
.data-body { flex: 1; }
.data-t { font-size: 15px; font-weight: 500; }
.data-s { font-size: 13px; color: #6b6b6b; margin-top: 1px; }
.data-note { display: flex; align-items: flex-start; gap: 10px; background: #f4f6f6; border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; font-size: 13px; color: #6b6b6b; line-height: 1.5; }
.data-note span { font-size: 13px; color: #6b6b6b; line-height: 1.5; }
.data-note-icon { flex: none; margin-top: 1px; }
.danger-label { color: #c0392b; }
.danger-card { border: 1px solid #e6bcb5; border-radius: 14px; overflow: hidden; }
.danger-block { padding: 16px 18px; }
.danger-block.rb-danger { border-top: 1px solid #e6bcb5; }
.danger-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.danger-info { flex: 1; }
.danger-desc { font-size: 13px; color: #6b6b6b; margin-top: 2px; line-height: 1.4; }
.danger-out { flex: none; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #c0392b; border: 1px solid #c0392b; background: #fff; }
.danger-solid { flex: none; padding: 9px 16px; font-size: 14px; }
.confirm { margin-top: 12px; }
.confirm-t { font-size: 13px; color: #c0392b; line-height: 1.4; margin-bottom: 10px; }
.confirm-row { display: flex; gap: 8px; }
.confirm-row button { flex: 1; padding: 11px; font-size: 14px; }

/* ---------- nav ---------- */
.nav { flex: none; border-top: 1px solid #e5e5e5; background: rgba(251,252,252,.92); backdrop-filter: blur(8px); padding: 8px 12px 10px; }
.nav-row { display: flex; }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: #2a2a2a; }
.nav-btn.on { color: #3a5a8c; }
.nav-label { font-size: 10px; font-weight: 400; letter-spacing: .01em; }
.nav-btn.on .nav-label { font-weight: 500; }

/* ---------- sheets ---------- */
.overlay { position: absolute; inset: 0; background: rgba(15,20,20,.32); z-index: 20; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: #fbfcfc; border-radius: 22px 22px 0 0; max-height: 88%; display: flex; flex-direction: column; }
.grabber-wrap { flex: none; display: flex; justify-content: center; padding: 10px 0 4px; }
.grabber { width: 38px; height: 4px; border-radius: 2px; background: #d6d6d6; }
.sheet-pad { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 24px 28px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.sheet-title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.close-btn { width: 32px; height: 32px; border-radius: 9px; background: #f2f3f4; display: flex; align-items: center; justify-content: center; }

/* weight sheet */
.date-strip { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.date-btn { width: 40px; height: 40px; border-radius: 10px; background: #f2f3f4; display: flex; align-items: center; justify-content: center; color: #6b6b6b; }
.date-btn.sm { width: 34px; height: 34px; border-radius: 9px; }
.nextday { color: #6b6b6b; background: #f2f3f4; }
.nextday.off { color: #cfcfcf; background: #f7f7f7; }
.date-cap { font-size: 12px; color: #6b6b6b; font-weight: 500; }
.date-val { font-size: 15px; font-weight: 500; margin-top: 1px; }
.big-stepper { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 30px 0 34px; }
.round-btn { width: 52px; height: 52px; border-radius: 26px; border: 1px solid #e5e5e5; display: flex; align-items: center; justify-content: center; }
.round-btn.sm { width: 44px; height: 44px; border-radius: 22px; }
.big-val { font-size: 40px; font-weight: 600; letter-spacing: -.03em; min-width: 150px; text-align: center; }

/* measure sheet — two-field setup (target + current) */
.mfield { border: 1px solid #e5e5e5; border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mfield.on { border-color: #3a5a8c; box-shadow: 0 0 0 1px #3a5a8c; }
.mfield-l { font-size: 14px; font-weight: 500; color: #6b6b6b; }
.mfield-v { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #1a1a1a; }
.mfield-v.empty { color: #c2c6c4; }
.mfield-u { font-size: 15px; font-weight: 500; color: #6b6b6b; }
.m-target-line { text-align: center; font-size: 13px; color: #6b6b6b; margin: 2px 0 14px; }
.m-edit-target { font-size: 13px; font-weight: 500; color: #3a5a8c; }
.measure-cap-edit { text-align: center; margin-top: 8px; }

/* measure sheet */
.sheet-head + .chip-scroll-row { margin-top: -8px; }
.chip-scroll-row { display: flex; gap: 7px; overflow-x: auto; margin: 0 -24px 16px; padding: 0 24px; }
.chip.chip-scroll { flex: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; }
.m-big { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 14px 0 18px; }
.m-big-num { font-size: 44px; font-weight: 600; letter-spacing: -.03em; color: #1a1a1a; }
.m-big-num.empty { color: #c2c6c4; }
.m-big-unit { font-size: 20px; font-weight: 500; color: #6b6b6b; }
.m-date { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.m-date-lbl { font-size: 14px; font-weight: 500; min-width: 100px; text-align: center; }
.keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.key { height: 52px; border-radius: 11px; background: #f2f3f4; font-size: 22px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.key.del { background: #f7f7f7; }

/* food sheet */
.food-sheet { display: flex; flex-direction: column; min-height: 0; padding: 8px 0 0; }
.food-top { padding: 0 24px; }
.food-top .sheet-head { margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 10px; background: #f2f3f4; border-radius: 11px; padding: 12px 14px; margin-bottom: 10px; }
.search svg { flex: none; }
.search-input { font-size: 15px; color: #1a1a1a; flex: 1; }
.scan-btn { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid #e5e5e5; flex: none; }
.scan-btn span { font-size: 13px; font-weight: 500; color: #3a5a8c; }
.hint { display: flex; align-items: center; gap: 9px; background: #eef1f7; border-radius: 10px; padding: 11px 14px; margin-bottom: 10px; }
.hint svg { flex: none; }
.hint span { font-size: 13px; color: #29426b; }
.manual-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #e5e5e5; border-radius: 11px; margin-bottom: 10px; text-align: left; }
.mt-l { display: flex; align-items: center; gap: 10px; }
.mt-l span { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.manual-box { border: 1px solid #e5e5e5; border-radius: 11px; padding: 14px; margin-bottom: 12px; }
.mb-lbl { font-size: 12px; font-weight: 500; color: #6b6b6b; margin-bottom: 6px; }
.mb-inp { border: 1px solid #e5e5e5; border-radius: 9px; padding: 11px 13px; margin-bottom: 12px; }
.mb-inp .inp { font-size: 15px; }
.mb-kcal { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mb-kcal .inp { font-weight: 500; }
.mb-unit { font-size: 14px; color: #6b6b6b; flex: none; }
.mb-add { width: 100%; height: 46px; border-radius: 10px; font-size: 15px; }
.food-list-label { margin-bottom: 2px; }
.food-list { overflow-y: auto; padding: 0 24px 26px; max-height: 300px; }
.food-item { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid #e5e5e5; text-align: left; }
.fi-name { font-size: 15px; color: #1a1a1a; }
.fi-portion { font-size: 13px; color: #6b6b6b; margin-top: 1px; }
.fi-r { display: flex; align-items: center; gap: 12px; }
.fi-kcal { font-size: 14px; color: #6b6b6b; font-weight: 500; }
.fi-add { width: 28px; height: 28px; border-radius: 8px; background: #eef1f7; display: flex; align-items: center; justify-content: center; }

/* ---------- splash ---------- */
.splash {
  position: absolute; inset: 0; z-index: 40;
  background: #0a1a4a url('splash.avif') center top / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s cubic-bezier(.7,0,.2,1);
  will-change: transform;
}
.splash::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,14,30,.08) 0%, rgba(6,14,30,0) 30%, rgba(6,14,30,.18) 50%, rgba(6,14,30,.06) 70%, rgba(6,14,30,.32) 100%);
}
.splash.out { transform: translateX(-100%); }
.splash-copy { position: relative; z-index: 1; text-align: center; padding: 0 26px; }
.splash-mark {
  color: #fff;
  font-size: 60px; font-weight: 600; letter-spacing: -.03em; line-height: 1.0;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.splash-tag {
  color: rgba(255,255,255,.9);
  font-size: 16px; font-weight: 400; letter-spacing: .01em; line-height: 1.4; margin-top: 24px;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
@media (prefers-reduced-motion: reduce) {
  .splash { transition: opacity .4s ease; }
  .splash.out { transform: none; opacity: 0; }
}

/* train sheet */
.dur-box { display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid #e5e5e5; border-radius: 11px; padding: 12px 0; margin-bottom: 20px; }
.dur-val { min-width: 120px; text-align: center; }
.dur-num { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.dur-unit { font-size: 16px; font-weight: 500; color: #6b6b6b; }
.opt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.lbl-inline { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.opt { font-size: 12px; color: #6b6b6b; }
.note-box { border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px 14px; margin-bottom: 22px; }
.note-box .inp { font-size: 15px; }
.train-actions { display: flex; gap: 8px; }
.train-cancel { flex: 1; height: 52px; border-radius: 12px; font-size: 16px; }
.train-save { flex: 2; height: 52px; font-size: 16px; }
