select.choice-native {
  display: none !important;
}
.choice-field,
.choice-control {
  min-width: 0;
}
.choice-field {
  display: grid;
  gap: 8px;
}
.choice-control {
  color: #eee4f5;
  font-family: var(--sans, system-ui, sans-serif);
}
.choice-control [hidden],
.choice-control[hidden] {
  display: none !important;
}
.choice-groups {
  display: grid;
  gap: 13px;
}
.choice-group {
  min-width: 0;
}
.choice-group-title {
  margin: 0 0 7px;
  color: #cabbd7;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.choice-control .choice-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #5b4b6c;
  border-radius: 8px;
  background: #292230;
  color: #e7ddeb;
  font: 550 12px/1.4 var(--sans, system-ui, sans-serif);
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}
.choice-control .choice-button:hover:not(:disabled) {
  border-color: #b092ce;
  background: #3a2c46;
  color: #fff4ff;
}
.choice-control .choice-button[aria-pressed="true"] {
  border-color: #d6bcf0;
  background: #c7aae9;
  color: #24172e;
  font-weight: 700;
}
.choice-control .choice-button[aria-pressed="true"]::before {
  content: "✓";
  flex: 0 0 auto;
  font-size: 15px;
}
.choice-control .choice-button:disabled {
  opacity: .42;
  cursor: default;
}
.choice-control .choice-button:focus-visible,
.choice-control .choice-search:focus-visible,
.choice-control .choice-clear:focus-visible {
  outline: 2px solid #e5c6ff;
  outline-offset: 3px;
}
.choice-large .choice-groups {
  max-height: 310px;
  max-height: min(43dvh, 310px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #85659f #211b28;
  padding: 4px 7px 5px 4px;
  border: 1px solid #403448;
  border-radius: 7px;
  background: #17131d;
}
.choice-large .choice-group {
  padding: 4px;
}
.choice-large .choice-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}
.choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  line-height: 1;
}
.choice-icon svg { display: block; width: 100%; height: 100%; }
.choice-label { min-width: 0; }
.choice-large .choice-button {
  justify-content: flex-start;
  text-align: left;
  font-weight: 500;
}
.choice-search-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.choice-control .choice-search {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #5b4b6c;
  border-radius: 7px;
  color: #f0e8f5;
  background: #17131d;
  font: 16px/1.35 var(--sans, system-ui, sans-serif);
}
.choice-control .choice-search::placeholder { color: #af9fbe; }
.choice-control .choice-clear {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #5b4b6c;
  border-radius: 7px;
  background: #302638;
  color: #e9def1;
  font: 550 12px/1.3 var(--sans, system-ui, sans-serif);
  cursor: pointer;
}
.choice-control .choice-current {
  margin: 8px 0;
  color: #d6c5e5;
  font: 500 12px/1.5 var(--sans, system-ui, sans-serif);
  overflow-wrap: anywhere;
}
.choice-control .choice-empty {
  margin: 8px 0;
  padding: 12px;
  border: 1px dashed #665274;
  border-radius: 7px;
  color: #d8c7e4;
  font: 13px/1.5 var(--sans, system-ui, sans-serif);
}
.choice-results {
  display: block;
  margin-top: 6px;
  color: #b5a4c1;
  font: 11px/1.4 var(--sans, system-ui, sans-serif);
}
@media (max-width: 540px) {
  .choice-large .choice-options {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  }
  .choice-control .choice-button { padding: 7px 9px; }
}
