/* ZIPBOARD: the same household data, independent display preferences per device. */
.zb-enabled .top{height:70px;flex-shrink:0}.zb-enabled .nav{height:60px!important;flex-shrink:0}
.zb-enabled{--zb-bg:#f3f2ec;--zb-paper:#fffef9;--zb-ink:#24372c;--zb-muted:#657469;--zb-line:#e1e5da;--zb-accent:#205d46;--zb-soft:#eaf0e1;--zb-note:#f7efd2;--zb-nav:#203b2e;--zb-selected:#e0eda9;background:var(--zb-bg);color:var(--zb-ink);max-width:none!important;padding:0!important;min-height:100svh}
.zb-enabled[data-board-theme=wall]{--zb-bg:#eae9dd;--zb-accent:#526441;--zb-soft:#ebeddb;--zb-note:#f5ebc8;--zb-nav:#313f2b}
.zb-enabled[data-board-theme=studio]{--zb-bg:#f0eae3;--zb-accent:#85533a;--zb-soft:#f3e4d4;--zb-note:#faf4e8;--zb-nav:#4e3629;--zb-selected:#f0d3b0}
.zb-enabled[data-board-theme=focus]{--zb-bg:#edf2ee;--zb-paper:#fff;--zb-accent:#20594c;--zb-nav:#163c33;--zb-soft:#e3f0e7}
.zb-enabled[data-board-theme=planner]{--zb-bg:#eeedf5;--zb-accent:#56547c;--zb-soft:#eeebf7;--zb-nav:#333249;--zb-selected:#dedaf7}
.zb-enabled[data-board-theme=weekly]{--zb-bg:#eef2f3;--zb-accent:#315e6b;--zb-soft:#e3edef;--zb-nav:#203d45;--zb-selected:#d3e9e8}
.zb-enabled .top{display:flex!important;align-items:center;gap:20px;padding:10px 24px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--zb-line)!important;background:var(--zb-paper)!important;min-height:70px;border-radius:0!important;box-shadow:none!important}
.zb-enabled .brand{gap:9px!important;flex-shrink:0}.zb-enabled .brand h1{font-size:23px!important;line-height:1.1!important;letter-spacing:-1px}.zb-enabled .brand p{font-size:11px!important;line-height:1.3!important;margin:4px 0 0!important}
.zb-enabled .logo,.authbrand .logo{background:none!important;padding:0!important;border-radius:0!important;width:44px!important;height:44px!important;display:grid!important;place-items:center}.logo img{max-width:100%;height:auto;object-fit:contain}
.zb-enabled .date{flex:1;min-width:0;font-size:14px!important}.zb-enabled .date small{display:none}.zb-enabled .weather{padding:0!important;background:none!important;border:0!important;flex:1.1;min-width:0;gap:8px!important}.zb-enabled .weather b{font-size:12px!important}.zb-enabled .weather small{display:none}.zb-enabled .weather .wi{font-size:23px!important}.zb-enabled .weather #temp{white-space:nowrap}.zb-enabled .sync{display:none!important}
.zb-header-tools{display:flex;gap:6px;margin-left:auto;flex-shrink:0}.zb-header-tools>button{position:relative;min-width:44px;min-height:44px;border:1px solid var(--zb-line);background:var(--zb-paper);border-radius:12px;font-size:18px;color:var(--zb-ink)}.zb-header-tools>button>span{display:none}.zb-header-tools .nbadge{top:1px;right:1px}
.zb-enabled #home{padding:0!important;margin:0!important}.zb-enabled #home.on{display:block!important}.zb-enabled #home> :not(.zb-dashboard){display:none!important}
.zb-dashboard{padding:16px 24px 20px;display:flex;flex-direction:column;gap:14px;min-height:0}.zb-dashboard *{box-sizing:border-box}.zb-dashboard h2,.zb-dashboard p{margin:0}.zb-dashboard button{font:inherit;color:inherit;cursor:pointer}.zb-dashboard button:focus-visible{outline:3px solid var(--zb-accent);outline-offset:2px}
.zb-summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:12px}.zb-summary small{font-size:12px;color:var(--zb-muted)}.zb-summary h2{font-size:25px;letter-spacing:-.7px;line-height:1.3}.zb-summary>span{font-size:13px;white-space:nowrap;color:var(--zb-muted)}
.zb-panels{display:grid;flex:1;min-height:0;gap:14px;grid-template-columns:1.2fr 1fr 1fr;grid-template-rows:1fr 1fr;grid-template-areas:'food meal schedule' 'memos shopping recipes'}
.zb-card{padding:18px;border-radius:20px;background:var(--zb-paper);border:1px solid var(--zb-line);min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;position:relative}.zb-card-head{display:flex;gap:6px;align-items:center;justify-content:space-between;margin-bottom:10px;flex-shrink:0}.zb-card-head h2{font-size:17px;font-weight:750;letter-spacing:-.5px;white-space:nowrap}.zb-card-head h2 small{font-size:12px;color:var(--zb-muted);font-weight:500}.zb-link{border:0;background:transparent;padding:5px 0;min-height:32px;font-size:12px!important;white-space:nowrap;text-align:left}.zb-card-head>.zb-link{color:var(--zb-muted)}
.zb-food{grid-area:food}.zb-meal{grid-area:meal}.zb-schedule{grid-area:schedule}.zb-memos{grid-area:memos;background:var(--zb-note)}.zb-shopping{grid-area:shopping}.zb-recipes{grid-area:recipes}
.zb-line{border:0;background:none;width:100%;display:flex;align-items:center;gap:10px;padding:8px 0;min-width:0;text-align:left;min-height:44px}.zb-line>span:not(.zb-food-icon):not(.zb-time){flex:1;min-width:0}.zb-line b{font-size:16px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zb-line small{font-size:12px;color:var(--zb-muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zb-line em{font-style:normal;font-size:11px;color:#9b432d;background:#fbe9df;border-radius:7px;padding:5px 6px;white-space:nowrap}.zb-food-icon{font-size:26px;background:var(--zb-soft);width:40px;height:40px;display:grid;place-items:center;border-radius:12px;flex-shrink:0}.zb-food-line+.zb-food-line{border-top:1px solid var(--zb-line)}
.zb-meal-list{display:grid;gap:2px;position:relative;z-index:1}.zb-meal-row{display:flex;gap:12px;align-items:center;border:0;border-bottom:1px solid var(--zb-line);padding:7px 0;background:none;text-align:left;min-width:0;min-height:36px}.zb-meal-row span{font-size:12px;color:var(--zb-muted);flex-shrink:0}.zb-meal-row b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zb-wheel{border:0;background:var(--zb-accent);color:white!important;border-radius:11px;padding:10px;min-height:40px;margin-top:auto;font-weight:700!important;position:relative;z-index:1}.zb-dish{display:none}
.zb-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:6px}.zb-week-strip button{border:0;padding:5px 1px;min-width:0;min-height:46px;background:var(--zb-soft);border-radius:9px;display:flex;flex-direction:column;align-items:center;gap:2px}.zb-week-strip small{font-size:10px}.zb-week-strip b{font-size:15px}.zb-week-strip button[aria-pressed=true]{background:var(--zb-accent);color:white}.zb-week-strip i{width:4px;height:4px;border-radius:50%;display:block}.zb-week-strip .has-event{background:currentColor}.zb-time{font-size:12px;color:var(--zb-accent);min-width:35px}.zb-event{border-left:3px solid var(--zb-line);padding:7px 0 7px 8px;margin:3px 0}
.zb-note-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:0}.zb-note{border:0;background:transparent;text-align:left;padding:3px;min-width:0;display:flex;flex-direction:column;gap:7px}.zb-note small{font-size:11px;color:var(--zb-muted)}.zb-note b{font-size:20px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.zb-note span{font-size:13px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.zb-note+.zb-note{border-left:1px solid #ddd2ad;padding-left:12px}
.zb-shopping-list{display:flex;flex-wrap:wrap;gap:7px;align-content:start}.zb-shopping-list button{max-width:100%;overflow:hidden;text-overflow:ellipsis;background:var(--zb-soft);padding:7px 9px;border-radius:8px}.zb-shopping-list small{color:var(--zb-muted)}.zb-recipes>div:last-child{display:flex;flex-wrap:wrap;gap:6px}.zb-recipes>div:last-child button{padding:6px 10px;border-radius:8px;background:var(--zb-soft);max-width:100%;overflow:hidden;text-overflow:ellipsis}.zb-empty{font-size:13px!important;line-height:1.5;color:var(--zb-muted);padding:8px 0}
.zb-enabled .nav{position:sticky!important;bottom:0!important;left:0!important;transform:none!important;width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;border:0!important;border-radius:0!important;padding:6px 20px max(6px,env(safe-area-inset-bottom))!important;background:var(--zb-nav)!important;margin:0!important;box-shadow:none!important;z-index:20}.zb-enabled .nav>button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:44px!important;border-radius:10px!important;background:#ffffff0a!important;border:1px solid #ffffff18!important;color:#fbfff1!important;font-size:19px!important;padding:5px!important}.zb-enabled .nav>button span{font-size:14px!important;font-weight:700}.zb-enabled .nav>button.on{color:#233d2a!important;background:var(--zb-selected)!important}.zb-enabled>.view:not(#home){padding:16px 24px;min-height:calc(100svh - 134px)}
.zb-settings{grid-column:1/-1}.zb-settings fieldset{border:0;padding:0;margin:22px 0}.zb-settings legend{font-weight:750;font-size:16px;margin-bottom:10px}.zb-theme-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.zb-choice{display:grid;grid-template-columns:auto 1fr;gap:7px;padding:12px;border:2px solid #e2e5dd;border-radius:14px;cursor:pointer;background:#fff}.zb-choice:has(input:checked){border-color:#205d46;background:#f1f6e9}.zb-choice input{width:18px;height:18px;accent-color:#205d46;margin:0}.zb-choice b,.zb-choice small{grid-column:1/-1}.zb-choice b{font-size:14px}.zb-choice small{font-size:12px;color:#59675d}.zb-theme-thumb{display:grid;height:36px;grid-template-columns:1fr 1fr 1fr;gap:3px;grid-template-rows:1fr 1fr}.zb-theme-thumb i{background:#c9d9c1;border-radius:3px}.zb-theme-thumb i:first-child{grid-row:span 2;background:#467758}.zb-theme-thumb[data-swatch=studio] i{background:#e7cdb2}.zb-theme-thumb[data-swatch=studio] i:first-child{background:#85533a}.zb-theme-thumb[data-swatch=wall] i:first-child{background:#decc8c;grid-column:span 2;grid-row:auto}.zb-theme-thumb[data-swatch=focus] i:first-child{grid-column:span 3;grid-row:auto}.zb-theme-thumb[data-swatch=planner] i,.zb-theme-thumb[data-swatch=weekly] i{grid-row:span 2}.zb-pref-status{font-size:13px;color:#205d46;min-height:20px}
.zb-calendar-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0}.zb-calendar-tools button{min-width:44px;min-height:44px;border:1px solid #d9e0d7;border-radius:10px;background:#fff}.zb-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.zb-calendar-week button{min-width:0;border:1px solid #dce1d7;border-radius:12px;display:grid;gap:8px;padding:12px 2px;background:#f5f7ef}.zb-calendar-week button[aria-pressed=true]{background:#205d46;color:#fff}.zb-calendar-week b{font-size:24px}.zb-calendar-week small{font-size:11px}.zb-calendar-event{display:flex;align-items:center;gap:15px;text-align:left;width:100%;padding:15px;border:0;border-bottom:1px solid #e2e5df;background:transparent;min-height:48px}.zb-calendar-event span{font-size:13px}.zb-calendar-page h3{margin:24px 0 6px}
@media(min-width:768px) and (orientation:landscape){
 .zb-enabled{display:flex;flex-direction:column}.zb-enabled #home{flex:1}.zb-dashboard{height:calc(100svh - 130px);min-height:530px;max-height:1050px}.zb-enabled .nav{margin-top:auto!important}
 .zb-enabled[data-board-theme=balanced] .zb-panels{grid-template-columns:1.2fr 1fr 1fr;grid-template-areas:'food memos schedule' 'meal shopping recipes'}
 .zb-enabled[data-board-theme=dayflow] .zb-panels{grid-template-columns:.9fr 1.3fr 1fr;grid-template-rows:1fr 1fr .65fr;grid-template-areas:'food schedule meal' 'memos schedule meal' 'memos shopping recipes'}
 .zb-enabled[data-board-theme=glance] .zb-panels{grid-template-columns:1.2fr 1fr 1fr;grid-template-rows:1.2fr 1fr .5fr;grid-template-areas:'food meal schedule' 'food memos schedule' 'shopping shopping recipes'}.zb-enabled[data-board-theme=glance] .zb-food-line b{font-size:26px}.zb-enabled[data-board-theme=glance] .zb-food-line{padding:15px 0}.zb-enabled[data-board-theme=glance] .zb-food-icon{font-size:36px;width:48px;height:48px}
 .zb-enabled[data-board-theme=weekly] .zb-panels{grid-template-columns:1.5fr 1fr 1fr;grid-template-rows:1.25fr 1fr;grid-template-areas:'schedule meal food' 'schedule memos shopping'}.zb-enabled[data-board-theme=weekly] .zb-recipes{display:none}.zb-enabled[data-board-theme=weekly] .zb-week-strip button{min-height:70px}
 .zb-enabled[data-board-theme=wall] .zb-panels{grid-template-columns:1fr 1fr 1.05fr;grid-template-rows:1.1fr 1fr .5fr;grid-template-areas:'memos memos schedule' 'food meal schedule' 'shopping shopping recipes'}.zb-enabled[data-board-theme=wall] .zb-note b{font-size:28px}.zb-enabled[data-board-theme=wall] .zb-memos{padding:24px}
 .zb-enabled[data-board-theme=studio] .zb-panels{grid-template-columns:1.1fr 1fr 1fr;grid-template-rows:1.2fr 1fr .5fr;grid-template-areas:'meal food schedule' 'meal memos shopping' 'meal recipes recipes'}.zb-enabled[data-board-theme=studio] .zb-meal{background:#85533a;color:#fff5e9;padding:24px}.zb-enabled[data-board-theme=studio] .zb-meal small,.zb-enabled[data-board-theme=studio] .zb-meal .zb-link,.zb-enabled[data-board-theme=studio] .zb-meal-row span{color:#f1d8c3}.zb-enabled[data-board-theme=studio] .zb-dish{display:grid;place-items:center;order:2;flex:1;font-size:100px}.zb-enabled[data-board-theme=studio] .zb-wheel{order:3;background:#f0d3b0;color:#493327!important}.zb-enabled[data-board-theme=studio] .zb-meal-row{border-color:#ffffff30}
 .zb-enabled[data-board-theme=planner] .zb-panels{grid-template-columns:1.4fr 1fr 1fr;grid-template-rows:1fr 1fr .5fr;grid-template-areas:'schedule schedule food' 'meal memos food' 'shopping shopping recipes'}.zb-enabled[data-board-theme=planner] .zb-week-strip button{min-height:66px}.zb-enabled[data-board-theme=planner] .zb-schedule-items{display:flex;gap:18px}
 .zb-enabled[data-board-theme=focus] .zb-panels{grid-template-columns:1.3fr 1fr 1fr;grid-template-rows:1fr 1fr .5fr;grid-template-areas:'food meal schedule' 'food memos shopping' 'food recipes recipes'}.zb-enabled[data-board-theme=focus] .zb-food{background:#20594c;color:white;padding:26px}.zb-enabled[data-board-theme=focus] .zb-food .zb-link,.zb-enabled[data-board-theme=focus] .zb-food small{color:#c9dfd3}.zb-enabled[data-board-theme=focus] .zb-food-line b{font-size:24px}.zb-enabled[data-board-theme=focus] .zb-food-line{padding:20px 0}.zb-enabled[data-board-theme=focus] .zb-food-icon{background:#ffffff18}.zb-enabled[data-board-theme=focus] .zb-food-line+.zb-food-line{border-color:#ffffff25}
}
@media(max-width:767px),(orientation:portrait){
 .zb-enabled .top{height:58px;min-height:58px;padding:7px 12px!important;gap:8px}.zb-enabled .brand h1{font-size:21px!important}.zb-enabled .brand p,.zb-enabled .date,.zb-enabled .weather #wmsg{display:none!important}.zb-enabled .logo{width:34px!important;height:34px!important}.zb-enabled .weather{margin-left:auto;flex:none;gap:4px!important}.zb-enabled .weather #temp{font-size:11px!important}.zb-enabled .weather .wi{font-size:18px!important}.zb-header-tools{margin-left:0;gap:4px}.zb-header-tools>button{min-width:38px;min-height:40px;font-size:17px;border-radius:10px}
 .zb-dashboard{padding:8px 10px 10px;gap:8px;height:calc(100svh - 120px - env(safe-area-inset-bottom));min-height:536px;max-height:1000px}.zb-summary{min-height:39px}.zb-summary h2{font-size:19px}.zb-summary small{font-size:11px}.zb-summary>span{font-size:11px}
 .zb-panels{gap:8px;grid-template-columns:1fr 1fr;grid-template-rows:1.05fr 1.1fr .85fr;grid-template-areas:'food food' 'meal schedule' 'memos shopping'}
 .zb-card{border-radius:15px;padding:10px}.zb-card-head{margin-bottom:3px;gap:2px}.zb-card-head h2{font-size:14px}.zb-card-head h2 small{font-size:10px}.zb-card-head>.zb-link{font-size:10px!important;min-height:28px;padding:4px 0}.zb-recipes{display:none}.zb-food-list{min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}.zb-food-line{padding:6px 0;gap:6px;position:relative;flex-wrap:wrap;align-content:start}.zb-food-line:nth-child(n+3){display:none}.zb-food-line+.zb-food-line{border:0}.zb-food-icon{font-size:22px;width:31px;height:31px;border-radius:9px}.zb-line b{font-size:14px}.zb-line small{font-size:10px}.zb-food-line em{font-size:10px;padding:3px 6px;margin-left:37px}.zb-meal-row{min-height:28px;gap:7px;padding:4px 0}.zb-meal-row span{font-size:10px}.zb-meal-row b{font-size:12px}.zb-wheel{min-height:33px;padding:6px;font-size:12px!important;border-radius:9px;margin-top:auto}.zb-week-strip{gap:2px;margin-top:3px;margin-bottom:4px}.zb-week-strip button{min-height:36px;padding:3px 0;gap:1px;border-radius:6px}.zb-week-strip small{font-size:9px}.zb-week-strip b{font-size:11px}.zb-schedule-items .zb-line{min-height:34px;gap:5px;padding:4px 0;border-left:0;margin:0}.zb-schedule-items .zb-line:nth-child(n+3){display:none}.zb-time{font-size:10px;min-width:27px}.zb-schedule-items .zb-line b{font-size:12px}.zb-schedule-items .zb-line small{font-size:9px}.zb-note-list{display:block}.zb-note{padding:2px 0;gap:4px;width:100%;min-height:44px}.zb-note small{font-size:10px}.zb-note b{font-size:16px;-webkit-line-clamp:2}.zb-note span{font-size:11px;-webkit-line-clamp:1}.zb-note+.zb-note{display:none}.zb-shopping-list{gap:4px}.zb-shopping-list button{font-size:11px!important;padding:5px 7px;min-height:27px}.zb-shopping-list button:nth-child(n+3){display:none}.zb-empty{font-size:12px!important;padding:6px 0}
 .zb-enabled .nav{min-height:60px;gap:4px!important;padding:5px 7px max(5px,env(safe-area-inset-bottom))!important}.zb-enabled .nav>button{flex-direction:column!important;gap:2px!important;font-size:17px!important;padding:4px 0!important;min-height:48px!important;border-radius:9px!important}.zb-enabled .nav>button span{font-size:10px!important}.zb-enabled>.view:not(#home){padding:12px 10px;min-height:calc(100svh - 118px)}
 .zb-enabled[data-board-theme=wall] .zb-panels{grid-template-rows:1fr 1.1fr .9fr;grid-template-areas:'memos memos' 'schedule meal' 'food shopping'}.zb-enabled[data-board-theme=wall] .zb-note-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.zb-enabled[data-board-theme=wall] .zb-note+.zb-note{display:flex;border-left:1px solid #ded3ac;padding-left:10px}.zb-enabled[data-board-theme=wall] .zb-food-list{display:block}.zb-enabled[data-board-theme=wall] .zb-food-line{padding:2px 0;min-height:40px}.zb-enabled[data-board-theme=wall] .zb-food-line:nth-child(n+2){display:none}.zb-enabled[data-board-theme=wall] .zb-food-line em{margin-left:37px}
 .zb-enabled[data-board-theme=studio] .zb-panels{grid-template-rows:1.15fr 1fr .85fr;grid-template-areas:'meal meal' 'food schedule' 'memos shopping'}.zb-enabled[data-board-theme=studio] .zb-meal{background:#85533a;color:#fff4e7}.zb-enabled[data-board-theme=studio] .zb-meal .zb-link,.zb-enabled[data-board-theme=studio] .zb-meal small,.zb-enabled[data-board-theme=studio] .zb-meal-row span{color:#f3dac5}.zb-enabled[data-board-theme=studio] .zb-meal-list{grid-template-columns:1fr 1fr;column-gap:14px}.zb-enabled[data-board-theme=studio] .zb-meal-row{border-color:#ffffff30}.zb-enabled[data-board-theme=studio] .zb-wheel{background:#f0d3b0;color:#483123!important;margin-top:6px}.zb-enabled[data-board-theme=studio] .zb-food-list{display:block}.zb-enabled[data-board-theme=studio] .zb-food-line:nth-child(n+2){display:none}
 .zb-enabled[data-board-theme=focus] .zb-food{background:#20594c;color:#fff}.zb-enabled[data-board-theme=focus] .zb-food .zb-link,.zb-enabled[data-board-theme=focus] .zb-food small{color:#d0e3d8}.zb-enabled[data-board-theme=focus] .zb-food-icon{background:#ffffff18}
 .zb-theme-options{grid-template-columns:1fr 1fr;gap:8px}.zb-choice{padding:10px}.zb-calendar-week{gap:3px}.zb-calendar-week small{font-size:9px}.zb-calendar-week b{font-size:18px}.zb-calendar-tools{gap:6px}.zb-calendar-tools b{font-size:12px}.zb-calendar-event{padding:12px 5px;gap:8px;flex-wrap:wrap}
}
@media(min-width:768px) and (max-height:760px) and (orientation:landscape){.zb-card{padding:12px}.zb-card-head{margin-bottom:4px}.zb-note b{font-size:18px}.zb-enabled[data-board-theme=wall] .zb-note b{font-size:23px}.zb-line{padding:5px 0}.zb-meal-row{min-height:30px;padding:4px 0}.zb-dashboard{min-height:490px}.zb-summary h2{font-size:22px}.zb-enabled[data-board-theme=studio] .zb-dish{font-size:70px}.zb-enabled[data-board-theme=glance] .zb-food-line b{font-size:23px}}
/* Fit content to its own card, rather than cropping off actions on shorter tablets. */
.zb-card{container-type:size}
.zb-meal-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.zb-meal-row{flex-direction:column;align-items:flex-start;gap:2px;min-height:40px;padding:5px 0}
.zb-meal-row b{max-width:100%}
.zb-shopping .zb-card-head,.zb-recipes .zb-card-head{margin-bottom:4px}
.zb-card-head>button{flex-shrink:0}
@container (max-height:230px){.zb-food-line:nth-child(n+3){display:none}.zb-schedule-items .zb-line:nth-child(n+3){display:none}}
@container (max-height:180px){.zb-schedule-items .zb-line:nth-child(n+2){display:none}.zb-note span{display:none}.zb-note b{font-size:18px!important}.zb-note{gap:4px}.zb-meal-row{min-height:32px;padding:2px 0}.zb-meal-row b{font-size:13px}.zb-meal-row span{font-size:10px}.zb-wheel{min-height:34px;padding:7px;margin-top:5px}.zb-card-head{margin-bottom:2px}.zb-food-line{padding:4px 0!important}.zb-food-line b{font-size:16px!important}}
@container (max-height:135px){.zb-food-line:nth-child(n+2){display:none}.zb-note b{font-size:16px!important}.zb-week-strip{margin-bottom:0}.zb-schedule-items .zb-line small{display:none}.zb-meal-row{min-height:30px}.zb-meal-list{gap:0 10px}.zb-wheel{min-height:30px;padding:4px;margin-top:3px}.zb-card-head h2{font-size:14px}}
@container (max-height:90px){.zb-shopping-list button:nth-child(n+3){display:none}.zb-recipes>div:last-child button:nth-child(n+2){display:none}.zb-note-list{display:block}.zb-note+.zb-note{display:none}.zb-note b{-webkit-line-clamp:1}}
@media(min-width:768px) and (orientation:landscape){
 .zb-shopping,.zb-recipes{flex-direction:row;align-items:center;gap:16px;container-type:normal}.zb-shopping .zb-card-head,.zb-recipes .zb-card-head{flex-direction:column;align-items:start;gap:0;margin:0}.zb-shopping .zb-card-head>.zb-link,.zb-recipes .zb-card-head>.zb-link{min-height:24px;padding:0}.zb-shopping-list{flex:1}.zb-recipes>div:last-child{flex:1}.zb-enabled[data-board-theme=studio] .zb-meal-list{grid-template-columns:1fr}.zb-enabled[data-board-theme=studio] .zb-meal-row{flex-direction:row;align-items:center;gap:10px;min-height:40px}
}
@media(max-width:767px),(orientation:portrait){
 .zb-food-line{display:grid;grid-template-columns:31px minmax(0,1fr);gap:3px 6px;align-content:start}.zb-food-line em{grid-column:2;margin-left:0!important;width:max-content}.zb-food-line>span{min-width:0}.zb-meal-row{min-height:35px;gap:1px;padding:2px 0}.zb-meal-row span{font-size:9px}.zb-meal-row b{font-size:11px}.zb-meal .zb-card-head{margin-bottom:3px}.zb-wheel{margin-top:auto}
 .zb-enabled[data-board-theme=focus] .zb-food-list{display:grid;grid-template-columns:1fr;gap:1px}.zb-enabled[data-board-theme=focus] .zb-food-line{grid-template-columns:31px minmax(0,1fr) auto;align-items:center;min-height:38px;padding:3px 0!important}.zb-enabled[data-board-theme=focus] .zb-food-line em{grid-column:3;grid-row:1}.zb-enabled[data-board-theme=focus] .zb-food-line:nth-child(3){display:grid}.zb-enabled[data-board-theme=focus] .zb-food-line b{font-size:16px!important}
 .zb-enabled[data-board-theme=studio] .zb-meal-row{flex-direction:row;align-items:center;gap:7px;min-height:28px}.zb-enabled[data-board-theme=studio] .zb-meal-row b{font-size:12px}
}
@media(max-width:767px) and (max-height:720px){.zb-enabled[data-board-theme=focus] .zb-food-line:nth-child(3){display:none}.zb-schedule-items .zb-line:nth-child(n+2){display:none}.zb-meal .zb-card-head{margin-bottom:0}.zb-wheel{margin-top:3px}.zb-note b{-webkit-line-clamp:2}}
@media(min-width:768px) and (orientation:landscape){.zb-schedule-items .zb-line{padding-top:4px;padding-bottom:4px;min-height:36px}.zb-schedule-items .zb-line b{font-size:15px}.zb-schedule-items .zb-line small{font-size:11px}}
@media(min-width:768px) and (max-height:760px) and (orientation:landscape){
 .zb-meal{padding:10px}.zb-meal .zb-card-head{margin-bottom:2px}.zb-meal .zb-card-head>.zb-link{min-height:24px;padding:2px 0}.zb-meal-list{gap:0 8px}.zb-meal-row{min-height:26px;padding:1px 0;gap:0}.zb-meal-row span{font-size:9px;line-height:12px}.zb-meal-row b{font-size:12px;line-height:16px}.zb-wheel{min-height:28px;line-height:18px;font-size:12px!important;padding:4px;margin-top:auto}
 .zb-schedule .zb-card-head>.zb-link{min-height:24px}.zb-schedule .zb-week-strip button{min-height:34px!important;padding:2px 0}.zb-schedule .zb-week-strip b{font-size:13px}.zb-schedule .zb-week-strip small{font-size:9px}.zb-schedule .zb-week-strip{margin-bottom:2px}.zb-schedule-items .zb-line small{display:none}.zb-schedule-items .zb-line{min-height:27px;padding-top:2px;padding-bottom:2px}.zb-schedule-items .zb-line b{font-size:13px}
 .zb-recipes>div:last-child button:nth-child(n+2){display:none}.zb-recipes,.zb-shopping{padding:9px 12px}.zb-recipes .zb-card-head h2,.zb-shopping .zb-card-head h2{font-size:14px}.zb-shopping-list button{min-height:26px;padding:4px 7px}.zb-recipes>div:last-child button{min-height:26px;padding:4px 7px}
}
@media(min-width:768px) and (max-height:620px) and (orientation:landscape){
 .zb-enabled .nav{height:56px!important}
 .zb-enabled .top{min-height:58px;height:58px;padding:6px 16px!important}.zb-dashboard{height:calc(100svh - 114px);min-height:0;padding:8px 16px 12px;gap:8px}.zb-summary{min-height:36px}.zb-summary h2{font-size:20px}.zb-summary small{font-size:10px}
 .zb-enabled .zb-panels{grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr 1fr;gap:10px;grid-template-areas:'food meal schedule' 'memos shopping recipes'}
 .zb-enabled[data-board-theme=wall] .zb-panels{grid-template-areas:'memos memos schedule' 'food meal shopping'}.zb-enabled[data-board-theme=wall] .zb-recipes{display:none}.zb-enabled[data-board-theme=wall] .zb-memos{padding:14px}
 .zb-enabled[data-board-theme=studio] .zb-panels{grid-template-areas:'meal food schedule' 'meal memos shopping'}.zb-enabled[data-board-theme=studio] .zb-recipes{display:none}.zb-enabled[data-board-theme=studio] .zb-meal{padding:14px}.zb-enabled[data-board-theme=studio] .zb-dish{font-size:55px;line-height:1;min-height:0}.zb-enabled[data-board-theme=studio] .zb-meal-list{grid-template-columns:1fr 1fr}.zb-enabled[data-board-theme=studio] .zb-meal-row{flex-direction:column;align-items:start;gap:1px;min-height:32px}
 .zb-enabled[data-board-theme=focus] .zb-panels{grid-template-areas:'food meal schedule' 'food memos shopping'}.zb-enabled[data-board-theme=focus] .zb-recipes{display:none}.zb-enabled[data-board-theme=focus] .zb-food{padding:16px}.zb-enabled[data-board-theme=focus] .zb-food-line{padding:10px 0}
 .zb-enabled[data-board-theme=weekly] .zb-panels,.zb-enabled[data-board-theme=planner] .zb-panels{grid-template-areas:'schedule schedule food' 'meal memos shopping'}.zb-enabled[data-board-theme=weekly] .zb-recipes,.zb-enabled[data-board-theme=planner] .zb-recipes{display:none}
 .zb-enabled[data-board-theme=dayflow] .zb-panels{grid-template-areas:'schedule food meal' 'schedule memos shopping'}.zb-enabled[data-board-theme=dayflow] .zb-recipes{display:none}
 .zb-enabled[data-board-theme=glance] .zb-food-line b{font-size:19px!important}.zb-enabled[data-board-theme=glance] .zb-food-line{padding:4px 0}.zb-enabled[data-board-theme=glance] .zb-food-icon{width:34px;height:34px;font-size:26px}
}
/* Calendar: show each date's schedule in place, in week and month views. */
.zbc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}
.zbc-toolbar .zb-calendar-tools{margin:0}.zbc-tabs{display:flex;gap:3px;background:#eceee7;padding:4px;border-radius:12px}
.zbc-tabs button{min-height:40px;min-width:64px;border:0;border-radius:9px;background:transparent;color:#425b4a;font-weight:700}
.zbc-tabs button[aria-pressed=true]{background:var(--g);color:#fff}
.zbc-grid,.zbc-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.zbc-day{min-width:0;border:1px solid #dde2d7;border-radius:14px;padding:10px;background:#fffefa}
.zbc-day.is-today{border:2px solid var(--g);padding:9px}.zbc-day.outside{background:#f1f1ec;color:#68756c}
.zbc-date{display:flex;align-items:center;gap:8px;background:transparent;border:0;color:inherit;padding:4px 2px 12px;width:100%;text-align:left;min-height:44px}
.zbc-date b{font-size:24px}.zbc-date span{font-size:13px}.zbc-date small{margin-left:auto;border-radius:20px;background:#e4ecda;padding:4px 7px;color:#234c36}
.zbc-date[aria-pressed=true] b{background:var(--g);color:white;min-width:36px;text-align:center;border-radius:50%}
.zbc-events{display:grid;gap:7px}.zbc-week .zbc-events{min-height:108px;align-content:start}
.zbc-event{display:grid;gap:4px;text-align:left;width:100%;padding:10px;border:0;border-left:3px solid #b18b44;border-radius:6px;background:#f2eedf;color:#3b422b;overflow-wrap:anywhere}
.zbc-event span{font-size:12px;color:#656853}.zbc-event b{font-size:clamp(14px,1vw,18px)}
.zbc-meals{display:grid;gap:7px}.zbc-week .zbc-meals{margin-top:18px;border-top:1px solid #e0e4d9;padding-top:12px}
.zbc-meal{display:grid;gap:3px;min-width:0;width:100%;text-align:left;padding:8px;border:0;border-radius:8px;background:#f1f4eb;color:#294934;overflow-wrap:anywhere}
.zbc-meal span{font-size:11px;color:#677c68}.zbc-meal b{font-size:13px;font-weight:500}.zbc-meal:not(.has-menu){background:transparent;color:#748171}
.zbc-none{color:#7b8576;font-size:12px;margin:8px 0}.zbc-weekdays{padding:10px 0;text-align:center;color:#586b5e}
.zbc-month{gap:5px}.zbc-month .zbc-day{min-height:145px;padding:7px}.zbc-month .zbc-date{padding-bottom:6px}.zbc-month .zbc-date b{font-size:19px}
.zbc-month .zbc-event{padding:6px;margin-bottom:4px}.zbc-month .zbc-event b{font-size:13px}.zbc-month .zbc-meals{gap:4px}
.zbc-detail{border-top:1px solid #dde2d7;margin-top:22px;padding-top:4px}.zbc-detail>div{display:grid;gap:10px}.zbc-detail .zbc-detail-meals{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}
.zbc-history-note{margin-top:18px}.zbc-error{color:#a33f2b}
@media(max-width:767px),(orientation:portrait){
 .zbc-toolbar{gap:10px}.zbc-tabs button{min-width:54px}.zbc-week{grid-template-columns:1fr}
 .zbc-week .zbc-day{display:grid;grid-template-columns:1fr;gap:4px}.zbc-week .zbc-events{min-height:0}.zbc-week .zbc-meals{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px;padding-top:8px}.zbc-week .zbc-date{padding-bottom:4px}
 .zbc-month{gap:2px}.zbc-month .zbc-day{min-height:100px;border-radius:5px;padding:3px}.zbc-month .zbc-date{gap:0;flex-wrap:wrap}.zbc-month .zbc-date b{font-size:15px}.zbc-month .zbc-date[aria-pressed=true] b{min-width:26px}.zbc-month .zbc-date small{font-size:10px;padding:0 3px}
 .zbc-month .zbc-event{padding:3px;border-left-width:2px}.zbc-month .zbc-event span{font-size:10px}.zbc-month .zbc-event b,.zbc-month .zbc-meal b{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.zbc-month .zbc-meal{padding:3px}
 .zbc-detail .zbc-detail-meals{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Mobile Focus leads with family notes; food stays in the full-width bottom row. */
@media(max-width:767px),(orientation:portrait){
 .zb-enabled[data-board-theme=focus] .zb-panels{grid-template-rows:.85fr 1.1fr 1.05fr;grid-template-areas:'memos shopping' 'meal schedule' 'food food'}
}
