fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#settings > label,
#settings > div > label {
  display: block;
  margin: 20px 0 8px;
}
#settings input:not([type="checkbox"]),
#settings textarea,
#settings select {
  width: 100%;
  box-sizing: border-box;
  background: #0c0619;
  color: #fff;
  border: 1px solid #61309b;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  color-scheme: dark;
}
#settings h2 {
  font-size: 24px;
  margin: 30px 0 14px;
}
#settings h2:first-child {
  margin-top: 0;
}
#settings p,
.create-summary p {
  color: #c1b1d4;
  font-size: 14px;
  line-height: 1.6;
}
#settings:disabled {
  opacity: 0.55;
}
.pack-option {
  display: grid;
  grid-template-columns: 34px 1fr 88px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #3c215a;
}
/* The booster in the colour of its price range (client/pack-tier.mjs). */
.pack-option-art {
  width: 34px;
  height: auto;
  filter: var(--pack-tint, hue-rotate(0deg)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7));
}
.pack-option:has(input:disabled) .pack-option-art {
  opacity: 0.45;
}
/* Quantity arrows always shown, not only on hover. */
#settings input[type="number"]::-webkit-inner-spin-button,
#settings input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}
/* The dropdown arrow drawn with room on its right. */
#settings select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23c1b1d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}
.pack-option small {
  display: block;
  color: #c1b1d4;
  margin-top: 6px;
}
.cover-previews {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.cover-previews img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
.cover-previews img + img {
  aspect-ratio: 4 / 3;
}
#summary {
  white-space: pre-line;
  line-height: 1.7;
  margin: 20px 0;
}
#draft-list > div,
#pool-list > div {
  padding: 16px;
  border-bottom: 1px solid #3c215a;
  overflow-wrap: anywhere;
}
.create-summary {
  align-self: start;
}
#settings input:disabled {
  opacity: 0.5;
}
#pool-list p {
  margin: 8px 0;
}
#pool-title {
  font-weight: bold;
}
@media (max-width: 700px) {
  .create-layout {
    display: block;
  }
  .create-summary {
    margin-top: 20px;
  }
}
.create-summary #create {
  display: block;
  width: 100%;
  margin: 18px 0;
}
.create-summary {
  position: sticky;
  top: 100px;
}
@media (max-width: 700px) {
  .create-summary {
    position: static;
  }
}

/* Draft and pool history: sections are separated, rows align with the headings. */
.pool-history h2:not(:first-child) {
  margin-top: var(--space-8);
}
#draft-list > div,
#pool-list > div {
  padding: var(--space-4) 0;
}
#pool-list p {
  margin: var(--space-2) 0 0;
}
