/* Shared select-only control. Popup lives outside clipped preview cards. */
button.bosi-pick,
.ck-stage button.bosi-pick {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  background: #151913;
  color: #edf1e7;
  border: 1px solid #48503f;
  border-radius: 7px;
  text-align: left;
  font: 500 14px/1.4 var(--sans, system-ui);
  cursor: pointer;
}
.bosi-pick::after {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 2px 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.bosi-pick[aria-expanded='true']::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
button.bosi-pick[aria-expanded='true'],
button.bosi-pick:focus-visible {
  border-color: #cfed98;
}
.job-tools .bosi-pick {
  min-width: 9em;
}
.ck-toolbar button.bosi-pick {
  min-width: 0;
  padding-inline: 5px;
  gap: 7px;
  background: transparent;
  border-color: transparent;
  color: var(--ck-tool-text);
}
.ck-color .bosi-pick::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 2px;
  background: var(--ck-bright);
}
.ck-library-head button.bosi-pick {
  background: var(--ck-bg);
  color: var(--ck-ink);
  border-color: var(--ck-line);
  border-radius: var(--ck-control);
}
.bosi-options {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #191d17;
  color: #ebefe5;
  border: 1px solid #4b5641;
  border-radius: 9px;
  box-shadow: 0 8px 28px #0008;
  width: max-content;
  max-width: calc(100vw - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  color-scheme: dark;
  text-align: left;
  font:
    500 14px/1.4 'PingFang SC',
    'Microsoft YaHei',
    system-ui,
    sans-serif;
  letter-spacing: normal;
}
.bosi-options[hidden] {
  display: none !important;
}
.bosi-options [role='option'] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
}
.bosi-options [role='option']::after {
  content: '';
  width: 6px;
  height: 10px;
  flex: none;
  border: solid transparent;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-right: 3px;
}
.bosi-options [aria-selected='true'] {
  color: #cfed98;
}
.bosi-options [aria-selected='true']::after {
  border-color: currentColor;
}
.bosi-options [data-active] {
  background: #30392a;
}
.bosi-options [role='option']:hover {
  background: #2c3427;
}
@media (pointer: coarse) {
  .bosi-options [role='option'] {
    min-height: 44px;
  }
}
@media (forced-colors: active) {
  .bosi-options [data-active] {
    outline: 1px solid Highlight;
    outline-offset: -2px;
  }
}
