:root {
  --tb-bg: #0d0f1f;
  --tb-bg-2: #12162a;
  --tb-card: rgba(255, 255, 255, 0.065);
  --tb-card-2: rgba(255, 255, 255, 0.095);
  --tb-border: rgba(255, 255, 255, 0.105);
  --tb-text: #f7f7fb;
  --tb-muted: rgba(247, 247, 251, 0.68);
  --tb-soft: rgba(247, 247, 251, 0.42);
  --tb-accent: #f7c948;
  --tb-accent-2: #ffe18a;
  --tb-green: #55d483;
  --tb-blue: #6ea8ff;
  --tb-danger: #ff6b6b;
  --tb-radius-xl: 28px;
  --tb-radius-lg: 22px;
  --tb-radius-md: 16px;
  --tb-header-h: 76px;
  --tb-nav-h: 82px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--tb-bg);
  color: var(--tb-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  min-height: 100dvh;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  font-size: 16px;
}

button {
  touch-action: manipulation;
}

.tb-app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(247, 201, 72, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(85, 212, 131, 0.10), transparent 34%),
    linear-gradient(180deg, #111326 0%, #090b18 100%);
}

.tb-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--tb-header-h) + env(safe-area-inset-top));
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(13, 15, 31, 0.98), rgba(13, 15, 31, 0.78));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.tb-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tb-brand small {
  display: block;
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 600;
}

.tb-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: var(--tb-accent);
  background: linear-gradient(145deg, rgba(247, 201, 72, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(247, 201, 72, 0.20);
}

.tb-svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.tb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--tb-border);
  border-radius: 15px;
  padding: 0;
}

.tb-user-menu {
  position: fixed;
  z-index: 45;
  top: calc(var(--tb-header-h) + env(safe-area-inset-top) - 2px);
  right: 14px;
  width: min(310px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(18, 22, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.tb-user-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tb-user-menu button {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px;
  color: var(--tb-text);
  text-align: left;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.055);
}

.tb-user-menu button:active {
  transform: scale(0.99);
}

.tb-menu-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.15);
}

.tb-user-menu strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;
}

.tb-user-menu small {
  display: block;
  margin-top: 4px;
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.tb-main {
  position: absolute;
  inset: 0;
  padding: calc(var(--tb-header-h) + env(safe-area-inset-top) + 10px) 16px calc(var(--tb-nav-h) + env(safe-area-inset-bottom) + 18px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.tb-page {
  width: min(100%, 980px);
  margin: 0 auto;
  animation: tbEnter 180ms ease-out both;
}

@keyframes tbEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tb-page-head {
  padding: 0 2px 14px;
}


.tb-page-head h1 {
  margin: 0 0 7px;
  font-size: clamp(28px, 9vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.tb-page-head p {
  margin: 0;
  max-width: 680px;
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.48;
}

.tb-grid {
  display: grid;
  gap: 12px;
}

.tb-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 16px;
  border-radius: var(--tb-radius-lg);
  background: linear-gradient(145deg, var(--tb-card), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--tb-border);
}

.tb-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.08);
}

.tb-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tb-card h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.tb-card p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tb-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--tb-green);
  background: rgba(85, 212, 131, 0.11);
  border: 1px solid rgba(85, 212, 131, 0.18);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tb-pill.is-muted {
  color: rgba(247, 247, 251, 0.62);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.105);
}

.tb-home {
  display: grid;
  gap: 12px;
}

.tb-home-hero {
  min-height: 158px;
  padding: 18px;
  border-radius: var(--tb-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(247, 201, 72, 0.20), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(247, 201, 72, 0.18);
  overflow: hidden;
}

.tb-home-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tb-home-hero h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.tb-home-hero p {
  margin: 8px 0 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--tb-green);
  background: rgba(85, 212, 131, 0.12);
  border: 1px solid rgba(85, 212, 131, 0.20);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.tb-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tb-home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 17px;
}

.tb-mini-metric {
  min-height: 68px;
  padding: 11px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-mini-metric strong {
  display: block;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tb-mini-metric span {
  display: block;
  margin-top: 6px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 700;
}

.tb-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 0;
}

.tb-section-title h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.tb-section-title span {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 700;
}

.tb-rich-card {
  padding: 16px;
  border-radius: var(--tb-radius-lg);
  background: linear-gradient(145deg, var(--tb-card), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--tb-border);
}

.tb-rich-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.tb-rich-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-mini-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.12);
  border: 1px solid rgba(247, 201, 72, 0.15);
  flex: 0 0 auto;
}

.tb-mini-icon .tb-svg {
  width: 19px;
  height: 19px;
}

.tb-rich-title h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.tb-rich-title small {
  display: block;
  margin-top: 2px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 700;
}

.tb-role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tb-role-item {
  padding: 10px 7px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.065);
  text-align: center;
}

.tb-role-item strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.tb-role-item span {
  display: block;
  margin-top: 6px;
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 800;
}

.tb-progress {
  height: 10px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.tb-progress-fill {
  height: 100%;
  width: var(--tb-progress-value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tb-accent), var(--tb-green));
}

.tb-war-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.tb-war-stat {
  min-height: 72px;
  padding: 12px;
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.tb-war-stat strong {
  display: block;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tb-war-stat span {
  display: block;
  margin-top: 7px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 800;
}

.tb-war-dynamic {
  cursor: pointer;
}

.tb-countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.tb-time-box {
  padding: 11px 8px;
  border-radius: 16px;
  text-align: center;
  background: rgba(247, 201, 72, 0.10);
  border: 1px solid rgba(247, 201, 72, 0.14);
}

.tb-time-box strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tb-time-box span {
  display: block;
  margin-top: 6px;
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 900;
}

.tb-expand-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 15px;
  color: #111326;
  background: linear-gradient(145deg, var(--tb-accent-2), var(--tb-accent));
  font-size: 13px;
  font-weight: 900;
}

.tb-rivals {
  display: none;
  margin-top: 12px;
  gap: 7px;
}

.tb-rivals.is-open {
  display: grid;
}

.tb-rival-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.tb-rival-row.is-us {
  border-color: rgba(247, 201, 72, 0.22);
  background: rgba(247, 201, 72, 0.08);
}

.tb-rival-pos {
  color: var(--tb-accent);
  font-weight: 950;
  font-size: 13px;
}

.tb-rival-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-rival-fame {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 850;
}

.tb-notifications {
  display: grid;
  gap: 8px;
}

.tb-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.tb-note-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--tb-blue);
  border-radius: 13px;
  background: rgba(110, 168, 255, 0.12);
}

.tb-note-icon .tb-svg {
  width: 20px;
  height: 20px;
  transform: translateY(1px);
}

.tb-note strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
}

.tb-note span {
  display: block;
  margin-top: 4px;
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.35;
}

.tb-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.tb-action {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  color: var(--tb-text);
  text-align: left;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--tb-border);
}

.tb-action .tb-svg {
  width: 19px;
  height: 19px;
  color: var(--tb-accent);
  flex: 0 0 auto;
}

.tb-action span {
  font-size: 12px;
  font-weight: 900;
}



.tb-pill.is-future {
  color: var(--tb-blue);
  background: rgba(110, 168, 255, 0.12);
  border-color: rgba(110, 168, 255, 0.22);
}

.tb-period-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 118px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.10);
  border: 1px solid rgba(247, 201, 72, 0.16);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.tb-trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  min-height: 22px;
  margin-top: 7px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.tb-trend-chip .tb-svg {
  width: 11px;
  height: 11px;
}

.tb-trend-chip span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 950;
}

.tb-trend-chip.is-up {
  color: var(--tb-green);
  background: rgba(85, 212, 131, 0.11);
}

.tb-trend-chip.is-down {
  color: var(--tb-danger);
  background: rgba(255, 107, 107, 0.11);
}

.tb-trend-chip.is-flat {
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.07);
}

.tb-war-page {
  display: grid;
  gap: 12px;
}

.tb-war-hero {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--tb-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(247, 201, 72, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(247, 201, 72, 0.18);
  overflow: hidden;
}

.tb-war-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tb-war-hero h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.tb-war-hero p {
  margin: 8px 0 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tb-war-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 17px;
}

.tb-war-hero-metric {
  min-height: 78px;
  padding: 11px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-war-hero-metric strong {
  display: block;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tb-war-hero-metric span {
  display: block;
  margin-top: 6px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 800;
}

.tb-war-filter-card {
  overflow: visible;
}

.tb-war-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.tb-war-filters label {
  display: grid;
  gap: 7px;
}

.tb-war-filters label span {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 900;
}

.tb-war-filters select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--tb-text);
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 16px;
  outline: none;
  appearance: none;
}

.tb-war-day-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.tb-war-day-card {
  min-height: 92px;
  padding: 12px;
  color: var(--tb-text);
  text-align: left;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--tb-border);
}

.tb-war-day-card.is-active {
  border-color: rgba(247, 201, 72, 0.24);
  background: rgba(247, 201, 72, 0.085);
}

.tb-war-day-card strong {
  display: block;
  color: var(--tb-accent);
  font-size: 21px;
  line-height: 1;
}

.tb-war-day-card span,
.tb-war-day-card em {
  display: block;
  margin-top: 7px;
  color: var(--tb-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.tb-war-day-card:not(.is-active) {
  opacity: 0.58;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
}

.tb-war-day-card:not(.is-active) strong {
  color: rgba(247, 247, 251, 0.52);
}

.tb-breakdown-trends {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.tb-breakdown-trends .tb-trend-chip {
  min-height: 26px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 999px;
}

.tb-breakdown-trends .tb-trend-chip .tb-svg {
  width: 12px;
  height: 12px;
}

.tb-breakdown-trends .tb-trend-chip span {
  font-size: 12px;
}

.tb-war-rank-list {
  display: grid;
  gap: 7px;
}

.tb-war-member-card {
  overflow: hidden;
}

.tb-war-member-card .tb-rich-card-head {
  align-items: center;
}

.tb-war-member-card .tb-rich-title {
  min-width: 0;
}

.tb-war-member-card .tb-rich-title h3 {
  white-space: nowrap;
}

.tb-war-member-card .tb-rich-title small {
  white-space: nowrap;
}

.tb-war-member-list {
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.tb-war-member-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.tb-war-member-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-war-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #101122;
  background: linear-gradient(145deg, var(--tb-accent-2), var(--tb-accent));
  font-size: 15px;
  font-weight: 950;
}

.tb-war-member-row.is-current-user {
  border-color: rgba(247, 201, 72, 0.24);
  background: rgba(247, 201, 72, 0.075);
}

.tb-war-member-row.is-current-user .tb-war-avatar {
  box-shadow: 0 0 0 2px rgba(247, 201, 72, 0.18);
}

.tb-war-member-main strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--tb-text);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-you-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 7px;
  padding: 0 7px;
  border-radius: 999px;
  color: #101122;
  background: linear-gradient(145deg, var(--tb-accent-2), var(--tb-accent));
  font-size: 9.5px;
  font-weight: 950;
  vertical-align: middle;
}

.tb-war-member-main span {
  display: block;
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 800;
}

.tb-war-member-numbers {
  min-width: 60px;
  text-align: right;
}

.tb-war-member-numbers strong {
  display: block;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.tb-war-member-numbers span {
  display: block;
  margin-top: 5px;
  color: var(--tb-muted);
  font-size: 9.5px;
  font-weight: 900;
}

.tb-war-member-days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tb-war-member-days span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.065);
  font-size: 10px;
  font-weight: 900;
}

.tb-war-member-days span.is-selected {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.10);
  border-color: rgba(247, 201, 72, 0.18);
}

@media (min-width: 760px) {
  .tb-war-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .tb-war-hero,
  .tb-war-filter-card,
  .tb-war-member-card {
    grid-column: 1 / -1;
  }

  .tb-war-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .tb-war-day-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-column: 1 / -1;
  }
}

