.site-search {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  background: rgba(153,171,187,.045);
  border: 1px solid rgba(162,181,199,.17);
  border-radius: 17px;
  transition: border-color .2s, background .2s;
}

.site-search:focus-within {
  border-color: #00d9a5;
  background: rgba(153,171,187,.07);
}

.site-search > svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: #9baaba;
  stroke-width: 1.6;
}

/* Keep legacy page styles on the surrounding layout, not on the input surface. */
:is(.command-search-shell, .faq-search-shell, .docs-search-shell) .site-search :is(#search-input, #faq-search, #docs-search) {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #e5edf5;
  background: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: none;
}

:is(.command-search-shell, .faq-search-shell, .docs-search-shell) .site-search input::placeholder { color: #8391a2; opacity: 1; }
.site-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  margin-right: 0;
  border: 0;
  background-color: #94a3b8;
  -webkit-mask: url('/assets/img/icons/modal-close.svg') center / 20px 20px no-repeat;
  mask: url('/assets/img/icons/modal-close.svg') center / 20px 20px no-repeat;
  opacity: 1;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.site-search input[type="search"]::-webkit-search-cancel-button:hover {
  background-color: #e2e8f0;
  transform: scale(1.08);
}
.site-search-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #aeb9c7;
  font-size: 12px;
  white-space: nowrap;
}
.site-search kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  box-sizing: border-box;
  padding: 0 7px;
  color: #e2e8f0;
  background: rgba(226,232,240,.07);
  border: 1px solid rgba(154,172,192,.4);
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(226,232,240,.06);
}
@media (max-width: 640px) {
  .site-search { padding: 14px; gap: 10px; }
  .site-search-shortcut { display: none; }
  :is(.command-search-shell, .faq-search-shell, .docs-search-shell) .site-search :is(#search-input, #faq-search, #docs-search) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-search, .site-search input[type="search"]::-webkit-search-cancel-button { transition: none; }
}
