.search-wrap {
  position: relative;
  width: 100%;
  max-width: 32rem;
}

.search-input {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-results-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 30;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(17, 19, 28, 0.98);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.search-result-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-result-row:last-child {
  border-bottom: 0;
}

.search-result-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-summary {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.search-result-surface {
  flex-shrink: 0;
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-result-empty {
  padding: 1rem;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.btn {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #111827;
}

.btn-primary:hover {
  background: #fb923c;
  border-color: #fb923c;
}

.login-submit-button {
  width: 100%;
  justify-content: center;
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
}

.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.input-shell {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  padding: 0.62rem 0.75rem;
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

body[data-theme='light'] .search-input {
  background: rgba(255, 255, 255, 0.98);
}

body[data-theme='light'] .search-results-panel {
  background: rgba(255, 255, 255, 0.98);
}

body[data-theme='light'] .search-result-row:hover {
  background: rgba(15, 23, 42, 0.04);
}
