:root {
  color-scheme: dark;
  --bg: #090a0d;
  --surface: #141519;
  --surface-2: #1c1e23;
  --surface-3: #22252b;
  --line: #2c3037;
  --text: #f6f7f2;
  --muted: #aab0a7;
  --soft: #747b73;
  --brand-live: #ff123f;
  --brand-live-deep: #b80024;
  --brand-signal: #45f0a5;
  --brand-blue: #3bc7ff;
  --brand-amber: #ffd166;
  --accent: var(--brand-signal);
  --accent-2: var(--brand-blue);
  --danger: #ff6b78;
  --good: #55e693;
  --ink-on-signal: #06130d;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes tierShimmer {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 18, 63, 0.055), transparent 150px),
    linear-gradient(180deg, rgba(69, 240, 165, 0.06), transparent 310px),
    var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field-label-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(255, 18, 63, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 18, 63, 0.08), transparent 24%),
    rgba(9, 10, 13, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

.brand-logo-frame {
  position: relative;
  width: clamp(132px, 24vw, 210px);
  height: 42px;
  display: block;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(255, 18, 63, 0.12));
}

.brand-live-fx {
  position: absolute;
  left: 65.65%;
  top: 13.2%;
  width: 34.25%;
  height: 75%;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: liveCapsuleFlicker 9.6s steps(1, end) infinite;
}

.brand-live-fx::before,
.brand-live-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.brand-live-fx::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.52) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 1px, rgba(255, 18, 63, 0.24) 1px 2px, transparent 2px 5px),
    radial-gradient(circle at 22% 42%, rgba(255, 255, 255, 0.78), transparent 2px),
    radial-gradient(circle at 74% 64%, rgba(255, 255, 255, 0.58), transparent 2px),
    rgba(255, 18, 63, 0.28);
  background-size: 100% 4px, 8px 100%, 7px 7px, 9px 9px, 100% 100%;
  filter: contrast(2.6) brightness(1.35);
  animation: liveStaticNoise 0.34s steps(2, end) infinite;
}

.brand-live-fx::after {
  inset: 18% -8%;
  height: 24%;
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 9px 0 rgba(255, 255, 255, 0.18),
    0 -8px 0 rgba(255, 18, 63, 0.22);
  transform: translateY(-140%);
  animation: liveStaticSlice 9.6s steps(1, end) infinite;
}

@keyframes liveCapsuleFlicker {
  0%, 66.9%, 71.5%, 91.4%, 92.7%, 100% {
    opacity: 0;
    transform: translateX(0) scale(1);
    filter: none;
  }
  67.1% {
    opacity: 0.38;
    transform: translateX(-0.5px) scale(1.01);
    filter: brightness(1.4) saturate(1.5);
  }
  67.5% {
    opacity: 0.08;
    transform: translateX(0.5px) scale(0.995);
  }
  67.9% {
    opacity: 0.78;
    transform: translateX(1px) scale(1.015);
    filter: brightness(1.8) saturate(1.8);
  }
  68.3% {
    opacity: 0.22;
    transform: translateX(-1px) scale(1);
  }
  68.8% {
    opacity: 0.64;
    transform: translateX(0.5px) scale(1.01);
  }
  69.4%, 70.2% {
    opacity: 0.12;
    transform: translateX(0) scale(1);
  }
  70.7% {
    opacity: 0.46;
    transform: translateX(-0.5px) scale(1.006);
  }
  91.6% {
    opacity: 0.2;
    transform: translateX(0.5px) scale(1.006);
  }
  92.1% {
    opacity: 0.58;
    transform: translateX(-0.5px) scale(1.012);
    filter: brightness(1.65) saturate(1.7);
  }
}

@keyframes liveStaticNoise {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  50% {
    background-position: 0 2px, 4px 0, 3px 1px, -2px 4px, 0 0;
  }
  100% {
    background-position: 0 -1px, -3px 0, -1px 3px, 4px -2px, 0 0;
  }
}

@keyframes liveStaticSlice {
  0%, 67%, 68.2%, 69.6%, 91.4%, 92.5%, 100% {
    opacity: 0;
    transform: translateY(-140%);
  }
  67.4% {
    opacity: 0.88;
    transform: translateY(120%);
  }
  68.7% {
    opacity: 0.62;
    transform: translateY(10%);
  }
  92% {
    opacity: 0.72;
    transform: translateY(84%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-live-fx,
  .brand-live-fx::before,
  .brand-live-fx::after,
  .rank-table tbody tr.rank-tier-gold td,
  .rank-table tbody tr.rank-tier-silver td,
  .rank-table tbody tr.rank-tier-bronze td,
  .rank-table tr.rank-tier-gold,
  .rank-table tr.rank-tier-silver,
  .rank-table tr.rank-tier-bronze,
  .score-chip.rank-tier-gold,
  .score-chip.rank-tier-silver,
  .score-chip.rank-tier-bronze,
  .streamer-card.rank-tier-gold,
  .streamer-card.rank-tier-silver,
  .streamer-card.rank-tier-bronze,
  .streamer-card-score.rank-tier-gold,
  .streamer-card-score.rank-tier-silver,
  .streamer-card-score.rank-tier-bronze {
    animation: none;
  }
}

.main-nav,
.window-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(21, 22, 24, 0.76);
  border-radius: var(--radius);
}

.main-nav {
  justify-self: center;
}

.header-submit-row {
  position: sticky;
  top: 73px;
  z-index: 19;
  display: flex;
  justify-content: flex-end;
  height: 0;
  pointer-events: none;
}

.nav-link,
.tab-button,
.nav-submit-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
}

.nav-submit-button {
  position: relative;
  display: inline-block;
  width: 71px;
  height: 33px;
  min-height: 33px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: var(--brand-live);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(184, 0, 36, 0.2),
    0 0 0 rgba(255, 18, 63, 0);
  animation: submitCreatorPulse 5.8s ease-in-out infinite;
}

.nav-submit-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 7px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.32);
  transform: translateY(-50%);
  animation: submitRecordBlink 2.4s steps(1, end) infinite;
}

.nav-submit-word {
  position: absolute;
  inset: 0 7px 0 16px;
  display: grid;
  place-items: center;
  white-space: nowrap;
  opacity: 0;
  animation: submitWordSwap 4.8s steps(1, end) infinite;
}

.nav-submit-word-submit {
  opacity: 1;
}

.nav-submit-word-creator {
  animation-delay: 2.4s;
}

.nav-submit-button:hover {
  background: var(--brand-live);
  filter: brightness(1.05);
}

.nav-submit-button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

