/* Demo Home — Water tracker (2026-11-16). Matches vitals-v2 C2 language. */
.wx-card { margin-bottom: 14px; border-color: rgba(114,217,248,0.35); background: radial-gradient(120% 120% at 0% 0%, rgba(27,127,209,0.18), rgba(11,16,24,0.85) 60%); }
.wx-top { display: flex; gap: 18px; align-items: center; }
.wx-bottle-wrap { position: relative; flex: 0 0 auto; }
.wx-bottle { width: 92px; height: auto; display: block; filter: drop-shadow(0 0 16px rgba(114,217,248,0.25)); }
.wx-bottle.big { width: 110px; }
.wx-water { transition: transform 1.1s cubic-bezier(.2,.9,.25,1.12); }
.wx-wave { animation: wxWave 3.2s linear infinite; }
.wx-wave.w2 { animation-duration: 4.6s; animation-direction: reverse; }
@keyframes wxWave { from { transform: translateX(0); } to { transform: translateX(110px); } }
.wx-bub { fill: rgba(255,255,255,0.55); animation: wxBub 3.4s ease-in infinite; }
.wx-bub.b2 { animation-delay: 1.1s; } .wx-bub.b3 { animation-delay: 2.2s; }
@keyframes wxBub { 0% { transform: translateY(70px); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-10px); opacity: 0; } }
.wx-glass { fill: none; stroke: rgba(237,244,250,0.55); stroke-width: 2.5; }
.wx-cap { fill: #72d9f8; opacity: .85; }
.wx-shine { stroke: rgba(255,255,255,0.22); stroke-width: 4; stroke-linecap: round; }
.wx-tick { stroke: rgba(237,244,250,0.35); stroke-width: 1.5; }
.wx-pct { position: absolute; left: 0; right: 0; top: 52%; text-align: center; font-family: "Oswald", sans-serif; font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); pointer-events: none; }
.wx-main { flex: 1; min-width: 0; }
.wx-oz b { font-family: "Oswald", sans-serif; font-size: 40px; font-weight: 700; color: #8fe9ff; line-height: 1; }
.wx-oz small { font-size: 15px; color: var(--muted, #8ea3b5); font-weight: 650; }
.wx-quip { margin: 4px 0 10px; font-size: 13px; color: var(--text, #edf4fa); }
.wx-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wx-add button, .wx-g-add button {
  appearance: none; font: inherit; cursor: pointer; min-height: 52px; border-radius: 14px; color: var(--text, #edf4fa);
  background: linear-gradient(180deg, rgba(114,217,248,0.16), rgba(27,127,209,0.10)); border: 1px solid rgba(114,217,248,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; line-height: 1.1;
  transition: transform .12s ease, box-shadow .2s ease;
}
.wx-add button span { font-size: 17px; }
.wx-add button em, .wx-g-add button em { font-style: normal; font-size: 10px; color: var(--muted, #8ea3b5); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wx-add button:hover, .wx-g-add button:hover { box-shadow: 0 0 14px rgba(114,217,248,0.35); }
.wx-add button:active, .wx-g-add button:active { transform: scale(.95); }
.wx-add button:disabled, .wx-g-add button:disabled { opacity: .5; }
.wx-custom { display: flex; gap: 8px; margin-top: 8px; }
.wx-custom input { flex: 1; min-width: 0; min-height: 42px; border-radius: 12px; border: 1px solid rgba(114,217,248,0.4); background: rgba(5,9,14,0.6); color: var(--text, #edf4fa); padding: 0 12px; font: inherit; font-size: 16px; }
.wx-go, .wx-x, .wx-undo, .wx-step { appearance: none; font: inherit; cursor: pointer; min-height: 40px; border-radius: 12px; padding: 0 14px; font-weight: 800; font-size: 12.5px; }
.wx-go { background: #72d9f8; color: #05090e; border: 0; }
.wx-x, .wx-step { background: rgba(11,16,24,0.6); color: var(--muted, #8ea3b5); border: 1px solid rgba(114,217,248,0.25); }
.wx-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; min-height: 4px; }
.wx-undo { background: rgba(224,180,74,0.10); color: #f2b84b; border: 1px solid rgba(224,180,74,0.45); }
.wx-pend { font-size: 11.5px; color: #f2b84b; }
.wx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.wx-chip { font-size: 12px; color: var(--muted, #8ea3b5); padding: 6px 10px; border-radius: 999px; background: rgba(11,16,24,0.6); border: 1px solid rgba(114,217,248,0.18); font-weight: 650; }
.wx-chip b { color: var(--text, #edf4fa); }
.wx-chip.fire { border-color: rgba(242,140,60,0.5); color: #f6b37a; }
.wx-trend-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.wx-trend-head .vx-cap { margin: 0; }
.wx-trend { width: 100%; height: auto; display: block; margin-top: 6px; }
.wx-trend rect { fill: rgba(114,217,248,0.18); }
.wx-trend rect.part { fill: rgba(114,217,248,0.55); }
.wx-trend rect.hit { fill: #39b8f0; filter: drop-shadow(0 0 4px rgba(114,217,248,.5)); }
.wx-trend text { fill: var(--muted, #8ea3b5); font-size: 10px; font-weight: 700; }
.wx-trend .base { stroke: rgba(237,244,250,.15); }
.wx-trend .goal { stroke: rgba(160,230,140,.75); stroke-dasharray: 5 5; stroke-width: 1.5; }
.wx-trend .goal-l { fill: rgba(160,230,140,.9); }
.wx-ents { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wx-ents li { display: flex; gap: 6px; align-items: baseline; font-size: 12px; padding: 5px 10px; border-radius: 10px; background: rgba(11,16,24,0.55); border: 1px solid rgba(114,217,248,0.12); color: var(--muted, #8ea3b5); }
.wx-ents li b { color: #8fe9ff; } .wx-ents li em { font-style: normal; font-size: 10.5px; }
.wx-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted, #8ea3b5); }
.wx-foot b { color: var(--text, #edf4fa); }
.wx-foot em { font-style: normal; font-size: 11px; flex-basis: 100%; }
.wx-step { min-width: 40px; padding: 0; }
/* Health Today glance */
.wx-glance { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; border-color: rgba(114,217,248,0.35); }
.wx-glance .wx-bottle { width: 46px; }
.wx-g-main { flex: 1; min-width: 0; }
.wx-glance .wx-oz b { font-size: 28px; }
.wx-gbar { height: 8px; border-radius: 99px; background: rgba(114,217,248,0.12); margin: 6px 0 4px; overflow: hidden; }
.wx-gbar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1b7fd1, #8fe9ff); transition: width 1s ease; }
.wx-g-add { display: flex; gap: 8px; }
.wx-g-add button { min-width: 62px; min-height: 48px; }
@media (max-width: 640px) {
  .wx-top { gap: 12px; align-items: flex-start; }
  .wx-bottle.big { width: 78px; }
  .wx-oz b { font-size: 32px; }
  .wx-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-glance { flex-wrap: wrap; }
  .wx-g-add { width: 100%; } .wx-g-add button { flex: 1; }
}
