.vqc-friends-trigger{position:relative;white-space:nowrap}
.vqc-friends-trigger__badge[hidden]{display:none!important}
.vqc-friends-trigger__badge{
 display:inline-grid;place-items:center;min-width:19px;height:19px;
 margin-left:4px;padding:0 4px;border-radius:50%;background:#e95454;
 color:#fff;font-size:11px;font-weight:900;box-shadow:0 2px 5px #a43d4d44;
}
.vqc-friends-modal[hidden]{display:none!important}
body.vqc-friends-open{overflow:hidden}
.vqc-friends-modal{
 position:fixed;inset:0;z-index:28000;display:flex;align-items:center;
 justify-content:center;padding:14px;box-sizing:border-box;
 background:rgba(17,35,59,.77);backdrop-filter:blur(5px);
 font-family:"Segoe UI",Arial,sans-serif;
}
.vqc-friends-dialog{
 position:relative;box-sizing:border-box;width:min(720px,100%);
 max-height:calc(100dvh - 28px);overflow-y:auto;
 background:linear-gradient(165deg,#f9feff,#fffdf1 65%,#eef9ee);
 border:4px solid #b2d9f8;border-radius:26px;
 box-shadow:0 8px 0 #73aad4,0 25px 75px #0a304e78;
 padding:clamp(14px,3vw,26px);color:#305d76;
}
.vqc-friends-modal__close{
 position:absolute;top:9px;right:11px;display:grid;place-items:center;
 width:39px;height:39px;border:2px solid #cfe3f2;border-radius:50%;
 background:#fff;color:#547b92;font-size:26px;font-weight:900;cursor:pointer;
}
.vqc-friends-hero{text-align:center;padding:5px 33px 17px}
.vqc-friends-hero__emoji{
 display:grid;place-items:center;width:63px;height:63px;margin:0 auto 10px;
 border-radius:21px;border:3px solid #e5d99d;background:#fff8d8;font-size:32px;
 box-shadow:0 4px 0 #d6c88c;
}
.vqc-friends-hero__eyebrow{font-weight:900;color:#387e9d;font-size:11px;letter-spacing:1.2px}
.vqc-friends-hero h2{margin:5px 0;color:#2a74aa;font-size:clamp(23px,3vw,32px);font-weight:900}
.vqc-friends-hero p{margin:0;color:#6f8593;font-size:14px;line-height:1.5}
.vqc-friends-codebox,.vqc-friends-invite{
 padding:14px 17px;margin:0 0 13px;border:2px solid #cee3f0;
 border-radius:18px;background:#ffffffde;
}
.vqc-friends-codebox{background:linear-gradient(145deg,#fff9df,#f7feff);border-color:#efd99c}
.vqc-friends-codebox strong,.vqc-friends-invite label{font-weight:900;font-size:15px;color:#306783}
.vqc-friends-codebox p{color:#718390;margin:5px 0 9px;font-size:12px}
.vqc-friends-codebox__row,.vqc-friends-invite__row{display:flex;align-items:center;gap:9px}
.vqc-friends-codebox code{
 flex:1;min-width:0;letter-spacing:2px;font-size:clamp(16px,2.5vw,23px);
 font-weight:900;color:#a06a1c;padding:11px;background:#fffdf1;
 border:2px dashed #e7c36d;border-radius:12px;text-align:center;
 white-space:nowrap;overflow:auto;
}
.vqc-friends-codebox__row button,.vqc-friends-invite__row button{
 padding:11px 16px;flex-shrink:0;min-height:43px;border:0;border-radius:12px;
 font:900 13px "Segoe UI",Arial,sans-serif;color:#fff;cursor:pointer;
 background:linear-gradient(#71bceb,#398dc8);box-shadow:0 3px 0 #2775a8;
}
.vqc-friends-invite label{display:block;margin-bottom:9px}
.vqc-friends-invite input{
 flex:1;min-width:0;height:44px;padding:9px 12px;
 border:2px solid #c7dbed;border-radius:12px;background:#fff;
 font:700 14px "Segoe UI",Arial,sans-serif;letter-spacing:.4px;color:#325e75;
 text-transform:uppercase;
}
.vqc-friends-invite__row button{
 background:linear-gradient(#84d399,#41a76b);box-shadow:0 3px 0 #278653;
}
.vqc-friends-invite small{display:block;color:#798b97;font-size:12px;line-height:1.5;margin-top:9px}
.vqc-friends-tabs{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;
 margin:14px 0 13px;
}
.vqc-friends-tabs button{
 min-width:0;padding:10px 5px;border:2px solid #d5e3ee;border-radius:13px;
 background:#f1f7fb;color:#55748d;font:800 13px "Segoe UI",Arial,sans-serif;
 cursor:pointer;
}
.vqc-friends-tabs button.is-active{
 background:linear-gradient(150deg,#dff2ff,#fff8e3);color:#236e9b;border-color:#80c0e7;
 box-shadow:0 3px 0 #8bc1e2;
}
.vqc-friends-pane[hidden]{display:none!important}
.vqc-friends-list{display:grid;gap:10px;max-height:320px;overflow-y:auto;padding:2px 3px 7px}
.vqc-friends-empty{
 text-align:center;padding:22px 12px;margin:0;border:2px dashed #bcd5e6;
 border-radius:16px;background:#f9fcff;color:#6f8b9e;font-size:14px;line-height:1.6;
}
.vqc-friend-item{
 min-width:0;border:2px solid #d9e9ed;border-radius:16px;
 background:#fff;padding:12px;box-shadow:0 3px 10px #29607812;
}
.vqc-friend-item__heading{display:flex;align-items:center;gap:9px}
.vqc-friend-item__symbol{
 display:grid;place-items:center;width:37px;height:37px;border-radius:12px;
 background:#e6f6ea;font-size:22px;
}
.vqc-friend-item__name{font-weight:900;color:#3a6984;font-size:15px}
.vqc-friend-item__subtitle{margin:5px 0 9px;color:#778e9a;font-size:12px}
.vqc-friend-item__actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;margin-top:9px}
.vqc-friend-action{
 padding:8px 12px;border:1px solid #a9cee8;border-radius:10px;
 background:#eaf6ff;color:#3776a4;font-size:12px;font-weight:900;cursor:pointer;
}
.vqc-friend-action:hover{background:#d4edfe}
.vqc-friend-action.is-danger{background:#fff0eb;border-color:#ebc8c0;color:#a75b49}
.vqc-friend-public{
 display:flex;align-items:center;gap:12px;min-height:65px;padding:9px;
 border-radius:13px;background:#f6fbff;color:#52778b;font-size:12px;
}
.vqc-friend-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid #fff5d3;background:#fff6e5}
.vqc-friend-stats{line-height:1.7;font-weight:700}
.vqc-friends-status{min-height:20px;text-align:center;margin:13px 0 9px;color:#307c66;font-size:13px;font-weight:800;line-height:1.5}
.vqc-friends-status.is-error{color:#ae4838}
.vqc-friends-safety{
 margin:0 0 15px;padding:11px 14px;border-radius:13px;
 background:#ecf5fa;color:#677f91;font-size:12px;line-height:1.6;
}
.vqc-friends-done{
 display:block;margin:0 auto;padding:12px 23px;border:0;border-radius:13px;
 background:linear-gradient(#6ccb83,#349d62);color:#fff;
 font:900 14px "Segoe UI",Arial,sans-serif;box-shadow:0 4px 0 #23804e;cursor:pointer;
}
.vqc-friends-modal button:focus-visible,.vqc-friends-modal input:focus-visible{
 outline:3px solid #3d9ce8;outline-offset:3px;
}
@media(max-width:600px){
 .vqc-friends-modal{padding:9px}
 .vqc-friends-dialog{padding:15px 11px;border-radius:20px;max-height:calc(100dvh - 18px)}
 .vqc-friends-tabs button{font-size:11px}
 .vqc-friends-codebox,.vqc-friends-invite{padding:12px 10px}
 .vqc-friends-codebox__row{flex-wrap:wrap}
 .vqc-friends-codebox__row button{width:100%}
 .vqc-friends-invite__row button{padding:8px 10px;font-size:12px}
 .vqc-friends-codebox code{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 .vqc-friends-modal *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

body > .header{
 min-height:82px;height:auto;flex-wrap:wrap;column-gap:10px;row-gap:7px;
 padding-top:8px;padding-bottom:8px;
}
body > .header #vqcFriendsOpen{margin-left:auto;padding:8px 11px}
body > .header #accountBar{margin-left:0;flex-wrap:wrap;gap:5px}
@media(max-width:800px){
 body > .header{justify-content:center;padding:8px 11px;gap:7px}
 body > .header .logo{margin-right:auto}
 body > .header #vqcFriendsOpen{margin-left:0}
 body > .header #accountUserLabel{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:520px){
 body > .header #vqcFriendsOpen{font-size:12px;padding:7px}
 body > .header #accountBar button{font-size:12px;padding:7px}
}

.vqc-friends-debug{display:flex;flex-direction:column;align-items:center;gap:9px;margin:12px 0 16px}
.vqc-friends-debug__button{
 min-height:38px;padding:8px 17px;border:2px solid #94cde2;border-radius:12px;
 background:#f0faff;color:#32749c;font:800 13px "Segoe UI",Arial,sans-serif;
 cursor:pointer;
}
.vqc-friends-debug__button:hover{background:#def3ff}
.vqc-friends-debug__button:disabled{opacity:.6;cursor:wait}
.vqc-friends-debug__results[hidden]{display:none!important}
.vqc-friends-debug__results{
 box-sizing:border-box;align-self:stretch;margin:0;padding:10px 14px 10px 30px;
 border:2px solid #cfdfed;border-radius:12px;background:#fffdf6;
 color:#486778;font-size:12px;line-height:1.65;text-align:left;
}
.vqc-friends-debug__results li{margin:4px 0;overflow-wrap:anywhere}
.vqc-friends-debug__results li.is-ok{color:#327a50}
.vqc-friends-debug__results li.is-failed{color:#b24736;font-weight:800}

.vqc-friends-found[hidden]{display:none!important}
.vqc-friends-found{margin-top:10px;padding:11px;border:2px solid #addbc5;border-radius:13px;background:#f0fff4;color:#2b7355;font-size:14px}
.vqc-friends-invite__row{flex-wrap:wrap}
.vqc-friends-invite__row input{flex-basis:100%}
.vqc-friends-invite__row button{flex:1}
#vqcFriendsFind{background:linear-gradient(#7bbfe8,#428bc6);box-shadow:0 3px 0 #3275a5}

.vqc-friends-settings-wrap{margin:12px 0}
#vqcFriendsSettingsToggle{border:1px solid #b6d8eb;background:#edf8ff;color:#285c84;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}
.vqc-friends-settings[hidden]{display:none!important}
.vqc-friends-settings{background:#f6fbff;border:1px solid #c6dfee;border-radius:14px;padding:14px;margin-top:8px;display:grid;gap:8px;font-size:14px;color:#28536a}
.vqc-friends-setting-line{display:flex;align-items:center;gap:9px;font-weight:700}
.vqc-friends-setting-line input{width:18px;height:18px;flex:none}
.vqc-friends-settings p{font-size:12px;margin:0 0 6px}
#vqcFriendsView{padding:9px;border-radius:9px;border:1px solid #aac9dc;background:white}
.vqc-friends-compact .vqc-friend-public{display:none}
.vqc-friends-compact .vqc-friend-item{padding:8px 12px}

.vqc-friend-interact{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:9px 0;padding:9px;background:#f5faff;border-radius:11px}
.vqc-friend-phrase{flex:1 1 190px;min-width:0;padding:8px;border:1px solid #bad8ea;border-radius:8px;background:white;color:#28536a}
.vqc-friend-chatline{width:100%;font-size:12px;color:#32728d;margin:4px 0}

.header #accountBar #vqcFriendsOpen{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 position:relative;flex:0 0 auto;margin:0;padding:8px 13px;
 border-radius:12px;border:1px solid #c4dbea;
 background:#eef6fc;color:#245a81;font-weight:750;
 box-shadow:none;white-space:nowrap;min-height:39px;
}
.header #accountBar #vqcFriendsOpen:hover,
.header #accountBar #vqcFriendsOpen:focus-visible{
 background:#dcefff;border-color:#91c0e3;outline-offset:2px;
}
.header #accountBar #vqcFriendsUnread:not([hidden]){
 position:absolute;top:-5px;right:-5px;min-width:10px;min-height:10px;
 border-radius:20px;background:#e84f56;border:2px solid white;
}
@media(max-width:950px){
 .header #accountBar{max-width:none;flex-wrap:wrap;justify-content:flex-end}
}
@media(max-width:600px){
 .header #accountBar #vqcFriendsOpen{min-height:35px;padding:7px 10px;font-size:12px}
 .header #accountBar{max-width:100%;gap:5px}
}
