.mk-select { position: relative; min-width: 0; }
.mk-select [hidden] { display: none !important; }
.mk-select-trigger {
  position: relative;
  display: block;
  max-width: 100%;
  padding-right: 32px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  cursor: pointer;
}
.mk-select-trigger::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% - 5px);
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.mk-select-trigger[aria-expanded=true]::after { top: calc(50% - 2px); transform: rotate(225deg); }
.mk-select-trigger:disabled { cursor: default; opacity: .6; }
.mk-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  width: max-content;
  max-width: min(320px, 90vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  margin: 0;
  border: 1px solid var(--mk-color-border-subtle, #dcdce0);
  border-radius: var(--mk-radius-control, 6px);
  background: var(--mk-color-bg-surface, #fff);
  color: var(--mk-color-fg-primary, #202024);
  box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
  font: inherit;
  list-style: none;
}
.mk-select-options.opens-up { top: auto; bottom: calc(100% + 4px); }
.mk-select-options li {
  position: relative;
  padding: 9px 28px 9px 9px;
  border-radius: 3px;
  cursor: pointer;
}
.mk-select-options li[aria-selected=true] { font-weight: 650; background: var(--mk-color-bg-subtle, #f1f1f2); }
.mk-select-options li.is-active { background: var(--mk-color-bg-plate, #e4e4e7); }
.mk-select-options li[aria-selected=true]::after { position: absolute; right: 8px; content: "✓"; }
.mk-select-options li[aria-disabled=true] { cursor: default; color: var(--mk-color-fg-secondary, #5e5e65); opacity: .65; }
@media (hover: hover) {
  :where(body:not(.app-screen)) {
  .mk-select-options li:not([aria-disabled]):hover { background: var(--mk-color-bg-subtle, #f1f1f2); }
  }
}
.mk-select-options li:not([aria-disabled]):active, .mk-select-trigger:enabled:active {
  background: var(--mk-color-bg-plate, #e4e4e7);
}
