/* Camp Kitchen: scoped to the kitchen workspace and its dialogs. */
#packWorkspacePanel #mealsSection.kitchen-workspace{display:block;width:100%;max-width:none;min-width:0;padding:0;overflow:hidden;background:#fbf9f3;border:1px solid #e3ded0;border-radius:24px}
#mealsSection.kitchen-workspace .section-header{display:block;margin:0;padding:0}
.kitchen-workspace .kitchen-hero{padding:34px 38px;background:linear-gradient(90deg,#faf8ed 20%,#faf8edca 60%,#faf8ed44),url('../assets/forest-background.png') center 50%/cover;color:#254638}
#mealsSection.kitchen-workspace .kitchen-hero h3{font-size:44px;margin:8px 0;font-weight:700}
.kitchen-hero p{font-size:17px;margin:8px 0 18px}.kitchen-eyebrow{font-size:11px;letter-spacing:2.5px;font-weight:800}.kitchen-trip-label{display:inline-block;border:1px solid #d9dfcc;border-radius:18px;background:#ffffffc9;padding:6px 14px;font-size:13px}
.kitchen-workspace .kitchen-tabs{display:flex;gap:8px;padding:15px 28px;border-bottom:1px solid #dfdece;background:#efefe4}
.kitchen-workspace .kitchen-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-height:50px;max-width:230px;border:1px solid transparent;background:transparent;box-shadow:none;color:#365448}
.kitchen-workspace .kitchen-tabs button[aria-pressed=true]{background:#244a3b;color:white;border-color:#244a3b}
.kitchen-icon{display:inline-flex;align-items:center;flex:none;line-height:1}.kitchen-icon svg{width:20px;height:20px;stroke-width:1.8}
#mealsSection.kitchen-workspace .kitchen-hidden{display:none!important}
#mealsSection.kitchen-workspace #kitchenMealsView,#mealsSection.kitchen-workspace #kitchenRecipesView,#mealsSection.kitchen-workspace #mealShoppingPanel{padding:28px;display:block;min-width:0;width:100%;box-sizing:border-box;margin:0;border:0;background:transparent;box-shadow:none}
.kitchen-view-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
#mealsSection.kitchen-workspace .kitchen-view-heading h3,#mealsSection.kitchen-workspace .camp-kitchen-shopping-header h3{font-size:30px;margin:0 0 6px}.kitchen-view-heading p{margin:0;color:#746f61}
.kitchen-workspace button,.kitchen-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;font-size:14px;line-height:1.25;border-radius:12px;color:#244538;cursor:pointer}
.kitchen-workspace .kitchen-primary,.kitchen-dialog .kitchen-primary{background:#f47b19;color:white;border:1px solid #ec7110;box-shadow:0 4px 12px #92512214}
.kitchen-workspace input,.kitchen-workspace select,.kitchen-workspace textarea,.kitchen-dialog input,.kitchen-dialog select,.kitchen-dialog textarea{box-sizing:border-box;max-width:100%;min-width:0;font:inherit;color:#2e4337;border:1px solid #ddd5c5;border-radius:10px;background:#fffdf7;padding:11px 12px}
.kitchen-workspace input:focus-visible,.kitchen-workspace select:focus-visible,.kitchen-workspace button:focus-visible,.kitchen-dialog :focus-visible{outline:3px solid #c78245;outline-offset:2px}
#mealsSection.kitchen-workspace .camp-kitchen-shopping-header{display:flex;flex-wrap:wrap;align-items:start;gap:16px;margin-bottom:20px}
#mealsSection.kitchen-workspace .camp-kitchen-shopping-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:none}
#mealsSection.kitchen-workspace .camp-kitchen-shopping-stats{display:none}
#kitchenSupplyTools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:20px 0}
.kitchen-filters{display:flex;gap:5px;flex-wrap:wrap}.kitchen-filters button{background:transparent;box-shadow:none;border:1px solid transparent}.kitchen-filters button[aria-pressed=true]{background:#e7eedc;border-color:#becfaf;color:#2b523d}
#kitchenSupplyTools input{max-width:250px;flex:1;min-width:140px}
.kitchen-supply-group{border:1px solid #e3e0d2;border-radius:15px;margin:20px 0;overflow:hidden;background:#fffef9}
.kitchen-supply-group h4{margin:0;padding:12px 18px;background:#edf0e2;color:#486048;font-family:inherit;font-size:14px;font-weight:800}
.kitchen-supply-row{display:grid;grid-template-columns:minmax(140px,1fr) 205px 95px 44px;align-items:center;gap:16px;padding:18px;border-top:1px solid #efede4}
.kitchen-item-info{display:grid;gap:4px;min-width:0}.kitchen-item-info strong{font-size:17px;overflow-wrap:anywhere}.kitchen-item-info span{font-size:14px;color:#6d705f}.kitchen-item-info small{font-size:12px;color:#858476;overflow-wrap:anywhere}
.kitchen-status{display:flex;align-items:center;gap:5px;min-width:0}.kitchen-status select{width:100%;font-size:13px;padding:10px 5px}.kitchen-status.status-home{color:#426640}.kitchen-status.status-purchased{color:#506b62}.kitchen-status.status-need{color:#bd671c}
.kitchen-packed{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.kitchen-packed input{width:21px!important;height:21px!important;min-width:21px;accent-color:#305844;margin:0}
.kitchen-workspace .kitchen-more,.shopping-popup-panel .kitchen-more{font-size:24px;padding:0;min-width:40px;background:transparent;border:1px solid #e7e1d5;box-shadow:none}
.kitchen-supply-row.is-packed{background:#f3f6ed}.kitchen-empty{padding:30px;text-align:center;border:1px dashed #d9dac9;border-radius:18px;color:#6d715f}.kitchen-empty h4{font-size:25px;margin:15px 0}.kitchen-empty>.kitchen-icon svg{height:34px;width:34px}
.kitchen-empty .kitchen-recipe-photo{width:190px;height:130px;margin:auto}
.kitchen-recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px}.kitchen-recipe-card{border:1px solid #dddccb;border-radius:18px;overflow:hidden;background:#fffdf7;box-shadow:0 8px 22px #26382a08}.kitchen-recipe-card>div{padding:20px}.kitchen-recipe-card h4{font-size:26px;margin:0}.kitchen-recipe-card p{color:#777566;font-size:14px}
.kitchen-recipe-photo{width:100%;height:200px;object-fit:cover;border-radius:12px;background:#f5f1e6}.kitchen-recipe-card>.kitchen-recipe-photo{border-radius:0}
.kitchen-actions{display:flex;flex-wrap:wrap;gap:8px}.kitchen-meal-details{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;margin:16px 0 24px}.kitchen-meal-details>.kitchen-recipe-photo{height:170px}.kitchen-meal-details input{max-width:110px}.kitchen-meal-details textarea{width:100%;resize:vertical}
.kitchen-field{display:grid;gap:7px;font-size:14px;font-weight:600;margin-bottom:15px;min-width:0}.kitchen-field>span{color:#536453}.kitchen-field input,.kitchen-field textarea,.kitchen-field select{width:100%;font-weight:400}
#mealsSection.kitchen-workspace .camp-kitchen-panel{width:100%;box-sizing:border-box;padding:18px;margin-bottom:16px;border:1px solid #e2dfd1;border-radius:16px;background:#fffdf8}
#mealsSection.kitchen-workspace .camp-kitchen-panel>summary{font-size:24px;padding:0;margin-bottom:14px}
#mealsSection.kitchen-workspace .meal-day-card{margin:16px 0;padding:20px;border-radius:16px;background:#faf8f0;box-shadow:none}
#mealsSection.kitchen-workspace .meal-section{margin:10px 0;padding:16px;border-radius:12px}
#mealsSection.kitchen-workspace .meal-section-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
#mealsSection.kitchen-workspace .meal-title-wrap,#mealsSection.kitchen-workspace .meal-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-width:0}
#mealsSection.kitchen-workspace .meal-title-wrap h4{font-size:23px}.kitchen-workspace .meal-actions button{padding:8px 12px;font-size:12px;min-height:38px}
#mealsSection.kitchen-workspace .row{display:flex;flex-wrap:wrap;gap:10px;width:100%;min-width:0;align-items:center;margin:12px 0}
#mealsSection.kitchen-workspace .row input{flex:1 1 170px;width:auto}#mealsSection.kitchen-workspace .row select{flex:0 1 200px;width:auto}#mealsSection.kitchen-workspace .row button{flex:0 0 auto;position:static;transform:none}
#packWorkspacePanel #mealsSection.kitchen-workspace :is(#snacksSection,#drinksSection,#condimentsSection) .row{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,160px) auto;gap:12px}
#packWorkspacePanel #mealsSection.kitchen-workspace :is(#snacksSection,#drinksSection,#condimentsSection) .row>*{width:100%;min-width:0;margin:0}
.kitchen-dialog{width:min(720px,calc(100vw - 32px));max-height:90vh;box-sizing:border-box;padding:0;border:1px solid #d9dcc9;border-radius:22px;background:#fcfaf3;color:#294737;box-shadow:0 25px 90px #12291d55}
.kitchen-dialog::backdrop{background:#182c2466;backdrop-filter:blur(3px)}.kitchen-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid #e2dfd1;position:sticky;top:0;background:#fcfaf3;z-index:1}.kitchen-dialog-header h3{font-size:29px;margin:0}.kitchen-dialog-body{padding:24px}.kitchen-dialog h4{font-size:22px;margin:22px 0 12px}.kitchen-dialog-body>.kitchen-recipe-photo{height:230px}.kitchen-dialog textarea{resize:vertical}.kitchen-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.kitchen-recipe-ingredient{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 36px;gap:8px;margin:10px 0}.kitchen-recipe-ingredient input,.kitchen-recipe-ingredient select{width:100%;font-size:13px;padding:10px 8px}.kitchen-recipe-ingredient button{padding:0}
.kitchen-photo-editor{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center;margin:20px 0}.kitchen-photo-editor .kitchen-recipe-photo{height:100px}.kitchen-photo-editor button{grid-column:2}.kitchen-instructions{white-space:pre-wrap;line-height:1.7}.kitchen-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);width:max-content;box-sizing:border-box;z-index:100000;background:#294b3b;color:white;padding:15px 20px;border-radius:12px;box-shadow:0 8px 30px #223b3540;display:flex;gap:14px;align-items:center}.kitchen-notice button{color:white;background:transparent;border:1px solid #b3c9b1;padding:5px 9px;flex:none}
@media(max-width:700px){
 .kitchen-workspace .kitchen-hero{padding:24px}.kitchen-workspace .kitchen-tabs{padding:12px;gap:2px}.kitchen-workspace .kitchen-tabs button{font-size:12px;padding:10px 5px;gap:5px}
 #mealsSection.kitchen-workspace .kitchen-hero h3{font-size:36px}
 #mealsSection.kitchen-workspace #kitchenMealsView,#mealsSection.kitchen-workspace #kitchenRecipesView,#mealsSection.kitchen-workspace #mealShoppingPanel{padding:14px}
 .kitchen-view-heading{align-items:start;flex-direction:column;gap:10px}.kitchen-supply-row{grid-template-columns:minmax(0,1fr) 40px;gap:12px;padding:14px}.kitchen-item-info{grid-column:1}.kitchen-more{grid-column:2;grid-row:1}.kitchen-status{grid-column:1;grid-row:2;max-width:210px}.kitchen-packed{grid-column:2;grid-row:2;flex-direction:column;font-size:11px}
 #kitchenSupplyTools input{max-width:none;flex-basis:100%}.kitchen-filters{gap:1px}.kitchen-filters button{font-size:12px;padding:8px}
 .kitchen-meal-details{grid-template-columns:1fr}.kitchen-meal-details>.kitchen-recipe-photo{height:135px}
 #packWorkspacePanel #mealsSection.kitchen-workspace :is(#snacksSection,#drinksSection,#condimentsSection) .row{grid-template-columns:minmax(0,1fr) 95px}
 #packWorkspacePanel #mealsSection.kitchen-workspace :is(#snacksSection,#drinksSection,#condimentsSection) .row button{grid-column:1/-1}
 #mealsSection.kitchen-workspace .meal-day-card{padding:10px}#mealsSection.kitchen-workspace .meal-section{padding:10px}.kitchen-dialog-body{padding:16px}.kitchen-dialog-header{padding:16px}.kitchen-dialog-header h3{font-size:24px}.kitchen-recipe-ingredient{grid-template-columns:minmax(0,1fr) 90px 32px}.kitchen-recipe-ingredient select{grid-column:1/3;grid-row:2}.kitchen-recipe-ingredient button{grid-column:3;grid-row:1/3}.kitchen-photo-editor{grid-template-columns:1fr}.kitchen-photo-editor button{grid-column:auto}.kitchen-notice{font-size:13px;bottom:12px}
}
/* Prevent legacy global mobile button sizing from overriding the kitchen controls. */
#packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-tabs button,#packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-filters button{width:auto!important;min-width:0!important;max-width:none!important;margin:0!important}
#packWorkspacePanel #mealsSection.kitchen-workspace #kitchenSupplyTools .kitchen-filters{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
#packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-supply-row .kitchen-more{width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important}
#packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-packed input{width:21px!important;height:21px!important;min-height:21px!important;padding:0!important;margin:0!important}
#packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-supply-row{width:100%!important;box-sizing:border-box!important}
#packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-tabs{display:flex!important;flex-wrap:nowrap!important}
.kitchen-dialog button{width:auto!important;min-width:0!important}.kitchen-dialog .kitchen-dialog-header button{width:40px!important;flex:none}.kitchen-dialog .kitchen-recipe-ingredient button{width:32px!important;padding:0!important}
@media(max-width:700px){
 #packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-hero{padding:20px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-hero h3{font-size:30px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-hero p{font-size:14px!important;margin-bottom:12px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace #kitchenSupplyTools .kitchen-filters{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-tabs button{font-size:11px!important;flex:1 1 0!important;padding:8px 4px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .kitchen-tabs .kitchen-icon svg{width:17px!important;height:17px!important}
}
#packWorkspacePanel #mealsSection.kitchen-workspace #mealPlanner{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
#packWorkspacePanel #mealsSection.kitchen-workspace .meal-day-card{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;padding:16px!important}
#packWorkspacePanel #mealsSection.kitchen-workspace .meal-section{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;padding:14px!important}
#packWorkspacePanel #mealsSection.kitchen-workspace .meal-actions button{width:auto!important;min-width:0!important;margin:0!important}
@media(max-width:700px){
 #packWorkspacePanel #mealsSection.kitchen-workspace .camp-kitchen-panel{padding:10px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .meal-day-card{padding:8px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .meal-section{padding:8px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .food-line{display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:8px!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .food-line>.editable{grid-column:1/-1!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .food-line>.ingredient-qty-control{grid-column:1!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .food-line>select{grid-column:1!important;width:100%!important}
 #packWorkspacePanel #mealsSection.kitchen-workspace .food-line>.delete-btn{grid-column:2!important;width:32px!important;min-width:0!important;grid-row:2/4!important}
}
.kitchen-source-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; margin: 8px 0; border: 1px solid #c5d4c6; border-radius: 12px; background: #edf3e6; color: #234538; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.kitchen-source-link:hover { background: #dfebd6; }
.kitchen-source-link:focus-visible { outline: 3px solid #ed7c20; outline-offset: 3px; }

.meal-date-review{border:2px solid #bb8435;border-radius:12px;padding:16px;margin:12px 0;background:#fff8e9}.meal-date-review-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.meal-date-review-row strong{flex:1 1 220px;overflow-wrap:anywhere}.meal-date-review-row select{flex:1 1 180px;min-width:0}.meal-date-review-row button{white-space:normal}.water-adjustments{margin-top:16px}.water-adjustments summary{cursor:pointer;font-weight:700}.water-adjustments label span{overflow-wrap:anywhere}
