/* Official finite gray/white single-basic Down: native disabled vector owns 30% alpha. */
.ds-select--single-basic .ds-select__trigger:disabled .ds-select__arrow[src$="/icon-select-down.svg"] { content: url("icons/icon-select-down-disabled.svg"); opacity: 1; }

/* Native open-state Up owns its contour and Gray1 paint; no extra rotation. */
.ds-select--single-basic .ds-select__trigger[aria-expanded="true"]:not(:disabled) .ds-select__arrow[src$="/icon-select-down.svg"],
.ds-select--single-basic.ds-select--open .ds-select__trigger:not(:disabled) .ds-select__arrow[src$="/icon-select-down.svg"] { content: url("icons/icon-select-up.svg"); transform: none; }

/* Source115194 is an internal FRAME, not a Tag component instance.
   Select owns these removal controls; current Tag contracts/styles stay intact. */
button.ds-select__tag:not(.ds-tag) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: var(--spacing-sm);
  min-width: 0;
  max-width: 110px;
  height: 28px;
  box-sizing: border-box;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 0;
  border-radius: var(--border-radius-md);
  background: var(--color-gray-8);
  color: var(--color-gray-1);
  font-family: var(--font-family-base);
  font-size: var(--font-size-h8);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-h8);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.ds-select__control:not(.ds-select__control--white) button.ds-select__tag:not(.ds-tag) { background: var(--color-white); }
.ds-select__tag-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ds-select__tag-close {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  background: url("icons/icon-select-remove.svg") center / contain no-repeat;
}

/* Registered Multi gray Default/Hover uses the same official12x12 Down glyph.
   This opt-in is only a glyph part; Open/Disabled and other hosts retain their existing styles. */
.ds-select--multi-basic[data-select-source-multi-down="gray"]:not(.ds-select--open) .ds-select__control:not(.ds-select__control--white) .ds-select__trigger[aria-expanded="false"]:not(:disabled) .ds-select__arrow {
  content: url("icons/icon-select-down.svg");
}

/* Runtime hides the clear action when there is no selected value.
   Author display:grid must not override native hidden semantics. */
.ds-select__clear[hidden] { display: none; }

/* Native single-basic021318 & white-bordered single-radio/search: host allocates auto width; atom owns face and state. */
.ds-select.ds-select--single-basic[data-select-layout="fill"],
.ds-select.ds-select--single-radio[data-select-layout="fill"],
.ds-select.ds-select--search[data-select-layout="fill"],
.ds-select.ds-select--multi-checkbox[data-select-layout="fill"] { width:100%; min-width:0; }

/* Finite MG Input-face adapter: host retains flex layout and button cursor. */
.ds-select[data-input-adapter="select-trigger"] > .ds-select__trigger{display:flex;align-items:center;cursor:pointer}
/* Current MG declared panel caps; actual available space is owned by runtime. */
.ds-select__panel{max-height:var(--select-panel-available-height,232px)}
.ds-select__list{min-height:0}
.ds-select--two-column .ds-select__list{max-height:428px}

/* The multi-value host allocates content and actions; Input still owns face paint. */
.ds-select[data-input-adapter="select-trigger"] > .ds-select__control.ds-input-field__input{display:flex;align-items:center;min-height:42px;height:auto;cursor:pointer}

/* Preserve the existing native combobox keyboard indicator over shared face reset. */
.ds-select[data-input-adapter="select-trigger"] .ds-select__trigger:focus-visible{outline:2px solid var(--border-color-focus);outline-offset:2px}
