:root {
  --app-max-width: 1380px;
}

body {
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding: 28px 20px 48px;
}

.app-header {
  max-width: var(--app-max-width);
  margin: 0 auto 24px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(0, 64, 74, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 64, 74, 0.08);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand-block {
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--core-text);
  text-decoration: none;
}

.brand-link > div {
  min-width: 0;
}

.brand-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-link strong,
.brand-link span {
  display: block;
}

.brand-link strong {
  font-size: 1.05rem;
  line-height: 1.12;
}

.brand-link span {
  color: var(--core-text-secondary);
  font-size: 0.88rem;
  line-height: 1.25;
}

.app-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.app-nav a {
  color: var(--core-text-secondary);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-nav a:hover,
.app-nav a.is-active {
  background: var(--core-primary);
  color: #fff;
  transform: translateY(-1px);
}

.nav-placeholder {
  color: var(--core-text-secondary);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-placeholder.is-active {
  background: var(--core-primary);
  color: #fff;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.page-wrap {
  max-width: var(--app-max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.flash-stack {
  display: grid;
  gap: 10px;
}

.flash {
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 700;
  box-shadow: var(--core-shadow-sm);
}

.flash-success {
  background: rgba(0, 169, 153, 0.14);
  color: #0e6158;
}

.flash-error {
  background: rgba(251, 44, 54, 0.12);
  color: #9f1d24;
}

.hero-card,
.section-head,
.visual-grid,
.two-column-grid,
.advisor-grid,
.kpi-grid {
  display: grid;
  gap: 18px;
}

.hero-card {
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
}

.hero-card.compact {
  min-height: 380px;
}

.hero-copy,
.hero-metrics,
.toolbar-card,
.head-note,
.empty-state {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,252,251,0.92));
  border: 1px solid rgba(0, 64, 74, 0.1);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--core-shadow-md);
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(226, 233, 50, 0.25), transparent 60%);
}

.hero-copy h1,
.section-head h1 {
  margin: 8px 0 10px;
  font-size: 2.55rem;
  line-height: 1;
}

.hero-copy p,
.section-head p,
.panel-head p,
.empty-state p {
  margin: 0;
  color: var(--core-text-secondary);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 169, 153, 0.12);
  color: #0f665d;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metrics,
.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card,
.kpi-tile {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f6fcfb);
  border: 1px solid rgba(0, 64, 74, 0.08);
}

.top3-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.top3-summary-card {
  padding: 24px 26px;
  border-radius: 26px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,252,250,0.92));
  box-shadow: var(--core-shadow-md);
}

.top3-summary-card span,
.top3-summary-card strong,
.top3-summary-card p {
  display: block;
}

.top3-summary-card span {
  margin-bottom: 10px;
  color: var(--core-text-muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.top3-summary-card strong {
  line-height: 1;
}

.top3-summary-card p {
  margin: 12px 0 0;
  color: var(--core-text-secondary);
}

.top3-summary-card.is-period strong {
  font-size: 2.4rem;
}

.top3-summary-card.is-candidates strong {
  font-size: 3rem;
}

.metric-label,
.kpi-tile span {
  display: block;
  font-size: 0.82rem;
  color: var(--core-text-muted);
  margin-bottom: 8px;
}

.metric-card strong,
.kpi-tile strong {
  font-size: 1.4rem;
}

.two-column-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.9fr);
  align-items: start;
}

.stack-panel,
.stack-form {
  display: grid;
  gap: 16px;
}

.panel-card {
  padding: 22px;
}

.panel-card--chart {
  display: grid;
  grid-template-rows: auto 1fr;
}

.chart-frame {
  position: relative;
  width: 100%;
}

.chart-frame--sales {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
}

.chart-frame--distribution {
  height: 330px;
  min-height: 330px;
  max-height: 330px;
}

.chart-frame--management {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
}

.panel-head h2,
.weight-block h3 {
  margin: 0 0 8px;
}

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

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

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

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

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

.settings-grid--fit {
  grid-template-columns: minmax(220px, 280px);
  justify-content: start;
}

.settings-grid--filter.is-average [data-quantity-filter-mode-field] {
  grid-column: 1 / -1;
}

.settings-grid [hidden] {
  display: none !important;
}

.settings-field--short {
  width: min(100%, 260px);
  justify-self: start;
}

label span {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--core-text-secondary);
}

.weight-block {
  display: grid;
  gap: 18px;
  border-top: 1px solid rgba(0, 64, 74, 0.08);
  padding-top: 22px;
}

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

.settings-section-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 24px 24px 22px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  border-radius: 26px;
  box-shadow: 0 16px 34px rgba(0, 64, 74, 0.06);
}

.settings-section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 26px 0 0 26px;
}

.settings-section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.settings-section-card--active {
  background:
    linear-gradient(135deg, rgba(245, 248, 248, 0.98), rgba(255, 255, 255, 0.98) 64%),
    linear-gradient(180deg, rgba(118, 146, 150, 0.08), transparent 70%);
  border-color: rgba(113, 139, 143, 0.2);
}

.settings-section-card--active::before {
  background: linear-gradient(180deg, rgba(88, 116, 121, 0.92), rgba(120, 147, 152, 0.62));
}

.settings-section-card--active::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(169, 188, 191, 0.16), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(228, 235, 235, 0.22), transparent 26%);
}

.weight-block--featured {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 24px 22px;
  border-top: none;
  border: 1px solid rgba(0, 64, 74, 0.08);
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(0, 64, 74, 0.08);
}

.weight-block--featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 26px 0 0 26px;
}

.weight-block--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.92;
}

.weight-block--featured h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.weight-block--featured h3::after {
  content: "";
  width: 44px;
  height: 2px;
  border-radius: 999px;
}

.weight-block--bonus {
  background:
    linear-gradient(135deg, rgba(245, 247, 239, 0.98), rgba(255, 255, 255, 0.98) 62%),
    linear-gradient(180deg, rgba(164, 176, 127, 0.08), transparent 72%);
  border-color: rgba(148, 160, 116, 0.2);
}

.weight-block--bonus::before {
  background: linear-gradient(180deg, rgba(132, 147, 84, 0.9), rgba(171, 182, 133, 0.62));
}

.weight-block--bonus::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(180, 191, 146, 0.14), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(232, 237, 220, 0.18), transparent 28%);
}

.weight-block--bonus h3 {
  color: #52623a;
}

.weight-block--bonus h3::after {
  background: linear-gradient(90deg, rgba(132, 147, 84, 0.88), rgba(132, 147, 84, 0.18));
}

.weight-block--top3 {
  background:
    linear-gradient(135deg, rgba(241, 247, 248, 0.98), rgba(255, 255, 255, 0.98) 62%),
    linear-gradient(180deg, rgba(91, 146, 151, 0.08), transparent 72%);
  border-color: rgba(95, 142, 146, 0.18);
}

.weight-block--top3::before {
  background: linear-gradient(180deg, rgba(67, 119, 124, 0.92), rgba(105, 151, 155, 0.62));
}

.weight-block--top3::after {
  background:
    radial-gradient(circle at 14% 20%, rgba(141, 178, 181, 0.14), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(226, 238, 239, 0.18), transparent 28%);
}

.weight-block--top3 h3 {
  color: #35646a;
}

.weight-block--top3 h3::after {
  background: linear-gradient(90deg, rgba(67, 119, 124, 0.88), rgba(67, 119, 124, 0.18));
}

.weight-block--commercial {
  background:
    linear-gradient(135deg, rgba(246, 250, 246, 0.98), rgba(255, 255, 255, 0.98) 62%),
    linear-gradient(180deg, rgba(42, 139, 99, 0.08), transparent 72%);
  border-color: rgba(45, 133, 97, 0.18);
}

.weight-block--commercial::before {
  background: linear-gradient(180deg, rgba(21, 128, 91, 0.92), rgba(108, 158, 112, 0.62));
}

.weight-block--commercial::after {
  background:
    radial-gradient(circle at 14% 20%, rgba(116, 173, 135, 0.14), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(229, 241, 229, 0.18), transparent 28%);
}

.weight-block--commercial h3 {
  color: #286345;
}

.weight-block--commercial h3::after {
  background: linear-gradient(90deg, rgba(21, 128, 91, 0.88), rgba(21, 128, 91, 0.18));
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.button-row,
.action-row,
.selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.core-btn-danger {
  background: rgba(251, 44, 54, 0.12);
  color: #a1121a;
  border-color: rgba(251, 44, 54, 0.22);
  box-shadow: none;
}

.core-btn-danger:hover:not(:disabled) {
  background: rgba(251, 44, 54, 0.18);
  border-color: rgba(251, 44, 54, 0.3);
}

.selector-row.stretch {
  align-items: end;
}

.selector-row.stretch label {
  min-width: 240px;
  flex: 1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-shell {
  overflow: auto;
}

.top3-table-groups {
  display: grid;
  gap: 18px;
}

.top3-table-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.top3-table-switcher__button {
  appearance: none;
  border: 1px solid rgba(0, 64, 74, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--core-text-secondary);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--core-font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.top3-table-switcher__button:hover {
  transform: translateY(-1px);
}

.top3-table-switcher__button.is-active {
  background: linear-gradient(135deg, rgba(0, 64, 74, 0.98), rgba(0, 107, 105, 0.94));
  color: #fff;
  border-color: rgba(0, 64, 74, 0.18);
  box-shadow: 0 14px 26px rgba(0, 64, 74, 0.14);
}

.top3-table-card {
  overflow: hidden;
}

.top3-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.top3-table-scroll table {
  min-width: 1560px;
}

.top3-table-scroll:focus-visible {
  outline: 2px solid rgba(0, 107, 105, 0.65);
  outline-offset: -2px;
}

.top3-table-card[hidden] {
  display: none !important;
}

.top3-table-card__head {
  display: grid;
  gap: 8px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(0, 64, 74, 0.08);
  background: linear-gradient(135deg, rgba(241, 249, 247, 0.92), rgba(255, 255, 255, 0.96));
}

.top3-table-card__head h2,
.top3-table-card__head p {
  margin: 0;
}

.top3-table-card__head h2 {
  font-size: 1rem;
  color: #0d5d58;
}

.top3-table-card__head p {
  color: var(--core-text-secondary);
  line-height: 1.5;
}

.top3-table-card--watch .top3-table-card__head {
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.92), rgba(255, 255, 255, 0.96));
}

.top3-table-card--watch .top3-table-card__head h2 {
  color: #8a5b28;
}

.table-shell.compact {
  max-height: 320px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 64, 74, 0.08);
  vertical-align: middle;
}

th {
  font-size: 0.82rem;
  color: var(--core-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person-cell img,
.mini-podium__item img,
.advisor-card img,
.podium-card img {
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,64,74,0.12), rgba(0,169,153,0.18));
}

.person-cell img {
  width: 54px;
  height: 54px;
}

.person-cell strong,
.advisor-card h2,
.podium-card h2 {
  display: block;
  margin-bottom: 4px;
}

.person-cell span {
  color: var(--core-text-muted);
  font-size: 0.8rem;
}

.visual-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.top3-visual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.top3-visual-grid .panel-card--distribution {
  grid-column: 1 / -1;
}

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

.bonuses-grid .panel-card--integral-map {
  grid-column: 1 / -1;
}

.chart-frame--bonus-score {
  height: 400px;
  min-height: 400px;
  max-height: 400px;
}

.integral-insight-layout,
.tv-integral-insight-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.integral-pillar-grid,
.tv-integral-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.integral-pillar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(48, 91, 140, 0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.92)),
    radial-gradient(circle at 18% 18%, rgba(88,149,220,0.1), transparent 28%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.integral-pillar-card__topline,
.integral-pillar-card__stats,
.integral-pillar-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.integral-pillar-card__topline {
  align-items: center;
}

.integral-pillar-card__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(48, 91, 140, 0.64);
}

.integral-pillar-card__status {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(38, 77, 122, 0.92);
  background: rgba(235, 242, 252, 0.9);
}

.integral-pillar-card.tone-integral {
  background:
    linear-gradient(180deg, rgba(245,249,255,0.98), rgba(235,243,255,0.92)),
    radial-gradient(circle at 18% 18%, rgba(88,149,220,0.12), transparent 28%);
}

.integral-pillar-card.tone-management {
  background:
    linear-gradient(180deg, rgba(246,251,248,0.98), rgba(236,247,241,0.92)),
    radial-gradient(circle at 18% 18%, rgba(109,165,138,0.12), transparent 28%);
}

.integral-pillar-card.tone-tmi {
  background:
    linear-gradient(180deg, rgba(255,250,242,0.98), rgba(249,243,229,0.92)),
    radial-gradient(circle at 18% 18%, rgba(221,179,99,0.13), transparent 28%);
}

.integral-pillar-card.tone-quality {
  background:
    linear-gradient(180deg, rgba(255,247,243,0.98), rgba(251,239,233,0.92)),
    radial-gradient(circle at 18% 18%, rgba(233,142,116,0.13), transparent 28%);
}

.integral-pillar-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.integral-pillar-card__header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.integral-pillar-card__lead {
  margin: 0;
  color: var(--core-text-secondary);
  line-height: 1.5;
}

.integral-pillar-card__meter {
  --eligible: 0%;
  --watch: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integral-pillar-card__ring {
  position: relative;
  width: 108px;
  height: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.98) 0 46px, transparent 47px),
    conic-gradient(rgba(48, 91, 140, 0.94) 0 var(--eligible), rgba(204, 218, 236, 0.42) var(--eligible) 100%);
}

.integral-pillar-card.tone-management .integral-pillar-card__ring {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.98) 0 46px, transparent 47px),
    conic-gradient(rgba(89, 145, 117, 0.94) 0 var(--eligible), rgba(204, 222, 212, 0.42) var(--eligible) 100%);
}

.integral-pillar-card.tone-tmi .integral-pillar-card__ring {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.98) 0 46px, transparent 47px),
    conic-gradient(rgba(209, 156, 66, 0.94) 0 var(--eligible), rgba(234, 222, 196, 0.42) var(--eligible) 100%);
}

.integral-pillar-card.tone-quality .integral-pillar-card__ring {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.98) 0 46px, transparent 47px),
    conic-gradient(rgba(222, 123, 95, 0.94) 0 var(--eligible), rgba(239, 215, 206, 0.42) var(--eligible) 100%);
}

.integral-pillar-card__ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  border: 6px solid rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(48, 91, 140, 0.08);
}

.integral-pillar-card__ring > span {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 800;
  color: #274f7c;
}

.integral-pillar-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.integral-pillar-card__stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(48, 91, 140, 0.08);
}

.integral-pillar-card__stat span {
  font-size: 0.8rem;
  color: rgba(48, 91, 140, 0.68);
}

.integral-pillar-card__stat strong {
  font-size: 1.02rem;
}

.integral-pillar-card__stat.is-gap {
  background: rgba(238, 244, 250, 0.92);
}

.integral-pillar-card__meta {
  display: grid;
  gap: 6px;
}

.integral-pillar-card__meta span {
  font-size: 0.9rem;
  color: var(--core-text-secondary);
}

.integral-pillar-card__meta strong {
  font-size: 0.95rem;
  color: #244e77;
  line-height: 1.45;
}

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

.mini-podium__item {
  text-align: center;
  padding: 18px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(242,249,247,0.9));
}

.mini-podium__item.rank-1 {
  background: linear-gradient(180deg, rgba(226,233,50,0.3), rgba(255,255,255,0.95));
}

.mini-podium__item img {
  width: 90px;
  height: 90px;
  margin-bottom: 10px;
}

.mini-podium__item span,
.mini-podium__item em {
  display: block;
}

.search-row {
  padding: 14px;
}

.podium-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.podium-card {
  padding: 24px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.podium-card.rank-1 {
  min-height: 420px;
  background: linear-gradient(180deg, rgba(226,233,50,0.28), #fff);
}

.podium-card.rank-2 {
  min-height: 360px;
}

.podium-card.rank-3 {
  min-height: 330px;
}

.podium-card img {
  width: 150px;
  height: 150px;
  margin: 18px auto 14px;
  border-radius: 34px;
}

.interactive-podium {
  align-items: stretch;
}

.interactive-podium .podium-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(0, 64, 74, 0.1);
  box-shadow: 0 22px 46px rgba(0, 64, 74, 0.1);
}

.interactive-podium .podium-card > * {
  position: relative;
  z-index: 1;
}

.interactive-podium-card__shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.74), transparent 56%);
}

.interactive-podium .podium-card.rank-1 {
  background: linear-gradient(180deg, rgba(245, 247, 207, 0.98), rgba(255, 255, 255, 0.96));
  border-color: rgba(199, 183, 37, 0.22);
}

.interactive-podium .podium-card.rank-1 .interactive-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 233, 50, 0.3), transparent 58%),
    radial-gradient(circle at 16% 14%, rgba(255, 244, 168, 0.44), transparent 34%);
}

.interactive-podium .podium-card.rank-2 {
  min-height: 420px;
  background: linear-gradient(180deg, rgba(237, 241, 246, 0.98), rgba(255, 255, 255, 0.96));
  border-color: rgba(177, 188, 201, 0.28);
}

.interactive-podium .podium-card.rank-2 .interactive-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 223, 232, 0.42), transparent 58%),
    radial-gradient(circle at 16% 14%, rgba(246, 248, 251, 0.6), transparent 34%);
}

