.search-box {
  width: 100%;
  max-width: 584px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box:hover,
.search-box.active {
  border-color: transparent;
  box-shadow: 0 1px 8px rgba(32, 33, 36, 0.2);
}

.search-icon {
  flex-shrink: 0;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.search-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.reason-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  word-break: break-word;
  padding: 4px 0;
}

.reason-text.placeholder {
  user-select: none;
}

.reason-text.loaded {
  color: var(--text);
  animation: fade-up 0.22s ease both;
}

.reason-text.error { color: var(--g-red); }

.search-subtext {
  margin-top: 12px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  text-align: center;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.copy-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: var(--surface-soft);
}

.copy-btn.copied { color: var(--g-green); }
