/* Runtime extension: the canonical shell, logo and four-tab nav are reused. */
.mp-page:is([data-screen="mes-ingredients"],[data-screen="mes-ingredients-liste"],[data-screen^="ingredients-"]) { --ip-green: #326754; --ip-ink: #20281e; width: 100%; max-width: 520px; margin-inline: auto; }
.ip { display: flex; flex-direction: column; gap: 14px; color: var(--ip-ink); }
.ip button, .ip input { font: inherit; }
.ip button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ip button:focus-visible, .ip input:focus-visible, .ip-done button:focus-visible { outline: 3px solid #749d86; outline-offset: 3px; }
.ip button:disabled { cursor: default; opacity: .58; }
.ip-search { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 0 15px; border: 1px solid #eee9e0; border-radius: 17px; background: #fff; }
.ip-search > svg { flex: 0 0 23px; width: 23px; height: 23px; color: var(--ip-green); }
.ip-search input { flex: 1; min-width: 0; width: 100%; padding: 14px 0; border: 0; background: transparent; color: var(--ip-ink); font-size: 16px; }
.ip-search input::placeholder { color: #738078; opacity: 1; }
.ip-search:focus-within { border-color: var(--ip-green); }
.ip-search input:focus { outline: none; }
.ip-counter { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 55px; padding: 11px 14px; border: 0; border-radius: 17px; background: #fff; text-align: left; color: var(--ip-ink); cursor: pointer; }
.ip-counter > span:nth-child(2) { flex: 1; min-width: 0; font-size: 15px; font-weight: 550; }
.ip-counter-mark { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--ip-green); color: #fff; font-size: 18px; }
.ip-counter small { display: block; color: #708075; font-size: 11px; line-height: 1.45; font-weight: 400; }
.ip-counter small:empty { display: none; }
.ip-counter-link { display: flex; align-items: center; gap: 10px; color: var(--ip-green); font-size: 14px; font-weight: 650; }
.ip-counter-link > span { font-size: 28px; line-height: 1; }
.ip-categories h2 { margin: 9px 0 13px; color: var(--ip-ink); font: 700 23px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.45px; }
.ip-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ip-category { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 91px; padding: 8px 24px 8px 5px; border: 1px solid #f0ece5; border-radius: 19px; background: #fff; color: var(--ip-ink); text-align: left; cursor: pointer; }
.ip-category img { display: block; width: 62px; height: 69px; flex: 0 0 62px; object-fit: contain; }
.ip-category-label { font-size: 13px; line-height: 1.24; font-weight: 650; letter-spacing: -.25px; overflow-wrap: normal; }
.ip-category-count { position: absolute; top: 8px; right: 7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eaf2ed; color: var(--ip-green); font-size: 20px; line-height: 1; font-weight: 400; }
.ip-category-count.has-items { background: var(--ip-green); color: #fff; font-size: 11px; font-weight: 700; }
.ip-bottom { display: grid; gap: 11px; margin-top: 1px; }
.ip-photo { display: flex; align-items: center; gap: 8px; min-height: 87px; width: 100%; padding: 8px 13px 8px 4px; border: 1px solid #eee9e0; border-radius: 19px; background: #fff; color: var(--ip-ink); text-align: left; cursor: pointer; }
.ip-photo img { display: block; flex: 0 0 88px; width: 88px; height: 72px; object-fit: contain; }
.ip-photo > span:nth-child(2) { flex: 1; min-width: 0; }
.ip-photo strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 650; }
.ip-photo small { display: block; margin-top: 4px; color: #738078; font-size: 13px; }
.ip-photo-icon svg { width: 25px; height: 25px; }
.ip-chevron { margin-left: 2px; color: var(--ip-green); font-size: 29px; line-height: 1; }
.mp-page[data-screen] .ip-recipes { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 53px; padding: 12px 17px; border: 0; border-radius: 16px; background: var(--ip-green); color: white; font-size: 16px; font-weight: 650; }
.ip-recipes > span:first-child { flex: 1; text-align: center; }
.ip-recipes > span:last-child { font-size: 27px; line-height: 1; }
.ip-subgroups { display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px 7px; scrollbar-width: thin; }
.ip-subgroups button { flex: 0 0 auto; min-height: 42px; padding: 8px 14px; border: 1px solid #dfe7dc; border-radius: 22px; background: #fff; color: #536256; font-size: 13px; font-weight: 550; cursor: pointer; }
.ip-subgroups button[aria-pressed="true"] { border-color: var(--ip-green); background: var(--ip-green); color: #fff; }
.ip-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ip-choice { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 56px; padding: 12px 11px; border: 1px solid #e9e7df; border-radius: 13px; background: #fff; color: var(--ip-ink); text-align: left; font-size: 14px !important; cursor: pointer; }
.ip-choice.is-selected { border-color: #98b6a1; background: #edf4ed; }
.ip-choice > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ip-choice small, .ip-selected-list small { display: block; margin-top: 4px; color: #746b55; font-size: 11px; line-height: 1.35; }
.ip-choice-mark { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #dce5da; border-radius: 7px; background: #fff; color: var(--ip-green); font-size: 18px; }
.ip-choice.is-selected .ip-choice-mark { border-color: var(--ip-green); background: var(--ip-green); color: white; font-size: 14px; }
.ip-more { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #dfe7dc; border-radius: 13px; color: var(--ip-green); background: transparent; cursor: pointer; }
.ip-empty { margin: 5px 0; padding: 19px; border-radius: 16px; background: #fff; color: #6d766b; line-height: 1.55; font-size: 14px; }
.ip-message { padding: 12px 14px; border-radius: 13px; background: #faf1e8; font-size: 13px; line-height: 1.45; }
.ip-message p { margin: 0; }
.ip-message button { margin-top: 7px; padding: 8px 0; border: 0; background: transparent; color: #6a4931; text-decoration: underline; cursor: pointer; }
.ip-message--error { color: #754631; }
.ip-save-status { margin: 0; color: #708075; font-size: 12px; }
.ip-selected-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-selected-list li { display: flex; align-items: center; gap: 14px; justify-content: space-between; min-height: 58px; padding: 11px 14px; border: 1px solid #ece9e1; border-radius: 13px; background: #fff; font-size: 15px; }
.ip-selected-list button { flex: 0 0 auto; min-height: 38px; padding: 7px 9px; border: 0; border-radius: 9px; background: #f4f4ee; color: #61705e; font-size: 12px; cursor: pointer; }
.ip-done { display: grid; gap: 7px; width: 100%; }
.ip-done p { margin: 0; text-align: center; color: #6d786a; font-size: 12px; line-height: 1.4; }
.ip-done > button { width: 100%; min-height: 48px; }
.ip-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 360px) {
  .ip-category { min-height: 87px; padding-right: 18px; gap: 2px; }
  .ip-category img { width: 48px; flex-basis: 48px; height: 63px; }
  .ip-category-label { font-size: 12px; }
  .ip-category-count { width: 19px; height: 19px; right: 5px; top: 5px; }
  .ip-photo img { width: 70px; flex-basis: 70px; }
  .ip-photo strong { font-size: 15px; }
  .ip-counter { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .ip-counter > span:nth-child(2) { font-size: 13px; }
}
@container (min-width: 480px) {
  .ip-category { padding-right: 31px; gap: 8px; }
  .ip-category img { width: 68px; height: 72px; flex-basis: 68px; }
  .ip-category-label { font-size: 14px; }
  .ip-category-count { right: 8px; }
}
