.items-open { position: fixed; z-index: 3; top: calc(max(16px, var(--android-safe-top, env(safe-area-inset-top))) + 56px); left: max(16px, var(--android-safe-left, env(safe-area-inset-left))); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff59; background: #10251933; color: #ffffffe0; }
.items-open svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px #0008); }
.items-open:not(:disabled):active { background: #10251966; }
.items-open:focus-visible { outline-color: #fff; }
.items-dialog { position: fixed; inset: auto 0 0; margin: auto; width: min(100%, 560px); max-width: 100%; height: min(82dvh, 760px); max-height: calc(100dvh - max(12px, var(--android-safe-top, env(safe-area-inset-top)))); padding: 0; border: 1px solid #ffffffa6; border-radius: 22px 22px 0 0; background: #f9faf5; color: #26332b; box-shadow: 0 12px 60px #101d2533; overflow: hidden; overscroll-behavior: contain; }
.items-dialog[open] { display: flex; flex-direction: column; }
.items-dialog::backdrop { background: #13271c40; }
.items-header { flex: 0 0 auto; padding: 9px max(16px, var(--android-safe-right, env(safe-area-inset-right))) 12px max(16px, var(--android-safe-left, env(safe-area-inset-left))); border-bottom: 1px solid var(--line); }
.items-heading { display: flex; align-items: center; gap: 2px; }
.items-heading h2 { min-width: 0; flex: 1; margin: 0; padding: 0 3px; font-size: 18px; font-weight: 600; }
.items-heading > .icon-button { border-radius: 50%; }
.items-search { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #b7c4b1; border-radius: 12px; background: #fff; font-size: 16px; color: #26332b; }
.items-search::-webkit-search-decoration { -webkit-appearance: none; }
.items-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 0 max(16px, var(--android-safe-right, env(safe-area-inset-right))) max(20px, var(--android-safe-bottom, env(safe-area-inset-bottom))) max(16px, var(--android-safe-left, env(safe-area-inset-left))); }
.items-status, .items-note, .items-footer { margin: 14px 0; font-size: 12px; line-height: 1.5; color: #5e6a60; overflow-wrap: anywhere; }
.items-status { margin: 12px 3px 7px; }
.items-list, .items-places, .items-sources { list-style: none; margin: 0; padding: 0; }
.items-list li + li { border-top: 1px solid var(--line); }
.items-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 11px 3px; border-radius: 10px; background: transparent; text-align: left; }
.items-row-caption { display: grid; gap: 5px; min-width: 0; }
.items-row-caption strong { font-size: 14px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.items-row-caption > span { font-size: 11px; line-height: 1.4; color: #5e6a60; overflow-wrap: anywhere; }
.items-icon { position: relative; display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 3px; border-radius: 10px; background: #e5ebe0; color: #72816f; }
.items-icon > img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; image-rendering: pixelated; }
.items-icon-loaded > svg { visibility: hidden; }
.items-icon-large { flex-basis: 60px; width: 60px; height: 60px; padding: 6px; border-radius: 15px; }
.items-icon-large > img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.items-caption { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.items-caption > div { min-width: 0; }
.items-caption h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.4px; overflow-wrap: anywhere; }
.items-original, .items-category, .items-id { margin: 5px 0 0; font-size: 12px; line-height: 1.35; color: #5e6a60; overflow-wrap: anywhere; }
.items-id { font-size: 10px; color: #71806e; }
.items-detail h4 { margin: 22px 0 10px; font-size: 13px; font-weight: 600; }
.items-variant { display: grid; gap: 7px; margin: 12px 0; color: #5e6a60; font-size: 12px; }
.items-variant select { min-width: 0; width: 100%; padding: 9px; border: 1px solid #b7c4b1; border-radius: 10px; background: #fff; font-size: 12px; color: #26332b; }
.items-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.items-stats:empty { display: none; }
.items-stats-compact > div:nth-child(n+7) { display: none; }
.items-stats-toggle { width: 100%; padding: 10px; border-radius: 0 0 10px 10px; background: transparent; color: #435747; font-size: 11px; }
.items-stats > div { min-width: 0; padding: 10px 12px; background: #f3f6ee; }
.items-stats dt { font-size: 11px; line-height: 1.4; color: #5e6a60; overflow-wrap: anywhere; }
.items-stats dd { margin: 5px 0 0; font-size: 14px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.items-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.items-sources > li { padding: 6px 9px; border-radius: 8px; background: #e8eee2; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.items-places li { display: grid; gap: 5px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.items-places strong { font-size: 13px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.items-places span { font-size: 11px; line-height: 1.4; color: #5e6a60; overflow-wrap: anywhere; }
.items-primary, .items-secondary { display: block; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; font-size: 14px; text-align: center; }
.items-primary { margin: 18px 0 12px; background: #315c42; color: #fff; }
.items-primary:not(:disabled):active { background: #233f2d; }
.items-secondary { margin: 12px 0; background: #e5ebe0; color: #26332b; }
.items-recipes { margin: 16px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.items-recipes summary { min-height: 44px; padding: 13px 0; cursor: pointer; }
.items-recipes ul { margin: 0 0 8px; padding-left: 20px; color: #5e6a60; }
.items-recipes li { margin: 6px 0; overflow-wrap: anywhere; }
.items-recipes > ul { padding: 0; list-style: none; }
.items-recipe { padding-left: 8px; border-left: 2px solid #cbd7c2; }
.items-recipe > summary { padding: 10px 0; }
.items-recipe-content { padding: 0 4px 8px 8px; }
.items-recipe-content h5 { margin: 12px 0 7px; font-size: 11px; color: #344f3e; }
.items-recipe-content ul { padding-left: 14px; }
.items-input-note { display: block; margin-top: 4px; font-size: 10px; color: #71806e; }
.items-alternatives summary { padding: 4px 0; min-height: 36px; }
.items-footer { margin: 20px 0 0; font-size: 10px; text-align: center; color: #71806e; }
.items-footer summary { min-height: 44px; padding: 14px 0; cursor: pointer; }
.items-footer > p { margin: 0 0 12px; }
@media (hover: hover) {
  .items-open:not(:disabled):hover { background: #10251966; }
  .items-primary:not(:disabled):hover { background: #294e37; }
}
@media (max-width: 600px) {
  .items-open { top: calc(max(12px, var(--android-safe-top, env(safe-area-inset-top))) + 56px); left: max(12px, var(--android-safe-left, env(safe-area-inset-left))); }
}
@media (max-height: 480px) {
  .items-dialog { height: calc(100dvh - max(12px, var(--android-safe-top, env(safe-area-inset-top)))); }
}
