#weighted-options {
  box-sizing: border-box;
  min-width: 0;
  color: var(--randopolis-text);
  overflow-wrap: anywhere;
}

#weighted-options form,
#weighted-options form > div,
#weighted-options details,
#weighted-options .option-wrapper {
  min-width: 0;
  max-width: 100%;
}

#weighted-options #weighted-options-header h1 {
  margin: 0;
  padding: 0;
}

#weighted-options #weighted-options-header h1 + h1 {
  margin: 0.3rem 0 1.25rem;
  color: var(--randopolis-muted);
  font: 500 clamp(1.1rem, 2.3vw, 1.45rem)/1.35 LexendDeca-Medium, sans-serif;
}

#weighted-options .options-intro {
  margin-bottom: 1.5rem;
}

#weighted-options .js-warning-banner,
#weighted-options #user-message {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--randopolis-gold);
  border-radius: 8px;
  background: #342a3d;
  color: var(--randopolis-text);
  text-align: center;
}

#weighted-options #user-message {
  display: none;
}

#weighted-options #user-message.visible {
  display: block;
  cursor: pointer;
}

#weighted-options details {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem 0.9rem;
  border: 1px solid var(--randopolis-border);
  border-radius: 10px;
  background: #171529;
}

#weighted-options details > summary {
  padding: 0.15rem 0.1rem 0.55rem;
  color: var(--randopolis-gold);
  font: 500 1.15rem/1.4 Cinzel, Georgia, serif;
  cursor: pointer;
  user-select: none;
}

#weighted-options details > summary::marker {
  color: var(--randopolis-gold);
}

#weighted-options .option-wrapper {
  margin: 0;
  padding: 1rem 0.2rem 1.3rem;
  border-bottom: 1px solid var(--randopolis-border);
}

#weighted-options .option-wrapper:last-child {
  border-bottom: 0;
}

#weighted-options .option-wrapper h4 {
  margin: 0 0 0.45rem;
  color: var(--randopolis-gold);
  font: 500 1.05rem/1.4 LexendDeca-Medium, sans-serif;
  overflow-wrap: anywhere;
}

#weighted-options .option-description {
  margin: 0 0 0.8rem;
  color: var(--randopolis-muted);
  font-size: 0.95rem;
}

#weighted-options .hint-text {
  margin: 0 0 0.75rem;
  color: var(--randopolis-muted);
  font-size: 0.92rem;
}

#weighted-options .hint-text ul {
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
}

#weighted-options .add-option-div,
#weighted-options .custom-value-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0.6rem 0;
}

#weighted-options input:not([type]),
#weighted-options input[type="text"],
#weighted-options input[type="number"],
#weighted-options select {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--randopolis-border);
  border-radius: 6px;
  background: var(--randopolis-ink);
  color: var(--randopolis-text);
  font: inherit;
}

#weighted-options .add-option-div input[type="number"] {
  flex: 0 1 8rem;
}

#weighted-options .custom-value-wrapper input[type="text"] {
  flex: 1 1 10rem;
}

#weighted-options .add-option-div button,
#weighted-options .custom-value-wrapper button {
  flex: 0 0 auto;
  min-height: 2.3rem;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid #e4bb78;
  border-radius: 6px;
  background: #28233e;
  color: var(--randopolis-gold);
  font: 500 0.9rem LexendDeca-Medium, sans-serif;
  cursor: pointer;
}

#weighted-options .add-option-div button:hover,
#weighted-options .custom-value-wrapper button:hover {
  background: #3a304d;
}

#weighted-options table {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0.5rem 0 1.2rem;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--randopolis-text);
}

#weighted-options table th,
#weighted-options table td {
  min-width: 0;
  padding: 0.35rem 0.3rem;
  border: 0;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

#weighted-options table tr + tr td {
  border-top: 1px solid #51406080;
}

#weighted-options table .td-left {
  width: 31%;
  padding-right: 0.45rem;
  font-family: LexendDeca-Medium, sans-serif;
  text-align: start;
}

#weighted-options table .td-left label {
  display: block;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

#weighted-options table .td-middle {
  padding-right: 0.4rem;
}

#weighted-options table .td-middle input[type="range"] {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  accent-color: var(--randopolis-gold);
}

#weighted-options table .td-right {
  width: 2.5rem;
  color: var(--randopolis-muted);
  text-align: right;
  white-space: nowrap;
}

#weighted-options table td:last-child {
  width: 2rem;
  text-align: center;
}

#weighted-options .range-option-delete {
  display: inline-block;
  padding: 0.2rem;
  color: var(--randopolis-gold);
  cursor: pointer;
}

#weighted-options .set-container,
#weighted-options .dict-container,
#weighted-options .list-container {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 15rem;
  overflow: auto;
  margin-top: 0.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--randopolis-border);
  border-radius: 6px;
  background: var(--randopolis-ink);
  color: var(--randopolis-text);
}

#weighted-options .set-container .divider,
#weighted-options .dict-container .divider,
#weighted-options .list-container .divider,
#weighted-options .set-container .set-divider {
  flex: 0 0 1px;
  width: 100%;
  margin: 0.3rem 0;
  background: var(--randopolis-border);
}

#weighted-options .set-entry,
#weighted-options .dict-entry,
#weighted-options .list-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.2rem 0;
  line-height: 1.35;
  user-select: none;
}

#weighted-options .set-entry:hover,
#weighted-options .dict-entry:hover,
#weighted-options .list-entry:hover {
  background: #ffffff0d;
}

#weighted-options .set-entry input[type="checkbox"],
#weighted-options .dict-entry input[type="checkbox"],
#weighted-options .list-entry input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.25rem;
  accent-color: var(--randopolis-gold);
}

#weighted-options .dict-entry input[type="number"] {
  flex: 0 0 2.6rem;
  width: 2.6rem;
  padding: 0.15rem;
  text-align: center;
  appearance: textfield;
}

#weighted-options .dict-entry input[type="number"]::-webkit-outer-spin-button,
#weighted-options .dict-entry input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#weighted-options .set-entry label,
#weighted-options .dict-entry label,
#weighted-options .list-entry label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

#weighted-options .unsupported-option {
  margin-top: 0.5rem;
  color: var(--randopolis-muted);
  font-style: italic;
}

#weighted-options .invisible,
#weighted-options .hidden {
  display: none;
}

#weighted-options #weighted-options-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

#weighted-options #weighted-options-button-row input[type="submit"] {
  flex: 1 1 14rem;
  max-width: 100%;
  border: 1px solid #e4bb78;
  background: var(--randopolis-gold);
  color: var(--randopolis-ink);
  font-family: LexendDeca-Medium, sans-serif;
}

@media (max-width: 620px) {
  #weighted-options details {
    padding: 0.65rem;
  }

  #weighted-options .option-wrapper {
    padding-right: 0;
    padding-left: 0;
  }

  #weighted-options table .td-left {
    width: 30%;
  }

  #weighted-options table .td-right {
    width: 2.25rem;
  }

  #weighted-options table td:last-child {
    width: 1.8rem;
  }

  #weighted-options #weighted-options-button-row {
    flex-direction: column;
  }

  #weighted-options #weighted-options-button-row input[type="submit"] {
    flex-basis: auto;
    width: 100%;
  }
}

/*# sourceMappingURL=weightedOptions.css.map */
