.yd-header-inner{position:relative}
.yd-search-toggle{display:grid;place-items:center;flex:none;width:42px;height:42px;margin-left:auto;padding:0;border:0;border-radius:8px;background:transparent;color:#e9f0f7;cursor:pointer;transition:background .15s}
.yd-search-toggle:hover,.yd-search-toggle:focus-visible{background:#ffffff1c;outline:none}
.yd-search-toggle svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.yd-search-overlay[hidden]{display:none!important}
.yd-search-overlay{position:fixed;z-index:1100;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:clamp(82px,12vh,150px) 16px 24px;background:rgba(4,8,13,.72);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.yd-search-panel{box-sizing:border-box;width:min(100%,620px);max-height:calc(100vh - 110px);overflow-y:auto;padding:24px;border:1px solid rgba(177,194,212,.24);border-radius:14px;background:rgba(25,37,51,.94);box-shadow:0 22px 60px #0009;color:#e9f0f7;font-family:Pretendard,system-ui,-apple-system,sans-serif}
.yd-search-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.yd-search-panel-head strong{font-size:19px;font-weight:800}
.yd-search-close{width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#d7e2ee;font-size:27px;line-height:30px;cursor:pointer}
.yd-search-close:hover,.yd-search-close:focus-visible{background:#344557;color:#fff}
.yd-overlay-search{display:flex;gap:9px;margin:0}
.yd-overlay-search input{box-sizing:border-box;flex:1;min-width:0;height:48px;padding:0 14px;border:1px solid #64778b;border-radius:7px;background:#0f1925;color:#fff;font:500 15px Pretendard,system-ui,-apple-system,sans-serif;outline:none}
.yd-overlay-search input::placeholder{color:#aebdcd;opacity:1}
.yd-overlay-search input:focus{border-color:#ff6877;box-shadow:0 0 0 3px #e33d4e36}
.yd-overlay-search button{flex:none;min-width:82px;height:48px;padding:0 16px;border:1px solid #ed6070;border-radius:7px;background:#d83243;color:#fff;font:700 15px Pretendard,system-ui,-apple-system,sans-serif;cursor:pointer}
.yd-overlay-search button:hover,.yd-overlay-search button:focus-visible{background:#e64a5b}
.yd-search-section{margin-top:22px;padding-top:17px;border-top:1px solid #ffffff24}
.yd-search-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.yd-search-section h2{margin:0;color:#f4f7fb;font-size:15px;font-weight:800}
.yd-search-section-head button{padding:3px 6px;border:0;background:transparent;color:#b9c8d8;font-size:12px;cursor:pointer}
.yd-search-section-head button:hover{color:#fff;text-decoration:underline}
.yd-search-section .yd-search-empty{margin:0;color:#9faebe;font-size:13px}
.yd-search-section .yd-search-empty[hidden]{display:none}
.yd-search-recent-list,.yd-search-ranking{list-style:none;margin:0;padding:0}
.yd-search-recent-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.yd-search-recent-list li{display:flex;align-items:center;min-width:0;border:1px solid #536477;border-radius:6px;background:#243343}
.yd-search-recent-term,.yd-search-recent-remove,.yd-search-ranking button{border:0;background:transparent;color:#e6edf6;cursor:pointer;font-family:inherit}
.yd-search-recent-term{flex:1;min-width:0;overflow:hidden;padding:6px 2px 6px 8px;text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.yd-search-recent-remove{flex:none;padding:3px 7px;color:#b7c6d6;font-size:17px;line-height:1}
.yd-search-recent-remove:hover,.yd-search-recent-term:hover,.yd-search-ranking button:hover{color:#ff7b88}
.yd-search-ranking{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:8px;row-gap:4px}
.yd-search-ranking li{display:flex;align-items:center;min-width:0;gap:4px}
.yd-search-rank{flex:none;width:20px;color:#ff8692;font-size:15px;font-weight:800;text-align:center}
.yd-search-ranking button{min-width:0;overflow:hidden;padding:5px 0;text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.yd-search-term-tooltip[hidden]{display:none}
.yd-search-term-tooltip{position:fixed;z-index:1102;max-width:min(320px,calc(100vw - 24px));padding:9px 11px;border:1px solid #7f94a9;border-radius:7px;background:#101b28;color:#fff;box-shadow:0 10px 28px #0009;font:600 13px/1.45 Pretendard,system-ui,-apple-system,sans-serif;overflow-wrap:anywhere;pointer-events:none}
.yd-history-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
.yd-history-nav a{display:grid;place-items:center;min-height:40px;padding:6px 8px;border:1px solid #64778b;border-radius:7px;background:#243343;color:#f4f7fb;font:700 14px Pretendard,system-ui,-apple-system,sans-serif;text-align:center;text-decoration:none}
.yd-history-nav a:hover,.yd-history-nav a:focus-visible{border-color:#ff8590;background:#2d4052;color:#fff;text-decoration:none;outline:none}
@media(max-width:760px){.yd-search-toggle{position:absolute;top:50%;right:0;transform:translateY(-50%);width:36px;height:36px;margin-left:0;border:0;background:transparent}.yd-search-toggle svg{width:21px;height:21px}.yd-search-overlay{inset:0 0 auto;height:var(--yd-search-viewport-height,100vh);padding:74px 16px 12px}.yd-search-panel{max-height:calc(var(--yd-search-viewport-height,100vh) - 86px);padding:18px;border-radius:12px}.yd-overlay-search input{font-size:16px}.yd-overlay-search button{min-width:68px;padding:0 10px;font-size:14px}.yd-search-section{margin-top:15px;padding-top:12px}.yd-search-section-head{margin-bottom:7px}.yd-search-recent-list{gap:3px}.yd-search-recent-term{padding:5px 1px 5px 4px;font-size:10px}.yd-search-recent-remove{padding:2px 4px;font-size:15px}.yd-search-ranking{column-gap:4px;row-gap:3px}.yd-search-ranking li{gap:1px}.yd-search-rank{width:15px;font-size:12px}.yd-search-ranking button{font-size:13px;padding:4px 0}}
@media(max-width:760px){.yd-history-nav{gap:6px}.yd-history-nav a{min-height:38px;padding:5px 3px;font-size:12px}}
