.thick-handle-picker-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.thick-handle-picker-field > input {
  min-width: 0;
}

.thick-handle-picker-button {
  height: 34px;
  white-space: nowrap;
}

.thick-handle-inline-dropdown {
  position: fixed;
  z-index: 2400;
  display: none;
  max-height: min(360px, 46vh);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #cbd7e6;
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgb(15 23 42 / 16%);
}

.thick-handle-inline-dropdown.show {
  display: grid;
  gap: 3px;
}

.thick-handle-inline-option {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
  cursor: pointer;
}

.thick-handle-inline-option:hover,
.thick-handle-inline-option.active {
  border-color: var(--primary);
  background: var(--brand-soft);
  outline: none;
}

.thick-handle-inline-empty {
  padding: 16px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.thick-handle-picker-modal {
  width: min(760px, 94vw);
}

.thick-handle-picker-current {
  max-width: 620px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thick-handle-picker-search {
  width: 100%;
  height: 38px;
  padding: 7px 10px;
  border: 1px solid #cbd7e6;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
}

.thick-handle-picker-meta {
  margin: 10px 0 7px;
  color: var(--muted);
  font-size: 12px;
}

.thick-handle-picker-list {
  display: grid;
  gap: 5px;
  max-height: min(480px, 58vh);
  overflow-y: auto;
  padding-right: 4px;
}

.thick-handle-picker-option {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}

.thick-handle-picker-option:hover,
.thick-handle-picker-option:focus-visible {
  border-color: var(--primary);
  background: var(--brand-soft);
  outline: none;
}

.thick-handle-picker-empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}
