.main-content.ts-active > :not(.topbar):not(#sls-team-statistics):not(footer) {
  display: none !important;
}

.ts-nav-item > svg { flex: 0 0 20px; color: #92949e; }
.ts-nav-item:hover > svg, .ts-nav-item.active > svg { color: #ff526c; }

.ts-page {
  --ts-red: #f02b48;
  --ts-red-bright: #ff526c;
  --ts-panel: #14151c;
  --ts-soft: #0f1016;
  --ts-border: #ffffff13;
  --ts-muted: #92949e;
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  color: #f7f5f7;
}

.ts-page *, .ts-page *::before, .ts-page *::after { box-sizing: border-box; }
.ts-page button, .ts-page input { font: inherit; }

.ts-demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 195, 77, .42);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 178, 36, .18), rgba(240, 43, 72, .12));
  color: #ffe0a1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ts-demo-banner strong { flex: 0 0 auto; color: #ffc34d; font-size: .78rem; letter-spacing: .13em; }
.ts-demo-banner span { color: rgba(255, 241, 213, .78); font-size: .82rem; text-align: right; }

.ts-hero {
  position: relative;
  display: flex;
  min-height: 210px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 32px 36px;
  border: 1px solid var(--ts-border);
  border-radius: 21px;
  background:
    radial-gradient(circle at 88% 8%, #ed294846, transparent 36%),
    linear-gradient(122deg, #191a22f7, #101117f7);
  box-shadow: 0 22px 64px #00000035;
}

.ts-hero::after {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  pointer-events: none;
}

.ts-hero > * { position: relative; z-index: 1; }
.ts-hero > div:first-child { max-width: 920px; }
.ts-hero > div:first-child > span, .ts-section-head > div > span { color: var(--ts-red-bright); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.ts-hero h2 { margin: 9px 0 10px; font-size: clamp(32px, 3.5vw, 52px); line-height: 1.02; letter-spacing: -.045em; }
.ts-hero p { margin: 0; color: var(--ts-muted); font-size: 14px; line-height: 1.65; }
.ts-hero-score { display: grid; min-width: 230px; padding: 21px; border: 1px solid #ff496338; border-radius: 16px; background: #280f17b5; }
.ts-hero-score small { color: #ff8a9c; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ts-hero-score strong { margin: 4px 0 0; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.ts-hero-score span { margin-top: 6px; color: #c3bdc2; font-size: 12px; }

.ts-toolbar, .ts-ranking, .ts-overview > article {
  border: 1px solid var(--ts-border);
  border-radius: 18px;
  background: var(--ts-panel);
  box-shadow: 0 16px 46px #00000022;
}

.ts-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; }
.ts-periods { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 7px; }
.ts-periods button { min-height: 40px; padding: 0 14px; border: 1px solid #30323c; border-radius: 10px; background: #101117; color: #aaaab3; font-size: 12px; font-weight: 800; cursor: pointer; }
.ts-periods button:hover, .ts-periods button.active { border-color: #f02b4870; background: #301119; color: #fff; }
.ts-custom-range { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto; width: 100%; gap: 12px; padding-top: 14px; border-top: 1px solid #ffffff0d; }
.ts-custom-range label > span { display: block; margin-bottom: 7px; color: #b7b6be; font-size: 11px; font-weight: 800; }
.ts-custom-range input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #30323c; border-radius: 10px; outline: none; background: #0d0e13; color: #f7f6f8; color-scheme: dark; }
.ts-custom-range input:focus { border-color: var(--ts-red); box-shadow: 0 0 0 3px #f02b4818; }
.ts-custom-range .ts-button { align-self: end; }

.ts-button { min-height: 42px; padding: 0 16px; border: 1px solid #343641; border-radius: 10px; background: #191a22; color: #f7f5f7; font-weight: 800; cursor: pointer; }
.ts-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #ff506c72; }
.ts-button.primary { border-color: var(--ts-red); background: linear-gradient(135deg, #f63250, #d81438); box-shadow: 0 10px 26px #ed294829; }
.ts-button.secondary { background: #20222b; }
.ts-button:disabled { opacity: .55; cursor: wait; transform: none; }

.ts-notice { padding: 13px 15px; border: 1px solid #f02b4840; border-radius: 12px; background: #2a1119; color: #ffc0ca; font-size: 13px; }
.ts-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ts-overview > article { display: grid; gap: 4px; padding: 20px 22px; }
.ts-overview span { color: #a4a5ae; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ts-overview strong { font-size: 28px; }
.ts-overview small { color: #7f818d; font-size: 11px; }
.ts-overview .voice, .ts-overview .forwarding { background: radial-gradient(circle at 90% 10%, #f02b4821, transparent 42%), var(--ts-panel); }
.ts-overview .voice strong, .ts-overview .forwarding strong { color: #ff6e84; }

.ts-ranking { overflow: hidden; }
.ts-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 23px 25px 18px; border-bottom: 1px solid #ffffff0d; }
.ts-section-head h3 { margin: 5px 0 0; font-size: 22px; }
.ts-section-head > small { color: #858792; font-size: 11px; }
.ts-members { display: grid; gap: 9px; padding: 13px; }
.ts-member-card { overflow: hidden; border: 1px solid #2c2e38; border-radius: 14px; background: #101117; }
.ts-member-card.open { border-color: #f02b4848; box-shadow: 0 10px 32px #00000029; }
.ts-member-summary { display: grid; width: 100%; grid-template-columns: 46px 48px minmax(190px, 1fr) minmax(120px, .25fr) minmax(155px, .3fr) 24px; align-items: center; gap: 14px; padding: 15px 18px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.ts-member-summary:hover { background: #ffffff04; }
.ts-rank { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff12; border-radius: 11px; background: #171820; color: #ff6a80; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ts-member-card:nth-child(-n+3) .ts-rank { border-color: #f02b485e; background: #301119; color: #fff; }
.ts-avatar { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border: 1px solid #ffffff16; border-radius: 50%; background: linear-gradient(145deg, #3a121d, #181921); color: #ff758b; font-weight: 900; }
.ts-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ts-identity { min-width: 0; }
.ts-identity strong, .ts-identity small, .ts-metric > * { display: block; }
.ts-identity strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ts-identity small { margin-top: 4px; color: #81838e; font-size: 10px; }
.ts-metric { padding-left: 15px; border-left: 1px solid #ffffff0d; }
.ts-metric small { color: #81838d; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.ts-metric strong { margin-top: 2px; font-size: 20px; font-variant-numeric: tabular-nums; }
.ts-metric em { margin-top: 1px; color: #8d8f99; font-size: 9px; font-style: normal; }
.ts-metric.voice strong { color: #ff6e84; }
.ts-expand { color: #8d8f99; font-size: 22px; transition: transform .18s ease; }
.ts-member-card.open .ts-expand { transform: rotate(180deg); color: #ff637b; }

.ts-member-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 18px 17px 126px; border-top: 1px solid #ffffff0d; background: #0d0e13; }
.ts-detail-section { min-width: 0; }
.ts-detail-section.voice { padding-left: 18px; border-left: 1px solid #ffffff0d; }
.ts-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 10px; }
.ts-detail-head strong { font-size: 12px; }
.ts-detail-head span { color: #7f818c; font-size: 10px; }
.ts-ticket-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid #ffffff0a; }
.ts-ticket-number { color: #ff637b; font-size: 11px; }
.ts-ticket-number strong { font-size: 14px; }
.ts-ticket-row > div:nth-child(2) strong, .ts-ticket-row > div:nth-child(2) span { display: block; }
.ts-ticket-row > div:nth-child(2) strong { font-size: 12px; }
.ts-ticket-row > div:nth-child(2) span { margin-top: 3px; color: #7f818b; font-size: 10px; }
.ts-ticket-row time { color: #9496a0; font-size: 10px; }
.ts-voice-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 65px; padding: 10px 12px; border-top: 1px solid #ffffff0a; }
.ts-voice-mark { display: grid; place-items: center; width: 38px; min-height: 28px; border: 1px solid #f02b4845; border-radius: 8px; background: #2c1119; color: #ff7288; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.ts-voice-row.active .ts-voice-mark { border-color: #ff526c; box-shadow: 0 0 16px #f02b4838; color: #fff; }
.ts-voice-main, .ts-voice-time { min-width: 0; }
.ts-voice-main > strong, .ts-voice-main > span, .ts-voice-main > small, .ts-voice-time > * { display: block; }
.ts-voice-main > strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ts-voice-main > span { overflow: hidden; margin-top: 3px; color: #9496a0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ts-voice-main > small { margin-top: 4px; color: #747681; font-size: 9px; }
.ts-voice-time { text-align: right; }
.ts-voice-time strong { color: #ff7288; font-size: 12px; }
.ts-voice-time time { margin-top: 4px; color: #7f818b; font-size: 9px; }
.ts-button.load-more { display: block; margin: 13px auto 0; min-height: 36px; font-size: 11px; }
.ts-detail-state { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 72px; color: #858792; font-size: 11px; }
.ts-detail-state.error { color: #ff8194; }
.ts-detail-state button { border: 0; background: none; color: #ff667e; cursor: pointer; text-decoration: underline; }
.ts-detail-state i, .ts-state i { width: 16px; height: 16px; border: 2px solid #f02b4845; border-top-color: #f02b48; border-radius: 50%; animation: ts-spin .8s linear infinite; }
.ts-empty { display: grid; place-items: center; min-height: 180px; gap: 7px; color: #dad8dc; text-align: center; }
.ts-empty span { color: #7f818c; font-size: 12px; }
.ts-state { display: grid; min-height: 360px; place-items: center; align-content: center; gap: 9px; border: 1px solid var(--ts-border); border-radius: 20px; background: var(--ts-panel); color: #f5f3f5; text-align: center; }
.ts-state span { color: var(--ts-muted); font-size: 12px; }
.ts-state.error strong { color: #ff7187; }
.ts-state .ts-button { margin-top: 10px; }

.sls-teamstats-permission-row { border-color: #f02b4838 !important; background: #2a111933 !important; }
.sls-teamstats-capability { border-color: #f02b4838 !important; }

@keyframes ts-spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .ts-member-summary { grid-template-columns: 42px 44px minmax(150px, 1fr) 100px 22px; }
  .ts-member-summary .ts-metric.voice { display: none; }
  .ts-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-member-details { grid-template-columns: 1fr; padding-left: 112px; }
  .ts-detail-section.voice { padding-top: 4px; padding-left: 0; border-top: 1px solid #ffffff0d; border-left: 0; }
}

@media (max-width: 760px) {
  .ts-hero { align-items: flex-start; flex-direction: column; padding: 25px; }
  .ts-hero-score { min-width: min(100%, 300px); }
  .ts-overview { grid-template-columns: 1fr; }
  .ts-custom-range { grid-template-columns: 1fr 1fr; }
  .ts-custom-range .ts-button { grid-column: 1 / -1; }
  .ts-member-summary { grid-template-columns: 36px 42px minmax(0, 1fr) 72px 18px; gap: 9px; padding: 13px 10px; }
  .ts-rank { width: 33px; height: 33px; }
  .ts-avatar { width: 40px; height: 40px; }
  .ts-metric { padding-left: 8px; }
  .ts-metric em { display: none; }
  .ts-member-details { padding: 0 10px 14px; }
  .ts-ticket-row { grid-template-columns: 44px minmax(0, 1fr); }
  .ts-ticket-row time { grid-column: 2; }
  .ts-voice-row { grid-template-columns: 39px minmax(0, 1fr); }
  .ts-voice-time { grid-column: 2; text-align: left; }
  .ts-voice-time > * { display: inline; margin-right: 8px; }
}
