/* Shared field controls: the drawer stays in the panel's scroll flow. */
[data-choice-label] { min-width: 0; width: 100%; }
[data-choice-label] > select[hidden] { display: none !important; }
.choice-trigger {
  --choice-accent: #a7d4c8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #64817e;
  border-inline-start: 3px solid var(--choice-accent);
  border-radius: 2px 10px 2px 10px;
  background: linear-gradient(112deg, #2d4749, #142630 80%);
  color: #eff6e7;
  font: 750 13px/1.25 var(--mono);
  letter-spacing: .015em;
  text-align: left;
  cursor: pointer;
}
.choice-current { min-width: 0; overflow-wrap: anywhere; }
.choice-chevron {
  display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px;
  border: 1px solid #72958d; border-radius: 2px 5px 2px 5px; color: #d1f4c0;
  background: #101d25; font: 850 19px/1 system-ui, sans-serif;
  transition: transform .12s ease;
}
.choice-trigger[aria-expanded='true'] { border-color: #c3eda4; background: linear-gradient(112deg, #3d5546, #203739); }
.choice-trigger[aria-expanded='true'] .choice-chevron { transform: rotate(180deg); }
.choice-trigger:hover:not(:disabled) { border-color: #b7dfca; }
.choice-trigger:disabled { color: #aebeb8; border-color: #52635f; cursor: default; }
.choice-options {
  display: grid; gap: 5px;
  max-height: min(252px, 35dvh);
  margin-top: 6px; padding: 7px;
  overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #83947c; border-top: 2px solid #c0d99c;
  border-radius: 2px 10px 2px 10px;
  background: linear-gradient(145deg, #253833, #101e27 84%);
  box-shadow: inset 0 1px #d3e9b51a;
  scrollbar-width: thin; scrollbar-color: #849d85 #16282b;
}
.choice-options[hidden] { display: none; }
.choice-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px; padding: 8px 9px;
  border: 1px solid #4d6968; border-radius: 2px 6px 2px 6px;
  background: linear-gradient(115deg, #283e40, #172a33);
  color: #e9f0e6; font: 650 12px/1.3 system-ui, sans-serif;
  text-align: left; letter-spacing: 0; cursor: pointer;
}
.choice-option-name { min-width: 0; overflow-wrap: anywhere; }
.choice-option-state { flex: none; color: #abcbb6; font: 800 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.choice-option[aria-selected='true'] { border-color: #c3eaa0; border-inline-start: 3px solid #c3eaa0; background: linear-gradient(105deg, #435b41, #223b37); }
.choice-option[aria-selected='true'] .choice-option-state { color: #e6ffbe; }
.choice-option:disabled { color: #a6b1b0; border-color: #435655; background: #1b292e; cursor: default; }
.choice-option:disabled .choice-option-state { color: #c5b49a; }
.choice-trigger:is(:focus-visible,[data-pad-focus]), .choice-option:is(:focus-visible,[data-pad-focus]) { outline: 3px solid #e5f7ae; outline-offset: 2px; }
#classic-danger-options { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; }
#classic-danger-choice .choice-current,
#classic-danger-options .choice-option-name { font: 750 14px/1.25 system-ui, sans-serif; }
#classic-danger-choice .choice-current { font-size: 16px; }
#classic-danger-choice .choice-detail,
#classic-danger-options .choice-detail { display: block; margin-top: 3px; color: #b9d0c7; font: 650 11px/1.2 var(--mono); }
#classic-danger-options .choice-option { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 6px; }
#classic-danger-options .choice-option:disabled { opacity: 1; }
#classic-danger-options .choice-option:disabled .choice-option-state {
  font: 650 11px/1.25 system-ui, sans-serif; letter-spacing: 0; text-transform: none;
}
#supply [data-choice-label] { --choice-accent: #edc38e; }
#supply .choice-trigger { --choice-accent: #edc38e; border-color: #8b7054; background: linear-gradient(115deg, #49382a, #1a292d); }
#supply .choice-options { border-color: #967e5c; border-top-color: #e1be83; background: linear-gradient(145deg, #3c3227, #14252a); }
#confirm .choice-trigger { margin-top: 5px; font: 700 13px/1.3 system-ui,sans-serif; text-transform: none; }
#confirm .choice-options { max-height: min(210px, 30dvh); }
@media (max-width: 420px) {
  .choice-trigger { padding-inline: 9px; font-size: 12px; }
  .choice-option { gap: 6px; }
  .choice-option-state { font-size: 8px; }
}
