.ascs-search-root { position: relative; width: 100%; max-width: 860px; margin: 0 auto; }
.ascs-search { position: relative; width: 100%; }
.ascs-search-box { position: relative; display: flex; align-items: center; }
.ascs-search-ico { position: absolute; left: 14px; color: var(--text-muted, #78789a); pointer-events: none; }
.ascs-search input {
  width: 100%;
  padding: 13px 44px 13px 40px;
  font: 500 0.95rem/1.4 var(--font-sans, 'Inter', system-ui, sans-serif);
  color: var(--text-primary, #f0f0f8);
  background: var(--bg-card, #14141e);
  border: 1px solid var(--border, #1e1e30);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ascs-search input::placeholder { color: var(--text-muted, #78789a); }
.ascs-search input:focus { border-color: var(--accent, #818cf8); box-shadow: 0 0 0 3px var(--accent-glow, rgba(129,140,248,.2)); }
.ascs-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-muted, #78789a); font-size: 14px; cursor: pointer;
}
.ascs-search-clear:hover { color: var(--text-primary, #f0f0f8); background: var(--bg-elevated, #202030); }
.ascs-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--bg-card, #14141e);
  border: 1px solid var(--border-light, #2e2e44);
  border-radius: 14px;
  box-shadow: var(--shadow-lg, 0 16px 64px rgba(0,0,0,.5));
  overflow: hidden;
}
.ascs-search-hit {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 14px;
  color: var(--text-primary, #f0f0f8); text-decoration: none; border-bottom: 1px solid var(--border, #1e1e30);
}
.ascs-search-hit:last-child { border-bottom: 0; }
.ascs-search-hit:hover, .ascs-search-hit:focus { background: var(--bg-card-hover, #1c1c2a); }
.ascs-search-hit-title { font: 600 0.88rem/1.35 var(--font-sans, 'Inter', system-ui, sans-serif); color: var(--text-primary, #f0f0f8); }
.ascs-search-hit-url { font: 500 0.72rem/1.4 var(--font-sans, 'Inter', system-ui, sans-serif); color: var(--accent-light, #a5b4fc); }
.ascs-search-hit-excerpt { font: 400 0.78rem/1.45 var(--font-sans, 'Inter', system-ui, sans-serif); color: var(--text-secondary, #b0b0c8); }
.ascs-search-hit-active, .ascs-search-hit-active:hover { background: var(--bg-elevated, #202030); }
.ascs-search-empty { padding: 14px; font: 400 0.85rem/1.5 var(--font-sans, 'Inter', system-ui, sans-serif); color: var(--text-muted, #78789a); }

@media (max-width: 640px) {
  .ascs-search-root { position: static; }
  .ascs-search input { padding: 12px 40px 12px 38px; font-size: 0.9rem; }
}