.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.custom-select {
  position: relative;
  width: 100%;
  isolation: isolate;
  min-width: 0;
}
.custom-select-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white-03);
  color: var(--text-0);
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transform: translateZ(0);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}
.custom-select-toggle::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  line-height: 1;
  color: var(--text-1);
  flex-shrink: 0;
  pointer-events: none;
}
.custom-select-menu {
  display: none;
  position: fixed;
  z-index: 1100;
  border: 1px solid var(--white-14);
  border-radius: 16px;
  background: rgba(18, 18, 24, 0.52);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  white-space: normal;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.custom-select-menu.is-open {
  animation: custom-select-menu-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top center;
}
@keyframes custom-select-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.custom-select-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-0);
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.custom-select-option:hover {
  background: var(--white-06);
  border-color: var(--white-10);
}
.custom-select-option[aria-selected="true"] {
  background: var(--white-10, rgba(255,255,255,0.10));
  border-color: var(--white-20, rgba(255,255,255,0.20));
  box-shadow: inset 0 0 0 1px var(--white-08, rgba(255,255,255,0.08));
}
.custom-select.open .custom-select-toggle,
.custom-select-toggle:hover,
.custom-select-toggle:focus,
.custom-select-toggle:focus-visible {
  border-color: var(--border);
  box-shadow: none;
  outline: none;
}
:root:not([data-theme="light"]) .custom-select-toggle {
  background: var(--white-03);
  border-color: var(--border);
}
:root:not([data-theme="light"]) .custom-select-toggle::after {
  color: rgba(244, 244, 244, 0.72);
}
:root:not([data-theme="light"]) .custom-select-menu {
  background: rgba(18, 18, 24, 0.52);
  border-color: var(--white-14);
}
:root:not([data-theme="light"]) .custom-select-option {
  color: #f4f4f4;
}
:root[data-theme="light"] .custom-select-toggle {
  background: var(--white-03);
  border-color: rgba(15, 23, 42, 0.14);
}
:root[data-theme="light"] .custom-select-menu {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
:root[data-theme="light"] .custom-select-option {
  color: var(--text-0);
}
:root[data-theme="light"] .custom-select-option:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.10);
}
:root[data-theme="light"] .custom-select-option[aria-selected="true"] {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

#inline-create-row .custom-select {
  width: auto;
  display: inline-block;
  max-width: 100%;
}

#inline-create-row .custom-select-toggle {
  /* sizing — match native field-sizing:content behaviour */
  width: auto;
  min-width: 6ch;
  max-width: 100%;
  min-height: unset;
  height: auto;

  /* visual — match the native inline row <select> exactly */
  padding: 4px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 6px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
#inline-create-row .custom-select-toggle:hover {
  background: var(--white-04);
  border-color: var(--white-08);
}
#inline-create-row .custom-select-toggle::after {
  font-size: 13px;
}
