.live-redesign-page {
  background: #f6f8fb;
  color: #111827;
}

.live-redesign-page .nav {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: none;
}

.live-main {
  min-height: calc(100svh - 72px);
  background: #f6f8fb;
}

.live-redesign-page .whatsapp-cta {
  display: none;
}

.live-command {
  min-height: calc(100svh - 72px);
  padding: clamp(12px, 1.6vw, 22px);
}

.live-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  min-height: calc(100svh - 112px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
}

.live-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(28px, 3.2vw, 42px);
  padding: clamp(28px, 4.8vw, 68px);
  min-width: 0;
}

.live-panel--exams {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0.98)),
    #fff;
}

.live-panel--competition {
  background: #132238;
  color: #f8fafc;
  border-left: 1px solid rgba(17, 24, 39, 0.1);
  gap: 28px;
  padding-top: clamp(36px, 3.8vw, 52px);
}

.live-panel-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.live-panel-copy--compact {
  align-content: start;
  gap: 14px;
}

.live-panel-copy h1 {
  margin: 0;
  color: inherit;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(4.2rem, 5.2vw, 6rem);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.live-panel-copy h2 {
  margin: 0;
  color: inherit;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(2.8rem, 3.2vw, 3.75rem);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.live-panel-copy--compact h2 {
  max-width: 18ch;
}

.live-panel-copy p {
  margin: 0;
  color: rgba(17, 24, 39, 0.58);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 560;
}

.live-panel--competition .live-panel-copy p {
  color: rgba(248, 250, 252, 0.66);
}

.live-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font: 720 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.live-action:hover {
  transform: translateY(-1px);
}

.live-action--primary {
  background: #c6a354;
  color: #111827;
}

.live-action--gold {
  background: #c6a354;
  color: #111827;
}

.live-action:disabled,
.live-mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  transform: none;
}

.live-timeline-shell {
  align-self: end;
  display: grid;
  gap: 18px;
}

.live-room-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.live-room-head span {
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
  font-weight: 760;
}

.live-room-head strong {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.1;
  color: #132238;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-timeline {
  position: relative;
  display: grid;
  gap: 10px;
}

.live-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 1px;
  background: rgba(19, 34, 56, 0.14);
}

.live-session-row {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 98px;
  padding: 18px 0 18px 0;
}

.live-session-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #8a98a9;
  box-shadow: 0 0 0 1px rgba(19, 34, 56, 0.16);
}

.live-session-row.is-running .live-session-dot {
  background: #0f8a5f;
}

.live-session-row strong {
  display: block;
  margin: 0 0 8px;
  color: #132238;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
}

.live-session-state {
  display: block;
  margin: -4px 0 12px;
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
  font-weight: 760;
}

.live-session-row dl,
.live-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.live-session-row dt,
.live-rule-grid dt {
  color: rgba(17, 24, 39, 0.42);
  font-size: 11px;
  font-weight: 760;
}

.live-session-row dd,
.live-rule-grid dd {
  margin: 4px 0 0;
  color: #111827;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.live-session-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.live-mini-action {
  min-height: 36px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 6px;
  background: #fff;
  color: #132238;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.live-mini-action--dark {
  background: #132238;
  border-color: #132238;
  color: #fff;
}

.weekly-board {
  display: grid;
  align-self: start;
  min-height: 0;
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.weekly-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}

.weekly-board-head strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 780;
}

.weekly-board-head span {
  color: rgba(248, 250, 252, 0.52);
  font-size: 12px;
  font-weight: 650;
}

.weekly-board-head b {
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 650;
}

.weekly-exam-link {
  min-height: 36px;
  border: 1px solid rgba(198, 163, 84, 0.48);
  border-radius: 6px;
  background: rgba(198, 163, 84, 0.12);
  color: #f8d681;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.weekly-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}

.weekly-tabs button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(248, 250, 252, 0.54);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.weekly-tabs button.is-active {
  background: rgba(248, 250, 252, 0.1);
  color: #fff;
}

.weekly-table-wrap {
  overflow: auto;
}

.weekly-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
}

.weekly-table th {
  height: 34px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
  color: rgba(248, 250, 252, 0.45);
  font-size: 11px;
  font-weight: 760;
  text-align: left;
}

.weekly-table th,
.weekly-table td {
  padding: 0 14px;
}

.weekly-table th:first-child,
.weekly-table td:first-child {
  width: 52px;
}

.weekly-table th:nth-child(3),
.weekly-table td:nth-child(3) {
  width: 128px;
}

.weekly-table th:nth-child(4),
.weekly-table td:nth-child(4),
.weekly-table th:nth-child(5),
.weekly-table td:nth-child(5) {
  width: 86px;
  text-align: right;
}

.weekly-table td {
  height: 38px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.075);
  color: rgba(248, 250, 252, 0.82);
  font-size: 13px;
  font-weight: 650;
}

