:root{--ink:#123a67;--muted:#64748b;--pink:#ff5b9a;--pink-soft:#ffe5f0;--blue:#178eef;--blue-soft:#e0f3ff;--green:#28b86f;--green-soft:#e2f8e9;--yellow:#f5b91f;--yellow-soft:#fff3c9;--purple:#8c55dc;--purple-soft:#eee4ff;--card:#fff;--shadow:0 10px 26px rgba(24,66,112,.13);--radius:24px}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(#eaf8ff 0,#fff8fc 35%,#fffdf7 100%);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{max-width:1400px;margin:auto;min-height:100vh;padding:12px 18px 24px}.hero{display:grid;grid-template-columns:180px 1fr 180px;align-items:center;min-height:108px}.hero-art{font-size:40px;letter-spacing:5px}.hero-art.right{text-align:right}.brand{text-align:center}.brand h1{font-size:clamp(34px,5vw,58px);line-height:1;margin:0;font-weight:900;letter-spacing:-2px}.brand h1 span{font-size:.72em}.brand p{margin:8px 0 0;font-size:22px;font-weight:800;color:#315f9b}.modebar{display:flex;justify-content:center;gap:8px;margin:-2px 0 12px}.mode-btn{border:0;border-radius:999px;padding:9px 16px;background:#fff;box-shadow:0 4px 12px rgba(24,66,112,.1);font-weight:800;color:var(--ink)}.mode-btn.active{background:var(--pink);color:white}.week-nav{width:max-content;max-width:100%;margin:0 auto 14px;display:flex;align-items:center;gap:12px;background:#fff;border-radius:999px;padding:7px 12px;box-shadow:var(--shadow)}.week-nav div{text-align:center;min-width:220px}.week-nav small{display:block;color:#4170a8;font-weight:800}.week-nav strong{font-size:17px}.round-btn{width:38px;height:38px;border-radius:50%;border:0;background:var(--blue);color:#fff;font-size:30px;line-height:1;box-shadow:0 4px 8px rgba(23,142,239,.25)}.planner-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 104px;gap:12px}.day-card{border:2px solid rgba(255,255,255,.75);border-radius:24px;overflow:hidden;background:#fff;box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:390px;transition:.18s transform}.day-card:active{transform:scale(.99)}.day-card.today{outline:4px solid rgba(255,91,154,.25)}.day-card header{text-align:center;padding:13px 8px}.day-card:nth-child(1) header{background:#ffd9e8}.day-card:nth-child(2) header{background:#d9f1ff}.day-card:nth-child(3) header{background:#e0f5df}.day-card:nth-child(4) header{background:#fff0ba}.day-card:nth-child(5) header{background:#eee0ff}.day-card h3{margin:0;font-size:21px}.day-card header span{font-weight:800;color:#4b6d93}.day-content{flex:1;padding:12px;display:flex}.empty-day{margin:auto;text-align:center;color:#66809d}.empty-day span{display:block;font-size:72px}.empty-day b{font-size:18px}.school-pick{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:7px}.school-pick .big-food{font-size:86px;line-height:1}.school-pick b{font-size:20px}.school-pick small{font-size:14px;line-height:1.35;color:#61748b;font-weight:650}.mini-picks{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;align-content:start}.mini-pick{border-radius:18px;background:#f7faff;padding:9px 5px;text-align:center;min-height:105px;display:flex;flex-direction:column;justify-content:center}.mini-pick.main{background:#ffe9f1}.mini-pick.side{background:#fff5cf}.mini-pick.produce{background:#e7f8e8}.mini-pick.snack{background:#eee7ff}.mini-pick span{font-size:45px}.mini-pick small{font-weight:800;line-height:1.1;margin-top:3px}.leftover-note{margin-top:8px;border-radius:12px;background:#edf7ff;padding:8px;font-size:12px;font-weight:700}.edit-button{border:0;color:#fff;font-weight:900;font-size:17px;margin:0 11px 11px;padding:10px;border-radius:14px;background:var(--pink)}.day-card:nth-child(2) .edit-button{background:var(--blue)}.day-card:nth-child(3) .edit-button{background:var(--green)}.day-card:nth-child(4) .edit-button{background:var(--yellow);color:#654c00}.day-card:nth-child(5) .edit-button{background:var(--purple)}.quick-actions{display:flex;flex-direction:column;gap:11px}.quick-actions button{flex:1;border:2px solid #eadcfb;background:white;border-radius:22px;box-shadow:var(--shadow);font-weight:900;color:var(--ink);font-size:13px;line-height:1.05}.quick-actions button span{display:block;font-size:32px;margin-bottom:5px}.kid-tip{margin:14px 0 0;background:linear-gradient(90deg,#fff,#f7efff);border-radius:22px;padding:14px 18px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow)}.kid-tip>span{font-size:38px}.kid-tip b,.kid-tip small{display:block}.kid-tip small{color:var(--muted);margin-top:2px}.modal-backdrop{position:fixed;inset:0;background:rgba(14,40,70,.42);display:grid;place-items:center;padding:12px;z-index:99}.modal{width:min(780px,100%);max-height:94vh;overflow:auto;background:white;border-radius:28px;padding:20px;box-shadow:0 30px 90px rgba(14,40,70,.35)}.builder-modal{width:min(1120px,100%)}.modal h2{margin:0}.sub{margin:4px 0 16px;color:var(--muted);font-weight:650}.plan-type-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.plan-type{border:3px solid #e6edf5;background:#fff;border-radius:20px;padding:14px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--ink)}.plan-type span{font-size:35px}.plan-type b{font-size:18px}.plan-type.selected{border-color:var(--pink);background:#fff3f8}.plan-type.schooltype.selected{border-color:var(--blue);background:#eef8ff}.plan-type.disabled{opacity:.5}.packed-builder{display:grid;grid-template-columns:200px 1fr;gap:14px}.category-tabs{display:flex;flex-direction:column;gap:9px}.category-tab{position:relative;border:0;border-radius:18px;padding:12px 10px;display:grid;grid-template-columns:38px 1fr 24px;align-items:center;text-align:left;color:var(--ink);font-weight:850}.category-tab span{font-size:28px}.category-tab b{font-size:14px}.category-tab em{font-style:normal;background:#fff;border-radius:50%;width:22px;height:22px;display:grid;place-items:center}.category-tab:nth-child(1){background:#ffe2ed}.category-tab:nth-child(2){background:#fff0bd}.category-tab:nth-child(3){background:#dcf5df}.category-tab:nth-child(4){background:#eadfff}.category-tab.leftovers{background:#dff2ff}.category-tab.active{outline:4px solid rgba(23,142,239,.22)}.choice-area{border-radius:22px;background:#fff4f8;padding:15px;min-height:345px}.choice-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.choice-title h3{margin:0;font-size:24px;color:#b8235c}.choice-title span{font-weight:800;color:#486987}.food-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:12px}.food-tile{position:relative;border:3px solid transparent;background:#fff;border-radius:19px;min-height:145px;padding:10px 7px;color:var(--ink);box-shadow:0 5px 14px rgba(25,55,95,.08)}.food-tile.selected{border-color:var(--pink);background:#fff9fb}.food-emoji{display:block;font-size:64px;line-height:1.1}.food-tile b{display:block;font-size:15px;line-height:1.1}.food-tile i{position:absolute;right:7px;top:7px;background:var(--pink);color:white;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-style:normal}.lunch-so-far{display:grid;grid-template-columns:140px repeat(4,1fr);gap:8px;align-items:stretch;margin-top:14px}.lunch-so-far>b{display:flex;align-items:center;justify-content:center;text-align:center}.summary-choice{border-radius:15px;text-align:center;padding:8px;background:#f7f8fa}.summary-choice.main{background:#ffe8f0}.summary-choice.side{background:#fff2c8}.summary-choice.produce{background:#e4f7e6}.summary-choice.snack{background:#ece2ff}.summary-choice span{display:block;font-size:30px}.summary-choice small,.summary-choice strong{display:block}.summary-choice small{font-size:11px;color:#66758a}.summary-choice strong{font-size:12px;line-height:1.1}.school-detail{text-align:center;border-radius:22px;background:linear-gradient(180deg,#eaf7ff,#fff);padding:22px}.school-hero-icon{font-size:110px;line-height:1}.school-badge{display:inline-block;background:#d7efff;border-radius:999px;padding:6px 10px;font-weight:900;color:#266397}.school-detail h3{font-size:32px;margin:8px 0}.school-description{font-size:19px;font-weight:750;max-width:620px;margin:0 auto 14px;line-height:1.35}.school-detail details{max-width:620px;margin:auto;background:#fff;border-radius:14px;padding:10px}.school-detail summary{font-weight:800;cursor:pointer}.special-card{margin-top:15px;background:#fff;border-radius:18px;padding:15px;display:flex;align-items:center;gap:12px}.special-card>span{font-size:56px}.special-card b,.special-card small{display:block}.builder-actions,.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;position:sticky;bottom:-20px;background:#fff;padding:12px 0 2px}.btn{border:0;border-radius:14px;padding:10px 14px;font-weight:850;background:#f3f6fa;color:var(--ink)}.btn.primary{background:var(--pink);color:white}.btn.small{padding:7px 10px}.save-big{font-size:16px;padding-left:22px;padding-right:22px}.danger-btn{background:#fff0f1;color:#a93d4b}.field{display:flex;flex-direction:column;gap:6px;margin:10px 0}.field label{font-weight:800}.field input,.field textarea,.field select{border:2px solid #dce5ef;border-radius:13px;padding:11px;background:#fff;color:var(--ink)}.field textarea{min-height:100px}.checkline{display:flex;gap:8px;align-items:center;font-weight:800;margin:10px 0}.notice{background:#eaf6ff;border-radius:15px;padding:12px;color:#315779;line-height:1.4}.parent-header{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:22px;padding:16px 18px;box-shadow:var(--shadow);margin-bottom:14px}.parent-header h2{margin:0}.parent-header p{margin:3px 0;color:var(--muted)}.parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{background:#fff;border-radius:22px;padding:18px;box-shadow:var(--shadow);margin-bottom:14px}.panel h3{margin-top:0}.muted{color:var(--muted)}.food-manager{border-top:1px solid #edf0f5;padding:12px 0}.manager-title{display:flex;justify-content:space-between;align-items:center}.mini-add{border:0;border-radius:999px;background:#eaf6ff;color:#246394;padding:6px 10px;font-weight:800}.chip-wrap{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.food-chip{display:inline-flex;gap:7px;align-items:center;border-radius:999px;background:#f4f7fb;padding:7px 10px;font-weight:750}.food-chip button{border:0;background:#e7ecf2;border-radius:50%;width:22px;height:22px}.parent-buttons{display:flex;gap:8px;flex-wrap:wrap}.menu-list{display:grid;gap:7px;margin-top:12px;max-height:560px;overflow:auto}.menu-row{display:grid;grid-template-columns:105px 1fr auto;gap:9px;align-items:start;background:#f7f9fc;border-radius:14px;padding:9px}.menu-row small{display:block;color:var(--muted);margin-top:2px}.file-label input{display:none}footer{text-align:center;color:#7b899a;font-size:12px;padding:22px 8px}
@media(max-width:1100px){.planner-grid{grid-template-columns:repeat(5,minmax(160px,1fr));overflow-x:auto;padding-bottom:8px}.quick-actions{min-width:100px}.day-card{min-height:360px}.hero{grid-template-columns:100px 1fr 100px}.hero-art{font-size:30px}.food-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.app-shell{padding:8px}.hero{grid-template-columns:1fr}.hero-art{display:none}.brand h1{font-size:36px}.brand p{font-size:17px}.planner-grid{grid-template-columns:repeat(5,235px) 100px}.packed-builder{grid-template-columns:1fr}.category-tabs{display:grid;grid-template-columns:repeat(2,1fr)}.food-grid{grid-template-columns:repeat(2,1fr)}.lunch-so-far{grid-template-columns:repeat(2,1fr)}.lunch-so-far>b{grid-column:1/-1}.parent-grid{grid-template-columns:1fr}.parent-header{align-items:flex-start;gap:10px}.plan-type-row{grid-template-columns:1fr}.menu-row{grid-template-columns:1fr}.choice-title{align-items:flex-start;flex-direction:column}.food-tile{min-height:125px}.food-emoji{font-size:53px}}
.food-icon-img{width:1.15em;height:1.15em;object-fit:cover;border-radius:18%;vertical-align:-.12em;background:#fff;box-shadow:0 2px 6px rgba(24,66,112,.12)}
.food-emoji .food-icon-img{width:78px;height:78px;border-radius:18px;vertical-align:middle}
.mini-pick .food-icon-img{width:50px;height:50px}
.summary-choice .food-icon-img{width:34px;height:34px}
.school-pick .big-food .food-icon-img{width:96px;height:96px;border-radius:24px}
.school-hero-icon .food-icon-img{width:120px;height:120px;border-radius:28px}
.food-chip{padding-right:7px}.food-chip .chip-icon{display:grid;place-items:center;font-size:24px;min-width:28px}.food-chip .chip-icon .food-icon-img{width:30px;height:30px;border-radius:8px}.food-chip button.chip-edit{background:#eaf6ff;color:#246394;width:28px;height:28px;font-size:13px}
.icon-editor{display:grid;grid-template-columns:180px 1fr;gap:20px;align-items:start}.icon-editor>div:first-child{text-align:center}.icon-preview{width:160px;height:160px;margin:auto;border:3px dashed #d8e4ef;border-radius:28px;background:#f8fbff;display:grid;place-items:center;overflow:hidden}.icon-preview-emoji{font-size:90px;line-height:1}.icon-preview-img{width:100%;height:100%;object-fit:cover}.emoji-presets{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 13px}.emoji-presets button{width:42px;height:42px;border:0;border-radius:11px;background:#f2f6fb;font-size:24px}.upload-icon-btn{display:inline-flex;align-items:center;justify-content:center}.small-text{font-size:12px}.icon-editor-controls .field{margin-top:0}
@media(max-width:600px){.icon-editor{grid-template-columns:1fr}.icon-preview{width:140px;height:140px}}

/* Version 2.3: school lunch at-a-glance on each day card */
.school-glance{margin:9px 10px 0;padding:9px 10px;border-radius:16px;background:linear-gradient(135deg,#eaf7ff,#f7fbff);border:2px solid #d8edfb;display:flex;gap:8px;align-items:center;min-height:95px}
.school-glance-icon{font-size:37px;line-height:1;flex:0 0 45px;text-align:center}
.school-glance-icon .food-icon-img{width:44px;height:44px;border-radius:12px;object-fit:cover}
.school-glance div{min-width:0}
.school-glance small,.school-glance b,.school-glance em{display:block}
.school-glance small{font-size:10px;font-weight:900;color:#3672a4;text-transform:uppercase;letter-spacing:.04em}
.school-glance b{font-size:13px;line-height:1.1;margin:2px 0 3px}
.school-glance em{font-style:normal;font-size:10px;line-height:1.22;color:#62778d;font-weight:650;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.school-glance.closed{background:#fff1f2;border-color:#ffd6dc}
.school-glance.closed small,.school-glance.closed b{color:#a23b4a}
.school-glance.closed em{color:#865a62}
.school-glance.missing{background:#f5f7fa;border-color:#e7ebf0;opacity:.85}
.school-selected,.closed-day-message{margin:auto;text-align:center;width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.school-selected>span,.closed-day-message>span{font-size:52px;line-height:1}
.school-selected b,.closed-day-message b{font-size:17px}
.school-selected small,.closed-day-message small{font-size:12px;color:#667b91;font-weight:700}
.closed-card{background:#fffafb}
.closed-card .day-content{min-height:130px}
.day-card{min-height:470px}
@media(max-width:1100px){.day-card{min-height:450px}}

/* Version 2.4: visual school-lunch chooser */
.school-choice-wrap{border-radius:22px;background:linear-gradient(180deg,#eaf7ff,#fff);padding:18px}.school-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:14px}.school-option{position:relative;border:3px solid transparent;background:#fff;border-radius:19px;padding:14px;display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;text-align:left;color:var(--ink);box-shadow:0 5px 14px rgba(25,55,95,.08)}.school-option.selected{border-color:var(--blue);background:#f5fbff}.school-option-icon{font-size:54px;text-align:center}.school-option small,.school-option b,.school-option em{display:block}.school-option small{font-size:11px;font-weight:900;color:#607b96;text-transform:uppercase;letter-spacing:.3px}.school-option .daily-special{color:#b8235c}.school-option b{font-size:17px;margin:3px 0}.school-option em{font-style:normal;font-size:13px;line-height:1.3;color:#60748a;font-weight:650}.school-option i{position:absolute;right:8px;top:8px;background:var(--blue);color:white;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-style:normal}@media(max-width:760px){.school-choice-grid{grid-template-columns:1fr}.school-option{grid-template-columns:58px 1fr}.school-option-icon{font-size:45px}}


/* Version 3 cloud sync */
#syncStatus{font-weight:800}
#syncStatus[data-status="synced"]{color:#25764a}
#syncStatus[data-status="saving"],#syncStatus[data-status="connecting"]{color:#866000}
#syncStatus[data-status="error"]{color:#a82e4f}
.sync-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0 20px;padding:16px 18px;border-radius:18px;background:#f4fbff;border:2px solid #d8edf8;box-shadow:0 6px 18px rgba(55,94,125,.06)}
.sync-panel>div{display:grid;gap:3px}.sync-panel b{font-size:1.05rem}.sync-panel small,.sync-panel em{color:#687483;font-style:normal}.sync-panel em{font-size:.82rem}
@media(max-width:700px){.sync-panel{align-items:flex-start;flex-direction:column}.sync-panel .btn{width:100%}}

/* Version 3.1: per-category custom food entry */
.custom-food-tile{border:3px dashed #c9d8e7;background:linear-gradient(180deg,#fbfdff,#f4f8fc);position:relative}
.custom-food-tile:hover{border-color:#9fc3df;background:#f2f9ff}
.custom-food-tile .custom-plus{width:72px;height:72px;border-radius:22px;background:#e8f4ff;display:grid;place-items:center;margin:auto;color:#3579aa;font-size:52px;line-height:1;font-weight:500}
.custom-food-tile small{display:block;color:#708198;font-size:11px;margin-top:3px;font-weight:750}
.custom-food-tile em{position:absolute;right:10px;top:8px;font-style:normal;font-size:18px;opacity:.65}
.custom-food-editor{padding:4px 0}.custom-entry-card{background:linear-gradient(180deg,#f9fcff,#fff);border:2px solid #dbe9f4;border-radius:20px;padding:18px;margin-top:10px}
.custom-save-check{align-items:flex-start;background:#f2f8ff;border-radius:15px;padding:12px;margin:14px 0}
.custom-save-check input{width:20px;height:20px;margin-top:2px;accent-color:var(--blue)}
.custom-save-check span{display:grid;gap:2px}.custom-save-check small{font-weight:650;color:#667b91;line-height:1.3}
.custom-entry-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}
@media(max-width:600px){.custom-entry-actions{display:grid;grid-template-columns:1fr 1fr}.custom-entry-actions .btn{width:100%}}


/* Version 3.3: calmer packed-lunch hierarchy + distinct afternoon snack */
.day-content{min-height:170px;padding:10px 11px 8px;display:flex}
.packed-lunch-glance{width:100%;border-radius:17px;background:linear-gradient(180deg,#fffaf0,#fffdf8);border:2px solid #f5ecd5;padding:9px 8px 10px;display:flex;flex-direction:column;gap:8px}
.packed-lunch-heading{display:flex;align-items:center;gap:6px;padding:0 3px 7px;border-bottom:1px solid #efe7d5;color:#173f6d;text-transform:uppercase;letter-spacing:.035em}
.packed-lunch-heading span{font-size:18px}.packed-lunch-heading .packed-lunch-brand-icon{display:block;width:24px!important;max-width:24px;height:24px!important;max-height:24px;object-fit:contain;flex:0 0 24px}.packed-lunch-heading b{font-size:11px;font-weight:900}
.lunch-picks{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;align-items:stretch}
.lunch-picks .mini-pick{position:relative;background:transparent!important;border-radius:0;min-height:100px;padding:7px 5px 4px;justify-content:flex-start;overflow:visible}
.lunch-picks .mini-pick+ .mini-pick{border-left:1px solid #efe7d5}
.lunch-picks .mini-pick span{font-size:43px;line-height:1.05;min-height:50px;display:grid;place-items:center}
.lunch-picks .mini-pick small{font-size:12px;line-height:1.12;overflow-wrap:anywhere;word-break:normal;hyphens:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lunch-picks .mini-pick .food-icon-img{width:48px;height:48px}
.empty-packed .empty-day{padding:10px 0}.empty-packed .empty-day span{font-size:43px}.empty-packed .empty-day b{font-size:14px}
.day-snack{margin:0 11px 10px;border-radius:17px;background:linear-gradient(180deg,#f5f0ff,#fbf9ff);border:2px solid #e2d8fb;padding:8px 10px 9px;min-height:78px;display:grid;grid-template-columns:1fr;gap:7px}
.day-snack-label{display:flex;align-items:center;gap:6px;color:#61458f;border-bottom:1px solid #e1d8f4;padding-bottom:6px;text-transform:uppercase;letter-spacing:.035em}
.day-snack-label>span{font-size:18px}.day-snack-label .day-snack-brand-icon{display:block;width:24px!important;max-width:24px;height:24px!important;max-height:24px;object-fit:contain;flex:0 0 24px}.day-snack-label b{font-size:11px;font-weight:900}
.day-snack-choice{display:flex;align-items:center;justify-content:center;gap:8px;text-align:left;min-width:0;color:var(--ink)}
.day-snack-choice>span{font-size:31px;line-height:1;flex:0 0 auto}.day-snack-choice b{font-size:13px;line-height:1.12;min-width:0;overflow-wrap:anywhere}
.day-snack-choice .food-icon-img{width:34px;height:34px;border-radius:9px}
.day-snack.empty{background:#faf9fd;border-style:dashed}.day-snack.empty .day-snack-choice{color:#8290a3}.day-snack.empty .day-snack-choice>span{font-size:19px}
.day-card{min-height:500px}
@media(max-width:1100px){.day-card{min-height:475px}.day-content{min-height:160px}.lunch-picks .mini-pick{min-height:94px;padding-left:3px;padding-right:3px}.lunch-picks .mini-pick span{font-size:39px}.lunch-picks .mini-pick small{font-size:11px}.day-snack{min-height:74px;padding:8px}.day-snack-choice>span{font-size:28px}}


/* Version 3.4: afternoon snack remains selectable when buying school lunch */
.school-snack-wrap{margin-top:16px;border-radius:22px;background:linear-gradient(135deg,#f5efff,#fbf9ff);border:2px solid #e5d9ff;padding:16px 18px}
.school-snack-wrap .choice-title h3{color:#65459b}
.school-snack-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:13px}
.school-snack-option{position:relative;border:3px solid transparent;background:#fff;border-radius:18px;min-height:120px;padding:10px 7px;color:var(--ink);box-shadow:0 5px 14px rgba(25,55,95,.07);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.school-snack-option>span{display:block;font-size:52px;line-height:1.05}
.school-snack-option>b{display:block;font-size:15px;line-height:1.15;margin-top:5px}
.school-snack-option>small{font-size:11px;color:#6f6485;margin-top:3px}
.school-snack-option.selected{border-color:#9270d8;background:#fbf9ff}
.school-snack-option>i{position:absolute;right:7px;top:7px;background:#7956bd;color:white;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-style:normal}
.school-snack-custom{margin-top:13px;background:#fff;border:1px solid #eee8fa}
@media(max-width:760px){.school-snack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Version 3.6 Favorites Preview */
.favorite-strip{margin:0 0 15px;border-radius:22px;padding:14px;background:linear-gradient(135deg,#fff8d7,#fffdf2);border:2px solid #f6e8ac}
.favorite-strip-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.favorite-strip-head b{display:block;font-size:19px}.favorite-strip-head small{display:block;color:var(--muted);font-weight:700;margin-top:2px}.favorite-manage-link{border:0;background:#fff;border-radius:999px;padding:7px 11px;font-weight:850;color:#7b5b00}.favorite-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.favorite-card{border:2px solid #eadb9d;background:#fff;border-radius:18px;padding:10px;color:var(--ink);box-shadow:0 4px 10px rgba(25,55,95,.06)}.favorite-card:active{transform:scale(.99)}.favorite-icons{display:flex;justify-content:center;align-items:center;gap:4px;min-height:48px}.favorite-icons>span{font-size:36px;line-height:1}.favorite-card b,.favorite-card small{display:block}.favorite-card b{font-size:15px;margin-top:4px}.favorite-card small{font-size:11px;color:var(--muted);margin-top:2px}.favorite-empty{padding:16px;border-radius:15px;background:#fff;color:var(--muted);font-weight:750}.surprise-btn{width:100%;margin-top:10px;border:0;border-radius:16px;background:linear-gradient(90deg,#f2e5ff,#e7dcff);padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:10px;color:#56328b}.surprise-btn>span{font-size:26px}.surprise-btn b,.surprise-btn small{display:block;text-align:left}.surprise-btn b{font-size:17px}.surprise-btn small{font-size:11px}.favorite-save-row{display:flex;justify-content:flex-end;margin-top:9px}.favorite-save-btn{background:#fff6cf;border:2px solid #efd874;color:#715600}.favorites-panel{scroll-margin-top:14px}.favorites-parent-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.favorites-parent-head h3{margin-bottom:2px}.favorites-parent-head p{margin:0}.favorite-manager-list{display:grid;gap:8px;margin-top:12px}.favorite-manager-row{display:grid;grid-template-columns:110px 1fr auto auto;gap:10px;align-items:center;background:#f8f9fc;border-radius:15px;padding:10px}.favorite-manager-icons{display:flex;gap:2px}.favorite-manager-icons span{font-size:28px}.favorite-manager-row b,.favorite-manager-row small{display:block}.favorite-manager-row small{color:var(--muted);margin-top:2px}
@media(max-width:760px){.favorite-cards{grid-template-columns:1fr 1fr}.favorite-manager-row{grid-template-columns:80px 1fr}.favorite-manager-row .btn{grid-row:2}.favorites-parent-head{flex-direction:column}}
\n\n/* Version 3.7 — compact Favorites + scroll-stable builder */
.quick-picks{margin:0 0 14px;display:grid;gap:8px}
.favorite-compact-row,.surprise-compact-row{width:100%;border-radius:16px;padding:10px 13px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;text-align:left;color:var(--ink)}
.favorite-compact-row{border:2px solid #f1dfa0;background:linear-gradient(90deg,#fff9dc,#fffef7)}
.favorite-compact-row.expanded{border-radius:16px 16px 10px 10px}
.favorite-compact-row .quick-icon,.surprise-compact-row .quick-icon{font-size:24px;line-height:1}
.favorite-compact-row b,.surprise-compact-row b{display:block;font-size:16px;line-height:1.1}
.favorite-compact-row small,.surprise-compact-row small{display:block;margin-top:2px;color:var(--muted);font-size:11px;font-weight:750}
.favorite-chevron{font-size:27px;font-weight:900;color:#8f730f;line-height:1}
.favorite-expand-panel{margin-top:-8px;border:2px solid #f1dfa0;border-top:0;border-radius:0 0 18px 18px;padding:10px;background:#fffdf4}
.favorite-expand-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:var(--muted);font-weight:750}
.surprise-compact-row{border:2px solid #e2d5f7;background:linear-gradient(90deg,#f7efff,#f3edff);color:#56328b}
.quick-action-mark{font-size:20px}
.favorite-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.favorite-card{padding:8px;min-height:104px}.favorite-icons{min-height:38px}.favorite-icons>span{font-size:27px}.favorite-card b{font-size:13px}.favorite-card small{font-size:10px}
@media(max-width:760px){.favorite-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.favorite-compact-row,.surprise-compact-row{padding:9px 11px}.favorite-expand-head{align-items:flex-start}.favorite-expand-head small{max-width:75%}}

/* Version 4.0 — family profiles, child themes, shared foods */
.child-switch-row{display:flex;justify-content:center;margin:-2px 0 8px}.child-switch{border:2px solid rgba(255,255,255,.9);background:#fff;border-radius:999px;padding:7px 12px;display:grid;grid-template-columns:30px auto auto 18px;align-items:center;gap:7px;color:var(--ink);box-shadow:0 5px 14px rgba(24,66,112,.11)}.child-switch>span{font-size:24px}.child-switch>b{font-size:15px}.child-switch>small{color:var(--muted);font-weight:750;padding-left:2px}.child-switch>i{font-style:normal;font-size:18px;color:#71859b}
.child-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.child-choice-card{position:relative;min-height:150px;border:3px solid #e6edf5;background:#fff;border-radius:22px;padding:18px;color:var(--ink);box-shadow:0 5px 14px rgba(25,55,95,.07)}.child-choice-card>span{display:block;font-size:58px}.child-choice-card>b,.child-choice-card>small{display:block}.child-choice-card>b{font-size:21px}.child-choice-card>small{color:var(--muted);font-weight:750;margin-top:3px}.child-choice-card.selected{border-color:var(--pink);background:#fff8fb}.child-choice-card>i{position:absolute;right:10px;top:10px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--pink);color:#fff;font-style:normal;font-weight:900}
.theme-construction{--pink:#ed9b1d;--blue:#2f7bb9;--green:#57a96c;--purple:#7b66ad}.theme-construction body{}.theme-construction .brand p{color:#8a5b0d}.theme-construction .mode-btn.active,.theme-construction .btn.primary{background:#ed9b1d}.theme-dinosaurs{--pink:#5cab61;--blue:#3e8fb5;--green:#4e9c50;--purple:#8070b7}.theme-dinosaurs .brand p{color:#3f7743}.theme-dinosaurs .mode-btn.active,.theme-dinosaurs .btn.primary{background:#5cab61}.theme-animals{--pink:#f0788e;--blue:#4998d0;--green:#5bad78;--purple:#9a6bca}.theme-ocean{--pink:#27a2c4;--blue:#2187c7;--green:#37aa91;--purple:#687ed0}.theme-ocean .brand p{color:#24759b}.theme-ocean .mode-btn.active,.theme-ocean .btn.primary{background:#27a2c4}.theme-space{--pink:#7659c7;--blue:#4976d2;--green:#4c9e8e;--purple:#7659c7}.theme-space .brand p{color:#5c55a2}.theme-space .mode-btn.active,.theme-space .btn.primary{background:#7659c7}
.children-manager{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin-top:14px}.child-manager-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;border:2px solid #e8edf3;border-radius:18px;padding:8px;background:#fbfcfe}.child-manager-card.active{border-color:#c9b8ef;background:#faf7ff}.child-manager-main{border:0;background:transparent;display:grid;grid-template-columns:48px 1fr;gap:9px;align-items:center;text-align:left;color:var(--ink);padding:4px}.child-manager-main>span{font-size:40px}.child-manager-main b,.child-manager-main small,.child-manager-main em{display:block}.child-manager-main b{font-size:17px}.child-manager-main small{color:var(--muted);font-weight:750;margin-top:2px}.child-manager-main em{font-style:normal;color:#7b8796;font-size:11px;margin-top:4px;line-height:1.3}
.profile-check{align-items:flex-start;background:#f4f8fc;border-radius:16px;padding:12px}.profile-check span{display:grid;gap:2px}.profile-check small{color:var(--muted);font-weight:650}.profile-options{border-top:1px solid #edf0f4;margin-top:14px;padding-top:10px}.profile-options h3{font-size:15px;margin:0 0 8px}.profile-option{display:grid;grid-template-columns:24px 34px 1fr;align-items:center;gap:7px;background:#f8fafc;border-radius:13px;padding:9px 10px;margin:6px 0}.profile-option input{width:19px;height:19px}.profile-option span{font-size:24px}
.food-availability-editor{border:2px solid #e5ebf1;border-radius:16px;padding:12px;margin:14px 0;background:#fafcfe}.food-availability-editor>label:first-child{display:block;font-weight:900;margin-bottom:8px}.availability-child{display:inline-flex;align-items:center;gap:6px;margin:4px 10px 4px 0;background:#fff;border:1px solid #e5eaf0;border-radius:999px;padding:7px 10px;font-weight:800}.availability-child input{width:18px;height:18px}.availability-child span{font-size:20px}.food-chip>span:nth-child(2) small{display:block;font-size:9px;color:#8090a2;margin-top:1px;font-weight:700}
.copy-child-list{display:grid;gap:9px;margin:12px 0}.copy-child-button{border:2px solid #e6edf5;background:#fff;border-radius:17px;padding:10px 12px;display:grid;grid-template-columns:42px 1fr 20px;gap:10px;align-items:center;text-align:left;color:var(--ink)}.copy-child-button>span{font-size:35px}.copy-child-button b,.copy-child-button small{display:block}.copy-child-button small{color:var(--muted);font-weight:700}.copy-child-button i{font-style:normal;font-size:27px;color:#7e8ea2}.plan-type-row.single{grid-template-columns:1fr}.dynamic-summary{grid-template-columns:140px repeat(auto-fit,minmax(95px,1fr))}.category-tab:nth-child(5){background:#e4f2ff}.summary-choice.morningSnack{background:#fff4cf}.summary-choice.snack{background:#ece2ff}.day-snack.morning{background:linear-gradient(180deg,#fff8df,#fffdf5);border-color:#f3e5a6}.day-snack.morning .day-snack-label{color:#8a6914;border-color:#ede1b4}.lunch-picks.dynamic-1{grid-template-columns:1fr}.lunch-picks.dynamic-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lunch-picks.dynamic-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.child-switch>small{display:none}.child-choice-grid{grid-template-columns:1fr 1fr}.child-choice-card{min-height:125px;padding:12px}.child-choice-card>span{font-size:46px}.children-manager{grid-template-columns:1fr}.dynamic-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dynamic-summary>b{grid-column:1/-1;padding:4px}.category-tabs{overflow-x:auto;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(125px,1fr);padding:3px 2px 7px}.packed-builder{grid-template-columns:1fr}.category-tab{min-height:62px}.hero{grid-template-columns:65px 1fr 65px}.hero-art{font-size:24px}.brand h1{font-size:clamp(28px,8vw,40px)}.brand p{font-size:16px}}
.theme-fantasy{background:linear-gradient(180deg,rgba(255,239,248,.55),rgba(246,241,255,.25))}.theme-construction{background:linear-gradient(180deg,rgba(255,246,216,.6),rgba(235,246,255,.25))}.theme-dinosaurs{background:linear-gradient(180deg,rgba(232,248,228,.55),rgba(255,250,225,.25))}.theme-animals{background:linear-gradient(180deg,rgba(255,242,232,.45),rgba(239,248,255,.25))}.theme-ocean{background:linear-gradient(180deg,rgba(222,248,255,.6),rgba(236,245,255,.25))}.theme-space{background:linear-gradient(180deg,rgba(237,232,255,.55),rgba(231,241,255,.25))}


/* Version 4.1 — compact family controls + customizable child components */
.app-shell{position:relative}
.top-tools{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:42px;margin:-4px 0 2px;position:relative;z-index:8}
.top-tools .child-switch{grid-template-columns:25px auto 16px;padding:5px 9px;gap:5px;box-shadow:0 3px 10px rgba(24,66,112,.09)}
.top-tools .child-switch>span{font-size:20px}.top-tools .child-switch>b{font-size:13px}.top-tools .child-switch>i{font-size:16px}
.top-tool{width:36px;height:36px;border-radius:50%;border:2px solid rgba(255,255,255,.95);background:#fff;display:grid;place-items:center;font-size:17px;box-shadow:0 3px 10px rgba(24,66,112,.09);color:var(--ink)}
.top-tool.active{outline:2px solid color-mix(in srgb,var(--pink) 40%,transparent);background:#fff8fb}
.hero{margin-top:-34px;padding-top:34px}
.child-choice-card{min-height:132px}.child-choice-card>b{margin-top:5px}
.profile-editor-modal{max-width:760px}
.profile-options-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.profile-options-head h3{margin:0}.profile-options-head small{display:block;color:var(--muted);font-weight:650;margin-top:2px}
.profile-component-row{display:grid;grid-template-columns:24px 34px minmax(130px,1fr) 145px 28px;align-items:center;gap:7px;background:#f8fafc;border-radius:13px;padding:8px 9px;margin:6px 0}
.profile-component-row>input[type=checkbox]{width:19px;height:19px}.profile-component-icon{font-size:23px;text-align:center}
.profile-label-input,.profile-foodcat{width:100%;border:1px solid #dbe3ec;border-radius:9px;background:#fff;padding:7px 8px;font:inherit;color:var(--ink);font-weight:750}
.profile-foodcat:disabled{opacity:.65;background:#f1f4f7}.profile-lock{color:#a6b0bc;text-align:center;font-size:20px}.profile-remove{border:0;background:#fff0f0;color:#b34d4d;width:28px;height:28px;border-radius:50%;font-size:20px;line-height:1}
@media(max-width:760px){.top-tools{margin-top:-7px}.hero{margin-top:-31px;padding-top:38px}.brand h1{padding-left:18px;padding-right:18px}.top-tools .child-switch{max-width:130px}.profile-component-row{grid-template-columns:22px 30px minmax(0,1fr) 28px}.profile-foodcat{grid-column:3/5}.profile-remove,.profile-lock{grid-column:4;grid-row:1}.profile-options-head{align-items:center}.profile-editor-modal{max-width:96vw}}

/* Version 4.1 — compact header controls + flexible child components */
.app-shell{position:relative}
.top-tools{position:absolute;top:12px;right:18px;z-index:12;display:flex;align-items:center;gap:6px}
.top-tools .child-switch{display:flex;grid-template-columns:none;align-items:center;gap:6px;padding:6px 10px;border:1px solid rgba(210,223,237,.95);box-shadow:0 3px 10px rgba(24,66,112,.10);background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}
.top-tools .child-switch>span{font-size:20px}.top-tools .child-switch>b{font-size:13px}.top-tools .child-switch>i{font-size:15px}
.top-tool{width:34px;height:34px;border-radius:50%;border:1px solid #dbe5ef;background:rgba(255,255,255,.94);box-shadow:0 3px 10px rgba(24,66,112,.10);display:grid;place-items:center;font-size:16px;color:var(--ink);backdrop-filter:blur(8px)}
.top-tool.active{background:var(--pink);border-color:var(--pink);color:#fff}
.child-choice-card>b{margin-top:5px}.child-choice-card>small{display:none}
.profile-editor-modal{width:min(920px,100%)}
.profile-options-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.profile-options-head h3{margin:0}.profile-options-head small{display:block;color:var(--muted);font-weight:650;margin-top:2px}
.profile-component-row{display:grid;grid-template-columns:26px 40px minmax(150px,1.4fr) minmax(130px,1fr) 28px;gap:8px;align-items:center;background:#f8fafc;border:1px solid #edf1f5;border-radius:14px;padding:8px;margin:7px 0}
.profile-component-row>input[type="checkbox"]{width:19px;height:19px;accent-color:var(--pink)}
.profile-component-icon{font-size:25px;text-align:center}.profile-label-input,.profile-foodcat{min-width:0;border:2px solid #dce5ef;border-radius:11px;padding:9px;background:#fff;color:var(--ink)}.profile-foodcat:disabled{opacity:.68;background:#f2f5f8}
.profile-lock{color:#9ca9b7;text-align:center;font-weight:900}.profile-remove{width:28px;height:28px;border:0;border-radius:50%;background:#fff0f1;color:#a23f4c;font-size:19px;line-height:1}
@media(max-width:760px){.top-tools{top:8px;right:8px}.top-tools .child-switch{padding:5px 8px}.top-tools .child-switch>span{font-size:18px}.top-tools .child-switch>b{font-size:12px}.top-tool{width:31px;height:31px;font-size:14px}.hero{padding-top:28px;min-height:100px}.profile-component-row{grid-template-columns:24px 34px 1fr 28px}.profile-foodcat{grid-column:3/5}.profile-lock{grid-column:4}.profile-options-head{align-items:center}.profile-options-head small{font-size:11px}}


/* Version 4.2 — unified utility controls + removable custom food groups */
.top-tools{top:10px;right:18px}
.top-tool-group{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid rgba(210,223,237,.95);border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 4px 12px rgba(24,66,112,.10);backdrop-filter:blur(10px)}
.top-tools .child-switch{border:0;box-shadow:none;background:transparent;backdrop-filter:none;border-radius:11px;padding:6px 9px;gap:5px}
.top-tools .child-switch>b{font-size:13px}.top-tools .child-switch>i{font-size:14px;color:#71859b}
.top-tool-divider{width:1px;height:20px;background:#dfe7ef;margin:0 2px}
.top-tool{width:31px;height:31px;border:0;box-shadow:none;background:transparent;backdrop-filter:none;border-radius:10px;font-size:15px}
.top-tool:hover,.top-tools .child-switch:hover{background:#f3f7fb}
.top-tool.active{background:color-mix(in srgb,var(--pink) 14%,white);color:var(--ink);outline:1px solid color-mix(in srgb,var(--pink) 24%,transparent)}
.manager-title{gap:10px}.manager-actions{display:flex;align-items:center;gap:6px}.mini-remove-category{border:0;border-radius:999px;background:#fff0f1;color:#a23f4c;padding:6px 10px;font-weight:800;font-size:12px}
@media(max-width:760px){.top-tools{top:7px;right:7px}.top-tool-group{border-radius:13px;padding:2px}.top-tools .child-switch{padding:5px 7px}.top-tools .child-switch>b{font-size:12px}.top-tool{width:29px;height:29px;font-size:13px}.top-tool-divider{height:18px}.manager-title{align-items:flex-start}.manager-actions{flex-wrap:wrap;justify-content:flex-end}.mini-remove-category{padding:5px 8px;font-size:11px}}

/* Version 4.3 app bar */
.app-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 16px;margin:0 0 8px;background:rgba(255,255,255,.92);border-radius:18px;box-shadow:0 6px 18px rgba(24,66,112,.10);position:relative;z-index:10}
.app-bar-title{font-size:clamp(18px,3vw,26px);font-weight:900;white-space:nowrap}
.app-bar-controls{display:flex;align-items:center;gap:8px}
.app-bar .child-switch{grid-template-columns:auto 16px;padding:8px 14px}
.week-placeholder{height:36px;min-width:36px;border-radius:50%;border:2px solid rgba(255,255,255,.95);background:var(--blue-soft)}
@media(max-width:600px){
 .app-bar{flex-direction:column;align-items:stretch;padding:10px 12px}
 .app-bar-title{text-align:center}
 .app-bar-controls{justify-content:space-between}
 .hero{min-height:70px}
}

/* Account household shortcuts */
.account-household-switch{margin:18px 0 22px}.account-household-switch h4{margin:0 0 12px;color:#123f65}.account-household-list{display:flex;flex-wrap:wrap;gap:12px}.account-panel .account-household-card{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1 1 230px;min-width:0;padding:16px 18px;border:2px solid #d8eaf2;border-radius:18px;background:#f3faff;color:#123f65;text-decoration:none;min-height:64px}.account-household-card b{overflow-wrap:anywhere}.account-household-card span{font-size:13px;font-weight:700;white-space:nowrap;color:#53758b}.account-panel .account-household-card.current{border-color:#9bdac4;background:#effbf5}.account-household-card.current span{color:#187455}.account-panel a.account-household-card:hover{border-color:#2799e9;background:#e9f7ff}.account-panel a.account-household-card:focus-visible{outline:3px solid #eaaa24;outline-offset:3px}.account-household-name{color:#123f65}
@media(max-width:520px){.account-panel .account-household-card{flex-basis:100%;gap:12px;padding:14px}.account-household-card span{white-space:normal}}
