.bi-inventory {
  --bi-purple: #7138c6;
  --bi-purple-dark: #55249d;
  --bi-border: #e5dff0;
  --bi-muted: #625b70;
  color: #241b32;
  font-family: inherit;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 1120px;
  margin: 0 auto;
}

.bi-inventory,
.bi-inventory * {
  box-sizing: border-box;
}

.bi-inventory h2,
.bi-inventory h3,
.bi-inventory h4,
.bi-inventory p {
  margin: 0;
}

.bi-inventory-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

.bi-inventory-muted {
  color: var(--bi-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bi-inventory-market {
  justify-self: start;
  padding: 7px 12px;
  background: #f1eafa;
  color: var(--bi-purple-dark);
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
}

.bi-inventory-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
}

.bi-inventory-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f5fc;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.bi-inventory-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  height: 30px;
  background: var(--bi-purple);
  color: white;
  border-radius: 50%;
}

.bi-inventory-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--bi-border);
  background: white;
  border-radius: 16px;
  min-width: 0;
}

.bi-inventory-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bi-inventory-download {
  border: 1px solid var(--bi-border);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}

.bi-inventory button {
  font: inherit;
  min-height: 44px;
  cursor: pointer;
  border-radius: 10px;
}

.bi-inventory button:disabled,
.bi-inventory input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.bi-inventory button:focus-visible,
.bi-inventory input:focus-visible {
  outline: 3px solid #b99be9;
  outline-offset: 3px;
}

.bi-inventory-download-button {
  display: block;
  text-align: left;
  width: 100%;
  color: var(--bi-purple-dark);
  font-weight: 700 !important;
  background: transparent;
  border: 0;
  padding: 0;
}

.bi-inventory-drop {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 26px 16px;
  background: #faf8fd;
  border: 2px dashed #c9b5e7;
  border-radius: 14px;
  min-width: 0;
}

.bi-inventory-drag {
  background: #efe6fc;
  border-color: var(--bi-purple);
}

.bi-inventory-file-input {
  max-width: 100%;
  font: inherit;
  font-size: 14px;
}

.bi-inventory-file-label {
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 14px;
}

.bi-inventory-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bi-inventory-primary {
  color: white;
  background: var(--bi-purple);
  border: 1px solid var(--bi-purple);
  padding: 10px 20px;
  font-weight: 700 !important;
}

.bi-inventory-secondary {
  color: var(--bi-purple-dark);
  background: white;
  border: 1px solid var(--bi-border);
  padding: 10px 20px;
}

.bi-inventory-notice,
.bi-inventory-status {
  padding: 12px;
  border-radius: 10px;
  background: #f7f4fb;
  color: #514464;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.bi-inventory-planned {
  color: var(--bi-muted);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .bi-inventory-card {
    padding: 16px;
  }

  .bi-inventory-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bi-inventory-download-grid {
    grid-template-columns: 1fr;
  }

  .bi-inventory-actions {
    flex-direction: column;
  }

  .bi-inventory-actions button {
    width: 100%;
  }

  .bi-inventory-drop {
    padding: 20px 12px;
  }
}
