/* v20.4.2 - top-right avatar inbox, no changes to Battle cards */
.topbar button[data-v2042-inbox]{position:relative!important;overflow:visible!important;isolation:isolate;cursor:pointer;flex-shrink:0!important}
.topbar button[data-v2042-inbox].v2042-alert::before{content:"";position:absolute;inset:-5px;z-index:-1;border-radius:50%;border:2px solid rgba(60,229,245,.92);box-shadow:0 0 10px rgba(57,221,246,.78);animation:v2042-ring 1.9s ease-in-out infinite;pointer-events:none}
@keyframes v2042-ring{0%,100%{opacity:.65;box-shadow:0 0 6px #23c9e580}45%{opacity:1;box-shadow:0 0 22px #42e5f9e0}}
.topbar .v2042-number{position:absolute;z-index:5;top:-9px;right:-9px;min-width:21px;height:21px;border-radius:999px;padding:0 5px;display:flex;align-items:center;justify-content:center;background:#fa527b;color:white;font-size:10px;line-height:1;font-weight:950;border:2px solid #061421;box-shadow:0 2px 9px #000a}
.topbar .v2042-number[hidden]{display:none!important}
#ttb-v2042-root{position:fixed;inset:0;z-index:110001;pointer-events:none;font-family:inherit;color:#edfaff}
#ttb-v2042-root:not(:empty){pointer-events:auto}
#ttb-v2042-root .v2042-scrim{position:absolute;inset:0;background:rgba(2,7,16,.82);backdrop-filter:blur(6px)}
#ttb-v2042-root .v2042-panel{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:min(420px,calc(100vw - 20px));max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(155deg,#102b3d,#08111f 85%);border:1px solid rgba(61,218,235,.48);border-radius:22px;box-shadow:0 25px 75px #000b}
#ttb-v2042-root .v2042-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:19px 17px 12px;border-bottom:1px solid #ffffff16}
#ttb-v2042-root .v2042-head span{font-size:10px;letter-spacing:.16em;font-weight:950;color:#54dce9}
#ttb-v2042-root h2{font-size:25px;line-height:1.15;margin:6px 0 2px;color:white}
#ttb-v2042-root .v2042-x{border:1px solid #41768b;background:#173447;color:#fff;border-radius:12px;font-size:20px;min-width:42px;height:42px;cursor:pointer}
#ttb-v2042-root .v2042-list{padding:12px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;max-height:65dvh}
#ttb-v2042-root .v2042-item{display:flex;align-items:center;gap:11px;text-align:left;width:100%;margin-bottom:8px;padding:11px 10px;border:1px solid #ffffff19;border-radius:14px;background:#102336;color:#ebf8ff;cursor:pointer;font-family:inherit}
#ttb-v2042-root .v2042-item.unread{background:rgba(27,112,135,.33);border-color:rgba(66,215,231,.52)}
#ttb-v2042-root .v2042-portrait{flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(84,201,231,.46);background:#193848;font-weight:950;color:#fff}
#ttb-v2042-root .v2042-portrait img{width:100%;height:100%;object-fit:cover}
#ttb-v2042-root .v2042-symbol{font-size:20px;color:#50dce9}
#ttb-v2042-root .v2042-copy{flex:1;min-width:0}
#ttb-v2042-root .v2042-copy strong{display:block;font-size:12px;line-height:1.35;color:#fff}
#ttb-v2042-root .v2042-copy small{display:block;font-size:10px;line-height:1.4;color:#a8bdcd;margin-top:4px}
#ttb-v2042-root .v2042-dot{width:8px;height:8px;border-radius:50%;background:#35e2f6;flex-shrink:0}
#ttb-v2042-root .v2042-empty{padding:30px 15px;text-align:center;color:#a6bed0;font-size:12px;line-height:1.6}
#ttb-v2042-root .v2042-foot{padding:12px;display:flex;gap:10px;border-top:1px solid #ffffff16;background:#091723}
#ttb-v2042-root .v2042-foot button{flex:1;min-height:42px;padding:9px;border:1px solid #407185;background:#183247;border-radius:12px;color:#e3faff;font-size:11px;font-weight:900;cursor:pointer}
#ttb-v2042-root .v2042-foot button.primary{background:#37cfdf;color:#061924;border-color:#37cfdf}
@media (prefers-reduced-motion:reduce){.topbar button[data-v2042-inbox].v2042-alert::before{animation:none}}
body.v17-reduced-motion .topbar button[data-v2042-inbox].v2042-alert::before{animation:none}

/* v20.4.2.1 — HOTFIX: the notifications button no longer carries data-nav="profile".
   Previous v19.2/avatar sizing rules targeted only that attribute, which
   allowed the portrait image to expand to its intrinsic dimensions. */
.topbar button[data-v2042-inbox]{
  box-sizing:border-box!important;
  width:36px!important;height:36px!important;
  min-width:36px!important;min-height:36px!important;
  max-width:36px!important;max-height:36px!important;
  flex:0 0 36px!important;padding:3px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:50%!important;overflow:visible!important;
}
.topbar button[data-v2042-inbox] .v190-avatar-face,
.topbar button[data-v2042-inbox] img{
  box-sizing:border-box!important;
  width:26px!important;height:26px!important;
  min-width:26px!important;min-height:26px!important;
  max-width:26px!important;max-height:26px!important;
  flex:0 0 26px!important;object-fit:cover!important;object-position:center!important;
  border-radius:50%!important;display:block!important;
}
.topbar button[data-v2042-inbox] .v61-avatar-letter{font-size:14px!important}
.topbar button[data-v2042-inbox] .v61-avatar-glyph{font-size:20px!important}
.topbar .top-actions-v12.ttb-v194-actions{min-width:0;max-width:calc(100% - 94px)}

/* v20.4.3 — accessible notification categories and read-all toolbar.
   Deliberately does not override the 36px topbar avatar hotfix. */
#ttb-v2042-root .v2043-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px 6px}
#ttb-v2042-root .v2043-toolbar button{font:inherit;font-size:10px;font-weight:900;color:#bff7ff;border:1px solid rgba(68,206,229,.42);background:#143248;border-radius:10px;padding:10px 9px;cursor:pointer;min-height:38px}
#ttb-v2042-root .v2043-toolbar button:disabled{opacity:.45;cursor:default}
#ttb-v2042-root .v2043-toolbar>span{font-size:9px;color:#94b8c8;text-align:right}
#ttb-v2042-root .v2043-tabs{padding:8px 12px 10px;display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;flex-shrink:0;overscroll-behavior-inline:contain}
#ttb-v2042-root .v2043-tabs button{font:inherit;font-size:10px;font-weight:900;white-space:nowrap;min-height:34px;padding:7px 12px;background:#102537;color:#a7bfcb;border:1px solid rgba(90,152,177,.22);border-radius:999px;cursor:pointer;flex-shrink:0}
#ttb-v2042-root .v2043-tabs button.active{background:#34cce0;border-color:#34cce0;color:#041923}
#ttb-v2042-root .v2042-list{max-height:none}
#ttb-v2042-root .v2043-kind-icon{position:absolute;bottom:-2px;right:-3px;min-width:18px;min-height:18px;display:grid;place-items:center;padding:1px;border:1px solid #436981;border-radius:100%;background:#0c2332;color:#b6f3ff;font-size:10px;box-shadow:0 1px 6px #0009}
#ttb-v2042-root .v2042-portrait{position:relative;overflow:visible}
#ttb-v2042-root .v2042-portrait>img{border-radius:50%;overflow:hidden}
#ttb-v2042-root .v2043-kicker{display:block;font-size:9px;letter-spacing:.10em;color:#5cdeed;font-weight:950;margin-bottom:3px}
#ttb-v2042-root .v2042-item{min-height:80px}
@media(max-width:390px){#ttb-v2042-root .v2043-toolbar>span{font-size:8px}#ttb-v2042-root .v2043-toolbar button{font-size:9px;padding:8px 7px}}

/* v21.6.3 compact one-sided notification deletion, not chat deletion */
#ttb-v2042-root .v2163-notification-row{position:relative;margin-bottom:8px}
#ttb-v2042-root .v2163-notification-row .v2042-item{margin-bottom:0;padding-right:35px}
#ttb-v2042-root .v2163-notif-delete{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:23px;height:23px;min-width:23px;min-height:23px;padding:0;border-radius:7px;border:1px solid #ad5e6c;background:#51212d;color:#ffd9e0;font-size:16px;line-height:1;z-index:2;cursor:pointer}
#ttb-v2042-root .v2043-toolbar button[data-v2163-clear-notifications]{min-height:27px;padding:4px 7px;font-size:9px;border-color:#a75b66;background:#441f2b;color:#ffd2d9}