@keyframes submitWordSwap {
  0%, 49.9% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@keyframes submitCreatorPulse {
  0%, 78%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 8px 18px rgba(184, 0, 36, 0.2),
      0 0 0 rgba(255, 18, 63, 0);
    filter: brightness(1);
  }
  84% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.13),
      0 8px 18px rgba(184, 0, 36, 0.2),
      0 0 18px rgba(255, 18, 63, 0.26);
    filter: brightness(1.045);
  }
  90% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.1),
      0 8px 18px rgba(184, 0, 36, 0.2),
      0 0 24px rgba(255, 18, 63, 0.12);
    filter: brightness(1.01);
  }
}

@keyframes submitRecordBlink {
  0%, 58%, 100% {
    opacity: 1;
    background: #fff;
    box-shadow:
      0 0 8px rgba(255, 255, 255, 0.34),
      0 0 14px rgba(255, 18, 63, 0.18);
  }
  66%, 82% {
    opacity: 0.36;
    background: #fff;
    box-shadow: none;
  }
}

.nav-link.active,
.tab-button.active {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 18, 63, 0.08), transparent),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(255, 18, 63, 0.12);
}

.workspace {
  display: none;
}

.workspace.active {
  display: block;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 18px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand-live);
  box-shadow: 0 0 12px rgba(255, 18, 63, 0.54);
  vertical-align: 1px;
}

.metric-grid,
.global-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-panel,
.global-stat-card,
.panel,
.score-panel,
.rubric-item,
.streamer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 120px),
    rgba(20, 21, 25, 0.94);
  box-shadow: var(--shadow);
}

.metric-panel {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-live), var(--accent));
  opacity: 0.78;
}

.global-stat-card {
  position: relative;
  min-width: 0;
  min-height: 98px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.global-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-live), var(--accent));
  opacity: 0.78;
}

.global-stat-card.signal::before,
.global-stat-card.up::before {
  background: var(--brand-signal);
}

.global-stat-card.blue::before {
  background: var(--brand-blue);
}

.global-stat-card.live::before,
.global-stat-card.down::before {
  background: var(--brand-live);
}

.global-stat-card.rated::before {
  background: var(--brand-amber);
}

.global-stat-link {
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.global-stat-link:hover {
  border-color: rgba(69, 240, 165, 0.4);
  transform: translateY(-1px);
}

.global-stat-link {
  cursor: pointer;
}

.global-stat-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.metric-label,
.global-stat-label,
.score-label,
label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 42px;
  line-height: 1;
}

.global-stat-value {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-stat-detail {
  min-width: 0;
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head.compact {
  margin-bottom: 10px;
}

.collapsible-head {
  align-items: center;
}

.profile-collapse {
  overflow: hidden;
}

.profile-collapse.is-collapsed .panel-head {
  margin-bottom: 0;
}

.profile-collapse.is-collapsed .profile-collapse-body {
  display: none;
}

.collapse-toggle {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.collapse-toggle:hover {
  border-color: rgba(57, 255, 136, 0.38);
  color: var(--accent);
}

.panel-head h2,
.streamer-card h2,
.signed-in-panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.panel-head p,
.score-copy,
.rating-meta,
.streamer-card p,
.muted,
.status-block p {
  margin: 0;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
}

.profile-actions .primary-button,
.profile-actions .text-button {
  min-height: 42px;
  width: auto;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.profile-head > div:first-child {
  min-width: 0;
}

.profile-head h1 {
  overflow-wrap: anywhere;
}

.live-mark,
.floating-live {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1.5px solid color-mix(in srgb, var(--platform, var(--good)), transparent 34%);
  border-radius: 9px;
  background: color-mix(in srgb, var(--platform, var(--good)), transparent 88%);
  color: var(--platform, var(--good));
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--platform, var(--good)), transparent 82%),
    0 0 22px color-mix(in srgb, var(--platform, var(--good)), transparent 90%);
}

.live-mark:hover,
.floating-live:hover {
  border-color: color-mix(in srgb, var(--platform, var(--good)), transparent 18%);
  background: color-mix(in srgb, var(--platform, var(--good)), transparent 84%);
}

.live-mark-logo {
  width: 22px;
  height: 18px;
  display: inline-grid;
  grid-template-columns: repeat(3, 3px) 7px;
  align-items: end;
  gap: 2px;
  flex: 0 0 auto;
}

.live-mark-logo i,
.live-mark-logo b {
  display: block;
  border: 1.5px solid currentColor;
  background: color-mix(in srgb, var(--platform, var(--good)), transparent 88%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--platform, var(--good)), transparent 58%);
}

.live-mark-logo i {
  width: 3px;
  border-radius: 999px;
}

.live-mark-logo i:nth-child(1) {
  height: 8px;
}

.live-mark-logo i:nth-child(2) {
  height: 13px;
}

.live-mark-logo i:nth-child(3) {
  height: 17px;
}

.live-mark-logo b {
  width: 7px;
  height: 7px;
  align-self: start;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--platform, var(--good)), transparent 78%);
}

.live-mark-text {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.floating-live {
  position: fixed;
  top: 82px;
  right: max(16px, calc((100vw - 1180px) / 2));
  z-index: 30;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.icon-button,
.text-button,
.primary-button {
  min-height: 38px;
  border-radius: 6px;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.text-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.text-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--brand-signal), #7effc3);
  color: var(--ink-on-signal);
  font-weight: 800;
}

.table-wrap {
  overflow-x: hidden;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
}

.rank-table th,
.rank-table td {
  min-width: 0;
  padding: 13px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.rank-table th {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rank-table th:nth-child(1),
.rank-table td:nth-child(1) {
  width: 7%;
  text-align: center;
}

.rank-table th:nth-child(2),
.rank-table td:nth-child(2) {
  width: 34%;
  overflow: hidden;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3),
.rank-table th:nth-child(4),
.rank-table td:nth-child(4),
.rank-table th:nth-child(5),
.rank-table td:nth-child(5),
.rank-table th:nth-child(6),
.rank-table td:nth-child(6) {
  text-align: center;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3) {
  width: 14%;
}

.rank-table th:nth-child(4),
.rank-table td:nth-child(4) {
  width: 10%;
}

.rank-table th:nth-child(5),
.rank-table td:nth-child(5) {
  width: 7%;
  padding-left: 3px;
  padding-right: 3px;
}

.rank-table th:nth-child(6),
.rank-table td:nth-child(6) {
  width: 13%;
}

.rank-table th:nth-child(7),
.rank-table td:nth-child(7) {
  width: 15%;
}

.rank-table tbody tr {
  cursor: pointer;
}

.rank-table-number {
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.rank-table tbody tr.rank-tier-gold {
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.095), transparent 46%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 224, 142, 0.055) 50%, transparent 58%);
  background-size: auto, 220% 100%;
  animation: tierShimmer 9s linear infinite;
}

.rank-table tbody tr.rank-tier-silver {
  background:
    linear-gradient(90deg, rgba(214, 224, 238, 0.08), transparent 46%),
    linear-gradient(110deg, transparent 0 42%, rgba(242, 247, 255, 0.05) 50%, transparent 58%);
  background-size: auto, 220% 100%;
  animation: tierShimmer 10s linear infinite;
}

.rank-table tbody tr.rank-tier-bronze {
  background:
    linear-gradient(90deg, rgba(205, 127, 50, 0.08), transparent 46%),
    linear-gradient(110deg, transparent 0 42%, rgba(239, 169, 99, 0.045) 50%, transparent 58%);
  background-size: auto, 220% 100%;
  animation: tierShimmer 11s linear infinite;
}

.rank-table tbody tr:hover {
  background: rgba(69, 240, 165, 0.05);
}

.rank-table tbody tr.rank-tier-gold:hover {
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.13), transparent 46%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 224, 142, 0.07) 50%, transparent 58%);
  background-size: auto, 220% 100%;
}

