#topbar #header-search-slot {
  position: relative;
  z-index: 25;
  display: flex;
  flex: 1 1 565px;
  align-items: center;
  width: 100%;
  max-width: 565px;
  min-width: 32px;
  margin: 0 auto;
}
#topbar .header-search {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
}
#topbar .header-search-trigger.search-trigger {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  min-height: 34px;
  margin: 0;
  white-space: nowrap;
}
#topbar .header-search-field {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 33px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9d3e2;
  border-radius: 7px;
  padding: 0 9px 0 11px;
  color: #796d8c;
  background: #fff;
  box-shadow: 0 1px 2px #26163a08;
}
#topbar .header-search-field:focus-within {
  border-color: #9d80bb;
  box-shadow: 0 0 0 3px rgba(113, 80, 154, .13);
}
.header-search-field-icon { display: grid; flex: 0 0 auto; place-items: center; }
#topbar .header-search-field input {
  width: 100%;
  min-width: 0;
  height: 29px;
  border: 0;
  outline: 0;
  padding: 0;
  color: #292439;
  background: transparent;
  font: inherit;
  font-size: 13px;
}
#topbar .header-search-field input::placeholder { color: #9b96a5; }
#topbar .header-search-field input::-webkit-search-cancel-button { display: none; }
#topbar .header-search-clear {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: #888195;
}
#topbar .header-search-clear:hover { color: #5f3e86; background: #f3eff7; }
#topbar .header-search-clear:focus-visible {
  outline: 2px solid #a88bc4;
  outline-offset: 1px;
}
.header-search-results {
  position: fixed;
  z-index: 1400;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  max-height: min(380px, calc(100dvh - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e0dbe7;
  border-radius: 10px;
  padding: 5px;
  color: #2a2637;
  background: #fff;
  box-shadow: 0 12px 32px rgba(35, 25, 52, .18);
  scrollbar-width: thin;
  scrollbar-color: #d8d1e1 transparent;
}
.header-search-result {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  padding: 7px 9px;
  color: #302c3d;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.header-search-result:hover,
.header-search-result.is-active { background: #f3eff8; }
.header-search-result:focus-visible { outline: 2px solid #9b7bb9; outline-offset: -2px; }
.header-search-result-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #75549b;
  background: #f1ebf7;
}
.header-search-result-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.header-search-result-copy strong {
  overflow: hidden;
  color: #2c2939;
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-search-result-copy small {
  overflow: hidden;
  color: #8a8694;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-search-result > svg:last-child { flex: 0 0 auto; color: #a39dae; }
.header-search-result mark { color: inherit; background: #ffe6ac; border-radius: 2px; }
.header-search-empty button { color: #704078; text-decoration: underline; }
.header-search-empty { padding: 22px 13px; color: #777282; text-align: center; font-size: 13px; }
@media (max-width: 760px) {
  #topbar #header-search-slot { flex: 0 1 325px; max-width: 325px; margin-left: auto; margin-right: 0; }
  .header-search-results { max-height: min(330px, calc(100dvh - 24px)); }
}
@media (max-width: 640px) {
  #topbar #header-search-slot { flex: 0 0 34px; width: 34px; max-width: 34px; margin-left: auto; margin-right: 0; }
  #topbar #header-search-slot.is-header-search-open { flex: 0 1 auto; width: min(260px, calc(100vw - 116px)); max-width: none; }
  #topbar .header-search { width: 100%; }
  #topbar .header-search-field { width: 100%; min-width: 0; }
  #topbar .header-search-trigger.search-trigger {
    width: 34px;
    min-width: 32px;
    flex: 0 0 34px;
    padding: 7px;
    border: 0;
    background: transparent;
  }
  #topbar .header-search-trigger.search-trigger span,
  #topbar .header-search-trigger.search-trigger kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header-search-results { scroll-behavior: auto; }
}
