
:root{color-scheme:light;--bg:#f6f7f2;--paper:#fff;--ink:#243b31;--muted:#7b887f;--green:#287653;--mint:#eaf3e9;--line:#e8ece5;--orange:#a96f42;--red:#b64f49}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.48}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #add7b7;outline-offset:3px}a{color:var(--green)}svg.icon{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65}h1,h2,h3,p{margin:0}h1{font-size:32px;font-weight:700;letter-spacing:-1px;line-height:1.4}h2{font-size:18px;font-weight:650}h3{font-size:15px}small{font-size:12px}.muted{color:var(--muted)}.eyebrow{color:var(--green);font-size:10px;font-weight:700;letter-spacing:2px;margin-bottom:9px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:12px;font-weight:600;white-space:nowrap;background:var(--mint);color:var(--green)}.primary{background:var(--green);color:white}.secondary{background:white;border:1px solid #cfdfd0;color:var(--green)}.plain{background:transparent;padding:9px 10px;color:var(--muted)}.danger{color:var(--red);background:#fbefec}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;flex-shrink:0}.icon-button:hover{background:var(--mint)}.button:hover:not(:disabled){filter:brightness(.96)}
.topbar{height:88px;max-width:1160px;padding:0 30px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:11px;font-size:22px;font-weight:750;letter-spacing:1px}.brand-mark{width:40px;height:40px;background:var(--green);color:white;border-radius:14px;display:grid;place-items:center}.brand-mark .icon{width:26px;height:26px}.brand small{font-size:11px;letter-spacing:1px;color:var(--muted);font-weight:400;margin-left:7px}.navigation{display:flex;gap:6px;padding:5px;background:#e9ede5;border-radius:14px}.nav-item{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 19px;font-size:13px;color:#6d7c70;border-radius:10px}.nav-item.active{background:white;color:var(--green);font-weight:650;box-shadow:0 2px 7px #2d493008}.nav-item .icon{width:18px;height:18px}.account-button{display:flex;align-items:center;gap:8px;font-size:12px;color:#596e60}.avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#e4ebdf;color:var(--green);font-size:12px;font-weight:650}
.page{max-width:1100px;margin:24px auto 0;padding:0 30px 50px}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:25px}.page-heading p{color:var(--muted);margin-top:9px;font-size:13px}.date-switch{display:flex;align-items:center;gap:5px;background:white;border:1px solid var(--line);border-radius:13px;padding:4px}.date-label{position:relative;display:flex;align-items:center;gap:8px;min-height:35px;font-size:12px;padding:0 9px;font-weight:600}.date-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.date-switch .icon-button{width:32px;height:35px;border-radius:9px}.date-switch .icon{width:17px;height:17px}
.overview{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;margin-bottom:30px}.summary-card{border:1px solid var(--line);border-radius:22px;padding:25px 28px;background:white}.summary-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.tiny-label{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:6px;padding:3px 8px;background:var(--bg);color:var(--muted)}.summary-number{display:flex;align-items:baseline;gap:10px;margin-top:8px}.summary-number strong{font-size:49px;font-weight:650;line-height:1.3;letter-spacing:-2px;font-variant-numeric:tabular-nums}.summary-number span{font-size:13px;color:var(--muted)}.meal-progress{display:flex;gap:5px;margin-top:19px}.meal-progress>span{height:5px;border-radius:5px;background:#edf0e9;flex:1}.meal-progress>span.done{background:#94bf93}.summary-foot{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-top:10px}.quick-card{overflow:hidden;border-radius:22px;padding:26px;background:#e6efdf;display:flex;align-items:center;justify-content:space-between;gap:16px}.quick-card h2{font-size:21px;line-height:1.5;margin-bottom:5px}.quick-card p{font-size:12px;color:#73826c;margin-bottom:17px}.quick-card .button{min-height:40px;padding:8px 14px;font-size:12px}.quick-art{width:106px;height:106px;border-radius:50%;box-shadow:0 5px 25px #67865b12;transform:rotate(-7deg);flex-shrink:0}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px;gap:10px}.section-heading small{font-size:11px;color:var(--muted)}.meals-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.meal-card{background:white;border:1px solid var(--line);border-radius:20px;padding:21px 22px}.meal-head{display:flex;align-items:center;gap:11px}.meal-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#f5eddc;color:#9f8a55}.meal-icon.lunch{background:#eaf2e3;color:#78945b}.meal-icon.dinner{background:#eeeaf4;color:#9584ab}.meal-icon.snack{background:#f8eae1;color:#bd926f}.meal-title{flex:1}.meal-title h2{font-size:16px}.meal-title small{font-size:10px;color:var(--muted)}.meal-energy{font-weight:650;font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums}.meal-energy small{color:var(--muted);font-weight:400;font-size:10px;margin-left:4px}.meal-empty{display:flex;align-items:center;gap:13px;padding:23px 0 16px;color:#8a9581;font-size:12px}.meal-empty .icon{width:27px;height:27px;color:#b5c3aa}.meal-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:13px;margin-top:3px}.meal-actions .button{font-size:11px;min-height:36px;padding:6px 11px;border-radius:9px}.text-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:11px;line-height:1.5;color:#7a9074;padding:10px 0;min-height:36px}.text-action>.icon{width:16px;height:16px}.text-action.confirmed{color:var(--green)}
.food-image{width:54px;height:54px;object-fit:cover;border-radius:14px;flex-shrink:0;background:#f3f5ed}.record-row{display:flex;align-items:center;gap:11px;border-top:1px solid #f0f2ec;padding:14px 0;width:100%;text-align:left}.record-row:first-child{margin-top:17px}.record-row .food-image{width:43px;height:43px;border-radius:11px}.record-text{flex:1;min-width:0}.record-text strong{display:block;font-size:12px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}.record-text small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.record-value{font-size:13px;font-weight:650;white-space:nowrap}.record-value small{font-size:10px;font-weight:400;color:var(--muted)}.record-row>.icon{width:15px;height:15px;color:#a1b097}.footnote{text-align:center;color:#909e86;font-size:10px;margin-top:26px;letter-spacing:.3px}
.select-top{display:flex;align-items:center;gap:12px;margin-bottom:22px}.select-top h1{font-size:23px;letter-spacing:0}.select-top .context{flex:1}.select-top small{color:var(--muted);font-size:11px}.select-top select{width:auto;background:transparent;border:0;padding:0 22px 0 0;font-size:23px;font-weight:650;min-height:33px;color:var(--ink)}.entry-tools{display:flex;gap:10px}.search-box{display:flex;align-items:center;gap:10px;background:white;border:1px solid #dbe5d7;border-radius:13px;padding:0 14px;min-height:48px;flex:1}.search-box>.icon{color:#91a18b;width:19px;height:19px}.search-box input{border:0;background:none;padding:11px 0;width:100%;outline:none;font-size:13px;margin:0;min-height:44px}.search-box:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #2876530c}.search-box input:focus-visible{outline:none}.search-row{display:flex;gap:12px;align-items:center}.search-row>.button{height:48px}.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:17px 0}.chip{flex-shrink:0;padding:7px 16px;border-radius:9px;background:transparent;color:#738467;font-size:12px;min-height:36px}.chip.active{background:#e7efdf;color:var(--green);font-weight:600}.food-list{border:1px solid var(--line);background:white;border-radius:20px;overflow:hidden}.food-choice{display:flex;gap:16px;align-items:center;width:100%;text-align:left;padding:16px 22px;border-bottom:1px solid #eff1ea;transition:background .12s}.food-choice:last-child{border-bottom:0}.food-choice:hover{background:#fbfcf8}.food-choice.selected{background:#f7faf2}.food-choice .record-text strong{font-size:14px}.food-choice .record-text small{font-size:11px}.choice-energy{display:block;font-size:12px;color:var(--orange);margin-top:5px}.choice-energy span{font-size:10px;color:var(--muted)}.round-add{width:40px;height:40px;border-radius:50%;background:#edf4e8;color:var(--green);display:grid;place-items:center;margin-left:12px;flex-shrink:0}.selected .round-add{background:var(--green);color:white}.round-add .icon{width:17px;height:17px}
.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.catalog-aside{background:#ecf0e6;border:1px solid #e4e9dc;border-radius:18px;padding:23px;position:sticky;top:20px}.catalog-aside h3{font-size:15px;margin:12px 0 7px}.catalog-aside p{font-size:12px;color:var(--muted);line-height:1.9}.catalog-aside>.icon{width:25px;height:25px;color:#769267}.catalog-aside .button{margin-top:16px;font-size:12px;width:100%}.basket-bar{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:20px;align-items:center;padding:13px 18px;background:white;border:1px solid #e1e7d9;border-radius:17px;box-shadow:0 10px 40px #263d2417;width:min(1000px,calc(100% - 60px));z-index:5}.basket-summary{flex:1;text-align:left;display:flex;align-items:center;gap:13px;font-size:13px}.basket-badge{width:36px;height:36px;background:var(--mint);border-radius:11px;display:grid;place-items:center;font-weight:650;color:var(--green)}.basket-summary small{font-size:10px;color:var(--muted)}.basket-bar>.button{min-width:180px}.selecting .page{padding-bottom:130px}.list-empty{padding:44px 20px;text-align:center;color:var(--muted);font-size:13px}.list-empty .icon{width:34px;height:34px;display:block;margin:0 auto 12px;color:#a6b69a}.list-empty .button{margin-top:17px}
#sheet{padding:0;border:0;border-radius:24px;background:white;color:var(--ink);width:min(600px,calc(100% - 32px));max-height:90dvh;overflow:auto;box-shadow:0 22px 90px #172d2450}#sheet::backdrop{background:#172d2460;backdrop-filter:blur(3px)}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.sheet-head h2{font-size:17px}.sheet-body{padding:24px 25px}.sheet-footer{padding:15px 25px 20px;border-top:1px solid var(--line);position:sticky;bottom:0;background:white;display:flex;gap:10px;align-items:center;z-index:2}.sheet-footer>.button{flex:1}.sheet-footer>.plain{flex:0 0 auto}.amount-food{display:flex;align-items:center;gap:16px;margin-bottom:20px}.amount-food .food-image{width:76px;height:76px;border-radius:20px}.amount-food h3{font-size:18px;line-height:1.5}.amount-food small{color:var(--muted);font-size:11px;display:block;margin-top:6px}.amount-total{background:#f2f6ec;border-radius:15px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.amount-total>span{color:#77876c;font-size:12px}.amount-total strong{color:var(--green);font-size:29px;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums}.amount-total small{font-weight:400;font-size:12px;color:#85947a;margin-left:5px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#61725f}.field input,.field select,.field textarea{border:1px solid #dde5d6;border-radius:11px;background:#fbfcf8;color:var(--ink);min-height:46px;padding:10px 12px;width:100%;margin:0}.field textarea{resize:vertical;min-height:100px}.field.full{grid-column:1/-1}.portion-presets{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.portion-presets button{padding:7px 14px;background:#f3f6ed;border-radius:9px;color:#718360;font-size:11px;min-height:36px}.portion-presets button.active{background:#e4efdb;color:var(--green);box-shadow:inset 0 0 0 1px #bad2ab}.help{color:var(--muted);font-size:11px;line-height:1.85;margin-top:12px}.error{color:var(--red);font-size:12px;line-height:1.7;white-space:pre-wrap;margin-top:13px}.error:empty{display:none}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);display:flex;gap:12px;align-items:center;justify-content:center;background:#264932;color:white;border-radius:13px;padding:13px 20px;box-shadow:0 8px 35px #18382228;z-index:20;font-size:12px}.toast button{color:#d2e9c8;text-decoration:underline;white-space:nowrap;padding:3px 5px}
.basket-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:13px 0}.basket-item .basket-edit{display:flex;align-items:center;gap:12px;flex:1;text-align:left}.basket-item .food-image{width:44px;height:44px}.basket-item .record-text strong{font-size:13px}.basket-item>.icon-button{color:#a5b29d}.mode-tabs{display:flex;background:#f0f3ea;border-radius:12px;padding:4px;margin-bottom:20px;gap:4px}.mode-tabs button{flex:1;padding:9px;font-size:12px;border-radius:9px;color:#78886a;min-height:38px}.mode-tabs button.active{background:white;color:var(--green);font-weight:600;box-shadow:0 2px 7px #2d493008}.photo-controls{display:flex;gap:10px;margin-bottom:18px}.file-label{position:relative;flex:1;overflow:hidden;font-size:12px}.file-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-preview{width:100%;max-height:220px;object-fit:contain;border-radius:13px;background:#f4f6ef;margin-bottom:12px}.ai-review{border:1px solid var(--line);border-radius:15px;padding:16px;margin-bottom:14px}.review-title{display:flex;gap:10px;align-items:center;margin-bottom:14px;font-size:13px;font-weight:650}.review-title img{width:42px;height:42px}.review-title input{accent-color:var(--green);width:18px;height:18px}.ai-review .field{font-size:11px}.review-energy{color:var(--green);font-weight:650;margin:12px 0 0;font-size:13px}.review-note{font-size:10px;color:var(--muted);margin-top:12px;line-height:1.8}.review-note summary{cursor:pointer;color:#718764}.ai-notice{padding:12px 15px;border-radius:12px;background:#faf5e8;color:#8c7546;font-size:11px;line-height:1.8;margin-bottom:18px}
.idea-hero{display:flex;align-items:center;justify-content:space-between;background:#e9f0df;border-radius:24px;padding:30px 35px;margin-bottom:24px;gap:22px}.idea-hero h1{font-size:30px}.idea-hero p{font-size:12px;color:#758468;margin-top:12px}.idea-art{display:flex;align-items:center;padding-right:15px}.idea-art img{width:85px;height:85px;border-radius:50%;margin-right:-15px;box-shadow:0 5px 20px #54764115}.idea-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.idea-toolbar .mode-tabs{margin:0;min-width:190px}.idea-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.idea-food{background:white;border:1px solid var(--line);border-radius:19px;padding:22px}.idea-food .food-image{width:92px;height:92px;border-radius:20px;margin-bottom:18px}.idea-food>.muted{font-size:10px}.idea-food h3{font-size:17px;margin:6px 0}.idea-food p{font-size:11px;color:var(--muted)}.idea-food .idea-kcal{font-size:23px;color:var(--green);font-weight:650;margin-top:18px}.idea-food .idea-kcal small{font-size:11px;font-weight:400;color:var(--muted)}.idea-total{background:white;border:1px solid var(--line);border-radius:18px;padding:19px 23px;margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.idea-total strong{font-size:23px;color:var(--green);font-weight:650}.idea-total small{font-size:11px;color:var(--muted);margin-left:8px}.idea-total p{font-size:11px;color:var(--muted);margin-top:3px}.info-note{font-size:11px;color:#7d8e6d;margin:16px 0}
.account-info{display:flex;align-items:center;gap:14px;margin-bottom:25px}.account-info .avatar{width:50px;height:50px;font-size:18px}.account-info p{color:var(--muted);font-size:11px}.settings-list{display:flex;flex-direction:column;gap:6px}.settings-list>.button{justify-content:space-between;font-size:12px;background:#f5f7f0}.auth-wrap{max-width:940px;margin:8vh auto;padding:30px;display:grid;grid-template-columns:1fr 390px;gap:70px;align-items:center}.auth-intro h1{font-size:41px;margin:25px 0 17px;line-height:1.5}.auth-intro p{color:var(--muted);font-size:14px;line-height:1.9}.auth-art{display:flex;align-items:center;margin-top:35px}.auth-art img{width:95px;height:95px;border-radius:50%;box-shadow:0 8px 20px #29482b0b;margin-right:-8px}.auth-card{background:white;border:1px solid var(--line);border-radius:22px;padding:30px}.auth-card h2{font-size:21px;margin-bottom:7px}.auth-card>p{font-size:12px;color:var(--muted);margin-bottom:23px}.auth-card form{display:grid;gap:17px}.auth-card .button{width:100%;margin-top:4px}.boot-state{padding:25vh 20px;text-align:center;color:var(--muted)}[hidden]{display:none!important}
@media(min-width:761px){.navigation{position:absolute;left:50%;transform:translateX(-50%)}}
@media(max-width:950px){.brand small{display:none}.catalog-layout{grid-template-columns:1fr 220px}.idea-art img{width:65px;height:65px}.quick-art{width:80px;height:80px}.auth-wrap{gap:30px}.meal-card{padding:18px}.topbar{padding:0 24px}}
@media(max-width:760px){
body{padding-bottom:78px}.topbar{height:72px;padding:0 19px}.brand{font-size:21px}.brand-mark{width:34px;height:34px;border-radius:12px}.brand-mark .icon{width:23px;height:23px}.account-button>span:last-child{display:none}.navigation{position:fixed;bottom:0;left:0;right:0;z-index:7;border-radius:0;background:#fffffff5;border-top:1px solid #e4e9db;display:grid;grid-template-columns:repeat(3,1fr);padding:8px 15px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(14px)}.nav-item{flex-direction:column;gap:2px;min-height:44px;padding:3px;font-size:10px}.nav-item .icon{width:21px;height:21px}.nav-item.active{box-shadow:none;background:none}.page{padding:0 17px 28px;margin-top:12px}.page-heading{align-items:start;gap:10px;margin-bottom:21px}.page-heading h1{font-size:24px;letter-spacing:-.5px}.page-heading p{font-size:11px;margin-top:7px}.eyebrow{font-size:9px;letter-spacing:1.3px;margin-bottom:6px}.date-switch{padding:3px;gap:0}.date-label{font-size:10px;padding:0 3px;gap:3px;min-height:31px}.date-label>.icon{display:none}.date-switch .icon-button{width:24px;height:30px}.overview{grid-template-columns:1fr;gap:12px;margin-bottom:24px}.summary-card{padding:21px 22px;border-radius:19px}.summary-number strong{font-size:43px}.summary-top{font-size:11px}.quick-card{padding:20px 21px;border-radius:18px}.quick-card h2{font-size:18px;margin-bottom:3px}.quick-card p{font-size:11px;margin-bottom:12px}.quick-art{width:85px;height:85px}.quick-card .button{font-size:11px;min-height:38px;padding:7px 12px}.meals-grid{grid-template-columns:1fr;gap:13px}.meal-card{border-radius:18px;padding:18px 20px}.meal-empty{padding:20px 0 16px;font-size:11px}.meal-head{gap:10px}.meal-title h2{font-size:15px}.meal-energy{font-size:18px}.meal-title small{font-size:10px}.section-heading h2{font-size:16px}.section-heading small{font-size:10px}.record-text strong{font-size:13px}.record-row .food-image{width:42px;height:42px}.record-text small{font-size:11px}.record-value{font-size:13px}.meal-actions .text-action{font-size:11px}.meal-actions .button{min-height:36px;font-size:11px}.footnote{margin-top:20px;font-size:10px}
.selecting .topbar{display:none}.selecting .navigation{display:none}.selecting{padding-bottom:0}.selecting .page{padding:18px 14px 110px;margin-top:0}.select-top{gap:5px;margin-bottom:18px}.select-top h1,.select-top select{font-size:21px}.select-top .icon-button{width:34px}.select-top small{font-size:10px}.entry-tools{gap:4px}.entry-tools .button{padding:8px 9px;min-height:40px;font-size:11px;gap:5px}.entry-tools .button .icon{width:16px;height:16px}.catalog-layout{display:block}.catalog-aside{display:none}.search-row{gap:8px}.search-row>.button{padding:8px 10px;font-size:11px}.search-box{border-radius:11px;padding:0 11px;min-height:45px}.search-box input{font-size:14px}.chips{padding:14px 0;gap:4px}.chip{font-size:11px;padding:6px 13px;min-height:35px}.food-list{border-radius:16px}.food-choice{padding:15px 15px;gap:12px}.food-choice .food-image{width:51px;height:51px;border-radius:12px}.food-choice .record-text strong{font-size:13px}.food-choice .record-text small{font-size:10px}.choice-energy{font-size:12px}.round-add{width:38px;height:38px;margin-left:4px}.basket-bar{bottom:0;left:0;transform:none;width:100%;border-radius:0;border-width:1px 0 0;padding:12px 17px calc(12px + env(safe-area-inset-bottom));gap:10px}.basket-bar>.button{min-width:134px;min-height:44px;font-size:12px;padding:10px 13px}.basket-summary{gap:9px;font-size:12px}.basket-summary small{font-size:10px}.basket-badge{width:32px;height:32px;border-radius:10px}
#sheet{width:100%;max-width:none;max-height:90dvh;border-radius:25px 25px 0 0;margin:auto 0 0;bottom:0;position:fixed}.sheet-head{padding:15px 20px}.sheet-head h2{font-size:16px}.sheet-body{padding:20px}.sheet-footer{padding:13px 20px calc(16px + env(safe-area-inset-bottom))}.sheet-head .icon-button{width:36px;height:36px}.amount-food .food-image{width:65px;height:65px}.amount-food h3{font-size:17px}.amount-total{padding:17px 19px}.amount-total strong{font-size:29px}.field input,.field textarea,.field select{font-size:16px}.field{font-size:12px}.fields{gap:13px}.toast{bottom:87px;font-size:11px;border-radius:12px;min-width:240px}.selecting .toast{bottom:88px}
.idea-hero{padding:25px 22px;border-radius:20px;margin-bottom:20px}.idea-hero h1{font-size:26px}.idea-hero p{font-size:11px}.idea-art{padding-right:8px}.idea-art img{width:50px;height:50px}.idea-art img:last-child{display:none}.idea-toolbar{gap:10px;margin-bottom:15px}.idea-toolbar .mode-tabs{min-width:150px}.idea-toolbar>.button{font-size:11px;padding:9px 12px}.idea-grid{grid-template-columns:1fr;gap:10px}.idea-food{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:0 14px;align-items:center;padding:15px 17px;border-radius:15px}.idea-food .food-image{grid-column:1;grid-row:1/5;width:60px;height:60px;margin:0;border-radius:15px}.idea-food>.muted,.idea-food h3,.idea-food p{grid-column:2}.idea-food>.muted{font-size:10px}.idea-food h3{font-size:14px;margin:2px 0}.idea-food p{font-size:10px}.idea-food .idea-kcal{grid-column:3;grid-row:1/5;margin:0;font-size:21px;text-align:right}.idea-food .idea-kcal small{display:block;font-size:10px}.idea-total{padding:17px;gap:10px;align-items:center}.idea-total strong{font-size:23px}.idea-total small{margin-left:4px;font-size:10px}.idea-total .button{font-size:11px;padding:10px 12px}.idea-total p{font-size:10px}.info-note{font-size:10px}.auth-wrap{display:block;margin:35px auto 0;padding:20px;max-width:440px}.auth-intro h1{font-size:29px;margin:25px 0 8px}.auth-intro p{font-size:12px}.auth-art{display:none}.auth-card{margin-top:25px;padding:25px;border-radius:20px}.auth-card h2{font-size:19px}.auth-card .field input{font-size:16px}
}
@media(max-width:360px){.page{padding-left:13px;padding-right:13px}.page-heading{flex-wrap:wrap}.page-heading h1{font-size:23px}.date-switch{margin-top:7px}.quick-art{width:66px;height:66px}.meal-card{padding:16px}.entry-tools .button{padding:6px 8px;font-size:10px}.idea-total{align-items:start;flex-direction:column}.idea-total .button{width:100%}.food-choice{gap:9px}.food-choice .food-image{width:44px;height:44px}.sheet-body{padding:18px}.fields{gap:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* Comfortable phone reading and tap targets. */
.help,.info-note{font-size:12px}.food-choice .record-text small{font-size:12px}.choice-energy span{font-size:11px}.summary-foot{font-size:12px}.record-text small{font-size:11px}.review-note{font-size:11px}
@media(max-width:760px){
 .page-heading{display:block}.page-heading .date-switch{margin-top:15px;width:max-content}.date-switch .icon-button{width:44px;height:42px}.date-label{font-size:12px;min-height:42px;padding:0 8px}.eyebrow{font-size:10px}.nav-item{font-size:12px;min-height:46px}.section-heading small{font-size:11px}.summary-foot{font-size:11px}.summary-top{font-size:12px}.meal-title small{font-size:11px}.meal-empty{font-size:12px}.meal-actions .button,.meal-actions .text-action{min-height:44px;font-size:12px}.record-text strong{font-size:14px}.record-text small{font-size:12px}.record-value{font-size:14px}.record-value small{font-size:11px}.select-top small{font-size:12px}.select-top .icon-button{width:44px}.entry-tools .button{min-height:44px}.chip{min-height:40px;font-size:12px}.food-choice .record-text strong{font-size:14px}.food-choice .record-text small{font-size:12px}.food-choice .round-add{width:40px;height:40px}.choice-energy{font-size:13px}.choice-energy span{font-size:11px}.sheet-head .icon-button{width:44px;height:44px}.basket-summary small{font-size:11px}.quick-card p{font-size:12px}.footnote{font-size:11px}.idea-food p,.idea-food>.muted{font-size:11px}
}


.idea-food>.muted{display:block}
@media(max-width:760px){
 .idea-art{display:none}.idea-hero h1{white-space:nowrap;font-size:26px}.idea-hero p{font-size:12px}
 body[data-page="diary"] .page-heading .eyebrow,body[data-page="diary"] .page-heading p{display:none}
 body[data-page="diary"] .page-heading{margin-bottom:17px}
 body[data-page="diary"] .date-switch{margin-top:12px}
 .quick-card{padding:13px 17px}.quick-card h2,.quick-card p,.quick-art{display:none}.quick-card>div{width:100%}.quick-card .entry-tools>.button{flex:1;min-height:44px;font-size:13px}
 .summary-card{padding:18px 21px}.meal-progress{margin-top:14px}.summary-foot{font-size:12px}.overview{gap:10px;margin-bottom:22px}
}
@media(max-width:360px){.idea-hero h1{font-size:23px}.idea-hero{padding:23px 20px}.quick-card .entry-tools>.button{font-size:12px}}


/* v0.6: a small daily weight habit beside the existing meal diary. */
.body-card,.energy-card{background:var(--paper);border:1px solid var(--line);border-radius:23px;padding:23px 28px;margin-bottom:16px}
.body-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.body-card-heading h2{font-size:16px}.body-card-heading .text-action{display:inline-flex;align-items:center;gap:5px;font-size:12px;min-height:40px}.body-card-heading .icon{width:15px;height:15px}
.weight-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:45px;align-items:center;padding:5px 0 24px}
.weight-number{display:flex;align-items:baseline;gap:8px}.weight-number strong{font-size:48px;line-height:1.4;font-weight:650;letter-spacing:-1.5px;font-variant-numeric:tabular-nums}.weight-number span{font-size:14px;color:var(--muted)}
.morning-weight p{font-size:12px;color:var(--muted);margin:1px 0 12px}.morning-weight .button{min-height:40px;padding:8px 23px}
.trend-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:8px}.trend-top .text-action{display:flex;align-items:center;gap:4px;font-size:12px;min-height:38px}.trend-top .icon{width:13px}
.weight-chart{width:100%;height:105px;overflow:visible}.weight-chart polyline{fill:none;stroke:#529276;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.weight-chart circle{fill:#287653;stroke:#fff;stroke-width:1.5}.weight-chart .chart-guide{fill:none;stroke:#e9eee7;stroke-width:1;stroke-dasharray:3 4}.weight-chart text{font-size:9px;fill:#839188;font-family:inherit}.weight-chart-empty{height:105px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#8d9b91;border-bottom:1px dashed var(--line)}
.body-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);padding-top:16px;gap:12px}.body-stats small{display:block;color:var(--muted);font-size:12px;margin-bottom:3px}.body-stats strong{font-size:18px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.body-stats em{font-size:11px;font-style:normal;font-weight:400;color:var(--muted)}.body-stats button{text-align:left;padding:0;min-height:47px}.body-stats .icon{width:12px;height:12px;margin-left:5px;color:var(--muted)}.body-stats .change-weight{font-size:16px;color:var(--green)}
.energy-card{background:#eef4eb;border-color:#e0e9dc;padding-top:17px;padding-bottom:17px}.energy-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:11px 0 18px;gap:12px}.energy-metrics>div,.energy-metrics>button{padding:0 20px 0 0;text-align:left;border-right:1px solid #dce7d6}.energy-metrics>:last-child{border:0;padding-right:0}.energy-metrics span{display:block;font-size:13px;color:#607660}.energy-metrics strong{display:block;font-size:33px;font-weight:650;line-height:1.6;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.energy-metrics small{display:block;font-size:11px;color:#7c8c77}.energy-metrics button:hover span{color:var(--green)}.energy-note{display:flex;align-items:center;gap:12px;border-top:1px solid #dce7d6;padding-top:13px}.energy-note .meal-progress{margin:0;width:60px;flex-shrink:0;gap:4px}.energy-note .meal-progress span{background:#d7e2d0;height:5px}.energy-note .meal-progress .done{background:#428863}.energy-note p{font-size:11px;color:#71836d}.daily-entry{min-height:110px;margin-bottom:26px;padding:18px 27px}.daily-entry h2{font-size:16px}.daily-entry p{font-size:12px;margin-bottom:12px}.daily-entry .quick-art{width:90px;height:90px}
.weight-entry-intro{font-size:16px;color:var(--green);margin-bottom:23px}.form-intro{margin-bottom:20px}.calculation-list{margin:0}.calculation-list>div{margin-bottom:22px}.calculation-list dt{font-weight:650;margin-bottom:8px}.calculation-list dd{margin:0;font-size:13px;color:#718075;line-height:1.9}.weight-history>button{width:100%;display:flex;align-items:center;gap:18px;min-height:57px;text-align:left;border-bottom:1px solid var(--line)}.weight-history strong{margin-left:auto;font-weight:600}.weight-history small{font-weight:400;color:var(--muted)}.weight-history .icon{width:16px;color:var(--muted)}.fields .full{grid-column:1/-1}
@media(min-width:1000px){body[data-page="diary"] .page{max-width:1120px}.body-card{float:left;width:calc(52% - 9px);margin-right:18px;min-height:292px}.energy-card{display:flex;flex-direction:column;min-height:292px;width:calc(48% - 9px)}.energy-card .energy-metrics{margin:22px 0 24px;flex:1}.energy-metrics>div,.energy-metrics>button{padding-right:10px}.energy-metrics strong{font-size:30px}.daily-entry{clear:both}.weight-layout{gap:24px;grid-template-columns:.9fr 1fr}.body-stats strong{font-size:16px}.body-stats .change-weight{font-size:14px}.body-card,.energy-card{padding-left:24px;padding-right:24px}}
@media(max-width:760px){.body-card,.energy-card{border-radius:19px;padding:16px 19px;margin-bottom:12px}.body-card-heading h2{font-size:15px}.body-card-heading .text-action{min-height:36px;font-size:12px}.weight-layout{gap:20px;padding:1px 0 17px;grid-template-columns:1fr 1fr}.weight-number strong{font-size:39px}.morning-weight p{font-size:11px;min-height:18px;margin-bottom:9px}.morning-weight .button{font-size:12px;min-height:42px;padding:8px 19px}.trend-top{font-size:11px;display:block}.trend-top .text-action{font-size:11px;min-height:28px;padding:0}.weight-chart{height:76px}.weight-chart-empty{height:76px;font-size:11px;line-height:1.8;text-align:center}.body-stats{gap:8px;padding-top:13px}.body-stats small{font-size:11px}.body-stats strong{font-size:16px}.body-stats em{font-size:10px}.body-stats .change-weight{font-size:13px}.body-stats .icon{display:none}.energy-card{padding-top:12px;padding-bottom:14px}.energy-metrics{gap:9px;margin:8px 0 13px}.energy-metrics>div,.energy-metrics>button{padding-right:8px}.energy-metrics span{font-size:12px}.energy-metrics strong{font-size:28px;line-height:1.7}.energy-metrics small{font-size:10px;line-height:1.8}.energy-note{gap:10px;padding-top:10px;align-items:flex-start}.energy-note .meal-progress{margin-top:6px;width:43px;gap:3px}.energy-note p{font-size:11px;line-height:1.8}.daily-entry{min-height:0;padding:12px 16px;margin-bottom:23px}.daily-entry .entry-tools{display:flex;gap:9px}.daily-entry .entry-tools>.button{min-height:44px;font-size:13px}.body-card-heading .text-action .icon{width:13px}.weight-history>button{min-height:56px}}
@media(max-width:360px){.body-card,.energy-card{padding-left:15px;padding-right:15px}.weight-layout{gap:12px}.body-stats strong{font-size:14px}.body-stats .change-weight{font-size:12px}.body-stats small{font-size:10px}.energy-metrics strong{font-size:24px}.energy-metrics span{font-size:11px}.energy-metrics small{font-size:9px}.weight-number strong{font-size:35px}.morning-weight p{font-size:10px}}

.energy-metrics>button{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.daily-summary-grid{margin-bottom:16px}
@media(min-width:1000px){.daily-summary-grid{display:grid;grid-template-columns:1.04fr 1fr;gap:18px}.daily-summary-grid .body-card,.daily-summary-grid .energy-card{float:none;width:auto;margin:0;min-height:0}.daily-summary-grid .energy-card{display:flex;flex-direction:column}.daily-summary-grid .energy-metrics{flex:1;align-items:start}}
@media(max-width:760px){.daily-summary-grid{margin-bottom:12px}.daily-summary-grid .energy-card{margin-bottom:0}}
.weight-chart text{font-size:16px}@media(max-width:760px){.weight-chart text{font-size:20px}}

/* Review corrections: retain the diary hierarchy and make routine controls explicit. */
:root{--muted:#65756a}.meal-actions .meal-status-button{border:1px solid #b9ccba;color:#356149;font-size:12px;min-height:44px;padding:8px 12px;white-space:normal}.meal-actions .confirmed{background:#e8f2e6;border-color:#b1c9ab}.copy-meal{font-size:12px;min-height:40px;margin-top:5px;color:#536f5b}.meal-actions{gap:10px}.meal-actions>.button{flex:1}
.amount-stepper{display:flex;align-items:center;border:1px solid #dde5d6;border-radius:11px;background:#fbfcf8;min-width:0;overflow:hidden}.amount-stepper>.button{flex:0 0 40px;padding:0;min-height:46px;border-radius:0;font-size:22px;background:#edf3e7}.amount-stepper>input{border:0;min-width:0;padding:10px 4px;text-align:center;border-radius:0;appearance:textfield}.amount-stepper>input::-webkit-inner-spin-button{appearance:none}.amount-food small{font-size:12px;color:#5c715f}.portion-presets button,.review-note,.ai-review .field,.review-energy,.record-text small,.choice-energy span{font-size:12px}
.recent-section{margin-bottom:18px}.recent-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px;font-size:13px}.recent-heading small{font-size:12px;color:var(--muted)}.recent-foods{display:flex;gap:9px;overflow-x:auto;padding:2px 0 8px}.recent-food{border:1px solid var(--line);background:#fff;border-radius:13px;min-width:170px;padding:10px;display:flex;gap:9px;align-items:center;text-align:left;flex-shrink:0}.recent-food .food-image{width:42px;height:42px;border-radius:10px}.recent-food span{min-width:0;flex:1}.recent-food strong{display:block;font-size:13px;max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-food small{display:block;color:var(--muted);font-size:12px}.recent-food>.icon{width:16px;color:var(--green)}.deleted-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.deleted-row>span{flex:1;min-width:0}.deleted-row strong{font-size:14px;display:block;overflow-wrap:anywhere}.deleted-row small{font-size:12px;color:var(--muted);display:block;margin-top:4px}.deleted-row .button{font-size:12px;min-height:44px}.protein-summary{font-size:12px;color:#5b7059;margin-top:10px}.chart-scale{font-size:12px;color:var(--muted);display:block;text-align:center}.weight-chart{height:85px}.energy-card .energy-metrics{flex:0;margin:16px 0 18px}
@media(max-width:760px){
 .topbar{height:58px}.page{margin-top:6px}body[data-page="diary"] .page-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}body[data-page="diary"] .page-heading h1{font-size:21px;letter-spacing:-.5px}body[data-page="diary"] .page-heading .date-switch{margin:0;flex-shrink:0}.date-switch .icon-button{width:36px;height:42px}.date-label{padding:0 4px;font-size:12px}
 .body-card{padding:11px 16px}.body-card-heading h2{font-size:14px}.body-card-heading .text-action{min-height:30px}.weight-layout{grid-template-columns:minmax(0,1fr) 115px;gap:13px;padding:1px 0 10px}.morning-weight{display:grid;grid-template-columns:1fr auto;gap:0 7px;align-items:center}.weight-number strong{font-size:32px;letter-spacing:-1px}.weight-number{gap:4px}.weight-number span{font-size:12px}.morning-weight .button{grid-column:2;grid-row:1;font-size:12px;padding:8px 10px;min-height:44px;white-space:nowrap}.morning-weight p{grid-column:1/-1;font-size:12px;margin:0;line-height:1.6;min-height:0}.trend-top{display:flex;justify-content:center}.trend-top>span{display:none}.trend-top .text-action{font-size:12px;min-height:24px}.weight-chart{height:40px;display:block}.weight-chart-empty{height:42px;font-size:12px;border:0}.chart-scale{font-size:12px;line-height:1.4}.weight-chart text{font-size:22px}.body-stats{padding-top:9px;gap:6px}.body-stats small{font-size:12px;margin:0}.body-stats strong{font-size:15px;line-height:1.7}.body-stats .change-weight{font-size:12px}.body-stats button{min-height:43px}
 .energy-card{padding:10px 16px 12px}.energy-metrics,.energy-card .energy-metrics{margin:4px 0 10px;gap:9px}.energy-metrics strong{font-size:27px;line-height:1.55}.energy-metrics span{font-size:12px}.energy-metrics small{font-size:12px;line-height:1.6}.energy-note{padding-top:9px;gap:7px}.energy-note p{font-size:12px;line-height:1.6}.energy-note .meal-progress{width:36px}.daily-summary-grid{margin-bottom:10px}.daily-entry{padding:10px 12px;margin-bottom:14px;border-radius:14px}.daily-entry .entry-tools>.button{font-size:13px;min-height:44px}.section-heading{margin-bottom:12px}.section-heading small{display:none}.meal-card{padding:15px 17px}.meal-head{margin-bottom:5px}.meal-actions .button,.meal-actions .text-action{font-size:12px;padding:8px 9px}.copy-meal{margin-top:2px}.record-text small{font-size:12px}.record-row{padding-top:12px;padding-bottom:12px}.energy-card .protein-summary{margin-top:7px}.recent-foods{margin-right:-2px}.recent-section{margin-bottom:12px}
}
@media(max-width:360px){body[data-page="diary"] .page-heading h1{font-size:17px}.date-switch .icon-button{width:31px}.date-label{padding:0 3px}.body-card,.energy-card{padding-left:12px;padding-right:12px}.weight-layout{grid-template-columns:1fr 91px;gap:8px}.weight-number strong{font-size:27px}.morning-weight .button{padding:8px 7px;font-size:12px}.weight-number span{display:none}.body-stats strong{font-size:14px}.body-stats .change-weight{font-size:12px}.body-stats small{font-size:11px}.energy-metrics strong{font-size:24px}.energy-metrics small{font-size:11px}.chart-scale{font-size:11px}.trend-top .text-action{font-size:12px}.amount-stepper>.button{flex-basis:34px}.amount-stepper input{font-size:16px}}


.history-chart{margin-bottom:20px}.history-chart .weight-chart{height:140px}.history-chart .chart-scale{font-size:12px}
@media(max-width:760px){.body-card .weight-chart,.body-card .chart-scale,.body-card .weight-chart-empty{display:none}.body-card .weight-trend{align-self:center}.body-card .trend-top .text-action{min-height:44px}.weight-layout{padding-bottom:8px}.daily-entry{background:transparent;border-radius:0;padding:0;margin-top:4px;margin-bottom:13px}.energy-metrics>div,.energy-metrics>button{padding-right:4px}.energy-note .meal-progress{display:none}.history-chart .weight-chart{display:block;height:140px}.history-chart .chart-scale{display:block}.energy-card .energy-note p{font-size:12px}}

.weight-chart .chart-tick{font-size:14px}@media(max-width:360px){.weight-number span{display:inline;font-size:11px}.weight-number strong{font-size:25px}}
@media(max-width:760px){.date-switch .icon-button{width:44px;height:44px}}@media(max-width:360px){.body-stats small,.energy-metrics small,.chart-scale{font-size:12px}}

/* Manual activity details, separate from the whole-day energy estimate. */
.activity-strip{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:6px 0 0;margin-top:8px;border-top:1px solid #dce7d6;text-align:left;font-size:12px}.activity-strip-title{display:flex;align-items:center;gap:6px;color:#526d58}.activity-strip-title .icon{width:17px;height:17px}.activity-strip strong{font-weight:650;font-size:15px;line-height:1.3;font-variant-numeric:tabular-nums}.activity-strip small{font-size:12px;color:var(--muted)}.activity-strip-link{display:flex;align-items:center;gap:2px;color:var(--green);white-space:nowrap}.activity-strip-link .icon{width:14px;height:14px}
.activity-overview{display:flex;justify-content:space-between;align-items:center;gap:14px}.activity-overview p{color:var(--muted);font-size:12px;margin-bottom:5px}.activity-overview strong{font-size:32px;font-weight:650;color:var(--green);margin-right:8px;line-height:1.5;font-variant-numeric:tabular-nums}.activity-overview>div>div>span{display:block;font-size:12px;color:var(--muted)}.activity-overview>.button{font-size:12px;flex-shrink:0;min-height:44px}.activity-basis{padding:10px 12px;border-radius:10px;background:#f2f6ec;margin:15px 0 9px;font-size:12px}
.activity-row{display:flex;align-items:center;gap:10px;min-width:0;border-bottom:1px solid var(--line)}.activity-row-main{display:flex;align-items:center;gap:11px;min-width:0;text-align:left;width:100%;padding:16px 0;min-height:76px}.activity-symbol{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#edf3e7;color:var(--green)}.activity-symbol .icon{width:23px;height:23px}.activity-row-text{flex:1;min-width:0}.activity-row-text strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}.activity-row-text small{font-size:12px;line-height:1.7;color:var(--muted);display:block;margin-top:2px;overflow-wrap:anywhere}.activity-row-kcal{font-size:16px;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}.activity-row-kcal small{font-size:11px;font-weight:400;color:var(--muted)}.activity-row-main>.icon{width:15px;height:15px;color:var(--muted);flex-shrink:0}.activity-empty{padding:35px 20px;text-align:center;color:var(--muted)}.activity-empty>.icon{width:38px;height:38px;margin-bottom:13px;color:#7a9c70}.activity-empty h3{font-weight:600;color:var(--ink);margin-bottom:7px}.activity-empty p{font-size:12px}.activity-list-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;font-size:12px;color:var(--muted)}.activity-list-footer .button{min-height:44px;font-size:12px;padding-left:0}.activity-list-footer>span{text-align:right}
#activity-deleted-list .activity-row{padding:14px 0;flex-wrap:wrap}#activity-deleted-list .activity-row>.button{min-height:44px;font-size:12px;padding:8px 12px}#activity-deleted-list .activity-row-kcal{font-size:14px}#activity-form .field{min-width:0}#activity-form input,#activity-form select{min-width:0}
@media(max-width:760px){.activity-strip{padding-top:5px;min-height:44px;margin-top:6px}.activity-strip strong{font-size:14px}.activity-overview strong{font-size:30px}.activity-row-main{padding:14px 0}.activity-row-main .activity-symbol{width:36px;height:36px;flex-basis:36px}.activity-row-text strong{font-size:14px}.activity-row-text small{font-size:12px}.activity-row-kcal{font-size:15px}.activity-row-kcal small{display:block;text-align:right;font-size:12px}.activity-row-main{gap:9px}.activity-list-footer{font-size:12px}.activity-empty{padding:30px 15px}}
@media(max-width:360px){.activity-strip{gap:6px}.activity-strip-title{gap:4px}.activity-strip-link{font-size:12px}.activity-overview{gap:9px}.activity-overview .button{padding:9px 12px}.activity-row-main{gap:7px}.activity-row-main>.icon{display:none}#activity-deleted-list .activity-symbol{display:none}}


/* v0.8: daily actions first, concise feedback, detailed charts in their sheet. */
body[data-page="diary"] .page-heading{align-items:center;margin-bottom:12px}
.diary-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.diary-actions h2{font-size:15px;font-weight:600;margin:0}
.diary-actions .entry-tools{display:flex;gap:8px}
.diary-actions .button{min-height:44px;font-size:13px;padding:9px 14px}
.feedback-summary .compact-body{padding:12px 18px}
.compact-weight-row,.compact-weight-value,.compact-weight-actions{display:flex;align-items:center;gap:8px}
.compact-weight-row{justify-content:space-between;flex-wrap:wrap;min-height:44px;column-gap:12px;row-gap:8px}
.compact-weight-value{flex:1 1 auto;flex-wrap:wrap;gap:5px;min-width:0}
.compact-weight-value h2{font-size:12px;font-weight:500;color:var(--muted);margin:0 5px 0 0}
.compact-weight-value strong{font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.compact-weight-value>span{font-size:12px;color:var(--muted)}
.compact-weight-actions{gap:9px;flex-shrink:0;margin-left:auto}
.compact-weight-actions>button{min-width:44px}
.compact-weight-actions .button{min-height:44px;padding:8px 12px;font-size:12px;line-height:1.5}
.compact-weight-actions .text-action{min-height:44px;padding:8px 6px;font-size:12px;white-space:nowrap}
.weight-context{display:flex;align-items:center;gap:0 13px;flex-wrap:wrap;color:var(--muted);font-size:12px;line-height:1.7;margin-top:3px}
.weight-context .text-action{font-size:12px;min-height:32px;padding:3px 0;display:inline-flex;align-items:center;gap:3px}
.weight-context .icon{width:12px;height:12px}
.weight-context>span{overflow-wrap:anywhere}
.feedback-summary .compact-energy{padding:12px 18px}
.compact-energy .body-card-heading{min-height:24px}
.compact-energy .body-card-heading h2{font-size:14px}
.compact-energy .body-card-heading .text-action{font-size:12px;min-height:32px}
.compact-energy .energy-metrics{margin:4px 0 7px;gap:8px}
.compact-energy .energy-metrics strong{font-size:29px;line-height:1.4}
.compact-energy .energy-metrics span,.compact-energy .energy-metrics small{font-size:12px}
.compact-energy .energy-note{display:flex;align-items:center;gap:8px;padding-top:7px;margin-top:6px}
.compact-energy .energy-note p{font-size:12px;line-height:1.7}
.meal-completion{height:5px;background:#dce7d6;border-radius:8px;width:42px;flex:0 0 42px;overflow:hidden}
.meal-completion>span,.goal-progress>span{display:block;height:100%;background:#688e60;border-radius:inherit}
.diet-goal{font-size:12px;color:#526d58;margin-top:8px}
.diet-goal>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px}
.diet-goal .text-action{font-size:12px;min-height:32px;padding:0}
.diet-goal strong{font-weight:600}
.goal-progress{height:4px;border-radius:5px;overflow:hidden;background:#e1e9d9;margin:2px 0 4px}
.diet-goal>small{font-size:12px;color:var(--muted);display:block;line-height:1.6}
.compact-energy .protein-summary{margin-top:6px;line-height:1.6}
.compact-energy .activity-strip{padding-top:4px;margin-top:5px}
.compact-energy .activity-strip strong{font-size:13px;font-weight:500;color:#526d58}
.activity-strip-title>span{line-height:1.3}
.activity-strip-title small{display:block;font-size:12px;color:var(--muted);font-weight:400}
.partial-calculation{padding:14px;border-radius:12px;background:#f2f5ed;margin-bottom:15px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px}
.partial-calculation strong{font-size:22px;font-variant-numeric:tabular-nums}
.partial-calculation small{flex-basis:100%;font-size:12px;color:var(--muted);line-height:1.7}
.weekly-review{margin-top:26px;background:#fff;border:1px solid var(--line);border-radius:19px;padding:22px 24px}
.week-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.week-heading h2{font-size:17px;font-weight:600;margin:0}
.week-heading>span,.week-basis,.week-detail{font-size:12px;color:var(--muted);line-height:1.8}
.week-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.week-metrics>div>span{font-size:12px;color:var(--muted);display:block}
.week-metrics strong{display:block;font-size:25px;font-weight:600;line-height:1.6;font-variant-numeric:tabular-nums}
.week-metrics strong small{font-size:12px;font-weight:400;color:var(--muted)}
.week-basis{margin-top:10px}
.week-detail{border-top:1px solid var(--line);padding-top:12px;margin-top:12px;display:flex;flex-wrap:wrap;gap:3px 20px}
.week-detail strong{font-weight:500}
.copy-meal{font-weight:600}
@media(min-width:1000px){
 .feedback-summary{display:block}
 .feedback-summary .compact-body{margin-bottom:12px}
 .feedback-summary .compact-energy .energy-metrics{flex:0}
 .feedback-summary .compact-body .weight-context{gap:0 24px}
 .compact-energy .energy-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 .diary-actions{gap:8px;margin-bottom:10px}
 .diary-actions h2{font-size:13px;max-width:100px;line-height:1.6}
 .diary-actions .entry-tools{gap:7px}
 .diary-actions .button{font-size:12px;padding:8px 11px}
 .feedback-summary .compact-body,.feedback-summary .compact-energy{padding:9px 15px}
 .feedback-summary .compact-body{margin-bottom:10px}
 .compact-weight-value strong{font-size:26px}
 .compact-weight-actions{gap:6px}
 .compact-weight-actions .button{padding:8px 10px}
 .weight-context{gap:0 11px;margin-top:0}
 .compact-energy .energy-metrics strong{font-size:27px}
 .compact-energy .energy-metrics small{line-height:1.5}
 .compact-energy .energy-note{padding-top:6px;margin-top:5px}
 .diet-goal{margin-top:3px}
 .weekly-review{padding:18px 17px;margin-top:20px;border-radius:16px}
 .week-heading{margin-bottom:13px}
 .week-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
 .week-metrics strong{font-size:24px}
}
@media(max-width:360px){
 .diary-actions h2{max-width:76px;font-size:12px}
 .diary-actions .button{padding:8px 9px}
 .feedback-summary .compact-body,.feedback-summary .compact-energy{padding-left:12px;padding-right:12px}
 .compact-weight-value{gap:3px}
 .compact-weight-value h2{font-size:12px;margin-right:1px}
 .compact-weight-value strong{font-size:23px}
 .compact-weight-actions{gap:3px}
 .compact-weight-actions .button{padding:8px}
 .compact-weight-actions .text-action{font-size:12px}
 .compact-energy .energy-metrics strong{font-size:24px}
 .compact-energy .energy-metrics>div,.compact-energy .energy-metrics>button{padding-right:3px}
 .compact-energy .energy-note{gap:6px}
 .meal-completion{width:25px;flex-basis:25px}
 .week-heading>span{font-size:12px}
}

.week-value{display:flex;align-items:baseline;gap:4px}.week-value>small{font-size:12px;font-weight:400;color:var(--muted)}

.diary-actions h2{white-space:nowrap;max-width:none}
.diet-goal>div:first-child{gap:6px;flex-wrap:wrap}.diet-goal small{font-size:12px;color:var(--muted)}
.diet-goal .text-action{margin-left:auto}
body[data-page="diary"] .meal-actions{border-top:0;padding-top:3px;margin-top:3px;margin-bottom:8px}
body[data-page="diary"] .meal-head{margin-bottom:8px}

/* Phone forms: let fields shrink before their native controls dictate the grid. */
.fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.field,.fields>div,.search-box,.select-top .context,.basket-summary,.basket-edit{min-width:0}
.field input,.field select,.field textarea{min-width:0;max-width:100%}
.field input[type="date"]{min-inline-size:0;max-inline-size:100%}
.field input[type="date"]::-webkit-date-and-time-value{text-align:left;min-width:0}
.field input[type="date"]::-webkit-datetime-edit{min-width:0;padding:0}
#weight-form .fields{grid-template-columns:minmax(0,1fr)}
.weight-entry-intro{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:18px}
.review-title{align-items:flex-start}
.review-title input,.review-title .food-image{flex-shrink:0}
.review-title input{margin-top:12px}
.review-title>span{min-width:0;overflow-wrap:anywhere;align-self:center}
.review-food-name{grid-column:1/-1}
.review-toolbar,.review-actions,[data-review-actions]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.review-toolbar{margin:16px 0}
.review-actions,[data-review-actions]{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.review-toolbar .button,.review-actions .button,[data-review-actions] .button{min-height:44px;font-size:12px;white-space:normal;line-height:1.6;padding:9px 12px}
.review-toolbar .button{flex:1 1 135px}
.review-actions .button,[data-review-actions] .button{flex:1 1 105px}
.review-energy,.review-note,.ai-notice,.amount-food>div,.food-choice .record-text small,.choice-energy{overflow-wrap:anywhere}
.amount-food>div{min-width:0}
.basket-edit,.basket-summary>span:last-child{min-width:0;overflow-wrap:anywhere}
.basket-badge{flex-shrink:0}
@media(max-width:760px){
 body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
 .selecting{padding-bottom:0}
 .selecting .page{padding-bottom:calc(140px + env(safe-area-inset-bottom))}
 .search-box input,.select-top select,.field input,.field select,.field textarea{font-size:16px;min-width:0}
 .fields>.field:has(>input[type="date"]){grid-column:1/-1}
 .search-row>.button{flex-shrink:0;min-height:48px;font-size:12px}
 .select-top{flex-wrap:wrap;row-gap:12px;align-items:center}
 .select-top .context{flex:1 1 150px}
 .select-top .entry-tools{flex:0 0 auto}
 .select-top .entry-tools .button{font-size:12px;min-height:44px}
 .search-box{min-width:0}
 .food-choice{min-width:0}
 .food-choice .record-text{min-width:0}
 .food-choice .round-add{margin-left:0}
 .basket-bar{gap:10px}
 .basket-summary{text-align:left;padding:0}
 .basket-bar>.button{flex-shrink:0;min-width:122px}
 .basket-summary small{font-size:12px}
 #sheet{max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));overflow:hidden;overscroll-behavior:contain}
 #sheet-content{display:flex;flex-direction:column;max-height:inherit;min-height:0}
 #sheet-content>.sheet-head{position:static;flex-shrink:0}
 #sheet-content>.sheet-head h2{min-width:0;overflow-wrap:anywhere}
 #sheet-content>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 #sheet-content>.sheet-body,#sheet-content>form>.sheet-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:18px;-webkit-overflow-scrolling:touch}
 #sheet-content>form>.sheet-footer{position:static;flex-shrink:0;flex-wrap:wrap;gap:8px}
 .sheet-footer>.button{min-width:0;white-space:normal}
 .sheet-footer>.plain{flex:0 1 auto}
 .ai-review{padding:14px}
 .ai-review .fields{gap:14px 12px}
 .ai-review .field{line-height:1.7}
 .ai-review .review-title{margin-bottom:16px}
 .review-toolbar{gap:9px;margin:14px 0}
 .photo-controls{flex-wrap:wrap}
 .photo-controls .file-label{flex:1 1 130px;white-space:normal}
 .sheet-body .help{overflow-wrap:anywhere}
 .compact-weight-row{gap:6px}
 .compact-weight-actions{gap:4px}
 .compact-weight-value{row-gap:3px}
 .compact-energy .energy-metrics>div,.compact-energy .energy-metrics>button{min-width:0}
 .compact-energy .energy-metrics span,.compact-energy .energy-metrics small{overflow-wrap:anywhere}
 .activity-strip-title,.activity-strip>span{min-width:0}
 .activity-strip-title{flex-shrink:1}
 .activity-strip-link{flex-shrink:0}
 .toast{bottom:calc(87px + env(safe-area-inset-bottom));max-height:35dvh;overflow-y:auto}
 .selecting .toast{bottom:calc(110px + env(safe-area-inset-bottom))}
}
@media(max-width:380px){
 .select-top .context{flex-basis:160px}
 .select-top>.entry-tools{width:100%;padding-left:49px;justify-content:flex-end;gap:8px}
 .select-top>.entry-tools .button{flex:1}
 .ai-review .field:has(>input[type="date"]),.ai-review .field:has(>select[id^="rv-meal-"]),#ai-form .field:has(>#entry-date),#ai-form .field:has(>#entry-meal){grid-column:1/-1}
 .ai-review .review-actions .button,.ai-review [data-review-actions] .button{flex-basis:100px}
}
@media(max-height:500px) and (max-width:950px){
 #sheet{max-height:calc(100dvh - 8px);border-radius:16px 16px 0 0}
 .sheet-head{padding-top:8px;padding-bottom:8px}
 .sheet-body{padding-top:14px;padding-bottom:14px}
 .sheet-footer{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .field input,.field select,.field textarea,.search-box input{font-size:16px}
}

.review-header{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.review-header .review-title{flex:1;min-width:0;margin:0;align-items:center}
.review-header .review-title input{margin:0;flex:0 0 18px}
.review-header>.icon-button{color:#926b61}
.review-header .review-title>span{line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.review-estimate-result:empty{display:none}
.review-missing{display:flex;gap:8px;flex-wrap:wrap;padding:14px;border:1px solid #cbdcc8;border-radius:12px;background:#f2f7ee;margin-bottom:16px}
.review-missing>p{flex-basis:100%;font-size:12px;line-height:1.8;margin-bottom:2px}
.review-missing .button{font-size:12px;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.review-description{margin:0 0 16px}
.review-description>p{margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.review-library{padding:14px;border-radius:12px;background:#f4f7ef;margin-top:14px;min-width:0}
.review-library .help{margin:0 0 12px}
.review-library>.button{margin-top:12px;width:100%;white-space:normal;font-size:12px}
.form-intro{margin:0 0 16px}
.ai-review.excluded{background:#f7f8f5}
.ai-review.excluded .fields,.ai-review.excluded .review-energy{opacity:.65}
.review-empty{padding:20px 0}
@media(max-width:760px){.review-header .review-title{margin-bottom:0}.review-header .review-title .food-image{width:38px;height:38px}.review-header{gap:6px}.review-library{padding:12px}.review-missing .button{flex:1 1 110px}}

/* Keep meals in reading order; extra foods only increase their own meal. */
.meal-card,.meal-head,.meal-title{min-width:0}
.meal-records{display:grid;grid-template-columns:minmax(0,1fr);margin-top:8px}
.meal-records>.record-row{min-width:0}
.meal-records>.record-row:first-child{margin-top:0}
.meal-records>.meal-empty{grid-column:1/-1}
body[data-page="diary"] .meal-actions>.button{min-height:44px}
@media(min-width:1000px){
 .meal-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px}
 body[data-page="diary"] .meal-head{margin-bottom:0}
 body[data-page="diary"] .meal-actions{min-width:310px;margin:0;padding:0;border:0}
 .meal-records{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;margin-top:14px}
 .meal-records>.record-row:only-child{grid-column:1/-1}
 .meal-card>.copy-meal{grid-column:1/-1;justify-self:start}
}

/* Food browsing: categories and results have their own stable scroll positions. */
body[data-page="foods"],body[data-page="select"]{overflow:hidden}
body[data-page="foods"] .page,body[data-page="select"] .page{height:calc(100dvh - 112px);display:flex;flex-direction:column;min-height:0;padding-bottom:22px}
body[data-page="select"] .page{padding-bottom:112px}
body[data-page="foods"] .page-heading{margin-bottom:16px}
body[data-page="foods"] .page-heading h1{font-size:28px}
body[data-page="foods"] .page-heading p{font-size:12px;margin-top:4px}
body[data-page="foods"] .page>.page-heading,body[data-page="select"] .page>.select-top,.page>.recent-section,.page>.search-row{flex-shrink:0}
body[data-page="foods"] .search-row,body[data-page="select"] .search-row{margin-bottom:14px}
.food-browser{display:grid;grid-template-columns:156px minmax(0,1fr);flex:1;min-height:140px;min-width:0;border:1px solid var(--line);border-radius:18px;background:white;overflow:hidden}
.food-categories.chips{display:flex;flex-direction:column;gap:5px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px;background:#f0f3eb;border-right:1px solid var(--line);min-height:0;min-width:0}
.food-categories .chip{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-shrink:0;border:0;border-radius:11px;min-height:48px;padding:10px 12px;white-space:normal;text-align:left;font-size:13px;line-height:1.5;color:#687d6a;background:transparent}
.food-categories .chip span{min-width:0;overflow-wrap:anywhere}
.food-categories .chip small{font-size:11px;font-weight:400;color:#879482;font-variant-numeric:tabular-nums}
.food-categories .chip.active{background:white;color:var(--green);font-weight:650;box-shadow:0 2px 8px #3b583a08}
.food-categories .chip.active small{color:#5b8364}
.food-panel{overflow:auto;overscroll-behavior:contain;min-width:0;min-height:0;scrollbar-width:thin;scroll-padding-top:55px}
.food-results-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:0;z-index:1;background:#fffefb;border-bottom:1px solid var(--line);min-height:51px;padding:12px 20px}
.food-results-heading h2{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.food-results-heading>span{font-size:12px;color:var(--muted);flex-shrink:0}
.food-panel .food-list{border:0;border-radius:0}
.food-panel .food-choice{min-width:0;padding:15px 20px;gap:13px}
.food-panel .food-choice .food-image{width:54px;height:54px;flex-shrink:0}
.food-panel .food-choice .record-text{min-width:0}
.food-panel .food-choice .record-text strong{font-size:14px;line-height:1.6}
.food-panel .food-choice .record-text small{font-size:12px;line-height:1.6;margin-top:3px}
.food-panel .choice-energy{font-size:13px;line-height:1.7;margin-top:5px;overflow-wrap:anywhere}
.food-panel .choice-energy span{font-size:12px}
.food-panel .round-add{flex-shrink:0;margin-left:0;width:36px;height:36px}
.food-panel .list-empty{padding:35px 16px}
@media(max-width:760px){
 body[data-page="foods"],body[data-page="select"]{padding-bottom:0}
 body[data-page="foods"] .page{height:calc(100dvh - 58px);margin-top:0;padding-top:10px;padding-bottom:calc(82px + env(safe-area-inset-bottom))}
 body[data-page="select"] .page{height:100dvh;padding:16px 14px calc(110px + env(safe-area-inset-bottom));margin:0}
 body[data-page="foods"] .page-heading{margin-bottom:13px}
 body[data-page="foods"] .page-heading h1{font-size:24px}
 body[data-page="select"] .select-top{margin-bottom:13px}
 .food-browser{grid-template-columns:78px minmax(0,1fr);border-radius:15px}
 .food-categories.chips{padding:7px 5px;gap:3px}
 .food-categories .chip{flex-direction:column;justify-content:center;gap:1px;min-height:59px;font-size:12px;line-height:1.5;text-align:center;padding:7px 4px;border-radius:9px}
 .food-categories .chip small{font-size:11px;line-height:1.4}
 .food-results-heading{min-height:45px;padding:10px 12px;gap:5px}
 .food-results-heading h2{font-size:13px}
 .food-results-heading>span{font-size:11px}
 .food-panel .food-choice{padding:13px 11px;gap:9px;align-items:flex-start}
 .food-panel .food-choice .food-image{width:42px;height:42px;border-radius:11px;margin-top:2px}
 .food-panel .food-choice .record-text strong{font-size:13px;line-height:1.6}
 .food-panel .food-choice .record-text small{font-size:12px;line-height:1.6}
 .food-panel .round-add{width:27px;height:27px;margin-top:9px}
 .food-panel .round-add .icon{width:17px;height:17px}
 .food-panel .choice-energy{font-size:12px;margin-top:5px}
 .food-panel .choice-energy span{font-size:11px}
 .food-panel .list-empty{padding:24px 12px;font-size:12px}
 .food-panel .list-empty .button{white-space:normal;font-size:12px;padding:10px}
}
@media(max-width:360px){
 .food-browser{grid-template-columns:68px minmax(0,1fr)}
 .food-panel .food-choice{padding:12px 9px;gap:7px}
 .food-panel .food-choice .food-image{width:36px;height:36px;border-radius:9px}
 .food-panel .round-add{width:24px;height:24px}
 .food-results-heading{padding-left:10px;padding-right:10px}
 body[data-page="foods"] .search-row>.button{padding:9px 8px;gap:4px;font-size:12px}
}
@media(max-height:600px){
 body[data-page="foods"],body[data-page="select"]{overflow:auto}
 body[data-page="foods"] .page,body[data-page="select"] .page{height:auto;min-height:calc(100dvh - 88px)}
 .food-browser{height:320px;flex:none}
}

img.icon.image-icon{width:20px;height:20px;flex-shrink:0;object-fit:contain;display:block}

.mode-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;line-height:1.35;min-height:44px}
.mode-tabs button .icon,.mode-tabs button img.icon{flex:0 0 18px;width:18px;height:18px}
.ai-insight-card{border-color:#dfe9dc;background:linear-gradient(145deg,#fbfdf8,#f4f8f1)}.ai-insight-card .title{margin:0}.insight-summary{font-size:16px;line-height:1.65;font-weight:650;color:var(--green);margin:10px 0}.insight-advice{margin:0;line-height:1.65}.insight-period-yesterday{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.activity-energy-note{font-size:11px;color:var(--muted);line-height:1.65;margin-top:10px;padding:9px 11px;border-radius:10px;background:#f5f7f2}
.chart-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.chart-detail-grid>div{display:flex;flex-direction:column;gap:4px;padding:11px;border-radius:10px;background:#f5f7f2}.chart-detail-grid span{font-size:11px;color:var(--muted)}.chart-detail-grid b{font-size:14px}.chart-weight-value{font-size:34px;font-weight:700;color:var(--green);margin:12px 0}
.meal-frequency-row{padding:10px 0;border-bottom:1px solid var(--line)}.meal-frequency-row:last-of-type{border-bottom:0}.meal-frequency-row .row{font-size:12px}.meal-frequency-row .progress{height:5px;margin:7px 0}.meal-frequency-row .mini{line-height:1.6}
.template-icons{display:flex;align-items:center;flex:0 0 auto}.template-icons .food-image{width:38px;height:38px;border-radius:10px;border:2px solid white;margin-right:-8px}.template-icons .template-more{font-size:10px;color:var(--muted);padding-left:11px}
.nutrient-summary-counts{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:var(--muted);padding:8px 0}.nutrient-average{display:flex;justify-content:space-between;gap:12px;padding:10px 0}.nutrient-average .big{font-size:25px;font-weight:700;color:var(--green);margin-top:4px}.week-saved-plans-entry{margin:8px 0}

.activity-estimator{grid-column:1/-1;display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:2px 0}.activity-estimator .button{flex:0 0 auto;min-height:44px}.activity-estimator .help{flex:1 1 200px;min-width:0;margin:2px 0;line-height:1.55}
@media(max-width:420px){.activity-estimator{gap:8px}.activity-estimator .button{width:100%}.activity-estimator .help{flex-basis:100%}}
.food-photo-assist{border:1px solid #e1e8dc;border-radius:15px;padding:15px;margin:0 0 20px;background:#fbfcf8}.food-photo-heading{display:flex;align-items:center;gap:9px;color:var(--green);font-size:13px}.food-photo-heading .icon{width:19px;height:19px}.food-photo-disclosure{margin:11px 0 14px}.food-photo-controls{margin-bottom:11px}.food-photo-controls .file-label{min-height:44px}.food-photo-hint{margin-bottom:8px}.food-photo-status{margin:6px 0 10px;line-height:1.7}.food-photo-preview{max-height:230px;margin:0 auto 8px;display:block}.food-photo-actions{display:flex;justify-content:flex-start;margin-top:8px}.food-photo-actions .button{min-width:160px}.food-photo-result-heading{font-size:12px;font-weight:650;color:var(--green);margin:10px 0}.food-photo-candidates{display:grid;gap:9px}.food-photo-candidate{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:white}.food-photo-candidate>div{min-width:0}.food-photo-candidate strong{display:block;font-size:13px;overflow-wrap:anywhere}.food-photo-category{display:block;color:var(--muted);font-size:10px;margin-top:3px}.food-photo-candidate p{font-size:11px;line-height:1.65;color:#647466;margin-top:5px;overflow-wrap:anywhere}.food-photo-candidate .button{flex:0 0 auto;min-height:44px;padding:8px 12px;font-size:11px;white-space:normal}.food-photo-questions,.food-photo-candidates ul{padding-left:20px;margin:9px 0 0;color:var(--muted);font-size:11px;line-height:1.7}.food-photo-empty{font-size:11px;color:var(--muted);line-height:1.7;padding:10px 0}.food-photo-assist .file-label input{font-size:40px}
@media(max-width:420px){.food-photo-assist{padding:12px}.food-photo-controls .file-label{flex:1 1 100%;width:100%}.food-photo-candidate{align-items:stretch;flex-direction:column}.food-photo-candidate .button{width:100%}.food-photo-actions .button{width:100%}}
