.recipe-browser-controls{display:grid;gap:16px;margin:20px 0 24px;padding:22px;background:#fff;border:1px solid #dce7e5;border-radius:24px}
.recipe-browser-controls .snack-search{display:grid;gap:8px;font-size:.82rem;font-weight:650;color:var(--ink,#123e45)}
.recipe-control-row{display:flex;align-items:end;flex-wrap:wrap;gap:12px}
.recipe-control-row>label{display:grid;gap:6px;flex:1 1 150px;font-size:.78rem;color:#53716f}
.recipe-control-row select{width:100%;min-height:46px;border:1px solid #d9e4e1;border-radius:13px;background:#f8fbfa;color:#143e43;padding:10px 30px 10px 12px;font:inherit}
.recipe-toggle-row{display:flex;gap:8px;flex-wrap:wrap}
.recipe-toggle-row button{border:1px solid #dbe5e2;border-radius:999px;min-height:43px;background:#f8fbfa;padding:10px 15px;color:#355956;font-size:.82rem;font-weight:600}
.recipe-toggle-row button[aria-pressed=true]{background:#073e48;color:#fff;border-color:#073e48}
.recipe-toggle-row button[data-recipe-filter=favorites][aria-pressed=true]{background:#e9f7dc;color:#214c39;border-color:#accf92}
.recipe-filter-note{font-size:.73rem;line-height:1.55;color:#627d77;margin:0}
.recipe-results-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 18px}
.recipe-results-line #snack-results{font-weight:650;font-size:.9rem;color:#173f44}
.recipe-results-line button{font-size:.78rem;padding:8px 12px}
.snack-grid{align-items:stretch}
.snack-card{border-color:#dce6df;border-radius:23px;overflow:hidden}
.snack-card .snack-art{padding:0;height:auto;aspect-ratio:3/2;background:#eaf0e9;display:block}
.snack-card .snack-art>svg{width:100%;height:100%;max-width:none;display:block}
.snack-card .snack-method{top:14px;left:14px;background:#fffffff0;backdrop-filter:blur(8px);padding:6px 10px;border-radius:8px;color:#38574f;font-size:.68rem}
.snack-card .recipe-heart{top:12px;right:12px;width:42px;height:42px;background:#fffffff2;border:1px solid #fff;color:#176657;box-shadow:0 3px 10px #1c3d3910}
.snack-card .recipe-heart[aria-pressed=true]{background:#e7f5d9;color:#225b41;border-color:#bfd9a7}
.snack-card-copy{padding:19px;gap:10px}
.snack-card-copy>strong{font-size:1.08rem;line-height:1.3}
.snack-description{line-height:1.55;font-size:.84rem}
.snack-card-bottom{color:#376359}
.recipe-load-more{display:block;margin:28px auto;min-width:210px}
.snack-recipe-hero .recipe-art>svg{width:100%;max-width:500px;border-radius:24px}
@media(max-width:600px){.recipe-browser-controls{padding:16px;gap:14px;border-radius:20px}.recipe-control-row{gap:10px}.recipe-control-row>label{flex-basis:42%;min-width:0}.recipe-toggle-row button{flex-grow:1;font-size:.76rem;padding:9px 10px}.snack-grid{grid-template-columns:1fr!important;gap:20px}.snack-card .snack-art{aspect-ratio:1.9}.snack-card .snack-art>svg{object-fit:cover}.snack-card-copy{padding:19px}.recipe-filter-note{font-size:.7rem}}

@media(max-width:600px){#view-snacks .food-diary-link{margin:0 0 12px;justify-content:flex-start}#view-snacks .food-diary-link button{padding:8px 12px;font-size:.75rem;min-height:36px}.recipe-browser-controls{padding:14px;margin-top:14px}.recipe-toggle-row{display:grid;grid-template-columns:1fr 1fr}.recipe-toggle-row button:first-child{grid-column:1 / -1}.recipe-control-row>label:last-child{flex-basis:100%}.recipe-toggle-row button{min-height:40px}}

.recipe-extra{flex:1 1 140px;align-self:end;font-size:.8rem;color:#345b55}
.recipe-extra>summary{cursor:pointer;min-height:46px;padding:12px 14px;border:1px solid #d9e4e1;border-radius:13px;background:#f8fbfa;box-sizing:border-box}
.recipe-extra[open]{flex-basis:100%}.recipe-extra-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px}.recipe-extra-controls label{display:grid;gap:6px}
@media(max-width:600px){.recipe-toggle-row{grid-template-columns:1fr 1fr 1fr}.recipe-toggle-row button:first-child{grid-column:auto}.recipe-toggle-row button{font-size:.68rem;padding:8px 6px;line-height:1.3}.recipe-control-row>label{flex:1 1 45%}.recipe-extra{flex:1 1 40%}.recipe-browser-controls{gap:12px}.recipe-filter-note{font-size:.66rem}}

/* Explicit recipe timing, consistent in cards and details. */
.recipe-time-summary,.recipe-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin:4px 0 8px;text-align:left}
.recipe-time-part{display:flex;flex-direction:column;gap:4px;min-width:0;color:#244e51}.recipe-time-part small{font-size:11px;line-height:1.4;font-weight:500}.recipe-time-part strong{font-size:14px;line-height:1.3}.recipe-time-part:last-child{border-left:1px solid #dce6df;padding-left:10px}
.recipe-photo{display:block;position:relative;width:100%;height:100%}.recipe-photo img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:3/2}.recipe-photo [hidden]{display:none!important}.recipe-photo-fallback>svg{display:block;width:100%;height:100%}.recipe-photo-credit{position:absolute;bottom:5px;right:8px;background:#fffdf1e8;color:#244e51;padding:2px 5px;font-size:9px}
@media(max-width:380px){.snack-card-copy{padding:14px}.recipe-time-summary,.recipe-meta{gap:6px}.recipe-time-part small{font-size:10px}.recipe-time-part strong{font-size:13px}.recipe-time-part:last-child{padding-left:6px}.recipe-extra-controls{grid-template-columns:1fr}.nutrition-card>.section-line{flex-wrap:wrap}.nutrition-card [data-log-recipe]{width:100%;white-space:normal}.recipe-meta>span{padding:0;background:none}}

.snack-recipe-hero>div{min-width:0}.recipe-meta .recipe-time-part{background:none;padding:0;border:0;color:#244e51;white-space:normal}.recipe-meta .recipe-time-part:last-child{padding-left:8px;border-left:1px solid #dce6df}.recipe-meta .recipe-time-part small{white-space:normal;overflow-wrap:normal;min-width:0}
@media(max-width:380px){.recipe-control-row>label{flex-basis:100%}.recipe-extra{flex-basis:100%}.recipe-meta{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}.recipe-meta .recipe-time-part:last-child{grid-column:1/-1;padding:8px 0 0;border-left:0;border-top:1px solid #dce6df}}