@media (min-width: 1120px) {
  .tb-war-page {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .tb-war-hero,
  .tb-war-filter-card,
  .tb-war-day-grid,
  .tb-war-member-card {
    grid-column: 1 / -1;
  }
}

.tb-bottom-nav {
  position: fixed;
  z-index: 30;
  left: 10px;
  right: 10px;
  bottom: max(8px, env(safe-area-inset-bottom));
  height: var(--tb-nav-h);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 2px;
  padding: 7px 5px;
  border-radius: 28px;
  background: rgba(18, 22, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.tb-nav-item {
  min-width: 0;
  height: 66px;
  padding: 0 2px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 0;
  border-radius: 22px;
  color: var(--tb-soft);
  background: transparent;
  cursor: pointer;
}

.tb-nav-item .tb-svg {
  width: 22px;
  height: 22px;
}

.tb-nav-item span {
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-nav-item.is-active {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.13);
}

.tb-nav-home.is-active {
  color: #101122;
  background: linear-gradient(145deg, var(--tb-accent-2), var(--tb-accent));
  box-shadow: 0 10px 22px rgba(247, 201, 72, 0.18);
}

/* TOPBRS_BETA_FEATURE_LOCK_UI_BA4C4A */
.tb-feature-locked {
  position: relative;
}

.tb-nav-item.tb-feature-locked {
  opacity: .72;
}

.tb-feature-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(255, 214, 102, .24);
  border-radius: 999px;
  color: var(--tb-accent);
  background: rgba(18, 22, 42, .96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .26);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.tb-nav-item .tb-feature-lock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  min-width: 18px;
  padding: 0;
}

.tb-nav-item .tb-feature-lock-badge span {
  display: none;
}

.tb-feature-lock-svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

.tb-nav-item .tb-feature-lock-svg {
  width: 11px;
  height: 11px;
}

html.tb-feature-lock-modal-open {
  overflow: hidden;
}

#tbFeatureLockPortalBA4C4A .tb-feature-lock-backdrop,
#tbFeatureLockPortalBA4C4A .tb-feature-lock-modal {
  position: fixed;
  z-index: 190;
}

#tbFeatureLockPortalBA4C4A .tb-feature-lock-backdrop {
  inset: 0;
  background: rgba(2, 6, 18, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

#tbFeatureLockPortalBA4C4A .tb-feature-lock-modal {
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(94vw, 440px);
  max-height: min(80vh, 620px);
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(255, 214, 102, .2);
  border-radius: 28px;
  color: var(--tb-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 214, 102, .18), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(95, 165, 255, .16), transparent 30%),
    linear-gradient(180deg, rgba(18, 27, 51, .98), rgba(8, 13, 29, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.tb-feature-lock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tb-feature-lock-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 214, 102, .2);
  border-radius: 16px;
  color: var(--tb-accent);
  background: rgba(255, 214, 102, .08);
}

.tb-feature-lock-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.tb-feature-lock-head small {
  display: block;
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: .78rem;
}

.tb-feature-lock-body {
  padding: 16px 18px 4px;
}

.tb-feature-lock-body p {
  margin: 0;
  color: rgba(226, 232, 240, .82);
  font-size: .92rem;
  line-height: 1.45;
}

.tb-feature-lock-actions {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.tb-feature-lock-primary,
.tb-feature-lock-secondary {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  font-weight: 900;
  font-size: .92rem;
}

.tb-feature-lock-primary {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, var(--tb-accent-2), var(--tb-accent));
  box-shadow: 0 12px 24px rgba(247, 201, 72, .18);
}

.tb-feature-lock-secondary {
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--tb-text);
  background: rgba(255, 255, 255, .08);
}

@media (min-width: 760px) {
  .tb-main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .tb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .tb-home-hero,
  .tb-war-dynamic,
  .tb-notification-card {
    grid-column: 1 / -1;
  }

  .tb-bottom-nav {
    left: 50%;
    right: auto;
    width: min(720px, calc(100% - 32px));
    transform: translateX(-50%);
  }
}

@media (min-width: 1120px) {
  .tb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tb-home {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .tb-home-hero {
    grid-column: 1 / -1;
  }

  .tb-war-dynamic,
  .tb-notification-card {
    grid-column: auto;
  }
}

/* TOPBRS_CLASSIFICATION_RICH_STYLE_045 */
.tb-classification-page {
  display: grid;
  gap: 14px;
  padding-bottom: 12px;
}

.tb-class-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(247, 201, 72, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.tb-class-hero-head,
.tb-class-main-top,
.tb-class-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.tb-class-hero h2 {
  margin: 0;
  font-size: clamp(34px, 9.2vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.tb-class-hero p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.tb-class-switches {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.tb-class-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(8, 11, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-class-switch button,
.tb-class-filter-row button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  color: var(--tb-muted);
  background: transparent;
  font-weight: 950;
  font-size: 13px;
}

.tb-class-switch button.is-active,
.tb-class-filter-row button.is-active {
  color: #1c1604;
  background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
  box-shadow: 0 10px 22px rgba(247, 201, 72, 0.18);
}

.tb-class-main-card {
  overflow: hidden;
  display: grid;
  gap: 15px;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(247, 201, 72, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(21, 26, 44, 0.98), rgba(14, 18, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.tb-class-main-top {
  align-items: center;
}

.tb-class-main-top h3 {
  margin: 0 0 5px;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.tb-class-main-top small,
.tb-class-trophy span,
.tb-class-mini-grid span,
.tb-class-summary-card span,
.tb-class-simple-head small {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 850;
}

.tb-class-rank-badge {
  min-width: 92px;
  min-height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #1c1604;
  background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
}

.tb-class-rank-badge small {
  margin-bottom: -12px;
  color: rgba(28, 22, 4, 0.72);
  font-size: 13px;
  font-weight: 950;
}

.tb-class-rank-badge strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
}

.tb-class-rank-row {
  align-items: center;
}

.tb-class-trophy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-class-trophy > .tb-svg {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 18px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.18);
}

.tb-class-trophy strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tb-class-trends {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.tb-class-mini-grid {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 1.15fr;
  gap: 8px;
}

.tb-class-mini-grid div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-class-mini-grid strong {
  font-size: 14px;
  line-height: 1.1;
}

.tb-class-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tb-class-podium {
  display: grid;
  gap: 9px;
}

.tb-class-podium-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-class-podium-item.is-place-1 {
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.18), rgba(255, 255, 255, 0.055));
  border-color: rgba(247, 201, 72, 0.22);
}

.tb-class-medal,
.tb-class-member-pos {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-weight: 1000;
}

.tb-class-medal {
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.2);
}

.tb-class-medal .tb-svg {
  width: 23px;
  height: 23px;
}

.tb-class-medal.is-medal-1 {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.16);
}

.tb-class-medal.is-medal-2 {
  color: #d7deef;
  background: rgba(215, 222, 239, 0.12);
  border-color: rgba(215, 222, 239, 0.18);
}

.tb-class-medal.is-medal-3 {
  color: #d79a5a;
  background: rgba(215, 154, 90, 0.13);
  border-color: rgba(215, 154, 90, 0.18);
}

.tb-class-member-pos {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.18);
}

.tb-class-podium-item strong,
.tb-class-member-main strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}

.tb-class-podium-item small,
.tb-class-member-main small {
  display: block;
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 750;
}

.tb-class-ranking-head,
.tb-class-simple-head {
  align-items: center;
}

.tb-class-ranking-head .tb-rich-title h3,
.tb-class-simple-head .tb-rich-title h3 {
  white-space: nowrap;
}

.tb-class-calendar-btn {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.18);
}

.tb-class-calendar-btn .tb-svg {
  width: 22px;
  height: 22px;
}

.tb-class-period-row {
  margin-top: -4px;
  margin-bottom: 12px;
}

.tb-class-period-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
  border: 1px solid rgba(247, 201, 72, 0.18);
  font-size: 12px;
  font-weight: 950;
}






.tb-class-calendar-section > span {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tb-class-calendar-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.tb-class-calendar-weeks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.tb-class-calendar-months button,
.tb-class-calendar-weeks button,

.tb-class-calendar-months button.is-active,
.tb-class-calendar-weeks button.is-active,

.tb-class-evolution {
  display: grid;
  gap: 9px;
}

.tb-class-evolution > div {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.052);
}

.tb-class-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(8, 11, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-class-member-list {
  max-height: 430px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.tb-class-member-row {
  display: grid;
  grid-template-columns: 42px 42px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-class-member-row.is-current-user {
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.18), rgba(255, 255, 255, 0.055));
  border-color: rgba(247, 201, 72, 0.24);
}

.tb-class-member-score {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.tb-class-member-score strong {
  font-size: 12px;
  white-space: nowrap;
}

.tb-class-member-score .tb-trend-chip {
  min-height: 22px;
  padding: 0 8px;
}

.tb-class-member-score .tb-trend-chip span {
  font-size: 10px;
}

.tb-class-summary-card {
  display: grid;
  gap: 8px;
}

.tb-class-summary-card > strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

@media (max-width: 390px) {
  .tb-class-member-row {
    grid-template-columns: 38px 38px 1fr;
  }

  .tb-class-member-score {
    grid-column: 2 / -1;
    justify-items: start;
  }

  .tb-class-mini-grid {
    grid-template-columns: 1fr;
  }

  .tb-class-hero h2 {
    font-size: 36px;
  }

  .tb-class-main-top h3 {
    font-size: 28px;
  }
}






html.tb-class-modal-open,
html.tb-class-modal-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.tb-class-modal-open .tb-main {
  overflow: hidden;
  touch-action: none;
}

html.tb-class-modal-open {
  overflow: hidden;
  touch-action: none;
}

/* TOPBRS_MEMBERS_RICH_STYLE_066 */
.tb-members-page {
  display: grid;
  row-gap: 20px;
  gap: 20px;
  padding-bottom: 20px;
}

.tb-member-profile-card {
  position: relative;
  overflow: visible;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.115);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.tb-member-cover {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-radius: 28px 28px 18px 18px;
  background: var(--tb-member-bg) center / cover no-repeat;
}

.tb-member-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 18, 0.03), rgba(5, 8, 18, 0.56)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 34%);
}

.tb-member-cover-edit,
.tb-member-avatar-edit {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: #1c1604;
  background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.tb-member-cover-edit {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 15px;
}

.tb-member-cover-edit .tb-svg,
.tb-member-avatar-edit .tb-svg,
.tb-member-profile-mini .tb-svg {
  width: 19px;
  height: 19px;
}

.tb-member-profile-main {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: end;
  gap: 12px;
  padding: 0 14px;
  margin-top: -42px;
}

.tb-member-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.tb-member-avatar-edit {
  right: -4px;
  bottom: -4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.tb-member-profile-info {
  min-width: 0;
  padding-bottom: 7px;
}

.tb-member-profile-info h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.tb-member-profile-info p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 950;
}

.tb-member-tag-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 5px;
}

.tb-member-tag-status > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.tb-member-status-select {
  position: relative;
  flex: 0 0 auto;
}

.tb-member-status-select > button,
.tb-member-status-menu button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  font-weight: 950;
}

.tb-member-status-select > button {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10px;
}

.tb-member-status-select i,
.tb-member-row-side em i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--tb-muted);
  flex: 0 0 auto;
}

.tb-member-status-select i.is-online,
.tb-member-row-side em.is-online i {
  background: var(--tb-green);
}

.tb-member-status-select i.is-away,
.tb-member-row-side em.is-away i {
  background: var(--tb-accent);
}

.tb-member-status-select i.is-busy,
.tb-member-row-side em.is-busy i {
  background: #ff6b6b;
}

.tb-member-status-select i.is-invisible,
.tb-member-row-side em.is-invisible i {
  background: rgba(210, 217, 232, 0.45);
}