.rank-table tbody tr.rank-tier-silver:hover {
  background:
    linear-gradient(90deg, rgba(214, 224, 238, 0.11), transparent 46%),
    linear-gradient(110deg, transparent 0 42%, rgba(242, 247, 255, 0.065) 50%, transparent 58%);
  background-size: auto, 220% 100%;
}

.rank-table tbody tr.rank-tier-bronze:hover {
  background:
    linear-gradient(90deg, rgba(205, 127, 50, 0.105), transparent 46%),
    linear-gradient(110deg, transparent 0 42%, rgba(239, 169, 99, 0.06) 50%, transparent 58%);
  background-size: auto, 220% 100%;
}

.rank-table small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
}

.rank-streamer {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rank-streamer-photo {
  width: 38px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
}

.rank-streamer-copy {
  min-width: 0;
  overflow: hidden;
}

.rank-streamer-copy strong,
.rank-streamer-copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-streamer-copy strong {
  font-size: clamp(11px, 1.7vw, 16px);
  line-height: 1.12;
}

.rank-streamer-copy small {
  font-size: clamp(9px, 1.2vw, 12px);
}

.score-chip,
.status-badge,
.trend-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.score-chip {
  position: relative;
  overflow: hidden;
  min-width: 58px;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid rgba(255, 18, 63, 0.34);
  color: var(--brand-signal);
  background:
    linear-gradient(135deg, rgba(255, 18, 63, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(69, 240, 165, 0.08), transparent 85%),
    var(--surface-2);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 18px rgba(255, 18, 63, 0.08);
  text-shadow: 0 0 14px rgba(69, 240, 165, 0.22);
}

.score-chip::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-live);
  box-shadow: 0 0 9px rgba(255, 18, 63, 0.8);
}

.score-chip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-live), var(--brand-signal), var(--brand-blue));
}

.rank-table-number.rank-tier-gold,
.score-chip.rank-tier-gold {
  border-color: rgba(255, 209, 102, 0.62);
  color: #ffd166;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.18), transparent 48%),
    linear-gradient(110deg, transparent 0 40%, rgba(255, 244, 190, 0.12) 50%, transparent 60%),
    var(--surface-2);
  background-size: auto, 220% 100%, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 20px rgba(255, 209, 102, 0.1);
}

.rank-table-number.rank-tier-silver,
.score-chip.rank-tier-silver {
  border-color: rgba(214, 224, 238, 0.56);
  color: #e4ebf4;
  background:
    linear-gradient(135deg, rgba(214, 224, 238, 0.14), transparent 48%),
    linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%),
    var(--surface-2);
  background-size: auto, 220% 100%, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 18px rgba(214, 224, 238, 0.08);
}

.rank-table-number.rank-tier-bronze,
.score-chip.rank-tier-bronze {
  border-color: rgba(205, 127, 50, 0.58);
  color: #d99a5d;
  background:
    linear-gradient(135deg, rgba(205, 127, 50, 0.15), transparent 48%),
    linear-gradient(110deg, transparent 0 40%, rgba(255, 188, 119, 0.09) 50%, transparent 60%),
    var(--surface-2);
  background-size: auto, 220% 100%, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 18px rgba(205, 127, 50, 0.08);
}

.score-chip.rank-tier-gold,
.score-chip.rank-tier-silver,
.score-chip.rank-tier-bronze {
  animation: tierShimmer 8s linear infinite;
}

