.mp-native-select {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.mp-dropdown {
  position: relative;
  min-width: 0;
}

.mp-trigger,
.mp-option,
.mp-reset,
.mp-ghost-action {
  border: 1px solid var(--border-strong, var(--line-strong, #343a46));
  background: var(--surface-low, #0f1218);
  color: var(--page-text, var(--text, #f4f5f7));
  cursor: pointer;
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.mp-trigger {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: var(--mp-trigger-height, 44px);
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 11px;
  text-align: left;
}

.mp-trigger__icon,
.mp-trigger__chevron,
.mp-option .material-symbols-outlined,
.mp-reset .material-symbols-outlined {
  font-size: 18px;
}

.mp-trigger__icon,
.mp-trigger__chevron {
  color: var(--muted, #aeb4c0);
}

.mp-trigger__value {
  overflow: hidden;
  min-width: 0;
  color: var(--page-text, var(--text, #f4f5f7));
  font-size: var(--mp-control-size, inherit);
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-trigger__chevron {
  margin-left: auto;
}

.mp-trigger:hover,
.mp-trigger:focus-visible,
.mp-trigger[aria-expanded="true"] {
  border-color: var(--accent, #7fc5c1);
  outline: none;
}

.mp-trigger:hover .mp-trigger__icon,
.mp-trigger:focus-visible .mp-trigger__icon,
.mp-trigger[aria-expanded="true"] .mp-trigger__icon {
  color: var(--accent, #7fc5c1);
}

.mp-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #7fc5c1) 14%, transparent);
}

.mp-menu {
  position: absolute;
  z-index: 2000;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  width: min(330px, calc(100vw - 48px));
  gap: 8px;
  border: 1px solid var(--border-strong, var(--line-strong, #343a46));
  border-radius: 8px;
  background: var(--surface, #12151b);
  padding: 6px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.mp-menu[hidden] {
  display: none;
}

.mp-menu--right {
  right: 0;
  left: auto;
}

.mp-menu--up {
  top: auto;
  bottom: calc(100% + 7px);
}

.mp-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 10px;
  color: var(--page-text, var(--text, #f4f5f7));
  font-size: var(--mp-option-size, 13px);
  font-weight: 700;
  text-align: left;
}

.mp-option__check {
  color: var(--accent, #7fc5c1);
  opacity: 0;
}

.mp-option__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-option:hover,
.mp-option:focus-visible {
  color: var(--accent, #7fc5c1);
  outline: none;
}

.mp-option[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent, #7fc5c1) 8%, transparent);
  color: var(--page-text, var(--text, #f4f5f7));
}

.mp-option[aria-pressed="true"] .mp-option__check {
  opacity: 1;
}

.mp-option__meta {
  color: var(--quiet, #7f8794);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  font-weight: 700;
}

.mp-menu__footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border, var(--line, #252a33));
  padding-top: 9px;
}

.mp-reset,
.mp-ghost-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  border-color: transparent;
  background: transparent;
  padding: 0 8px;
  color: var(--muted, #aeb4c0);
  font-size: 12px;
  font-weight: 730;
}

.mp-reset:hover,
.mp-reset:focus-visible,
.mp-ghost-action:hover,
.mp-ghost-action:focus-visible {
  border-color: var(--accent, #7fc5c1);
  color: var(--page-text, var(--text, #f4f5f7));
  outline: none;
}

.toolbar-field .mp-dropdown,
.case-structure-filter .mp-dropdown {
  flex: 1;
  width: 100%;
}

.toolbar-field .mp-trigger,
.case-structure-filter .mp-trigger {
  min-height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.toolbar-field .mp-trigger[aria-expanded="true"],
.case-structure-filter .mp-trigger[aria-expanded="true"] {
  box-shadow: none;
}

.toolbar-field:focus-within,
.case-structure-filter:focus-within,
.toolbar-field:has(.mp-trigger[aria-expanded="true"]),
.case-structure-filter:has(.mp-trigger[aria-expanded="true"]) {
  border-color: var(--accent, #7fc5c1);
}

.case-structure-filter:has(.mp-dropdown)::after {
  display: none;
}

.setting-control .mp-dropdown {
  width: 100%;
}

.setting-control .mp-trigger {
  min-height: var(--settings-control-min-height, 46px);
  font-size: var(--control-size, 15px);
}

@media (max-width: 620px) {
  .mp-menu,
  .mp-menu--right {
    right: auto;
    left: 0;
  }
}