.weekly-table tr:last-child td {
  border-bottom: 0;
}

.weekly-table tr.is-podium td:first-child {
  color: #f8d681;
}

.weekly-table tr.is-self td {
  background: rgba(248, 250, 252, 0.08);
  color: #fff;
}

.weekly-rank-cell,
.weekly-score-cell span,
.weekly-trend-cell {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.weekly-user-cell {
  color: #fff;
}

.weekly-score-cell {
  position: relative;
}

.weekly-score-cell span {
  position: relative;
  z-index: 1;
}

.weekly-score-cell i {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #c6a354;
  opacity: 0.86;
}

.weekly-trend-cell {
  color: #f8d681;
}

.live-footer {
  background: #fff;
}

.live-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 15, 27, 0.58);
  backdrop-filter: blur(8px);
}

.live-modal-card {
  width: min(680px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 26px;
  box-shadow: 0 34px 90px rgba(8, 15, 27, 0.32);
}

.live-modal-card--runner,
.live-modal-card--weekly {
  width: min(900px, 100%);
}

.live-modal-card h2 {
  margin: 0 0 16px;
  color: #132238;
  font-size: 26px;
  letter-spacing: 0;
}

.live-modal-kicker {
  margin: 0 0 6px;
  color: rgba(17, 24, 39, 0.46);
  font-size: 12px;
  font-weight: 800;
}

.live-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}

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

.live-runner-score {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 6px;
  background: rgba(19, 34, 56, 0.08);
  color: #132238;
  padding: 0 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 720;
}

.live-runner-question {
  white-space: pre-wrap;
  color: #132238;
  line-height: 1.58;
}

.live-runner-feedback {
  color: rgba(17, 24, 39, 0.58);
  line-height: 1.55;
}

.live-runner-options,
.weekly-exam-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.live-runner-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 7px;
  background: #fff;
  color: #132238;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.live-runner-option span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(19, 34, 56, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.live-runner-option strong {
  font-size: 14px;
  font-weight: 680;
}

.live-runner-option:hover,
.live-runner-option.is-selected {
  border-color: #132238;
  background: #132238;
  color: #fff;
}

.live-runner-option:hover span,
.live-runner-option.is-selected span {
  background: rgba(255, 255, 255, 0.16);
}

.weekly-exam-list {
  display: grid;
  gap: 16px;
}

.weekly-exam-question {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding-bottom: 16px;
}

.weekly-exam-question > strong {
  display: block;
  color: #132238;
  line-height: 1.5;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .live-panel {
    padding: 42px 48px;
  }

  .live-panel--competition {
    gap: 22px;
  }

  .live-panel-copy h1 {
    font-size: clamp(3.6rem, 6vw, 5rem);
  }

  .live-panel-copy h2 {
    font-size: clamp(2.6rem, 4.5vw, 3.1rem);
  }

  .live-session-row {
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
  }

  .live-session-actions {
    grid-column: 2;
  }

  .weekly-board-head {
    padding: 11px 14px;
  }

  .weekly-tabs {
    padding: 6px;
  }

  .weekly-tabs button {
    min-height: 27px;
    padding: 0 8px;
  }

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

  .weekly-table th,
  .weekly-table td {
    padding: 0 8px;
  }

  .weekly-table th {
    height: 28px;
    font-size: 10px;
  }

  .weekly-table td {
    height: 30px;
    font-size: 12px;
  }

  .weekly-table th:first-child,
  .weekly-table td:first-child {
    width: 40px;
  }

  .weekly-table th:nth-child(3),
  .weekly-table td:nth-child(3) {
    width: 78px;
  }

  .weekly-table th:nth-child(4),
  .weekly-table td:nth-child(4),
  .weekly-table th:nth-child(5),
  .weekly-table td:nth-child(5) {
    width: 58px;
  }
}

@media (max-width: 900px) {
  .live-split {
    grid-template-columns: 1fr;
  }

  .live-panel--competition {
    border-left: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
  }

  .live-panel-copy--compact {
    grid-template-columns: 1fr;
  }

  .live-panel-copy--compact h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .live-command {
    padding: 0;
  }

  .live-split {
    min-height: auto;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .live-panel {
    padding: 28px 18px;
    gap: 24px;
  }

  .live-panel-copy h1,
  .live-panel-copy h2 {
    font-size: clamp(3rem, 15vw, 4.05rem);
  }

  .live-panel--exams {
    max-height: 560px;
    overflow: hidden;
  }

  .live-timeline-shell {
    min-height: 0;
  }

  .live-timeline {
    max-height: 270px;
    overflow: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
  }

  .live-session-row {
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    min-height: 204px;
  }

  .live-session-actions {
    grid-column: 2;
  }

  .live-session-row dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weekly-board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .weekly-table {
    min-width: 500px;
  }

  .live-rule-grid {
    grid-template-columns: 1fr 1fr;
  }
}
