.recipe-shell{display:grid;gap:16px;min-width:0}.recipe-modulehead{align-items:flex-start}.recipe-head-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.recipe-head-actions .b{min-height:38px}.recipe-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.recipe-dashboard>div,.recipe-dashboard>button{border:1px solid #dfe8ed;border-radius:16px;background:#fff;padding:16px;text-align:left;min-width:0}.recipe-dashboard span{display:block;color:#6e8294;font-size:11px;font-weight:760}.recipe-dashboard strong{display:block;color:#173b50;font-size:27px;line-height:1.15;margin:5px 0}.recipe-dashboard small{display:block;color:#8293a1;font-size:10px}.recipe-dashboard>button{background:linear-gradient(145deg,#123c57,#176f75);border:0;color:#fff}.recipe-dashboard>button span,.recipe-dashboard>button small{color:#cde3e4}.recipe-dashboard>button strong{color:#fff;font-size:16px}.recipe-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:6px;background:#eaf0f3;border-radius:15px;position:sticky;top:8px;z-index:7}.recipe-tabs button{border:0;border-radius:11px;background:transparent;color:#61758a;font-weight:760;min-height:46px;padding:8px}.recipe-tabs button.active{background:#fff;color:#166f78;box-shadow:0 3px 12px rgba(21,52,70,.08)}.recipe-pane{display:none;background:#fff;border:1px solid #e4eaf0;border-radius:19px;padding:22px;box-shadow:var(--shadow);min-width:0}.recipe-pane.active{display:block}.recipe-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.recipe-intro h3{font-size:22px;margin:3px 0 5px}.recipe-intro p{margin:0;color:#6d8192;font-size:13px;line-height:1.65}.recipe-step{font-size:10px;font-weight:850;letter-spacing:.12em;color:#21888b}.recipe-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,1.3fr);gap:14px;align-items:end}.recipe-search,.recipe-filter-grid label,.recipe-week-settings label,.recipe-manager-grid label,.recipe-json{display:flex;flex-direction:column;gap:6px}.recipe-search span,.recipe-filter-grid label>span,.recipe-week-settings label>span,.recipe-manager-grid span,.recipe-json>span{font-size:11px;color:#718399;font-weight:760}.recipe-search input,.recipe-filter-grid input,.recipe-filter-grid select,.recipe-week-settings input,.recipe-week-settings select,.recipe-manager-grid select,.recipe-file input{width:100%;min-height:45px;border:1px solid #dce6ed;border-radius:11px;background:#fbfcfd;color:#233b4d;padding:9px 11px;outline:0}.recipe-search input:focus,.recipe-filter-grid input:focus,.recipe-filter-grid select:focus,.recipe-week-settings input:focus,.recipe-json textarea:focus{border-color:#4e9aa0;box-shadow:0 0 0 3px rgba(42,143,145,.11)}.recipe-equipment{border:1px solid #e1e8ed;border-radius:12px;padding:10px 12px}.recipe-equipment strong{font-size:11px;color:#718399;display:block;margin-bottom:7px}.recipe-equipment>div{display:flex;flex-wrap:wrap;gap:7px 14px}.recipe-equipment label{font-size:12px;display:flex;align-items:center;gap:5px}.recipe-chips{display:flex;gap:7px;overflow-x:auto;padding:15px 0 10px;scrollbar-width:none}.recipe-chips::-webkit-scrollbar{display:none}.recipe-chips.compact{padding:0}.recipe-chip{flex:none;border:1px solid #dce6eb;background:#fff;color:#5c7184;border-radius:999px;min-height:38px;padding:6px 13px;font-size:12px}.recipe-chip.active{background:#e9f6f4;border-color:#9fd3ce;color:#126e6e}.recipe-inventory-summary,.recipe-library-count,.recipe-week-note{font-size:12px;color:#63778c;margin:4px 0 12px}.recipe-ingredient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.recipe-ingredient{border:1px solid #e2e9ee;border-radius:13px;padding:11px;background:#fbfcfd;display:grid;grid-template-columns:auto minmax(0,1fr) 92px;align-items:center;gap:8px;min-width:0}.recipe-ingredient.is-owned{background:#f0f9f7;border-color:#c7e4df}.recipe-ingredient>input[type=checkbox]{width:19px;height:19px;accent-color:#177c7c}.recipe-ingredient-name strong{display:block;font-size:13px}.recipe-ingredient-name small{display:block;color:#8291a0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recipe-ingredient input[type=number]{min-width:0;width:100%;height:38px;border:1px solid #dbe5eb;border-radius:9px;padding:7px;font-size:13px;background:#fff}.recipe-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-bottom:14px}.recipe-filter-grid .recipe-check,.recipe-week-settings .recipe-check{flex-direction:row;align-items:center;align-self:end;min-height:45px;border:1px solid #dce6ed;border-radius:11px;padding:8px 10px;background:#fbfcfd}.recipe-check input{width:18px;height:18px;accent-color:#167f82}.recipe-craving-toggle{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px;border:1px solid #f0d8b3;border-radius:14px;background:#fff9ef;margin-bottom:14px}.recipe-craving-toggle>label{display:flex;align-items:center;gap:9px}.recipe-craving-toggle input{width:20px;height:20px;accent-color:#b86c20}.recipe-craving-toggle b,.recipe-craving-toggle small{display:block}.recipe-craving-toggle small{font-size:10px;color:#8b745e}.recipe-draw-button{width:100%;min-height:60px;border:0;border-radius:15px;background:#193f59;color:#fff;font-size:17px;font-weight:800;box-shadow:0 10px 25px rgba(25,63,89,.14)}.recipe-result{margin-top:15px}.recipe-card{border:1px solid #dfe8ec;border-radius:16px;padding:16px;background:#fff}.recipe-card.is-featured{background:linear-gradient(145deg,#effaf8,#f7faff);border-color:#a8d8d2}.recipe-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.recipe-card h4{font-size:18px;margin:0;color:#15384d}.recipe-card-meta{color:#6c8192;font-size:12px;margin-top:5px;line-height:1.55}.recipe-card-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}.recipe-card-facts div{background:#f3f7f8;border-radius:9px;padding:8px}.recipe-card-facts span{display:block;font-size:9px;color:#8293a0}.recipe-card-facts b{display:block;font-size:12px;margin-top:2px}.recipe-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.recipe-tag{font-size:10px;padding:4px 8px;border-radius:999px;background:#edf4f6;color:#466879}.recipe-tag.warn{background:#fff2df;color:#925f20}.recipe-tag.ok{background:#e8f7f2;color:#176d5e}.recipe-availability{margin-top:11px;font-size:12px;line-height:1.65;color:#526a7e}.recipe-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.recipe-card-actions .b{min-height:42px;padding:8px 12px;font-size:11px}.recipe-library-filters{grid-template-columns:2fr repeat(4,1fr);position:sticky;top:72px;z-index:5;background:#fff;padding:10px 0}.recipe-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.recipe-library-grid .recipe-card{display:flex;flex-direction:column}.recipe-library-grid .recipe-card-actions{margin-top:auto;padding-top:12px}.recipe-favorite{border:0;background:#edf2f4;color:#688092;border-radius:999px;width:40px;height:40px;font-size:18px;flex:none}.recipe-favorite.active{background:#fff0d7;color:#b67215}.recipe-more{display:block;margin:16px auto 0}.recipe-week-settings{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.recipe-week-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:8px;margin-top:16px;overflow-x:auto;padding-bottom:6px}.recipe-day{display:grid;gap:8px;align-content:start}.recipe-day>h4{text-align:center;margin:0;color:#274b5f;font-size:13px}.recipe-slot{border:1px solid #e0e8ed;border-radius:14px;padding:11px;background:#fbfcfd;min-width:150px}.recipe-slot.is-locked{background:#f0f7f6;border-color:#bddbd7}.recipe-slot-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:8px}.recipe-slot-head strong{font-size:12px}.recipe-slot-head label{font-size:10px;color:#63798c;display:flex;align-items:center;gap:4px}.recipe-slot-recipes{display:grid;gap:6px}.recipe-slot-item{background:#fff;border:1px solid #e5ebef;border-radius:9px;padding:8px}.recipe-slot-item-top{display:flex;gap:5px;align-items:flex-start;justify-content:space-between}.recipe-slot-item b{font-size:11px;line-height:1.35}.recipe-slot-item small{display:block;color:#81919e;font-size:9px;margin-top:3px}.recipe-slot-item-actions{display:flex;gap:3px;margin-top:5px}.recipe-slot-item button{border:0;background:#edf4f5;color:#176e78;border-radius:7px;padding:5px;font-size:9px}.recipe-slot-empty{font-size:11px;color:#97a3ae;padding:8px}.recipe-slot-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}.recipe-slot-tools select{grid-column:1/-1;min-width:0;width:100%;height:38px;border:1px solid #dbe5eb;border-radius:8px;background:#fff;font-size:10px;padding:4px}.recipe-slot-tools button{min-height:36px;padding:5px;font-size:9px}.recipe-shopping{display:grid;gap:14px;margin-top:16px}.recipe-shopping-group{border:1px solid #e2e9ee;border-radius:14px;overflow:hidden}.recipe-shopping-group h4{margin:0;padding:10px 13px;background:#f3f7f8;font-size:12px}.recipe-shopping-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:11px 13px;border-top:1px solid #edf1f3;font-size:12px}.recipe-shopping-item small{display:block;color:#8493a1}.recipe-empty-action{text-align:center;padding:32px;border:1px dashed #cfdae0;border-radius:15px}.recipe-empty-action p{color:#718496}.recipe-prep{margin-top:22px;border-top:1px solid #e6ecef;padding-top:18px}.recipe-prep-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recipe-prep-item{background:#f7fafb;border:1px solid #e1e9ed;border-radius:11px;padding:10px 12px;font-size:11px;color:#62778a}.recipe-prep-item strong{display:block;color:#29475b;font-size:12px}.recipe-modal-shade{display:none;position:fixed;inset:0;z-index:1100;background:rgba(17,35,53,.54);place-items:center;padding:18px}.recipe-modal-shade.show{display:grid}.recipe-modal{width:min(790px,100%);max-height:min(90vh,940px);overflow:auto;background:#fff;border-radius:21px;padding:22px;box-shadow:0 25px 80px rgba(12,25,47,.3);overscroll-behavior:contain}.recipe-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:sticky;top:-22px;background:#fff;padding:3px 0 11px;z-index:2}.recipe-modal-head h3{font-size:22px;margin:3px 0 0}.recipe-detail-meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.recipe-servings{display:flex;align-items:center;gap:9px;margin:12px 0 18px;padding:11px 13px;border-radius:12px;background:#eef7f6}.recipe-servings select{height:42px;border:1px solid #bfded9;border-radius:9px;background:#fff;padding:5px 10px}.recipe-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.recipe-detail-block{border:1px solid #e2e9ee;border-radius:14px;padding:14px}.recipe-detail-block h4{font-size:13px;margin:0 0 9px}.recipe-detail-list{display:grid;gap:7px}.recipe-detail-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding-bottom:6px;border-bottom:1px dashed #e5eaed}.recipe-steps{margin:0;padding-left:22px;display:grid;gap:10px;font-size:13px;color:#445d70}.recipe-detail-note{margin-top:13px}.recipe-manager{width:min(880px,100%)}.recipe-manager-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.recipe-json textarea{width:100%;min-height:210px;resize:vertical;border:1px solid #dce6ed;border-radius:12px;background:#f8fafb;padding:12px;font:12px/1.6 Consolas,monospace}.recipe-import-preview{margin:14px 0}.recipe-import-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.recipe-import-stats div{background:#f1f6f7;border-radius:10px;padding:10px}.recipe-import-stats strong{font-size:20px;display:block}.recipe-import-details{max-height:180px;overflow:auto;font-size:11px;color:#7e5160;margin-top:8px}.recipe-manager-tools{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #e3eaee;padding-top:14px}.recipe-import-log{margin-top:16px}.recipe-import-log h4{margin:0 0 8px}.recipe-import-log>div{font-size:11px;color:#6b7d8c;display:grid;gap:5px}.recipe-load-error{border-color:#f0cbd1;background:#fff4f5;color:#9b3d50}
@media(max-width:1100px){.recipe-dashboard{grid-template-columns:repeat(2,1fr)}.recipe-ingredient-grid,.recipe-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-week-grid{grid-template-columns:repeat(4,minmax(160px,1fr))}}
@media(max-width:830px){.recipe-head-actions{justify-content:flex-start}.recipe-tabs{top:calc(59px + env(safe-area-inset-top));overflow-x:auto;display:flex;padding:5px;background:rgba(230,238,241,.94);-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);scrollbar-width:none}.recipe-tabs button{flex:0 0 auto;min-width:98px}.recipe-pane{padding:17px}.recipe-toolbar{grid-template-columns:1fr}.recipe-filter-grid,.recipe-library-filters,.recipe-week-settings{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-week-grid{display:grid;grid-template-columns:1fr;overflow:visible}.recipe-day{border-bottom:1px solid #e4eaee;padding:3px 0 12px}.recipe-day>h4{text-align:left;font-size:17px;position:sticky;top:calc(116px + env(safe-area-inset-top));z-index:3;background:#f5f7fa;padding:7px 2px}.recipe-modal-shade{padding:calc(12px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));align-items:end}.recipe-modal{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);border-radius:22px;padding:18px}.recipe-modal-head{top:-18px}.recipe-detail-grid{grid-template-columns:1fr}}
@media(max-width:560px){.recipe-shell{gap:12px}.recipe-shell:not([data-active-tab="inventory"]) .recipe-dashboard{display:none}.recipe-modulehead{display:block;margin-bottom:13px}.recipe-modulehead h2{font-size:25px}.recipe-modulehead p{font-size:11px}.recipe-head-actions{margin-top:9px;display:grid;grid-template-columns:auto 1fr;align-items:center}.recipe-head-actions .pill{white-space:nowrap}.recipe-head-actions .b{min-height:42px;padding:8px 11px}.recipe-dashboard{grid-template-columns:1fr 1fr;gap:8px}.recipe-dashboard>div,.recipe-dashboard>button{padding:13px;border-radius:15px}.recipe-dashboard strong{font-size:24px;margin:3px 0}.recipe-dashboard span{font-size:10px}.recipe-dashboard small{font-size:9px}.recipe-dashboard>button{grid-column:1/-1;padding:15px}.recipe-dashboard>button strong{font-size:17px}.recipe-tabs{margin:0 -4px;border-radius:14px}.recipe-tabs button{min-height:43px;min-width:94px}.recipe-pane{padding:8px 1px 0;background:transparent;border:0;box-shadow:none}.recipe-intro{display:block;margin-bottom:13px}.recipe-intro h3{font-size:21px}.recipe-intro p{font-size:12px;line-height:1.6}.recipe-intro>.b{width:100%;margin-top:10px}.recipe-ingredient-grid,.recipe-library-grid{grid-template-columns:1fr}.recipe-ingredient{grid-template-columns:auto minmax(0,1fr) 88px;padding:12px;background:#fff}.recipe-filter-grid,.recipe-library-filters,.recipe-week-settings,.recipe-manager-grid{grid-template-columns:1fr 1fr}.recipe-filter-grid label:first-child,.recipe-library-filters label:first-child{grid-column:1/-1}.recipe-card{padding:15px;border-radius:17px}.recipe-card h4{font-size:19px;line-height:1.35}.recipe-card-meta,.recipe-availability{font-size:12px}.recipe-card-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.recipe-card-facts div{padding:8px 7px}.recipe-card-facts b{font-size:11px;overflow-wrap:anywhere}.recipe-card-actions{display:grid;grid-template-columns:1fr 1fr}.recipe-card-actions .b{min-height:44px;font-size:12px}.recipe-card-actions .b:first-child:last-child{grid-column:1/-1}.recipe-draw-button{min-height:56px}.recipe-slot{padding:13px;min-width:0;background:#fff}.recipe-slot-head strong{font-size:13px}.recipe-slot-item{padding:10px}.recipe-slot-item b{font-size:12px}.recipe-slot-item button,.recipe-slot-tools button{min-height:36px;font-size:10px}.recipe-slot-item-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.recipe-slot-item-actions select{min-width:0;width:100%;font-size:10px;border:0;border-radius:7px;background:#edf4f5}.recipe-prep-list{grid-template-columns:1fr}.recipe-shopping-item{grid-template-columns:auto minmax(0,1fr)}.recipe-shopping-item>b{grid-column:2}.recipe-craving-toggle{display:block}.recipe-craving-toggle .recipe-chips{margin-top:10px}.recipe-import-stats{grid-template-columns:1fr 1fr}.recipe-manager-tools{display:grid;grid-template-columns:1fr 1fr}.recipe-manager-tools .b{min-height:44px;padding:8px;font-size:11px}}
@media(max-width:360px){.recipe-filter-grid,.recipe-library-filters,.recipe-week-settings,.recipe-manager-grid,.recipe-head-actions{grid-template-columns:1fr}.recipe-filter-grid label:first-child,.recipe-library-filters label:first-child{grid-column:auto}.recipe-head-actions .pill{width:max-content}.recipe-ingredient{grid-template-columns:auto minmax(0,1fr)}.recipe-ingredient input[type=number]{grid-column:2}.recipe-card-facts{grid-template-columns:1fr 1fr}.recipe-manager-tools{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.recipe-draw-button:active{transform:none}}