.tb-member-status-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 7px);
  width: 132px;
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 16px;
  background: rgba(10, 14, 28, 0.98);
  border: 1px solid rgba(247, 201, 72, 0.16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.tb-member-status-menu button {
  min-height: 30px;
  justify-content: flex-start;
  padding: 0 8px;
  border-radius: 11px;
  color: var(--tb-muted);
  background: transparent;
  font-size: 11px;
}

.tb-member-status-menu button.is-active {
  color: #1c1604;
  background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
}

.tb-member-profile-mini {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 7px;
  padding: 12px 14px 13px;
}

.tb-member-profile-mini div {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-member-profile-mini .tb-svg {
  flex: 0 0 auto;
  color: var(--tb-accent);
}

.tb-member-profile-mini span {
  min-width: 0;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-member-profile-mini strong {
  color: var(--tb-text);
}

.tb-member-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

.tb-member-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tb-member-avatar.is-profile {
  width: 88px;
  height: 88px;
  border-radius: 29px;
}

.tb-member-avatar.is-preview {
  width: 74px;
  height: 74px;
  border-radius: 25px;
}

.tb-member-avatar.is-small {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  box-shadow: none;
  border-width: 1px;
}

.tb-member-summary-card,
.tb-member-list-card {
  overflow: hidden;
}

.tb-member-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tb-member-summary-grid div,
.tb-member-summary-line,
.tb-member-row {
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-member-summary-grid div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px;
  border-radius: 16px;
}

.tb-member-summary-grid strong {
  font-size: 19px;
  line-height: 1;
}

.tb-member-summary-grid span,
.tb-member-summary-line span,
.tb-member-row-main span,
.tb-member-row-main small,
.tb-member-row-side span {
  color: var(--tb-muted);
  font-size: 10.5px;
  font-weight: 800;
}

.tb-member-summary-line {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 15px;
}

.tb-member-summary-line strong {
  font-size: 12px;
  text-align: right;
}

.tb-member-search {
  margin-top: 11px;
}

.tb-member-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  color: var(--tb-text);
  background: rgba(8, 11, 24, 0.48);
  font-size: 14px;
  font-weight: 850;
  outline: none;
}

.tb-member-search input::placeholder {
  color: rgba(210, 217, 232, 0.48);
}

.tb-member-filter-row,
.tb-member-sort-row,
.tb-member-picker-tabs {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(8, 11, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-member-filter-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tb-member-sort-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-member-picker-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tb-member-filter-row button,
.tb-member-sort-row button,
.tb-member-picker-tabs button,
.tb-member-picker-actions button,
.tb-member-avatar-grid button,
.tb-member-bg-option {
  border: 0;
  font-weight: 950;
}

.tb-member-filter-row button,
.tb-member-sort-row button,
.tb-member-picker-tabs button {
  min-height: 35px;
  border-radius: 13px;
  color: var(--tb-muted);
  background: transparent;
  font-size: 11px;
}

.tb-member-filter-row button.is-active,
.tb-member-sort-row button.is-active,
.tb-member-picker-tabs button.is-active {
  color: #1c1604;
  background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
}

.tb-member-list {
  max-height: 560px;
  overflow: auto;
  display: grid;
  row-gap: 12px;
  gap: 12px;
  margin-top: 16px;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.tb-member-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 10px;
  border-radius: 20px;
}

.tb-member-row.is-you {
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.16), rgba(255, 255, 255, 0.052));
  border-color: rgba(247, 201, 72, 0.20);
}

.tb-member-row-main {
  min-width: 0;
}

.tb-member-row-main strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}

.tb-member-row-main span,
.tb-member-row-main small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-member-row-side {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.tb-member-row-side strong {
  font-size: 15px;
}

.tb-member-row-side em {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.tb-member-row-side em.is-online {
  color: var(--tb-green);
  background: rgba(85, 212, 131, 0.12);
}

.tb-member-row-side em.is-away {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.12);
}

.tb-member-row-side em.is-busy {
  color: #ff8a8a;
  background: rgba(255, 107, 107, 0.12);
}

.tb-member-row-side em.is-invisible {
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.07);
}


#tbMemberPickerPortal {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
}

#tbMemberPickerPortal .tb-member-picker-backdrop,
#tbMemberPickerPortal .tb-member-picker {
  pointer-events: auto;
}

.tb-member-picker-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(2, 5, 15, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tb-member-picker {
  position: fixed;
  z-index: 101;
  left: 14px;
  right: 14px;
  top: calc(var(--tb-header-h) + env(safe-area-inset-top) + 8px);
  max-height: calc(100dvh - var(--tb-header-h) - env(safe-area-inset-top) - 24px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(247, 201, 72, 0.11), transparent 34%),
    rgba(10, 14, 28, 0.98);
  border: 1px solid rgba(247, 201, 72, 0.20);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  -webkit-overflow-scrolling: touch;
}

.tb-member-picker-head,
.tb-member-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tb-member-picker-head strong {
  display: block;
  font-size: 18px;
}

.tb-member-picker-head small {
  display: block;
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 800;
}

.tb-member-picker-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
}

.tb-member-picker-preview {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--tb-member-bg) center / cover no-repeat;
}

.tb-member-picker-preview::after,
.tb-member-bg-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.08), rgba(5, 8, 18, 0.62));
}

.tb-member-picker-preview-content {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-member-picker-preview strong {
  display: block;
  font-size: 21px;
}

.tb-member-picker-preview span {
  color: var(--tb-muted);
  font-size: 13px;
  font-weight: 850;
}

.tb-member-picker-section {
  display: grid;
  gap: 8px;
}

.tb-member-picker-section.is-hidden {
  display: none;
}

.tb-member-picker-section > span {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tb-member-avatar-grid,
.tb-member-bg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tb-member-avatar-grid button,
.tb-member-bg-option {
  position: relative;
  overflow: hidden;
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 18px;
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-member-bg-option {
  min-height: 58px;
  align-content: end;
  background: var(--tb-member-bg) center / cover no-repeat;
}

.tb-member-avatar-grid button.is-active,
.tb-member-bg-option.is-active {
  border-color: rgba(247, 201, 72, 0.58);
  box-shadow: inset 0 0 0 1px rgba(247, 201, 72, 0.35), 0 12px 26px rgba(247, 201, 72, 0.12);
}

.tb-member-avatar-grid small,
.tb-member-bg-option small {
  position: relative;
  z-index: 1;
  color: var(--tb-muted);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.tb-member-picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tb-member-picker-actions button {
  min-height: 44px;
  border-radius: 16px;
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.07);
}

.tb-member-picker-actions button:last-child {
  color: #1c1604;
  background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
}

html.tb-member-modal-open,
html.tb-member-modal-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.tb-member-modal-open .tb-main {
  overflow: hidden;
  touch-action: none;
}

html.tb-member-modal-open .tb-bottom-nav {
  display: none !important;
}


html.tb-member-modal-open .tb-member-picker {
  touch-action: pan-y;
}

@media (max-width: 390px) {
  .tb-member-profile-main {
    grid-template-columns: 82px 1fr;
  }

  .tb-member-avatar-wrap,
  .tb-member-avatar.is-profile {
    width: 82px;
    height: 82px;
  }

  .tb-member-avatar.is-profile {
    border-radius: 27px;
  }

  .tb-member-profile-info h2 {
    font-size: 23px;
  }

  .tb-member-profile-mini {
    grid-template-columns: 1fr;
  }

  .tb-member-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-member-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-member-row {
    grid-template-columns: 46px 1fr;
  }

  .tb-member-row-side {
    grid-column: 2 / -1;
    justify-items: start;
  }

  .tb-member-avatar-grid,
  .tb-member-bg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* TOPBRS_MEMBERS_LIST_COMPACT_066 */
.tb-member-summary-grid div {
  position: relative;
  overflow: hidden;
}

.tb-member-summary-grid em {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 11px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.10);
  border: 1px solid rgba(247, 201, 72, 0.16);
}

.tb-member-role-svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: currentColor;
}

.tb-member-list-card .tb-member-search {
  margin-top: 12px;
}

.tb-member-list-card .tb-member-filter-row,
.tb-member-list-card .tb-member-sort-row {
  display: none !important;
}

.tb-member-row {
  grid-template-columns: 46px 1fr;
  min-height: 66px;
  align-items: center;
}

.tb-member-row-main {
  display: grid;
  gap: 3px;
}

.tb-member-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tb-member-row-title strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-member-row-title em {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.tb-member-row-title em i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.tb-member-row-title em.is-online {
  color: var(--tb-green);
  background: rgba(85, 212, 131, 0.12);
}

.tb-member-row-title em.is-online i {
  background: var(--tb-green);
}

.tb-member-row-title em.is-away {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.12);
}

.tb-member-row-title em.is-away i {
  background: var(--tb-accent);
}

.tb-member-row-title em.is-busy {
  color: #ff8a8a;
  background: rgba(255, 107, 107, 0.12);
}

.tb-member-row-title em.is-busy i {
  background: #ff6b6b;
}

.tb-member-row-title em.is-invisible {
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.07);
}

.tb-member-row-title em.is-invisible i {
  background: rgba(210, 217, 232, 0.45);
}

.tb-member-row-main span b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tb-text);
  font-weight: 950;
}

.tb-member-row-main span .tb-member-role-svg {
  width: 13px;
  height: 13px;
  color: var(--tb-accent);
  transform: translateY(2px);
}

.tb-member-row-side {
  display: none !important;
}

.tb-member-row[hidden] {
  display: none !important;
}

/* TOPBRS_WAR_MEMBER_IDENTITY_STYLE_070 */
.tb-war-avatar.is-profile {
  overflow: hidden;
  color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.tb-war-avatar.is-profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-war-member-name {
  display: block;
}

.tb-war-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 999px;
  vertical-align: 1px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.045);
}

.tb-war-status-dot.is-online {
  background: var(--tb-green);
}

.tb-war-status-dot.is-away {
  background: var(--tb-accent);
}

.tb-war-status-dot.is-busy {
  background: #ff6b6b;
}

.tb-war-status-dot.is-invisible {
  background: rgba(210, 217, 232, 0.42);
}

.tb-war-member-main .tb-war-member-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.tb-war-member-main .tb-war-member-role .tb-member-role-svg {
  width: 13px;
  height: 13px;
  color: var(--tb-accent);
  flex: 0 0 auto;
  transform: translateY(1px);
}

/* TOPBRS_CLASS_RANKING_COMPACT_STYLE_080 */
.tb-class-ranking-card .tb-class-member-row {
  grid-template-columns: 42px 38px minmax(0, 1fr);
  min-height: 54px;
  padding: 8px 10px;
  gap: 8px;
}

