/* Search field of inventory (finds in the special inventory too) and warehouse (ui/itemsearch.js, user 02.11.2026): the magnifier sits
   with the icon buttons under the grid, its field in a slim row between grid and buttons, as wide as the grid
   (game.css); hits glow light blue, the rest fades, tabs with hits elsewhere glow. Phones: the field takes the place of
   a tab row, a finger high (>= 44 CSS px). */
#ui :is(.tabs, .inv-tools) > .btn.find-btn.lit { box-shadow: inset 0 0 0 1px #7fd6ff, 0 0 3px 1px rgba(127, 214, 255, .5); }
#ui .inv-find { display: flex; align-items: center; gap: 2px; margin: 3px 0 0; }
#ui .inv-find.hidden { display: none; }
#ui .inv-find .find-in { flex: 1 1 auto; min-width: 0; width: 0; height: 11px; padding: 0 3px; font-size: 7px; line-height: 11px; }
/* (its gold focus frame is enough: the outline of focused controls stood out of the window) */
#ui .inv-find .find-in:focus-visible { outline: none; }
#ui .inv-find .find-x { flex: none; min-width: 0; width: 11px; height: 11px; padding: 0; display: flex; align-items: center; justify-content: center; }
#ui .inv-find .find-x img { width: 7px; height: 7px; object-fit: contain; pointer-events: none; image-rendering: auto; }
#ui .inv-find .find-x:hover img { filter: brightness(1.25); }
/* hits and the rest */
#ui .inv-grid.finding .inv-item:not(.found) { opacity: .25; }
#ui .inv-item.found::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px #7fd6ff, inset 0 0 4px 1px rgba(127, 214, 255, .55); background: rgba(127, 214, 255, .12); }
#ui .tab.found { color: #cdeeff; box-shadow: inset 0 0 0 1px #7fd6ff, 0 0 3px rgba(127, 214, 255, .6); }
/* the special inventory folded in with hits: its handle at the inventory glows (the inventory's search finds in there) */
#ui .side-tab.found::before { filter: brightness(1.3) drop-shadow(0 0 2px #7fd6ff); }
#ui .side-tab.found .st-ic { opacity: 1; filter: none; }

/* phones (touch.css lays the windows out sideways): the field a finger high */
html.touch #ui .inv-find { margin: 0; gap: 3px; }
html.touch #ui .inv-find .find-in { height: var(--finger); font-size: 9px; line-height: normal; }
html.touch #ui .inv-find .find-x { width: var(--finger); height: var(--finger); }
html.touch #ui .inv-find .find-x img { width: 10px; height: 10px; }
/* inventory: over the tabs Ausrüstung / Kostüm while it is open (the bag keeps its height) */
html.touch #ui #inventory .inv-find { grid-column: 1; grid-row: 1; z-index: 1; }
html.touch #ui #inventory .win-body:has(> .inv-find:not(.hidden)) > .eq-tabs { visibility: hidden; }
/* warehouse: under its pages, the hint goes below it */
html.touch #ui #safebox > .win-body { grid-template-rows: auto auto 1fr; }
html.touch #ui #safebox .inv-grid { grid-row: 1 / 4; }
html.touch #ui #safebox .inv-find { grid-column: 2; grid-row: 2; }
html.touch #ui #safebox .sb-help { grid-row: 3; }
