.sp-global-search { margin-top: 20px; }
.sp-global-search-open {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 48px;
  padding: 10px 14px; border: 1px solid var(--sp-border); border-radius: 16px;
  background: var(--sp-surface); color: var(--sp-muted); text-align: start; font-size: .8125rem;
}
.sp-global-search-open svg { flex: 0 0 22px; color: var(--sp-brand); }
.sp-global-search-open:active { background: #edf7ff; }
.sp-global-search-form { position: sticky; z-index: 2; top: 0; margin: 0 0 12px; padding: 4px 0 10px; background: #fff; }
.sp-global-search-form input { font-size: 16px; border-radius: 16px; background: var(--sp-surface); }
.sp-global-search-clear { position: absolute; left: 3px; top: 6px; width: 44px; height: 44px; border: 0; border-radius: 14px; background: transparent; font-size: 1.5rem; color: var(--sp-muted); }
.sp-global-search-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.sp-search-result {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 76px;
  padding: 12px; border: 1px solid var(--sp-border); border-radius: 16px; background: #fff; text-align: start; text-decoration: none;
}
.sp-search-result:active { background: var(--sp-surface); }
.sp-search-result-avatar { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--sp-surface); color: var(--sp-brand); }
.sp-search-result-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sp-search-result-info { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.sp-search-result-name { font-size: .8125rem; line-height: 1.7; overflow-wrap: anywhere; }
.sp-search-result-meta { font-size: .6875rem; color: var(--sp-muted); }
.sp-search-result-action { flex: 0 0 auto; color: #006bbe; font-size: .6875rem; white-space: nowrap; }
@media (max-width: 359px) { .sp-search-result { padding: 10px; gap: 8px; } .sp-search-result-avatar { flex-basis: 36px; width: 36px; height: 36px; } }
