/* Packages need the full property canvas, rather than the narrow label column. */
html body .inline-rule-editor__property-row.starting-equipment-property{grid-column:1/-1;grid-template-columns:24px minmax(0,1fr)!important;align-items:start;width:100%;min-width:0}
html body .starting-equipment-editor{min-width:0;width:100%;font-family:var(--font-reading,"Source Sans 3",sans-serif)}
.starting-equipment-property summary { display: list-item; font-weight: normal; cursor: pointer; }
html body .starting-equipment-editor>p{max-width:80ch;color:var(--text-muted);line-height:1.5;margin:8px 0 18px}
html body .starting-equipment-package{min-width:0;width:100%;border:1px solid var(--line-main,#ded7c8);border-radius:9px;padding:20px;margin:16px 0;background:var(--surface-card)}
html body .starting-equipment-package>label,html body .starting-equipment-package [data-choice]>label{display:grid;gap:8px;margin:0 0 18px;font-weight:600}
html body .starting-equipment-editor :is(input[data-package-name],input[data-choice-label],input[data-coin]){box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--line-main)!important;border-radius:6px;padding:9px 12px!important;background:var(--surface-input)!important;color:var(--text-main)!important;font:inherit;box-shadow:none}
html body .starting-equipment-editor .rule-reference-picker{min-width:0;width:100%;margin:16px 0}
html body .starting-equipment-editor .rule-reference-picker__control{min-width:0;width:100%;padding:10px 12px;border:1px solid var(--line-main);border-radius:6px;background:var(--surface-input)}
html body .starting-equipment-editor .rule-reference-picker__selected{display:flex;flex-wrap:wrap;gap:8px}
html body .starting-equipment-editor .rule-reference-picker__pill{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 9px}
html body .starting-equipment-editor .rule-reference-picker__pill label{display:inline-flex;align-items:center;gap:5px;margin:0;font-size:12px;white-space:nowrap}
html body .starting-equipment-editor .rule-reference-picker__pill input[type=number]{width:56px!important;min-width:0!important;height:auto!important;padding:4px 6px!important;border:1px solid var(--line-main);border-radius:4px}
html body .starting-equipment-editor .rule-reference-picker__control>input[type=search]{min-width:140px;flex:1;border:0!important;box-shadow:none;padding:6px!important;font:inherit}
html body .starting-equipment-coins{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:20px 0}
html body .starting-equipment-coins label{display:grid;gap:6px;margin:0;font-weight:600}
html body .starting-equipment-editor [data-choice]{min-width:0;padding:16px;margin:16px 0;border:1px solid var(--line-main);border-radius:7px;background:var(--surface-soft)}
html body .starting-equipment-editor button{font:400 14px var(--font-reading,"Source Sans 3",sans-serif);padding:8px 14px;border:1px solid var(--accent-gold);border-radius:6px;background:#15314d;color:#fff7e7;margin:4px 8px 4px 0;cursor:pointer}
html body .starting-equipment-editor .rule-reference-picker__pill>button{padding:0;border:0;background:transparent;color:inherit;margin:0}
html body .starting-equipment-editor .rule-reference-picker__menu button{background:var(--surface-card);color:var(--text-main);border-color:var(--line-main);text-align:left}
@media(max-width:600px){html body .starting-equipment-coins{grid-template-columns:repeat(2,minmax(0,1fr))}html body .starting-equipment-package{padding:14px}}

.spell-choice-editor__summary:not(:empty) {
  margin-inline-start: .65rem;
  color: var(--text-muted);
}

html body .spell-choice-editor__group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}

.spell-choice-editor__group > legend,
.spell-choice-editor__options > legend {
  padding-inline: .4rem;
  font-weight: 600;
}

html body .spell-choice-editor__group > .spell-choice-editor__field {
  align-content: start;
  min-width: 0;
  margin: 0;
}

html body .spell-choice-editor :is(.spell-choice-editor__field > input, .spell-choice-editor__search, .spell-choice-editor__field > select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line-main);
  border-radius: 6px;
  background-color: var(--surface-input);
  color: var(--text-main);
  font: inherit;
}

html body .spell-choice-editor :is(.spell-choice-editor__field > input, .spell-choice-editor__search) {
  padding: 9px 12px;
}

.spell-choice-editor__group > :is(.spell-choice-editor__options, .spell-choice-editor__search, .spell-choice-editor__spell-list, .spell-choice-editor__actions) {
  grid-column: 1 / -1;
}

.spell-choice-editor__options {
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line-main);
  border-radius: 6px;
}

.spell-choice-editor__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html body .spell-choice-editor :is(.spell-choice-editor__check, .spell-choice-editor__option) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

html body .spell-choice-editor .spell-choice-editor__option {
  padding: 4px 9px;
  border: 1px solid var(--line-main);
  border-radius: 6px;
  background: var(--surface-input);
}

html body .spell-choice-editor .spell-choice-editor__option:has(input:checked) {
  background: var(--surface-soft);
  font-weight: 600;
}

.spell-choice-editor input[type="checkbox"] {
  margin: 0;
  accent-color: #15314d;
}

html body .spell-choice-editor .spell-choice-editor__option[hidden] {
  display: none;
}

.spell-choice-editor__spell-list {
  max-height: 15rem;
  overflow: auto;
}
