/* Scoped floating search panel. */
#toolSearchDialog{box-sizing:border-box;width:min(720px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #e5e7eb;border-radius:24px;background:#fff;color:#111827;overflow:hidden;box-shadow:0 32px 90px #15112b38,0 8px 24px #15112b14;font-family:Inter,Arial,sans-serif;animation:ts-panel-in .18s ease-out}
#toolSearchDialog::backdrop{background:#17142680;backdrop-filter:blur(5px);animation:ts-overlay-in .18s ease-out}
#toolSearchDialog .ts-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 50px);min-height:0}
#toolSearchDialog .ts-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:30px 30px 22px}
#toolSearchDialog .ts-eyebrow{display:block;color:#7c3aed;font-size:10px;font-weight:750;letter-spacing:1.7px;margin-bottom:10px}
#toolSearchDialog h2{font-size:25px;line-height:1.25;letter-spacing:-.8px;margin:0 0 8px;font-weight:750;color:#111827}
#toolSearchDialog .ts-heading p{font-size:13px;line-height:1.6;color:#64748b;margin:0;max-width:440px}
#toolSearchDialog button{font:inherit;cursor:pointer;flex-shrink:0}
#toolSearchDialog svg{width:20px;height:20px;display:block;flex-shrink:0}
#toolSearchDialog .ts-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid #e9e9f1;border-radius:11px;background:#f8f9fc;color:#64748b;transition:background .18s,color .18s}
#toolSearchDialog .ts-close:hover{background:#f2ebff;color:#7c3aed}
#toolSearchDialog .ts-input-wrap{margin:0 30px;display:flex;align-items:center;gap:12px;background:#f8f9fc;border:1px solid #e2e5ed;border-radius:13px;padding:0 15px;min-height:54px;transition:background .18s,border-color .18s,box-shadow .18s;color:#7c3aed;flex-shrink:0}
#toolSearchDialog .ts-input-wrap:focus-within{background:#fff;border-color:#a78bfa;box-shadow:0 0 0 4px #7c3aed0d}
#toolSearchDialog input{border:0!important;outline:0!important;box-shadow:none!important;border-radius:0;min-width:0;width:100%;height:52px;background:transparent!important;color:#111827;font-size:15px;padding:0;flex:1}
#toolSearchDialog input::placeholder{color:#8a94a5}#toolSearchDialog input::-webkit-search-cancel-button{-webkit-appearance:none}
#toolSearchDialog #tsClear{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:7px;background:#eceef5;color:#64748b;padding:4px}#toolSearchDialog #tsClear[hidden]{display:none}
#toolSearchDialog kbd{font-family:inherit;font-size:10px;border:1px solid #e1e4ed;border-bottom-width:2px;background:#fff;color:#7c8494;border-radius:5px;white-space:nowrap;padding:3px 5px;line-height:1}
#toolSearchDialog .ts-categories{display:flex;flex-wrap:wrap;gap:6px;padding:19px 30px 20px;flex-shrink:0}
#toolSearchDialog .ts-categories button{background:#fff;border:1px solid transparent;border-radius:8px;padding:7px 10px;color:#64748b;font-size:12px;line-height:1.2;min-height:32px;transition:background .18s,color .18s,border-color .18s}
#toolSearchDialog .ts-categories button:hover{background:#f8f6ff;color:#7c3aed}
#toolSearchDialog .ts-categories button[aria-pressed=true]{color:#6d28d9;background:#f0e9ff;border-color:#e6d9ff;font-weight:650}
#toolSearchDialog .ts-results-label{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 32px 12px;color:#94a3b8;flex-shrink:0}
#toolSearchDialog .ts-results-label>span:first-child{font-size:10px;letter-spacing:1.3px;font-weight:700}
#toolSearchDialog #tsCount{font-size:11px;color:#64748b}
#toolSearchDialog .ts-results{padding:0 24px 16px;display:flex;flex-direction:column;gap:7px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d9d2e9 transparent;max-height:374px;min-height:110px;flex:1}
#toolSearchDialog .ts-results::-webkit-scrollbar{width:5px}#toolSearchDialog .ts-results::-webkit-scrollbar-thumb{background:#d9d2e9;border-radius:9px}
#toolSearchDialog .ts-result{display:flex;align-items:center;gap:13px;border:1px solid #edf0f5;background:#fcfcfe;border-radius:12px;padding:12px 14px;min-height:66px;color:#111827;transition:background .18s,border-color .18s,box-shadow .18s;text-decoration:none;flex-shrink:0}
#toolSearchDialog .ts-result:hover,#toolSearchDialog .ts-result:focus-visible{background:#faf7ff;border-color:#d8c4fb;box-shadow:0 3px 9px #7c3aed07}
#toolSearchDialog .ts-result-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f0eaff;color:#7c3aed;flex-shrink:0}
#toolSearchDialog .ts-result-content{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
#toolSearchDialog .ts-result-name{font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#toolSearchDialog .ts-result-category{color:#64748b;font-size:10px;line-height:1.3}
#toolSearchDialog mark{background:#eaddff;color:#5b21b6;border-radius:3px;padding:0 1px}
#toolSearchDialog .ts-result-arrow{color:#a6aabb;transition:color .18s,transform .18s}#toolSearchDialog .ts-result-arrow svg{width:16px;height:16px}#toolSearchDialog .ts-result:hover .ts-result-arrow{color:#7c3aed;transform:translateX(2px)}
#toolSearchDialog .ts-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #eef0f5;padding:14px 30px;background:#fafbfe;color:#64748b;font-size:10px;flex-shrink:0}#toolSearchDialog .ts-footer>span{display:flex;align-items:center;gap:5px}#toolSearchDialog .ts-enter-hint{display:inline-flex;gap:5px;align-items:center;margin-left:10px}
#toolSearchDialog .ts-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 10px;color:#64748b}#toolSearchDialog .ts-empty>span{padding:16px;background:#f4efff;border-radius:16px;color:#8b5cf6;margin-bottom:16px}#toolSearchDialog .ts-empty strong{font-size:14px;font-weight:600;color:#374151}#toolSearchDialog .ts-empty p{margin:7px 0;font-size:12px}
#toolSearchDialog button:focus-visible,#toolSearchDialog a:focus-visible{outline:2px solid #7c3aed;outline-offset:2px}
#toolSearchDialog.ts-closing{animation:ts-panel-out .15s ease-in forwards}#toolSearchDialog.ts-closing::backdrop{animation:ts-overlay-out .15s ease-in forwards}
@keyframes ts-panel-in{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}@keyframes ts-panel-out{to{opacity:0;transform:translateY(6px) scale(.985)}}@keyframes ts-overlay-in{from{opacity:0}to{opacity:1}}@keyframes ts-overlay-out{to{opacity:0}}
@media(max-width:600px){#toolSearchDialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:20px}#toolSearchDialog .ts-panel{max-height:calc(100dvh - 26px)}#toolSearchDialog .ts-heading{padding:23px 19px 18px;gap:10px}#toolSearchDialog h2{font-size:21px;letter-spacing:-.6px}#toolSearchDialog .ts-heading p{font-size:12px}#toolSearchDialog .ts-input-wrap{margin:0 19px;gap:9px;padding:0 12px}#toolSearchDialog .ts-shortcut{display:none}#toolSearchDialog .ts-categories{padding:15px 19px;gap:4px}#toolSearchDialog .ts-categories button{font-size:11px;padding:9px 8px;min-height:36px}#toolSearchDialog .ts-results-label{padding:0 21px 11px}#toolSearchDialog .ts-results{padding:0 13px 12px;max-height:40dvh;min-height:80px}#toolSearchDialog .ts-result{padding:11px 10px;gap:10px;min-height:66px}#toolSearchDialog .ts-result-name{font-size:12px}#toolSearchDialog .ts-footer{padding:12px 19px}#toolSearchDialog .ts-close{width:36px;height:36px}}
@media(max-height:530px){#toolSearchDialog .ts-heading{padding-top:16px;padding-bottom:12px}#toolSearchDialog .ts-eyebrow,#toolSearchDialog #tsSubtitle,#toolSearchDialog .ts-footer{display:none}#toolSearchDialog .ts-categories{padding-top:10px;padding-bottom:10px}#toolSearchDialog .ts-results{min-height:60px}}
@media(prefers-reduced-motion:reduce){#toolSearchDialog,#toolSearchDialog::backdrop,#toolSearchDialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
