.friend-search-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #dce5f0;border-radius:24px;color:#1c2e50;background:#fff;box-shadow:0 28px 88px #172b4d38;overflow:auto}
.friend-search-dialog::backdrop{background:#15274488;backdrop-filter:blur(5px)}
.friend-search-dialog[open]{display:block}
.friend-search-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 30px 22px;border-bottom:1px solid #e8edf4}
.friend-search-eyebrow{margin:0 0 9px;color:#47638d;font-size:11px;font-weight:800;letter-spacing:.18em}
.friend-search-header h2{margin:0;font-size:clamp(23px,3vw,30px);line-height:1.2;letter-spacing:-.035em}
.friend-search-close{flex:none;width:42px;height:42px;border:1px solid #dce5f0;border-radius:12px;font:inherit;font-size:28px;line-height:1;background:#f7f9fc;color:#1c2e50;cursor:pointer}
.friend-search-body{padding:24px 30px 28px}
.friend-search-intro,.friend-search-privacy{margin:0;color:#65758a;font-size:14px;line-height:1.7}
.friend-search-privacy{margin-top:24px;padding-top:18px;border-top:1px solid #e8edf4;font-size:12px}
.friend-search-message{min-height:22px;margin:16px 0;color:#4a658f;font-size:13px;line-height:1.6}
.friend-search-message.is-error{color:#9a3e33}
.friend-search-form{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(210px,1.2fr);gap:16px;margin-top:18px}
.friend-search-form label{display:block;margin:0 0 8px;font-size:13px;font-weight:750}
.friend-search-form input,.friend-search-form select{box-sizing:border-box;display:block;width:100%;min-height:48px;padding:11px 12px;border:1px solid #cdd9e8;border-radius:11px;background:#fff;color:#1c2e50;font:inherit;font-size:14px}
.friend-search-form input::placeholder{color:#78879a}
.friend-search-button,.friend-search-more{display:inline-flex;align-items:center;justify-content:center;min-height:46px;box-sizing:border-box;padding:11px 20px;border:1px solid #456fb0;border-radius:11px;background:#456fb0;color:#fff;font:inherit;font-size:14px;font-weight:750;text-decoration:none;cursor:pointer}
.friend-search-form .friend-search-button{grid-column:1/-1;justify-self:start;min-width:140px}
.friend-search-more{margin-top:18px;background:#fff;color:#456fb0;border-color:#bdcee6}
.friend-search-results{display:grid;gap:12px;margin-top:22px}
.friend-search-result{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 20px;background:#f8fbff;border:1px solid #e0e9f5;border-radius:15px}
.friend-search-result h3{margin:0;color:#1c2e50;font-size:17px;line-height:1.35;overflow-wrap:anywhere}
.friend-search-class{margin:6px 0;color:#536d92;font-size:13px}
.friend-search-match{margin:0;color:#65758a;font-size:12px;line-height:1.6}
.friend-search-details{flex:none;color:#456fb0;font-size:13px;font-weight:750;text-decoration:none}
.friend-search-gate{margin:18px 0 8px}
.friend-search-dialog [hidden]{display:none!important}
.friend-search-dialog :focus-visible{outline:3px solid #f0ad7c;outline-offset:3px}
.friend-search-dialog :disabled{cursor:wait;opacity:.65}
@media(max-width:600px){.friend-search-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:19px}.friend-search-header{padding:22px 20px 18px;gap:12px}.friend-search-body{padding:20px}.friend-search-form{grid-template-columns:minmax(0,1fr)}.friend-search-form .friend-search-button{width:100%;justify-self:stretch}.friend-search-result{align-items:flex-start;flex-direction:column;gap:13px;padding:17px}.friend-search-details{min-height:32px;display:inline-flex;align-items:center}}