.score-chip.rank-tier-gold::after {
  background: linear-gradient(90deg, #ffd166, var(--brand-signal), var(--brand-blue));
}

.score-chip.rank-tier-silver::after {
  background: linear-gradient(90deg, #d7dde8, var(--brand-blue), var(--brand-signal));
}

.score-chip.rank-tier-bronze::after {
  background: linear-gradient(90deg, #cd7f32, var(--brand-live), var(--brand-signal));
}

.score-chip.unrated {
  min-width: 62px;
  border: 1px solid rgba(255, 18, 63, 0.2);
  color: var(--soft);
  background:
    linear-gradient(135deg, rgba(255, 18, 63, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.045);
  font-size: 11px;
  text-shadow: none;
}

.score-chip.unrated::before {
  opacity: 0.45;
}

.score-chip.unrated::after {
  opacity: 0.45;
}

.status-badge,
.trend-badge {
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
}

.trend-badge {
  min-width: 34px;
  gap: 4px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.trend-badge.up {
  border-color: rgba(85, 230, 147, 0.45);
  color: var(--good);
  background: rgba(85, 230, 147, 0.08);
}

.trend-badge.down {
  border-color: rgba(255, 107, 107, 0.42);
  color: var(--bad);
  background: rgba(255, 107, 107, 0.08);
}

.trend-badge.steady {
  color: var(--soft);
}

.trend-badge.new {
  border-color: rgba(255, 204, 102, 0.42);
  color: var(--warn);
  background: rgba(255, 204, 102, 0.08);
}

.status-badge.live {
  border-color: rgba(85, 230, 147, 0.45);
  color: var(--good);
}

.status-link {
  text-decoration: none;
}

.status-link:hover {
  background: rgba(85, 230, 147, 0.12);
}

.status-badge.offline {
  color: var(--soft);
}

.status-live-mark {
  min-width: 68px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.creator-card {
  min-height: 240px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 22, 24, 0.92);
  box-shadow: var(--shadow);
}

.creator-list-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.creator-list-more .text-button {
  min-width: 132px;
  border-color: rgba(255, 18, 63, 0.42);
  background: rgba(255, 18, 63, 0.08);
  color: var(--text);
}

.profile-photo {
  width: 132px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.profile-media {
  display: grid;
  gap: 10px;
}

.creator-copy {
  display: grid;
  gap: 12px;
}

.creator-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.creator-status-line > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.creator-bio,
.creator-schedule {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.creator-schedule {
  color: var(--text);
}

.score-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 240px;
  padding: 22px;
}

.score-ring {
  width: 152px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 58%, transparent 59%),
    conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.score-ring span {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 44px;
  font-weight: 900;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.stat-pill {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.stat-pill span,
.rating-score-preview span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-pill strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-action {
  width: 100%;
  border-color: rgba(69, 240, 165, 0.32);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.stat-action:hover {
  border-color: rgba(69, 240, 165, 0.58);
  background: rgba(69, 240, 165, 0.07);
}

.stat-action strong {
  color: var(--accent);
}

.stream-panel {
  min-height: 240px;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.platform-link {
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--platform), transparent 30%);
  border-radius: 999px;
  color: var(--platform);
  background: color-mix(in srgb, var(--platform), transparent 88%);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.platform-link[data-platform="x"] {
  min-width: 34px;
  border-color: rgba(245, 245, 245, 0.58);
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(245, 245, 245, 0.14), rgba(245, 245, 245, 0.05)),
    rgba(0, 0, 0, 0.22);
}

.platform-link-toggle {
  gap: 7px;
  cursor: pointer;
}

.platform-link-toggle[aria-expanded="true"] {
  border-color: var(--platform);
  background: color-mix(in srgb, var(--platform), transparent 78%);
}

.platform-link-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--platform), transparent 72%);
  color: var(--text);
  font-size: 11px;
  line-height: 1;
}

.platform-link-popover {
  position: fixed;
  z-index: 60;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--platform), transparent 30%);
  border-radius: 8px;
  background:
    linear-gradient(color-mix(in srgb, var(--platform), transparent 90%), color-mix(in srgb, var(--platform), transparent 94%)),
    var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
}

.platform-popover-title {
  color: var(--platform);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-popover-links {
  display: grid;
  gap: 6px;
}

.platform-popover-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--platform), transparent 62%);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.platform-popover-link:hover {
  border-color: var(--platform);
}

.platform-popover-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-popover-link b {
  color: var(--platform);
  font-size: 11px;
  text-transform: uppercase;
}

.rank-table .platform-links {
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
}

.rank-table .platform-link {
  min-height: 28px;
  max-width: 100%;
  padding: 0 8px;
  font-size: 11px;
}

.rank-table .platform-link[data-platform="x"] {
  min-width: 28px;
}

.no-link {
  color: var(--soft);
}

.status-block {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.category-bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(120px, 1fr) 56px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  color: var(--muted);
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.bar-value {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  text-align: right;
}

.rating-form {
  display: grid;
  gap: 14px;
}

.form-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: stretch;
}

.form-grid,
.streamer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.streamer-form-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
}

.choice-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
}

.choice-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101113;
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 90px;
  padding: 12px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 240, 165, 0.13);
}

.rating-score-preview {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(69, 240, 165, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(69, 240, 165, 0.13), rgba(59, 199, 255, 0.07)),
    var(--surface-2);
}

.rating-score-preview strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 48px;
  line-height: 1;
}

.rating-score-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.rubric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rubric-item {
  min-height: 166px;
  padding: 16px;
}

.rubric-item legend {
  padding: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.score-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.score-options label {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}

.score-options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.option-value {
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 20px;
  font-weight: 900;
}

.option-label {
  font-size: 11px;
  line-height: 1.2;
}

.score-options label:has(input:checked) {
  border-color: rgba(69, 240, 165, 0.7);
  background: rgba(69, 240, 165, 0.12);
  color: var(--text);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

.search-panel {
  margin-bottom: 14px;
}

.creator-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 10px;
  align-items: center;
}

.creator-search-field,
.creator-filter-field {
  min-width: 0;
}

.creator-filter-field {
  position: relative;
}

.creator-filter-field::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-live);
  box-shadow: 0 0 14px rgba(255, 18, 63, 0.72);
  transform: translateY(-50%);
  pointer-events: none;
}

.creator-filter-field::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  opacity: 0.72;
  transform: translateY(-66%) rotate(45deg);
  pointer-events: none;
}

.creator-filter-field select {
  min-height: 44px;
  padding: 0 32px 0 28px;
  border-color: rgba(255, 18, 63, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 18, 63, 0.2), rgba(255, 18, 63, 0.055)),
    linear-gradient(90deg, rgba(255, 18, 63, 0.18), transparent 58%),
    #111216;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 12px 34px rgba(255, 18, 63, 0.08);
}

.creator-filter-field select:hover {
  border-color: rgba(255, 18, 63, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 22px rgba(255, 18, 63, 0.14);
}

.creator-filter-field select:focus {
  border-color: var(--brand-live);
  box-shadow:
    0 0 0 3px rgba(255, 18, 63, 0.16),
    0 0 26px rgba(255, 18, 63, 0.16);
}

.creator-filter-field select option {
  background: #111216;
  color: var(--text);
}

.streamer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.streamer-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.streamer-card.rank-tier-gold {
  border-color: rgba(255, 209, 102, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.09), transparent 42%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 244, 190, 0.055) 50%, transparent 58%),
    rgba(20, 21, 25, 0.94);
  background-size: auto, 220% 100%, auto;
  animation: tierShimmer 12s linear infinite;
}

.streamer-card.rank-tier-silver {
  border-color: rgba(214, 224, 238, 0.38);
  background:
    linear-gradient(135deg, rgba(214, 224, 238, 0.07), transparent 42%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 50%, transparent 58%),
    rgba(20, 21, 25, 0.94);
  background-size: auto, 220% 100%, auto;
  animation: tierShimmer 13s linear infinite;
}

.streamer-card.rank-tier-bronze {
  border-color: rgba(205, 127, 50, 0.4);
  background:
    linear-gradient(135deg, rgba(205, 127, 50, 0.075), transparent 42%),
    linear-gradient(110deg, transparent 0 42%, rgba(239, 169, 99, 0.045) 50%, transparent 58%),
    rgba(20, 21, 25, 0.94);
  background-size: auto, 220% 100%, auto;
  animation: tierShimmer 14s linear infinite;
}

.streamer-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.streamer-card-head h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}

