/* Pattern 4 — Question Picker. Canonical CSS verbatim from
   `pattern-04-question-picker-locked.html` lines 144-219. */

.picker-inline {
  margin: var(--space-2) 0 0;
  padding: var(--space-2);
  background: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.picker-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-2);
  background: var(--surface-base);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
}
.picker-search:focus-within,
.picker-search--focused {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.picker-search__icon { color: var(--text-tertiary); display: inline-flex; }
.picker-search__icon .material-symbols-rounded { font-size: 18px; }
.picker-search:focus-within .picker-search__icon,
.picker-search--focused .picker-search__icon { color: var(--accent-primary); }
.picker-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.picker-search__input::placeholder { color: var(--text-tertiary); }
.picker-search__hint {
  font-size: 10px;
  color: var(--text-tertiary);
  background: var(--surface-sunken);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.picker-filters {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.picker-filters::-webkit-scrollbar { display: none; }
.picker-filter {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}
.picker-filter:hover { color: var(--text-primary); border-color: var(--border-default); }
.picker-filter--active {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
}

.picker-section-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: var(--weight-semibold);
  padding: 0 var(--space-2);
  margin-top: var(--space-2);
}
.picker-section-label:first-child { margin-top: 0; }

.picker-results {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.picker-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: center;
  padding: 8px var(--space-2);
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
}
.picker-result:hover,
.picker-result--active { background: var(--surface-hover); }
.picker-result--current {
  background: var(--accent-subtle);
  box-shadow: inset 3px 0 0 0 var(--accent-primary);
}
.picker-result__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.picker-result__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-result__text {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.picker-result__type {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}

.picker-empty {
  padding: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
}