.interactive-podium .podium-card.rank-3 {
  min-height: 420px;
  background: linear-gradient(180deg, rgba(244, 233, 223, 0.98), rgba(255, 255, 255, 0.96));
  border-color: rgba(190, 151, 117, 0.26);
}

.interactive-podium .podium-card.rank-3 .interactive-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 188, 158, 0.4), transparent 58%),
    radial-gradient(circle at 16% 14%, rgba(249, 238, 229, 0.58), transparent 34%);
}

.interactive-podium .podium-card h2 {
  margin-top: 8px;
  line-height: 1.08;
}

.podium-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--core-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 12px 24px rgba(0, 64, 74, 0.22);
}

.podium-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  color: var(--core-text-secondary);
  font-weight: 700;
}

.interactive-podium .podium-stats {
  margin-top: auto;
  padding-top: 18px;
}

.eligibility-stack,
.movement-list {
  display: grid;
  gap: 12px;
}

.eligibility-line,
.movement-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(242, 249, 247, 0.9);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.advisor-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.advisor-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.advisor-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.advisor-card h2,
.advisor-card__copy p,
.advisor-card .core-pill,
.head-note span {
  overflow-wrap: anywhere;
}

.advisor-card__copy p,
.hint-line {
  margin: 0;
  color: var(--core-text-muted);
}

.auth-card {
  padding: 26px;
  align-self: center;
}

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

.auth-value-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 250, 0.92)),
    radial-gradient(circle at 18% 18%, rgba(226, 233, 50, 0.12), transparent 26%);
  box-shadow: 0 14px 30px rgba(0, 64, 74, 0.06);
}

.auth-value-card span,
.auth-value-card strong {
  display: block;
}

.auth-value-card span {
  color: var(--core-text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-value-card strong {
  font-size: 0.98rem;
  line-height: 1.28;
  color: var(--core-text);
}

.auth-card__head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-card__head h2,
.auth-card__head p {
  margin: 0;
}

.auth-card__head h2 {
  font-size: 1.6rem;
  line-height: 1.02;
}

.auth-card__head p {
  color: var(--core-text-secondary);
  line-height: 1.6;
}

.auth-help {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 64, 74, 0.08);
}

.auth-help__item strong,
.auth-help__item span {
  display: block;
}

.auth-help__item span {
  margin-top: 4px;
  color: var(--core-text-muted);
  font-family: var(--core-font-mono);
  font-size: 0.82rem;
}

.full-width {
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 42px 24px;
}

.empty-state h2 {
  margin-top: 0;
}

.toolbar-card,
.head-note,
.search-row {
  padding: 18px;
}

.head-note strong,
.head-note span {
  display: block;
}

body.tv-mode {
  background:
    radial-gradient(circle at top left, rgba(226, 233, 50, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 169, 153, 0.18), transparent 32%),
    linear-gradient(180deg, #edf6f4 0%, #dfeeed 100%);
}

.tv-mode .app-shell {
  padding-top: 22px;
}

.tv-mode .page-wrap,
.tv-mode .app-header {
  max-width: 1520px;
}

.tv-mode .app-header {
  position: static;
  background: rgba(245, 252, 251, 0.8);
  border-color: rgba(0, 64, 74, 0.12);
  box-shadow: 0 20px 50px rgba(0, 64, 74, 0.1);
}

.tv-mode .section-head {
  display: none;
}

.tv-stage {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 34px;
  border: 1px solid rgba(0, 64, 74, 0.12);
  background:
    radial-gradient(circle at 15% 15%, rgba(226, 233, 50, 0.22), transparent 22%),
    radial-gradient(circle at 85% 18%, rgba(0, 169, 153, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 247, 0.92));
  box-shadow: 0 30px 70px rgba(0, 64, 74, 0.12);
}

.tv-stage::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 153, 0.16), transparent 65%);
  pointer-events: none;
}

.tv-stage__hero,
.tv-stage__layout,
.tv-period-card {
  position: relative;
  z-index: 1;
}

.tv-stage__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: end;
}

.tv-stage__copy h2 {
  margin: 12px 0 12px;
  font-size: 2.8rem;
  line-height: 0.95;
}

.tv-stage__copy p {
  max-width: 840px;
  margin: 0;
  color: var(--core-text);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.72;
}

.tv-stage__actions {
  display: grid;
  gap: 12px;
}

.tv-selector-row,
.tv-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.tv-status-row strong {
  color: inherit;
}

.tv-status-row .core-chip {
  padding: 10px 16px;
  font-size: 0.96rem;
}

.tv-period-card {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(0, 64, 74, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(0, 64, 74, 0.08);
}

.tv-period-card span,
.tv-period-card strong {
  display: block;
}

.tv-period-card span {
  margin-bottom: 8px;
  color: var(--core-text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-period-card strong {
  font-size: 2rem;
  line-height: 1.05;
}

.tv-stage__layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.96fr);
  gap: 24px;
  align-items: start;
}

.tv-podium-shell {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 620px;
  padding: 6px 0 0;
}

.tv-podium-card {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  flex: 1 1 0;
  width: auto;
  max-width: 258px;
  min-width: 0;
  padding: 26px 20px 22px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 250, 248, 0.92));
  box-shadow: 0 24px 55px rgba(0, 64, 74, 0.12);
}

.tv-podium-card > *:not(.podium-badge):not(.tv-podium-card__award):not(.tv-podium-card__shine) {
  position: relative;
  z-index: 1;
}

.tv-podium-card > .podium-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}

.tv-podium-card__shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 58%);
}

.tv-podium-card h2 {
  margin: 0;
  text-align: center;
  line-height: 1.05;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tv-podium-card.rank-1 {
  order: 2;
  min-height: 548px;
  margin-top: 0;
  border-color: rgba(199, 183, 37, 0.22);
  background: linear-gradient(180deg, rgba(245, 247, 207, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 55px rgba(176, 174, 45, 0.16), 0 24px 55px rgba(0, 64, 74, 0.1);
}

.tv-podium-card.rank-2 {
  order: 1;
  min-height: 500px;
  margin-top: 42px;
  border-color: rgba(177, 188, 201, 0.28);
  background: linear-gradient(180deg, rgba(237, 241, 246, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 55px rgba(185, 193, 202, 0.18), 0 24px 55px rgba(0, 64, 74, 0.1);
}

.tv-podium-card.rank-3 {
  order: 3;
  min-height: 462px;
  margin-top: 84px;
  border-color: rgba(190, 151, 117, 0.26);
  background: linear-gradient(180deg, rgba(244, 233, 223, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 55px rgba(191, 151, 117, 0.16), 0 24px 55px rgba(0, 64, 74, 0.1);
}

.tv-podium-card.rank-1 .tv-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 233, 50, 0.34), transparent 56%),
    radial-gradient(circle at 15% 12%, rgba(255, 244, 168, 0.48), transparent 34%);
}

.tv-podium-card.rank-2 .tv-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 223, 232, 0.46), transparent 58%),
    radial-gradient(circle at 18% 14%, rgba(246, 248, 251, 0.6), transparent 32%);
}

.tv-podium-card.rank-3 .tv-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 188, 158, 0.42), transparent 58%),
    radial-gradient(circle at 18% 14%, rgba(249, 238, 229, 0.6), transparent 32%);
}

.tv-podium-card img {
  width: 168px;
  height: 168px;
  margin: 18px auto 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 250, 0.94));
  box-shadow: 0 16px 40px rgba(0, 64, 74, 0.12);
  filter: none;
  opacity: 1;
}

.tv-podium-card.rank-1 img {
  width: 204px;
  height: 204px;
}

.tv-podium-card__award {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff4a8, #e2e932);
  color: #0a5151;
  font-size: 1.8rem;
  box-shadow: 0 14px 30px rgba(122, 132, 8, 0.22);
}

.tv-podium-card__rank-label {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 64, 74, 0.08);
  color: #0b5b55;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tv-podium-card h2 {
  margin-top: 14px;
  font-size: 1.24rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.tv-podium-card.rank-1 h2 {
  font-size: 1.4rem;
}

.tv-podium-card p {
  margin: 0;
  color: var(--core-text-secondary);
  font-size: 0.9rem;
}

.tv-podium-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.tv-podium-stats span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--core-text-secondary);
  font-weight: 800;
  font-size: 0.86rem;
}

.tv-mode .podium-badge {
  top: 22px;
  left: 22px;
  width: 54px;
  height: 54px;
  font-size: 1.3rem;
}

.tv-scoreboard {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  align-content: start;
  min-height: 0;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0, 64, 74, 0.1);
}

.tv-scoreboard__head p {
  max-width: 32rem;
}

.tv-scoreboard__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tv-scoreboard__toggle {
  appearance: none;
  border: 1px solid rgba(0, 64, 74, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--core-text-secondary);
  border-radius: 999px;
  padding: 11px 16px;
  font-family: var(--core-font-sans);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tv-scoreboard__toggle:hover {
  transform: translateY(-1px);
}

.tv-scoreboard__toggle.is-active {
  background: linear-gradient(135deg, rgba(0, 64, 74, 0.98), rgba(0, 107, 105, 0.94));
  color: #fff;
  border-color: rgba(0, 64, 74, 0.18);
  box-shadow: 0 12px 24px rgba(0, 64, 74, 0.16);
}

.tv-scoreboard__sections {
  display: grid;
  gap: 16px;
  min-height: 0;
  align-content: start;
}

.tv-scoreboard-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tv-scoreboard-section[hidden] {
  display: none !important;
}

.tv-scoreboard-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 24px 0 0 24px;
}

.tv-scoreboard-section--candidate {
  background:
    linear-gradient(135deg, rgba(241, 252, 248, 0.95), rgba(255, 255, 255, 0.92) 74%),
    radial-gradient(circle at 14% 16%, rgba(0, 169, 153, 0.09), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(226, 233, 50, 0.1), transparent 24%);
  border-color: rgba(42, 126, 115, 0.18);
}

.tv-scoreboard-section--candidate::before {
  background: linear-gradient(180deg, rgba(24, 129, 116, 0.96), rgba(150, 189, 59, 0.48));
}

.tv-scoreboard-section--watch {
  background:
    linear-gradient(135deg, rgba(252, 247, 241, 0.95), rgba(255, 255, 255, 0.94) 76%),
    radial-gradient(circle at 14% 16%, rgba(190, 153, 105, 0.08), transparent 24%);
  border-color: rgba(181, 143, 95, 0.16);
}

.tv-scoreboard-section--watch::before {
  background: linear-gradient(180deg, rgba(162, 112, 58, 0.9), rgba(207, 166, 117, 0.5));
}

.tv-scoreboard-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 14px 20px;
  border-bottom: 1px solid rgba(0, 64, 74, 0.08);
}

.tv-scoreboard-section__head h3,
.tv-scoreboard-section__head p {
  margin: 0;
}

.tv-scoreboard-section__head h3 {
  font-size: 1.08rem;
  line-height: 1.1;
  color: #083f43;
}

.tv-scoreboard-section__head p {
  margin-top: 7px;
  color: var(--core-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tv-scoreboard-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 169, 153, 0.12);
  color: #0c6159;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-scoreboard-section__eyebrow.is-watch {
  background: rgba(188, 166, 122, 0.14);
  color: #6f5a3e;
}

.tv-scoreboard-section__count {
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 64, 74, 0.08);
  color: #0d5d58;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tv-scoreboard-section__count.is-watch {
  background: rgba(188, 166, 122, 0.16);
  color: #6f5a3e;
}

.tv-scoreboard-section__body {
  min-height: 0;
  max-height: clamp(290px, 39vh, 430px);
  overflow: auto;
  padding: 14px;
}

.tv-panel--sidebar .tv-scoreboard-section {
  height: 100%;
}

.tv-panel--sidebar .tv-scoreboard-section__body {
  max-height: clamp(460px, 63vh, 720px);
}

.tv-scoreboard__list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.tv-scoreboard-section__body::-webkit-scrollbar {
  width: 10px;
}

.tv-scoreboard-section__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 64, 74, 0.14);
}

.tv-score-row {
  display: grid;
  grid-template-columns: 48px 62px minmax(0, 1fr) 136px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  min-height: 118px;
  border-radius: 22px;
  background: rgba(240, 249, 247, 0.86);
  border: 1px solid rgba(0, 64, 74, 0.08);
  box-shadow: 0 12px 24px rgba(0, 64, 74, 0.05);
}

.tv-score-row.is-podium {
  background:
    linear-gradient(135deg, rgba(245, 247, 207, 0.94), rgba(255, 255, 255, 0.96) 72%),
    radial-gradient(circle at 12% 14%, rgba(226, 233, 50, 0.14), transparent 28%);
  border-color: rgba(199, 183, 37, 0.18);
}

.tv-score-row--watch {
  background:
    linear-gradient(135deg, rgba(252, 248, 241, 0.94), rgba(255, 255, 255, 0.96) 72%),
    radial-gradient(circle at 12% 14%, rgba(205, 188, 154, 0.12), transparent 28%);
  border-color: rgba(171, 149, 108, 0.14);
}

.tv-score-row__rank {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--core-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.tv-score-row img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 18px;
}

.tv-score-row__copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.tv-score-row__copy strong,
.tv-score-row__copy span,
.tv-score-row__copy small {
  display: block;
}

.tv-score-row__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.15;
}

.tv-score-row__copy span {
  color: var(--core-text-secondary);
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-score-row__feedback {
  min-height: 2.32rem;
  color: #0d5d58;
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-score-row__feedback.is-watch {
  color: #746042;
}

.tv-score-row__status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding-top: 2px;
}

.tv-score-row__status .core-pill,
.tv-score-row__status .status-pill {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}

.tv-hub {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(0, 64, 74, 0.12);
  background:
    radial-gradient(circle at 12% 14%, rgba(226, 233, 50, 0.18), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(0, 169, 153, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 247, 0.94));
  box-shadow: 0 30px 70px rgba(0, 64, 74, 0.12);
}

.tv-hub__hero,
.tv-hub__period,
.tv-scene-stack {
  position: relative;
  z-index: 1;
}

.tv-hub__hero {
  display: block;
}

.tv-hub__console-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: end;
}

.tv-hub__copy {
  display: grid;
  gap: 10px;
}

.tv-hub__copy-block {
  display: grid;
  gap: 6px;
}

.tv-hub__copy h1 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.02;
}

.tv-hub__copy p {
  max-width: 38rem;
  margin: 0;
  color: var(--core-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
}

.tv-hub__control-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 26px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 64, 74, 0.08);
}

.tv-hub__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tv-hub__control-stack {
  display: grid;
  gap: 10px;
}

.tv-control-group {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: linear-gradient(135deg, rgba(248, 251, 251, 0.86), rgba(255, 255, 255, 0.92));
}

.tv-control-group--content {
  background: linear-gradient(135deg, rgba(241, 248, 247, 0.9), rgba(255, 255, 255, 0.94));
}

.tv-control-group--scene {
  background: linear-gradient(135deg, rgba(247, 250, 250, 0.88), rgba(255, 255, 255, 0.94));
}

.tv-control-group--auto {
  background: linear-gradient(135deg, rgba(244, 248, 247, 0.88), rgba(255, 255, 255, 0.94));
}

