.client-more-button,.client-mobile-agenda{display:none}
@media(max-width:700px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .client-shell{font-size:14px;line-height:1.4}
 .client-shell .topbar{display:flex;flex-wrap:nowrap;gap:8px;min-height:52px;height:52px;padding:6px 14px;margin-top:env(safe-area-inset-top);position:relative}
 .client-shell .topbar>.flex{display:none}
 .client-shell .navigation-trail{flex:1;min-width:0;flex-wrap:nowrap;gap:4px;overflow:hidden}
 .client-shell .navigation-trail>[data-crumb],.client-shell .navigation-trail>span[aria-hidden]{display:none}
 .client-shell .navigation-trail [aria-current]{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .client-shell .navigation-trail #internal-back{font-size:0;width:32px;min-width:32px;height:36px;padding:0}
 .client-shell .navigation-trail #internal-back:before{content:'←';font-size:22px}
 .client-shell .notification-bell{width:40px;min-width:40px;height:38px;padding:4px;position:relative;font-size:23px;background:transparent}
 .client-shell .notification-bell small{position:absolute;right:-2px;top:0;background:var(--lav);color:#302445;font-size:10px;min-width:16px;border-radius:12px;padding:1px 3px}
 .client-shell .sidebar{padding:5px 8px max(5px,env(safe-area-inset-bottom));border-bottom:0}
 .client-shell .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:0}
 .client-shell .sidebar nav .client-secondary-nav{display:none}
 .client-shell .sidebar nav button{display:flex;min-height:49px;padding:5px 1px;gap:2px;font-size:10px;border-radius:10px}
 .client-shell .sidebar nav button span:first-child{font-size:20px;height:23px;line-height:23px;width:auto}
 .client-shell .content{padding:16px 14px calc(82px + env(safe-area-inset-bottom));min-width:0}
 .client-shell .pagehead{gap:10px;margin-bottom:16px;flex-wrap:wrap}
 .client-shell .pagehead .eyebrow{display:none}
 .client-shell h1{font-size:23px;line-height:1.2;letter-spacing:-.5px;margin:0 0 6px}
 .client-shell h2,.client-shell .food-entry-heading h3{font-size:17px;line-height:1.3;margin-bottom:10px}
 .client-shell h3{font-size:15px}
 .client-shell p{line-height:1.45;margin:8px 0}
 .client-shell .pagehead p{font-size:12px;line-height:1.4}
 .client-shell .card,.client-shell .stat{padding:14px;border-radius:14px;min-width:0}
 .client-shell .client-home-grid,.client-shell .stack,.client-shell .cols{gap:12px}
 .client-shell .client-home-grid .eyebrow{font-size:10px;letter-spacing:1px;margin-bottom:7px}
 .client-shell .client-home-grid h2{margin:6px 0}
 .client-shell button{padding:9px 12px;min-height:40px;font-size:13px}
 .client-shell input,.client-shell select,.client-shell textarea{font-size:16px;padding:9px 10px;min-height:42px;border-radius:9px;min-width:0}
 .client-shell label{font-size:12px;margin-bottom:5px}
 .client-shell .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .client-shell .formgrid .wide{grid-column:1/-1}
 .client-shell .formactions{margin-top:14px;flex-wrap:wrap;gap:8px}
 .client-shell .tag,.client-shell .badge{font-size:10px;padding:4px 7px}
 .client-shell .client-macro-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .client-shell .client-macro-grid b{font-size:20px;margin:5px 0}
 .client-shell .tabs{gap:6px;margin-bottom:14px}
 .client-shell .empty{padding:18px 8px}
 .client-shell .row{padding:12px 0}
 .client-shell .foodtracker-ring{width:60px;height:60px;flex-shrink:0}
 .client-shell .foodtracker-summary{padding:13px}
 .client-shell .foodtracker-bars{min-width:0}
 .client-shell .food-entry-card{padding:14px}
 .client-shell .month-scroll{display:none}
 .client-mobile-agenda{display:block;margin-top:12px}
 .client-agenda-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
 .client-agenda-row>div:last-child{min-width:0;overflow-wrap:anywhere}
 .client-agenda-date{display:grid;text-align:center;min-width:40px;color:var(--lav)}
 .client-agenda-date b{font-size:22px}.client-agenda-date small{font-size:11px}
 .client-agenda-row p{font-size:12px;color:var(--muted);margin:4px 0 0}
 .client-shell details summary{cursor:pointer;font-size:13px;font-weight:600;padding:5px 0}
 #client-more-menu{width:calc(100vw - 24px);max-width:440px;max-height:80dvh;border:1px solid var(--line);border-radius:18px;padding:18px;background:var(--surface,var(--bg));color:var(--ink);margin:auto auto calc(76px + env(safe-area-inset-bottom))}
 #client-more-menu::backdrop{background:#13111999}
 #client-more-menu h2{margin:0;font-size:18px}
 .client-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
 .client-more-grid button{text-align:left;display:flex;align-items:center;gap:9px;font-size:13px;min-height:48px;padding:10px}
 .client-more-grid button span{font-size:21px;color:var(--lav)}
 .client-more-settings{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;gap:8px}
 .client-more-settings button{font-size:12px;padding:10px}
}
@media(max-width:700px){
 .client-shell .food-catalog-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding:4px;grid-template-columns:none}
 .client-shell .food-catalog-tabs button{flex:0 0 auto;width:auto;min-height:38px;height:auto;padding:8px 10px;font-size:12px;border-radius:9px}
 .client-shell .food-catalog-tabs button>span{display:inline;width:auto;height:auto;padding:0;margin-right:5px;font-size:15px;background:transparent;border-radius:0}
 .client-shell .food-catalog-tabs button:last-child{grid-column:auto}
 .client-shell .food-entry-heading{margin-bottom:10px}
}
@media(max-width:700px){
 .client-shell .formgrid>div:has(.report-rating){grid-column:1/-1;min-width:0}
 .client-shell .report-rating{gap:8px}
 .client-shell .report-rating button{padding:4px;width:40px;min-width:40px;min-height:40px;font-size:23px}
 .client-shell .rating-scale{max-width:232px}
 .client-shell .rating-status{margin-top:2px}
}
.simple-client-content .pagehead{margin-bottom:16px}
.simple-client-content .pagehead h1{font-size:25px}
.simple-client-content .card{padding:16px;border-radius:18px}
.simple-client-content h2{font-size:19px;margin:0 0 12px}
.simple-client-content h3{font-size:16px}
.simple-client-content>.card,.simple-client-content>.home-daily{margin-bottom:14px}
.today-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.today-actions button{text-align:left;padding:16px;display:grid;gap:7px;white-space:normal}
.today-actions small{font-weight:400;font-size:12px;opacity:.85}
.home-daily{border:1px solid var(--line,#575563);border-radius:16px;padding:12px}
.home-daily>summary{font-size:14px;cursor:pointer}
.home-daily:not([open]){display:none}
.simple-client-content .cols{grid-template-columns:1fr}
.simple-client-content .food-primary-column{min-width:0}
.simple-client-content .foodtracker-macros{margin-top:14px}
.simple-client-content .foodtracker-ring{flex-shrink:0}
.simple-client-content .food-extra-details>.card{border:0}
@media(max-width:560px){
 .today-actions{grid-template-columns:1fr}
 .today-actions button{padding:14px}
 .simple-client-content .foodtracker-macros{gap:12px}
 .simple-client-content .foodtracker-bars{min-width:0}
}

.home-records>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:10px 0}
.home-records>details>summary b::after{content:' ⌄';font-weight:400}
.home-records>details+details{border-top:1px solid var(--line,#575563);margin-top:8px;padding-top:8px}
.home-records>details>summary .small{text-align:right}
.home-records>details>.card{margin-top:12px}

.home-profile>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer}
.home-profile>summary b{font-size:19px}
.home-profile>.pagehead,.home-records .pagehead{margin-top:16px}
.home-records>details[open]>summary{margin-bottom:12px}

@media(max-width:760px){.client-shell .sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* Food entry methods: one clear action per row on every screen. */
.food-catalog-tabs,.client-shell .food-catalog-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;overflow:visible;padding:0;background:transparent;border:0}
.food-catalog-tabs button,.client-shell .food-catalog-tabs button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:0;padding:10px 13px;border:1px solid var(--line);border-radius:13px;background:var(--panel);text-align:left;white-space:normal;font-size:14px;color:var(--ink)}
.food-catalog-tabs button>span,.client-shell .food-catalog-tabs button>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;margin:0;border-radius:9px;background:#b7a1df18;color:var(--lav);font-size:19px}
.food-catalog-tabs button.active,.client-shell .food-catalog-tabs button.active{background:#b7a1df20;border-color:var(--lav);color:var(--ink)}
.food-catalog-tabs button:last-child,.client-shell .food-catalog-tabs button:last-child{grid-column:auto}
.food-data-sources{border:0;margin-top:8px;padding:0;text-align:right}
.food-data-sources summary{font-size:11px;color:var(--muted)}
.food-data-sources p{text-align:left}
