.gts-account-shell {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11,18,38,.94), rgba(6,11,24,.9));
  box-shadow: 0 14px 40px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.15;
}

.gts-account-shell *,
.gts-account-shell *::before,
.gts-account-shell *::after { box-sizing: border-box; }

.gts-account-shell__brand {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .04em;
}

.gts-account-shell__message-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.gts-account-shell__message-title { font-size: 13px; font-weight: 850; }
.gts-account-shell__message { color: rgba(255,255,255,.64); font-weight: 650; white-space: nowrap; }

.gts-account-shell__user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 0 0 auto;
}

.gts-account-shell__avatar,
.gts-account-shell__avatar-fallback {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  box-shadow: 0 5px 16px rgba(0,0,0,.24);
}

.gts-account-shell__avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
}

.gts-account-shell__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gts-account-shell__name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
  font-size: 13px;
}

.gts-account-shell__caption {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}

.gts-account-shell__divider {
  width: 1px;
  align-self: stretch;
  min-height: 32px;
  background: rgba(255,255,255,.09);
}

.gts-account-shell__providers {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.gts-account-shell__providers::-webkit-scrollbar { display: none; }

.gts-account-shell__provider {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  white-space: nowrap;
}

.gts-account-shell__provider-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 900;
}

.gts-account-shell__provider[data-provider="twitch"] .gts-account-shell__provider-icon { background: rgba(145,71,255,.22); }
.gts-account-shell__provider[data-provider="kick"] .gts-account-shell__provider-icon { background: rgba(83,252,24,.18); }
.gts-account-shell__provider[data-provider="youtube"] .gts-account-shell__provider-icon { background: rgba(255,0,0,.2); }
.gts-account-shell__provider[data-provider="tiktok"] .gts-account-shell__provider-icon { background: rgba(37,244,238,.16); }

.gts-account-shell__provider-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gts-account-shell__provider-label {
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gts-account-shell__provider-value {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 800;
}

.gts-account-shell__provider.is-ready { border-color: rgba(103,232,165,.16); }
.gts-account-shell__provider.is-warning { border-color: rgba(255,209,102,.3); background: rgba(255,209,102,.08); }
.gts-account-shell__provider.is-warning .gts-account-shell__provider-value { color: #ffe29a; }
.gts-account-shell__provider.is-disabled { opacity: .68; }
.gts-account-shell__provider.is-disabled .gts-account-shell__provider-value { color: #cbd5e1; }

.gts-account-shell__actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.gts-account-shell__button,
.gts-account-shell__link {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.gts-account-shell__button:hover,
.gts-account-shell__link:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.2);
}

.gts-account-shell__button:active,
.gts-account-shell__link:active { transform: translateY(1px); }
.gts-account-shell__button:disabled { opacity: .55; cursor: wait; }
.gts-account-shell__button--primary { background: #fff; color: #0b1530; }
.gts-account-shell__button--primary:hover { background: #f1f5f9; }
.gts-account-shell__button--icon { width: 34px; min-width: 34px; padding: 0; font-size: 14px; }

.gts-account-shell-legacy-hidden { display: none !important; }

@media (max-width: 980px) {
  .gts-account-shell {
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    top: max(8px, env(safe-area-inset-top));
    width: auto;
    gap: 7px;
    padding: 7px;
  }
  .gts-account-shell__caption { display: none; }
  .gts-account-shell__name { max-width: 120px; }
  .gts-account-shell__divider { display: none; }
  .gts-account-shell__providers { flex: 1 1 auto; }
  .gts-account-shell__provider-value { max-width: 120px; }
}

@media (max-width: 680px) {
  .gts-account-shell {
    min-height: 48px;
    border-radius: 15px;
  }
  .gts-account-shell__identity { display: none; }
  .gts-account-shell__avatar,
  .gts-account-shell__avatar-fallback { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  .gts-account-shell__provider { min-height: 32px; padding: 4px; gap: 0; }
  .gts-account-shell__provider-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .gts-account-shell__provider-copy { display: none; }
  .gts-account-shell__button--icon { width: 32px; min-width: 32px; min-height: 32px; }
  .gts-account-shell__message { display: none; }
}

@media (max-width: 420px) {
  .gts-account-shell__brand { width: 32px; height: 32px; flex-basis: 32px; }
  .gts-account-shell__providers { gap: 4px; }
  .gts-account-shell__actions { gap: 3px; }
}
