/* DraftArena v1.6.23 — quiet KTA link footer and independent floating friends shortcut.
   No changes to the draft or matchmaking. */
#main.page-profile .profile-external-kta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  min-height:46px;
  padding:9px 16px;
  margin-top:18px;
  border-top:1px solid #2b3c4f;
  color:#9aafc1;
}
#main.page-profile .profile-external-kta-label {
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em;
  color:#7f96a9;
}
#main.page-profile a.profile-kta-footer-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  color:#b5ccdf;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
#main.page-profile a.profile-kta-footer-link:hover,
#main.page-profile a.profile-kta-footer-link:focus-visible {
  color:#f0f5fa;
  border-color:#a1bdd5;
}
#main.page-profile .profile-friends-dock {
  position:fixed !important;
  z-index:60 !important;
  right:24px;
  bottom:24px;
  width:auto;
  max-width:calc(100vw - 24px);
  pointer-events:none;
}
#main.page-profile .profile-friends-launcher {
  position:relative;
  width:84px;
  height:84px;
  border-radius:15px;
  border:1px solid #54708a;
  background:linear-gradient(150deg,#213b51,#112334 85%);
  color:#ecf4f9;
  box-shadow:0 12px 40px #0009, inset 0 1px rgba(255,255,255,.06);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:3px;
  padding:10px;
  pointer-events:auto;
  cursor:pointer;
}
#main.page-profile .profile-friends-launcher:hover,
#main.page-profile .profile-friends-launcher:focus-visible {
  border-color:#a9c7e0;
  background:linear-gradient(150deg,#2a4861,#162c41);
}
#main.page-profile .profile-friends-launcher strong {font-size:12px;font-weight:800;letter-spacing:.015em}
#main.page-profile .profile-friends-launcher small {font-size:11px;color:#b9cedd}
#main.page-profile .profile-friends-launcher svg{flex-shrink:0}
#main.page-profile .profile-friends-alert {
  position:absolute;
  right:-6px;
  top:-7px;
  display:grid;
  place-items:center;
  min-width:23px;
  height:23px;
  padding:0 5px;
  border-radius:13px;
  border:2px solid #101e2c;
  background:#e9be79;
  color:#101e2c;
  font-size:11px;
  font-weight:900;
}
#main.page-profile .profile-friends-popover {
  position:absolute;
  right:0;
  bottom:calc(100% + 12px);
  width:min(370px,calc(100vw - 30px));
  max-height:min(580px,calc(100dvh - 138px));
  overflow-y:auto;
  overscroll-behavior:contain;
  background:linear-gradient(150deg,#172b3e,#0c1b2b);
  border:1px solid #46627b;
  border-radius:17px;
  box-shadow:0 22px 60px #000b;
  pointer-events:auto;
}
#main.page-profile .profile-friends-popover[hidden]{display:none!important}
#main.page-profile .profile-friends-header {
  position:sticky;
  top:0;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#172b3e;
  padding:12px 16px;
  border-bottom:1px solid #32485c;
  color:#dbe9f5;
  font-size:13px;
}
#main.page-profile .profile-friends-close {
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  background:#1e374d;
  border:1px solid #496379;
  border-radius:8px;
  color:#ecf4fa;
  font-size:23px;
  line-height:1;
  cursor:pointer;
}
#main.page-profile .profile-friends-popover .friends-panel {
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
#main.page-profile .profile-friends-popover .friends-panel .panel-head{padding:12px 16px 3px}
#main.page-profile .profile-friends-popover .friends-panel .panel-head h2{display:none}
#main.page-profile .profile-friends-popover .friends-panel .panel-head span{font-size:11px;color:#9ab1c4}
#main.page-profile .profile-friends-popover .friends-panel .panel-pad{padding:12px 14px 16px}
#main.page-profile .profile-friends-popover .friend-row{gap:8px;padding:9px;flex-wrap:wrap}
#main.page-profile .profile-friends-popover .friend-avatar{width:34px;height:34px}
#main.page-profile .profile-friends-popover .friend-name{font-size:12px}
#main.page-profile .profile-friends-popover .friend-actions{gap:5px;flex:1 0 100%;padding-left:0;justify-content:flex-start}
#main.page-profile .profile-friends-popover .friend-actions .btn{font-size:10px}
@media(max-width:680px){
 #main.page-profile .profile-friends-dock{right:12px;bottom:12px}
 #main.page-profile .profile-friends-launcher{width:64px;height:64px;gap:2px;padding:6px}
 #main.page-profile .profile-friends-launcher svg{width:19px;height:19px}
 #main.page-profile .profile-friends-launcher strong{font-size:10px}
 #main.page-profile .profile-friends-launcher small{font-size:10px}
 #main.page-profile .profile-friends-popover{max-height:calc(100dvh - 105px)}
}
@media(prefers-reduced-motion:reduce){#main.page-profile .profile-friends-launcher{transition:none}}
