/* ─── Search bar ─── */
.mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  flex-shrink: 0;
}

.mobile-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 0 12px;
  height: 40px;
  min-width: 0;
}

.mobile-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.mobile-search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.mobile-search-scope-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  user-select: none;
}

.mobile-search-scope-badge--ghost {
  opacity: 0.42;
  border-style: dashed;
  cursor: pointer;
}

.mobile-search-field--scoped .mobile-search-input {
  font-size: 16px;
}

.mobile-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 17px;
  color: var(--text-primary);
  caret-color: var(--accent);
  min-width: 0;
}

.mobile-search-input::placeholder {
  color: var(--text-muted);
}

.mobile-search-input::-webkit-search-cancel-button {
  display: none;
}

.mobile-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-muted);
  border: none;
  color: var(--bg-app);
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
}

.mobile-search-cancel {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
  white-space: nowrap;
}

