/* Compact recipe flow, scoped to this editor and catalog. */
.recipe186{display:flex;flex-direction:column;gap:12px;min-width:0;text-align:left}
.recipe186 .recipe186-fields{display:flex;flex-direction:column;gap:14px;border:0;padding:0;margin:0;min-width:0}
.recipe186 .field{gap:5px;margin:0}.recipe186 .field>span{font-size:14px;line-height:1.3}
.recipe186 input:not([type=checkbox]),.recipe186 select{min-height:44px;height:44px;padding:9px 11px;font-size:16px;box-sizing:border-box;border-radius:12px;width:100%;max-width:100%}
.recipe186 button{min-height:40px;padding:8px 12px;font-size:15px;line-height:1.3}
.recipe186 .smart-switch{padding:4px;gap:4px;margin:0;display:grid;grid-template-columns:1fr 1fr}
.recipe186 .smart-switch button{min-height:38px;padding:7px 9px;font-size:15px;border-radius:10px}
.recipe186-basis{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(100px,1fr);gap:10px;align-items:end}
.recipe186-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.recipe186-heading h3{font-size:17px;margin:0}.recipe186-heading>span{font-size:13px;white-space:nowrap;color:var(--muted-foreground,#727b70)}
.recipe186-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 34px;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #e4e8df}
.recipe186-food{min-width:0}.recipe186-food strong{display:block;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.recipe186 .recipe186-food button{font-size:12px;min-height:28px;padding:3px 0;margin:0;display:block}
.recipe186-row>label{position:relative;display:flex;align-items:center;margin:0}.recipe186 .recipe186-row input{padding:7px 22px 7px 7px;min-height:40px;height:40px;text-align:right}
.recipe186-row label>small{position:absolute;right:7px;pointer-events:none;font-size:12px;color:#7c8578}
.recipe186 .recipe186-row>.icon-button{padding:3px;min-height:34px;width:34px}
.recipe186-empty{font-size:14px;margin:4px 0;line-height:1.4}.recipe186-picker{display:flex;flex-direction:column;gap:7px}
.recipe186-results{display:block;max-height:245px;overflow:auto;border:1px solid #e4e8df;border-radius:12px}
.recipe186 .recipe186-results>button{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;width:100%;height:auto;max-height:none;flex:none;box-sizing:border-box;white-space:normal;gap:12px;text-align:left;padding:10px;min-height:54px;background:transparent;border:0;border-radius:0;border-bottom:1px solid #e9ece5}
.recipe186-results>button>span:first-child{display:block;min-width:0;overflow-wrap:anywhere;white-space:normal}.recipe186-results strong{display:block;white-space:normal;overflow-wrap:anywhere;font-size:15px;line-height:1.25}.recipe186-results small{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;color:#798274;margin-top:3px}.recipe186-results>button>span:last-child{font-size:24px;color:#30694e}
.recipe186 .recipe186-label-entry{align-self:flex-start;text-align:left;font-size:13px;padding:5px 0;min-height:32px}
.recipe186-create{padding:12px;border:1px solid #dce4d3;border-radius:14px;display:flex;flex-direction:column;gap:10px;background:#f5f7f0}.recipe186-create h4{margin:0;font-size:16px}.recipe186-create p{font-size:13px;margin:0}
.recipe186-nutrients{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.recipe186 .recipe186-nutrients input{padding:7px 5px}.recipe186 .recipe186-nutrients .field>span{font-size:12px}
.recipe186-create-actions,.recipe186-replacing{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.recipe186-replacing{font-size:13px;background:#eef3e7;padding:8px;border-radius:10px}
.recipe186-draft{display:flex;gap:10px;align-items:center;justify-content:space-between;min-height:24px}.recipe186-draft small{font-size:12px;color:#7b8474}.recipe186 .recipe186-draft button{min-height:28px;padding:3px;font-size:12px}
.recipe186-footer{position:static;background:var(--card,#fff);padding:10px 0 0;border-top:1px solid #e0e5d8;display:flex;flex-direction:column;gap:9px}
.recipe186-summary{display:grid;grid-template-columns:1fr;gap:6px;padding:9px 11px;border-radius:12px;background:#eff4e8}.recipe186-summary small{display:block;font-size:12px;color:#727d6c}.recipe186-summary strong{font-size:13px;line-height:1.35;display:block;font-weight:600}.recipe186-footer .primary{min-height:46px}
.recipe186 .inline-error{font-size:14px;margin:0;line-height:1.4}.recipe186-extra{font-size:13px}
.catalog186 .catalog-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px;min-height:42px;padding:4px}
.catalog186 .catalog-tabs button{font-size:14px!important;min-height:36px!important;padding:6px!important}
.catalog186 .barcode30-open{display:flex!important;justify-content:center;align-items:center;width:fit-content!important;max-width:100%;min-height:44px!important;padding:9px 18px!important;font-size:14px!important;margin:4px auto!important;align-self:center;justify-self:center;border-radius:12px;background:#f5e3ed!important;border:1px solid #e5bdd1!important;color:#84375e!important;white-space:normal;text-align:center}
.catalog186{gap:12px!important}.catalog186 .search-box{min-height:46px}.catalog186 .search-box input{min-height:44px;font-size:16px}
.catalog186 .recent-heading123{margin:0 0 6px}.catalog186 .recent-heading123 strong{font-size:14px}.catalog186 .recent-heading123 button{font-size:12px;padding:3px 0;min-height:28px}
.catalog186 .recent-buttons123{gap:7px}.catalog186 .recent-food123{min-height:62px!important;padding:8px 11px!important;font-size:14px!important}.catalog186 .recent-food123 small{font-size:12px}
.catalog186-recent-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.catalog186-recent-title button{font-size:13px;min-height:30px}
@media(max-width:360px){.recipe186-basis{grid-template-columns:1fr}.recipe186-row{grid-template-columns:minmax(0,1fr) 68px 30px;gap:5px}.recipe186-nutrients{grid-template-columns:repeat(2,minmax(0,1fr))}}
[data-theme=dark] .recipe186-footer{background:#202820}[data-theme=dark] .recipe186-summary,[data-theme=dark] .recipe186-create,[data-theme=dark] .recipe186-replacing{background:#26382b;color:#e8eee2}

/* 187: totals follow the inputs in document flow; never cover focused fields. */
.recipe186-footer{flex-shrink:0;isolation:auto}
.recipe186 input,.recipe186 textarea,.recipe186 select{scroll-margin-block:14px}
/* Expand actions inside the card, with room to scroll clear of bottom navigation. */
.catalog-row128>.catalog-menu128{grid-column:1 / -1;grid-row:auto;justify-self:stretch;width:100%;min-width:0;scroll-margin-block:16px calc(125px + env(safe-area-inset-bottom))}
.catalog-row128>.catalog-menu128>summary{margin-left:auto}
.catalog-row128>.catalog-menu128>.catalog-menu-panel128{position:static;inset:auto;z-index:auto;width:100%;min-width:0;max-width:100%;box-sizing:border-box;box-shadow:none;grid-template-columns:1fr;gap:3px;margin:4px 0 8px;background:var(--card,#fff)}
.catalog-row128>.catalog-menu128>.catalog-menu-panel128 button{justify-content:flex-start;min-height:44px}
[data-theme=dark] .catalog-row128>.catalog-menu128>.catalog-menu-panel128{background:#26382b}

[data-theme=dark] .catalog186 .barcode30-open{background:#573346!important;border-color:#965475!important;color:#ffe3f0!important}

/* 189: catalog filters are ordinary buttons, without shared tab geometry. */
.catalog186 .catalog-filters189{position:static;inset:auto;transform:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:4px;width:100%;height:auto;min-height:0;max-height:none;box-sizing:border-box;flex:none;background:#f0f3e9;border-radius:13px;padding:4px;isolation:isolate}
.catalog186 .catalog-filters189>button{position:static;inset:auto;transform:none;display:flex;align-items:center;justify-content:center;align-self:stretch;width:100%;min-width:0;height:auto;min-height:44px;max-height:none;margin:0;padding:8px 4px;border:0;border-radius:10px;box-sizing:border-box;background:transparent;color:#65715f;font:inherit;font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;flex:none;cursor:pointer}
.catalog186 .catalog-filters189>button.is-active{background:#fff;color:#244b38;box-shadow:0 2px 6px #213b2010}
.catalog186 .catalog-filters189>button:focus-visible{outline:2px solid #a7487c;outline-offset:-2px}
[data-theme=dark] .catalog186 .catalog-filters189{background:#29332a}[data-theme=dark] .catalog186 .catalog-filters189>button{color:#c3cdbf}[data-theme=dark] .catalog186 .catalog-filters189>button.is-active{background:#3c4b3c;color:#fff}
