/* Recipe list: rows size to content. No flex shrinking, fixed card heights or overlapping text. */
#recipes.recipe-list{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;align-items:stretch;gap:6px;max-height:min(62vh,640px);min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 4px 4px 0;overscroll-behavior:contain}
#recipes .recipe-card{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start;width:100%;min-width:0;min-height:64px;height:auto;max-height:none;flex:none;padding:12px 10px;margin:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.6;box-sizing:border-box}
#recipes .recipe-copy{display:block;min-width:0;max-width:100%;padding:0;height:auto;position:static;overflow-wrap:anywhere;word-break:normal}
#recipes .recipe-copy>b{display:block;position:static;font-size:14px;line-height:1.6;font-weight:600;letter-spacing:-.01em;white-space:normal;overflow-wrap:anywhere;word-break:normal;margin:0;padding:0;height:auto;max-height:none}
#recipes .recipe-copy>small{display:block;position:static;font-size:11px!important;line-height:1.6!important;letter-spacing:0;margin:5px 0 0;padding:0;height:auto;white-space:normal;overflow-wrap:anywhere}
#recipes .swatch{display:block;width:24px;height:24px;margin-top:2px;grid-column:1;position:static}
.library .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;align-items:stretch}.library .tabs button{min-width:0;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;height:auto;min-height:36px;line-height:1.6;padding:7px 5px}
.recipe-heading label{display:block;min-width:0;width:100%}.recipe-name{display:block;width:100%;height:auto;min-height:3.1em;line-height:1.5;white-space:normal;overflow-wrap:anywhere;resize:vertical;padding:3px 0;box-sizing:border-box;font-family:inherit}
.costbook-card{max-width:1128px;background:white;border:1px solid var(--line);border-radius:12px;padding:26px;margin:0 auto 28px}.costbook-card h2{font-size:22px}.costbook-card>p{max-width:760px;font-size:14px;color:var(--muted)}.cost-form,.fruit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.cost-form label,.fruit-grid label{font-size:14px;line-height:1.7;min-width:0}.cost-form input,.cost-form select,.fruit-grid input{display:block;width:100%;min-width:0;margin-top:7px;font-size:16px}#cost-preview{margin:16px 0}#cost-preview table,.costbook-card table{min-width:520px}#cost-preview .button{margin:16px 0}#fruit-result{line-height:1.8;padding:12px 0;font-weight:600}#fruit-result:empty{padding:0}.tools{max-width:none;justify-content:flex-start}.costbook-card details input[type=file]{max-width:100%}body[data-view]:not([data-view=margin]) #costbook-panel{display:none}#fruit-tools .detail-fold{margin-top:20px}#all-backup{border-color:#749981;color:#245c3d}body[data-view=formula] .editor{min-width:0}
@media(max-width:1100px){.costbook-card{margin:0 24px 24px}.section-title{align-items:flex-start;flex-wrap:wrap}.tools{max-width:100%;gap:6px}}
@media(max-width:760px){#recipes.recipe-list{grid-template-columns:minmax(0,1fr);max-height:280px;min-height:0;grid-auto-rows:max-content}#recipes .recipe-card{min-height:64px;padding:12px;grid-template-columns:24px minmax(0,1fr)}#recipes .recipe-copy>b{font-size:15px;line-height:1.6}#recipes .recipe-copy>small{font-size:12px!important;line-height:1.6!important}.library .tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.library .tabs button{font-size:12px;min-height:40px}.costbook-card{margin:0 14px 24px;padding:20px 16px}.cost-form,.fruit-grid{grid-template-columns:minmax(0,1fr)}.recipe-name{font-size:22px;min-height:3.2em}.recipe-heading>button{max-width:72px;line-height:1.7}.tools .outline{font-size:12px;min-height:38px}.tools{gap:6px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.tools input[hidden]{display:none}.tools button{padding:7px;min-width:0}.recipe-heading{align-items:flex-start}}
@media(max-width:360px){.library .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.tools{grid-template-columns:repeat(2,minmax(0,1fr))}.editor{padding:14px 10px}}
@media print{#fruit-tools,.tools{display:none}.costbook-card{border:0;margin:0;padding:0}}
.standard-banner{padding:20px;border:1px solid #c4cbbf;border-radius:12px;background:#f0f3eb;margin:18px 0;line-height:1.7}.standard-banner p{max-width:76ch}.standard-banner a{display:inline-block;margin:10px 16px}
