.nav-search { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.nav-search:hover { border-color: var(--gold-2); color: var(--gold-3); }
.nav-search:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }
.nav-search-k { font: inherit; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-soft); color: var(--dim); }
html.srch-open, html.srch-open body { overflow: hidden; }
.srch { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.srch[hidden] { display: none; }
.srch-back { position: absolute; inset: 0; background: rgba(4, 6, 14, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.srch-box { position: relative; width: 100%; max-width: 680px; max-height: 76vh; display: flex; flex-direction: column; background: var(--card, #12172a); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85); overflow: hidden; }
.srch-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.srch-ico { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }
.srch-bar input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 17px; padding: 6px 0; }
.srch-bar input::placeholder { color: var(--dim); }
.srch-bar input::-webkit-search-cancel-button { display: none; }
.srch-close { flex: 0 0 auto; font: inherit; font-size: 12px; color: var(--dim); background: transparent; border: 1px solid var(--line-soft); border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.srch-close:hover { color: var(--text); border-color: var(--line); }
.srch-status { margin: 0; padding: 10px 16px 6px; font-size: 13px; color: var(--dim); }
.srch-list { list-style: none; margin: 0; padding: 4px 8px 10px; overflow-y: auto; }
.srch-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.srch-hit:hover, .srch-hit.on { background: rgba(232, 176, 75, 0.09); border-color: rgba(232, 176, 75, 0.35); }
.srch-t { font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.srch-p { font-size: 12px; color: var(--gold-3); align-self: start; padding-top: 2px; white-space: nowrap; }
.srch-x { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.srch mark { background: rgba(232, 176, 75, 0.28); color: var(--text); border-radius: 3px; padding: 0 1px; }
.srch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
	.nav-search { width: 42px; height: 42px; padding: 0; justify-content: center; }
	.nav-search-l, .nav-search-k { display: none; }
}
.nav-search-m { display: none; }
@media (max-width: 560px) {
	.nav .nav-search { display: none; }
	.nav-links .nav-search-m { display: flex; align-items: center; gap: 10px; }
	.nav-search-m svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
}
@media (max-width: 640px) {
	.srch { padding: 0; }
	.srch-box { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
	.srch-p { grid-column: 1 / -1; padding-top: 0; }
}
@media print {
	.nav-search, .srch { display: none !important; }
}
