/* Bag and storage management: bounded controls, normal flow and reachable filters. */
@layer pv {
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone > :is(.gear-selection, .inventory-management-disclosure, .capacity-head, .armory-loot-status) { flex: 0 0 auto !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone .gear-selection { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 10px !important; padding: 12px !important; margin: 0 0 12px !important; overflow: visible !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection > header { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; gap: 2px 12px !important; align-items: center !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection > header b { grid-column: 1 !important; grid-row: 1 !important; min-width: 0 !important; overflow-wrap: anywhere !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection > header > span { grid-column: 1 !important; grid-row: 2 !important; min-width: 0 !important; white-space: normal !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection > header > button { grid-column: 2 !important; grid-row: 1 / 3 !important; margin: 0 !important; min-width: 62px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-actions { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 8px !important; min-width: 0 !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection :is(button, select) { position: relative !important; inset: auto !important; transform: none !important; box-sizing: border-box !important; min-height: 44px !important; height: auto !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; padding: 8px 10px !important; white-space: normal !important; overflow-wrap: anywhere !important; line-height: 1.35 !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-actions > button { width: 100% !important; font-size: 11px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart { display: grid !important; grid-template-columns: minmax(180px,1.3fr) repeat(3,minmax(0,1fr)) !important; gap: 8px !important; align-items: end !important; margin: 0 !important; padding: 10px 0 0 !important; min-width: 0 !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart > small { grid-column: 1 / -1 !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart > label { display: grid !important; grid-template-columns: minmax(0,1fr) 72px !important; align-items: center !important; gap: 8px !important; min-width: 0 !important; white-space: normal !important; font-size: 12px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart select { width: 100% !important; font-size: 16px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart > button { width: 100% !important; font-size: 11px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection > .gear-sale-note { display: block !important; white-space: normal !important; overflow-wrap: anywhere !important; line-height: 1.5 !important; font-size: 11px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone:has(.gear-selection) > .inventory-management-disclosure { display: block !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-management-disclosure { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; margin: 0 0 10px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-management-disclosure > summary { min-height: 44px !important; box-sizing: border-box !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-management-disclosure[open] > .inventory-toolbar { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; align-items: end !important; gap: 10px !important; padding: 10px 0 !important; min-width: 0 !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-toolbar > b { grid-column: 1 / -1 !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-management-disclosure .inventory-toolbar > label { display: grid !important; grid-template-columns: minmax(0,1fr) !important; align-items: start !important; gap: 5px !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; font-size: 11px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-management-disclosure .inventory-toolbar :is(select,button) { box-sizing: border-box !important; position: relative !important; inset: auto !important; margin: 0 !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; min-height: 44px !important; height: auto !important; padding: 8px 10px !important; white-space: normal !important; font-size: 12px !important; line-height: 1.35 !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone:has(.gear-selection) .inventory-toolbar > :is(label:has(#bulkRarity), [data-action="bulkSalvage"]) { display: none !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone:has(.gear-selection) { overflow-y: visible !important; overscroll-behavior: auto !important; } /* 29.10.: war eigener Scrollkasten ohne Überlauf → schluckte das Wischen am Handy */
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone:has(.gear-selection) > :is(.capacity-head, .armory-loot-status) { display: none !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone:has(.gear-selection) > .inventory-grid { min-height: 180px !important; }
  html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-zone:has(.gear-selection) .inventory-toolbar > [data-action="toggleRolls"] { display: none !important; }
  @media (max-width: 900px) {
    html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-actions, html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart, html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-management-disclosure[open] > .inventory-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart > label { grid-column: 1 / -1 !important; grid-template-columns: minmax(0,1fr) 90px !important; }
    html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .gear-selection-smart > button:last-child { grid-column: 1 / -1 !important; }
    html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6):not(#is7):not(#is8) #view .inventory-management-disclosure .inventory-toolbar select { font-size: 16px !important; }
  }
}

/* Handy: DONE bleibt beim Scrollen sichtbar (Pao 28.10.: "Unable to scroll, where did the done button go?")
   Die Auswahlleiste löst sich auf, nur die Kopfzeile klebt oben im scrollenden Bereich. */
@layer pv {
  @media (max-width: 899px) {
    html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6) #view .inventory-zone .gear-selection { display: contents !important; }
    html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6) #view .gear-selection > header { position: sticky !important; top: 0 !important; z-index: 20 !important; padding: 10px 12px !important; margin: 0 0 10px !important; border-radius: 14px !important; border: 1px solid rgba(232, 194, 114, .45) !important; background: #17102a !important; box-shadow: 0 8px 18px rgba(0, 0, 0, .55) !important; }
    html body.vey-renewal:is([data-view="inventory"], [data-view="storage"]):not(#is1):not(#is2):not(#is3):not(#is4):not(#is5):not(#is6) #view .gear-selection > :is(.gear-selection-actions, .gear-selection-smart, .gear-sale-note) { margin-bottom: 10px !important; }
  }
}
