.storage-modal:not(.npc-service-modal) {
  width: min(920px, calc(var(--safe-vw) * .95)) !important;
  max-height: calc(var(--safe-dvh) * .88) !important;
  padding: 16px 20px !important;
  display: flex;
  flex-direction: column;
}

.storage-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(200, 153, 72, 0.3);
  padding-bottom: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.storage-title-block .eyebrow {
  margin: 0 0 2px 0;
  font-size: 9px;
  letter-spacing: 1px;
}

.storage-title-block h2 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 20px;
}

.storage-close-btn {
  padding: 6px 14px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
  width: auto !important;
  align-self: center;
}

.storage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); color: #f1c66f; font-size: 11px; flex-shrink: 0; }
#storage-expand-actions { display: flex; gap: 6px; }
#storage-expand-actions button { min-height: 30px; padding: 4px 8px; font-size: 9px; }
.storage-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; min-height: 0; }
.storage-panel { min-width: 0; min-height: 240px; max-height: calc(var(--safe-dvh) * .48); overflow-y: auto; padding: 4px 10px 10px; }
.storage-panel + .storage-panel { border-left: 1px solid var(--rule); }
.storage-panel.drag-over { border-color: #f1c66f; box-shadow: inset 0 0 18px rgba(241,198,111,.12); }
.storage-panel h3 { margin: 0; color: #fff0c9; font-size: 13px; }
.storage-owner { min-height: 14px; margin: 3px 0 9px; color: #8f876f; font-size: 9px; }
.storage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; align-content: start; }
.storage-item { min-width: 0; min-height: 104px; padding: 7px; display: flex; flex-direction: column; gap: 4px; background: var(--row); border: 1px solid transparent; cursor: grab; }
.storage-item[data-rarity="rare"] { border-color: #3c79b8; }
.storage-item[data-rarity="epic"] { border-color: #8d55c7; }
.storage-item[data-rarity="legendary"] { border-color: #d58b2d; }
.storage-item-head { display: flex; gap: 6px; align-items: center; min-width: 0; }
.storage-item img, .storage-item-icon { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; display: grid; place-items: center; color: #f1c66f; background: rgba(0, 0, 0, 0.25); }
.storage-item strong { min-width: 0; color: #f4e8c9; font-size: 10px; overflow-wrap: anywhere; }
.storage-item small { color: #9f9683; font-size: 8px; line-height: 1.35; }
.storage-item button { width: 100%; min-height: 29px; margin-top: auto; padding: 4px; font-size: 8px; }
.storage-empty { grid-column: 1 / -1; color: #8f876f; font-size: 10px; text-align: center; padding: 30px 8px; }
.storage-hint { margin-top: 10px; }
@media (max-width: 1000px) {
  .storage-panels { grid-template-columns: 1fr; }
  .storage-panel { min-height: 220px; }
  .storage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storage-toolbar { align-items: flex-start; flex-direction: column; }
}
