.pm-select { display: inline-flex; position: relative; min-width: 108px; max-width: 100%; vertical-align: middle; }
.pm-select__native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.pm-select__trigger { display: inline-flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--border-color,var(--pm-dashboard-border,#dce3ed)); border-radius: 8px; background: var(--bg-card,var(--pm-dashboard-card,#fff)); color: var(--text-main,var(--pm-dashboard-text,#1d2738)); font: inherit; font-size: .76rem; font-weight: 600; text-align: left; cursor: pointer; box-shadow: none; }
.pm-select__trigger:hover { border-color: #648cf2; }
.pm-select__trigger:focus-visible, .pm-select__trigger[aria-expanded='true'] { outline: 2px solid #648cf2; outline-offset: 2px; }
.pm-select__trigger:disabled { opacity: .55; cursor: wait; }
.pm-select__chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.pm-select__menu { position: fixed; z-index: 20000; display: flex; flex-direction: column; gap: 3px; max-height: min(260px,75vh); overflow: hidden; padding: 5px; border: 1px solid #dce3ed; border-radius: 10px; background: #fff; color: #1d2738; box-shadow: 0 12px 32px #0b14252b; font-size: .78rem; }
.pm-select__option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 10px; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pm-select__option[aria-selected='true'] { background: #edf3ff; color: #315fb8; font-weight: 700; }
.pm-select__option[aria-selected='true']::after { content: '✓'; }
.pm-select__option:hover, .pm-select__option:focus-visible { outline: none; background: #edf3ff; }
html[data-theme='dark'] .pm-select__menu { background: #1b2637; border-color: #35445d; color: #e8eef8; box-shadow: 0 14px 36px #0005; }
html[data-theme='dark'] .pm-select__option[aria-selected='true'], html[data-theme='dark'] .pm-select__option:hover, html[data-theme='dark'] .pm-select__option:focus-visible { background: #293c5b; color: #a9c6ff; }

.pm-select__options { display: grid; gap: 3px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pm-select__option[hidden], .pm-select__empty[hidden] { display: none; }
.pm-select__search { box-sizing: border-box; flex-shrink: 0; width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #dce3ed; border-radius: 6px; background: inherit; color: inherit; font: inherit; }
.pm-select__search:focus { outline: 2px solid #648cf2; outline-offset: -2px; }
.pm-select__empty { padding: 12px 10px; color: inherit; opacity: .75; }
.pm-select:has(> .inline-editor), .field > .pm-select, .field .select > .pm-select, .kv-edit > .pm-select { width: 100%; }
.pm-select__trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-select__chevron { flex-shrink: 0; }
html[data-theme='dark'] .pm-select__search { border-color: #35445d; }
