.minical { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.minical span { aspect-ratio: 1; border-radius: 6px; background: var(--mist); font-size: 10px; display: grid; place-items: center; color: var(--text-3); font-weight: 600; position: relative; }
.minical span.f { background: rgba(201,127,95,0.18); color: #8A4B31; }
.minical span.w { background: rgba(232,203,164,0.5); color: #6E4E2B; }
.minical span.t { outline: 2px solid var(--deep-water); outline-offset: -2px; color: var(--deep-water); }
.bbt { width: 100%; height: 56px; }
.bbt path { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; }
.bbt .base { stroke: var(--seaglass); stroke-dasharray: 2 5; stroke-width: 1.5; }
.phaselegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--text-2); }
.phaselegend span { display: inline-flex; align-items: center; gap: 6px; }
.phaselegend i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }

/* ── Nutrition ── */
.card--meal { width: 100%; max-width: 440px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.meal__top { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; }
.photo { position: relative; width: 140px; height: 140px; border-radius: 16px; overflow: hidden; background: #F3EEE6; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo::after { content: ''; position: absolute; inset: 8px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.7); box-shadow: inset 0 0 0 1px rgba(33,68,77,0.06); pointer-events: none; }
.scanline { position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 1; background: linear-gradient(90deg, transparent, var(--c-nutrition), transparent); box-shadow: 0 0 12px var(--c-nutrition); animation: scan 3.2s var(--ease) infinite; pointer-events: none; }
@keyframes scan { 0% { top: 4%; opacity: 0; } 10% { opacity: 1; } 45% { top: 94%; opacity: 1; } 55% { opacity: 0; } 100% { top: 4%; opacity: 0; } }
.pipeline { display: flex; flex-direction: column; gap: 8px; }
.pstep { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.pstep b { color: var(--deep-water); font-weight: 600; }
.pstep__n { width: 20px; height: 20px; border-radius: 99px; background: rgba(51,121,95,0.12); color: var(--c-nutrition); display: grid; place-items: center; font-family: var(--rounded); font-weight: 700; font-size: 11px; flex-shrink: 0; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.labels .chip { font-size: 12px; padding: 5px 10px; opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.is-in .labels .chip { opacity: 1; transform: none; }
.is-in .labels .chip:nth-child(2) { transition-delay: .15s; }
.is-in .labels .chip:nth-child(3) { transition-delay: .3s; }
.is-in .labels .chip:nth-child(4) { transition-delay: .45s; }
.chip--ok { background: rgba(51,121,95,0.12); color: var(--c-nutrition); }
.macros { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.macros .kcal { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; }
.macros .kcal .num { font-size: 26px; }
.macros .kcal span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.mrow { display: contents; }
.mrow__l { font-size: 12px; font-weight: 600; color: var(--text-2); width: 64px; }
.mbar { height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.mbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--mc); transition: width 1.1s var(--ease); }
.is-in .mbar i { width: var(--w); }
.meal__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.barcode { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.barcode svg { stroke: var(--deep-water); }

.bristol { display: flex; gap: 6px; width: 100%; }
.bristol span { flex: 1; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--rounded); font-weight: 700; font-size: 14px; transition: transform .35s var(--ease), box-shadow .35s; }
.bristol--on { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(62,110,121,0.28); }
.bristol__lbls { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.card--gut { width: 100%; max-width: 460px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.gut__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gut__chart { width: 100%; height: 88px; margin-top: 2px; }
.gut__bar { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); transition: transform .7s var(--ease); }
.is-in .gut__bar { transform: scaleY(1); }
.is-in .gut__bar:nth-child(1) { transition-delay: .05s; }
.is-in .gut__bar:nth-child(2) { transition-delay: .1s; }
.is-in .gut__bar:nth-child(3) { transition-delay: .15s; }
.is-in .gut__bar:nth-child(4) { transition-delay: .2s; }
.is-in .gut__bar:nth-child(5) { transition-delay: .25s; }
.is-in .gut__bar:nth-child(6) { transition-delay: .3s; }
.is-in .gut__bar:nth-child(7) { transition-delay: .35s; }
.gutrow { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 11px 13px; border-radius: 12px; background: var(--paper); border: 1px solid var(--border); }
.gutrow b { font-weight: 600; }
.gutrow .pill { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }

/* ── Hydration ── */
.card--water { width: 100%; max-width: 420px; padding: 22px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; touch-action: none; }
.glass { position: relative; width: 150px; height: 210px; border-radius: 26px 26px 40px 40px; background: var(--mist); border: 1.5px solid var(--border); overflow: hidden; }
.liquid { position: absolute; left: -30%; right: -30%; bottom: 0; height: var(--level, 62%); transform-origin: 50% 100%; transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease); will-change: transform; }
.liquid__body { position: absolute; inset: 22px 0 0 0; background: linear-gradient(180deg, #6FA5C7, var(--c-water)); }
.liquid__wave { position: absolute; top: 0; left: 0; width: 200%; height: 24px; animation: wave 3.4s linear infinite; }
.liquid__wave path { fill: #6FA5C7; }
.liquid__wave--2 { animation-duration: 5.2s; animation-direction: reverse; opacity: .55; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.glass__hint { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; pointer-events: none; }
.water__side { display: flex; flex-direction: column; gap: 12px; }
.water__big { display: flex; align-items: baseline; gap: 6px; }
.water__big .num { font-size: 36px; color: var(--c-water); }
.water__big span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.water__adds { display: flex; gap: 8px; }
.water__adds button { flex: 1; border: 1px solid var(--border); background: var(--paper); border-radius: 12px; padding: 10px 6px; font: inherit; font-family: var(--rounded); font-weight: 700; font-size: 13px; color: var(--deep-water); cursor: pointer; transition: background .15s, transform .15s; }
.water__adds button:hover { background: var(--mist); }
.water__adds button:active { transform: scale(.96); }

/* ── Habits ── */
.habits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 760px; }
.hcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hcard__head { display: flex; align-items: center; justify-content: space-between; }
.hcard__name { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.hcard__name i { width: 12px; height: 12px; border-radius: 4px; background: var(--h); display: inline-block; }
.hkind { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hcount { display: flex; align-items: center; gap: 14px; }
.hcount .ring { width: 56px; height: 56px; }
.hcount .ring__num { font-size: 13px; }
.hcount__t { display: flex; flex-direction: column; gap: 2px; }
.hcount__t .num { font-size: 22px; }
.hcount__t span { font-size: 12px; color: var(--text-2); }
.times { display: flex; gap: 8px; }
.time { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: var(--mist); font-family: var(--rounded); font-weight: 700; font-size: 13px; }
.time i { width: 18px; height: 18px; border-radius: 99px; border: 2px solid var(--h); display: grid; place-items: center; }
.time.done i { background: var(--h); }
.time.done i::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.contrib { display: grid; grid-template-rows: repeat(7, 9px); grid-auto-flow: column; grid-auto-columns: 9px; gap: 3px; }
.contrib div { border-radius: 2px; background: var(--h); opacity: var(--o, .12); }
.hpalette { display: flex; gap: 6px; }
.hpalette i { width: 16px; height: 16px; border-radius: 99px; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }

/* ── Chat ── */
.chat-sec .wrap { gap: 48px; }
.chat-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cpillar {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent, var(--steady-teal)) 6%, var(--paper));
  border: 1px solid var(--border);
}
.cpillar__ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent, var(--steady-teal));
  background: color-mix(in srgb, var(--accent, var(--steady-teal)) 12%, transparent);
}
.cpillar__t { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.cpillar__p { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0; font-weight: 400; }

.chat-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-prompts .chip {
  cursor: pointer; border: 1.5px solid var(--border); background: transparent;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 8px 14px; border-radius: 999px; transition: background .18s, color .18s, border-color .18s;
}
.chat-prompts .chip:hover { border-color: var(--steady-teal); color: var(--deep-water); }
.chat-prompts .chip.is-on {
  background: var(--deep-water); color: var(--paper); border-color: var(--deep-water);
}

.card--chat { width: 100%; max-width: 460px; padding: 0; display: flex; flex-direction: column; gap: 0; overflow: hidden; }
.chat__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--steady-teal) 6%, var(--paper));
}
.chat__bar-dot {
  width: 8px; height: 8px; border-radius: 99px; background: var(--steady-teal);
  box-shadow: 0 0 0 3px rgba(62,110,121,0.18);
  animation: chatPulse 2.4s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62,110,121,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(62,110,121,0.08); }
}
.chat__bar-t { font-size: 13px; font-weight: 700; flex: 1; }
.chat__bar-priv {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--steady-teal);
  background: rgba(62,110,121,0.1); padding: 4px 9px; border-radius: 999px;
}
.card--chat .attach,
.card--chat .bubble,
.card--chat .rcard,
.card--chat .chat__foot { margin-left: 18px; margin-right: 18px; }
.card--chat .attach { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.card--chat .bubble { margin-top: 12px; }
.card--chat .rcard { margin-top: 10px; margin-bottom: 4px; }
.card--chat .chat__foot { margin-top: 12px; margin-bottom: 16px; }
.attach { display: flex; gap: 6px; flex-wrap: wrap; }
.attach .chip { font-size: 12px; padding: 5px 10px; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.bubble--me { align-self: flex-end; background: var(--deep-water); color: var(--paper); border-bottom-right-radius: 6px; }
.card--chat .bubble--me { margin-left: auto; }
.rcard {
  background: var(--mist); border: 1px solid var(--border); border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.rcard.is-swap, .bubble.is-swap { opacity: 0; transform: translateY(8px); }
.rcard__t { font-size: 14px; font-weight: 700; }
.rcard__p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0; font-weight: 400; }
.mini { width: 100%; height: 60px; }
.mini path { fill: none; stroke: var(--steady-teal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.8s var(--ease); }
.is-in .mini path, .card--chat.is-replay .mini path { stroke-dashoffset: 0; }
.mini .area { fill: rgba(62,110,121,0.10); stroke: none; }
.carousel { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.carousel::-webkit-scrollbar { display: none; }
.rec { flex: 0 0 150px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.rec__t { font-size: 13px; font-weight: 700; }
.rec__p { font-size: 12px; color: var(--text-2); line-height: 1.4; margin: 0; }
.chat__foot { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }

/* ── Watch ── */
/* ── Watch peeks (smattered through earlier sections) ── */
.watch-peek {
  display: block; flex-shrink: 0; width: 108px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.28));
  transition: transform .45s var(--ease);
}
