/* Build 747: white surfaces for Recipes controls and card copy in light mode. */
html:not([data-theme="dark"]) body #app #search,
html:not([data-theme="dark"]) body #app #recipe-collection,
html:not([data-theme="dark"]) body #app #category{
  background-color:#fff!important;
  color:#263126!important;
}
html:not([data-theme="dark"]) body #app .br-recipe-view-toggle button[data-recipe-view="categories"]{
  background:#fff!important;
  color:#263126!important;
  border-color:#d8d2c4!important;
}
html:not([data-theme="dark"]) body #app #cards a.card,
html:not([data-theme="dark"]) body #app #cards a.card>div,
html:not([data-theme="dark"]) body #app #recipe-categories .br-category-tile>div{
  background-color:#fff!important;
  color:#263126!important;
}
html:not([data-theme="dark"]) body #app #cards a.card p,
html:not([data-theme="dark"]) body #app #recipe-categories .br-category-tile p{
  color:#4b5148!important;
}

/* Build 751: use one top-left return-link treatment on all primary pages. */
html body #app .br-back-to-recipes,
html body #app .br-back-to-home{
  display:flex!important;
  width:max-content!important;
  max-width:100%!important;
  align-items:center!important;
  margin:0 0 14px!important;
  color:var(--ink,#263126)!important;
  font:600 15px/1.3 Georgia,serif!important;
  text-decoration:none!important;
}
html body #app .br-back-to-recipes:hover,
html body #app .br-back-to-home:hover,
html body #app .br-back-to-recipes:focus-visible,
html body #app .br-back-to-home:focus-visible{
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
html[data-theme="dark"] body #app .br-back-to-recipes,
html[data-theme="dark"] body #app .br-back-to-home{color:#f3eddf!important}


/* Build 762: keep the accessible search label, but show the familiar search icon inside the field. */
html body #app .tools label[for="search"]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html body #app .tools #search{padding-left:44px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353644c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:14px center!important;background-size:20px 20px!important}
html[data-theme="dark"] body #app .tools #search{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5efdf' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E")!important}


/* Build 763: label the recipe browsing mode as a list and pair it with a familiar list icon. */
html body #app .br-recipe-view-toggle button[data-recipe-view="all"]{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
html body #app .br-recipe-view-toggle .br-recipe-view-icon{display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important}


/* Build 764: put browsing mode before collection filters, with a swipeable collection row. */
html body #app .tools .br-recipe-collection-source[hidden]{display:none!important}
html body #app .br-recipe-view-toggle{margin:10px 0!important}
html body #app .br-recipe-collection-chips{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;max-width:100%!important;margin:0 0 10px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 1px 6px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
html body #app .br-recipe-collection-chips::-webkit-scrollbar{display:none!important}
html body #app .br-recipe-collection-chip{flex:0 0 auto!important;min-height:40px!important;margin:0!important;padding:9px 15px!important;border:1px solid #cfc9bb!important;border-radius:999px!important;background:#fff!important;color:#263126!important;font-family:inherit!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap!important;cursor:pointer}
html body #app .br-recipe-collection-chip[aria-pressed="true"]{background:#365444!important;border-color:#365444!important;color:#fff!important}
html body #app .br-recipe-category-field{display:grid!important;grid-template-columns:auto minmax(180px,320px)!important;align-items:center!important;gap:12px!important;margin:0 0 10px!important}
html body #app .br-recipe-category-field[hidden]{display:none!important}
html body #app .br-recipe-category-field label{margin:0!important;font-size:14px!important;font-weight:600!important}
html body #app .br-recipe-category-field select{width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:8px 12px!important;border:1px solid #cbc6ba!important;border-radius:10px!important;background:#fff!important;color:#263126!important;font:inherit!important}
html[data-theme="dark"] body #app .br-recipe-collection-chip{background:#252f28!important;color:#f5efdf!important;border-color:#4b5c4e!important}
html[data-theme="dark"] body #app .br-recipe-collection-chip[aria-pressed="true"]{background:#58744d!important;color:#fff!important;border-color:#58744d!important}
html[data-theme="dark"] body #app .br-recipe-category-field select{background:#252f28!important;color:#f5efdf!important;border-color:#4b5c4e!important}
@media(max-width:560px){html body #app .br-recipe-collection-chips{gap:7px!important}html body #app .br-recipe-collection-chip{min-height:38px!important;padding:8px 13px!important;font-size:13px!important}html body #app .br-recipe-category-field{grid-template-columns:1fr!important;gap:5px!important}html body #app .br-recipe-category-field select{width:100%!important}}


/* Build 766: visually remove the redundant category label and align the selector to the left. */
html body #app .br-recipe-category-field{display:block!important}
html body #app .br-recipe-category-field label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html body #app .br-recipe-category-field select{display:block!important;width:min(320px,100%)!important;margin:0!important}
@media(max-width:560px){html body #app .br-recipe-category-field select{width:100%!important}}
