.screen[data-view=recipes]{overflow:hidden;padding-bottom:0}.recipe-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;font-size:12px;color:var(--muted)}.recipe-intro small{white-space:nowrap;font-size:10px}.recipe-search{display:flex;gap:9px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:0 12px;flex-shrink:0;color:var(--muted)}.recipe-search input{background:none;border:0;min-height:44px;font-size:16px;width:100%;min-width:0;outline-offset:0}.recipe-search svg{width:18px;height:18px}.recipe-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 0 82px}.recipe-card{display:flex;align-items:center;gap:3px;background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-bottom:9px;padding:4px 7px 4px 3px;min-width:0}.recipe-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:10px 8px;min-height:81px;text-align:left;background:none;border:0;border-radius:11px}.recipe-copy{flex:1;min-width:0}.recipe-copy strong{font-size:15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-weight:600;line-height:1.35}.recipe-copy small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px;margin-top:5px}.recipe-card-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:47px;border-radius:13px;background:var(--soft);color:var(--ink)}.recipe-card-icon svg{width:23px;height:23px}.recipe-favorite{border:0;background:none;color:var(--muted)}.recipe-favorite[aria-pressed=true]{color:#a26038;background:#fff0db}.recipe-favorite[aria-pressed=true] svg{fill:#edc48f}.recipe-empty{margin:12px auto;max-width:290px;text-align:center;padding:18px 10px}.recipe-empty-icon{margin:0 auto 17px;border-radius:25px;width:80px;height:80px;display:grid;place-items:center;color:var(--ink);background:var(--soft)}.recipe-empty-icon svg{width:39px;height:39px}.recipe-empty h2{font:400 22px/1.25 Georgia,serif}.recipe-empty p{margin-top:12px;font-size:13px;line-height:1.65;color:var(--muted)}[data-view=recipes] .segment button{display:flex;align-items:center;justify-content:center;gap:6px}[data-view=recipes] .segment svg{width:16px;height:16px}.recipe-toolbar{flex-shrink:0}.recipe-title{flex-shrink:0;border-radius:16px;padding:16px;background:var(--soft);margin-bottom:12px}.recipe-title h2{font:400 24px/1.25 Georgia,serif;overflow-wrap:anywhere}.recipe-title p{font-size:12px;color:var(--muted);margin-top:8px}.recipe-title .eyebrow{overflow-wrap:anywhere}.recipe-detail-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:20px}.recipe-ingredients,.recipe-steps{padding:0;margin:0;list-style:none}.recipe-ingredients li{padding:13px 12px 13px 28px;position:relative;border-bottom:1px solid var(--line);font-size:15px;line-height:1.55;overflow-wrap:anywhere}.recipe-ingredients li:before{content:"";position:absolute;left:8px;top:22px;width:6px;height:6px;border-radius:50%;background:var(--ink)}.recipe-steps{counter-reset:step}.recipe-steps li{counter-increment:step;position:relative;padding:14px 10px 16px 43px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.65;overflow-wrap:anywhere}.recipe-steps li:before{content:counter(step);position:absolute;top:16px;left:0;display:grid;place-items:center;width:28px;height:28px;background:var(--soft);color:var(--ink);border-radius:9px;font-size:13px;font-weight:600}.recipe-notes{padding:16px;margin-top:16px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.recipe-notes p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin-top:8px}.recipe-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}.recipe-fields .field{min-width:0}.recipe-fields input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:11px;padding:12px;font-size:16px;background:#f7f9f6;color:inherit}.recipe-check{display:flex;gap:10px;align-items:center;min-height:44px;font-size:14px}.recipe-check span{flex:1}[data-view=recipes] .app-header h1{font-size:26px}
[data-theme=fire] .recipe-search input{color:#fff1e5}[data-theme=fire] .recipe-search input::placeholder{color:#c5aaa0}[data-theme=fire] .recipe-fields input{background:#1b1216;color:#fff1e5}[data-theme=fire] .recipe-favorite[aria-pressed=true]{background:#593426;color:#ffc68a}[data-theme=fire] .recipe-favorite[aria-pressed=true] svg{fill:#a64b25}[data-theme=fire] .recipe-title{background:#362326}[data-theme=fire] .recipe-title h2,[data-theme=fire] .recipe-empty h2{font-family:system-ui,sans-serif;font-weight:700}
@media(max-height:650px){.recipe-intro{display:none}.recipe-empty{margin:0 auto;padding:12px 8px}.recipe-empty-icon{width:60px;height:60px;margin-bottom:12px}.recipe-empty-icon svg{width:30px;height:30px}.recipe-title{padding:10px 13px}.recipe-title h2{font-size:21px}.recipe-title p{margin-top:5px}.recipe-open{min-height:72px}.recipe-toolbar .icon-button{width:38px;height:38px}}
@media(max-width:350px){[data-view=recipes] .app-header h1{font-size:23px}[data-view=recipes] .header-actions{gap:5px}[data-view=recipes] .theme-toggle{padding:0 7px}.recipe-card-icon{width:34px;height:40px}.recipe-open{gap:8px}.recipe-copy strong{font-size:14px}}

.legacy-backup{margin-top:22px;font-size:12px}.legacy-backup p{margin-top:12px}

.recipe-suggestion{display:flex;align-items:center;gap:10px;width:100%;padding:13px;margin-bottom:12px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--soft);color:var(--ink);font:600 14px/1.4 system-ui,sans-serif}.recipe-suggestion svg{width:22px;height:22px;flex-shrink:0}.recipe-suggestion span{min-width:0;overflow-wrap:anywhere}.recipe-suggestion small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:var(--muted)}

