.hp-search-launcher {
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-text);
  position: relative;
  cursor: pointer;
}
.hp-search-launcher::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 12px;
  left: 12px;
}
.hp-search-launcher::after {
  content: '';
  position: absolute;
  background: currentColor;
  width: 9px;
  height: 2px;
  top: 28px;
  left: 24px;
  transform: rotate(45deg);
}
.hp-search {
  color: var(--c-text, #0f172a);
  background: var(--c-bg, #fff);
  width: min(620px, calc(100vw - 32px));
  max-height: min(75dvh, 620px);
  padding: 14px;
  border: 1px solid var(--c-border, #cbd5e1);
  border-radius: 16px;
  overflow: hidden;
}
.hp-search[open] { display: flex; flex-direction: column; }
.hp-search::backdrop { background: #0f172a88; }
.hp-search-bar { display: flex; gap: 8px; }
.hp-search-bar input, .hp-search-bar button {
  color: inherit;
  background: var(--c-bg, #fff);
  border: 1px solid var(--c-border, #cbd5e1);
  min-height: 44px;
  border-radius: 8px;
}
.hp-search-bar input { flex: 1; min-width: 0; padding: 0 12px; font: inherit; font-size: 16px; }
.hp-search-bar button { width: 44px; font-size: 22px; cursor: pointer; }
.hp-search-status { margin: 12px 4px 6px; color: var(--c-muted); }
.hp-search-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 0; margin: 0; }
.hp-search-results a { display: grid; min-height: 44px; padding: 8px; color: inherit; border-bottom: 1px solid var(--c-border, #e2e8f0); }
.hp-search-results small { color: var(--c-muted); }
.hp-search :focus-visible, .hp-search-launcher:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
@media (max-width: 640px) {
  .hp-search {
    position: fixed;
    inset: var(--hp-search-top, 0) 0 auto;
    width: 100%;
    max-width: none;
    height: var(--hp-search-height, 100dvh);
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
}