.streamer-rank-badge {
  min-height: 24px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.streamer-rank-badge.gold {
  border-color: rgba(255, 204, 102, 0.58);
  color: #ffd166;
  background: rgba(255, 204, 102, 0.11);
}

.streamer-rank-badge.silver {
  border-color: rgba(205, 213, 224, 0.5);
  color: #d7dde8;
  background: rgba(205, 213, 224, 0.1);
}

.streamer-rank-badge.bronze {
  border-color: rgba(205, 127, 50, 0.55);
  color: #d08a44;
  background: rgba(205, 127, 50, 0.1);
}

.streamer-card-head p {
  margin: 0;
  color: var(--muted);
}

.streamer-live-mark {
  min-height: 26px;
  margin-top: 3px;
  padding: 0 9px;
  font-size: 11px;
}

.streamer-photo-link,
.streamer-name-link {
  color: inherit;
  text-decoration: none;
}

.streamer-photo-link {
  display: block;
  width: 58px;
  border-radius: 8px;
}

.streamer-photo-link:focus-visible,
.streamer-name-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.streamer-name-link:hover {
  color: var(--accent);
}

.streamer-live-link {
  color: var(--good);
  font-weight: 800;
  text-decoration: none;
}

.streamer-live-link:hover {
  text-decoration: underline;
}

.streamer-thumb {
  width: 58px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.streamer-card-snapshot {
  display: grid;
  grid-template-columns: minmax(124px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
}

.streamer-card-score {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(255, 18, 63, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 18, 63, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(69, 240, 165, 0.08), transparent 90%),
    var(--surface-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 24px rgba(255, 18, 63, 0.08);
}

.streamer-card-score::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-live);
  box-shadow: 0 0 12px rgba(255, 18, 63, 0.75);
}

.streamer-card-score::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-live), var(--brand-signal), var(--brand-blue));
  opacity: 0.9;
}

.streamer-card-score.rank-tier-gold {
  border-color: rgba(255, 209, 102, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.15), transparent 48%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 244, 190, 0.08) 50%, transparent 58%),
    linear-gradient(180deg, rgba(69, 240, 165, 0.07), transparent 90%),
    var(--surface-2);
  background-size: auto, 220% 100%, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 26px rgba(255, 209, 102, 0.1);
  animation: tierShimmer 9s linear infinite;
}

.streamer-card-score.rank-tier-silver {
  border-color: rgba(214, 224, 238, 0.42);
  background:
    linear-gradient(135deg, rgba(214, 224, 238, 0.12), transparent 48%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.065) 50%, transparent 58%),
    linear-gradient(180deg, rgba(57, 199, 255, 0.06), transparent 90%),
    var(--surface-2);
  background-size: auto, 220% 100%, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(214, 224, 238, 0.08);
  animation: tierShimmer 10s linear infinite;
}

.streamer-card-score.rank-tier-bronze {
  border-color: rgba(205, 127, 50, 0.45);
  background:
    linear-gradient(135deg, rgba(205, 127, 50, 0.13), transparent 48%),
    linear-gradient(110deg, transparent 0 42%, rgba(239, 169, 99, 0.065) 50%, transparent 58%),
    linear-gradient(180deg, rgba(255, 18, 63, 0.055), transparent 90%),
    var(--surface-2);
  background-size: auto, 220% 100%, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(205, 127, 50, 0.08);
  animation: tierShimmer 11s linear infinite;
}

.streamer-card-score.rank-tier-gold::after {
  background: linear-gradient(90deg, #ffd166, var(--brand-signal), var(--brand-blue));
}

.streamer-card-score.rank-tier-silver::after {
  background: linear-gradient(90deg, #d7dde8, var(--brand-blue), var(--brand-signal));
}

.streamer-card-score.rank-tier-bronze::after {
  background: linear-gradient(90deg, #cd7f32, var(--brand-live), var(--brand-signal));
}

.streamer-card-score span,
.streamer-card-score small,
.rating-snapshot span,
.rating-snapshot small {
  color: var(--muted);
  font-size: 12px;
}

.streamer-card-score strong {
  position: relative;
  z-index: 1;
  color: var(--brand-signal);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(69, 240, 165, 0.18);
}

.streamer-card-score.rank-tier-gold strong {
  color: #ffd166;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.18);
}

.streamer-card-score.rank-tier-silver strong {
  color: #e4ebf4;
  text-shadow: 0 0 18px rgba(214, 224, 238, 0.16);
}

.streamer-card-score.rank-tier-bronze strong {
  color: #d99a5d;
  text-shadow: 0 0 18px rgba(205, 127, 50, 0.16);
}

.streamer-card-score.unrated {
  border-color: rgba(255, 18, 63, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 18, 63, 0.1), transparent 54%),
    var(--surface-2);
}

.streamer-card-score.unrated strong {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  max-width: 100%;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
}

.rating-snapshot {
  min-height: 82px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.streamer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.streamer-card-actions .text-button {
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 13px;
}

.view-profile-button {
  position: relative;
  overflow: hidden;
  min-width: 116px;
  border-color: rgba(255, 18, 63, 0.34);
  color: var(--text);
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 18, 63, 0.13), transparent 46%),
    linear-gradient(180deg, rgba(69, 240, 165, 0.07), transparent 88%),
    var(--surface-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 18px rgba(255, 18, 63, 0.08);
}

.view-profile-button::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand-live);
  box-shadow: 0 0 10px rgba(255, 18, 63, 0.78);
}

.view-profile-button::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-live), var(--brand-signal), var(--brand-blue));
  opacity: 0.86;
}

.view-profile-button:hover {
  border-color: rgba(69, 240, 165, 0.44);
  color: var(--brand-signal);
}

.stats-lab-button {
  min-width: 88px;
  border-color: rgba(255, 18, 63, 0.28);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 18, 63, 0.1), transparent),
    var(--surface-2);
}

.stats-lab-button:hover {
  border-color: rgba(255, 18, 63, 0.54);
}

.snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.snapshot-head > span,
.rating-snapshot > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.snapshot-nav {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.snapshot-nav:hover {
  border-color: rgba(57, 255, 136, 0.38);
  color: var(--accent);
}

.snapshot-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.snapshot-value.positive {
  color: var(--brand-signal);
}

.snapshot-value.negative {
  color: var(--danger);
}

.snapshot-detail-grid {
  display: grid;
  grid-template-columns: minmax(96px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.snapshot-chart {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.snapshot-chart-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 7px;
  align-items: center;
}

.snapshot-chart-row span,
.snapshot-chart-row b {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-chart-row b {
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  text-align: right;
}

.snapshot-chart-row div {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.snapshot-chart-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-live), var(--brand-signal));
  box-shadow: 0 0 14px rgba(69, 240, 165, 0.14);
}

.snapshot-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.snapshot-stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-stats span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.creator-editor {
  margin-bottom: 14px;
}

.creator-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wide-field {
  grid-column: 1 / -1;
}

.link-editor {
  display: grid;
  gap: 10px;
}

.link-editor > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-editor {
  display: grid;
  gap: 8px;
}

.schedule-editor > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-grid,
.channel-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 96px;
  gap: 12px;
}

.channel-add-row {
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr) auto;
  align-items: end;
}

