.section {
  margin-top: 0.75rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.3);
}

.slotCounter {
  font-size: 0.8rem;
  font-weight: 600;
}

.slotCounter.normal {
  color: var(--hp);
}
.slotCounter.warning {
  color: var(--warning);
}
.slotCounter.over {
  color: var(--danger);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.tableHeader {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.2);
  letter-spacing: 0.05em;
}

.right {
  text-align: right;
}
.center {
  text-align: center;
}

.row {
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.06);
}

.row:hover {
  background: rgba(var(--gold-rgb), 0.06);
}

.cell {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  vertical-align: middle;
}

.itemName {
  font-weight: 600;
}

.removeBtn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.1rem 0.3rem;
}

.removeBtn:hover {
  color: var(--danger);
}

.addArea {
  margin-top: 0.5rem;
}

.addBtn {
  padding: 0.4rem 0.75rem;
  background: var(--btn-gold-bg);
  color: var(--btn-active-text);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow:
    0 2px 4px rgba(var(--shadow-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 1px rgba(var(--shadow-rgb), 0.2);
}

.addBtn:hover {
  background: linear-gradient(
    180deg,
    var(--gold-bright),
    var(--gold-hover) 40%,
    var(--gold)
  );
}

.cancelBtn {
  padding: 0.4rem 0.75rem;
  background: var(--bg-inset);
  color: var(--text-secondary);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
}

.customForm {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.customInput {
  flex: 1;
  padding: 0.4rem 0.6rem;
  background: var(--bg-inset);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: "Alegreya", Georgia, serif;
}

.customInput:focus {
  outline: none;
  border-color: var(--gold);
}

.customSelect {
  padding: 0.4rem 0.6rem;
  background: var(--bg-inset);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: "Alegreya", Georgia, serif;
}

.empty {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
  padding: 0.5rem;
}
