.tab-label {
  margin: 4px 12px 5px;
  color: #8a8f98;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.secondary-label {
  margin-top: 18px;
}

@media (max-width: 820px) {
  .tab-label {
    display: none;
  }
}

.auth select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #cfd2d8;
  border-radius: 8px;
  background: #fff;
  color: #111318;
  font: inherit;
}

.field-note {
  display: block;
  margin-top: 6px;
  color: #777c85;
  font-weight: 400;
}

.country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4d525b;
}

.flag {
  font-size: 18px;
}

.flag-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: help;
}

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

.page-subtitle {
  margin: 5px 0 0;
  color: #666b74;
}

.title-with-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-with-status h2 {
  margin-bottom: 0;
}

.session-status {
  padding: 4px 8px;
  border: 1px solid #d8dbe1;
  border-radius: 999px;
  color: #666b74;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.session-status.is-live {
  border-color: #b9dfc7;
  color: #147a42;
  background: #f3fbf6;
}

.market-performance {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--stock-bg);
  color: var(--stock-color);
  font-size: 12px;
  font-weight: 750;
}

.date-filter {
  min-width: 190px;
  color: #666b74;
  font-size: 12px;
  font-weight: 650;
}

.date-filter select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #cfd2d8;
  border-radius: 8px;
  background: #fff;
  color: #111318;
  font: inherit;
}

.notice {
  margin: 24px 0;
  padding: 15px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #555b65;
  background: #fafafa;
}

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

.prediction-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

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

.market-view {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--stock-bg, #f2f3f5);
  color: var(--stock-color, #4d525b);
  font-size: 12px;
  font-weight: 650;
  text-transform: capitalize;
}

.table-wrap .market-view {
  margin-top: 0;
}

.wide-page {
  max-width: 1500px;
}

.history-table {
  min-width: 920px;
}

.column-group {
  display: block;
  margin-bottom: 2px;
  color: #a0a4ac;
  font-size: 8px;
}

.column-subtitle {
  display: block;
  margin-top: 2px;
  color: #a0a4ac;
  font-size: 8px;
}

.decision-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.decision-cell strong {
  font-weight: 650;
}

.decision-cell small {
  color: #777c85;
  font-size: 10px;
}

.stock-chip {
  display: inline-flex;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--stock-bg);
  color: var(--stock-color);
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  cursor: help;
}

.stock-chip:focus-visible {
  outline: 2px solid #315efb;
  outline-offset: 2px;
}

.stock-tooltip {
  position: fixed;
  z-index: 80;
  width: 280px;
  padding: 16px;
  border: 1px solid #d9dcf3;
  border-radius: 14px;
  background: linear-gradient(145deg,#fff 0%,#f8f8ff 100%);
  box-shadow: 0 18px 50px #11131826,0 3px 10px #4d4f7f12;
  color: #242830;
  pointer-events: auto;
}

.stock-tooltip > strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 15px;
}

.stock-tooltip p {
  margin: 0 0 10px;
  color: #4d525b;
  font-size: 13px;
  line-height: 1.5;
}

.stock-tooltip > small {
  color: #8a8f98;
  font-size: 10px;
}

.tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5b55bd;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tooltip-close {
  display: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ecebff;
  color: #4943a8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.stock-tooltip.is-pinned .tooltip-close {
  display: inline-grid;
  place-items: center;
}

.explainable-tag {
  cursor: help;
}

.explainable-tag:focus-visible {
  outline: 2px solid #6259dc;
  outline-offset: 3px;
}

.agent-cell {
  display: inline-grid;
  justify-items: start;
  gap: 2px;
}

.agent-identity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.agent-submitted {
  color: #777c85;
  font-size: 8px;
  font-style: normal;
  line-height: 1.2;
}

.prediction-row td {
  height: 31px;
  padding: 3px 12px;
  border-bottom-color: #eef0f3;
  font-size: 12px;
}

.prediction-row.prediction-group-start td {
  border-top: 2px solid #d9dce2;
}

.prediction-row:first-child td {
  border-top: 0;
}

.prediction-agent {
  vertical-align: middle;
  background: #fcfcfd;
}

.prediction-row .agent-id {
  font-size: 12px;
}

.prediction-row .stock-chip,
.prediction-row .ticker {
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.25;
}

.prediction-row .decision-cell {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.prediction-row .decision-cell strong {
  font-size: 12px;
}

.prediction-row .decision-cell small {
  font-size: 8px;
}

.market-direction {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 9px;
  font-weight: 850;
}

.market-direction.is-up {
  color: #147a42;
  background: #e5f7ec;
}

.market-direction.is-down {
  color: #b42318;
  background: #fce9e7;
}

.market-direction.is-neutral {
  color: #666b74;
  background: #eef0f3;
}

.market-direction.is-missing {
  color: #667085;
  border: 1px dashed #c7cbd2;
  background: #f8f9fa;
}

.leaderboard-periods {
  display: inline-flex;
  gap: 4px;
  margin: 20px 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: #f0f1f5;
}

.period-button {
  min-width: 86px;
  padding: 8px 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #656a74;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.period-button:hover {
  color: #272b34;
}

.period-button.active {
  background: #fff;
  box-shadow: 0 2px 8px #11131812;
  color: #453fb0;
}

.performance-cell strong {
  font-size: 16px;
}

.badges-cell {
  min-width: 210px;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ead8b0;
  border-radius: 50%;
  background: #fff8e8;
  color: #765314;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: help;
}

.achievement-badge.is-level {
  border-color: #d9dcff;
  background: linear-gradient(145deg, #f7f4ff, #effcff);
  color: #3e4385;
}

.achievement-badge.is-country {
  border-color: #e1e3e8;
  background: #fff;
  font-size: 18px;
}

.level-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #5b5ce2;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px #ffffff55;
}

.badges-cell,
.achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.achievement-list {
  margin-top: 14px;
}

.event-heading {
  margin-top: 26px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: #666b74;
  font-size: 12px;
}

.pager button {
  min-width: 96px;
  padding: 8px 12px;
  border: 1px solid #d9dce2;
  border-radius: 8px;
  background: #fff;
  color: #242830;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pager button:hover:not(:disabled) {
  border-color: #9da2ab;
  background: #f8f9fa;
}

.pager button:disabled {
  opacity: .42;
  cursor: default;
}

.value-muted {
  color: #8a8f98;
}

.change-positive {
  color: #147a42;
}

.change-negative {
  color: #b42318;
}

.result-status {
  font-weight: 750;
  text-transform: uppercase;
}

.result-status.status-live {
  color: #147a42;
}

.result-status.status-final {
  color: #315efb;
}

@media (max-width: 820px) {
  .topbar nav {
    max-width: 72vw;
    overflow-x: auto;
    white-space: nowrap;
  }

  .prediction-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-periods {
    max-width: 100%;
    overflow-x: auto;
  }
}