.channel-link-list {
  display: grid;
  gap: 8px;
}

.channel-link-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--platform), var(--line) 72%);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.channel-link-row select,
.channel-link-row input {
  min-height: 40px;
}

.empty-state.compact {
  padding: 12px;
  text-align: left;
}

.auth-gate {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 204, 102, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 204, 102, 0.08);
}

.auth-gate p {
  margin: 0;
  color: var(--muted);
}

.compact-gate {
  max-width: none;
}

.disabled-block {
  opacity: 0.45;
  pointer-events: none;
}

.account-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.account-dashboard {
  display: grid;
  gap: 14px;
}

.account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.account-avatar {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 136, 0.42);
  border-radius: 8px;
  background: rgba(57, 255, 136, 0.12);
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 26px;
  font-weight: 800;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-identity {
  min-width: 0;
}

.account-identity h2 {
  margin: 0 0 4px;
  font-size: 28px;
}

.account-handle {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.account-kind {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-stat {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-stat span,
.account-row p {
  margin: 0;
  color: var(--muted);
}

.account-stat strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 34px;
  line-height: 1;
}

.account-settings {
  max-width: 680px;
}

.account-save-button {
  justify-self: end;
  width: auto;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 18, 63, 0.46);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 18, 63, 0.2), rgba(69, 240, 165, 0.08)),
    var(--surface-2);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(255, 18, 63, 0.1);
}

.account-save-button::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand-live);
  box-shadow: 0 0 12px rgba(255, 18, 63, 0.42);
}

.account-save-button:hover {
  border-color: rgba(255, 18, 63, 0.68);
  background:
    linear-gradient(90deg, rgba(255, 18, 63, 0.28), rgba(69, 240, 165, 0.1)),
    var(--surface-2);
}

.account-list {
  display: grid;
  gap: 0;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.account-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.account-row:last-child {
  padding-bottom: 0;
}

.account-row strong {
  display: block;
  margin-bottom: 4px;
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translate(-50%, 16px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(12px);
  overflow-x: hidden;
}

.modal-card {
  width: min(560px, 100%);
  max-width: calc(100vw - 36px);
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.large-modal {
  width: min(1000px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.modal-head h2 {
  margin: 0;
  font-size: 26px;
}

.welcome-splash-card {
  width: min(760px, 100%);
  min-width: 0;
  padding: 24px;
  border-color: rgba(255, 18, 63, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 18, 63, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(69, 240, 165, 0.055), transparent 42%),
    var(--surface);
}

.welcome-splash-head {
  margin-bottom: 16px;
}

.welcome-splash-card h2 {
  max-width: 620px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 0.98;
  overflow-wrap: break-word;
}

.welcome-splash-copy {
  max-width: 660px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.52;
  overflow-wrap: break-word;
}

.welcome-splash-points {
  display: grid;
  gap: 0;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.welcome-splash-points div {
  display: grid;
  grid-template-columns: minmax(100px, 0.28fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.welcome-splash-points div:first-child {
  border-top: 0;
}

.welcome-splash-points strong {
  color: var(--brand-signal);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 14px;
}

.welcome-splash-points span {
  color: var(--muted);
  line-height: 1.42;
}

.welcome-splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-splash-actions .primary-button,
.welcome-splash-actions .text-button {
  min-height: 42px;
}

.modal-form-panel {
  margin-bottom: 14px;
}

.modal-rating-summary {
  margin-bottom: 14px;
}

.claim-form {
  display: grid;
  gap: 14px;
}

#submit-creator-website {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.claim-instruction {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.stats-modal-card {
  width: min(1120px, 100%);
}

.stats-shell {
  display: grid;
  gap: 14px;
}

.stats-summary-grid,
.stats-overview-grid,
.stats-signal-grid,
.stats-split-grid {
  display: grid;
  gap: 10px;
}

.stats-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-signal-grid,
.stats-split-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-metric,
.stats-signal,
.stats-segment,
.stats-category-detail,
.stats-category-button,
.stats-insight-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.stats-metric,
.stats-signal,
.stats-segment {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
}

.stats-metric span,
.stats-signal span,
.stats-segment span,
.stats-detail-head span,
.stats-insight-copy > span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-metric strong,
.stats-signal strong,
.stats-segment strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-signal.named strong {
  font-family: inherit;
  font-size: 16px;
}

.stats-metric small,
.stats-signal p,
.stats-segment small,
.stats-insight-copy p,
.stats-insight-copy small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stats-insight-card {
  min-height: 110px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(69, 240, 165, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

#stats-insight-content {
  display: grid;
  grid-template-columns: minmax(130px, 0.58fr) minmax(190px, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.stats-insight-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stats-insight-copy > strong {
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 34px;
  line-height: 1;
}

.stats-mini-chart {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 18, 63, 0.14), transparent 42%),
    rgba(9, 10, 13, 0.32);
}

.stats-chart-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: center;
}

.stats-chart-row-tight {
  grid-template-columns: 18px minmax(0, 1fr) 22px;
}

.stats-chart-row span,
.stats-chart-row strong,
.stats-chart-comparison span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-chart-row strong {
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  text-align: right;
}

.stats-chart-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.stats-chart-fill {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-live), var(--brand-signal));
  box-shadow: 0 0 16px rgba(69, 240, 165, 0.18);
}

.stats-mini-chart-timeline {
  gap: 10px;
}

.stats-spark-bars {
  height: 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(6px, 1fr));
  gap: 5px;
  align-items: end;
}

.stats-spark-bars span {
  height: 100%;
  display: flex;
  align-items: end;
  min-width: 0;
}

.stats-spark-bars i {
  width: 100%;
  min-height: 6px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--brand-signal), rgba(59, 199, 255, 0.65));
  box-shadow: 0 0 12px rgba(69, 240, 165, 0.16);
}

.stats-chart-comparison {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stats-mini-chart-empty {
  min-height: 86px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.stats-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
}

.stats-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.stats-tab.active,
.stats-tab:hover {
  border-color: rgba(69, 240, 165, 0.32);
  color: var(--text);
  background: rgba(69, 240, 165, 0.08);
}

.stats-panel {
  min-height: 290px;
}

.stats-segment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.stats-peer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.stats-peer-metric,
.stats-peer-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.stats-peer-metric {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.stats-peer-metric span,
.stats-peer-card-head span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-peer-metric strong {
  overflow: hidden;
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-peer-metric.positive strong {
  color: var(--brand-signal);
}

.stats-peer-metric.negative strong {
  color: var(--danger);
}

.stats-peer-metric small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-peer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 12px;
  margin-top: 12px;
}

.stats-peer-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.stats-peer-card.wide {
  grid-column: span 1;
}

.stats-peer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-peer-card-head h3 {
  margin: 0;
  font-size: 17px;
}

.stats-peer-score-chart,
.stats-peer-gap-chart,
.stats-peer-edge-list,
.stats-peer-table,
.stats-peer-readout {
  display: grid;
  gap: 8px;
}

.stats-peer-score-row,
.stats-peer-gap-row,
.stats-peer-table-row {
  display: grid;
  align-items: center;
  gap: 8px;
}

.stats-peer-score-row {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.4fr) 34px 38px;
}

.stats-peer-gap-row {
  grid-template-columns: 72px minmax(0, 1fr) 44px;
}

.stats-peer-score-row > span,
.stats-peer-gap-row > span,
.stats-peer-table-row > span,
.stats-peer-table-row > strong,
.stats-peer-edge-row span,
.stats-peer-edge-row small,
.stats-peer-score-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-peer-score-row strong,
.stats-peer-gap-row strong,
.stats-peer-edge-row strong {
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-align: right;
}

.stats-peer-score-row > div,
.stats-peer-gap-row > div,
.stats-peer-edge-row > div {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.stats-peer-score-row i,
.stats-peer-gap-row i,
.stats-peer-edge-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-live), var(--brand-signal));
  box-shadow: 0 0 14px rgba(69, 240, 165, 0.14);
}

.stats-peer-score-row.current,
.stats-peer-table-row.current {
  padding: 7px;
  border: 1px solid rgba(69, 240, 165, 0.24);
  border-radius: 6px;
  background: rgba(69, 240, 165, 0.065);
}

.stats-peer-score-row.current > span,
.stats-peer-table-row.current > strong {
  color: var(--text);
}

.stats-peer-gap-row.current i,
.stats-peer-score-row.current i {
  background: linear-gradient(90deg, var(--brand-live), var(--brand-signal), var(--brand-blue));
}

.stats-peer-edge-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 44px minmax(0, 1fr) 74px;
  gap: 8px;
  align-items: center;
}

