/* Mobile food entry: stable search, readable rows and one clear save action. */
.entry-app{max-width:820px;margin:0 auto}.entry-heading{margin-bottom:22px}.entry-heading h2{font-size:32px;letter-spacing:-1px;margin-top:8px}.entry-heading p{color:#647365;margin:8px 0}.meal-switch{display:grid;grid-template-columns:repeat(4,1fr);padding:5px;border-radius:16px;background:#e8edde;gap:4px;margin-bottom:18px}.meal-switch button{min-height:46px;background:transparent;color:#54634f;border-radius:12px;font-size:14px;font-weight:600}.meal-switch button[aria-pressed=true]{background:#fffef9;color:#253c2e;box-shadow:0 3px 10px #19361b12}.entry-search{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid #a7ba93;border-radius:16px;padding:4px 14px}.entry-search>span{font-size:30px;color:#577546}.entry-search input{border:0;background:transparent;box-shadow:none;width:100%;min-width:0;padding:14px 0;font-size:17px;outline:none}.entry-search:focus-within{outline:3px solid #bad49a;outline-offset:2px}.entry-search button{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:#eef2e6;color:#36512e;font-size:24px}.entry-filters{display:grid;grid-template-columns:1.25fr 1fr;gap:12px;margin-top:16px}.entry-filters label{font-size:12px;color:#64745c;display:grid;gap:6px}.entry-filters select{width:100%;min-width:0;min-height:48px;padding:10px;font-size:15px;background:#fffefb}.entry-note{font-size:12px;color:#67715d;background:#eaf0df;border-radius:12px;padding:12px;line-height:1.5;margin-top:12px}.entry-tools{display:flex;gap:10px;flex-wrap:wrap;padding:12px 0}.entry-tools button{min-height:44px;padding:8px 12px;border-radius:12px;background:#edf2e6;color:#3d5b31;font-size:13px;font-weight:600}.entry-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}.entry-result-heading h3{font-size:18px;margin:0}.entry-result-heading>span{font-size:12px;white-space:nowrap;color:#68765f}.entry-list{display:grid;gap:10px}.entry-row.visual-food-card{display:flex;align-items:center;gap:8px;border:1px solid #dce4d5;border-radius:18px;background:#fffefb;box-shadow:none;transform:none!important;overflow:hidden;padding:10px}.entry-food{display:flex;align-items:center;gap:14px;min-width:0;flex:1;text-align:left;background:transparent;padding:0;color:#293e2f;transform:none!important}.entry-thumb{width:80px;height:80px;border-radius:13px;overflow:hidden;flex-shrink:0;background:#e7efdf;display:grid;place-items:center}.entry-thumb img{width:100%;height:100%;object-fit:cover}.entry-thumb .food-symbol{height:80px;font-size:32px;filter:none}.entry-row .food-card-copy{display:flex;flex-direction:column;gap:5px;padding:0;min-height:0;background:transparent!important;min-width:0}.entry-row .food-card-copy h3{font-size:15px;line-height:1.4!important;min-height:0;margin:0;overflow-wrap:anywhere;font-weight:700}.entry-serving{font-size:13px;color:#65755c}.entry-protein{font-size:12px;color:#537445}.entry-add{display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-width:66px;min-height:46px;border-radius:13px;background:#d7eab7;color:#29442c;font-size:14px;font-weight:700}.entry-add>span{font-size:20px}.entry-more{margin-top:25px;border-top:1px solid #d7e1cc;padding-top:18px}.entry-more summary,.portion-details summary{min-height:44px;cursor:pointer;font-size:14px;font-weight:600;color:#446038;line-height:1.5;padding:8px 0}.entry-more .meal-tray{position:static;width:100%;margin-top:16px}.entry-more #entry-combos{display:flex;gap:8px;flex-wrap:wrap}.entry-footnote{font-size:12px;line-height:1.6;color:#718068;margin:24px 0}.entry-more-results{margin-top:16px;min-height:48px}.entry-empty{border:1px dashed #b5c8a3;border-radius:16px;padding:24px;line-height:1.6}.entry-empty p{color:#6b7861}.portion-sheet>h2{font-size:25px;line-height:1.25;margin-top:10px}.portion-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:24px}.portion-presets button{background:#edf2e7;border:1px solid #d4dfc9;border-radius:13px;color:#435b36;padding:12px 7px;min-height:64px;font-size:14px}.portion-presets button small{display:block;margin-top:5px;color:#687b5b}.portion-presets button[aria-pressed=true]{border-color:#76984b;background:#dcebc9;box-shadow:inset 0 0 0 1px #76984b}.portion-sheet .quantity input{text-align:center;font-size:24px;min-height:54px}.portion-sheet .quantity button{height:52px;width:52px;font-size:26px}.portion-sheet .nutrition-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:18px}.portion-sheet .nutrition-preview span{font-size:12px;color:#64795a}.portion-sheet .nutrition-preview b{font-size:19px;color:#304a2c;margin-bottom:4px}.portion-submit{position:sticky;bottom:-1px;background:#fffdf8;padding:10px 0;z-index:2}.portion-submit .primary{min-height:52px;font-size:16px;margin:0;box-shadow:0 3px 0 #708c4f}.portion-details{margin-top:16px;border-top:1px solid #dce5d3;padding-top:10px}.portion-details .text-button,.portion-details .secondary{min-height:44px}.portion-details a{display:inline-block;padding:8px 0;color:#4c7438;font-size:14px}#modal .close{min-width:44px;min-height:44px;z-index:3;background:#fffdf8;border-radius:50%;top:8px;right:8px}
@media(max-width:800px){main{padding:20px 16px calc(96px + env(safe-area-inset-bottom))}.shell>aside{height:calc(74px + env(safe-area-inset-bottom));padding:7px 6px calc(7px + env(safe-area-inset-bottom))}.shell>aside nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.shell>aside nav button{width:100%;min-width:0;min-height:56px;padding:8px 2px;gap:5px}.shell>aside nav button span{font-size:10px;white-space:nowrap}.shell>aside nav button[data-tab=settings]{display:none}header{margin-bottom:22px}header h1{font-size:24px}header .eyebrow{font-size:10px}.entry-heading h2{font-size:27px}.entry-heading{margin-bottom:18px}.entry-heading .eyebrow{font-size:10px}.entry-heading p{font-size:14px}.entry-thumb{width:64px;height:70px}.entry-thumb .food-symbol{height:70px}.entry-food{gap:10px}.entry-row.visual-food-card{padding:9px;gap:6px;border-radius:16px}.entry-row .food-card-copy h3{font-size:14px}.entry-serving{font-size:12px}.entry-protein{font-size:11px}.entry-add{min-width:48px;width:48px;font-size:12px;flex-direction:column;gap:0;min-height:48px}.entry-add>span{display:none}.entry-filters{gap:8px}.entry-filters select{font-size:14px}.meal-switch button{font-size:13px}.entry-search input{font-size:16px}.entry-tools{gap:8px}.entry-tools button{font-size:12px;flex:1;padding:8px}.entry-result-heading h3{font-size:17px}dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - 24px);border-radius:24px 24px 0 0;padding:28px 20px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.portion-sheet>h2{font-size:23px;padding-right:22px}.portion-sheet .field{font-size:14px}.portion-sheet select{font-size:16px;min-height:48px}.form-grid input{min-width:0;font-size:16px}.form-grid{gap:0 12px}#toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px;line-height:1.4;width:max-content;max-width:calc(100% - 32px)}.profile-grid,.settings-grid{gap:16px}.section-heading{align-items:center}.checkin{min-height:110px}.checkin strong{font-size:20px}.journey{min-height:300px}.journey h2{font-size:29px}.journey-copy{max-width:65%}.avatar-space{top:80px;transform:scale(.65)}.scene-caption{max-width:none}.progress-stats .card{padding:12px}.progress-stats .card strong{font-size:20px}}
@media(max-width:370px){.entry-thumb{width:50px;height:64px}.entry-add{min-width:44px;width:44px}.entry-filters{grid-template-columns:1fr}.meal-switch button{font-size:12px}.entry-row .food-card-copy h3{font-size:13px}.journey-copy{max-width:72%}}

/* Keep the date, and give food search the first screen. */
main:has(.entry-app) header h1{display:none}
main:has(.entry-app) header{margin-bottom:18px;align-items:center}
.entry-heading .eyebrow{display:none}
