/* livufit mobile: calm surfaces, clear hierarchy, comfortable touch targets. */
:root{--mobile-ink:#1e3d42;--mobile-muted:#6e8d92;--mobile-plum:#2a555c;--mobile-mint:#b9e3d2}
html{scroll-behavior:smooth}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #52a991;outline-offset:4px}button:active{transform:translateY(1px)}
.native-settings{background:linear-gradient(125deg,#234247,#3a6970)!important;color:#fff}.native-settings p,.native-settings .eyebrow{color:#c9e1e5}.native-settings .primary{background:#b9e3d2;color:#233c33}.native-app body{overscroll-behavior-y:none}.native-app #install-app{display:none}
@media(max-width:720px){
 body{background:#f4f9fa;color:var(--mobile-ink);font-size:15px;line-height:1.55}
 .topbar{height:auto;min-height:74px;padding:16px 22px;background:transparent;border:0;gap:12px}
 .brand{font-size:27px;gap:10px}.brand-icon{width:41px;height:41px;font-size:29px;border-radius:15px;box-shadow:0 5px 12px #23424712}
 #cloud-status{font-size:10px;line-height:1.35;padding:9px 12px;max-width:135px;min-height:32px;border:1px solid #e0edef;background:#ffffffa8;color:#628a90}
 main{padding:0 19px calc(110px + env(safe-area-inset-bottom))!important;max-width:640px;margin:auto}
 .page-heading{padding:17px 3px 21px!important;margin:0!important}.page-heading h1{font-size:clamp(27px,7.6vw,36px)!important;line-height:1.15;letter-spacing:-1.2px;margin:8px 0 10px}.page-heading .eyebrow{font-size:10px;letter-spacing:2px;margin:0;color:#77a4ab}.page-heading .intro{font-size:13px;line-height:1.55;margin:0;color:var(--mobile-muted);max-width:34ch}
 .tabs{position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box;z-index:30;display:grid!important;grid-template-columns:repeat(5,1fr)!important;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;gap:2px!important;border:0!important;border-top:1px solid #e2ebeb!important;border-radius:24px 24px 0 0!important;background:#fff!important;backdrop-filter:none;box-shadow:0 -5px 22px #153d450b!important}
 .tabs button{min-width:0!important;min-height:57px!important;padding:7px 2px!important;gap:5px!important;border-radius:19px!important;font-size:10px!important;flex-direction:column!important;font-weight:600}.tabs svg{width:21px!important;height:21px!important}.tabs [aria-current=page]{background:#2a555c!important;color:#fff!important;box-shadow:0 4px 9px #23424720}
 .card{border:1px solid #e4eff0;border-radius:24px!important;box-shadow:0 5px 22px #23424703;padding:22px!important}
 h2{font-size:23px;line-height:1.22;letter-spacing:-.65px}h3{letter-spacing:-.4px}.small{font-size:12px;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:1.6px}
 .primary,.secondary{min-height:46px;padding:12px 16px;border-radius:15px;font-size:13px;box-shadow:none}.primary{background:var(--mobile-plum)}.ghost{min-height:42px;font-size:12px}input,select{min-height:48px!important;font-size:16px!important;border-radius:13px!important;background:#fafcfc}label{font-size:12px}
 .dashboard-day{gap:12px!important;margin:0 0 22px!important;grid-template-columns:1fr!important}.dashboard-energy{background:linear-gradient(130deg,#2a555c,#1f3e43)!important;color:#fff;border:0!important;padding:24px!important}.dashboard-energy .eyebrow,.dashboard-energy .small,.dashboard-energy .ghost,.dashboard-energy .diary-meter-label{color:#c6e1e6!important}.dashboard-energy h2{margin:18px 0 22px;font-size:22px}.dashboard-energy .diary-meter-label strong{color:#fff;font-size:38px}.dashboard-energy .diary-meter-label small{font-size:12px}.dashboard-energy .diary-track{background:#ffffff1f}.dashboard-energy .diary-track span{background:#a8e3ec!important}.dashboard-energy .dashboard-remaining{color:#d8f0f3;font-size:13px;margin:16px 0 8px}.dashboard-energy .dashboard-remaining strong{font-size:23px;color:#fff}.dashboard-energy .primary{background:#d3eddf;color:#253d31}.dashboard-energy .button-row{gap:5px;margin-top:15px;flex-wrap:wrap}.dashboard-energy .button-row>.primary{flex:1}
 .dashboard-water{background:#e9f3ee!important;border-color:#d9e8df!important}.dashboard-water h2{font-size:19px;margin:8px 0 12px}.dashboard-water .diary-meter-label strong{font-size:28px}.dashboard-water .dashboard-remaining{font-size:12px;margin:12px 0}.dashboard-water .dashboard-remaining strong{font-size:22px}.dashboard-water .primary{background:#416e5b}.dashboard-water .button-row{margin-top:12px}.dashboard-water .eyebrow{color:#608572}.dashboard-water .diary-track{height:6px}.dashboard-water .diary-meter .small{margin:6px 0}
 .weekly-chart-card{border-radius:22px!important}.view>.section-line{margin-top:24px}.section-line{gap:10px}.section-line h2{font-size:22px}.button-row{gap:8px}.task-card{border-radius:22px!important}
 dialog[open]{border-radius:27px!important;border:1px solid #deeef0!important;padding:25px!important;box-shadow:0 30px 100px #0e262a40}dialog::backdrop{background:#142c3080;backdrop-filter:blur(5px)}.diary-dialog{width:calc(100% - 20px)!important;max-height:88dvh!important;margin:auto auto 10px!important}.diary-dialog h2{font-size:25px}.diary-dialog-top{margin-bottom:15px}
 .auth-screen{padding:30px 22px!important;min-height:calc(100dvh - 90px)}.auth-card{padding:30px 25px!important;border-radius:30px!important;box-shadow:0 20px 60px #2a555c0c!important}.auth-card h1{font-size:35px;line-height:1.12;letter-spacing:-1.3px}.auth-mark{background:#2a555c!important;color:#b9e3d2!important}.auth-intro{font-size:14px}.auth-card .primary{width:100%;margin-top:8px;background:#2a555c}.auth-footer{font-size:12px;letter-spacing:.4px}
 .food-card,.snack-card{border-radius:23px!important;overflow:hidden}.diary-day-summary{padding:24px!important}.form-grid{gap:14px}
 #toast{max-width:calc(100vw - 40px);border-radius:16px;bottom:95px;background:#1e3d42;color:#fff}
 .view:not([hidden]){animation:mobile-reveal .2s ease-out}
}
@keyframes mobile-reveal{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.view:not([hidden]){animation:none}*,*::before,*::after{transition-duration:0s!important}}

@media(max-width:720px){
 .dashboard-day .dashboard-energy h2,.dashboard-day .dashboard-water h2{display:none}
 .dashboard-day .diary-meter{margin-top:12px}.dashboard-day .diary-meter-label strong{font-size:36px}
 .dashboard-energy .diary-meter-label>span{color:#c7e3e8}.dashboard-day .diary-track{height:8px;margin-top:10px}.dashboard-day .diary-track:after{height:14px;top:-3px;border-color:#9fc7cd}
 .dashboard-day .dashboard-remaining{margin:13px 0 5px}.dashboard-day .button-row{margin-top:13px}.dashboard-energy>p.small{margin:6px 0}
 .dashboard-day .dashboard-water .diary-meter{margin-top:8px}.dashboard-water .diary-meter .small{display:none}.dashboard-day .dashboard-water .diary-meter-label strong{font-size:28px}.dashboard-water .eyebrow{font-size:10px}
 .task{border-radius:22px}.task-open{padding:20px}.task-copy strong{font-size:22px}.task-symbol{border-radius:17px}.task-footer{padding:8px 15px}.task-footer .ghost{font-size:11px}
 .diary-summary h2{font-size:42px}.diary-summary h2 small{font-size:12px}.diary-macros span{font-size:10px}.diary-macros strong{font-size:15px}
}