.tv-control-group__label {
  color: var(--core-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.tv-control-group[hidden],
.tv-scene-switch[hidden],
.tv-auto-status[hidden] {
  display: none !important;
}

.tv-master-switch,
.tv-scene-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-master-switch__button,
.tv-scene-switch__button {
  appearance: none;
  border: 1px solid rgba(0, 64, 74, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--core-text-secondary);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--core-font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tv-master-switch__button:hover,
.tv-scene-switch__button:hover {
  transform: translateY(-1px);
}

.tv-master-switch__button.is-active,
.tv-scene-switch__button.is-active {
  background: linear-gradient(135deg, rgba(0, 64, 74, 0.98), rgba(0, 107, 105, 0.94));
  color: #fff;
  border-color: rgba(0, 64, 74, 0.18);
  box-shadow: 0 12px 24px rgba(0, 64, 74, 0.14);
}

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

.tv-auto-toggle {
  appearance: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tv-auto-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.tv-auto-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.tv-hub__period {
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(0, 64, 74, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(0, 64, 74, 0.08);
}

.tv-hub__period span,
.tv-hub__period strong {
  display: block;
}

.tv-hub__period span {
  margin-bottom: 8px;
  color: var(--core-text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-hub__period strong {
  font-size: 1.7rem;
  line-height: 1.04;
}

.tv-scene-stack {
  display: grid;
  min-height: 0;
}

.tv-scene {
  animation: tvSceneSwap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center top;
}

.tv-scene[hidden] {
  display: none !important;
}

.tv-scene-grid {
  display: grid;
  gap: 22px;
}

body.tv-auto-view {
  overflow: hidden;
}

body.tv-auto-view .app-header {
  display: none;
}

body.tv-auto-view .app-shell,
body.tv-auto-view .page-wrap {
  min-height: 100vh;
  height: 100vh;
}

body.tv-auto-view .app-shell {
  padding: 0;
}

body.tv-auto-view .page-wrap {
  max-width: none;
  gap: 0;
}

.tv-hub.is-auto-view {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  gap: 12px;
  padding: 16px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  grid-template-rows: auto minmax(0, 1fr);
}

.tv-hub.is-auto-view .tv-hub__hero {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

.tv-hub.is-auto-view .tv-hub__period {
  width: fit-content;
  max-width: min(48vw, 560px);
  justify-self: start;
  align-self: start;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(0, 64, 74, 0.08);
}

.tv-hub.is-auto-view .tv-hub__copy,
.tv-hub.is-auto-view .tv-hub__form,
.tv-hub.is-auto-view .tv-control-group--content,
.tv-hub.is-auto-view .tv-control-group--scene {
  display: none;
}

.tv-hub.is-auto-view .tv-hub__control-panel {
  gap: 0;
  padding: 10px 12px;
  max-width: 340px;
  border-radius: 20px;
  background: rgba(248, 252, 251, 0.72);
  border-color: rgba(0, 64, 74, 0.08);
  box-shadow: 0 12px 34px rgba(0, 64, 74, 0.08);
}

.tv-hub.is-auto-view .tv-control-group--auto {
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.tv-hub.is-auto-view .tv-hub__period span {
  margin-bottom: 6px;
  font-size: 0.74rem;
}

.tv-hub.is-auto-view .tv-hub__period strong {
  font-size: 1.35rem;
}

.tv-hub.is-auto-view .tv-scene-stack,
.tv-hub.is-auto-view .tv-scene,
.tv-hub.is-auto-view .tv-scene-grid {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.tv-hub.is-auto-view .tv-scene,
.tv-hub.is-auto-view .tv-scene-stack {
  overflow: hidden;
}


.tv-hub.is-auto-view .tv-panel,
.tv-hub.is-auto-view .tv-scoreboard-section,
.tv-hub.is-auto-view .tv-spotlight {
  height: 100%;
  min-height: 0;
}

.tv-hub.is-auto-view .tv-panel {
  gap: 14px;
  padding: 18px;
}

.tv-hub.is-auto-view .tv-panel--list,
.tv-hub.is-auto-view .tv-spotlight {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
}

.tv-hub.is-auto-view .tv-panel__head {
  gap: 6px;
  align-content: start;
  align-self: start;
}

.tv-hub.is-auto-view .tv-panel__head h2 {
  font-size: 1.1rem;
}

.tv-hub.is-auto-view .tv-panel__head p {
  font-size: 0.88rem;
  line-height: 1.45;
}

.tv-hub.is-auto-view .tv-scene-grid--charts {
  grid-template-rows: minmax(290px, 0.86fr) minmax(0, 1.14fr);
}

.tv-hub.is-auto-view .tv-panel--sidebar .tv-scoreboard-section__body {
  max-height: none;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-panel--chart {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-score-row {
  min-height: 102px;
}

.tv-hub.is-auto-view .tv-score-row__copy strong {
  font-size: 0.94rem;
}

.tv-hub.is-auto-view .tv-score-row__copy span,
.tv-hub.is-auto-view .tv-score-row__feedback {
  font-size: 0.78rem;
}

.tv-hub.is-auto-view .chart-frame--tv,
.tv-hub.is-auto-view .chart-frame--tv-donut,
.tv-hub.is-auto-view .chart-frame--tv-breakdown {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.tv-hub.is-auto-view .tv-panel--chart-sales .chart-frame--tv,
.tv-hub.is-auto-view .tv-panel--chart-management .chart-frame--tv-management,
.tv-hub.is-auto-view .tv-panel--chart-balance .chart-frame--tv-breakdown,
.tv-hub.is-auto-view .tv-panel--chart-eligibility .chart-frame--tv-breakdown,
.tv-hub.is-auto-view .tv-panel--chart-sales .chart-frame--tv-bonus-score {
  min-height: 250px;
}

.tv-hub.is-auto-view .chart-frame--tv-radar {
  height: 190px;
  min-height: 190px;
  max-height: 190px;
}

.tv-hub.is-auto-view .tv-integral-insight-layout,
.tv-hub.is-auto-view .tv-integral-pillar-grid {
  min-height: 0;
  height: 100%;
}

.tv-hub.is-auto-view .tv-integral-pillar-grid {
  align-content: stretch;
}

.tv-hub.is-auto-view .integral-pillar-card {
  min-height: 0;
  height: 100%;
}

.tv-hub.is-auto-view .tv-watch-scene,
.tv-hub.is-auto-view .tv-integral-watch-scene,
.tv-hub.is-auto-view .tv-eligible-scene,
.tv-hub.is-auto-view .tv-integral-scene {
  height: 100%;
  min-height: 0;
  gap: 14px;
  align-content: start;
}

.tv-hub.is-auto-view .tv-eligible-card,
.tv-hub.is-auto-view .tv-integral-card,
.tv-hub.is-auto-view .tv-watch-card,
.tv-hub.is-auto-view .tv-integral-watch-card {
  gap: 10px;
  padding: 14px;
}

.tv-hub.is-auto-view .tv-eligible-card--podium,
.tv-hub.is-auto-view .tv-integral-card--podium {
  min-height: 248px;
  padding: 16px;
}

.tv-hub.is-auto-view .tv-eligible-card__hero img,
.tv-hub.is-auto-view .tv-integral-card__hero img {
  width: 68px;
  height: 68px;
}

.tv-hub.is-auto-view .tv-eligible-card--podium .tv-eligible-card__hero img,
.tv-hub.is-auto-view .tv-integral-card--podium .tv-integral-card__hero img {
  width: 94px;
  height: 94px;
}

.tv-hub.is-auto-view .tv-watch-card__hero img,
.tv-hub.is-auto-view .tv-integral-watch-card__hero img {
  width: 62px;
  height: 62px;
}

.tv-hub.is-auto-view .tv-eligible-card__copy h3,
.tv-hub.is-auto-view .tv-integral-card__copy h3,
.tv-hub.is-auto-view .tv-watch-card__copy h3,
.tv-hub.is-auto-view .tv-integral-watch-card__copy h3 {
  font-size: 0.94rem;
}

.tv-hub.is-auto-view .tv-eligible-card--podium .tv-eligible-card__copy h3,
.tv-hub.is-auto-view .tv-integral-card--podium .tv-integral-card__copy h3 {
  font-size: 1.08rem;
}

.tv-hub.is-auto-view .tv-eligible-card__copy p,
.tv-hub.is-auto-view .tv-integral-card__copy p,
.tv-hub.is-auto-view .tv-watch-card__message p,
.tv-hub.is-auto-view .tv-integral-watch-card__message p {
  font-size: 0.78rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-eligible-card__metrics span,
.tv-hub.is-auto-view .tv-integral-card__metrics span {
  min-height: 36px;
  font-size: 0.75rem;
}

.tv-hub.is-auto-view .tv-spotlight {
  padding: 18px;
}

.tv-hub.is-auto-view .tv-spotlight__stack,
.tv-hub.is-auto-view .tv-spotlight-slide,
.tv-hub.is-auto-view .tv-watch-grid,
.tv-hub.is-auto-view .tv-integral-watch-grid,
.tv-hub.is-auto-view .tv-eligible-featured,
.tv-hub.is-auto-view .tv-integral-featured,
.tv-hub.is-auto-view .tv-eligible-grid,
.tv-hub.is-auto-view .tv-integral-grid {
  min-height: 0;
  align-content: start;
}

.tv-hub.is-auto-view .tv-spotlight__stack,
.tv-hub.is-auto-view .tv-spotlight-slide,
.tv-hub.is-auto-view .tv-watch-grid,
.tv-hub.is-auto-view .tv-integral-watch-grid {
  height: 100%;
}

.tv-hub.is-auto-view .tv-spotlight-slide__grid {
  gap: 14px;
  align-content: start;
}

.tv-hub.is-auto-view .tv-spotlight-card {
  gap: 12px;
  padding: 16px;
}

.tv-hub.is-auto-view .tv-spotlight-card__media img {
  max-width: 116px;
}

.tv-hub.is-auto-view .tv-spotlight-card__copy h2 {
  font-size: 1.28rem;
}

.tv-hub.is-auto-view .tv-spotlight-card__copy p {
  min-height: 4.5em;
  font-size: 0.83rem;
  line-height: 1.5;
}

.tv-hub.is-auto-view .tv-spotlight-card__stats span {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.74rem;
}

.tv-hub.is-auto-view .tv-spotlight-card__profile {
  gap: 10px;
  padding: 14px;
}

.tv-hub.is-auto-view .tv-spotlight-card__profile-head strong {
  font-size: 0.88rem;
}

.tv-scene-grid--main {
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.92fr);
  align-items: start;
}

.tv-scene-grid--wide,
.tv-scene-grid--spotlight {
  grid-template-columns: 1fr;
}

.tv-scene-grid--charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.tv-scene-grid--charts-top3 .tv-panel--chart-eligibility {
  grid-column: 1 / -1;
}

.tv-scene-grid--charts-bonus .tv-panel--chart-development {
  grid-column: 1 / -1;
}

.chart-frame--tv-bonus-score {
  height: 340px;
  min-height: 340px;
  max-height: 340px;
}

.tv-panel {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 55px rgba(0, 64, 74, 0.1);
}

.tv-panel--chart {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.tv-panel--podium:not(.tv-panel--bonus),
.tv-panel--sidebar:not(.tv-panel--bonus) {
  background:
    linear-gradient(135deg, rgba(243, 250, 247, 0.94), rgba(255, 255, 255, 0.96) 74%),
    radial-gradient(circle at 14% 16%, rgba(0, 169, 153, 0.08), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(226, 233, 50, 0.08), transparent 22%);
  border-color: rgba(42, 126, 115, 0.14);
}

.tv-panel--bonus {
  background:
    linear-gradient(135deg, rgba(246, 249, 255, 0.94), rgba(255, 255, 255, 0.96) 72%),
    radial-gradient(circle at 14% 16%, rgba(48, 91, 140, 0.08), transparent 24%);
  border-color: rgba(59, 92, 132, 0.14);
}

.tv-panel--bonus-soft {
  background:
    linear-gradient(135deg, rgba(247, 245, 251, 0.96), rgba(255, 255, 255, 0.96) 74%),
    radial-gradient(circle at 14% 16%, rgba(113, 122, 166, 0.08), transparent 24%);
  border-color: rgba(121, 129, 170, 0.14);
}

.tv-panel__head {
  display: grid;
  gap: 8px;
}

.tv-panel__head h2,
.tv-panel__head p {
  margin: 0;
}

.tv-panel__head h2 {
  font-size: 1.28rem;
  line-height: 1.08;
}

.tv-panel__head p {
  color: var(--core-text-secondary);
  line-height: 1.55;
}

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

.tv-stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: linear-gradient(135deg, rgba(244, 250, 248, 0.96), rgba(255, 255, 255, 0.96));
}

.tv-stat-card--bonus {
  background: linear-gradient(135deg, rgba(242, 246, 252, 0.98), rgba(255, 255, 255, 0.96));
}

.tv-stat-card span,
.tv-stat-card strong {
  display: block;
}

.tv-stat-card span {
  color: var(--core-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-stat-card strong {
  margin-top: 10px;
  font-size: 1.8rem;
  line-height: 1;
}

.tv-scoreboard__list--roomy {
  gap: 12px;
}

.tv-eligible-scene {
  display: grid;
  gap: 20px;
}

.tv-eligible-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tv-eligible-grid-wrap {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(42, 126, 115, 0.16);
  background:
    linear-gradient(135deg, rgba(241, 252, 248, 0.9), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 12% 14%, rgba(0, 169, 153, 0.1), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(226, 233, 50, 0.11), transparent 24%);
}

.tv-eligible-grid-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.tv-eligible-grid-head h3 {
  margin: 6px 0 0;
  font-size: 1.12rem;
  line-height: 1.08;
}

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

.tv-eligible-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(42, 126, 115, 0.15);
  background:
    linear-gradient(135deg, rgba(246, 252, 250, 0.95), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(0, 169, 153, 0.1), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(226, 233, 50, 0.1), transparent 22%);
  box-shadow: 0 18px 38px rgba(0, 104, 95, 0.08);
}

.tv-eligible-card--podium {
  min-height: 290px;
  padding: 20px;
}

.tv-eligible-card--podium.rank-1 {
  background:
    linear-gradient(135deg, rgba(245, 247, 207, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(226, 233, 50, 0.14), transparent 26%);
  border-color: rgba(199, 183, 37, 0.22);
}

.tv-eligible-card--podium.rank-2 {
  background:
    linear-gradient(135deg, rgba(237, 241, 246, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(214, 223, 232, 0.18), transparent 26%);
  border-color: rgba(177, 188, 201, 0.24);
}

.tv-eligible-card--podium.rank-3 {
  background:
    linear-gradient(135deg, rgba(244, 233, 223, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(223, 188, 158, 0.16), transparent 26%);
  border-color: rgba(190, 151, 117, 0.24);
}

.tv-eligible-card__topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.tv-eligible-card__rank,
.tv-eligible-card__status,
.tv-eligible-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.tv-eligible-card__rank {
  min-width: 46px;
  padding: 8px 12px;
  background: rgba(24, 129, 116, 0.14);
  color: #0b6259;
  font-size: 0.84rem;
}

.tv-eligible-card__status {
  padding: 8px 12px;
  background: rgba(150, 189, 59, 0.18);
  color: #556c1c;
  font-size: 0.76rem;
}

.tv-eligible-card__hero {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tv-eligible-card--podium .tv-eligible-card__hero {
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
}

.tv-eligible-card__hero img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(0, 64, 74, 0.12);
}

.tv-eligible-card--podium .tv-eligible-card__hero img {
  width: 110px;
  height: 110px;
  border-radius: 28px;
}

.tv-eligible-card__copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tv-eligible-card__copy h3,
.tv-eligible-card__copy p {
  margin: 0;
}

.tv-eligible-card__copy h3 {
  font-size: 1.08rem;
  line-height: 1.06;
  text-wrap: balance;
}

.tv-eligible-card--podium .tv-eligible-card__copy h3 {
  font-size: 1.24rem;
}

.tv-eligible-card__copy p {
  color: var(--core-text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-eligible-card--compact .tv-eligible-card__copy p {
  font-size: 0.84rem;
  display: block;
  overflow: visible;
}

.tv-eligible-card__eyebrow {
  justify-self: start;
  padding: 7px 11px;
  background: rgba(24, 129, 116, 0.12);
  color: #0b6259;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-eligible-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tv-eligible-card__metrics span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--core-text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.tv-watch-scene {
  display: grid;
  gap: 18px;
}

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

.tv-watch-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(178, 159, 122, 0.15);
  background:
    linear-gradient(135deg, rgba(252, 249, 244, 0.96), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(206, 189, 151, 0.1), transparent 26%);
  box-shadow: 0 18px 38px rgba(112, 96, 66, 0.08);
}

.tv-watch-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, rgba(181, 161, 118, 0.96), rgba(150, 132, 101, 0.58));
}

.tv-watch-card__topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.tv-watch-card__rank,
.tv-watch-card__status,
.tv-watch-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.tv-watch-card__rank {
  min-width: 46px;
  padding: 8px 12px;
  background: rgba(181, 161, 118, 0.16);
  color: #6f5a3e;
  font-size: 0.84rem;
}

.tv-watch-card__status {
  padding: 8px 12px;
  background: rgba(196, 180, 144, 0.18);
  color: #7b6647;
  font-size: 0.76rem;
}

.tv-watch-card__hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tv-watch-card__hero img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(112, 96, 66, 0.12);
}

.tv-watch-card__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tv-watch-card__copy h3,
.tv-watch-card__copy span,
.tv-watch-card__message p {
  margin: 0;
}

.tv-watch-card__copy h3 {
  font-size: 1rem;
  line-height: 1.08;
  text-wrap: balance;
}

.tv-watch-card__copy span {
  color: var(--core-text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tv-watch-card__message {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(178, 159, 122, 0.12);
}

.tv-watch-card__eyebrow {
  justify-self: start;
  padding: 7px 11px;
  background: rgba(196, 180, 144, 0.16);
  color: #7b6647;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-watch-card__message p {
  color: #746042;
  font-size: 0.84rem;
  line-height: 1.55;
}

.tv-integral-scene {
  display: grid;
  gap: 20px;
}

.tv-integral-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tv-integral-grid-wrap {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(59, 92, 132, 0.14);
  background:
    linear-gradient(135deg, rgba(244, 248, 253, 0.92), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 12% 14%, rgba(48, 91, 140, 0.08), transparent 24%);
}

.tv-integral-grid-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.tv-integral-grid-head h3 {
  margin: 6px 0 0;
  font-size: 1.12rem;
  line-height: 1.08;
  color: #28496f;
}

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

.tv-integral-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(59, 92, 132, 0.14);
  background:
    linear-gradient(135deg, rgba(246, 249, 253, 0.96), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(48, 91, 140, 0.08), transparent 24%);
  box-shadow: 0 18px 38px rgba(30, 57, 87, 0.08);
}

.tv-integral-card--podium {
  min-height: 290px;
  padding: 20px;
}

.tv-integral-card--podium.rank-1 {
  background:
    linear-gradient(135deg, rgba(223, 235, 249, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(93, 138, 190, 0.16), transparent 26%);
  border-color: rgba(76, 116, 159, 0.22);
}

.tv-integral-card--podium.rank-2 {
  background:
    linear-gradient(135deg, rgba(237, 242, 248, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(182, 196, 214, 0.18), transparent 26%);
  border-color: rgba(145, 165, 188, 0.24);
}

.tv-integral-card--podium.rank-3 {
  background:
    linear-gradient(135deg, rgba(244, 238, 231, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(201, 176, 149, 0.16), transparent 26%);
  border-color: rgba(183, 156, 128, 0.22);
}

.tv-integral-card__topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.tv-integral-card__rank,
.tv-integral-card__status,
.tv-integral-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.tv-integral-card__rank {
  min-width: 46px;
  padding: 8px 12px;
  background: rgba(48, 91, 140, 0.12);
  color: #2f5482;
  font-size: 0.84rem;
}

.tv-integral-card__status {
  padding: 8px 12px;
  background: rgba(80, 120, 169, 0.12);
  color: #315785;
  font-size: 0.76rem;
}

.tv-integral-card__hero {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tv-integral-card--podium .tv-integral-card__hero {
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
}

.tv-integral-card__hero img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(30, 57, 87, 0.12);
}

.tv-integral-card--podium .tv-integral-card__hero img {
  width: 110px;
  height: 110px;
  border-radius: 28px;
}

.tv-integral-card__copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tv-integral-card__copy h3,
.tv-integral-card__copy p {
  margin: 0;
}

.tv-integral-card__copy h3 {
  font-size: 1.08rem;
  line-height: 1.06;
  text-wrap: balance;
}

.tv-integral-card--podium .tv-integral-card__copy h3 {
  font-size: 1.24rem;
}

.tv-integral-card__copy p {
  color: var(--core-text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-integral-card--compact .tv-integral-card__copy p {
  font-size: 0.84rem;
  display: block;
  overflow: visible;
}

.tv-integral-card__eyebrow {
  justify-self: start;
  padding: 7px 11px;
  background: rgba(48, 91, 140, 0.1);
  color: #2f5482;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-integral-card__metrics {
  display: grid;
  gap: 8px;
}

.tv-integral-card__metrics--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tv-integral-card__metrics span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--core-text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.tv-integral-watch-scene {
  display: grid;
  gap: 18px;
}

.tv-integral-watch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tv-integral-watch-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(121, 129, 170, 0.15);
  background:
    linear-gradient(135deg, rgba(248, 246, 251, 0.96), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 14%, rgba(113, 122, 166, 0.1), transparent 26%);
  box-shadow: 0 18px 38px rgba(77, 86, 122, 0.08);
}

.tv-integral-watch-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, rgba(113, 122, 166, 0.96), rgba(88, 102, 148, 0.58));
}

.tv-integral-watch-card__topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.tv-integral-watch-card__rank,
.tv-integral-watch-card__status,
.tv-integral-watch-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.tv-integral-watch-card__rank {
  min-width: 46px;
  padding: 8px 12px;
  background: rgba(113, 122, 166, 0.16);
  color: #4c567a;
  font-size: 0.84rem;
}

.tv-integral-watch-card__status {
  padding: 8px 12px;
  background: rgba(142, 149, 191, 0.18);
  color: #5a6387;
  font-size: 0.76rem;
}

.tv-integral-watch-card__hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tv-integral-watch-card__hero img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(77, 86, 122, 0.12);
}

.tv-integral-watch-card__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tv-integral-watch-card__copy h3,
.tv-integral-watch-card__copy span,
.tv-integral-watch-card__message p {
  margin: 0;
}

.tv-integral-watch-card__copy h3 {
  font-size: 1rem;
  line-height: 1.08;
  text-wrap: balance;
}

.tv-integral-watch-card__copy span {
  color: var(--core-text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tv-integral-watch-card__message {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(121, 129, 170, 0.12);
}

.tv-integral-watch-card__eyebrow {
  justify-self: start;
  padding: 7px 11px;
  background: rgba(113, 122, 166, 0.14);
  color: #4c567a;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-integral-watch-card__message p {
  color: #5a6387;
  font-size: 0.84rem;
  line-height: 1.55;
}

.tv-scoreboard-section--bonus {
  background:
    linear-gradient(135deg, rgba(243, 247, 252, 0.96), rgba(255, 255, 255, 0.94) 74%),
    radial-gradient(circle at 14% 16%, rgba(48, 91, 140, 0.08), transparent 24%);
  border-color: rgba(59, 92, 132, 0.16);
}

.tv-scoreboard-section--bonus::before {
  background: linear-gradient(180deg, rgba(48, 91, 140, 0.92), rgba(93, 131, 177, 0.52));
}

.tv-scoreboard-section__eyebrow.is-bonus {
  background: rgba(48, 91, 140, 0.12);
  color: #2f5482;
}

.tv-scoreboard-section__count.is-bonus {
  background: rgba(48, 91, 140, 0.12);
  color: #2f5482;
}

.tv-score-row--bonus {
  background:
    linear-gradient(135deg, rgba(243, 247, 252, 0.94), rgba(255, 255, 255, 0.96) 72%),
    radial-gradient(circle at 12% 14%, rgba(48, 91, 140, 0.1), transparent 26%);
  border-color: rgba(59, 92, 132, 0.14);
}

.tv-score-row--bonus.is-podium {
  background:
    linear-gradient(135deg, rgba(222, 233, 247, 0.96), rgba(255, 255, 255, 0.96) 72%),
    radial-gradient(circle at 12% 14%, rgba(48, 91, 140, 0.12), transparent 26%);
  border-color: rgba(59, 92, 132, 0.18);
}

.tv-score-row--bonus-watch {
  background:
    linear-gradient(135deg, rgba(252, 246, 241, 0.95), rgba(255, 255, 255, 0.96) 72%),
    radial-gradient(circle at 12% 14%, rgba(230, 112, 89, 0.09), transparent 26%);
  border-color: rgba(195, 110, 90, 0.14);
}

.status-pill--bonus {
  background: rgba(48, 91, 140, 0.12);
  color: #2f5482;
  border: 1px solid rgba(48, 91, 140, 0.16);
}

.status-pill--bonus-watch {
  background: rgba(230, 112, 89, 0.12);
  color: #b2503d;
  border: 1px solid rgba(230, 112, 89, 0.16);
}

.chart-frame--tv {
  height: 420px;
  min-height: 420px;
  max-height: 420px;
}

.chart-frame--tv-donut {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
}

.chart-frame--tv-breakdown {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
}

.chart-frame--tv-management {
  height: 420px;
  min-height: 420px;
  max-height: 420px;
}

.chart-frame--tv-radar {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
}

.tv-bonus-podium-shell {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 620px;
  padding: 6px 0 0;
}

.tv-bonus-podium-card {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  overflow: hidden;
  display: grid;
  gap: 12px;
  justify-items: center;
  flex: 1 1 0;
  width: auto;
  max-width: 258px;
  min-width: 0;
  padding: 26px 20px 22px;
  border-radius: 30px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 250, 248, 0.92));
  box-shadow: 0 24px 55px rgba(0, 64, 74, 0.12);
}

.tv-bonus-podium-card > *:not(.podium-badge):not(.tv-podium-card__award):not(.tv-bonus-podium-card__shine) {
  position: relative;
  z-index: 1;
}

.tv-bonus-podium-card > .podium-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}

.tv-bonus-podium-card.rank-1 {
  order: 2;
  min-height: 548px;
  margin-top: 0;
  border-color: rgba(76, 116, 159, 0.22);
  background: linear-gradient(180deg, rgba(223, 235, 249, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 55px rgba(81, 115, 158, 0.16), 0 24px 55px rgba(0, 64, 74, 0.1);
}

.tv-bonus-podium-card.rank-2 {
  order: 1;
  min-height: 500px;
  margin-top: 42px;
  border-color: rgba(145, 165, 188, 0.26);
  background: linear-gradient(180deg, rgba(237, 242, 248, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 55px rgba(149, 168, 190, 0.18), 0 24px 55px rgba(0, 64, 74, 0.1);
}

.tv-bonus-podium-card.rank-3 {
  order: 3;
  min-height: 462px;
  margin-top: 84px;
  border-color: rgba(183, 156, 128, 0.24);
  background: linear-gradient(180deg, rgba(244, 238, 231, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 55px rgba(183, 156, 128, 0.16), 0 24px 55px rgba(0, 64, 74, 0.1);
}

.tv-bonus-podium-card .podium-badge {
  background: linear-gradient(180deg, rgba(48, 91, 140, 0.98), rgba(88, 129, 177, 0.94));
  box-shadow: 0 12px 24px rgba(30, 57, 87, 0.2);
}

.tv-bonus-podium-card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 58%);
}

.tv-bonus-podium-card.rank-1 .tv-bonus-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 138, 190, 0.26), transparent 56%),
    radial-gradient(circle at 15% 12%, rgba(214, 229, 247, 0.48), transparent 34%);
}

.tv-bonus-podium-card.rank-2 .tv-bonus-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(182, 196, 214, 0.42), transparent 58%),
    radial-gradient(circle at 18% 14%, rgba(246, 248, 251, 0.6), transparent 32%);
}

.tv-bonus-podium-card.rank-3 .tv-bonus-podium-card__shine {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 176, 149, 0.38), transparent 58%),
    radial-gradient(circle at 18% 14%, rgba(249, 238, 229, 0.6), transparent 32%);
}

.tv-bonus-podium-card img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  margin: 18px auto 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.94));
  box-shadow: 0 16px 40px rgba(0, 64, 74, 0.12);
  filter: none;
  opacity: 1;
}

.tv-bonus-podium-card.rank-1 img {
  width: 204px;
  height: 204px;
}

.tv-bonus-podium-card__rank-label {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(48, 91, 140, 0.1);
  color: #2f5482;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tv-bonus-podium-card h2,
.tv-bonus-podium-card p {
  margin: 0;
  text-align: center;
}

.tv-bonus-podium-card h2 {
  margin-top: 14px;
  font-size: 1.24rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.tv-bonus-podium-card.rank-1 h2 {
  font-size: 1.4rem;
}

.tv-bonus-podium-card p {
  color: var(--core-text-secondary);
  font-size: 0.9rem;
}

.tv-bonus-podium-card__stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tv-bonus-podium-card__stats span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--core-text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.tv-spotlight {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0, 64, 74, 0.1);
}

.tv-spotlight--top3 {
  background:
    linear-gradient(135deg, rgba(243, 251, 248, 0.96), rgba(255, 255, 255, 0.96) 74%),
    radial-gradient(circle at 14% 16%, rgba(0, 169, 153, 0.08), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(226, 233, 50, 0.08), transparent 22%);
  border-color: rgba(42, 126, 115, 0.14);
}

.tv-spotlight--bonus {
  background:
    linear-gradient(135deg, rgba(244, 248, 253, 0.96), rgba(255, 255, 255, 0.96) 74%),
    radial-gradient(circle at 14% 16%, rgba(48, 91, 140, 0.08), transparent 24%);
  border-color: rgba(59, 92, 132, 0.14);
}

.tv-spotlight__stack {
  min-height: 0;
}

.tv-spotlight-slide {
  min-height: 0;
}

.tv-spotlight-slide[hidden] {
  display: none !important;
}

.tv-spotlight-slide.is-active {
  animation: tvSceneSwap 0.45s ease both;
}

.tv-spotlight-slide__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  min-height: 0;
}

.tv-spotlight-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  align-content: start;
  min-height: 0;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  background: linear-gradient(135deg, rgba(241, 250, 247, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 40px rgba(0, 64, 74, 0.08);
}

.tv-spotlight-card--top3 {
  background:
    linear-gradient(135deg, rgba(244, 251, 248, 0.96), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 14% 16%, rgba(0, 169, 153, 0.08), transparent 24%);
}

.tv-spotlight-card--bonus {
  background: linear-gradient(135deg, rgba(243, 247, 252, 0.96), rgba(255, 255, 255, 0.96));
}

.tv-spotlight-card__media {
  display: grid;
  justify-items: center;
}

.tv-spotlight-card__media img {
  width: min(100%, 132px);
  max-width: 132px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(0, 64, 74, 0.12);
}

.tv-spotlight-card__copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tv-spotlight-card__copy h2,
.tv-spotlight-card__copy p {
  margin: 0;
}

.tv-spotlight-card__copy h2 {
  font-size: 1.32rem;
  line-height: 1.12;
  text-wrap: balance;
}

.tv-spotlight-card__copy p {
  color: var(--core-text-secondary);
  min-height: 4.8em;
  font-size: 0.86rem;
  line-height: 1.55;
}

.tv-spotlight-card__eyebrow {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 169, 153, 0.12);
  color: #0c6159;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tv-spotlight-card__eyebrow.is-bonus {
  background: rgba(48, 91, 140, 0.12);
  color: #2f5482;
}

.tv-spotlight-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.tv-spotlight-card__stats span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 64, 74, 0.08);
  color: var(--core-text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.tv-spotlight-card__profile {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(42, 126, 115, 0.14);
  background:
    linear-gradient(135deg, rgba(247, 252, 250, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 14% 16%, rgba(0, 169, 153, 0.08), transparent 24%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tv-spotlight-card__profile.is-bonus {
  border-color: rgba(59, 92, 132, 0.14);
  background:
    linear-gradient(135deg, rgba(245, 249, 254, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 14% 16%, rgba(48, 91, 140, 0.08), transparent 24%);
}

.tv-spotlight-card__profile-head {
  display: grid;
  gap: 6px;
}

.tv-spotlight-card__profile-head span,
.tv-spotlight-card__profile-head strong {
  display: block;
}

.tv-spotlight-card__profile-head span {
  color: var(--core-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-spotlight-card__profile-head strong {
  color: var(--core-text);
  font-size: 0.92rem;
  line-height: 1.15;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill--watch {
  background: rgba(188, 166, 122, 0.16);
  color: #6f5a3e;
  border: 1px solid rgba(188, 166, 122, 0.18);
}

.table-section-row td {
  padding: 16px 12px 10px;
  background: rgba(0, 64, 74, 0.04);
  color: #0d5d58;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-section-row.is-watch td {
  background: rgba(188, 166, 122, 0.1);
  color: #6f5a3e;
}

.table-row-watch {
  background: rgba(255, 250, 244, 0.55);
}

.table-status-cell {
  min-width: 280px;
}

.table-status-copy {
  margin: 10px 0 0;
  color: #0d5d58;
  font-size: 0.82rem;
  line-height: 1.5;
}

.table-status-copy.is-watch {
  color: #746042;
}

.chart-frame > canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

.auth-lock-screen .app-header {
  filter: blur(7px);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

.auth-lock-screen .brand-link,
.auth-lock-screen .app-nav,
.auth-lock-screen .header-meta {
  transform: scale(0.995);
}

@keyframes tvRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tvSceneSwap {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.app-loading {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(6, 46, 53, 0.5);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.app-loading[hidden] {
  display: none !important;
}

.app-loading:not([hidden]) {
  display: grid;
}

canvas {
  width: 100% !important;
  min-height: 280px;
}

@media (max-width: 1180px) {
  .app-header,
  .hero-card,
  .admin-page .hero-card,
  .two-column-grid,
  .visual-grid,
  .podium-shell,
  .top3-summary-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    position: static;
  }

  .header-meta {
    justify-content: flex-start;
  }

  .tv-stage__hero,
  .tv-stage__layout,
  .tv-hub__console-head,
  .tv-scene-grid--main,
  .tv-scene-grid--charts {
    grid-template-columns: 1fr;
  }

  .integral-insight-layout,
  .tv-integral-insight-layout {
    grid-template-columns: 1fr;
  }

  .integral-pillar-grid,
  .tv-integral-pillar-grid {
    grid-template-columns: 1fr;
  }

  .integral-pillar-card__header {
    grid-template-columns: 1fr;
  }

  .integral-pillar-card__stats {
    grid-template-columns: 1fr;
  }

  .tv-selector-row,
  .tv-status-row {
    justify-content: flex-start;
  }

  .tv-podium-shell {
    flex-direction: column;
    min-height: 0;
    align-items: center;
    padding: 0;
  }

  .tv-bonus-podium-shell {
    flex-direction: column;
    min-height: 0;
    align-items: center;
    padding: 0;
  }

  .tv-eligible-featured {
    grid-template-columns: 1fr;
  }

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

  .tv-integral-featured {
    grid-template-columns: 1fr;
  }

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

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

  .tv-podium-card.rank-1,
  .tv-podium-card.rank-2,
  .tv-podium-card.rank-3,
  .tv-bonus-podium-card.rank-1,
  .tv-bonus-podium-card.rank-2,
  .tv-bonus-podium-card.rank-3 {
    order: initial;
    width: min(100%, 420px);
    min-width: 0;
    max-width: 420px;
    min-height: 0;
    margin-top: 0;
    transform: none;
  }

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

  .chart-frame--tv-radar {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 18px 14px 36px;
  }

  .settings-grid,
  .compact-grid,
  .mini-podium,
  .kpi-grid,
  .hero-metrics,
  .top3-summary-grid,
  .auth-value-grid {
    grid-template-columns: 1fr;
  }

  .app-nav {
    justify-content: flex-start;
  }

  .podium-card img {
    width: 120px;
    height: 120px;
  }

  .tv-stage {
    padding: 22px 16px;
  }

  .tv-hub {
    padding: 20px 16px;
  }

  .tv-stage__copy h2 {
    font-size: 2.2rem;
  }

  .tv-hub__copy h1 {
    font-size: 2.3rem;
  }

  .tv-scoreboard__toggles {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tv-master-switch,
  .tv-scene-switch,
  .tv-auto-status {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tv-hub__form {
    grid-template-columns: 1fr;
  }

  .tv-stat-grid,
  .tv-bonus-podium-card__stats,
  .tv-eligible-card__metrics,
  .tv-eligible-grid,
  .tv-integral-card__metrics,
  .tv-integral-grid,
  .tv-integral-watch-grid,
  .tv-watch-grid,
  .tv-spotlight-slide__grid {
    grid-template-columns: 1fr;
  }

  .tv-eligible-card__hero,
  .tv-eligible-card--podium .tv-eligible-card__hero,
  .tv-watch-card__hero,
  .tv-integral-card__hero,
  .tv-integral-card--podium .tv-integral-card__hero,
  .tv-integral-watch-card__hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .tv-eligible-card__copy,
  .tv-watch-card__copy,
  .tv-watch-card__message,
  .tv-integral-card__copy,
  .tv-integral-watch-card__copy,
  .tv-integral-watch-card__message {
    justify-items: center;
    text-align: center;
  }

  .tv-eligible-card__eyebrow,
  .tv-watch-card__eyebrow,
  .tv-integral-card__eyebrow,
  .tv-integral-watch-card__eyebrow {
    justify-self: center;
  }

  .tv-score-row {
    grid-template-columns: 40px 52px minmax(0, 1fr);
    min-height: 0;
  }

  .tv-score-row__status {
    grid-column: 1 / -1;
  }

  .tv-podium-card img,
  .tv-podium-card.rank-1 img,
  .tv-bonus-podium-card img,
  .tv-bonus-podium-card.rank-1 img {
    width: 140px;
    height: 140px;
  }

  .tv-podium-card.rank-1,
  .tv-podium-card.rank-2,
  .tv-podium-card.rank-3,
  .tv-bonus-podium-card.rank-1,
  .tv-bonus-podium-card.rank-2,
  .tv-bonus-podium-card.rank-3 {
    width: 100%;
    max-width: none;
  }

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

  .chart-frame--tv,
  .chart-frame--tv-donut,
  .chart-frame--tv-breakdown,
  .chart-frame--tv-radar {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
}

/* Visual refresh 2026: shared front-end polish, no backend contracts changed. */
:root {
  --app-max-width: 1440px;
  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 14px;
  --ui-border: rgba(17, 60, 74, 0.1);
  --ui-border-strong: rgba(17, 60, 74, 0.18);
  --ui-surface: rgba(255, 255, 255, 0.94);
  --ui-surface-solid: #ffffff;
  --ui-surface-muted: #f6faf9;
  --ui-shadow-sm: 0 10px 24px rgba(17, 60, 74, 0.07);
  --ui-shadow-md: 0 18px 42px rgba(17, 60, 74, 0.1);
  --ui-shadow-tv: 0 22px 54px rgba(14, 45, 52, 0.13);
}

body.core-theme {
  background: linear-gradient(180deg, #f8fbfa 0%, #eef5f3 100%);
}

.eyebrow,
th,
.tv-control-group__label,
.tv-scoreboard-section__eyebrow,
.tv-stat-card span,
.integral-pillar-card__eyebrow,
.tv-spotlight-card__eyebrow,
.auth-value-card span,
.table-section-row td {
  letter-spacing: 0;
}

.material-symbols-outlined.nav-icon,
.material-symbols-outlined.btn-icon,
.material-symbols-outlined.chip-icon,
.material-symbols-outlined.info-tooltip {
  font-size: 18px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.btn-icon,
.chip-icon,
.nav-icon {
  flex: 0 0 auto;
}

.app-shell {
  padding: 20px 18px 42px;
}

.app-header {
  width: min(100%, var(--app-max-width));
  margin-bottom: 20px;
  grid-template-columns: minmax(205px, 240px) minmax(0, 1fr) minmax(0, 390px);
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border-color: var(--ui-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ui-shadow-sm);
  top: 10px;
}

.brand-link {
  gap: 8px;
}

.brand-link img {
  width: 34px;
  height: 34px;
}

.brand-link strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.brand-link span {
  font-size: 0.72rem;
  line-height: 1.25;
}

.app-nav {
  justify-content: flex-start;
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 14px;
  background: #f3f8f7;
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.app-nav a,
.nav-placeholder {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 9px;
  border-radius: 10px;
  color: #2d5860;
  font-size: 0.8rem;
  font-weight: 800;
}

.app-nav a:hover,
.app-nav a.is-active,
.nav-placeholder.is-active {
  background: #063d45;
  color: #fff;
  box-shadow: 0 8px 18px rgba(6, 61, 69, 0.16);
}

.header-meta {
  min-width: 0;
  gap: 6px;
  flex-wrap: nowrap;
}

.header-meta .core-chip {
  max-width: 150px;
  min-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-period-chip {
  max-width: 190px;
}

.core-card {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-sm);
}

.core-card:hover {
  border-color: var(--ui-border-strong);
  box-shadow: var(--ui-shadow-sm);
  transform: none;
}

.core-btn {
  min-height: 38px;
  gap: 8px;
  border-radius: 10px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.core-btn-primary {
  background: #063d45;
  border-color: #063d45;
  box-shadow: 0 10px 20px rgba(6, 61, 69, 0.18);
}

.core-btn-primary:hover:not(:disabled) {
  background: #052f35;
  border-color: #052f35;
}

.core-btn-secondary {
  background: #fff;
  border-color: rgba(17, 60, 74, 0.14);
  box-shadow: none;
}

.core-btn:focus-visible,
.app-nav a:focus-visible,
.top3-table-switcher__button:focus-visible,
.tv-master-switch__button:focus-visible,
.tv-scene-switch__button:focus-visible,
.tv-scoreboard__toggle:focus-visible {
  outline: 3px solid rgba(0, 169, 153, 0.24);
  outline-offset: 2px;
}

.core-chip {
  border-radius: 999px;
  border-color: rgba(17, 60, 74, 0.12);
  background: #fff;
}

.auth-lock-screen .app-header {
  display: none;
}

.auth-lock-screen .app-shell {
  padding-top: 24px;
}

.page-wrap {
  gap: 20px;
}

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

.hero-copy,
.hero-metrics,
.toolbar-card,
.head-note,
.empty-state,
.panel-card,
.top3-summary-card,
.metric-card,
.kpi-tile,
.auth-card,
.search-row {
  border-radius: var(--ui-radius-lg);
  border-color: var(--ui-border);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.hero-copy::after,
.tv-stage::after {
  display: none;
}

.hero-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.hero-card.compact {
  min-height: 0;
}

.hero-copy h1,
.section-head h1 {
  font-size: 2.55rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.panel-head h2,
.weight-block h3,
.top3-table-card__head h2,
.tv-panel__head h2 {
  letter-spacing: 0;
}

.toolbar-card,
.head-note,
.search-row,
.panel-card {
  padding: 18px;
}

.kpi-grid,
.hero-metrics {
  gap: 12px;
}

.metric-card,
.kpi-tile {
  padding: 16px;
  border-radius: var(--ui-radius-md);
  background: #fff;
}

.metric-card strong,
.kpi-tile strong {
  line-height: 1.08;
}

.settings-grid,
.settings-grid--3,
.settings-grid--4,
.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.settings-grid--fit {
  grid-template-columns: repeat(auto-fit, minmax(210px, 260px));
}

.admin-page .hero-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
  align-items: start;
}

.admin-page .hero-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label span,
.field-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.field-hint {
  margin-bottom: -6px;
  color: var(--core-text-secondary);
  font-weight: 800;
  font-size: 0.84rem;
}

.info-tooltip {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 169, 153, 0.12);
  color: #075c55;
  cursor: help;
  vertical-align: middle;
}

.info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 60;
  width: min(280px, 70vw);
  padding: 10px 12px;
  border: 1px solid rgba(17, 60, 74, 0.16);
  border-radius: 10px;
  background: #102326;
  color: #f5fffd;
  box-shadow: 0 14px 34px rgba(12, 35, 38, 0.18);
  font-family: var(--core-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.info-tooltip:hover::after,
.info-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.weight-block,
.settings-section-card,
.weight-block--featured {
  border-radius: var(--ui-radius-lg);
  box-shadow: none;
}

.weight-block--bonus,
.weight-block--top3,
.settings-section-card--active {
  background: #fff;
}

.table-shell {
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border);
  background: #fff;
  box-shadow: var(--ui-shadow-sm);
}

.table-shell table {
  min-width: 980px;
}

.table-shell.compact {
  max-height: 360px;
}

th,
td {
  padding: 12px 12px;
}

th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f7fbfa;
  color: #365f66;
}

td:first-child,
th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

th:first-child {
  z-index: 4;
  background: #f7fbfa;
}

.action-row {
  gap: 8px;
}

.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chart-frame {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: var(--ui-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 250, 0.96)),
    repeating-linear-gradient(0deg, rgba(17, 60, 74, 0.035) 0 1px, transparent 1px 32px);
}

.panel-card--chart {
  gap: 14px;
}

.chart-frame > canvas,
canvas {
  min-height: 0 !important;
  letter-spacing: 0;
}

.top3-table-switcher,
.tv-scoreboard__toggles,
.tv-master-switch,
.tv-scene-switch {
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 14px;
  background: #f3f8f7;
}

.top3-table-switcher__button,
.tv-scoreboard__toggle,
.tv-master-switch__button,
.tv-scene-switch__button {
  border-radius: 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.top3-table-switcher__button.is-active,
.tv-scoreboard__toggle.is-active,
.tv-master-switch__button.is-active,
.tv-scene-switch__button.is-active {
  background: #063d45;
  box-shadow: 0 10px 20px rgba(6, 61, 69, 0.16);
}

body.tv-mode {
  background: linear-gradient(180deg, #f6faf9 0%, #eaf2ef 100%);
}

.tv-mode .app-header {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ui-shadow-sm);
}

.tv-stage,
.tv-hub,
.tv-panel,
.tv-scoreboard,
.tv-spotlight,
.tv-period-card,
.tv-hub__period,
.tv-hub__control-panel {
  border-radius: 16px;
  border-color: var(--ui-border);
  box-shadow: var(--ui-shadow-tv);
}

.tv-stage,
.tv-hub {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 249, 247, 0.95));
}

.tv-hub__console-head {
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
}

.tv-hub__form {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.9fr) auto;
}

.tv-hub__copy h1,
.tv-stage__copy h2 {
  font-size: 2.1rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.tv-stage__copy p,
.tv-hub__copy p,
.tv-panel__head p {
  font-size: 0.95rem;
}

.tv-podium-shell,
.tv-bonus-podium-shell {
  min-height: clamp(470px, 68svh, 620px);
}

.tv-podium-card,
.tv-bonus-podium-card {
  max-width: 280px;
  border-radius: 18px;
}

.tv-podium-card.rank-1,
.tv-bonus-podium-card.rank-1 {
  min-height: clamp(430px, 60svh, 548px);
}

.tv-podium-card.rank-2,
.tv-bonus-podium-card.rank-2 {
  min-height: clamp(400px, 55svh, 500px);
  margin-top: clamp(22px, 5svh, 42px);
}

.tv-podium-card.rank-3,
.tv-bonus-podium-card.rank-3 {
  min-height: clamp(370px, 50svh, 462px);
  margin-top: clamp(44px, 9svh, 84px);
}

.tv-podium-card img,
.tv-bonus-podium-card img {
  width: clamp(130px, 12svw, 168px);
  height: clamp(130px, 12svw, 168px);
  border-radius: 18px;
}

.tv-podium-card.rank-1 img,
.tv-bonus-podium-card.rank-1 img {
  width: clamp(154px, 14svw, 204px);
  height: clamp(154px, 14svw, 204px);
}

.tv-podium-card h2,
.tv-bonus-podium-card h2 {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.tv-podium-card.rank-1 h2,
.tv-bonus-podium-card.rank-1 h2 {
  font-size: 1.34rem;
}

body.tv-auto-view .app-shell,
body.tv-auto-view .page-wrap,
.tv-hub.is-auto-view {
  min-height: 100svh;
  height: 100svh;
}

.tv-hub.is-auto-view {
  padding: 14px;
  background: linear-gradient(180deg, #f7faf9 0%, #edf4f1 100%);
}

.tv-hub.is-auto-view .tv-hub__hero {
  top: 14px;
  right: 14px;
}

.tv-hub.is-auto-view .tv-hub__control-panel {
  max-width: 390px;
}

.tv-auto-status {
  width: 100%;
}

.tv-auto-progress {
  position: relative;
  flex: 1 1 120px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 60, 74, 0.1);
}

.tv-auto-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00a999, #e2e932);
  transform: scaleX(0);
  transform-origin: left center;
}

.tv-auto-progress > span.is-running {
  animation: tvProgressFill var(--tv-auto-duration, 9000ms) linear both;
}

.tv-scene.is-entering {
  animation: tvPanelIn 0.42s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.tv-scene.is-entering .tv-podium-card,
.tv-scene.is-entering .tv-bonus-podium-card,
.tv-scene.is-entering .tv-score-row,
.tv-scene.is-entering .tv-eligible-card,
.tv-scene.is-entering .tv-watch-card,
.tv-scene.is-entering .tv-integral-card,
.tv-scene.is-entering .tv-integral-watch-card,
.tv-scene.is-entering .tv-spotlight-card {
  animation: tvCardLift 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.tv-scene.is-entering .tv-podium-card:nth-child(2),
.tv-scene.is-entering .tv-bonus-podium-card:nth-child(2),
.tv-scene.is-entering .tv-score-row:nth-child(2),
.tv-scene.is-entering .tv-eligible-card:nth-child(2),
.tv-scene.is-entering .tv-watch-card:nth-child(2),
.tv-scene.is-entering .tv-integral-card:nth-child(2),
.tv-scene.is-entering .tv-integral-watch-card:nth-child(2),
.tv-scene.is-entering .tv-spotlight-card:nth-child(2) {
  animation-delay: 0.06s;
}

.tv-scene.is-entering .tv-podium-card:nth-child(3),
.tv-scene.is-entering .tv-bonus-podium-card:nth-child(3),
.tv-scene.is-entering .tv-score-row:nth-child(3),
.tv-scene.is-entering .tv-eligible-card:nth-child(3),
.tv-scene.is-entering .tv-watch-card:nth-child(3),
.tv-scene.is-entering .tv-integral-card:nth-child(3),
.tv-scene.is-entering .tv-integral-watch-card:nth-child(3),
.tv-scene.is-entering .tv-spotlight-card:nth-child(3) {
  animation-delay: 0.12s;
}

@keyframes tvPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tvCardLift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tvProgressFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-height: 820px) and (min-width: 980px) {
  .tv-hub.is-auto-view .tv-panel {
    gap: 10px;
    padding: 14px;
  }

  .tv-hub.is-auto-view .tv-panel__head p {
    display: none;
  }

  .tv-hub.is-auto-view .tv-podium-shell,
  .tv-hub.is-auto-view .tv-bonus-podium-shell {
    min-height: 0;
  }

  .tv-hub.is-auto-view .tv-podium-card.rank-1,
  .tv-hub.is-auto-view .tv-bonus-podium-card.rank-1 {
    min-height: 430px;
  }

  .tv-hub.is-auto-view .tv-podium-card.rank-2,
  .tv-hub.is-auto-view .tv-bonus-podium-card.rank-2 {
    min-height: 400px;
    margin-top: 18px;
  }

  .tv-hub.is-auto-view .tv-podium-card.rank-3,
  .tv-hub.is-auto-view .tv-bonus-podium-card.rank-3 {
    min-height: 372px;
    margin-top: 36px;
  }
}

@media (max-width: 1180px) {
  .app-header,
  .hero-card,
  .admin-page .hero-card,
  .two-column-grid,
  .visual-grid,
  .podium-shell,
  .top3-summary-grid,
  .tv-stage__hero,
  .tv-stage__layout,
  .tv-hub__console-head,
  .tv-scene-grid--main,
  .tv-scene-grid--charts {
    grid-template-columns: 1fr;
  }

  .app-header {
    position: static;
  }

  .header-meta {
    justify-content: flex-start;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .tv-hub__form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 14px 12px 32px;
  }

  .hero-copy h1,
  .section-head h1 {
    font-size: 2rem;
  }

  .hero-copy,
  .hero-metrics,
  .toolbar-card,
  .head-note,
  .empty-state,
  .panel-card {
    padding: 16px;
  }

  .app-nav {
    width: 100%;
  }

  .page-wrap,
  .hero-card,
  .two-column-grid,
  .visual-grid,
  .stack-panel,
  .stack-form,
  .panel-card,
  .settings-section-card,
  .weight-block,
  .hero-metrics,
  .settings-grid {
    min-width: 0;
    max-width: 100%;
  }

  .header-meta .core-chip {
    max-width: 100%;
  }

  .admin-page .hero-metrics {
    grid-template-columns: 1fr;
  }

  .info-tooltip::after {
    left: auto;
    right: 0;
    transform: translate(0, 4px);
  }

  .info-tooltip:hover::after,
  .info-tooltip:focus-visible::after {
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Presentation fixes: admin desktop, useful charts, and TV auto layout */
.app-header {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) max-content;
}

.header-meta {
  justify-content: flex-end;
  max-width: none;
}

.header-meta .core-chip {
  max-width: 210px;
}

.header-meta .app-period-chip {
  flex: 0 0 auto;
  max-width: none;
  min-width: max-content;
}

.header-meta form {
  flex: 0 0 auto;
}

.app-period-chip .chip-icon,
.header-meta .core-chip .chip-icon {
  flex: 0 0 auto;
}

.admin-page .panel-card,
.admin-page .settings-section-card,
.admin-page .weight-block,
.admin-page .stack-form,
.admin-page .hero-copy,
.admin-page .hero-metrics,
.admin-page .metric-card {
  overflow: visible;
}

.admin-page .info-tooltip {
  z-index: 1000;
}

.admin-page .info-tooltip:hover,
.admin-page .info-tooltip:focus-visible {
  z-index: 10000;
}

.admin-page .info-tooltip::after {
  z-index: 10001;
}

.top3-visual-grid .panel-card--insights,
.bonuses-grid .panel-card--integral-map {
  grid-column: 1 / -1;
}

.panel-card--insights {
  gap: 18px;
}

.chart-frame--sales,
.chart-frame--management {
  height: 410px;
  min-height: 410px;
}

.chart-frame--bonus-score {
  height: 430px;
  min-height: 430px;
  max-height: 430px;
}

.kpi-tile--recognition {
  border-color: rgba(0, 124, 114, 0.18);
  background: linear-gradient(180deg, rgba(244, 252, 250, 0.98), rgba(255, 255, 255, 0.98));
}

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

@media (max-width: 980px) and (min-width: 641px) {
  .bonuses-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi-tile--recognition strong {
  color: #005b54;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
}

.panel-card--recognition,
.panel-card--recognition-share {
  border-color: rgba(0, 124, 114, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 250, 0.96));
}

.chart-frame--recognition {
  height: 420px;
  min-height: 420px;
  max-height: 420px;
}

.chart-frame--recognition-share {
  height: 280px;
  min-height: 280px;
  max-height: 280px;
}

.recognition-split {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.recognition-split__summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.recognition-split__summary article {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 64, 74, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.recognition-split__summary span {
  color: #315f68;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.recognition-split__summary strong {
  color: #005b54;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.08;
}

.recognition-split__summary em {
  color: var(--core-text-secondary);
  font-style: normal;
  line-height: 1.3;
}

.empty-chart-note {
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed rgba(0, 64, 74, 0.14);
  border-radius: var(--ui-radius-lg);
  color: var(--core-text-secondary);
  text-align: center;
}

.empty-chart-note strong {
  color: #062e35;
}

.money-cell {
  color: #005b54;
  font-weight: 850;
  white-space: nowrap;
}

.top-commercial-admin-card {
  gap: 20px;
}

.top-commercial-admin-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-head--compact h3,
.panel-head--compact p {
  margin: 0;
}

.panel-head--compact p {
  color: var(--core-text-secondary);
  line-height: 1.45;
}

.commercial-kpi-grid,
.commercial-dashboard-grid {
  display: grid;
  gap: 18px;
}

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

.commercial-kpi-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(17, 60, 74, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 251, 0.96));
  box-shadow: var(--ui-shadow-sm);
}

.commercial-kpi-card span {
  color: #315f68;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-kpi-card strong {
  color: #062e35;
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  line-height: 1;
}

.commercial-kpi-card p {
  margin: 0;
  color: var(--core-text-secondary);
  line-height: 1.35;
}

.commercial-kpi-card.is-current,
.commercial-kpi-card.is-green {
  border-color: rgba(0, 169, 153, 0.22);
  background: linear-gradient(180deg, rgba(238, 252, 249, 0.98), rgba(255, 255, 255, 0.96));
}

.commercial-kpi-card.is-threshold {
  border-color: rgba(198, 138, 19, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(255, 255, 255, 0.96));
}

.commercial-podium {
  align-items: stretch;
}

.commercial-podium .commercial-empty-podium {
  grid-column: 1 / -1;
}

.commercial-dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
}

.chart-frame--commercial {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
}

.commercial-quintile-card {
  gap: 16px;
}

.commercial-quintile-list {
  display: grid;
  gap: 10px;
}

.commercial-quintile-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 14px;
  background: rgba(247, 252, 251, 0.82);
}

.commercial-quintile-row.is-threshold {
  border-color: rgba(0, 169, 153, 0.28);
  background: rgba(236, 252, 248, 0.96);
}

.commercial-quintile-row span {
  color: #0d5d58;
  font-weight: 900;
}

.commercial-quintile-row strong {
  min-width: 0;
  color: #062e35;
}

.commercial-quintile-row em {
  color: var(--core-text-secondary);
  font-style: normal;
  font-weight: 800;
}

.commercial-table-card {
  overflow: hidden;
}

.commercial-row td {
  transition: background 0.2s ease;
}

.commercial-row--ok td,
.commercial-row--ok td:first-child {
  background: rgba(233, 250, 244, 0.88);
}

.commercial-row--danger td,
.commercial-row--danger td:first-child {
  background: rgba(255, 240, 240, 0.9);
}

.commercial-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.commercial-status--ok {
  color: #0d665d;
  background: rgba(0, 169, 153, 0.16);
}

.commercial-status--danger {
  color: #a1121a;
  background: rgba(251, 44, 54, 0.14);
}

.commercial-status--neutral {
  color: #365f66;
  background: rgba(17, 60, 74, 0.08);
}

.top-commercial-tv-mode .app-header {
  display: none;
}

.top-commercial-tv-mode .app-shell {
  min-height: 100svh;
  padding: 12px;
}

.top-commercial-tv-mode .page-wrap {
  max-width: none;
  min-height: calc(100svh - 24px);
}

.commercial-tv-stage {
  min-height: calc(100svh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 245, 0.96));
}

.commercial-tv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.commercial-tv-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 3.3vw, 3.65rem);
  line-height: 1;
}

.commercial-tv-head p {
  margin: 0;
  color: var(--core-text-secondary);
}

.commercial-tv-clock {
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 14px 18px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 14px;
  background: #fff;
  text-align: right;
}

.commercial-tv-clock span {
  color: var(--core-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-tv-clock strong {
  font-size: 1.5rem;
}

.commercial-tv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 14px;
  min-height: 0;
}

.commercial-tv-panel {
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ui-shadow-tv);
}

.commercial-tv-panel--podium {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.commercial-tv-podium {
  min-height: 0;
}

.commercial-tv-podium .tv-podium-card {
  max-width: 292px;
}

.commercial-tv-empty {
  grid-column: 1 / -1;
  align-self: center;
}

.commercial-tv-metrics {
  display: grid;
  gap: 12px;
}

.commercial-tv-quintiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.commercial-tv-quintiles span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 60, 74, 0.08);
  color: #315f68;
  font-size: 0.76rem;
  font-weight: 900;
}

.commercial-tv-quintiles span.is-threshold {
  background: rgba(0, 169, 153, 0.16);
  color: #0d665d;
}

.commercial-tv-panel--movement {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.commercial-tv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.commercial-tv-row {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 14px;
}

.commercial-tv-row--ok {
  background: rgba(233, 250, 244, 0.96);
}

.commercial-tv-row--danger {
  background: rgba(255, 240, 240, 0.96);
}

.commercial-tv-row__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(6, 61, 69, 0.1);
  font-weight: 900;
}

.commercial-tv-row img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
}

.commercial-tv-row div {
  min-width: 0;
}

.commercial-tv-row strong,
.commercial-tv-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-tv-row span {
  color: var(--core-text-secondary);
  font-size: 0.86rem;
}

.commercial-tv-row em {
  color: #0d665d;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.commercial-section-head p {
  max-width: 860px;
}

.commercial-kpi-grid--tracking {
  align-items: stretch;
}

.commercial-kpi-card.is-management {
  border-color: rgba(48, 91, 140, 0.16);
  background: linear-gradient(180deg, rgba(244, 248, 253, 0.98), rgba(255, 255, 255, 0.96));
}

.commercial-kpi-card.is-reference {
  border-color: rgba(198, 138, 19, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(255, 255, 255, 0.96));
}

.commercial-position-card {
  gap: 16px;
}

.commercial-position-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-inline: min(34vw, 420px) 126px;
  color: var(--core-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-position-scale span:nth-child(2) {
  text-align: center;
}

.commercial-position-scale span:last-child {
  text-align: right;
}

.commercial-position-list {
  display: grid;
  gap: 10px;
}

.commercial-position-row {
  display: grid;
  grid-template-columns: 54px minmax(230px, 0.7fr) minmax(240px, 1fr) minmax(116px, auto);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.commercial-position-row--ok {
  border-color: rgba(0, 143, 113, 0.18);
  background: rgba(238, 252, 247, 0.94);
}

.commercial-position-row--danger {
  border-color: rgba(204, 54, 54, 0.18);
  background: rgba(255, 245, 244, 0.94);
}

.commercial-position-row img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
}

.commercial-position-row__name {
  min-width: 0;
}

.commercial-position-row__name strong,
.commercial-position-row__name span,
.commercial-tv-position-row__copy small,
.commercial-inline-status {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-position-row__name strong {
  color: #061f25;
  font-size: 0.96rem;
  font-weight: 900;
}

.commercial-position-row__name span {
  margin-top: 3px;
  color: var(--core-text-secondary);
  font-size: 0.84rem;
}

.commercial-inline-status {
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
}

.commercial-inline-status--ok {
  color: #0a715f;
  background: rgba(0, 143, 113, 0.12);
}

.commercial-inline-status--danger {
  color: #a31d27;
  background: rgba(214, 67, 67, 0.14);
}

.commercial-inline-status--neutral {
  color: #315f68;
  background: rgba(17, 60, 74, 0.08);
}

.commercial-position-row__bar {
  position: relative;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 60, 74, 0.07), rgba(17, 60, 74, 0.03));
}

.commercial-position-row__bar::before {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: var(--zero);
  width: 2px;
  border-radius: 999px;
  background: rgba(6, 47, 53, 0.24);
  content: "";
}

.commercial-position-row__bar span {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: var(--bar-start);
  width: var(--bar-width);
  border-radius: inherit;
  background: linear-gradient(90deg, #0b8f76, #16b59e);
  box-shadow: 0 6px 16px rgba(0, 120, 102, 0.18);
}

.commercial-position-row__bar i {
  position: absolute;
  top: 50%;
  left: var(--marker);
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0b8f76;
  box-shadow: 0 6px 16px rgba(0, 80, 68, 0.24);
  transform: translate(-50%, -50%);
}

.commercial-position-row--danger .commercial-position-row__bar span {
  background: linear-gradient(90deg, #c73b3b, #f05f55);
  box-shadow: 0 6px 16px rgba(199, 59, 59, 0.16);
}

.commercial-position-row--danger .commercial-position-row__bar i {
  background: #d84242;
}

.commercial-position-row__delta {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.commercial-position-row__delta strong {
  font-size: 1.1rem;
  line-height: 1;
}

.commercial-position-row__delta span {
  color: var(--core-text-secondary);
  font-size: 0.82rem;
  font-weight: 850;
}

.commercial-delta.is-positive,
.commercial-position-row__delta.is-positive,
.commercial-tv-row em.is-positive,
.commercial-tv-position-row em.is-positive {
  color: #0a715f;
}

.commercial-delta.is-negative,
.commercial-position-row__delta.is-negative,
.commercial-tv-row em.is-negative,
.commercial-tv-position-row em.is-negative {
  color: #b4232b;
}

.commercial-dashboard-grid--reference {
  grid-template-columns: minmax(360px, 0.92fr) minmax(340px, 1.08fr);
}

.commercial-reading-card {
  gap: 16px;
}

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

.commercial-reading-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 14px;
  background: rgba(247, 252, 251, 0.84);
}

.commercial-reading-grid span {
  color: #315f68;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-reading-grid strong {
  color: #062e35;
  font-size: 2rem;
  line-height: 1;
}

.commercial-dashboard-grid--reference .commercial-quintile-row {
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, auto);
}

.commercial-dashboard-grid--reference .commercial-quintile-row em {
  min-width: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 169, 153, 0.14);
  color: #0d665d;
  font-size: 0.76rem;
}

.commercial-table-card--tracking {
  overflow-x: auto;
}

.commercial-comparison-table {
  min-width: 1580px;
}

.commercial-comparison-table thead tr:first-child th {
  background: rgba(241, 248, 247, 0.98);
  border-bottom: 1px solid rgba(17, 60, 74, 0.08);
  text-align: center;
}

.commercial-comparison-table thead tr:first-child th[rowspan] {
  text-align: left;
}

.commercial-comparison-table th,
.commercial-comparison-table td {
  white-space: nowrap;
}

.commercial-person-cell {
  min-width: 260px;
}

.commercial-delta {
  font-weight: 950;
}

.commercial-row--neutral td,
.commercial-row--neutral td:first-child {
  background: rgba(244, 247, 248, 0.92);
}

.commercial-status {
  min-width: 104px;
}

.commercial-status--ok {
  color: #0a715f;
  background: rgba(0, 143, 113, 0.14);
}

.commercial-status--danger {
  color: #a31d27;
  background: rgba(214, 67, 67, 0.14);
}

.commercial-tv-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.commercial-tv-grid--tracking {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
}

.commercial-tv-panel--position {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.commercial-tv-position-list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: hidden;
}

.commercial-tv-position-row {
  display: grid;
  grid-template-columns: 46px minmax(170px, 0.62fr) minmax(180px, 1fr) 82px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.commercial-tv-position-row--ok {
  border-color: rgba(0, 143, 113, 0.18);
  background: rgba(238, 252, 247, 0.94);
}

.commercial-tv-position-row--danger {
  border-color: rgba(204, 54, 54, 0.18);
  background: rgba(255, 245, 244, 0.94);
}

.commercial-tv-position-row img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
}

.commercial-tv-position-row__copy {
  min-width: 0;
}

.commercial-tv-position-row__copy strong,
.commercial-tv-position-row__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-tv-position-row__copy strong {
  color: #061f25;
  font-size: 0.9rem;
  font-weight: 950;
}

.commercial-tv-position-row__copy span {
  color: var(--core-text-secondary);
  font-size: 0.78rem;
}

.commercial-tv-position-row__copy .commercial-inline-status {
  margin-top: 4px;
  padding: 3px 7px;
  font-size: 0.66rem;
}

.commercial-tv-position-row__bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(17, 60, 74, 0.08);
}

.commercial-tv-position-row__bar::before {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: var(--zero);
  width: 2px;
  border-radius: 999px;
  background: rgba(6, 47, 53, 0.24);
  content: "";
}

.commercial-tv-position-row__bar span {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--bar-start);
  width: var(--bar-width);
  border-radius: inherit;
  background: linear-gradient(90deg, #0b8f76, #16b59e);
}

.commercial-tv-position-row__bar i {
  position: absolute;
  top: 50%;
  left: var(--marker);
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0b8f76;
  box-shadow: 0 4px 12px rgba(0, 80, 68, 0.22);
  transform: translate(-50%, -50%);
}

.commercial-tv-position-row--danger .commercial-tv-position-row__bar span {
  background: linear-gradient(90deg, #c73b3b, #f05f55);
}

.commercial-tv-position-row--danger .commercial-tv-position-row__bar i {
  background: #d84242;
}

.commercial-tv-position-row em {
  font-style: normal;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.commercial-tv-quintiles--stack {
  display: grid;
  gap: 8px;
}

.commercial-tv-summary-counts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.commercial-tv-summary-counts article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(17, 60, 74, 0.08);
  border-radius: 12px;
  background: rgba(247, 252, 251, 0.86);
}

.commercial-tv-summary-counts span {
  color: #315f68;
  font-size: 0.82rem;
  font-weight: 850;
}

.commercial-tv-summary-counts strong {
  color: #062e35;
  font-size: 1.35rem;
}

.commercial-tv-list--tracking {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commercial-tv-list--tracking .commercial-tv-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.top-commercial-tv-mode {
  overflow: hidden;
}

.top-commercial-tv-mode .app-shell {
  padding: clamp(5px, 0.75vh, 10px);
}

.top-commercial-tv-mode .page-wrap {
  min-height: calc(100svh - clamp(10px, 1.5vh, 20px));
  overflow: hidden;
}

.top-commercial-tv-mode .commercial-tv-stage {
  height: calc(100svh - clamp(10px, 1.5vh, 20px));
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(5px, 0.72vh, 9px);
  padding: clamp(7px, 0.85vh, 12px);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 248, 0.97));
}

.top-commercial-tv-mode .commercial-tv-head--compact {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(540px, 2.15fr) minmax(104px, auto);
  gap: clamp(8px, 0.9vw, 14px);
  align-items: stretch;
  min-height: 0;
  padding: 0;
}

.commercial-tv-title {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(4px, 0.55vh, 8px) 0 clamp(4px, 0.55vh, 7px);
}

.commercial-tv-title h1 {
  margin: 0;
  color: #061f25;
  font-size: clamp(1.28rem, 2.05vw, 2.18rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.commercial-tv-title p {
  margin: clamp(2px, 0.3vh, 4px) 0 0;
  color: #2f5b64;
  font-size: clamp(0.68rem, 0.86vw, 0.86rem);
  line-height: 1.1;
}

.commercial-tv-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.62vw, 10px);
  min-width: 0;
}

.commercial-tv-stat {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 0;
  min-height: clamp(50px, 7vh, 70px);
  padding: clamp(6px, 0.75vh, 10px) clamp(8px, 0.9vw, 12px);
  border: 1px solid rgba(17, 60, 74, 0.1);
  border-left: 4px solid rgba(15, 104, 113, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.commercial-tv-stat.is-strong {
  border-left-color: #00a999;
  background: rgba(237, 252, 249, 0.9);
}

.commercial-tv-stat.is-management {
  border-left-color: #5f93c9;
}

.commercial-tv-stat.is-reference {
  border-left-color: #e5b94d;
}

.commercial-tv-stat span {
  min-width: 0;
  overflow: hidden;
  color: #315f68;
  font-size: clamp(0.56rem, 0.72vw, 0.72rem);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.commercial-tv-stat strong {
  min-width: 0;
  overflow: hidden;
  color: #062e35;
  font-size: clamp(1.05rem, 1.7vw, 1.78rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-tv-stat em {
  min-width: 0;
  overflow: hidden;
  color: #47707a;
  font-size: clamp(0.55rem, 0.68vw, 0.72rem);
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-commercial-tv-mode .commercial-tv-clock {
  min-width: clamp(94px, 8.2vw, 126px);
  padding: clamp(6px, 0.8vh, 9px) clamp(8px, 0.86vw, 12px);
  border-radius: 10px;
}

.top-commercial-tv-mode .commercial-tv-clock span {
  font-size: clamp(0.56rem, 0.7vw, 0.72rem);
}

.top-commercial-tv-mode .commercial-tv-clock strong {
  font-size: clamp(1rem, 1.62vw, 1.42rem);
}

.commercial-tv-panel--fit-table {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: clamp(7px, 0.9vh, 12px);
  border-radius: 12px;
}

.commercial-tv-panel--fit-table .tv-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: clamp(4px, 0.55vh, 7px);
}

.commercial-tv-panel--fit-table .tv-panel__head h2,
.commercial-tv-panel--fit-table .tv-panel__head p {
  margin: 0;
}

.commercial-tv-panel--fit-table .tv-panel__head h2 {
  font-size: clamp(0.94rem, 1.28vw, 1.22rem);
  line-height: 1.05;
}

.commercial-tv-panel--fit-table .tv-panel__head p {
  color: var(--core-text-secondary);
  font-size: clamp(0.62rem, 0.78vw, 0.8rem);
  line-height: 1.2;
  text-align: right;
}

.commercial-tv-fit-table {
  display: grid;
  grid-template-rows: minmax(20px, auto) repeat(var(--agent-count), minmax(0, 1fr));
  gap: 1px;
  min-height: 0;
  overflow: hidden;
}

.commercial-tv-fit-row {
  display: grid;
  grid-template-columns:
    minmax(28px, 0.25fr)
    minmax(142px, 1.02fr)
    minmax(210px, 1.48fr)
    minmax(90px, 0.74fr)
    minmax(92px, 0.76fr)
    minmax(58px, 0.5fr)
    minmax(52px, 0.43fr)
    minmax(104px, 0.85fr);
  gap: clamp(4px, 0.44vw, 7px);
  align-items: center;
  min-height: 0;
  padding: 0 clamp(5px, 0.58vw, 8px);
  border: 1px solid rgba(17, 60, 74, 0.06);
  border-left-width: 4px;
  font-size: clamp(0.61rem, 1.05vh, 0.88rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.commercial-tv-fit-table--baseline .commercial-tv-fit-row {
  grid-template-columns:
    minmax(38px, 0.22fr)
    minmax(250px, 1.28fr)
    minmax(136px, 0.58fr)
    minmax(92px, 0.46fr)
    minmax(92px, 0.46fr)
    minmax(78px, 0.36fr)
    minmax(138px, 0.66fr)
    minmax(128px, 0.62fr);
}

.commercial-tv-fit-row--head {
  min-height: 22px;
  border-color: rgba(17, 60, 74, 0.08);
  border-left-color: rgba(17, 60, 74, 0.08);
  border-radius: 10px 10px 4px 4px;
  background: rgba(241, 248, 247, 0.98);
  color: #315f68;
  font-size: clamp(0.56rem, 0.94vh, 0.78rem);
  font-weight: 950;
  text-transform: uppercase;
}

.commercial-tv-fit-row--ok {
  border-left-color: #00a999;
  background: rgba(235, 251, 246, 0.96);
}

.commercial-tv-fit-row--danger {
  border-left-color: #d95a5a;
  background: rgba(255, 241, 240, 0.96);
}

.commercial-tv-fit-row--neutral {
  border-left-color: #90a4aa;
  background: rgba(244, 247, 248, 0.96);
}

.commercial-tv-fit-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-tv-fit-row > span:first-child {
  text-align: center;
}

.commercial-tv-fit-pos {
  color: #062e35;
  font-weight: 950;
  justify-self: stretch;
  text-align: center;
}

.commercial-tv-fit-agent {
  display: grid;
  grid-template-columns: clamp(14px, 1.9vh, 24px) minmax(0, 1fr);
  gap: clamp(4px, 0.42vw, 6px);
  align-items: center;
}

.commercial-tv-fit-agent img {
  width: clamp(14px, 1.9vh, 24px);
  height: clamp(14px, 1.9vh, 24px);
  object-fit: cover;
  border-radius: 6px;
}

.commercial-tv-fit-agent strong {
  min-width: 0;
  overflow: hidden;
  color: #061f25;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-tv-fit-focus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(4px, 0.45vw, 7px);
  align-items: center;
}

.commercial-tv-fit-focus--baseline {
  display: block;
}

.commercial-tv-fit-focus--baseline > strong {
  display: block;
}

.commercial-tv-fit-chip {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  min-width: clamp(34px, 3.6vw, 50px);
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-tv-fit-focus > strong {
  min-width: 0;
  overflow: hidden;
  color: #2c4d55;
  font-size: 0.92em;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-tv-fit-chip--ok {
  color: #0a715f;
  background: rgba(0, 143, 113, 0.13);
}

.commercial-tv-fit-chip--danger {
  color: #a31d27;
  background: rgba(214, 67, 67, 0.14);
}

.commercial-tv-fit-chip--neutral {
  color: #315f68;
  background: rgba(17, 60, 74, 0.08);
}

.commercial-tv-fit-money,
.commercial-tv-fit-delta {
  font-weight: 950;
}

.commercial-tv-fit-row > span:nth-child(4),
.commercial-tv-fit-row > span:nth-child(5),
.commercial-tv-fit-row > span:nth-child(6),
.commercial-tv-fit-row > span:nth-child(7),
.commercial-tv-fit-row > span:nth-child(8) {
  text-align: center;
}

.commercial-tv-fit-delta.is-positive {
  color: #0a715f;
}

.commercial-tv-fit-delta.is-negative {
  color: #b4232b;
}

@media (max-width: 1180px) {
  .top-commercial-tv-mode .commercial-tv-head--compact {
    grid-template-columns: minmax(190px, 0.8fr) minmax(420px, 2fr) minmax(88px, auto);
  }

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

  .commercial-tv-fit-row {
    grid-template-columns:
      minmax(26px, 0.28fr)
      minmax(112px, 0.98fr)
      minmax(170px, 1.42fr)
      minmax(78px, 0.74fr)
      minmax(80px, 0.76fr)
      minmax(52px, 0.54fr)
      minmax(42px, 0.45fr);
  }

  .commercial-tv-fit-table--baseline .commercial-tv-fit-row {
    grid-template-columns:
      minmax(34px, 0.24fr)
      minmax(168px, 1.06fr)
      minmax(112px, 0.7fr)
      minmax(72px, 0.52fr)
      minmax(72px, 0.52fr)
      minmax(54px, 0.42fr)
      minmax(104px, 0.74fr);
  }

  .commercial-tv-fit-row > span:nth-child(8) {
    display: none;
  }
}

@media (max-width: 920px) {
  .top-commercial-tv-mode .commercial-tv-head--compact {
    grid-template-columns: minmax(160px, 0.85fr) minmax(0, 2fr);
  }

  .top-commercial-tv-mode .commercial-tv-clock {
    display: none;
  }
}

@media (max-width: 980px) {
  .recognition-split {
    grid-template-columns: 1fr;
  }
}

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

.insight-metric-grid--integral {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-metric-card,
.tv-insight-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(17, 60, 74, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 251, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.insight-metric-card span,
.tv-insight-card span {
  color: #315f68;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.insight-metric-card strong,
.tv-insight-card strong {
  color: #062e35;
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1;
}

.insight-metric-card p,
.tv-insight-card p {
  margin: 0;
  color: var(--core-text-secondary);
  font-size: 0.88rem;
  line-height: 1.35;
}

.insight-metric-card.is-strong,
.tv-insight-card.is-strong {
  border-color: rgba(0, 169, 153, 0.22);
  background: linear-gradient(180deg, rgba(238, 252, 249, 0.98), rgba(255, 255, 255, 0.96));
}

.insight-metric-card.is-quality,
.tv-insight-card.is-quality {
  border-color: rgba(214, 95, 76, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 244, 0.98), rgba(255, 255, 255, 0.96));
}

.insight-metric-card.is-management,
.tv-insight-card.is-management {
  border-color: rgba(48, 91, 140, 0.16);
  background: linear-gradient(180deg, rgba(244, 248, 253, 0.98), rgba(255, 255, 255, 0.96));
}

.insight-metric-card.is-tmi,
.tv-insight-card.is-tmi {
  border-color: rgba(198, 138, 19, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(255, 255, 255, 0.96));
}

.insight-metric-card.is-risk,
.tv-insight-card.is-risk {
  border-color: rgba(122, 95, 162, 0.16);
  background: linear-gradient(180deg, rgba(249, 247, 253, 0.98), rgba(255, 255, 255, 0.96));
}

.tv-hub.is-auto-view {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
}

body.tv-auto-view .app-shell,
body.tv-auto-view .page-wrap {
  height: 100svh;
  min-height: 100svh;
}

.tv-hub.is-auto-view .tv-hub__hero {
  position: relative;
  top: auto;
  right: auto;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  z-index: 4;
}

.tv-hub.is-auto-view .tv-hub__period {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.tv-hub.is-auto-view .tv-scene-stack {
  grid-column: 1 / -1;
  grid-row: 2;
}

.tv-hub.is-auto-view .tv-hub__control-panel {
  max-width: 390px;
}

.tv-hub.is-auto-view .tv-scene-grid--main {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.78fr);
}

.tv-hub.is-auto-view .tv-scene-grid--charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.tv-hub.is-auto-view .tv-scene-grid--charts-top3 .tv-panel--chart-eligibility,
.tv-hub.is-auto-view .tv-scene-grid--charts-bonus .tv-panel--chart-development {
  display: none;
}

.tv-hub.is-auto-view .tv-panel--integral-status {
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

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

.tv-insight-grid--performance {
  height: auto;
  align-content: start;
}

.tv-insight-grid--performance .tv-insight-card {
  min-height: 0;
}

.tv-insight-card {
  padding: 14px;
}

.tv-insight-card strong {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

.tv-hub.is-auto-view .tv-eligible-featured,
.tv-hub.is-auto-view .tv-integral-featured {
  display: none;
}

.tv-hub.is-auto-view .tv-eligible-grid-head,
.tv-hub.is-auto-view .tv-integral-grid-head {
  display: none;
}

.tv-hub.is-auto-view .tv-eligible-grid-wrap,
.tv-hub.is-auto-view .tv-integral-grid-wrap {
  height: 100%;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-eligible-grid,
.tv-hub.is-auto-view .tv-integral-grid,
.tv-hub.is-auto-view .tv-watch-grid,
.tv-hub.is-auto-view .tv-integral-watch-grid {
  height: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-eligible-card,
.tv-hub.is-auto-view .tv-integral-card,
.tv-hub.is-auto-view .tv-watch-card,
.tv-hub.is-auto-view .tv-integral-watch-card {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.tv-hub.is-auto-view .tv-eligible-card__topline,
.tv-hub.is-auto-view .tv-integral-card__topline,
.tv-hub.is-auto-view .tv-watch-card__topline,
.tv-hub.is-auto-view .tv-integral-watch-card__topline {
  min-width: 0;
}

.tv-hub.is-auto-view .tv-eligible-card__status,
.tv-hub.is-auto-view .tv-integral-card__status,
.tv-hub.is-auto-view .tv-watch-card__status,
.tv-hub.is-auto-view .tv-integral-watch-card__status {
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-hub.is-auto-view .tv-eligible-card__hero,
.tv-hub.is-auto-view .tv-integral-card__hero,
.tv-hub.is-auto-view .tv-watch-card__hero,
.tv-hub.is-auto-view .tv-integral-watch-card__hero {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
}

.tv-hub.is-auto-view .tv-eligible-card__copy,
.tv-hub.is-auto-view .tv-integral-card__copy,
.tv-hub.is-auto-view .tv-watch-card__copy,
.tv-hub.is-auto-view .tv-integral-watch-card__copy {
  min-width: 0;
}

.tv-hub.is-auto-view .tv-eligible-card__copy h3,
.tv-hub.is-auto-view .tv-integral-card__copy h3,
.tv-hub.is-auto-view .tv-watch-card__copy h3,
.tv-hub.is-auto-view .tv-integral-watch-card__copy h3 {
  display: -webkit-box;
  line-height: 1.08;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-eligible-card--compact .tv-eligible-card__copy p,
.tv-hub.is-auto-view .tv-integral-card--compact .tv-integral-card__copy p,
.tv-hub.is-auto-view .tv-watch-card__copy span,
.tv-hub.is-auto-view .tv-integral-watch-card__copy span {
  display: -webkit-box;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-watch-card__message,
.tv-hub.is-auto-view .tv-integral-watch-card__message {
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.tv-hub.is-auto-view .tv-watch-card__message p,
.tv-hub.is-auto-view .tv-integral-watch-card__message p {
  -webkit-line-clamp: 2;
}

.tv-hub.is-auto-view .tv-eligible-card__metrics,
.tv-hub.is-auto-view .tv-integral-card__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv-hub.is-auto-view .tv-integral-card__metrics--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tv-hub.is-auto-view .tv-eligible-card__metrics span,
.tv-hub.is-auto-view .tv-integral-card__metrics span {
  min-height: 32px;
  padding: 6px;
}

@media (max-width: 1450px) and (min-width: 1181px) {
  .app-header {
    grid-template-columns: minmax(185px, 216px) minmax(0, 1fr) max-content;
    gap: 8px;
    padding-inline: 12px;
  }

  .brand-link {
    gap: 6px;
  }

  .brand-link img {
    width: 30px;
    height: 30px;
  }

  .brand-link strong {
    font-size: 0.82rem;
  }

  .brand-link span {
    font-size: 0.66rem;
  }

  .app-nav a,
  .nav-placeholder {
    gap: 4px;
    padding-inline: 7px;
    font-size: 0.74rem;
  }

  .nav-icon {
    font-size: 1rem;
  }

  .header-meta .core-chip:not(.app-period-chip) {
    max-width: 170px;
  }
}

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .header-meta {
    justify-content: flex-start;
  }

  .header-meta .core-chip,
  .header-meta .app-period-chip {
    max-width: 100%;
    min-width: 0;
  }

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

  .commercial-kpi-grid,
  .top-commercial-admin-kpis,
  .commercial-dashboard-grid,
  .commercial-dashboard-grid--reference,
  .commercial-tv-grid,
  .commercial-tv-metric-row,
  .commercial-tv-list {
    grid-template-columns: 1fr;
  }

  .commercial-position-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .commercial-position-row__bar,
  .commercial-position-row__delta {
    grid-column: 2;
  }

  .commercial-position-scale {
    padding-inline: 68px 0;
  }

  .commercial-tv-position-row {
    grid-template-columns: 46px minmax(0, 1fr) 76px;
  }

  .commercial-tv-position-row__bar {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .insight-metric-grid,
  .insight-metric-grid--integral {
    grid-template-columns: 1fr;
  }

  .commercial-kpi-grid,
  .top-commercial-admin-kpis {
    grid-template-columns: 1fr;
  }

  .commercial-tv-head,
  .commercial-tv-row,
  .commercial-tv-list--tracking .commercial-tv-row {
    grid-template-columns: 1fr;
  }

  .commercial-position-row,
  .commercial-tv-position-row {
    grid-template-columns: 1fr;
  }

  .commercial-position-row img,
  .commercial-tv-position-row img {
    justify-self: start;
  }

  .commercial-position-row__bar,
  .commercial-position-row__delta,
  .commercial-tv-position-row__bar {
    grid-column: auto;
  }

  .commercial-position-row__delta,
  .commercial-tv-position-row em {
    justify-items: start;
    text-align: left;
  }

  .commercial-reading-grid {
    grid-template-columns: 1fr;
  }

  .commercial-position-scale {
    padding-inline: 0;
  }

  .commercial-tv-clock {
    text-align: left;
  }
}

/* Historical comparisons */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.comparison-hero p {
  max-width: 820px;
}

.comparison-page .page-wrap {
  width: min(100%, var(--app-max-width));
  min-width: 0;
}

.comparison-page .panel-card,
.comparison-summary,
.comparison-table-scroll {
  min-width: 0;
}

.comparison-alert {
  margin-bottom: 18px;
  border-left: 4px solid #c68a13;
}

.comparison-alert.is-warning {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(255, 255, 255, 0.98));
}

.comparison-alert p {
  margin: 8px 0 0;
  color: var(--core-text-secondary);
}

.comparison-builder {
  display: grid;
  gap: 22px;
  margin-bottom: 20px;
}

.comparison-builder-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(300px, 1.3fr) minmax(280px, 1fr);
  gap: 18px;
}

.comparison-control {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(17, 60, 74, 0.1);
  border-radius: 16px;
  background: #fff;
}

.comparison-control legend {
  padding: 0 7px;
  color: #123f48;
  font-weight: 800;
}

.comparison-control p {
  margin: 0 0 12px;
  color: var(--core-text-secondary);
  font-size: 0.88rem;
}

.comparison-mode-switch {
  display: grid;
  gap: 8px;
}

.comparison-mode-switch label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(17, 60, 74, 0.12);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.comparison-mode-switch label.is-selected {
  border-color: #00a999;
  background: rgba(0, 169, 153, 0.08);
  color: #006a64;
}

.comparison-checklist {
  display: grid;
  gap: 7px;
  max-height: 248px;
  margin-top: 10px;
  padding-right: 4px;
  overflow-y: auto;
}

.comparison-checklist label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7fbfa;
  font-size: 0.88rem;
}

.comparison-checklist em {
  color: #4d6e74;
  font-size: 0.72rem;
  font-style: normal;
}

.comparison-checklist span,
.comparison-sequence-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.comparison-sequence {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.comparison-sequence-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(0, 169, 153, 0.16);
  border-radius: 10px;
  background: rgba(0, 169, 153, 0.06);
  font-size: 0.85rem;
  font-weight: 700;
}

.sequence-button {
  min-width: 30px;
  height: 30px;
  border: 1px solid rgba(17, 60, 74, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #123f48;
  cursor: pointer;
  font-size: 1.25rem;
}

.sequence-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.comparison-sequence-empty {
  margin: 0;
  color: var(--core-text-secondary);
  font-size: 0.83rem;
}

.comparison-actions,
.comparison-result-head,
.comparison-focus-select,
.identity-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comparison-result-head {
  margin-bottom: 20px;
}

.comparison-result-head h2,
.comparison-focus-select h2,
.comparison-profile h2 {
  margin: 4px 0 5px;
}

.comparison-result-head p,
.comparison-focus-select p,
.comparison-profile p {
  margin: 0;
  color: var(--core-text-secondary);
}

.comparison-summary {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.comparison-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 14px;
}

.comparison-table-scroll table {
  min-width: max-content;
  width: 100%;
  border-collapse: collapse;
}

.comparison-table-scroll th {
  position: sticky;
  top: 0;
  background: #f3f8f7;
  z-index: 1;
}

.comparison-table-scroll th,
.comparison-table-scroll td {
  min-width: 138px;
  padding: 13px 12px;
  border-bottom: 1px solid rgba(17, 60, 74, 0.08);
  vertical-align: top;
}

.comparison-table-scroll th:first-child,
.comparison-table-scroll td:first-child {
  min-width: 220px;
}

.comparison-note,
.comparison-reading,
.comparison-coverage {
  display: block;
  margin-top: 4px;
  color: #56757a;
  font-size: 0.76rem;
}

.comparison-reading.is-strong {
  color: #007c72;
  font-weight: 700;
}

.comparison-reading.is-weak,
.comparison-warning {
  color: #a24e3f;
}

.comparison-na {
  color: #789197;
  font-weight: 600;
}

.comparison-focus-select {
  margin-bottom: 18px;
}

.comparison-detail-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) repeat(4, minmax(160px, 0.72fr));
  gap: 12px;
  margin-bottom: 18px;
}

.comparison-profile {
  grid-row: span 2;
}

.comparison-kpi {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.comparison-kpi span {
  color: #315f68;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.comparison-kpi strong {
  color: #062e35;
  font-size: 1.36rem;
}

.comparison-kpi p,
.comparison-kpi em {
  margin: 0;
  color: var(--core-text-secondary);
  font-size: 0.8rem;
  font-style: normal;
}

.comparison-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.comparison-chart-frame {
  height: 270px;
}

.identity-panel {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.identity-form {
  align-items: end;
}

.identity-form label {
  display: grid;
  flex: 1;
  gap: 7px;
  font-weight: 700;
}

.identity-form label:nth-child(2) {
  flex: 2;
}

.identity-multiselect {
  min-height: 108px;
}

.identity-links-table {
  margin-top: 4px;
}

.period-rename-form {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 280px;
}

.period-rename-form .core-input {
  min-width: 170px;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .comparison-builder-grid {
    grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  }

  .comparison-alternates {
    grid-column: 1 / -1;
  }

  .comparison-alternates .comparison-checklist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .comparison-builder-grid,
  .comparison-chart-grid {
    grid-template-columns: 1fr;
  }

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

  .comparison-profile {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .comparison-actions,
  .comparison-result-head,
  .comparison-focus-select,
  .identity-form {
    align-items: stretch;
    flex-direction: column;
  }

  .comparison-detail-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table-scroll th,
  .comparison-table-scroll td {
    min-width: 128px;
  }
}

/* Comparison analysis workspace */
.comparison-page .page-wrap {
  width: min(100%, var(--app-max-width));
  min-width: 0;
}

.comparison-title {
  max-width: 850px;
  padding: 8px 0 2px;
}

.comparison-title h1 {
  margin: 12px 0 10px;
  color: #052f35;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.comparison-title p {
  margin: 0;
  color: #456b72;
  font-size: 0.98rem;
  line-height: 1.6;
}

.comparison-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 15px 18px;
  border: 1px solid #f0ddba;
  border-left: 3px solid #c88916;
  border-radius: 12px;
  background: #fffbf4;
  color: #5b4a27;
  font-size: 0.88rem;
}

.comparison-notice a {
  color: #065a60;
  font-weight: 700;
}

.comparison-notice span {
  display: block;
}

.comparison-setup,
.identity-drawer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe6e5;
  border-radius: 16px;
  background: #fff;
}

.comparison-setup summary,
.identity-drawer summary {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 70px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}

.comparison-setup summary::-webkit-details-marker,
.identity-drawer summary::-webkit-details-marker {
  display: none;
}

.comparison-setup summary:hover,
.identity-drawer summary:hover {
  background: #f7faf9;
}

.setup-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #073c44;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.setup-copy {
  display: grid;
  flex: 1;
  gap: 3px;
}

.setup-copy strong {
  color: #092e35;
  font-size: 1rem;
}

.setup-copy small {
  color: #5c7a7f;
  font-size: 0.83rem;
}

.setup-action {
  color: #006f68;
  font-size: 0.84rem;
  font-weight: 750;
}

.comparison-builder {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.34fr) minmax(310px, 1fr);
  gap: 18px;
  margin: 0;
  padding: 2px 20px 20px;
  border-top: 1px solid #e5eeed;
}

.comparison-builder .comparison-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 2px;
}

.comparison-control {
  padding: 16px 14px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.comparison-control legend {
  padding: 0 0 12px;
  color: #153e46;
  font-size: 0.86rem;
  font-weight: 800;
}

.comparison-control p {
  margin: 0 0 12px;
  color: #56757b;
  line-height: 1.45;
}

.comparison-mode label {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid #dfE9e8;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.comparison-mode label span {
  grid-column: 2;
  color: #5d787d;
  font-size: 0.77rem;
}

.comparison-mode label.is-selected {
  border-color: #00a999;
  background: #f0fbf9;
}

.comparison-checklist {
  max-height: 214px;
  gap: 5px;
  margin-top: 9px;
}

.comparison-checklist label {
  padding: 8px 9px;
  border: 1px solid transparent;
  background: #f7faf9;
}

.comparison-checklist label:has(input:checked) {
  border-color: #d3e9e6;
  background: #f0f8f7;
}

.comparison-sequence {
  gap: 5px;
  margin-top: 12px;
}

.comparison-sequence-item {
  padding: 7px 9px;
  border-color: #d7e8e6;
  background: #f4faf9;
  font-size: 0.78rem;
}

.sequence-button {
  min-width: 27px;
  height: 27px;
  border-radius: 7px;
  font-size: 1.05rem;
}

.comparison-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid #d9e6e5;
  border-radius: 16px;
  background: #fff;
}

.report-kicker {
  display: block;
  margin-bottom: 8px;
  color: #007e75;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.report-heading h2 {
  margin: 0 0 8px;
  color: #062d34;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.report-range {
  margin: 0 0 18px;
  color: #37636a;
  font-size: 0.9rem;
  font-weight: 650;
}

.calculation-rule {
  max-width: 900px;
  margin: 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #f3f8f7;
  color: #42646b;
  font-size: 0.85rem;
  line-height: 1.55;
}

.calculation-rule strong {
  color: #153d44;
}

.report-export {
  padding-top: 2px;
}

.comparison-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d9e6e5;
  border-radius: 14px;
  background: #fff;
}

.comparison-facts article {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-right: 1px solid #e5edec;
}

.comparison-facts article:last-child {
  border-right: 0;
}

.comparison-facts strong {
  color: #052e35;
  font-size: 1.75rem;
  line-height: 1;
}

.comparison-facts span {
  color: #55757a;
  font-size: 0.82rem;
}

.diagnostic-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.5fr);
  gap: 25px;
  align-items: center;
  padding: 23px 26px;
  border: 1px solid #d9e6e5;
  border-radius: 14px;
  background: #fff;
}

.diagnostic-overview h3,
.summary-heading h3,
.secondary-summary h3,
.advisor-detail-head h3 {
  margin: 0 0 5px;
  color: #082f36;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.diagnostic-overview p,
.summary-heading p,
.secondary-summary p,
.advisor-detail-head p {
  margin: 0;
  color: #55757a;
  font-size: 0.84rem;
  line-height: 1.5;
}

.diagnostic-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.diagnostic-counts article {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  background: #f3f7f6;
  color: #345a61;
  font-size: 0.82rem;
  font-weight: 650;
}

.diagnostic-counts strong {
  color: #062e35;
  font-size: 1.05rem;
}

.diagnostic-counts .is-positive,
.diagnostic-pill.is-positive {
  background: #e8f7f4;
  color: #006f66;
}

.diagnostic-counts .is-steady,
.diagnostic-pill.is-steady {
  background: #edf4f5;
  color: #305e66;
}

.diagnostic-counts .is-attention,
.diagnostic-pill.is-attention {
  background: #fff2ec;
  color: #a14e39;
}

.summary-workspace,
.advisor-detail {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 24px 25px 25px;
  border: 1px solid #d9e6e5;
  border-radius: 16px;
  background: #fff;
}

.summary-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.summary-filters {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.summary-filters .core-input {
  width: 205px;
}

.summary-filters .core-select {
  min-width: 160px;
}

.analysis-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e2eaea;
  border-radius: 11px;
}

.analysis-table-wrap.is-primary {
  max-height: min(72vh, 770px);
}

.analysis-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: separate;
  border-spacing: 0;
  color: #15343b;
  font-size: 0.83rem;
}

.analysis-table.is-performance {
  min-width: 0;
  table-layout: fixed;
}

.analysis-table.is-performance .col-advisor {
  width: 28%;
}

.analysis-table.is-performance .col-metric {
  width: 12%;
}

.analysis-table.is-integral-summary th:not(:first-child),
.analysis-table.is-integral-summary td:not(:first-child) {
  width: 15%;
}

.analysis-table.is-compact {
  min-width: 720px;
}

.analysis-table.is-detail {
  min-width: max-content;
}

.analysis-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 13px;
  border-bottom: 1px solid #dbe6e5;
  background: #f5f8f7;
  color: #365b62;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.analysis-table .group-head th {
  background: #edf4f3;
  color: #16454c;
  text-align: center;
}

.analysis-table .group-head th:first-child {
  text-align: left;
}

.analysis-table td {
  padding: 13px;
  border-bottom: 1px solid #edf2f1;
  vertical-align: top;
  background: #fff;
}

.analysis-table tbody tr:last-child td {
  border-bottom: 0;
}

.analysis-table tbody tr:hover td {
  background: #fafcfc;
}

.analysis-table th:first-child,
.analysis-table td:first-child {
  min-width: 258px;
}

.advisor-name {
  display: block;
  margin-bottom: 7px;
  color: #082e35;
  font-size: 0.84rem;
  font-weight: 780;
}

.diagnostic-pill {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f4f4;
  color: #425f66;
  font-size: 0.69rem;
  font-weight: 800;
}

.diagnostic-detail {
  display: block;
  max-width: 250px;
  color: #668187;
  font-size: 0.7rem;
  line-height: 1.38;
}

.advisor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.cohort-tag,
.coverage-tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f7f6;
  color: #365f66;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.indicator-reference {
  display: block;
  margin-top: 5px;
  color: #6b8387;
  font-size: 0.69rem;
  line-height: 1.3;
  white-space: nowrap;
}

.analysis-table.is-performance .indicator-reference {
  white-space: normal;
}

.indicator-reference.is-strong {
  color: #007b70;
}

.indicator-reference.is-weak {
  color: #ae5340;
}

.comparison-na {
  color: #85999d;
  font-weight: 650;
}

.secondary-summary {
  display: grid;
  gap: 13px;
  min-width: 0;
  margin-top: 5px;
  padding-top: 18px;
  border-top: 1px solid #e8efee;
}

.table-pan-hint {
  display: none;
  color: #57777c;
  font-size: 0.76rem;
  font-weight: 650;
}

.advisor-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.advisor-detail-head .core-select {
  min-width: 280px;
}

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

.trend-panel {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid #e4eceb;
  border-radius: 11px;
  background: #fbfcfc;
}

.trend-panel h4 {
  margin: 0 0 12px;
  color: #153d44;
  font-size: 0.9rem;
}

.comparison-chart-frame {
  height: 235px;
}

.monthly-detail {
  margin-top: 0;
}

.identity-drawer {
  margin-top: 3px;
}

.identity-content {
  display: grid;
  gap: 18px;
  padding: 0 20px 20px;
  border-top: 1px solid #e5eeed;
}

.identity-form {
  padding-top: 19px;
}

.period-rename-form {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 280px;
}

.period-rename-form .core-input {
  min-width: 170px;
}

@media (max-width: 1250px) {
  .comparison-builder {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  }

  .comparison-alternates {
    grid-column: 1 / -1;
  }

  .comparison-alternates .comparison-checklist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-heading,
  .diagnostic-overview {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .diagnostic-counts {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

@media (max-width: 820px) {
  .comparison-title {
    padding-top: 2px;
  }

  .comparison-setup summary,
  .identity-drawer summary {
    padding-inline: 15px;
  }

  .setup-action {
    display: none;
  }

  .comparison-builder {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .comparison-alternates .comparison-checklist {
    grid-template-columns: 1fr;
  }

  .comparison-report-head,
  .summary-workspace,
  .advisor-detail {
    padding: 18px 15px;
  }

  .comparison-report-head,
  .advisor-detail-head,
  .identity-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

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

  .comparison-facts article:nth-child(2) {
    border-right: 0;
  }

  .comparison-facts article:nth-child(-n+2) {
    border-bottom: 1px solid #e5edec;
  }

  .diagnostic-overview {
    display: block;
    padding: 18px 15px;
  }

  .summary-filters {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 15px;
  }

  .summary-filters .core-input,
  .summary-filters .core-select,
  .advisor-detail-head .core-select {
    width: 100%;
    min-width: 0;
  }

  .trend-grid {
    grid-template-columns: 1fr;
  }

  .table-pan-hint {
    display: block;
  }

  .analysis-table.is-performance {
    min-width: 960px;
  }

  .analysis-table.is-integral-summary {
    min-width: 730px;
  }
}

/* =====================================================================
   Header amount toggle (visibility of bonus amounts)
   - Hides bonus amounts behind bullets by default.
   - Admin toggles in the header to reveal.
   ===================================================================== */
.header-amount-toggle {
  cursor: pointer;
  border: 1px solid var(--core-border);
  background: var(--core-surface);
  font-family: var(--core-font-sans);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-amount-toggle:hover {
  background: #f1f6f8;
  border-color: #cfe0e5;
}

.header-amount-toggle.is-active {
  background: var(--core-primary);
  color: #ffffff;
  border-color: var(--core-primary);
}

.header-amount-toggle__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.amount--bonus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--core-font-mono);
  font-variant-numeric: tabular-nums;
}

.amount--bonus .amount__hidden {
  letter-spacing: 0.06em;
  color: var(--core-text-muted);
  font-weight: 700;
}

.amount--bonus .amount__visible {
  display: none;
}

body.amounts-revealed .amount--bonus .amount__hidden {
  display: none;
}

body.amounts-revealed .amount--bonus .amount__visible {
  display: inline;
}

/* =====================================================================
   Avatar initials fallback
   - Replaces broken/missing <img> automatically (handler in base.html).
   - Inherits sizing context from the parent (podium card, person cell,
     etc.) by setting width/height in the JS handler.
   ===================================================================== */
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--core-font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--core-surface-subtle);
  color: var(--core-text);
  border-radius: inherit;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
  font-size: clamp(0.7rem, 1.6vw, 1.4rem);
}

/* Force circular shape when the original <img> was inside a circular slot */
.podium-card .avatar-initials,
.tv-podium-card .avatar-initials,
.mini-podium__item .avatar-initials,
.advisor-card .avatar-initials,
.person-cell .avatar-initials,
.tv-score-row .avatar-initials,
.commercial-tv-fit-agent .avatar-initials,
.commercial-person-cell .avatar-initials {
  border-radius: 50%;
}

/* Per-context typographic sizing for the initials fallback */
.podium-card .avatar-initials,
.tv-podium-card .avatar-initials { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.mini-podium__item .avatar-initials,
.advisor-card .avatar-initials { font-size: 1.15rem; }

.person-cell .avatar-initials,
.tv-score-row .avatar-initials,
.commercial-tv-fit-agent .avatar-initials,
.commercial-person-cell .avatar-initials { font-size: 0.9rem; }

/* Placeholder for cells where bonus amount does not apply */
.amount-na {
  color: var(--core-text-muted);
  font-family: var(--core-font-mono);
}
