.jj-search-trigger{justify-content:flex-start;text-align:left;cursor:pointer;font:inherit}
.jj-search-label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:var(--jj-muted)}
.jj-search-trigger kbd{flex-shrink:0;padding:2px 6px;border-radius:6px;background:#00000004;color:var(--jj-muted);font-family:inherit;font-size:11px;white-space:nowrap}
.jj-search-trigger:focus-visible{outline:2px solid var(--jj-blue);outline-offset:3px}
@media(hover:hover){.jj-search-trigger:hover{background-color:#f5f5f5}}
html.jj-search-open{overflow:hidden}
.jj-search-dialog{box-sizing:border-box;width:min(640px,calc(100% - 40px));max-height:calc(100dvh - 48px);margin:clamp(24px,18vh,180px) auto auto;padding:24px;border:1px solid #ffffffd9;border-radius:24px;background:#fffffff5;color:var(--jj-ink);box-shadow:0 24px 80px #1717171c,0 2px 8px #17171708;overflow:auto;overscroll-behavior:contain}
.jj-search-dialog::backdrop{background:#23293626;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.jj-search-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.jj-search-dialog-header h2{margin:0;font-size:20px;font-weight:600;line-height:1.5}
.jj-search-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#f2f3f5;color:var(--jj-muted);font-size:28px;line-height:1}
.jj-global-search-field{display:flex;align-items:center;gap:12px;min-height:60px;padding:6px 8px 6px 18px;border:1px solid var(--jj-line);border-radius:999px;background:#fff}
.jj-global-search-field>svg{width:20px;color:var(--jj-muted)}
.jj-global-search-field:focus-within{border-color:#1254ff66;box-shadow:0 0 0 3px #1254ff0d}
.jj-global-search-field input{flex:1;min-width:0;width:100%;border:0;background:transparent;outline:none;font:inherit;font-size:17px;color:var(--jj-ink);padding:8px 0}
.jj-global-search-field input:focus-visible{outline:none}
.jj-global-search-field .jj-primary{min-height:44px;padding:10px 18px}
.jj-global-search-form p{margin:16px 4px 0;color:var(--jj-muted);font-size:14px}
.jj-search-dialog-footer{display:flex;justify-content:space-between;gap:16px;margin-top:32px;padding:16px 4px 0;border-top:1px solid var(--jj-line);font-size:12px;color:var(--jj-muted)}
.jj-search-dialog-footer kbd{font:inherit}
@media(hover:hover){.jj-search-close:hover{background:#e9ebef;color:var(--jj-ink)}}
.jj-search-close:is(:active,.is-pressed){background:#e2e5eb;transform:scale(.985)}
@media(max-width:700px){
 .jj-search-trigger kbd{display:none}
 .jj-search-dialog{width:calc(100% - 24px);margin:calc(32px + env(safe-area-inset-top)) auto auto;padding:20px;border-radius:24px;max-height:calc(100dvh - 48px - env(safe-area-inset-top))}
 .jj-search-dialog-header{margin-bottom:16px}.jj-global-search-field{gap:8px;padding-left:12px;min-height:56px}
 .jj-global-search-field input{font-size:16px}.jj-global-search-field .jj-primary{padding:10px 14px}.jj-global-search-field .jj-primary svg{display:none}
 .jj-search-dialog-footer{margin-top:24px}.jj-search-dialog-footer>span:last-child{display:none}
}
@media(prefers-reduced-transparency:reduce){.jj-search-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:#23293680}.jj-search-dialog{background:#fff}}
@media(prefers-reduced-motion:reduce){.jj-search-close:is(:active,.is-pressed){transform:none}}
