/* header icon */
.ws-fd-btn { color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ws-fd-btn svg { display: block; width: 22px; height: 22px; }
html.ws-fd-open { overflow: hidden; }

/* pop-up */
.ws-fd { position: fixed; inset: 0; z-index: 2147483000; display: flex; justify-content: center; align-items: flex-start; padding: 11vh 16px 16px; opacity: 0; transition: opacity .16s ease; -webkit-user-select: text; user-select: text; }
.ws-fd[hidden] { display: none; }
.ws-fd.is-on { opacity: 1; }
.ws-fd__bd { position: absolute; inset: 0; background: rgba(10, 10, 12, .46); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ws-fd__panel { position: relative; width: 100%; max-width: 660px; max-height: min(78vh, 680px); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; color: #111; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); transform: translateY(-8px) scale(.985); transition: transform .18s cubic-bezier(.22, 1, .36, 1); }
.ws-fd.is-on .ws-fd__panel { transform: none; }
.ws-fd__bar { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 16px 0 20px; height: 64px; border-bottom: 1px solid #ececef; color: #8a8a93; flex: none; }
.ws-fd__bar svg { flex: none; width: 20px; height: 20px; }
html body .ws-fd__bar input[type="search"] { flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #111; font-size: 1.05rem; font-weight: 500; -webkit-appearance: none; appearance: none; }
html body .ws-fd__bar input[type="search"]::placeholder { color: #9a9aa3; }
html body .ws-fd__bar input[type="search"]::-webkit-search-cancel-button { display: none; }
html body .ws-fd__x { flex: none; height: 28px; padding: 0 9px; border: 1px solid #e4e4e8 !important; border-radius: 8px; background: #f6f6f8 !important; color: #6b6b75 !important; font-size: .72rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; box-shadow: none !important; }
html body .ws-fd__x:hover { background: #ececef !important; color: #111 !important; }
.ws-fd__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 10px 10px 12px; }
.ws-fd__lab { margin: 10px 10px 6px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #9a9aa3; }
.ws-fd__hint { margin: 28px 0; text-align: center; color: #9a9aa3; }
.ws-fd__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 4px; }
html body .ws-fd__chip { height: 32px; padding: 0 14px; border: 1px solid #e4e4e8 !important; border-radius: 999px; background: #fff !important; color: #111 !important; font-size: .86rem; font-weight: 600; cursor: pointer; box-shadow: none !important; transition: background .12s, border-color .12s; }
html body .ws-fd__chip:hover { background: #111 !important; color: #fff !important; border-color: #111 !important; }
.ws-fd__list { display: grid; gap: 2px; }
.ws-fd__it { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; color: #111 !important; text-decoration: none !important; transition: background .1s ease; }
.ws-fd__it:hover, .ws-fd__it.is-sel { background: #f4f4f6; }
.ws-fd__im { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #f6f7f9, #eceef1); }
.ws-fd__im img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ws-fd__tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ws-fd__tx strong { font-size: .98rem; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-fd__tx em { font-style: normal; font-size: .82rem; color: #7a7a84; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-fd__tx mark { background: transparent; color: inherit; box-shadow: inset 0 -.45em 0 #ffe08a; }
.ws-fd__meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ws-fd__meta b { font-size: .9rem; font-weight: 700; }
.ws-fd__dots { display: inline-flex; gap: 7px; align-items: center; }
.ws-fd__dot { position: relative; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); cursor: pointer; transition: transform .12s ease; }
.ws-fd__dot::before { content: ""; position: absolute; inset: -8px; }
.ws-fd__dot:hover { transform: scale(1.18); }
.ws-fd__dot.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #111; }
.ws-fd__go { flex: none; color: #b4b4bc; opacity: 0; transform: translateX(-4px); transition: opacity .12s, transform .12s; }
.ws-fd__it:hover .ws-fd__go, .ws-fd__it.is-sel .ws-fd__go { opacity: 1; transform: none; color: #111; }
.ws-fd__none { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px 20px; text-align: center; color: #7a7a84; font-size: .92rem; }
.ws-fd__none strong { color: #111; font-size: 1.02rem; }
.ws-fd__none a { color: #111; font-weight: 700; text-decoration: underline; }
.ws-fd__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid #ececef; background: #fafafb; font-size: .78rem; color: #8a8a93; }
.ws-fd__foot[hidden] { display: none; }
.ws-fd__foot kbd { display: inline-block; min-width: 20px; padding: 1px 5px; margin-right: 3px; border: 1px solid #dcdce1; border-radius: 5px; background: #fff; font: inherit; font-size: .72rem; text-align: center; color: #555; }
.ws-fd__foot a { color: #111; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 767px) {
  .ws-fd { padding: 0; }
  .ws-fd__panel { max-width: none; max-height: 92dvh; max-height: 92vh; border-radius: 0 0 18px 18px; }
  html body .ws-fd__bar input[type="search"] { font-size: 16px; }
  .ws-fd__bar { height: 58px; }
  .ws-fd__foot span { display: none; }
  .ws-fd__foot { justify-content: flex-end; }
  .ws-fd__im { width: 58px; height: 58px; }
  .ws-fd__go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ws-fd, .ws-fd__panel { transition: none; } }
@media (max-width: 767px) { .ws-fd__tx strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

.ws-fd__var { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px 2px 6px; border-radius: 999px; background: #111; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; white-space: nowrap; }
.ws-fd__var i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }

/* no dark / grey hover effects in the search: it stays white (the arrow keys still mark the chosen row softly) */
.ws-fd__it:hover { background: transparent; }
.ws-fd__it.is-sel { background: #f6f6f8; }
.ws-fd__it:hover .ws-fd__go { opacity: 0; transform: translateX(-4px); }
.ws-fd__it.is-sel .ws-fd__go { opacity: 1; transform: none; color: #111; }
html body .ws-fd__chip:hover { background: #fff !important; color: #111 !important; border-color: #e4e4e8 !important; }
html body .ws-fd__x:hover { background: #f6f6f8 !important; color: #6b6b75 !important; }
.ws-fd__dot:hover { transform: none; }

/* header search icon: always white, no hover / focus / press effect */
html body header .ws-fd-btn, html body header .ws-fd-btn:hover, html body header .ws-fd-btn:focus, html body header .ws-fd-btn:active, html body header .ws-fd-btn:focus-visible { color: #fff !important; background: transparent !important; opacity: 1 !important; filter: none !important; box-shadow: none !important; transform: none !important; text-decoration: none !important; outline: none; }
html body header .ws-fd-btn svg, html body header .ws-fd-btn:hover svg { color: #fff !important; stroke: #fff !important; opacity: 1 !important; }

.ws-fd__xi { display: none; }
@media (max-width: 767px) {
  .ws-fd__esc { display: none; }
  .ws-fd__xi { display: block; }
  html body .ws-fd__x { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- subtle motion ---- */
.ws-fd { transition: opacity .22s ease; }
.ws-fd__bd { opacity: 0; transition: opacity .28s ease; }
.ws-fd.is-on .ws-fd__bd { opacity: 1; }
.ws-fd__panel { opacity: 0; transform: translateY(-14px) scale(.975); transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .22s ease; }
.ws-fd.is-on .ws-fd__panel { opacity: 1; transform: none; }
@keyframes ws-fd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ws-fd-fade { from { opacity: 0; } to { opacity: 1; } }
.ws-fd__body.is-anim .ws-fd__it, .ws-fd__body.is-anim .ws-fd__chip { animation: ws-fd-rise .34s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 32ms + 60ms); }
.ws-fd__body.is-anim .ws-fd__lab, .ws-fd__body.is-anim .ws-fd__chips { animation: ws-fd-fade .3s ease both; }
.ws-fd__list { animation: ws-fd-fade .16s ease both; }
.ws-fd__im img { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.ws-fd__it:hover .ws-fd__im img, .ws-fd__it.is-sel .ws-fd__im img { transform: scale(1.06); }
.ws-fd__chip { transition: background .15s, color .15s, border-color .15s, transform .12s; }
.ws-fd__chip:active, .ws-fd__x:active { transform: scale(.95); }
@media (max-width: 767px) {
  .ws-fd__panel { transform: translateY(-24px); }
  .ws-fd.is-on .ws-fd__panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-fd, .ws-fd__bd, .ws-fd__panel, .ws-fd__im img { transition: none; }
  .ws-fd__body.is-anim .ws-fd__it, .ws-fd__body.is-anim .ws-fd__chip, .ws-fd__body.is-anim .ws-fd__lab, .ws-fd__body.is-anim .ws-fd__chips, .ws-fd__list { animation: none; }
}

/* ---- open / close effects ---- */
.ws-fd { transition: opacity .01s linear; opacity: 1; }
.ws-fd__bd { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: opacity .24s ease, -webkit-backdrop-filter .24s ease, backdrop-filter .24s ease; }
.ws-fd.is-on .ws-fd__bd { opacity: 1; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); transition: opacity .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease; }
/* closing: quick and light, the panel lifts away */
.ws-fd__panel { opacity: 0; transform: translateY(-16px) scale(.965); transition: transform .24s cubic-bezier(.4, 0, 1, 1), opacity .2s ease; }
/* opening: drops in and settles with the tiniest overshoot */
.ws-fd.is-on .ws-fd__panel { opacity: 1; transform: none; transition: transform .46s cubic-bezier(.2, 1.18, .3, 1), opacity .26s ease; }
@media (max-width: 767px) {
  .ws-fd__panel { transform: translateY(-34px); }
  .ws-fd.is-on .ws-fd__panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ws-fd__bd, .ws-fd__panel, .ws-fd.is-on .ws-fd__bd, .ws-fd.is-on .ws-fd__panel { transition: none; } }
