/* Shared soft Autocomplete surface. Original input layout and search logic stay in place. */
:root,:host{
 --yj-search-fill:var(--theme-soft,#eaf1f7);--yj-search-ink:var(--theme-ink,var(--ink,#243d52));
 --yj-search-muted:var(--theme-muted,var(--muted,#6f8296));--yj-search-accent:var(--theme-accent,var(--brand,#426e94));
 --yj-search-popup:var(--theme-surface,#fcfdff);
}
@media screen and (min-width:851px){
 :is(html[data-theme][data-color-mode],:host([data-theme][data-color-mode]),html,:host) :is(input,#q,#search)[data-yj-search][type="search"]{
  appearance:none!important;box-sizing:border-box!important;min-width:0;max-width:100%;height:36px;min-height:32px;
  padding:7px 12px 7px 36px!important;border:0!important;border-radius:10px!important;
  background-color:var(--yj-search-fill)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23768da3' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:12px center!important;background-size:16px!important;
  color:var(--yj-search-ink)!important;caret-color:var(--yj-search-accent);outline:none!important;box-shadow:none!important;
  font-family:inherit;font-size:13px;line-height:1.5;transition:background-color .2s,box-shadow .2s;
 }
 :is(html[data-theme][data-color-mode],:host([data-theme][data-color-mode]),html,:host) :is(input,#q,#search)[data-yj-search][type="search"]:is(:hover,:focus){
  background-color:color-mix(in srgb,var(--yj-search-fill) 84%,var(--yj-search-accent) 16%)!important;
  box-shadow:0 3px 12px color-mix(in srgb,var(--yj-search-accent) 10%,transparent)!important;
 }
 input[data-yj-search]::placeholder{color:var(--yj-search-muted)!important;opacity:1}
 input[data-yj-search]:disabled{opacity:.5;cursor:not-allowed}
 /* Native clear dispatches the same input/search events, including in Safari. */
 input[data-yj-search]::-webkit-search-decoration{appearance:none}
 input[data-yj-search]::-webkit-search-cancel-button{
  -webkit-appearance:none;appearance:none;cursor:pointer;width:16px;height:16px;margin:0 0 0 7px;
  background:var(--yj-search-muted);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 6 8 8m0-8-8 8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
 }
 :is(html[data-theme][data-color-mode],:host([data-theme][data-color-mode]),html,:host) .yj-search-container{
  gap:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;border-radius:10px!important;
 }
 .yj-search-container>input[data-yj-search]{width:100%;flex:1}
 [data-yj-search-old-icon]{display:none!important}
 .yj-search-results{
  color:var(--yj-search-ink)!important;background:var(--yj-search-popup)!important;border:0!important;border-radius:10px!important;
  box-shadow:0 12px 32px #0b203529!important;padding:6px!important;animation:yj-search-appear .2s cubic-bezier(.175,.885,.32,1.15);
 }
 .yj-search-results :is(button,[role="option"]){border:0!important;outline:none!important;border-radius:7px!important;color:var(--yj-search-ink)!important;box-shadow:none!important;transition:background-color .18s,transform .18s}
 .yj-search-results :is(button,[role="option"]):is(:hover,:focus-visible,.preselected,[aria-selected="true"]){background:var(--yj-search-fill)!important}
 .yj-search-results :is(button,[role="option"]):active{transform:scale(.98)}
 .yj-search-results :is(small,p){color:var(--yj-search-muted)}
 :is(html[data-color-mode="dark"],:host([data-color-mode="dark"]),:host([data-theme="dark"])){--yj-search-fill:#263e53;--yj-search-popup:#1c2e40;--yj-search-ink:#dce7f2;--yj-search-muted:#a3b6c8}
}
@keyframes yj-search-appear{from{opacity:0;transform:translateY(-3px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){input[data-yj-search],.yj-search-results,.yj-search-results :is(button,[role="option"]){animation:none!important;transition:none!important}}
