/* H5 client views follow the mini program's task order and card rhythm. */
body.mini-client-active{background:#f6f9fb}
#home.mini-parity-home,#meals{background:#f6f9fb;color:#293a35}
#home .mini-home-shell,#meals .mini-meals-shell{width:min(100%,680px);margin:auto;box-sizing:border-box}
#home .mini-home-shell{padding:18px 15px calc(110px + env(safe-area-inset-bottom))}
#home .mini-home-brand{height:44px;display:flex;align-items:center;margin-bottom:10px}
#home .mini-home-brand img{width:112px;height:36px;object-fit:contain;object-position:left center}
#home .mini-load-state,#meals .mini-meal-status{margin:0 0 12px;color:#687d77;font-size:13px;line-height:1.5}
#home .mini-load-state:empty{display:none}
#home .mini-load-state.error{padding:12px;border-radius:12px;background:#fff;color:#92592b}
#home .mini-load-state button{margin-left:12px;border:0;background:transparent;color:#227e69;font-weight:700}
#home .mini-plan-card,#home .mini-diet-card,#home .mini-record-card,#home .mini-edit-card,#meals .mini-day-slot,#meals .mini-meal-mode,#meals .mini-meal-time{display:block;box-sizing:border-box;border:0;background:#fff;color:#293a35;box-shadow:0 4px 15px #2a4f480a;text-decoration:none}
#home .mini-plan-card,#home .mini-diet-card{border-radius:22px;padding:20px 19px}
#home .mini-diet-card{margin-top:13px}
#home .mini-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#home .mini-card-heading strong{font-size:21px;line-height:1.25}
#home .mini-card-heading span{flex:none;border-radius:999px;padding:5px 9px;background:#eaf7f1;color:#227e69;font-size:11px}
#home .mini-plan-card p{margin:9px 0 17px;color:#687d77;font-size:13px;overflow-wrap:anywhere}
#home .mini-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:13px;border-top:1px solid #e9eff0;color:#227e69;font-size:12px}
#home .mini-card-foot b{font-size:24px;line-height:1}
#home .mini-meal-slots{display:flex;justify-content:space-around;gap:5px;margin:16px 0}
#home .mini-meal-slots span{display:flex;flex-direction:column;align-items:center;gap:5px;color:#607367;font-size:12px}
#home .mini-meal-slots i{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#eff8f3;color:#227e69;font-size:24px;font-style:normal}
#home .mini-meal-slots i.recorded{background:#dff5e8}
#home .mini-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
#home .mini-record-card,#home .mini-edit-card{min-width:0;min-height:138px;border-radius:19px;padding:15px;cursor:pointer;text-align:left}
#home .mini-record-card{display:flex;flex-direction:column}
#home .mini-record-top{display:flex;justify-content:space-between;gap:6px;align-items:flex-start}
#home .mini-record-top strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#home .mini-record-top i{display:grid;place-items:center;width:27px;height:27px;flex:none;border-radius:50%;background:#ebf8f0;color:#227e69;font-size:22px;font-style:normal;line-height:1}
#home .mini-record-card b{margin-top:auto;padding-top:13px;font-size:17px;overflow-wrap:anywhere}
#home .mini-record-card small,#home .mini-edit-card small{display:block;margin-top:5px;color:#687d77;font-size:11px;line-height:1.4}
#home .mini-record-card.recorded small{color:#227e69}
#home .mini-edit-card{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #add7bd;color:#227e69;text-align:center}
#home .mini-record-disclaimer{margin:16px 3px 0;color:#82948b;font-size:11px;line-height:1.6}
#home .mini-cards-dialog{width:min(calc(100% - 30px),420px);max-height:80vh;padding:16px;border-radius:22px}
#miniCardsDialog form{max-height:73vh;overflow:auto}
#miniCardsDialog form>p{color:#687d77;font-size:13px}
#miniCardsChoices label{display:flex;align-items:center;justify-content:space-between;min-height:44px;border-bottom:1px solid #e9eff0;font-size:14px}
#miniCardsChoices input{width:21px;height:21px;accent-color:#227e69}
#meals{padding:0 15px 100px}
#meals .mini-meals-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;position:sticky;top:0;z-index:20;background:#f6f9fb}
#meals .mini-meals-head button{border:0;background:transparent;color:#227e69;min-width:40px;min-height:40px;font-size:17px}
#meals .mini-meals-head label{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:700}
#meals #mealDate{max-width:145px;border:0;background:transparent;color:#293a35;font:inherit;font-size:14px}
#meals .mini-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:0 0 15px;position:sticky;top:56px;z-index:19;padding:7px 0 10px;background:#f6f9fb}
#meals .mini-week-strip button{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:52px;padding:6px 0;border:0;border-radius:14px;background:transparent;color:#687d77;font-size:11px}
#meals .mini-week-strip button b{font-size:15px}
#meals .mini-week-strip button.selected{background:#227e69;color:#fff}
#meals .mini-week-strip button:disabled{opacity:.35}
#meals .mini-meal-time,#meals .mini-meal-mode,#meals .mini-day-slot{border-radius:19px;margin:0 0 12px;padding:17px}
#meals .mini-meal-time{display:flex;align-items:center;justify-content:space-between;color:#293a35;font-size:14px;font-weight:700}
#meals .mini-meal-time[hidden]{display:none}
#meals .mini-meal-time input{width:105px;border:0;background:transparent;color:#227e69;font:inherit}
#meals .mini-meal-mode{padding:0 17px}
#meals .mini-meal-mode button{display:flex;width:100%;align-items:center;gap:8px;min-height:58px;border:0;background:transparent;color:#293a35;text-align:left}
#meals .mini-meal-mode button:first-child{flex-wrap:wrap;border-bottom:1px solid #e9eff0}
#meals .mini-meal-mode button small{display:block;flex-basis:100%;margin-bottom:-12px;color:#687d77;font-size:11px}
#meals .mini-meal-mode button strong{flex:1;font-size:15px}
#meals .mini-meal-mode button span,#meals #mealPlanToggle{color:#227e69;font-size:12px}
#meals .mini-day-slot-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#meals .mini-day-slot-head span{display:grid;gap:5px}
#meals .mini-day-slot-head strong{font-size:18px}
#meals .mini-day-slot-head small{color:#687d77;font-size:12px}
#meals .mini-day-slot-head button{width:36px;height:36px;flex:none;border:0;border-radius:50%;background:#eaf7f1;color:#227e69;font-size:23px}
#meals .mini-day-slot-head button:disabled{opacity:.4}
#meals .mini-food-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;border-top:1px solid #edf2ef;margin-top:12px}
#meals .mini-food-row+ .mini-food-row{margin-top:0}
#meals .mini-food-row button:not(.mini-photo-link),#meals .mini-food-row>span{flex:1;min-width:0;display:grid;gap:5px;border:0;background:transparent;color:#293a35;text-align:left}
#meals .mini-food-row small{color:#687d77;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#meals .mini-food-row button:disabled{opacity:1}
#meals .mini-photo-link,#meals .mini-whole-photo{border:0;background:transparent;color:#227e69;font-size:12px}
#meals .mini-whole-photo{margin-top:12px;min-height:32px}
#meals .mini-meal-plan-details{width:min(100%,680px);margin:24px auto 0;padding:0;background:#fff;border-radius:18px}
#meals .mini-meal-plan-details:not([open]){display:none}
#meals .mini-meal-plan-details[open]{padding:16px}
#mealFoodDialog{width:min(calc(100% - 26px),480px);max-height:90dvh;overflow:auto;border-radius:22px;padding:17px}
#mealFoodDialog form{display:grid;gap:16px}
#mealFoodDialog form>p{margin:0;color:#687d77;font-size:12px}
#mealFoodDialog .mini-food-title,#miniCardsDialog .mini-food-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
#mealFoodDialog .mini-food-title strong,#miniCardsDialog .mini-food-title strong{font-size:18px}
#mealFoodDialog .mini-food-title button,#miniCardsDialog .mini-food-title button{min-width:38px;min-height:38px;border:0;border-radius:999px;background:#eaf7f1;color:#227e69;font-weight:700}
#mealFoodDialog .mini-food-title button:last-child,#miniCardsDialog .mini-food-title button:last-child{padding:0 15px;background:#2bc981;color:#103c2e}
#mealFoodDialog label{display:grid;gap:6px;font-size:14px;font-weight:700}
#mealFoodDialog label small{color:#687d77;font-size:11px;font-weight:400}
#mealFoodDialog textarea{min-height:70px;padding:10px;border:1px solid #dfe9e3;border-radius:12px;resize:vertical}
#mealFoodDialog input[type=file]{max-width:100%;font-size:12px}
#mealFoodError{color:#a32e27!important}
#home a:focus-visible,#home button:focus-visible,#meals button:focus-visible,#meals input:focus-visible{outline:3px solid #227e69;outline-offset:2px}
@media(max-width:360px){#home .mini-home-shell{padding-inline:12px}#home .mini-record-grid{gap:8px}#home .mini-record-card,#home .mini-edit-card{padding:12px}#meals{padding-inline:12px}#meals #mealDate{max-width:125px}}
@media(min-width:700px){#home .mini-home-shell{padding-top:26px}#home .mini-record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
#lifestyle .mini-entry-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:-5px 0 20px}
#lifestyle .mini-entry-week button{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:53px;padding:6px 0;border:0;border-radius:14px;background:#f1f5f2;color:#687d77;font-size:11px}
#lifestyle .mini-entry-week button b{font-size:15px}
#lifestyle .mini-entry-week button.selected{background:#227e69;color:#fff}
#lifestyle .mini-entry-week button:disabled{opacity:.35}
#lifestyle .mini-sleep-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#lifestyle .mini-sleep-times label{min-width:0}
#lifestyle .mini-sleep-hours{display:flex;align-items:center;gap:10px}
#lifestyle .mini-sleep-hours input{min-width:0;flex:1}
#lifestyle .mini-sleep-hours small{color:#607367;font-size:12px}
#lifestyle #sleepScoreOutput{float:right;color:#227e69;font-size:13px}
#lifestyle #sleepQuality{width:100%;margin:18px 0 5px;accent-color:#2bc981}
#lifestyle .mini-sleep-scale{display:flex;justify-content:space-between;color:#81938b;font-size:11px}
#lifestyle .mini-sleep-photo{padding:12px;border:1px solid #edf2ef;border-radius:13px;background:#f7faf8}
#lifestyle .mini-sleep-photo small{float:right;color:#81938b;font-size:11px}
#lifestyle .mini-sleep-photo input{max-width:100%;border:0!important;background:transparent!important;font-size:12px}
body.mini-client-active .topbar{display:none}
#home [data-questionnaire-inbox="summary"]{margin-top:13px}
#meals .mini-meals-head label{flex:none;white-space:nowrap;font-size:16px}
#meals #mealDate{width:126px;min-width:0;font-size:13px}
#mealPhotoDialog{width:min(calc(100% - 26px),680px);max-height:90dvh;overflow:auto;border-radius:18px;padding:12px;background:#fff}
#mealPhotoDialog button{display:block;margin-left:auto;width:36px;height:36px;border:0;border-radius:50%;background:#eaf7f1;color:#227e69;font-size:22px}
#mealPhotoDialog img{display:block;max-width:100%;max-height:calc(90dvh - 70px);margin:auto;object-fit:contain}
#lifestyle .mini-sleep-overview[hidden]{display:none}
#lifestyle.sleep-overview-active .entry-focus-summary,#lifestyle.sleep-overview-active .entry-groups,#lifestyle.sleep-overview-active .entry-history,#lifestyle.sleep-overview-active #openLegacyCheckin,#lifestyle.sleep-overview-active .entry-disclaimer,#lifestyle.sleep-overview-active .record-service-progress{display:none}
#lifestyle.sleep-overview-active .entry-date{margin-bottom:10px}
#lifestyle .mini-sleep-summary{min-height:150px;margin-top:16px;padding:20px;border-radius:20px;background:#f1f5f2;color:#293a35}
#lifestyle .mini-sleep-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#lifestyle .mini-sleep-summary-head strong{font-size:17px}
#lifestyle .mini-sleep-summary-head span{padding:5px 9px;border-radius:999px;background:#dff5e8;color:#227e69;font-size:11px}
#lifestyle .mini-sleep-empty{margin:30px 0 0;color:#687d77;font-size:15px}
#lifestyle .mini-sleep-number{display:flex;align-items:baseline;gap:7px;margin:26px 0 12px}
#lifestyle .mini-sleep-number b{font-size:40px;line-height:1}
#lifestyle .mini-sleep-number span{font-size:14px}
#lifestyle .mini-sleep-summary p{margin:9px 0;color:#607367;font-size:13px}
#lifestyle .mini-sleep-summary small{color:#81938b;font-size:11px}
#lifestyle .mini-sleep-summary button{display:block;min-height:36px;margin-top:12px;border:0;background:transparent;color:#227e69;font-weight:700}
#lifestyle #sleepOverviewAction{width:100%;min-height:50px;margin-top:16px;border:0;border-radius:999px;background:#2bc981;color:#103c2e;font-size:15px;font-weight:700}
#lifestyle #sleepOverviewAction[hidden]{display:none}
#sleepPhotoDialog{width:min(calc(100% - 26px),680px);max-height:90dvh;overflow:auto;border-radius:18px;padding:12px;background:#fff}
#sleepPhotoDialog button{display:block;margin-left:auto;width:36px;height:36px;border:0;border-radius:50%;background:#eaf7f1;color:#227e69;font-size:22px}
#sleepPhotoDialog img{display:block;max-width:100%;max-height:calc(90dvh - 70px);margin:auto;object-fit:contain}
