/* Searchable assignment picker (Add/Edit user → Assigned connections).
   The generic .checks grid in app.css stays untouched; this list is taller,
   scrolls on its own and filters in place. Every colour, radius and size comes
   from the tokens in app.css so light and dark themes both work. */
.picker {
  display: flex;
  flex-direction: column;
  gap: 8px
}
.picker-bar {
  position: relative;
  display: flex;
  align-items: center
}
.picker-bar-icon {
  position: absolute;
  left: 11px;
  display: flex;
  color: var(--muted);
  pointer-events: none
}
.picker-input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 33px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition)
}
.picker-input::placeholder {
  color: var(--muted)
}
.picker-input:hover {
  border-color: var(--muted)
}
.picker-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft)
}
/* Chrome draws its own clear button inside type=search. */
.picker-input::-webkit-search-cancel-button,
.picker-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none
}
.picker-reset {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer
}
.picker-reset:hover {
  background: var(--panel2);
  color: var(--ink)
}
.picker-reset[hidden] {
  display: none
}
.picker-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap
}
.picker-count {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums
}
.picker-actions {
  display: flex;
  gap: 6px
}
.picker-list {
  max-height: 232px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overscroll-behavior: contain
}
.picker-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 8px;
  border-radius: calc(var(--radius) - 4px);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer
}
.picker-row:hover {
  background: var(--panel2)
}
/* Hidden, never removed: a ticked row that the filter hides still submits. */
.picker-row[hidden] {
  display: none
}
.picker-row input {
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--brand);
  cursor: pointer
}
.picker-row:focus-within {
  background: var(--brand-soft)
}
.picker-row:focus-within input {
  outline: 2px solid var(--brand);
  outline-offset: 2px
}
.picker-label {
  min-width: 0;
  overflow-wrap: anywhere
}
.picker-label b {
  font-weight: 600;
  color: var(--ink)
}
.picker-hint {
  color: var(--muted)
}
.picker-none {
  margin: 0;
  padding: 16px 10px;
  font-size: 13px;
  text-align: center
}
.picker-none[hidden] {
  display: none
}
.picker-empty {
  padding: 12px 2px;
  font-size: 13px
}
@media (max-width: 700px) {
  .picker-list {
    max-height: 180px
  }
}
