#inventory-overlay.poe-inventory { padding: 20px; box-sizing: border-box; }
.poe-inventory-wrapper { width: min(1450px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: #171720; color: #dddde7; border: 1px solid #383846; border-radius: 10px; box-shadow: 0 20px 80px #0009; position: relative; padding: 22px; box-sizing: border-box; }
.poe-inventory-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding-right: 35px; margin-bottom: 10px; }
.poe-inventory-header-left { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.poe-inventory-header .req-update-btn { grid-column: 3; justify-self: end; }
.poe-inventory-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.poe-inventory-heading .char-link { font-size: 20px; font-weight: 600; }
.poe-inventory-status { color: #abaabb; margin: 10px 0; }
.poe-inventory-status:empty { display: none; }
.poe-inventory-content { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 24px; height: min(745px, calc(100dvh - 150px)); min-height: 0; overflow: hidden; }
.poe-equipment-column { min-width: 0; overflow-x: auto; }
.poe-weapon-controls { display: flex; gap: 6px; margin: 8px 20px; }
.poe-set-button { border: 1px solid #383849; background: #21212d; color: #aaaabd; padding: 6px 12px; border-radius: 5px; cursor: pointer; }
.poe-set-button[aria-pressed="true"] { color: #fff; border-color: #9891c4; background: #343147; }
#inventory-grid.poe-equipment { position: relative; width: 600px; height: 640px; }
.poe-equipment-item { position: absolute; background: #101017; border-radius: 5px; border: 1px solid #ffffff06; box-sizing: border-box; }
.poe-equipment-icon { width: 100%; height: 100%; object-fit: contain; display: block; }
.poe-socket-overlay { display: flex; flex-wrap: wrap; gap: 3px; position: absolute; bottom: 3px; left: 3px; right: 3px; pointer-events: none; }
.poe-socket-group { display: inline-flex; align-items: center; gap: 2px; padding: 2px; background: #08080de8; border: 1px solid #726b50; border-radius: 4px; flex-wrap: wrap; }
.poe-socket-icon { width: 14px; height: 14px; object-fit: contain; }
.poe-gem-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; margin-top: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.poe-gem-weapons { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.poe-gem-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; min-width: 0; }
.poe-gem-other { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.poe-gem-other > .poe-gem-card { align-self: stretch; }
.poe-gem-card { background: #222231; border: 1px solid #ffffff04; border-radius: 7px; padding: 10px 10px; box-shadow: 0 3px 8px #0003; min-width: 0; text-align: left; align-self: start; }
.poe-gem-card.is-inactive { opacity: .65; filter: saturate(.65); }
.poe-gem-card h3 { font-size: 14px; color: #cecae7; margin: 0 0 6px; }
.poe-gem-empty { font-size: 13px; color: #a4a0ba; font-style: italic; margin: 0; line-height: 1.5; }
.poe-gem-links { margin: 3px 0; padding-left: 6px; }
.poe-gem-links.is-linked { border-left: 1px solid #777183; border-radius: 4px; }
.poe-gem-row { display: flex; align-items: center; gap: 7px; min-height: 26px; font-size: 13px; border-radius: 3px; }
.poe-gem-icon { width: 21px; height: 21px; object-fit: contain; flex: 0 0 21px; }
.poe-gem-name { color: #e0daef; overflow-wrap: anywhere; }
.poe-gem-row.is-support .poe-gem-name { color: #aba6c2; }
.poe-support-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.poe-gem-values { color: #aeabb8; font-size: 11px; white-space: nowrap; margin-left: auto; padding-left: 3px; }
.poe-item-tooltip { position: fixed; z-index: 10001; width: max-content; max-width: min(380px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; pointer-events: none; padding: 10px 12px; background: #0e0e15f5; color: #ccc; border: 1px solid #55515f; border-radius: 6px; font-size: 13px; line-height: 1.45; box-sizing: border-box; white-space: pre-line; overflow-wrap: anywhere; }
.poe-unique-item-image { display: block; width: auto; height: 100px; max-width: min(180px, 100%); max-height: 100px; object-fit: contain; margin: 0 auto 8px; }
.poe-unique-match + .poe-unique-match { border-top: 1px solid #393640; margin-top: 8px; padding-top: 8px; }
.poe-unique-slot { font-weight: 600; margin-bottom: 6px; }
.poe-item-title { font-weight: 600; }
.poe-item-property { margin-top: 3px; }
.poe-mod-group { margin-top: 7px; padding-top: 7px; border-top: 1px solid #393640; }
.poe-corrupted { color: #ef8888; }
.poe-rarity-normal { color: #ddd; }
.poe-rarity-magic { color: #8f9fff; }
.poe-rarity-rare { color: #e8d071; }
.poe-rarity-unique { color: #d58c54; }
.poe-rarity-gem { color: #65d4c6; }
.poe-gem-row:focus-visible, .poe-equipment-item:focus-visible, .poe-set-button:focus-visible { outline: 2px solid #b3a4e2; outline-offset: 2px; }
@media (max-width: 1300px) {
  .poe-gem-panel { grid-template-columns: minmax(0, 1fr); }
  .poe-gem-weapons { grid-column: auto; }
  .poe-gem-set { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .poe-inventory-content { display: flex; flex-direction: column; gap: 8px; height: calc(100dvh - 165px); }
  .poe-equipment-column { flex: 0 0 auto; max-height: 50dvh; }
  .poe-gem-panel { flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); }
  .poe-gem-set, .poe-gem-other { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #inventory-grid.poe-equipment { margin: 0 auto; }
}
@media (max-width: 900px) { .poe-inventory-header { display: flex; flex-wrap: wrap; gap: 8px; } .poe-inventory-header-left { flex-basis: 100%; } .poe-passive-capture { flex: 1; text-align: center; } }
@media (max-width: 600px) { #inventory-overlay.poe-inventory { padding: 8px; } .poe-inventory-wrapper { max-height: calc(100dvh - 16px); padding: 12px; } .poe-gem-panel, .poe-gem-set, .poe-gem-other { grid-template-columns: minmax(0, 1fr); } .poe-inventory-header { flex-wrap: wrap; gap: 8px; } .poe-inventory-heading .char-link { font-size: 16px; } }

.poe-passive-capture { grid-column: 2; color: #abaabb; font-size: 12px; font-weight: 400; }
