#inventory-ui{
  display: none;
}

.inv-open{
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 12px;
}

.modal-overlay.is-open{
  display: flex;
}

.modal{
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: hidden;

  background: #151515;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal-close{
  cursor:pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.modal-body{
  padding: 12px;
  overflow: auto;
  max-height: calc(90vh - 54px);
}