.stats-peer-edge-row.positive strong {
  color: var(--brand-signal);
}

.stats-peer-edge-row.negative strong {
  color: var(--danger);
}

.stats-peer-edge-row.negative i {
  background: linear-gradient(90deg, var(--danger), var(--brand-live));
}

.stats-peer-table {
  overflow: auto;
}

.stats-peer-table-row {
  grid-template-columns: 44px minmax(130px, 1fr) 54px 90px 48px;
  min-width: 560px;
  min-height: 34px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.stats-peer-table-row:last-child {
  border-bottom: 0;
}

.stats-peer-table-row > strong {
  color: var(--text);
}

.stats-peer-readout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.stats-peer-readout b {
  color: var(--text);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.stats-mini-track,
.stats-track {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.stats-mini-track {
  height: 7px;
}

.stats-track {
  height: 10px;
}

.stats-mini-track div,
.stats-track div {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.stats-drilldown {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
}

.stats-category-list {
  max-height: 430px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.stats-category-button {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.stats-category-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-category-button strong {
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.stats-category-button.active,
.stats-category-button:hover {
  border-color: rgba(69, 240, 165, 0.42);
  background: rgba(69, 240, 165, 0.08);
}

.stats-category-detail {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.stats-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stats-detail-head h3 {
  margin: 2px 0 0;
  font-size: 22px;
}

.stats-detail-head > strong {
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.stats-detail-head small {
  color: var(--muted);
  font-size: 13px;
}

.stats-option-bars,
.stats-histogram {
  display: grid;
  gap: 10px;
}

.stats-option-row,
.stats-band {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}

.stats-option-row > span,
.stats-band > span,
.stats-option-row > strong,
.stats-band > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stats-option-row b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13px;
}

.stats-distribution,
.stats-timeline-layout {
  display: grid;
  gap: 14px;
}

.stats-timeline {
  min-height: 240px;
  display: grid;
  grid-template-columns: repeat(30, minmax(10px, 1fr));
  align-items: end;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.stats-time-point {
  min-width: 0;
  height: 200px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px;
  align-items: end;
  gap: 6px;
}

.stats-time-point div {
  width: 100%;
  min-height: 8px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--accent), rgba(59, 199, 255, 0.66));
}

.stats-time-point span {
  overflow: hidden;
  color: var(--soft);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 920px) {
  .streamer-form-grid,
  .streamer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-grid,
  .channel-add-row,
  .channel-link-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .stats-peer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-peer-layout {
    grid-template-columns: 1fr;
  }

  .stats-drilldown {
    grid-template-columns: 1fr;
  }

  .stats-category-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 22px, 760px);
    padding-top: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .brand {
    justify-self: start;
  }

  .brand-logo-frame {
    width: 188px;
    height: 38px;
  }

  .brand-logo {
    height: 38px;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
  }

  .nav-link {
    justify-content: center;
    padding: 0 8px;
  }

  .header-submit-row {
    top: 108px;
  }

  .page-head:not(.profile-head),
  .signed-in-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .main-nav,
  .window-tabs {
    overflow-x: auto;
  }

  .rank-table {
    min-width: 0;
  }

  .rank-table th,
  .rank-table td {
    padding: 12px 6px;
  }

  .metric-grid,
  .profile-layout,
  .creator-card,
  .form-panel,
  .form-grid,
  .creator-form-grid,
  .streamer-form-grid,
  .streamer-grid,
  .account-panel,
  .account-stats,
  .rubric-list {
    grid-template-columns: 1fr;
  }

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

  .score-panel {
    min-height: auto;
    align-items: flex-start;
  }

  .profile-actions {
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
  }

  .profile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .floating-live {
    top: 16px;
    right: 16px;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bar-value {
    text-align: left;
  }

  .stats-signal-grid,
  .stats-split-grid,
  .stats-segment-row,
  .stats-peer-grid {
    grid-template-columns: 1fr;
  }

  .stats-peer-score-row,
  .stats-peer-edge-row {
    grid-template-columns: 1fr 50px;
  }

  .stats-peer-score-row > div,
  .stats-peer-edge-row > div {
    grid-column: 1 / -1;
  }

  .stats-timeline {
    overflow-x: auto;
    grid-template-columns: repeat(30, minmax(16px, 1fr));
  }
}

@media (max-width: 560px) {
  .schedule-grid,
  .channel-add-row,
  .channel-link-row {
    grid-template-columns: 1fr;
  }

  .creator-search-controls {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 8px;
  }

  .creator-filter-field select {
    padding: 0 28px 0 26px;
    font-size: 13px;
  }

  .creator-filter-field::before {
    left: 10px;
    width: 7px;
    height: 7px;
  }

  .creator-filter-field::after {
    right: 11px;
  }
}

@media (max-width: 520px) {
  .profile-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .page-head h1 {
    font-size: 38px;
  }

  .score-panel {
    flex-direction: column;
  }

  .creator-card {
    grid-template-columns: 1fr;
  }

  .streamer-card-actions,
  .snapshot-detail-grid,
  .snapshot-stats.three {
    grid-template-columns: 1fr;
  }

  .score-options {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    overflow-x: auto;
  }

  .rank-table {
    min-width: 0;
  }

  .global-stats-grid {
    grid-template-columns: 1fr;
  }

  .rank-table th,
  .rank-table td {
    padding: 11px 8px;
  }

  .account-hero,
  .account-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .account-hero .text-button,
  .account-row .text-button {
    width: 100%;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .stats-summary-grid,
  .stats-overview-grid,
  .stats-category-list {
    grid-template-columns: 1fr;
  }

  .stats-insight-card {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 8px;
  }

  #stats-insight-content {
    grid-template-columns: 1fr;
  }

  .stats-mini-chart {
    min-height: 76px;
  }

  .stats-detail-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 16px, 620px);
    padding-bottom: 30px;
  }

  .topbar {
    gap: 9px;
  }

  .brand-logo-frame {
    width: 176px;
    height: 36px;
  }

  .brand-logo {
    height: 36px;
  }

  .header-submit-row {
    top: 104px;
    right: 0;
  }

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

  .page-head h1 {
    font-size: 36px;
    line-height: 1;
  }

  .panel,
  .streamer-card,
  .modal-card {
    padding: 14px;
  }

  .global-stats-grid {
    gap: 10px;
  }

  .table-wrap {
    overflow: visible;
  }

  .rank-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .rank-table thead {
    display: none;
  }

  .rank-table tbody {
    display: grid;
    gap: 10px;
  }

  .rank-table tr {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 90px),
      rgba(20, 21, 25, 0.94);
  }

  .rank-table tr.rank-tier-gold {
    border-color: rgba(255, 209, 102, 0.4);
    background:
      linear-gradient(135deg, rgba(255, 209, 102, 0.075), transparent 46%),
      linear-gradient(110deg, transparent 0 42%, rgba(255, 244, 190, 0.045) 50%, transparent 58%),
      rgba(20, 21, 25, 0.94);
    background-size: auto, 220% 100%, auto;
    animation: tierShimmer 12s linear infinite;
  }

  .rank-table tr.rank-tier-silver {
    border-color: rgba(214, 224, 238, 0.34);
    background:
      linear-gradient(135deg, rgba(214, 224, 238, 0.06), transparent 46%),
      linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.04) 50%, transparent 58%),
      rgba(20, 21, 25, 0.94);
    background-size: auto, 220% 100%, auto;
    animation: tierShimmer 13s linear infinite;
  }

  .rank-table tr.rank-tier-bronze {
    border-color: rgba(205, 127, 50, 0.34);
    background:
      linear-gradient(135deg, rgba(205, 127, 50, 0.065), transparent 46%),
      linear-gradient(110deg, transparent 0 42%, rgba(239, 169, 99, 0.04) 50%, transparent 58%),
      rgba(20, 21, 25, 0.94);
    background-size: auto, 220% 100%, auto;
    animation: tierShimmer 14s linear infinite;
  }

  .rank-table th,
  .rank-table td {
    width: auto !important;
    padding: 0 !important;
    border-bottom: 0;
    text-align: left !important;
  }

  .rank-table td:nth-child(1) {
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--muted);
    font-weight: 900;
    text-align: center !important;
  }

  .rank-table td:nth-child(2) {
    grid-column: 2;
  }

  .rank-table td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .rank-table td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    color: var(--muted);
    font-size: 12px;
    text-align: right !important;
  }

  .rank-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .rank-table td:nth-child(6) {
    grid-column: 3;
    grid-row: 3;
    justify-self: end;
  }

  .rank-table td:nth-child(7) {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .rank-streamer {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .rank-streamer-photo {
    width: 34px;
  }

  .score-chip {
    min-width: 58px;
    min-height: 30px;
    padding: 0 12px;
  }

  .score-chip.unrated {
    min-width: 64px;
    max-width: 72px;
    padding: 0 8px;
    font-size: 10px;
  }

  .rank-table .platform-links {
    justify-content: flex-start;
  }

  .streamer-card {
    gap: 12px;
  }

  .streamer-card-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .streamer-photo-link,
  .streamer-thumb {
    width: 52px;
  }

  .streamer-card-snapshot {
    grid-template-columns: 1fr;
  }

  .streamer-card-score {
    min-height: 74px;
  }

  .streamer-card-score strong {
    font-size: 30px;
  }

  .streamer-card-score.unrated strong {
    font-size: 18px;
  }

  .streamer-card-actions .text-button {
    flex: 0 0 auto;
  }

  .platform-links {
    gap: 6px;
  }

  .platform-link {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .modal-layer {
    padding: 10px;
  }

  .modal-card,
  .stats-modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }

  .welcome-splash-card {
    position: fixed;
    left: 10px;
    right: auto;
    top: 50%;
    width: min(370px, calc(100dvw - 20px));
    max-width: min(370px, calc(100dvw - 20px));
    transform: translateY(-50%);
    padding: 18px;
  }

  .welcome-splash-card h2 {
    font-size: 30px;
    line-height: 1.02;
  }

  .welcome-splash-copy {
    font-size: 15px;
  }

  .welcome-splash-points div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .welcome-splash-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stats-insight-card {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }

  .stats-peer-table-row {
    min-width: 500px;
  }
}

@media (max-width: 390px) {
  .brand-logo-frame {
    width: 164px;
  }

  .nav-link {
    min-height: 32px;
    padding: 0 6px;
    font-size: 14px;
  }

  .nav-submit-button {
    width: 66px;
  }

  .page-head h1 {
    font-size: 32px;
  }

  .rank-table tr {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .rank-table td:nth-child(3),
  .rank-table td:nth-child(4),
  .rank-table td:nth-child(6) {
    grid-column: 2;
    justify-self: start;
    text-align: left !important;
  }

  .rank-table td:nth-child(3) {
    grid-row: 3;
  }

  .rank-table td:nth-child(4) {
    grid-row: 4;
  }

  .rank-table td:nth-child(5) {
    grid-row: 5;
  }

  .rank-table td:nth-child(6) {
    grid-row: 6;
  }

  .rank-table td:nth-child(7) {
    grid-row: 7;
  }
}
