/* Vitala UX 1.3 — mobile-first, accessible progressive screens */
:root{--px-black:#101114;--px-red:#bd1824;--px-sub:#63666e;--px-white:#fff;--px-line:#e7e7ea;--px-bg:#fafafb}
:focus-visible{outline:3px solid rgba(189,24,36,.45);outline-offset:3px}
button,input,select,textarea{touch-action:manipulation}
button{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
button:not(:disabled):active{transform:scale(.988)}
.btn.primary{background:var(--px-black);color:#fff;border-color:var(--px-black)}
.btn.primary:hover{background:#24242a}.btn.px-secondary{background:#fff;color:#202127;border:1px solid #d9d9dd}
.px-hero-card{background:#fff;border:1px solid var(--px-line);box-shadow:0 12px 35px rgba(0,0,0,.045);border-radius:23px;padding:24px;margin-bottom:18px}
.px-eyebrow{color:var(--px-red);font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.px-flow-heading h3{font-size:clamp(24px,3vw,31px);line-height:1.12;margin:7px 0 8px;color:#17171a;letter-spacing:-.8px}
.px-flow-heading p{font-size:14px;color:var(--px-sub);line-height:1.6;margin:0 0 18px}
.px-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:25px}
.px-steps span{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:#8a8c91;min-width:0}
.px-steps b{width:23px;height:23px;display:grid;place-items:center;background:#f1f1f2;border:1px solid #e6e6e8;border-radius:50%;font-size:11px;flex-shrink:0}
.px-steps .active{color:#111}.px-steps .active b,.px-steps .done b{background:#bd1824;border-color:#bd1824;color:#fff}
.px-flow-body{min-height:200px}.px-meals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.px-choice{border:1px solid #e1e1e5;border-radius:17px;background:#fff;min-height:105px;padding:15px;text-align:left;display:flex;flex-direction:column;gap:12px;color:#222}
.px-choice span{font-size:25px}.px-choice strong{font-size:16px}.px-choice.selected{border:2px solid #bd1824;background:#fff7f8;padding:14px}
.px-selection-note{color:var(--px-sub);font-size:13px;margin-top:14px}
.px-actions{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:24px}
.px-actions .px-cta{min-height:48px;margin-left:auto}.px-search{display:flex;gap:11px;align-items:center;border:1px solid #d4d4d9;background:#fff;border-radius:15px;padding:6px 14px}
.px-search input{min-height:45px;flex:1;border:0;outline:0;font-size:16px;min-width:0}.px-search span{font-size:25px;color:#b81c29}
.px-small-heading{font-size:14px;margin:20px 0 10px}.px-food-results{max-height:330px;overflow-y:auto;display:grid;gap:8px;margin:12px 0}
.px-food-result{width:100%;padding:13px 15px;border:1px solid #e5e5e9;border-radius:15px;background:#fff;display:grid;align-items:center;grid-template-columns:36px 1fr auto;gap:12px;text-align:left;min-width:0}
.px-food-result>span{font-size:26px}.px-food-result b{font-size:13px;overflow-wrap:anywhere}.px-food-result small{font-size:10px;color:#65666d;text-align:right;max-width:120px}
.px-food-result:hover{border-color:#bd1824;background:#fff8f8}.px-empty{padding:22px;color:#65666d;background:#f8f8f9;border-radius:14px;line-height:1.6;text-align:center}
.px-selected-food{display:flex;gap:11px;align-items:center;padding:14px;background:#f9f9fb;border:1px solid #e9e9ed;border-radius:15px;margin-bottom:17px}
.px-selected-food>div:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.px-selected-food small{color:#65666d}.px-selected-food strong{overflow-wrap:anywhere}.px-food-icon{font-size:30px}.px-text-button{border:0;background:none;color:var(--px-red);font-weight:750}
.px-amount-form .field{margin-bottom:14px}.px-amount-form input,.px-amount-form select{min-height:48px}
.px-calorie-preview{display:flex;flex-direction:column;gap:5px;padding:20px;border:1px solid #ebe1e2;border-radius:16px;background:#fff9f9}
.px-calorie-preview strong{font-size:30px;color:#202126}.px-calorie-preview span{font-size:12px;color:#65666d}
.px-inline-form{margin:12px 0}.px-water-less{background:#fff8f8!important;border-color:#e8c4c7!important;color:#9a1520!important}
/* Dedicated pagination inside existing form dialogs. */
.px-form{display:flex;flex-direction:column;min-height:230px}.px-form-head{margin-bottom:22px}.px-form-head h3{font-size:23px;letter-spacing:-.6px;margin:7px 0 15px}
.px-step-progress{display:flex;gap:9px}.px-step-progress button{width:33px;height:33px;border:1px solid #dadade;border-radius:50%;background:#fff;color:#74767c;font-weight:750}
.px-step-progress button.active{background:#b91826;color:#fff;border-color:#b91826}
.px-pane{min-width:0;animation:pxAppear .18s ease both}.px-pane[hidden]{display:none!important}
.px-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.px-fields>.field{min-width:0;grid-column:auto!important}
.px-fields .field label{font-size:12px;line-height:1.45}.px-fields input,.px-fields select,.px-fields textarea{max-width:100%;min-height:48px;font-size:16px}
.px-form-footer{display:flex;gap:10px;justify-content:space-between;border-top:1px solid #ededee;margin-top:22px;padding-top:17px}
.px-form-footer>.btn{min-height:46px}.px-form-footer>.btn.primary{margin-left:auto}
.px-form-footer [hidden]{display:none}.px-pane .workout-fieldset{margin-bottom:14px}
.px-form.px-single-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.px-file-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;left:-10000px!important}
.px-upload{display:flex;gap:13px;align-items:center;padding:17px;border:1px solid #26262d;border-radius:17px;background:#121216;color:#fff;cursor:pointer;margin:10px 0}
.px-upload-icon{display:grid;place-items:center;background:#2d2d33;border-radius:12px;width:44px;height:44px;flex-shrink:0;font-size:24px}
.px-upload>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.px-upload strong{font-size:14px}.px-upload small{font-size:11px;color:#c8c8cd}
.px-upload-cue{background:#bc1825;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:760}
.px-account-panel{border-color:#e7e7e9;background:#fff}.px-onboarding .field input,.px-onboarding .field select{min-height:51px}
.px-onboarding .form-grid{align-items:start}.px-onboarding .field label{line-height:1.45}.px-onboarding .field{min-width:0}
.px-onboarding .micro-note .link{display:inline-flex;border:1px solid #dbdbdf;border-radius:10px;padding:8px 11px;margin-top:9px;background:#fff}
.px-onboarding footer{display:flex;gap:12px;flex-wrap:wrap}
@keyframes pxAppear{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
/* Five intentional mobile destinations; everything else lives in the More sheet. */
.px-mobile-menu{position:fixed;inset:0;z-index:70}.px-menu-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.px-menu-sheet{position:absolute;bottom:0;left:0;right:0;max-height:min(75dvh,690px);overflow-y:auto;border-radius:23px 23px 0 0;background:#fff;padding:23px 17px max(28px,env(safe-area-inset-bottom));box-shadow:0 -20px 50px rgba(0,0,0,.16)}
.px-menu-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.px-menu-head h3{font-size:20px;margin:0}.px-menu-head button{border:1px solid #e5e5e7;border-radius:9px;background:#fff;padding:8px}
.px-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.px-menu-grid button{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #eaeaec;border-radius:13px;text-align:left;background:#fff;font-size:13px;font-weight:700}.px-menu-grid button span{font-size:21px}.px-menu-grid button.active{background:#fff4f5;border-color:#c3212f}
@media(max-width:730px){
 .px-hero-card{padding:20px 16px;border-radius:18px}.px-steps{gap:4px}.px-steps span{font-size:10px;flex-direction:column;justify-content:center}
 .px-steps b{width:28px;height:28px}.px-meals{grid-template-columns:repeat(2,minmax(0,1fr))}
 .px-actions{flex-direction:column-reverse;align-items:stretch}.px-actions .btn{width:100%;margin:0}.px-food-result{grid-template-columns:30px 1fr}.px-food-result small{grid-column:2;text-align:left;max-width:none}
 .px-fields{grid-template-columns:1fr}.px-form-footer{flex-direction:column-reverse}.px-form-footer>.btn{width:100%}
 .px-form.px-single-form .form-grid,.px-onboarding .form-grid{grid-template-columns:1fr!important}
 .px-onboarding footer{flex-direction:column-reverse}.px-onboarding footer .btn{width:100%}
 .onboard{max-height:calc(100dvh - 24px);padding:21px 17px}
 .onboard h1{font-size:25px}.onboard h2{font-size:22px}
 .footer-nav{justify-content:space-around;overflow:hidden;z-index:15}.footer-nav button{min-width:0;flex:1;padding:7px 3px;white-space:nowrap;font-size:10px}
 .footer-nav button span{font-size:22px}.quick-water .btn{flex:1 1 43%;min-width:0}
 .inline-form{flex-direction:column;align-items:stretch}.inline-form .field,.inline-form>.btn{width:100%}
 .run-controls{flex-wrap:wrap}.px-form .workout-set{grid-template-columns:1fr 1fr}
 .onboard-overlay{padding:10px;align-items:center}
}
@media(max-width:360px){.px-meals{grid-template-columns:1fr}.px-upload{flex-wrap:wrap}.px-upload-cue{margin-left:auto}}

/* Profile information is divided into discrete destination screens. */
.px-profile-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 0 18px;margin-top:-8px}
.px-profile-tabs button{border:1px solid #e4e4e7;border-radius:12px;background:#fff;padding:12px 16px;color:#696b73;font-weight:750;white-space:nowrap}
.px-profile-tabs button.active{color:#fff;background:#151515;border-color:#151515}
.px-profile-section[hidden]{display:none!important}
.px-step-progress{max-width:100%;overflow-x:auto;scrollbar-width:none}.px-step-progress button{flex-shrink:0}
@media(max-width:730px){.px-profile-tabs{gap:5px}.px-profile-tabs button{padding:11px 13px;font-size:12px}}