.recipe-thumbnail{width:60px;height:60px;flex-shrink:0;object-fit:cover;border-radius:12px}.recipe-photo{margin:0 0 12px}.recipe-photo img{display:block;width:100%;height:auto;max-height:220px;object-fit:cover;border-radius:14px}.recipe-photo figcaption{font-size:10px;color:var(--muted);padding:5px 2px}.recipe-photo a{color:inherit}

.recipe-detail-tabs{position:sticky;top:0;z-index:2;background:var(--soft);margin-bottom:12px;box-shadow:0 3px 0 var(--soft)}

/* The reader uses one toolbar; secondary actions live in its options sheet. */
.recipe-reading .app-header,.recipe-reading.fullscreen-layout .fullscreen-bar{display:none}
.recipe-reading .screen{padding-top:6px;gap:6px}
.recipe-reading .recipe-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;min-height:44px}
.recipe-reading .recipe-toolbar .icon-button{width:44px;height:44px}
.recipe-compact-info{min-width:0}
.recipe-compact-info h1{font:600 14px/1.35 system-ui,sans-serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.recipe-compact-info small{display:block;font-size:10px;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.recipe-options{display:grid;gap:12px}.recipe-options>.row{justify-content:center}

.recipe-accompaniments{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.recipe-accompaniments summary{cursor:pointer;font-weight:650;padding:8px 0}.recipe-accompaniments summary small{font-weight:400;color:var(--muted)}.recipe-side{padding:12px 0;border-top:1px solid var(--line)}.recipe-side-choice{display:flex;align-items:flex-start;gap:10px;font-weight:600}.recipe-side-choice input{width:20px;height:20px;flex:none;margin-top:2px}.recipe-side li{margin-bottom:8px}.recipe-timetable-wrap{overflow-x:auto}.recipe-joint-summary table{width:100%;border-collapse:collapse;font-size:13px;min-width:520px}.recipe-joint-summary th,.recipe-joint-summary td{padding:10px 8px;border:1px solid var(--line);text-align:left;vertical-align:top}.recipe-joint-summary th{background:var(--paper,var(--soft))}.recipe-joint-summary p{font-size:13px;line-height:1.5}

.recipe-nutrition{margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.recipe-nutrition strong{font-size:18px}.recipe-nutrition p{margin:5px 0}.recipe-nutrition small{color:var(--muted)}

.recipe-section{margin:12px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:0 14px}.recipe-section>summary{cursor:pointer;font-weight:650;min-height:48px;padding:14px 0;line-height:1.4}.recipe-section[open]{padding-bottom:14px}.recipe-section>p,.recipe-section h3{margin:12px 0}.recipe-long-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.recipe-process-nav{position:sticky;top:0;z-index:2;display:flex;gap:6px;padding:8px 0;background:var(--surface);overflow-x:auto}.recipe-process-nav .btn{white-space:nowrap;flex:1;font-size:12px;padding:10px 8px;min-height:44px}.recipe-process-nav [aria-pressed=true]{background:var(--ink);color:var(--paper,#fff);border:2px solid var(--ink)}.recipe-meal-actions{display:grid;gap:8px;margin:12px 0}.recipe-flow-link{padding:12px 0;border-top:1px solid var(--line)}.recipe-flow-link p,.recipe-flow-origin p{font-size:13px;margin:7px 0}.recipe-flow-origin{padding:12px;background:var(--soft);border-radius:12px}.cook-timer{padding:10px 0;display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);font-size:13px}.cook-timer span{flex:1}.cook-timer strong{white-space:nowrap}#cooking-timer-form{margin:14px 0}.recipe-section>.btn{margin:5px 0}.recipe-joint-summary table{table-layout:auto}

.recipe-process-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.recipe-process-nav .btn{white-space:normal;line-height:1.3;min-width:0}

.recipe-reading .recipe-compact-info h1{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}

.recipe-overview-photo .recipe-photo{margin:4px 0 10px}.recipe-overview-photo .recipe-photo img{aspect-ratio:16/9;width:100%;max-height:190px;object-fit:cover}.recipe-overview-photo:empty{display:none}.recipe-process-nav{display:block;padding:10px;border-radius:0 0 14px 14px;background:var(--surface);border-bottom:3px solid var(--line);margin-bottom:12px}.recipe-menu-caption,.recipe-food-tools h3{font:700 10px/1.4 system-ui,sans-serif;letter-spacing:1px;color:var(--muted);margin-bottom:7px}.recipe-stage-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--soft);padding:4px;border-radius:12px}.recipe-stage-button{border:0;border-radius:8px;background:transparent;color:var(--muted);font-weight:650;font-size:12px;line-height:1.3;padding:10px 5px;min-height:48px;min-width:0}.recipe-process-nav .recipe-stage-button[aria-pressed=true]{border:0;background:var(--ink);color:#fff;box-shadow:0 2px 5px #0002}[data-theme=fire] .recipe-process-nav .recipe-stage-button[aria-pressed=true]{color:#25191d}.recipe-food-tools{padding:10px 12px;border:0;border-radius:12px;background:var(--soft);margin:12px 0 20px}.recipe-food-tools .recipe-meal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.recipe-food-tools .btn{font-size:12px;min-height:46px;padding:9px 8px;border-radius:8px}.recipe-section{margin:10px 0;border-radius:10px}.recipe-section>summary{font-size:14px;font-weight:600}

.recipe-list>.recipe-search{margin-bottom:8px}.recipe-results-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:4px;color:var(--muted)}.recipe-results-summary small{overflow-wrap:anywhere;font-size:11px}.recipe-inline-filters{display:none}.fullscreen-layout .recipe-inline-filters{display:inline-flex}.recipe-filter-choices{margin-bottom:18px}.recipe-filter-choices button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px}.recipe-filter-choices svg{width:17px;height:17px}.recipe-filter-display{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.recipe-filter-trigger{min-height:44px;padding:9px 10px;gap:6px;white-space:nowrap}.recipe-filter-trigger svg{width:18px;height:18px}@media(max-width:430px){.recipe-filter-trigger svg{display:none}[data-view=recipes] .header-actions{gap:5px}[data-view=recipes] .app-header h1{font-size:clamp(21px,6vw,26px)}}

/* Recipes from one cooking process share a single visible area. */
.recipe-family{border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-bottom:9px;overflow:hidden}
.recipe-family .recipe-card{border:0;border-radius:0;margin:0;border-bottom:1px solid var(--line)}
.recipe-family .recipe-card:last-child{border-bottom:0}
.recipe-family-root{background:var(--soft)}
.recipe-family .recipe-family-linked{padding-left:12px}
.recipe-family .recipe-family-linked .recipe-open{min-height:72px;padding-top:8px;padding-bottom:8px}
.recipe-family-linked .recipe-thumbnail{width:48px;height:48px;flex-shrink:0;object-fit:cover}
.recipe-relation{display:block;color:var(--muted);font-size:11px;line-height:1.3;margin-bottom:3px}
.recipe-family-title{font-size:13px;line-height:1.4;padding:10px 14px;background:var(--soft);overflow-wrap:anywhere}
