/* Readable labels at every preview width; body copy stays at least 16px. */
.preview-bar,.preview-label,.device-picker button,.preview-share{font-size:14px}
.preview-label{white-space:normal}
.profile small,.prototype-note,.library-count,.cookbook-heading .library-count,
.library-toolbar .search-box input,.cookbook-filters .filter-chip,.cookbook-filters>select,
.recipe-card .card-meta,.recipe-grid.compact .card-meta,.mobile-nav a,
.meal-type,.plan-meal .meal-type,.shopping-item small,.settings-row small,
.theme-toggle button,.timer-control .small,.source-url,.source-copy .small,
.share-demo-top strong,.share-demo-top small,.system-app,.sheet-head small,.share-sheet .sheet-note,
.source-choices button,.source-choices span,.import-demo-controls select,.import-missing-label{font-size:14px}
.detail-intro .eyebrow,.cook-top .eyebrow{font-size:14px;letter-spacing:.08em}
.detail-actions .button,.cook-bottom .button,.import-actions>.button{font-size:16px;line-height:1.4;white-space:normal}
.description,.detail-intro .description,.source-copy p,.share-success p,.import-notice,.import-source,.import-stats{font-size:16px}
.recipe-card h3,.recipe-pick strong,.plan-meal h3,.shopping-item label,.trash-item strong{overflow-wrap:anywhere}
.recipe-card .card-meta{color:#fff;flex-wrap:wrap;line-height:1.5}
/* Let long card titles grow the card instead of escaping a fixed photo box. */
.recipe-card>.recipe-card-link,.recipe-grid.compact .recipe-card-link{display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:auto;min-height:clamp(250px,26cqw,340px)}
.recipe-card .recipe-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.recipe-card .card-copy{position:relative;inset:auto;padding:34px 24px 22px;margin-top:100px;isolation:isolate}
.recipe-card .card-copy::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent,rgba(9,16,13,.82) 30px,rgba(9,16,13,.9))}
.recipe-card h3{max-width:100%;font-size:27px;line-height:1.25;text-wrap:pretty}
.recipe-grid.compact .recipe-card h3{font-size:22px}
.recipe-grid.compact .card-copy{padding:32px 18px 18px}
.button:disabled,.icon-button:disabled{opacity:1;color:var(--muted);background:var(--soft);border-color:var(--line)}
@container app (max-width:760px){
 .recipe-card .card-copy{padding:32px 20px 20px}
 .recipe-card h3{font-size:25px}
 .recipe-grid.compact .card-copy{padding:32px 13px 16px}
 .recipe-grid.compact .recipe-card h3{font-size:20px}
 .cookbook-filters .filter-chip{font-size:14px}
 .mobile-nav a{font-size:14px}
 .library-toolbar .search-box input{font-size:16px}
}
@media(max-width:700px){.preview-label,.preview-share{font-size:14px}.preview-bar{gap:8px;padding:8px 10px}.cook-top .eyebrow{font-size:14px}}
.add-meal-button,.cookbook-heading>.button,.day-heading span{font-size:14px}
.cook-ingredients .ingredient-row,.plan-empty-note{font-size:16px}