.tb-class-avatar {
  width: 38px;
  height: 38px;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tb-class-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-class-member-main.is-compact {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tb-class-member-main.is-compact .tb-class-member-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--tb-text);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tb-class-member-main.is-compact .tb-class-member-line > span {
  color: var(--tb-muted);
  font-weight: 900;
}

.tb-class-member-role-inline {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--tb-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tb-class-member-role-inline .tb-member-role-svg {
  width: 13px;
  height: 13px;
  color: var(--tb-accent);
  flex: 0 0 auto;
  transform: translateY(1px);
}

.tb-class-member-main.is-compact small {
  display: block;
  margin-top: 0;
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-class-ranking-card .tb-you-badge {
  min-height: 18px;
  padding: 0 6px;
  font-size: 9px;
}


/* TOPBRS_LEADERSHIP_RICH_STYLE_090 */
.tb-leadership-page {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.tb-leadership-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(247, 201, 72, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(247, 201, 72, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.tb-leadership-eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.12);
  border: 1px solid rgba(247, 201, 72, 0.18);
}

.tb-leadership-hero h2 {
  margin: 10px 0 6px;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.tb-leadership-hero p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.tb-leadership-main-action {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #151008;
  background: linear-gradient(135deg, #ffe08a, var(--tb-accent));
  font-weight: 1000;
  box-shadow: 0 14px 28px rgba(247, 201, 72, 0.18);
}

.tb-leadership-main-action .tb-svg {
  width: 18px;
  height: 18px;
}

.tb-leadership-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tb-leadership-kpis article {
  min-height: 82px;
  padding: 11px 8px;
  border-radius: 20px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-kpis span,
.tb-leadership-kpis small {
  min-width: 0;
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.12;
}

.tb-leadership-kpis strong {
  color: var(--tb-text);
  font-size: 22px;
  line-height: 1;
}

.tb-leadership-grid {
  display: grid;
  gap: 12px;
}

.tb-leadership-card {
  padding: 14px;
}

.tb-leadership-card .tb-rich-card-head {
  margin-bottom: 12px;
}

.tb-leadership-card .tb-rich-title p {
  margin: 3px 0 0;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.tb-leadership-risk-list,
.tb-leadership-movement-list,
.tb-leadership-notice-list,
.tb-leadership-permission-list {
  display: grid;
  gap: 8px;
}

.tb-leadership-risk-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-member-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tb-leadership-page .tb-member-avatar.is-mini {
  width: 36px;
  height: 36px;
  border-radius: 14px;
}

.tb-leadership-member-line strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-leadership-member-line small {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-leadership-member-line .tb-member-role-svg {
  width: 12px;
  height: 12px;
  color: var(--tb-accent);
  flex: 0 0 auto;
}

.tb-leadership-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.28);
}

.tb-leadership-status-dot.is-online {
  background: #41e88f;
  box-shadow: 0 0 0 3px rgba(65, 232, 143, 0.12);
}

.tb-leadership-status-dot.is-away {
  background: #f7c948;
}

.tb-leadership-status-dot.is-busy {
  background: #ff6868;
}

.tb-leadership-status-dot.is-invisible {
  background: rgba(255, 255, 255, 0.28);
}

.tb-leadership-risk-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tb-leadership-risk-main strong {
  font-size: 12px;
}

.tb-leadership-risk-main small {
  color: var(--tb-muted);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
}

.tb-leadership-risk-row > span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-leadership-risk-row.is-critical > span {
  color: #ff8d8d;
  background: rgba(255, 104, 104, 0.12);
  border-color: rgba(255, 104, 104, 0.18);
}

.tb-leadership-risk-row.is-attention > span {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.12);
  border-color: rgba(247, 201, 72, 0.18);
}

.tb-leadership-risk-row.is-protected > span {
  color: #8ee7ff;
  background: rgba(89, 196, 255, 0.12);
  border-color: rgba(89, 196, 255, 0.18);
}

.tb-leadership-risk-row.is-promotion > span {
  color: #7ff0af;
  background: rgba(65, 232, 143, 0.12);
  border-color: rgba(65, 232, 143, 0.18);
}

.tb-leadership-war-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tb-leadership-war-panel div {
  min-height: 76px;
  padding: 10px 8px;
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-war-panel strong {
  font-size: 22px;
  line-height: 1;
}

.tb-leadership-war-panel span {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.tb-leadership-action-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tb-leadership-action-stack.is-inline {
  grid-template-columns: 1fr 1fr;
}

.tb-leadership-action-stack button {
  min-height: 40px;
  border: 1px solid rgba(247, 201, 72, 0.16);
  border-radius: 16px;
  color: var(--tb-text);
  background: rgba(247, 201, 72, 0.09);
  font-weight: 950;
}

.tb-leadership-movement,
.tb-leadership-notice-list > div,
.tb-leadership-permission-list > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-movement {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
}

.tb-leadership-movement > span {
  min-height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 1000;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
}

.tb-leadership-movement strong,
.tb-leadership-notice-list strong,
.tb-leadership-permission-list strong {
  font-size: 13px;
}

.tb-leadership-movement small,
.tb-leadership-notice-list small,
.tb-leadership-permission-list small {
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 750;
}

.tb-leadership-notice-list > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.tb-leadership-notice-list small {
  grid-column: 1 / -1;
}

.tb-leadership-notice-list span {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 1000;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
}

.tb-leadership-report-box {
  padding: 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-report-box strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.tb-leadership-report-box p {
  margin: 7px 0 0;
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.tb-leadership-footer-note {
  padding: 12px 14px;
  border-radius: 20px;
  display: grid;
  gap: 3px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tb-leadership-footer-note strong {
  color: var(--tb-accent);
  font-size: 12px;
}

.tb-leadership-footer-note span {
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

@media (max-width: 390px) {
  .tb-leadership-kpis {
    gap: 6px;
  }

  .tb-leadership-kpis article {
    padding: 10px 6px;
  }

  .tb-leadership-risk-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tb-leadership-risk-row > span {
    width: fit-content;
  }
}


/* TOPBRS_LEADERSHIP_MEMBER_CYCLE_STYLE_091A */
.tb-leadership-cycle-card {
  overflow: hidden;
}

.tb-leadership-cycle-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tb-leadership-cycle-summary div {
  min-height: 64px;
  padding: 9px 8px;
  border-radius: 17px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-cycle-summary strong {
  font-size: 20px;
  line-height: 1;
}

.tb-leadership-cycle-summary span {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

.tb-leadership-cycle-list {
  display: grid;
  gap: 9px;
}

.tb-leadership-cycle-row {
  display: grid;
  gap: 9px;
  padding: 11px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-cycle-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tb-leadership-cycle-top > span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.16);
}

.tb-leadership-cycle-member {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tb-leadership-cycle-member strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-leadership-cycle-member small {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-leadership-cycle-member .tb-member-role-svg {
  width: 12px;
  height: 12px;
  color: var(--tb-accent);
  flex: 0 0 auto;
}

.tb-leadership-cycle-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.16);
  font-size: 14px;
  font-weight: 1000;
}

.tb-leadership-cycle-body {
  display: grid;
  gap: 3px;
}

.tb-leadership-cycle-body strong {
  font-size: 14px;
}

.tb-leadership-cycle-body small,
.tb-leadership-cycle-body p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.32;
  font-weight: 760;
}

.tb-leadership-cycle-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.tb-leadership-cycle-footer span,
.tb-leadership-cycle-footer b {
  min-height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 1000;
}

.tb-leadership-cycle-footer span {
  justify-content: center;
  padding: 0 9px;
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.06);
}

.tb-leadership-cycle-footer b {
  min-width: 0;
  padding: 0 10px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-leadership-cycle-row.is-protected .tb-leadership-cycle-top > span {
  color: #8ee7ff;
  background: rgba(89, 196, 255, 0.12);
  border-color: rgba(89, 196, 255, 0.18);
}

.tb-leadership-cycle-row.is-removed .tb-leadership-cycle-top > span,
.tb-leadership-cycle-row.is-kicked .tb-leadership-cycle-top > span {
  color: #ff8d8d;
  background: rgba(255, 104, 104, 0.12);
  border-color: rgba(255, 104, 104, 0.18);
}

.tb-leadership-cycle-row.is-restored .tb-leadership-cycle-top > span {
  color: #7ff0af;
  background: rgba(65, 232, 143, 0.12);
  border-color: rgba(65, 232, 143, 0.18);
}


/* TOPBRS_LEADERSHIP_CYCLE_FLIP_STYLE_091B */
html.tb-leadership-cycle-modal-open,
html.tb-leadership-cycle-modal-open body {
  overflow: hidden;
}

.tb-leadership-cycle-card {
  position: relative;
  perspective: 1100px;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-face {
  animation: tbLeadershipCycleFlipIn 0.28s ease both;
}

.tb-leadership-cycle-card.is-front-open .tb-leadership-cycle-face {
  animation: tbLeadershipCycleFlipBack 0.22s ease both;
}

@keyframes tbLeadershipCycleFlipIn {
  from {
    opacity: 0.55;
    transform: rotateY(14deg) translateX(18px);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg) translateX(0);
  }
}

@keyframes tbLeadershipCycleFlipBack {
  from {
    opacity: 0.55;
    transform: rotateY(-12deg) translateX(-14px);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg) translateX(0);
  }
}

.tb-leadership-cycle-history-btn {
  border: 1px solid rgba(247, 201, 72, 0.18);
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
}

.tb-leadership-cycle-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-leadership-cycle-calendar-btn,
.tb-leadership-cycle-close-btn,
.tb-leadership-cycle-period-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 201, 72, 0.16);
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
}

.tb-leadership-cycle-close-btn {
  color: #ffb0b0;
  background: rgba(255, 104, 104, 0.1);
  border-color: rgba(255, 104, 104, 0.18);
}

.tb-leadership-cycle-calendar-btn .tb-svg,
.tb-leadership-cycle-close-btn .tb-svg,
.tb-leadership-cycle-period-head .tb-svg {
  width: 17px;
  height: 17px;
}

.tb-leadership-cycle-history-scroll {
  max-height: 430px;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.tb-leadership-cycle-history-group {
  display: grid;
  gap: 8px;
}

.tb-leadership-cycle-history-group h4 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 7px 2px;
  color: var(--tb-accent);
  background: linear-gradient(180deg, rgba(18, 21, 31, 0.98), rgba(18, 21, 31, 0.82));
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tb-leadership-cycle-period-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 6, 12, 0.54);
  backdrop-filter: blur(8px);
}

.tb-leadership-cycle-period-popover {
  position: absolute;
  top: 54px;
  left: 12px;
  right: 12px;
  z-index: 80;
  display: grid;
  gap: 12px;
  padding: 13px;
  border-radius: 22px;
  background: rgba(18, 21, 31, 0.96);
  border: 1px solid rgba(247, 201, 72, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.tb-leadership-cycle-period-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tb-leadership-cycle-period-head strong {
  font-size: 14px;
}

.tb-leadership-cycle-period-block {
  display: grid;
  gap: 8px;
}

.tb-leadership-cycle-period-block > span {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tb-leadership-cycle-period-block > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tb-leadership-cycle-period-block button,
.tb-leadership-cycle-period-apply {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 0 11px;
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.tb-leadership-cycle-period-block button.is-active {
  color: #151008;
  background: var(--tb-accent);
  border-color: rgba(247, 201, 72, 0.32);
}

.tb-leadership-cycle-period-apply {
  width: 100%;
  color: #151008;
  background: linear-gradient(135deg, #ffe08a, var(--tb-accent));
  border: 0;
}

.tb-leadership-cycle-empty {
  padding: 14px;
  border-radius: 18px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px dashed rgba(255, 255, 255, 0.13);
}

.tb-leadership-cycle-empty strong {
  font-size: 13px;
}

.tb-leadership-cycle-empty small {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 760;
}


/* TOPBRS_LEADERSHIP_CYCLE_FILTER_FIX_STYLE_091B2 */
.tb-leadership-cycle-card {
  overflow: visible;
}

.tb-leadership-cycle-card.is-history-open {
  position: relative;
  z-index: 18;
  min-height: 610px;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-face {
  min-height: 570px;
}

.tb-leadership-cycle-card.is-history-open .tb-rich-card-head {
  position: relative;
  z-index: 82;
}

.tb-leadership-cycle-history-scroll {
  min-height: 380px;
}

.tb-leadership-cycle-period-popover {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 90;
  margin: 10px 0 12px;
}

.tb-leadership-cycle-period-block > div {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tb-leadership-cycle-period-block > div::-webkit-scrollbar {
  display: none;
}

.tb-leadership-cycle-period-block button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tb-leadership-cycle-period-block:first-of-type button {
  min-width: 92px;
}

.tb-leadership-cycle-period-block:first-of-type button:first-child {
  min-width: 84px;
}

.tb-leadership-cycle-period-block:nth-of-type(2) button {
  min-width: 56px;
}

.tb-leadership-cycle-empty {
  min-height: 260px;
  align-content: center;
}

@media (max-width: 390px) {
  .tb-leadership-cycle-card.is-history-open {
    min-height: 590px;
  }

  .tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-face {
    min-height: 550px;
  }

  .tb-leadership-cycle-history-scroll {
    min-height: 350px;
    max-height: 410px;
  }
}


/* TOPBRS_LEADERSHIP_CYCLE_HISTORY_HEIGHT_STYLE_091B3 */
.tb-leadership-cycle-card.is-history-open {
  min-height: 720px;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-face {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-history-scroll {
  min-height: 520px;
  max-height: 560px;
  height: 100%;
  align-content: start;
  padding-bottom: 16px;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-history-group:last-child {
  padding-bottom: 8px;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-empty {
  min-height: 500px;
  display: grid;
  align-content: center;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-empty strong {
  font-size: 15px;
}

.tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-empty small {
  font-size: 12px;
}

@media (max-width: 390px) {
  .tb-leadership-cycle-card.is-history-open {
    min-height: 690px;
  }

  .tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-face {
    min-height: 650px;
  }

  .tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-history-scroll {
    min-height: 500px;
    max-height: 540px;
  }

  .tb-leadership-cycle-card.is-history-open .tb-leadership-cycle-empty {
    min-height: 480px;
  }
}


/* TOPBRS_LEADERSHIP_WAR_FOLLOWUP_STYLE_092A */
.tb-leadership-war-follow-card {
  overflow: hidden;
}

.tb-leadership-war-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tb-leadership-war-command div {
  min-height: 72px;
  padding: 9px 7px;
  border-radius: 17px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-war-command span,
.tb-leadership-war-command small {
  min-width: 0;
  color: var(--tb-muted);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
}

.tb-leadership-war-command strong {
  color: var(--tb-text);
  font-size: 19px;
  line-height: 1;
}

.tb-leadership-war-follow-list {
  display: grid;
  gap: 9px;
}

.tb-leadership-war-follow-row {
  display: grid;
  gap: 9px;
  padding: 11px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-war-follow-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tb-leadership-war-follow-top > span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.11);
  border: 1px solid rgba(247, 201, 72, 0.16);
}

.tb-leadership-war-member-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tb-leadership-war-member-line strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-leadership-war-member-line small {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-leadership-war-member-line .tb-member-role-svg {
  width: 12px;
  height: 12px;
  color: var(--tb-accent);
  flex: 0 0 auto;
}

.tb-leadership-war-follow-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.tb-leadership-war-follow-progress div {
  min-width: 54px;
  display: grid;
  gap: 1px;
}

.tb-leadership-war-follow-progress strong {
  font-size: 15px;
}

.tb-leadership-war-follow-progress small {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 800;
}

.tb-leadership-war-follow-progress > span {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.tb-leadership-war-follow-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(247, 201, 72, 0.55), var(--tb-accent));
}

.tb-leadership-war-follow-body {
  display: grid;
  gap: 3px;
}

.tb-leadership-war-follow-body strong {
  font-size: 13px;
}

.tb-leadership-war-follow-body small {
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.32;
  font-weight: 760;
}

.tb-leadership-war-follow-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tb-leadership-war-follow-action span,
.tb-leadership-war-follow-action b {
  min-height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 1000;
}

.tb-leadership-war-follow-action span {
  justify-content: center;
  padding: 0 9px;
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.06);
}

.tb-leadership-war-follow-action b {
  min-width: 0;
  padding: 0 10px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-leadership-war-follow-row.is-critical .tb-leadership-war-follow-top > span {
  color: #ff8d8d;
  background: rgba(255, 104, 104, 0.12);
  border-color: rgba(255, 104, 104, 0.18);
}

.tb-leadership-war-follow-row.is-attention .tb-leadership-war-follow-top > span {
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.12);
  border-color: rgba(247, 201, 72, 0.18);
}

.tb-leadership-war-follow-row.is-protected .tb-leadership-war-follow-top > span {
  color: #8ee7ff;
  background: rgba(89, 196, 255, 0.12);
  border-color: rgba(89, 196, 255, 0.18);
}

.tb-leadership-war-follow-row.is-resolved .tb-leadership-war-follow-top > span {
  color: #7ff0af;
  background: rgba(65, 232, 143, 0.12);
  border-color: rgba(65, 232, 143, 0.18);
}



@media (max-width: 390px) {
  .tb-leadership-war-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* TOPBRS_LEADERSHIP_WAR_PERIOD_STYLE_092B */
html.tb-leadership-war-modal-open,
html.tb-leadership-war-modal-open body {
  overflow: hidden;
}

.tb-leadership-war-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.tb-leadership-war-head .tb-rich-title h3 {
  white-space: nowrap;
  font-size: 20px;
  letter-spacing: -0.045em;
}

.tb-leadership-war-calendar-btn,
.tb-leadership-war-period-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 201, 72, 0.16);
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
}

.tb-leadership-war-calendar-btn .tb-svg,
.tb-leadership-war-period-head .tb-svg {
  width: 17px;
  height: 17px;
}

.tb-leadership-war-period-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 6, 12, 0.54);
  backdrop-filter: blur(8px);
}

.tb-leadership-war-period-popover {
  position: relative;
  z-index: 90;
  display: grid;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 13px;
  border-radius: 22px;
  background: rgba(18, 21, 31, 0.96);
  border: 1px solid rgba(247, 201, 72, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.tb-leadership-war-period-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-leadership-war-period-block {
  display: grid;
  gap: 8px;
}

.tb-leadership-war-period-block > span {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tb-leadership-war-period-block > div {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tb-leadership-war-period-block > div::-webkit-scrollbar {
  display: none;
}

.tb-leadership-war-period-block button,
.tb-leadership-war-period-apply {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 0 11px;
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  white-space: nowrap;
}

.tb-leadership-war-period-block button.is-active {
  color: #151008;
  background: var(--tb-accent);
  border-color: rgba(247, 201, 72, 0.32);
}

.tb-leadership-war-period-apply {
  width: 100%;
  color: #151008;
  background: linear-gradient(135deg, #ffe08a, var(--tb-accent));
  border: 0;
}

.tb-leadership-war-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 11px;
}

.tb-leadership-war-metric {
  min-height: 110px;
  padding: 10px;
  border-radius: 19px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: left;
  color: var(--tb-text);
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tb-leadership-war-metric > span {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1.1;
}

.tb-leadership-war-metric strong {
  font-size: 21px;
  line-height: 1;
}

.tb-leadership-war-metric small {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.15;
}

.tb-leadership-war-metric.is-active {
  border-color: rgba(247, 201, 72, 0.32);
  box-shadow: 0 0 0 1px rgba(247, 201, 72, 0.12), 0 16px 30px rgba(0, 0, 0, 0.22);
}

.tb-leadership-war-metric.is-resolved {
  box-shadow: inset 0 0 28px rgba(65, 232, 143, 0.08);
}

.tb-leadership-war-metric.is-critical {
  box-shadow: inset 0 0 30px rgba(255, 104, 104, 0.1);
}

.tb-leadership-war-metric.is-attention {
  box-shadow: inset 0 0 28px rgba(247, 201, 72, 0.1);
}

.tb-leadership-war-trend {
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 1000;
  background: rgba(255, 255, 255, 0.06);
}

.tb-leadership-war-trend .tb-svg {
  width: 12px;
  height: 12px;
}

.tb-leadership-war-trend small {
  font-size: 8px;
}

.tb-leadership-war-trend.is-up {
  color: #7ff0af;
}

.tb-leadership-war-trend.is-down {
  color: #ff8d8d;
}

.tb-leadership-war-trend.is-flat {
  color: var(--tb-muted);
}

.tb-leadership-war-list-head {
  margin: 3px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.tb-leadership-war-list-head strong {
  font-size: 12px;
}

.tb-leadership-war-list-head span {
  color: var(--tb-accent);
  font-size: 10px;
  font-weight: 1000;
}

.tb-leadership-war-follow-card .tb-leadership-war-follow-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.tb-leadership-war-empty {
  min-height: 240px;
  padding: 14px;
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px dashed rgba(255, 255, 255, 0.13);
}

.tb-leadership-war-empty strong {
  font-size: 13px;
}

.tb-leadership-war-empty small {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 760;
}

@media (max-width: 390px) {
  .tb-leadership-war-head .tb-rich-title h3 {
    font-size: 18px;
  }

  .tb-leadership-war-metric {
    min-height: 104px;
    padding: 9px;
  }

  .tb-leadership-war-metric strong {
    font-size: 19px;
  }

  .tb-leadership-war-follow-card .tb-leadership-war-follow-list {
    max-height: 480px;
  }
}


/* TOPBRS_LEADERSHIP_WAR_HEAD_FIX_STYLE_092B1 */
.tb-leadership-war-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.tb-leadership-war-head .tb-rich-title {
  display: grid;
  grid-template-columns: minmax(128px, 0.82fr) minmax(118px, 0.72fr);
  align-items: start;
  gap: 12px;
}

.tb-leadership-war-head .tb-rich-title h3 {
  white-space: normal;
  max-width: 170px;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.tb-leadership-war-head .tb-rich-title p {
  margin: 1px 0 0;
  max-width: 142px;
  font-size: 11px;
  line-height: 1.22;
  font-weight: 850;
}

.tb-leadership-war-calendar-btn {
  margin-top: 2px;
}

@media (max-width: 390px) {
  .tb-leadership-war-head .tb-rich-title {
    grid-template-columns: minmax(118px, 0.82fr) minmax(108px, 0.72fr);
    gap: 10px;
  }

  .tb-leadership-war-head .tb-rich-title h3 {
    max-width: 154px;
    font-size: 18px;
  }

  .tb-leadership-war-head .tb-rich-title p {
    max-width: 120px;
    font-size: 10.5px;
  }
}


/* TOPBRS_LEADERSHIP_WAR_CALENDAR_PORTAL_STYLE_092B3 */
#tbLeadershipWarPeriodPortal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

#tbLeadershipWarPeriodPortal .tb-leadership-war-period-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  background: rgba(4, 6, 12, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#tbLeadershipWarPeriodPortal .tb-leadership-war-period-popover {
  position: fixed;
  z-index: 2;
  top: var(--tb-war-popup-top, 128px);
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  max-width: 420px;
  max-height: min(70vh, 560px);
  margin: 0 auto;
  overflow-y: auto;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  transform: none;
  border-radius: 24px;
  background: rgba(18, 21, 31, 0.985);
  border: 1px solid rgba(247, 201, 72, 0.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

#tbLeadershipWarPeriodPortal .tb-leadership-war-period-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-bottom: 2px;
  background: linear-gradient(180deg, rgba(18, 21, 31, 0.985), rgba(18, 21, 31, 0.9));
}

html.tb-leadership-war-modal-open,
html.tb-leadership-war-modal-open body {
  overflow: hidden;
}

@media (max-height: 720px) {
  #tbLeadershipWarPeriodPortal .tb-leadership-war-period-popover {
    max-height: min(64vh, 500px);
  }
}

@media (max-width: 390px) {
  #tbLeadershipWarPeriodPortal .tb-leadership-war-period-popover {
    left: 14px;
    right: 14px;
  }
}


/* TOPBRS_LEADERSHIP_WAR_ACTIONS_STABLE_STYLE_092C2 */
.tb-leadership-war-actions {
  margin-top: 12px;
}

.tb-leadership-war-actions button.is-prepared {
  position: relative;
}

.tb-leadership-war-actions button.is-prepared::after {
  content: "em breve";
  position: absolute;
  top: -7px;
  right: 10px;
  min-height: 15px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #151008;
  background: var(--tb-accent);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


/* TOPBRS_AUTH_ONBOARDING_FLOW_STYLE_100B */
.tb-auth-onboarding {
  display: none;
}

html.tb-auth-mode,
html.tb-auth-mode body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--tb-bg);
  overscroll-behavior-x: none;
}

html.tb-auth-mode body > :not(#tbAuthOnboarding):not(script) {
  display: none !important;
}

html.tb-auth-mode .tb-auth-onboarding {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: block;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 8%, rgba(247, 201, 72, 0.16), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(57, 188, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #080b16 0%, #090d1b 100%);
}

.tb-auth-onboarding::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 78%);
}

.tb-auth-orb {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.38;
}

.tb-auth-orb.is-left {
  left: -95px;
  top: 120px;
  background: rgba(247, 201, 72, 0.28);
}

.tb-auth-orb.is-right {
  right: -105px;
  bottom: 70px;
  background: rgba(70, 140, 255, 0.25);
}

.tb-auth-wrap {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 32px), 430px);
  max-width: 100%;
  min-height: calc(100dvh - 44px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 16px;
}

.tb-auth-brand-clean {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-auth-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
  border: 1px solid rgba(247, 201, 72, 0.18);
  box-shadow: inset 0 0 24px rgba(247, 201, 72, 0.08);
}

.tb-auth-brand-mark .tb-svg {
  width: 28px;
  height: 28px;
}

.tb-auth-brand-clean strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.tb-auth-brand-clean small {
  display: block;
  margin-top: 4px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 850;
}

.tb-auth-flow {
  display: grid;
  gap: 14px;
}

.tb-auth-stepper {
  padding: 12px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 30px minmax(16px, 1fr) 30px minmax(16px, 1fr) 30px minmax(16px, 1fr) 30px;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.075);
}

.tb-auth-stepper span {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: rgba(242,244,251,0.62);
  background: rgba(255,255,255,0.055);
  font-size: 12px;
  font-weight: 1000;
}

.tb-auth-stepper span.is-current {
  color: #151008;
  background: var(--tb-accent);
  box-shadow: 0 0 24px rgba(247, 201, 72, 0.16);
}

/* TOPBRS_BETA_AUTH_ONBOARDING_UX_BA4F1B */
.tb-auth-stepper span.is-done {
  color: #77efbd;
  background: rgba(35, 213, 139, 0.12);
  border-color: rgba(35, 213, 139, 0.28);
  box-shadow: 0 0 22px rgba(35, 213, 139, 0.12);
}

.tb-auth-stepper span.is-done .tb-svg {
  width: 16px;
  height: 16px;
}

.tb-auth-stepper i {
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
}

.tb-auth-stepper i.is-done {
  background: linear-gradient(90deg, rgba(35, 213, 139, 0.95), rgba(119, 239, 189, 0.78));
  box-shadow: 0 0 16px rgba(35, 213, 139, 0.18);
}

.tb-auth-panel,
.tb-auth-hint-grid article {
  background:
    radial-gradient(circle at 18% 0%, rgba(247, 201, 72, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.tb-auth-panel {
  position: relative;
  padding: 20px;
  border-radius: 30px;
  display: grid;
  gap: 15px;
}

.tb-auth-panel.is-hero {
  padding-top: 24px;
}

.tb-auth-panel.is-import {
  align-content: start;
}

/* TOPBRS_BETA_AUTH_ONBOARDING_FINAL_UX_BA4F1F */
/* TOPBRS_BETA_AUTH_RECOVERY_UX_BA4F1D */
.tb-auth-panel.is-recovery {
  padding-top: 24px;
}

.tb-auth-kicker {
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.1);
  border: 1px solid rgba(247, 201, 72, 0.16);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-auth-panel h1 {
  margin: 0;
  font-size: 31px;
  line-height: 0.98;
  letter-spacing: 0;
}

.tb-auth-panel p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 760;
}

/* TOPBRS_BETA_AUTH_ONBOARDING_STEPS_UX_BA4F1C */
.tb-auth-panel.is-auth-centered .tb-auth-kicker,
.tb-auth-panel.is-auth-centered > h1,
.tb-auth-panel.is-auth-centered > p {
  justify-self: center;
  text-align: center;
}

.tb-auth-panel.is-auth-centered > p {
  max-width: 37ch;
}

.tb-auth-panel p.tb-auth-subtitle {
  font-size: 12px;
  line-height: 1.38;
}

.tb-auth-form {
  display: grid;
  gap: 12px;
}

.tb-auth-field {
  display: grid;
  gap: 8px;
}

.tb-auth-field > span {
  color: rgba(242, 244, 251, 0.68);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tb-auth-field > div {
  min-height: 56px;
  padding: 0 14px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: rgba(5, 8, 19, 0.62);
  border: 1px solid rgba(255,255,255,0.085);
}

.tb-auth-field .tb-svg {
  width: 22px;
  height: 22px;
  color: var(--tb-accent);
}

.tb-auth-field input,
.tb-auth-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--tb-text);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
}

.tb-auth-field select {
  appearance: none;
}

.tb-auth-field select option {
  color: #101320;
  background: #f7f7fb;
}

.tb-auth-field input::placeholder {
  color: rgba(242,244,251,0.38);
}

.tb-auth-primary,
.tb-auth-ghost {
  width: 100%;
  min-height: 54px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 1000;
}

.tb-auth-primary {
  border: 0;
  color: #151008;
  background: linear-gradient(135deg, #ffe08a, var(--tb-accent));
  box-shadow: 0 18px 38px rgba(247, 201, 72, 0.16);
}

.tb-auth-ghost {
  color: var(--tb-text);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.tb-auth-back {
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--tb-muted);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
  font-size: 11px;
  font-weight: 900;
}

.tb-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(242, 244, 251, 0.82);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.085);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.025);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.tb-auth-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tb-auth-secondary-grid button {
  min-width: 0;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 16px;
  color: var(--tb-text);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
}

.tb-auth-hint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tb-auth-hint-grid article {
  min-height: 78px;
  padding: 11px;
  border-radius: 20px;
  display: grid;
  gap: 6px;
}

.tb-auth-hint-grid strong {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #151008;
  background: var(--tb-accent);
  font-size: 12px;
}

.tb-auth-hint-grid span {
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
}

.tb-auth-note {
  padding: 11px 12px;
  border-radius: 17px;
  color: var(--tb-accent);
  background: rgba(247, 201, 72, 0.09);
  border: 1px solid rgba(247, 201, 72, 0.15);
  font-size: 11px;
  font-weight: 850;
}

.tb-auth-clan-card {
  padding: 14px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.tb-auth-clan-badge {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #151008;
  background: linear-gradient(135deg, #ffe08a, var(--tb-accent));
  font-weight: 1000;
}

/* TOPBRS_BETA_SEARCH_CLAN_MESSAGE_BADGE_BA4E3B */
.tb-auth-clan-badge img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  display: block;
}

.tb-auth-clan-badge svg {
  width: 34px;
  height: 34px;
}

.tb-auth-clan-card strong {
  display: block;
  font-size: 20px;
}

.tb-auth-clan-card span,
.tb-auth-clan-card small {
  display: block;
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 820;
}

.tb-auth-clan-card .tb-auth-clan-badge {
  display: grid;
  color: #151008;
  font-size: inherit;
  font-weight: 1000;
}

.tb-auth-decision-list {
  display: grid;
  gap: 8px;
}

.tb-auth-decision-list div {
  min-height: 52px;
  padding: 10px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.042);
  border: 1px solid rgba(255,255,255,0.07);
}

.tb-auth-decision-list .tb-svg {
  width: 22px;
  height: 22px;
  color: var(--tb-accent);
  grid-row: span 2;
}

.tb-auth-decision-list span {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 850;
}

.tb-auth-decision-list strong {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 1000;
}

.tb-auth-import-center {
  display: grid;
  place-items: center;
  padding: 8px 0 2px;
}

.tb-auth-import-ring {
  width: 168px;
  height: 168px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--tb-accent) var(--tb-auth-progress), rgba(255,255,255,0.08) 0);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.tb-auth-import-ring > div {
  width: 124px;
  height: 124px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: #0a0e1d;
  border: 1px solid rgba(255,255,255,0.08);
}

.tb-auth-import-ring strong {
  font-size: 26px;
  line-height: 1;
}

.tb-auth-import-ring span {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 1000;
}

.tb-auth-import-status {
  padding: 12px;
  border-radius: 20px;
  display: grid;
  gap: 4px;
  text-align: center;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.tb-auth-import-status strong {
  font-size: 14px;
}

.tb-auth-import-status span {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 780;
}

.tb-auth-import-list {
  max-height: 230px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 7px;
  padding-right: 2px;
}

.tb-auth-import-member {
  min-height: 48px;
  padding: 8px;
  border-radius: 17px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.065);
}

.tb-auth-import-member > span {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #151008;
  background: var(--tb-accent);
  font-size: 11px;
  font-weight: 1000;
}

.tb-auth-import-member strong {
  display: block;
  font-size: 13px;
}

.tb-auth-import-member small {
  display: block;
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 780;
}

.tb-auth-import-member em {
  color: var(--tb-accent);
  font-style: normal;
  font-size: 11px;
  font-weight: 1000;
}

@media (max-width: 380px) {
  .tb-auth-wrap {
    width: min(calc(100vw - 24px), 420px);
  }

  .tb-auth-panel {
    padding: 18px;
  }

  .tb-auth-panel h1 {
    font-size: 28px;
  }

  .tb-auth-secondary-grid,
  .tb-auth-hint-grid {
    grid-template-columns: 1fr;
  }

  .tb-auth-hint-grid article {
    min-height: 56px;
  }
}


/* TOPBRS_AUTH_MEMBER_REGISTER_VALIDATION_STYLE_100C */
/* TOPBRS_BETA_AUTH_MEMBER_REGISTER_UX_BA4F1E */
.tb-auth-member-panel {
  align-content: start;
}

.tb-auth-member-form {
  gap: 11px;
}

.tb-auth-field-action > div {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

.tb-auth-field-action button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 13px;
  color: #151008;
  background: var(--tb-accent);
  border: 0;
  font-size: 10px;
  font-weight: 1000;
  white-space: nowrap;
}

.tb-auth-field-readonly input {
  color: rgba(242, 244, 251, 0.58);
}

.tb-auth-field-readonly.is-filled > div {
  border-color: rgba(35, 213, 139, 0.28);
  background: rgba(35, 213, 139, 0.065);
}

.tb-auth-field-readonly.is-filled input {
  color: var(--tb-text);
}

.tb-auth-validation {
  margin-top: -5px;
  padding: 9px 10px;
  border-radius: 15px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 880;
}

.tb-auth-validation.is-waiting {
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.tb-auth-validation.is-ok {
  color: #77efbd;
  background: rgba(35, 213, 139, 0.075);
  border: 1px solid rgba(35, 213, 139, 0.16);
}

.tb-auth-validation.is-bad {
  color: #ff9b9b;
  background: rgba(255, 83, 83, 0.075);
  border: 1px solid rgba(255, 83, 83, 0.16);
}

.tb-auth-form-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
}

.tb-auth-primary:disabled {
  opacity: 0.42;
  filter: grayscale(0.4);
  box-shadow: none;
}

.tb-auth-lock-note {
  padding: 10px 11px;
  border-radius: 16px;
  color: var(--tb-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.065);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}

.tb-auth-lock-note.is-ok {
  color: #77efbd;
  background: rgba(35, 213, 139, 0.075);
  border-color: rgba(35, 213, 139, 0.16);
}

/* TOPBRS_BETA_SUBSCRIBE_PLANS_SCREEN_BA5D_A */
.tb-auth-plans-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 6%, rgba(247, 201, 72, 0.15), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(57, 188, 255, 0.12), transparent 34%),
    rgba(7, 10, 22, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.tb-auth-plans-screen .tb-auth-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 3;
}

.tb-auth-plans-shell {
  width: min(calc(100vw - 28px), 520px);
  max-height: min(calc(100dvh - 28px), 760px);
  padding: 18px;
  border-radius: 30px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(247, 201, 72, 0.12), transparent 32%),
    rgba(12, 16, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.tb-auth-plans-heading {
  display: grid;
  gap: 9px;
  justify-items: center;
  text-align: center;
  padding: 8px 32px 0;
}

.tb-auth-plans-heading h1 {
  margin: 0;
  max-width: 11ch;
  font-size: 30px;
  line-height: 0.98;
  letter-spacing: 0;
}

.tb-auth-plans-heading p {
  margin: 0;
  max-width: 38ch;
  color: var(--tb-muted);
  font-size: 12px;
  line-height: 1.36;
  font-weight: 760;
}

.tb-auth-plans-steps {
  min-height: 44px;
  padding: 5px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.tb-auth-plans-steps button {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 14px;
  color: rgba(242,244,251,0.68);
  background: transparent;
  font-size: 11px;
  font-weight: 950;
}

.tb-auth-plans-steps button span {
  width: 19px;
  height: 19px;
  margin-right: 4px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.07);
  font-size: 10px;
}

.tb-auth-plans-steps button.is-current {
  color: #151008;
  background: var(--tb-accent);
}

.tb-auth-plans-steps button.is-done {
  color: #77efbd;
  background: rgba(35, 213, 139, 0.08);
}

.tb-auth-plans-content {
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 1px;
}

.tb-auth-plan-picker,
.tb-auth-plan-detail,
.tb-auth-plan-summary {
  display: grid;
  gap: 11px;
}

.tb-auth-plan-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(138px, 1fr);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

/* TOPBRS_BETA_SUBSCRIBE_PLANS_FLIP_PRICING_BA5D_C */
/* TOPBRS_BETA_SUBSCRIBE_PLANS_FLIP_REFINEMENT_BA5D_D */
.tb-auth-plan-card {
  height: 118px;
  border-radius: 20px;
  position: relative;
  color: var(--tb-text);
  perspective: 1100px;
  perspective-origin: center center;
  scroll-snap-align: start;
  overflow: hidden;
}

.tb-auth-plan-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.36s cubic-bezier(0.2, 0.72, 0.22, 1);
  will-change: transform;
}

.tb-auth-plan-card.is-flipped .tb-auth-plan-card-inner {
  transform: rotateY(-180deg);
}

.tb-auth-plan-card-face {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 11px;
  border-radius: 20px;
  display: grid;
  gap: 6px;
  align-content: center;
  overflow: hidden;
  text-align: left;
  color: var(--tb-text);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  transform: rotateY(0deg) translateZ(0.1px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

button.tb-auth-plan-card-face {
  font: inherit;
}

.tb-auth-plan-card-back {
  padding: 8px;
  transform: rotateY(180deg) translateZ(0.1px);
  pointer-events: none;
}

.tb-auth-plan-card.is-flipped .tb-auth-plan-card-front {
  pointer-events: none;
}

.tb-auth-plan-card.is-flipped .tb-auth-plan-card-back {
  pointer-events: auto;
}

.tb-auth-plan-card-front > span,
.tb-auth-plan-detail-head span,
.tb-auth-plan-info-grid span,
.tb-auth-plan-summary-card span,
.tb-auth-plan-next-step span {
  color: var(--tb-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tb-auth-plan-card strong {
  font-size: 19px;
  line-height: 1;
}

.tb-auth-plan-card small {
  color: rgba(242,244,251,0.68);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 820;
}

.tb-auth-plan-card.is-selected .tb-auth-plan-card-face {
  color: #151008;
  background: linear-gradient(135deg, #ffe08a, var(--tb-accent));
  border-color: rgba(247, 201, 72, 0.75);
  box-shadow: 0 18px 38px rgba(247, 201, 72, 0.16);
}

.tb-auth-plan-card.is-selected .tb-auth-plan-card-front > span,
.tb-auth-plan-card.is-selected .tb-auth-plan-card-front small {
  color: rgba(21, 16, 8, 0.72);
}

.tb-auth-plan-card.is-premium:not(.is-selected) .tb-auth-plan-card-face {
  border-color: rgba(247, 201, 72, 0.2);
  background:
    linear-gradient(180deg, rgba(247, 201, 72, 0.075), rgba(255,255,255,0.045));
}

.tb-auth-plan-period-list {
  height: 100%;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-content: stretch;
  overflow: hidden;
}

.tb-auth-plan-period-option {
  min-height: 24px;
  padding: 0 7px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--tb-text);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.tb-auth-plan-period-option span,
.tb-auth-plan-period-option strong {
  min-width: 0;
  color: inherit;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.tb-auth-plan-period-option span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.tb-auth-plan-period-option strong {
  font-size: 10px;
  font-weight: 1000;
  white-space: nowrap;
}

.tb-auth-plan-card.is-selected .tb-auth-plan-period-option {
  color: #151008;
  background: rgba(21, 16, 8, 0.08);
  border-color: rgba(21, 16, 8, 0.16);
}

.tb-auth-plan-card.is-selected .tb-auth-plan-period-option.is-active {
  color: #fff8e5;
  background: rgba(21, 16, 8, 0.92);
  border-color: rgba(21, 16, 8, 0.92);
}

.tb-auth-plan-selected-note,
.tb-auth-plan-detail-head,
.tb-auth-plan-summary-card,
.tb-auth-plan-next-step {
  padding: 12px;
  border-radius: 20px;
  display: grid;
  gap: 4px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.tb-auth-plan-selected-note span {
  color: var(--tb-accent);
  font-size: 11px;
  font-weight: 1000;
}

.tb-auth-plan-selected-note strong,
.tb-auth-plan-info-grid strong {
  color: var(--tb-text);
  font-size: 12px;
  line-height: 1.3;
}

.tb-auth-plan-detail-head strong,
.tb-auth-plan-summary-card strong {
  font-size: 20px;
  line-height: 1.05;
}

.tb-auth-plan-detail-head small,
.tb-auth-plan-summary-card small {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 820;
}

.tb-auth-plan-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tb-auth-plan-info-grid article {
  min-height: 84px;
  padding: 11px;
  border-radius: 18px;
  display: grid;
  gap: 5px;
  align-content: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.065);
}

.tb-auth-plan-compare-toggle {
  min-height: 40px;
  border-radius: 16px;
  color: var(--tb-text);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 950;
}

.tb-auth-plan-compare {
  display: grid;
  gap: 7px;
}

.tb-auth-plan-compare article {
  padding: 10px;
  border-radius: 17px;
  display: grid;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.065);
}

.tb-auth-plan-compare article.is-selected {
  border-color: rgba(247, 201, 72, 0.26);
  background: rgba(247, 201, 72, 0.07);
}

.tb-auth-plan-compare article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tb-auth-plan-compare strong {
  font-size: 12px;
}

.tb-auth-plan-compare span,
.tb-auth-plan-compare p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 820;
}

.tb-auth-plan-summary {
  text-align: left;
}

.tb-auth-plan-payment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tb-auth-plan-payment-button .tb-svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.tb-auth-plan-next-step {
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
}

.tb-auth-plan-next-step .tb-svg {
  width: 24px;
  height: 24px;
  color: var(--tb-accent);
}

.tb-auth-plan-next-step strong {
  font-size: 14px;
}

/* TOPBRS_BETA_MP_SANDBOX_FRONT_CHECKOUT_BA5E_C */
.tb-auth-checkout-card {
  width: min(calc(100vw - 32px), 440px);
}

.tb-auth-checkout-form {
  gap: 10px;
}

.tb-auth-checkout-plan {
  width: 100%;
  padding: 11px 12px;
  border-radius: 18px;
  display: grid;
  gap: 4px;
  text-align: left;
  background: rgba(247, 201, 72, 0.075);
  border: 1px solid rgba(247, 201, 72, 0.22);
}

.tb-auth-checkout-plan span {
  color: rgba(242,244,251,0.68);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tb-auth-checkout-plan strong {
  color: var(--tb-text);
  font-size: 13px;
  line-height: 1.2;
}

.tb-auth-checkout-plan small {
  color: #ffe08a;
  font-size: 11px;
  font-weight: 920;
}

.tb-auth-checkout-actions {
  grid-template-columns: 0.78fr 1fr 1.18fr;
  gap: 8px;
}

.tb-auth-checkout-actions button {
  min-width: 0;
  padding-inline: 10px;
  font-size: 11px;
  white-space: normal;
  line-height: 1.15;
}

@media (max-width: 380px) {
  .tb-auth-plans-screen {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .tb-auth-plans-shell {
    width: min(calc(100vw - 20px), 420px);
    padding: 14px;
    border-radius: 26px;
    gap: 10px;
  }

  .tb-auth-plans-heading {
    padding-inline: 28px;
    gap: 7px;
  }

  .tb-auth-plans-heading h1 {
    font-size: 25px;
  }

  .tb-auth-plans-heading p {
    font-size: 11px;
  }

  .tb-auth-plan-track {
    grid-auto-columns: minmax(128px, 74%);
  }

  .tb-auth-plan-info-grid {
    grid-template-columns: 1fr;
  }

  .tb-auth-checkout-card {
    width: min(calc(100vw - 24px), 420px);
  }

  .tb-auth-checkout-actions {
    grid-template-columns: 1fr;
  }
}

/* TOPBRS_BETA_TRIAL_REQUEST_MODAL_BA5B */
.tb-auth-trial-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.tb-auth-trial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.76);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.tb-auth-trial-card {
  width: min(calc(100vw - 32px), 430px);
  max-height: min(calc(100dvh - 32px), 760px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  align-content: start;
  padding-top: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(247, 201, 72, 0.14), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(57, 188, 255, 0.10), transparent 30%),
    rgba(12, 16, 32, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.tb-auth-trial-card .tb-auth-close {
  z-index: 2;
}

.tb-auth-trial-form {
  gap: 11px;
}

/* TOPBRS_BETA_TRIAL_REQUEST_MODAL_REFINEMENTS_BA5B2 */
.tb-auth-field-locked-plan > div {
  border-color: rgba(35, 213, 139, 0.22);
  background: rgba(35, 213, 139, 0.055);
}

.tb-auth-field-locked-plan select:disabled {
  color: var(--tb-text);
  opacity: 1;
}

.tb-auth-trial-card .tb-auth-form-actions {
  margin-top: 2px;
}

@media (max-width: 380px) {
  .tb-auth-trial-modal {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .tb-auth-trial-card {
    width: min(calc(100vw - 24px), 420px);
  }
}

/* TOPBRS_BETA_CLASSIFICATION_CALENDAR_ANCHORED_103D */
.tb-class-ranking-card {
  position: relative;
  overflow: visible;
}

.tb-class-calendar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 35;
  border-radius: inherit;
  background: rgba(3, 6, 18, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tb-class-calendar-popover {
  position: absolute;
  top: 78px;
  right: 22px;
  z-index: 45;
  width: min(86vw, 520px);
  border: 1px solid rgba(255, 208, 73, 0.30);
  border-radius: 28px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 205, 62, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(17, 21, 40, 0.98), rgba(9, 13, 29, 0.98));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tb-class-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.tb-class-calendar-head strong {
  max-width: 62%;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.18;
}

.tb-class-calendar-head small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  font-weight: 900;
  text-align: right;
}

.tb-class-calendar-section {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.tb-class-calendar-section span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-class-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tb-class-month-grid button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 0.94rem;
  font-weight: 950;
  text-align: center;
}

.tb-class-month-grid button.is-active {
  border-color: rgba(255, 213, 74, 0.92);
  color: #151108;
  background: linear-gradient(135deg, #ffd94d, #ffbf36);
  box-shadow: 0 10px 24px rgba(255, 196, 54, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.tb-class-calendar-apply {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  color: #151108;
  background: linear-gradient(135deg, #ffd94d, #ffcf6b);
  box-shadow: 0 12px 28px rgba(255, 196, 54, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 0.98rem;
  font-weight: 950;
}

@media (max-width: 520px) {
  .tb-class-calendar-popover {
    top: 72px;
    right: 14px;
    left: 14px;
    width: auto;
    padding: 20px;
  }

  .tb-class-month-grid {
    gap: 8px;
  }

  .tb-class-month-grid button {
    min-height: 48px;
    border-radius: 15px;
  }
}



/* TOPBRS_BETA_LEADERSHIP_ATTENTION_REAL_STYLE_105J1C */
.tb-leadership-attention-kpis article {
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.tb-leadership-attention-kpis article.is-active {
  border-color: rgba(251, 191, 36, .58);
  background: rgba(251, 191, 36, .10);
  transform: translateY(-1px);
}

.tb-leadership-attention-head {
  align-items: flex-start;
  gap: 14px;
}

.tb-leadership-attention-head .tb-rich-title {
  min-width: 0;
  flex: 1;
}

.tb-leadership-attention-head .tb-pill {
  white-space: nowrap;
  margin-top: 2px;
}

.tb-leadership-attention-card .tb-leadership-risk-list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.tb-leadership-risk-empty {
  border: 1px dashed rgba(148, 163, 184, .30);
  border-radius: 18px;
  padding: 16px;
  color: rgba(226, 232, 240, .82);
}

.tb-leadership-risk-empty strong {
  display: block;
  font-size: .92rem;
  margin-bottom: 4px;
}

.tb-leadership-risk-empty small {
  color: rgba(148, 163, 184, .78);
}



/* TOPBRS_FRONT_HIDE_WAR_MINICARDS_CSS_105L2F42D1H */
.tb-war-day-grid {
  display: none !important;
}


/* TOPBRS_FRONT_WAR_TEMPORAL_CHIP_STYLE_105L2F42D2B */
.tb-pill.is-tomorrow {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.38);
}

.tb-pill.is-future {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.36);
}


/* TOPBRS_HOME_SYSTEM_EVENTS_CARD_STYLE_105L2F43E1A3 */
.tb-system-events-card .tb-rich-card-head {
  align-items: flex-start;
}

.tb-system-events {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.tb-system-event-note {
  align-items: flex-start;
}

.tb-system-event-note.is-new {
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.28);
}

.tb-system-event-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tb-note-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.tb-note-meta {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-style: normal;
  color: rgba(226, 232, 240, 0.58);
}


/* TOPBRS_HOME_SYSTEM_EVENTS_SCROLL_TOUCH_105L2F43F1B2 */
.tb-system-events {
  -webkit-overflow-scrolling: touch;
}

/* TOPBRS_BETA_HOME_EVENTS_TIMELINE_EVENT_A */
.tb-system-events-flip-btn {
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, .22);
  font: inherit;
}

.tb-system-events-flip-stage {
  height: clamp(258px, 42vh, 360px);
  perspective: 1000px;
}

.tb-system-events-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .45s ease;
}

.tb-system-events-card.is-flipped .tb-system-events-flip-inner {
  transform: rotateY(180deg);
}

.tb-system-events-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tb-system-events-front .tb-system-events,
.tb-system-events-back .tb-system-events-timeline {
  flex: 1;
  min-height: 0;
  max-height: none;
}

.tb-system-events-back {
  transform: rotateY(180deg);
}

.tb-system-events-timeline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(226, 232, 240, .92);
}

.tb-system-events-timeline-head strong {
  display: block;
  font-size: .96rem;
}

.tb-system-events-timeline-head small {
  display: block;
  margin-top: 2px;
  color: rgba(148, 163, 184, .78);
}

.tb-system-events-timeline {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.tb-system-events-timeline-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .62);
  border: 1px solid rgba(148, 163, 184, .12);
}

.tb-system-events-timeline-row strong,
.tb-system-events-timeline-row span,
.tb-system-events-timeline-row em {
  display: block;
}

.tb-system-events-timeline-row strong {
  color: rgba(248, 250, 252, .94);
  font-size: .9rem;
}

.tb-system-events-timeline-row span {
  margin-top: 3px;
  color: rgba(203, 213, 225, .78);
  font-size: .82rem;
  line-height: 1.34;
}

.tb-system-events-timeline-row em {
  margin-top: 5px;
  font-style: normal;
  color: rgba(125, 211, 252, .76);
  font-size: .76rem;
}


/* TOPBRS_MEMBER_REAL_PROFILE_MODAL_STYLE_105L2A3B */
#tbMemberProfilePortal .tb-member-real-backdrop,
#tbMemberProfilePortal .tb-member-real-modal {
  position: fixed;
  z-index: 180;
}

#tbMemberProfilePortal .tb-member-real-backdrop {
  inset: 0;
  background: rgba(2, 6, 18, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

#tbMemberProfilePortal .tb-member-real-modal {
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(94vw, 520px);
  max-height: min(86vh, 760px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 214, 102, .2);
  border-radius: 28px;
  overflow: hidden;
  color: var(--tb-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 214, 102, .18), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(95, 165, 255, .16), transparent 30%),
    linear-gradient(180deg, rgba(18, 27, 51, .98), rgba(8, 13, 29, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.tb-member-real-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tb-member-real-head strong {
  display: block;
  font-size: 1.02rem;
}

.tb-member-real-head small {
  display: block;
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: .78rem;
}

.tb-member-real-head button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: var(--tb-text);
  background: rgba(255, 255, 255, .08);
  font-size: 1.4rem;
  line-height: 1;
}

.tb-member-real-body {
  max-height: calc(min(86vh, 760px) - 70px);
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.tb-member-real-hero,
.tb-member-real-section,
.tb-member-real-favourite,
.tb-member-real-error,
.tb-member-real-loading {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.tb-member-real-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.tb-member-real-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.tb-member-real-fav-float {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(5, 10, 24, .92);
  border: 1px solid rgba(255, 214, 102, .28);
}

.tb-member-real-fav-float img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tb-member-real-title {
  min-width: 0;
}

.tb-member-real-title strong {
  display: block;
  font-size: 1.16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-member-real-title span,
.tb-member-real-title small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--tb-muted);
  font-size: .82rem;
}

.tb-member-real-mini,
.tb-member-real-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.tb-member-real-stat {
  min-width: 0;
  padding: 11px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .075);
}

.tb-member-real-stat strong,
.tb-member-real-stat span,
.tb-member-real-stat small {
  display: block;
}

.tb-member-real-stat strong {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-member-real-stat span,
.tb-member-real-stat small {
  margin-top: 4px;
  color: var(--tb-muted);
  font-size: .72rem;
  line-height: 1.15;
}

.tb-member-real-section {
  padding: 13px;
  margin-top: 12px;
}

.tb-member-real-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.tb-member-real-section-head h4 {
  margin: 0;
  font-size: .92rem;
}

.tb-member-real-section-head span {
  color: var(--tb-muted);
  font-size: .72rem;
}

.tb-member-real-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tb-member-real-card {
  min-width: 0;
  padding: 7px 5px 8px;
  border-radius: 15px;
  text-align: center;
  background: rgba(4, 9, 22, .45);
  border: 1px solid rgba(255, 255, 255, .08);
}

.tb-member-real-card img {
  width: 100%;
  max-width: 58px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .28));
}

.tb-member-real-card strong,
.tb-member-real-card span {
  display: block;
}

.tb-member-real-card strong {
  margin-top: 3px;
  font-size: .66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-member-real-card span {
  margin-top: 2px;
  color: var(--tb-muted);
  font-size: .6rem;
}

.tb-member-real-favourite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
}

.tb-member-real-favourite img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.tb-member-real-favourite strong,
.tb-member-real-favourite span {
  display: block;
}

.tb-member-real-favourite span {
  margin-top: 4px;
  color: var(--tb-muted);
  font-size: .76rem;
}

.tb-member-real-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tb-member-real-badge {
  min-width: 0;
  padding: 9px 6px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
}

.tb-member-real-badge img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.tb-member-real-badge strong,
.tb-member-real-badge span {
  display: block;
}

.tb-member-real-badge strong {
  margin-top: 5px;
  font-size: .64rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-member-real-badge span {
  margin-top: 2px;
  color: var(--tb-muted);
  font-size: .59rem;
}

.tb-member-real-achievements {
  display: grid;
  gap: 8px;
}

.tb-member-real-achievements div {
  padding: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}

.tb-member-real-achievements strong,
.tb-member-real-achievements span,
.tb-member-real-achievements small {
  display: block;
}

.tb-member-real-achievements span,
.tb-member-real-achievements small {
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: .7rem;
}

.tb-member-real-error,
.tb-member-real-loading {
  padding: 16px;
}

.tb-member-real-loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-member-real-loading > span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08));
  background-size: 220% 100%;
  animation: tb-member-real-pulse 1.2s ease-in-out infinite;
}

.tb-member-real-loading strong,
.tb-member-real-loading small,
.tb-member-real-error strong,
.tb-member-real-error span {
  display: block;
}

.tb-member-real-loading small,
.tb-member-real-error span {
  margin-top: 5px;
  color: var(--tb-muted);
  font-size: .8rem;
}

.tb-member-real-error button {
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: #171101;
  background: linear-gradient(135deg, #ffe08a, #ffbd3d);
  font-weight: 800;
}

.tb-member-row[data-member-profile-open] {
  cursor: pointer;
}

.tb-member-row[data-member-profile-open]:active {
  transform: scale(.992);
}

@keyframes tb-member-real-pulse {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (max-width: 430px) {
  #tbMemberProfilePortal .tb-member-real-modal {
    width: calc(100vw - 18px);
    border-radius: 24px;
  }

  .tb-member-real-body {
    padding: 12px;
  }

  .tb-member-real-deck {
    gap: 6px;
  }

  .tb-member-real-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tb-member-real-mini,
  .tb-member-real-grid {
    gap: 7px;
  }
}


/* TOPBRS_MEMBER_REAL_PROFILE_POLISH_STYLE_105L2A3C */
.tb-member-real-league-stat {
  position: relative;
  overflow: hidden;
}

.tb-member-real-league-badge {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 38px;
  height: 42px;
  margin-bottom: 6px;
}

.tb-member-real-league-badge i {
  position: absolute;
  inset: 0;
  border-radius: 13px 13px 16px 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.72), transparent 18%),
    linear-gradient(150deg, rgba(255, 80, 129, .95), rgba(112, 84, 255, .95) 54%, rgba(255, 213, 91, .9));
  clip-path: polygon(50% 0, 94% 16%, 88% 78%, 50% 100%, 12% 78%, 6% 16%);
  box-shadow: 0 9px 18px rgba(0, 0, 0, .22);
}

.tb-member-real-league-badge b {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: .86rem;
  font-weight: 950;
  text-shadow: 0 2px 5px rgba(0,0,0,.45);
}

.tb-member-real-badges,
.tb-member-real-achievements {
  max-height: 390px;
  overflow: auto;
  padding-right: 3px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.tb-member-real-achievements {
  max-height: 360px;
}

.tb-member-real-badges::-webkit-scrollbar,
.tb-member-real-achievements::-webkit-scrollbar {
  width: 4px;
}

.tb-member-real-badges::-webkit-scrollbar-thumb,
.tb-member-real-achievements::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.tb-member-real-section-head:has(h4) {
  min-height: 24px;
}

.tb-member-real-section-head h4 {
  letter-spacing: -.025em;
}

.tb-member-real-favourite strong {
  font-size: 1.08rem;
}

.tb-member-real-title .tb-member-role-svg {
  width: 16px;
  height: 16px;
  opacity: .9;
}

/* TOPBRS_MEMBER_PROFILE_BG_ROLE_FILTERS_STYLE_105L2A4 */
[data-member-profile-bg="custom"] {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

[data-member-profile-bg="custom"] > * {
  position: relative;
  z-index: 1;
}

[data-member-profile-bg="custom"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 213, 74, .22), transparent 34%),
    linear-gradient(180deg, rgba(7, 9, 22, .02), rgba(7, 9, 22, .52));
}

.tb-member-summary-grid button.tb-member-summary-role {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 18px;
  padding: 12px 8px;
  color: inherit;
  font: inherit;
  text-align: center;
  background: rgba(255, 255, 255, .045);
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  transform: translateZ(0);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.tb-member-summary-grid button.tb-member-summary-role strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.tb-member-summary-grid button.tb-member-summary-role span {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
}

.tb-member-summary-grid button.tb-member-summary-role em {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  opacity: .92;
}

.tb-member-summary-grid button.tb-member-summary-role.is-dimmed {
  opacity: .34;
  filter: saturate(.55);
  transform: scale(.985);
}

.tb-member-summary-grid button.tb-member-summary-role.is-active {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .075);
}

.tb-member-summary-grid button.tb-member-summary-role[data-member-role-glow="gold"].is-active {
  border-color: rgba(255, 213, 74, .62);
  box-shadow: 0 0 0 1px rgba(255, 213, 74, .18) inset, 0 12px 28px rgba(255, 191, 0, .16), 0 0 24px rgba(255, 213, 74, .16);
}

.tb-member-summary-grid button.tb-member-summary-role[data-member-role-glow="blue"].is-active {
  border-color: rgba(83, 174, 255, .58);
  box-shadow: 0 0 0 1px rgba(83, 174, 255, .16) inset, 0 12px 28px rgba(83, 174, 255, .13), 0 0 24px rgba(83, 174, 255, .15);
}

.tb-member-summary-grid button.tb-member-summary-role[data-member-role-glow="gray"].is-active {
  border-color: rgba(220, 226, 236, .42);
  box-shadow: 0 0 0 1px rgba(220, 226, 236, .12) inset, 0 12px 28px rgba(220, 226, 236, .08), 0 0 20px rgba(220, 226, 236, .10);
}

.tb-member-summary-grid button.tb-member-summary-role:active {
  transform: scale(.97);
}
