:root{
  --bg:#06111f;
  --bg2:#081727;
  --panel:#0d1c2f;
  --panel2:#132842;
  --line:#213956;
  --text:#f6fbff;
  --muted:#95a9bf;
  --accent:#45dc86;
  --accent2:#84f2ad;
  --danger:#ff7272;
  --shadow:0 28px 80px rgba(0,0,0,.28);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
*{box-sizing:border-box}
html{background:var(--bg);color:var(--text);scroll-behavior:smooth;touch-action:manipulation}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% -10%,rgba(69,220,134,.16),transparent 35rem),linear-gradient(180deg,#081625 0%,var(--bg) 45%,#050d18 100%);color:var(--text)}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:inherit;text-decoration:none}
.hidden{display:none!important}
.muted{color:var(--muted);line-height:1.55}
.eyebrow{margin:0 0 .45rem;color:var(--accent);text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:900}
.brand-mark{display:grid;place-items:center;width:4rem;height:4rem;border-radius:1.25rem;background:linear-gradient(145deg,var(--accent),var(--accent2));color:#052a18;font-size:2rem;font-weight:950;box-shadow:0 12px 40px rgba(69,220,134,.18)}
.brand-mark.small{width:2.45rem;height:2.45rem;border-radius:.78rem;font-size:1rem}
.brand-mark.tiny{width:1.8rem;height:1.8rem;border-radius:.58rem;font-size:.75rem}
.logo-link{display:flex;align-items:center;gap:.7rem}
.button,.primary,.secondary,.text-button,.date-switcher button,.water-buttons button,.nav,.meal-plus,.icon-button,.mic-button{border:0;border-radius:.85rem;font-weight:850}
.button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:2.9rem;padding:.78rem 1.05rem}
.primary-button,.primary{background:linear-gradient(145deg,var(--accent),#35c976);color:#042b17;box-shadow:0 12px 34px rgba(69,220,134,.18)}
.secondary-button,.secondary{background:#142945;color:var(--text);border:1px solid var(--line)}
.ghost{background:transparent;border:1px solid var(--line)}
.compact-button{min-height:2.45rem;padding:.58rem .85rem}
.small-button{padding:.58rem .78rem}
.full{width:100%}
.text-button{background:transparent;color:var(--accent);padding:.65rem .2rem}
label{display:grid;gap:.42rem;margin-bottom:.9rem;color:#dce8f4;font-size:.9rem;font-weight:750}
label small{font-weight:500;color:var(--muted);line-height:1.4}
input,select{width:100%;border:1px solid var(--line);border-radius:.82rem;background:#071522;color:var(--text);padding:.9rem 1rem;outline:none}
input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(69,220,134,.12)}
select{appearance:none}
.toast{position:fixed;z-index:200;left:50%;top:1rem;transform:translate(-50%,-150%);width:min(calc(100% - 2rem),34rem);padding:.9rem 1rem;border:1px solid var(--line);border-radius:.9rem;background:#142d49;color:var(--text);box-shadow:var(--shadow);transition:transform .22s}
.toast.show{transform:translate(-50%,0)}
.toast.error{background:#5a252d;border-color:#883945}

/* Marketing */
.marketing-nav,.simple-header{width:min(1180px,calc(100% - 2rem));margin:auto;min-height:5.2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.marketing-nav nav{display:flex;align-items:center;gap:1.15rem;color:#c5d4e2;font-size:.9rem}
.hero-section{width:min(1180px,calc(100% - 2rem));margin:4.5rem auto 3rem;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:4rem;align-items:center}
.hero-copy h1{font-size:clamp(3rem,7vw,6.2rem);letter-spacing:-.055em;line-height:.95;margin:.2rem 0 1.35rem;max-width:10ch}
.hero-lede{font-size:1.16rem;line-height:1.65;color:#b5c6d8;max-width:42rem}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin:1.8rem 0}
.trust-row{display:flex;gap:.75rem 1.2rem;flex-wrap:wrap;color:var(--muted);font-size:.82rem}
.trust-row span::before{content:"✓";color:var(--accent);font-weight:900;margin-right:.35rem}
.hero-product{display:grid;place-items:center}
.phone-frame{width:min(100%,25rem);min-height:35rem;padding:1.2rem;border:1px solid #294665;border-radius:2.2rem;background:linear-gradient(180deg,#0d2034,#081522);box-shadow:0 42px 120px rgba(0,0,0,.42),0 0 0 10px rgba(255,255,255,.018)}
.phone-top{display:flex;align-items:center;gap:.65rem;color:#dce8f3;font-weight:800}
.phone-frame h2{font-size:2rem;margin:1.5rem 0 1rem}
.mini-gauges{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.mini-gauges>div{padding:1rem;border:1px solid var(--line);background:#0c1b2d;border-radius:1rem}
.mini-gauges span,.mini-gauges strong{display:block}.mini-gauges span{color:var(--muted);font-size:.8rem}.mini-gauges strong{font-size:1.35rem;margin:.3rem 0}
.mini-gauges i{display:block;width:100%;height:.35rem;background:#06111f;border-radius:1rem;overflow:hidden}
.mini-gauges i::after{content:"";display:block;width:var(--fill);height:100%;background:var(--accent);border-radius:inherit}
.mock-command{display:flex;align-items:center;gap:.8rem;margin:1rem 0;padding:1rem;border-radius:1rem;background:linear-gradient(145deg,rgba(69,220,134,.14),rgba(69,220,134,.05));border:1px solid rgba(69,220,134,.28)}
.mock-command small,.mock-command strong{display:block}.mock-command small{color:var(--accent);margin-bottom:.2rem}.mic-dot{color:var(--accent);font-size:1.2rem}
.mock-meal{display:flex;justify-content:space-between;padding:1rem .2rem;border-bottom:1px solid var(--line)}.mock-meal strong{color:var(--muted)}
.feature-strip{width:min(1180px,calc(100% - 2rem));margin:4rem auto;display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}
.feature-strip article,.how-grid article,.privacy-callout{border:1px solid var(--line);background:rgba(13,28,47,.82);box-shadow:var(--shadow)}
.feature-strip article{padding:1.15rem;border-radius:1rem}.feature-strip strong,.feature-strip span{display:block}.feature-strip span{margin-top:.4rem;color:var(--muted);line-height:1.45;font-size:.9rem}
.how-section{width:min(1180px,calc(100% - 2rem));margin:7rem auto}.how-section>div:first-child{max-width:44rem}.how-section h2,.privacy-callout h2{font-size:clamp(2rem,4vw,3.6rem);letter-spacing:-.04em;line-height:1.05;margin:.35rem 0 1rem}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem;margin-top:2rem}.how-grid article{padding:1.4rem;border-radius:1rem}.how-grid article>span{color:var(--accent);font-weight:900}.how-grid h3{font-size:1.3rem;margin:.8rem 0 .45rem}.how-grid p{color:var(--muted);line-height:1.55}
.privacy-callout{width:min(1180px,calc(100% - 2rem));margin:5rem auto;padding:2rem;border-radius:1.4rem;display:flex;align-items:end;justify-content:space-between;gap:2rem}.privacy-callout>div{max-width:50rem}.privacy-callout p{color:var(--muted);line-height:1.6}
.marketing-footer{width:min(1180px,calc(100% - 2rem));margin:5rem auto 0;padding:2rem 0 3rem;border-top:1px solid var(--line);display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:center;color:var(--muted)}.marketing-footer>div:nth-child(2),.marketing-footer>div:first-child:not(.logo-link){display:flex;gap:1rem;justify-content:flex-end}.marketing-footer small{grid-column:1/-1}

/* Auth */
.auth-page{min-height:100vh}
.signin-shell{width:min(100%,62rem);margin:4rem auto;display:grid;grid-template-columns:1fr minmax(320px,29rem);gap:4rem;align-items:start;padding:0 1rem}
.signin-intro{padding-top:2.5rem}.signin-intro h1{font-size:clamp(2.7rem,6vw,4.5rem);letter-spacing:-.05em;line-height:1;margin:.3rem 0 1rem}.signin-intro p{color:var(--muted);line-height:1.6;font-size:1.05rem}
.auth-card,.premium-card{border:1px solid var(--line);background:rgba(13,28,47,.96);border-radius:1.3rem;padding:1.25rem;box-shadow:var(--shadow)}
.auth-card h2{font-size:1.65rem;margin:.3rem 0 .5rem}
.apple-button{width:100%;min-height:3.15rem;border:1px solid #000;border-radius:.72rem;background:#000;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;gap:.65rem;font-size:1rem;letter-spacing:-.01em}.apple-button:hover{background:#111}.apple-button:disabled{opacity:.58}.apple-mark{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;font-size:1.55rem;line-height:1;font-weight:500;margin-top:-.08rem}
.divider{display:grid;grid-template-columns:1fr auto 1fr;gap:.75rem;align-items:center;color:var(--muted);font-size:.8rem;margin:1rem 0}.divider::before,.divider::after{content:"";height:1px;background:var(--line)}
.inline-actions{display:flex;justify-content:space-between;gap:1rem}
.legal-copy{font-size:.78rem;line-height:1.5;color:var(--muted)}.legal-copy a{color:var(--accent)}
.code-input{text-align:center;font-size:1.4rem;letter-spacing:.25em}
.callback-shell{min-height:100vh;display:grid;place-items:center;align-content:center;text-align:center;gap:.8rem;padding:1rem}.callback-shell h1{margin:.6rem 0 0}

/* App */
.app-shell{min-height:100vh;padding-bottom:6rem}
.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;min-height:4.2rem;padding:.7rem 1rem;border-bottom:1px solid var(--line);background:rgba(6,17,31,.9);backdrop-filter:blur(18px)}
.brand-inline{display:flex;align-items:center;gap:.65rem}.brand-inline strong,.brand-inline small{display:block}.brand-inline small{color:var(--muted);font-size:.72rem;margin-top:.1rem}
.app-main{width:min(100%,58rem);margin:auto;padding:1.15rem 1rem 2rem}
.heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}.heading h1,.heading h2{margin:0}.small-heading{margin-top:1.25rem}
.date-switcher{display:grid;grid-template-columns:3.2rem 1fr 3.2rem;gap:.5rem;margin-bottom:.7rem}.date-switcher button{min-height:2.8rem;background:var(--panel);color:var(--text);border:1px solid var(--line)}
.day-status{min-height:1.3rem;color:var(--muted);font-size:.85rem;margin-bottom:.8rem}
.gauge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.gauge{border:1px solid var(--line);background:rgba(13,28,47,.94);border-radius:1rem;padding:1rem;box-shadow:0 18px 60px rgba(0,0,0,.18)}.gauge.wide{grid-column:1/-1}.gauge span,.gauge small{display:block;color:var(--muted)}.gauge strong{display:block;margin:.3rem 0;font-size:1.5rem}
progress{width:100%;height:.55rem;border:0;margin-top:.65rem;border-radius:1rem;overflow:hidden;background:#07111f}progress::-webkit-progress-bar{background:#07111f}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}
.water-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:.35rem;margin-top:.75rem}.water-buttons button{padding:.6rem .2rem;background:#172d4a;color:var(--text)}
.quick-add-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;margin:1rem 0;padding:1.05rem;border:1px solid rgba(69,220,134,.24);border-radius:1rem;background:linear-gradient(145deg,rgba(69,220,134,.09),rgba(13,28,47,.96))}.quick-add-card strong{font-size:1.05rem}.quick-add-card p:not(.eyebrow){margin:.35rem 0 0;color:var(--muted);line-height:1.45}
.meal-groups{display:grid;gap:.75rem}.meal-card,.list-card,.library-item,.settings-card,.empty-card{border:1px solid var(--line);background:rgba(13,28,47,.94);box-shadow:0 18px 60px rgba(0,0,0,.18)}
.meal-card{border-radius:1rem;padding:.95rem}.meal-head{display:flex;justify-content:space-between;align-items:center}.meal-head>div{display:flex;align-items:baseline;gap:.6rem}.meal-head h2{margin:0;font-size:1rem}.meal-count{color:var(--muted);font-size:.78rem}
.meal-plus{width:2.2rem;height:2.2rem;border-radius:.7rem;background:var(--accent);color:#052914;font-size:1.45rem;line-height:1}
.meal-items{display:grid;gap:.5rem;margin-top:.7rem}.food-row,.water-row{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.72rem;border-radius:.78rem;background:#091827}.food-row strong,.water-row strong{display:block}.food-row small,.water-row small{color:var(--muted)}.empty-row{padding:.7rem 0;color:var(--muted);font-size:.85rem}
.list-card{border-radius:1rem;padding:.7rem}.library-grid{display:grid;gap:.7rem}.library-item,.empty-card,.settings-card{border-radius:1rem;padding:1rem}.library-item h2,.settings-card h2{margin:0 0 .6rem;font-size:1.05rem}.library-meta{color:var(--muted);font-size:.82rem}
.settings-card{margin-bottom:.8rem}.verification-box{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}.legal-links a{display:block;padding:.75rem 0;border-top:1px solid var(--line);color:var(--accent)}
.bottom-nav{position:fixed;z-index:50;left:50%;bottom:max(.55rem,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 1rem),34rem);display:grid;grid-template-columns:repeat(4,1fr);gap:.3rem;padding:.35rem;border:1px solid var(--line);border-radius:1.1rem;background:rgba(9,24,39,.96);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.nav{min-height:3.25rem;background:transparent;color:var(--muted)}.nav.active{background:var(--panel2);color:var(--accent)}

/* Dialogs */
dialog{width:min(calc(100% - 1.2rem),30rem);max-height:calc(100vh - 2rem);overflow:auto;border:1px solid var(--line);border-radius:1.2rem;background:var(--panel);color:var(--text);padding:1rem;box-shadow:var(--shadow)}dialog::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(3px)}
.sheet-dialog{width:min(calc(100% - 1rem),38rem)}.dialog-shell{display:grid;gap:.6rem}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.dialog-head h2{margin:.1rem 0 .4rem}.icon-button{width:2.3rem;height:2.3rem;background:#142945;color:var(--text);font-size:1.4rem}
.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.add-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.add-choice{min-height:8.5rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:.3rem;text-align:left;padding:1rem;border:1px solid var(--line);border-radius:1rem;background:#0a192a;color:var(--text)}.add-choice>span{color:var(--accent);font-size:1.4rem;margin-bottom:auto}.add-choice small{color:var(--muted)}
.quick-library-list{display:grid;gap:.45rem;max-height:22rem;overflow:auto}.quick-food-row{display:flex;justify-content:space-between;gap:1rem;width:100%;padding:.8rem;border:1px solid var(--line);border-radius:.75rem;background:#0a192a;color:var(--text);text-align:left}.quick-food-row small{color:var(--muted)}
.voice-input-row{display:grid;grid-template-columns:1fr auto;gap:.45rem}.mic-button{width:3rem;background:#17324e;color:var(--text);font-size:1.15rem}.mic-button.listening{background:var(--accent);color:#052914;animation:pulse 1s infinite}
.status-copy{min-height:1.2rem;margin:.35rem 0;color:var(--muted);font-size:.86rem}.analysis-meta{color:var(--accent);font-size:.78rem}
.review-food{padding:1rem;margin:.6rem 0;border:1px solid var(--line);border-radius:1rem;background:#091827}.review-food-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.review-food-head span{color:var(--muted);font-size:.78rem}
.form-grid{display:grid;gap:.6rem}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.four{grid-template-columns:repeat(2,1fr)}
.check-row{display:flex;align-items:center;gap:.65rem}.check-row input{width:auto;margin:0}
@keyframes pulse{50%{transform:scale(1.04);box-shadow:0 0 0 8px rgba(69,220,134,.08)}}

/* Legal */
.legal-page{min-height:100vh}.legal-shell{width:min(760px,calc(100% - 2rem));margin:4rem auto}.legal-shell h1{font-size:clamp(2.6rem,6vw,4.4rem);letter-spacing:-.05em;margin:.2rem 0 1rem}.legal-lede{font-size:1.08rem;color:#b8c9da;line-height:1.65}.legal-shell section{padding:1.3rem 0;border-top:1px solid var(--line)}.legal-shell h2{font-size:1.25rem;margin:0 0 .5rem}.legal-shell section p{color:var(--muted);line-height:1.7;margin:0}

@media(min-width:700px){
  .gauge-grid{grid-template-columns:repeat(4,1fr)}
  .gauge.wide{grid-column:1/-1}
  .library-grid{grid-template-columns:repeat(2,1fr)}
  .form-grid.four{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:860px){
  .hero-section{grid-template-columns:1fr;gap:2.5rem;margin-top:2.5rem}
  .hero-copy h1{max-width:12ch}
  .hero-product{justify-items:start}
  .feature-strip{grid-template-columns:1fr 1fr}
  .how-grid{grid-template-columns:1fr}
  .privacy-callout{align-items:flex-start;flex-direction:column}
  .signin-shell{grid-template-columns:1fr;gap:1rem;margin-top:1rem}
  .signin-intro{padding-top:0}
}
@media(max-width:620px){
  .marketing-nav nav>a:not(.compact-button){display:none}
  .hero-section{width:min(100% - 1.4rem,1180px);margin-top:1.7rem}
  .hero-copy h1{font-size:3.25rem}
  .hero-lede{font-size:1rem}
  .hero-actions .button{width:100%}
  .feature-strip{grid-template-columns:1fr;margin-top:2.3rem}
  .phone-frame{min-height:31rem}
  .how-section{margin:4rem auto}
  .marketing-footer{grid-template-columns:1fr}
  .marketing-footer>div:nth-child(2),.marketing-footer>div:first-child:not(.logo-link){justify-content:flex-start}
  .quick-add-card{grid-template-columns:1fr}
  .quick-add-card .button{width:100%}
  .water-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}
  .water-buttons button{font-size:.78rem}
  .add-choice-grid{grid-template-columns:1fr 1fr}
  .form-grid.two{grid-template-columns:1fr 1fr}
}
@media(max-width:390px){
  .add-choice-grid{grid-template-columns:1fr}
  .form-grid.two,.form-grid.four{grid-template-columns:1fr}
}

.mini-gauges i.fill-72::after{width:72%}.mini-gauges i.fill-81::after{width:81%}



/* Phase 5E — dedicated voice logging */
.voice-capture-dialog{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:radial-gradient(circle at 50% 28%,rgba(69,220,134,.12),transparent 35%),linear-gradient(180deg,#071522 0%,#06111d 100%)!important;color:var(--text)}
.voice-capture-dialog::backdrop{background:#06111d!important;backdrop-filter:none!important}
.voice-capture-shell{position:relative;min-height:100dvh;display:grid;place-items:center;padding:max(1.25rem,env(safe-area-inset-top)) 1.35rem max(1.5rem,env(safe-area-inset-bottom));text-align:center}
.voice-close-button{position:absolute;z-index:2;top:max(1rem,env(safe-area-inset-top));right:1rem;width:2.8rem;height:2.8rem;border:1px solid rgba(255,255,255,.10);border-radius:50%;background:rgba(19,42,68,.72);color:var(--text);font-size:1.65rem;line-height:1}
.voice-stage{width:min(100%,29rem);display:flex;flex-direction:column;align-items:center;gap:1rem}.voice-stage h2{font-size:clamp(2rem,8vw,3rem);letter-spacing:-.045em;line-height:1.04;margin:.1rem 0}.voice-stage-copy{max-width:24rem;margin:0;color:#a9bdd0;font-size:1rem;line-height:1.55}
.voice-orb-wrap{display:grid;place-items:center;width:12rem;height:12rem;margin:.25rem 0}.voice-orb{position:relative;width:6.4rem;height:6.4rem;border-radius:50%;background:radial-gradient(circle at 40% 35%,#8cf1b6,#45dc86 55%,#1a9f5b);box-shadow:0 0 0 1.15rem rgba(69,220,134,.09),0 0 0 2.25rem rgba(69,220,134,.045),0 0 4rem rgba(69,220,134,.26);animation:voiceOrb 1.55s ease-in-out infinite;display:flex;align-items:center;justify-content:center;gap:.32rem}.voice-orb span{width:.34rem;border-radius:999px;background:#062516;animation:voiceBar .9s ease-in-out infinite}.voice-orb span:nth-child(1){height:1.25rem}.voice-orb span:nth-child(2){height:2.15rem;animation-delay:.12s}.voice-orb span:nth-child(3){height:1.55rem;animation-delay:.24s}
.voice-live-row{display:flex;align-items:center;gap:.5rem;color:#c6d5e3;font-size:.9rem}.voice-live-dot{width:.6rem;height:.6rem;border-radius:50%;background:var(--accent);box-shadow:0 0 0 .35rem rgba(69,220,134,.10);animation:voiceLive 1.1s ease-in-out infinite}.voice-main-button{width:min(100%,22rem);min-height:3.6rem;margin-top:.5rem;font-size:1.05rem}
.voice-processing-ring{width:7.5rem;height:7.5rem;border-radius:50%;border:.55rem solid rgba(69,220,134,.12);border-top-color:var(--accent);box-shadow:0 0 3rem rgba(69,220,134,.12);animation:voiceSpin .9s linear infinite;margin:1.5rem 0}
.voice-response-mark{width:5.25rem;height:5.25rem;border-radius:50%;display:grid;place-items:center;background:rgba(69,220,134,.13);border:1px solid rgba(69,220,134,.38);color:var(--accent);font-size:2.4rem;font-weight:900;margin:1rem 0}.voice-response-mark.success{background:var(--accent);color:#052914}.voice-response-mark.error{background:rgba(255,101,101,.12);border-color:rgba(255,101,101,.35);color:#ff8c8c}
.voice-meal-grid{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-top:.45rem}.voice-meal-grid button{min-height:3.8rem;border:1px solid var(--line);border-radius:1rem;background:#0d2238;color:var(--text);font-weight:850;font-size:1rem}.voice-meal-grid button:active{background:var(--accent);color:#052914}
@keyframes voiceOrb{50%{transform:scale(1.08);box-shadow:0 0 0 1.45rem rgba(69,220,134,.11),0 0 0 2.75rem rgba(69,220,134,.045),0 0 5rem rgba(69,220,134,.34)}}
@keyframes voiceBar{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1.15)}}
@keyframes voiceLive{50%{opacity:.4;transform:scale(.75)}}
@keyframes voiceSpin{to{transform:rotate(360deg)}}


/* Phase 5F — customer-first diary actions */
.food-swipe{
  position:relative;
  overflow:hidden;
  border-radius:.78rem;
  background:#642631;
}
.food-swipe .food-row{
  position:relative;
  touch-action:pan-y;
  z-index:2;
  margin:0;
  background:#091827;
  will-change:transform;
}
.food-delete-action{
  position:absolute;
  z-index:1;
  inset:0 0 0 auto;
  width:88px;
  border:0;
  background:#8b2f3c;
  color:#fff;
  font-weight:900;
  font-size:.82rem;
  display:grid;
  place-items:center;
}
.food-swipe.open .food-row{
  transform:translateX(-88px);
}
.library-quantity-input-row{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:.75rem;
}
.library-quantity-input-row span{
  color:var(--muted);
  font-weight:800;
  min-width:4rem;
}
.library-quantity-presets{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.55rem;
  margin:-.25rem 0 .8rem;
}
.library-quantity-presets button{
  min-height:2.65rem;
  border:1px solid var(--line);
  border-radius:.78rem;
  background:#112846;
  color:var(--text);
  font-weight:850;
}
.compact-sheet .dialog-shell{
  width:min(100%,32rem);
}


/* Phase 5G: editable diary rows + one-tap water refills */
.editable-food-row { cursor: pointer; }
.editable-food-row:active { background: rgba(255,255,255,.035); }
.edit-help { margin-top: -2px; }
.danger-button {
  margin-top: 12px;
  background: rgba(255, 107, 112, .10);
  border: 1px solid rgba(255, 107, 112, .38);
  color: #ff9296;
}
.danger-button:hover { background: rgba(255, 107, 112, .16); }
.water-vessel-card {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 16, 30, .46);
}
.water-vessel-card div { display: grid; gap: 3px; min-width: 0; }
.water-vessel-card small { color: var(--muted); font-size: .78rem; }
.water-vessel-card strong { color: var(--text); font-size: .95rem; line-height: 1.25; }
.water-vessel-card button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--green);
  border-radius: 13px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 800;
}
.water-refill-button {
  width: 100%;
  margin-top: 10px;
  min-height: 50px;
  background: var(--green);
  color: #062119;
  font-weight: 900;
}
.water-refill-button:disabled { opacity: .55; }
.water-vessel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.water-vessel-grid button {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 5px;
}
.water-vessel-grid button strong { font-size: .98rem; }
.water-vessel-grid button small { color: var(--muted); line-height: 1.25; }
.water-custom-vessel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.water-custom-vessel h3 { margin: 0 0 12px; }
@media (max-width: 520px) {
  .water-vessel-grid { grid-template-columns: 1fr 1fr; }
  .water-vessel-grid button { min-height: 82px; padding: 12px; }
}
