:root {
  --earn-bg: #060a0f;
  --earn-surface: #0a1017;
  --earn-surface-2: #0d151e;
  --earn-line: #203040;
  --earn-line-soft: #162431;
  --earn-row-line: rgba(35, 48, 69, 0.42);
  --earn-text: #e8eef4;
  --earn-muted: #8fa0b2;
  --earn-accent: #50d2c1;
  --earn-warm: #efbd5a;
  --earn-danger: #ff6f7d;
}

html {
  background: var(--earn-bg);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.earnings-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--earn-text);
  background: var(--earn-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.earnings-shell {
  width: min(1560px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
}

html.earnings-route-pending .layout,
body.earnings-mode .layout {
  display: none;
}

.earnings-page {
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  padding: 0 20px 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
}

.earnings-page.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: earnings-view-enter 180ms ease-out both;
}

.earnings-page .earnings-shell {
  width: 100%;
  min-height: calc(100dvh - 250px);
}

.earnings-page .earnings-main {
  padding-top: 20px;
}

body.earnings-mode .primary-nav-earnings {
  color: var(--accent) !important;
  background: rgba(80, 210, 193, 0.07) !important;
  box-shadow: inset 0 0 0 1px rgba(80, 210, 193, 0.16) !important;
}

@keyframes earnings-view-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .earnings-page.is-visible {
    animation: none;
  }
}

.earnings-header {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--earn-line);
}

.earnings-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--earn-text);
  font-weight: 750;
  text-decoration: none;
}

.earnings-brand img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  object-fit: cover;
}

.earnings-brand-divider {
  width: 1px;
  height: 20px;
  margin: 0 13px;
  background: var(--earn-line);
}

.earnings-product {
  color: var(--earn-muted);
  font-size: 13px;
  font-weight: 650;
}

.earnings-back {
  margin-left: auto;
  color: var(--earn-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.earnings-back:hover,
.earnings-back:focus-visible {
  color: var(--earn-accent);
}

.earnings-main {
  padding: 28px 0 14px;
}

.earnings-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.earnings-intro h1 {
  margin: 0;
  color: var(--earn-text);
  font-size: 26px;
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: 0;
}

.earnings-intro p {
  margin: 6px 0 0;
  color: var(--earn-muted);
  font-size: 13px;
}

.earnings-freshness {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--earn-muted);
  font-size: 12px;
  white-space: nowrap;
}

.earnings-health-dot {
  width: 12px;
  height: 2px;
  border-radius: 0;
  background: var(--earn-accent);
  box-shadow: none;
}

.earnings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  border-top: 1px solid var(--earn-line);
  border-bottom: 1px solid var(--earn-line);
}

.earnings-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: min(420px, 100%);
  min-width: 0;
  height: 36px;
  border: 1px solid var(--earn-line);
  border-radius: 6px;
  padding: 0 11px;
  background: var(--earn-surface);
}

.earnings-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--earn-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.earnings-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  padding: 0;
  color: var(--earn-text);
  background: transparent;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.earnings-search input::placeholder {
  color: #68798a;
}

.earnings-view-tabs {
  display: flex;
  align-self: stretch;
  margin-left: auto;
  justify-content: flex-end;
  gap: 24px;
}

.earnings-view-tabs button {
  position: relative;
  border: 0;
  padding: 0 1px;
  color: var(--earn-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.earnings-view-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.earnings-view-tabs button:hover,
.earnings-view-tabs button:focus-visible,
.earnings-view-tabs button[aria-pressed="true"] {
  color: var(--earn-text);
}

.earnings-view-tabs button:focus-visible {
  outline: none;
}

.earnings-view-tabs button[aria-pressed="true"]::after {
  background: var(--earn-accent);
}

.earnings-meta {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 42px;
  overflow: hidden;
  border-bottom: 1px solid var(--earn-row-line);
  color: var(--earn-muted);
  font-size: 11px;
  white-space: nowrap;
}

.earnings-meta > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.earnings-meta > span + span::before {
  content: "";
  width: 1px;
  height: 13px;
  margin: 0 12px;
  background: var(--earn-line);
}

.earnings-meta strong {
  margin-right: 4px;
  color: var(--earn-text);
  font-weight: 720;
}

.earnings-status {
  border-left: 2px solid var(--earn-danger);
  padding: 9px 12px;
  color: #ffabb3;
  background: rgba(255, 77, 94, 0.07);
  font-size: 12px;
}

.earnings-data {
  margin-top: 20px;
}

.earnings-data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border-bottom: 1px solid var(--earn-line);
}

.earnings-data-head h2 {
  margin: 0;
  color: var(--earn-text);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
}

.earnings-data-head > span {
  color: var(--earn-muted);
  font-size: 11px;
}

.earnings-calendar-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--earn-muted);
  font-size: 11px;
}

.earnings-macro-toggle {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 7px;
  color: #9aabba;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.earnings-macro-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.earnings-macro-switch {
  position: relative;
  width: 28px;
  height: 16px;
  flex: 0 0 28px;
  border: 1px solid #344454;
  border-radius: 9px;
  background: #17212a;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.earnings-macro-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8795a3;
  transition: transform 140ms ease, background-color 140ms ease;
}

.earnings-macro-toggle input:checked + .earnings-macro-switch {
  border-color: #9b7c38;
  background: #3a301d;
}

.earnings-macro-toggle input:checked + .earnings-macro-switch::after {
  transform: translateX(12px);
  background: #f0c768;
}

.earnings-macro-toggle input:focus-visible + .earnings-macro-switch {
  outline: 2px solid var(--earn-accent);
  outline-offset: 2px;
}

.earnings-table-wrap {
  max-height: calc(100vh - 285px);
  overflow: auto;
  scrollbar-color: #2b3b4b transparent;
  scrollbar-width: thin;
}

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

.earnings-table th,
.earnings-table td {
  height: 48px;
  border-bottom: 1px solid var(--earn-row-line);
  padding: 6px 10px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.earnings-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 34px;
  color: var(--earn-muted);
  background: var(--earn-surface);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.earnings-table th:nth-child(1) { width: 132px; }
.earnings-table th:nth-child(2) { width: 28%; }
.earnings-table th:nth-child(3) { width: 190px; }
.earnings-table th:nth-child(4) { width: 125px; }
.earnings-table th:nth-child(5) { width: 150px; }
.earnings-table th:nth-child(6) { width: 125px; }
.earnings-table th:nth-child(7) { width: 100px; }

.earnings-table td {
  color: #ced8e2;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.earnings-table tbody tr:hover {
  background: #0a131a;
}

.earnings-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.earnings-sort.numeric {
  justify-content: flex-end;
}

.earnings-sort:hover,
.earnings-sort:focus-visible,
.earnings-sort.is-active {
  color: var(--earn-accent);
}

.earnings-sort [data-sort-icon] {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0;
  transform: translateY(-2px) rotate(45deg);
}

.earnings-sort.is-active [data-sort-icon] {
  opacity: 1;
}

.earnings-sort.is-active[data-sort-dir="asc"] [data-sort-icon] {
  transform: translateY(2px) rotate(225deg);
}

.earnings-sort:focus-visible {
  outline: 1px solid var(--earn-accent);
  outline-offset: 3px;
}

.earnings-date,
.earnings-company,
.earnings-value {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.earnings-date strong,
.earnings-company strong,
.earnings-value strong {
  overflow: hidden;
  color: var(--earn-text);
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-date small,
.earnings-company small,
.earnings-value small,
.earnings-muted {
  overflow: hidden;
  color: var(--earn-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-value {
  text-align: right;
}

.earnings-value small {
  color: #718396;
}

.earnings-date small.is-confirmed {
  color: var(--earn-accent);
}

.earnings-date small.is-estimated {
  color: #c9a55d;
}

.earnings-date small.is-reported {
  color: #7f93a5;
}

.earnings-value.is-reported strong,
.earnings-value.is-reported small:not(.earnings-surprise) {
  color: var(--earn-accent);
}

.earnings-surprise {
  color: var(--earn-muted);
  font-style: normal;
  font-weight: 750;
}

.earnings-surprise.is-positive {
  color: var(--earn-accent);
}

.earnings-surprise.is-negative {
  color: var(--earn-danger);
}

.earnings-value.is-empty strong {
  color: #526272;
  font-weight: 500;
}

.earnings-chip-list {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.earnings-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 175px;
  border-left: 2px solid var(--earn-accent);
  padding-left: 7px;
  color: var(--earn-text);
  font-weight: 680;
}

button.earnings-chip,
button.earnings-watch-market {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.earnings-watch-market {
  border-left: 0;
  padding: 0;
  color: inherit;
}

button.earnings-chip:hover,
button.earnings-chip:focus-visible,
button.earnings-watch-market:hover,
button.earnings-watch-market:focus-visible {
  color: var(--earn-accent);
  outline: none;
}

.earnings-chip img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-radius: 50%;
  object-fit: contain;
}

.earnings-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-chip-overflow {
  color: var(--earn-muted);
  font-size: 10px;
}

.earnings-symbol {
  color: var(--earn-accent);
  font-weight: 700;
}

.earnings-watch-market {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.earnings-watch-market img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  object-fit: contain;
}

.earnings-hip3-table {
  min-width: 800px;
}

.earnings-hip3-table th:nth-child(1) { width: 145px; }
.earnings-hip3-table th:nth-child(2) { width: 25%; }
.earnings-hip3-table th:nth-child(3) { width: 105px; }
.earnings-hip3-table th:nth-child(4) { width: 240px; }
.earnings-hip3-table th:nth-child(5) { width: 125px; }
.earnings-hip3-table th:nth-child(6) { width: 160px; }
.earnings-hip3-table th:nth-child(7) { width: 125px; }

.earnings-region {
  color: #aab9c6;
  font-size: 11px;
  font-weight: 650;
}

.earnings-macro-table-wrap {
  max-height: calc(100vh - 285px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #2b3b4b transparent;
  scrollbar-width: thin;
}

.earnings-macro-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.earnings-macro-table th,
.earnings-macro-table td {
  height: 50px;
  border-bottom: 1px solid var(--earn-line-soft);
  padding: 6px 10px;
  overflow: hidden;
  vertical-align: middle;
}

.earnings-macro-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 34px;
  color: var(--earn-muted);
  background: var(--earn-surface);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  text-align: right;
}

.earnings-macro-table th:nth-child(1) {
  width: 14%;
  text-align: left;
}

.earnings-macro-table th:nth-child(2) {
  width: 41%;
  text-align: left;
}

.earnings-macro-table th:nth-child(n + 3) {
  width: 15%;
}

.earnings-macro-table tr.is-released {
  background: rgba(80, 210, 193, 0.035);
}

.earnings-macro-label-short {
  display: none;
}

.earnings-macro-release {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 2px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.earnings-macro-release strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e8eef4;
  font-size: 12px;
}

.earnings-macro-release strong > .earnings-macro-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--earn-warm);
}

.earnings-macro-event-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-macro-date {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.earnings-macro-date strong,
.earnings-macro-date small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-macro-date strong {
  color: #dbe4eb;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.earnings-macro-date small {
  color: #718394;
  font-size: 9px;
}

.earnings-macro-event-code,
.earnings-macro-mobile-timing,
.earnings-macro-release em {
  display: none;
}

.earnings-macro-release small,
.earnings-macro-release em {
  display: block;
  overflow: hidden;
  color: #718394;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-macro-release .earnings-macro-mobile-timing,
.earnings-macro-release em {
  display: none;
}

.earnings-macro-release:hover strong,
.earnings-macro-release:focus-visible strong {
  color: var(--earn-warm);
}

.earnings-macro-release:focus-visible {
  outline: 1px solid var(--earn-warm);
  outline-offset: 2px;
}

.earnings-macro-value {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: right;
}

.earnings-macro-value strong,
.earnings-macro-value small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-macro-value strong {
  color: #becbd5;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.earnings-macro-value small {
  color: #657687;
  font-size: 8px;
}

.earnings-macro-value.is-actual strong {
  color: var(--earn-accent);
}

.earnings-macro-value.is-pending strong {
  color: #526272;
  font-weight: 500;
}

@media (max-width: 640px) {
  .earnings-macro-table th,
  .earnings-macro-table td {
    padding-right: 5px;
    padding-left: 5px;
  }

  .earnings-macro-table th:nth-child(1),
  .earnings-macro-table td:nth-child(1) {
    display: none;
  }

  .earnings-macro-table th:nth-child(2) { width: 52%; }
  .earnings-macro-table th:nth-child(n + 3) { width: 16%; }

  .earnings-macro-label-full { display: none; }
  .earnings-macro-label-short { display: inline; }

  .earnings-macro-event-name,
  .earnings-macro-release .earnings-macro-event-context {
    display: none;
  }

  .earnings-macro-event-code,
  .earnings-macro-release .earnings-macro-mobile-timing,
  .earnings-macro-release em {
    display: block;
  }

  .earnings-macro-release strong {
    font-size: 11px;
  }
}

.earnings-report-count {
  color: var(--earn-muted) !important;
  text-align: right !important;
}

.earnings-month-section {
  min-width: 0;
}

.earnings-month-section > .earnings-data-head {
  min-height: 46px;
}

.earnings-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  padding-top: 16px;
}

.earnings-month {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--earn-line);
  border-radius: 8px;
  background: #070c12;
}

.earnings-month > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--earn-line);
  padding: 0 16px;
  background: #0b1219;
}

.earnings-month > header h3 {
  margin: 0;
  color: var(--earn-text);
  font-size: 15px;
  font-weight: 720;
}

.earnings-month > header span {
  color: var(--earn-muted);
  font-size: 10px;
}

.earnings-calendar-weekdays,
.earnings-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.earnings-calendar-weekdays {
  min-height: 28px;
  border-bottom: 1px solid var(--earn-line-soft);
  color: #647587;
  background: #090f15;
  font-size: 9px;
  font-weight: 700;
}

.earnings-calendar-weekdays span {
  display: grid;
  place-items: center;
}

.earnings-calendar-day {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--earn-line-soft);
  border-bottom: 1px solid var(--earn-line-soft);
  padding: 7px 6px 5px;
  background: #070c12;
}

.earnings-calendar-grid {
  grid-auto-rows: 92px;
}

.earnings-calendar-day:nth-child(7n) {
  border-right: 0;
}

.earnings-calendar-day.is-empty {
  background: #05090e;
}

.earnings-calendar-day.is-weekend:not(.is-empty) {
  background: #090d12;
}

.earnings-calendar-day.has-events {
  background: #091219;
}

.earnings-calendar-day.has-events.is-weekend {
  background: #0a1117;
}

.earnings-calendar-day.is-today::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--earn-warm);
}

.earnings-calendar-number {
  display: block;
  margin-bottom: 5px;
  color: #728396;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.earnings-calendar-day.has-events .earnings-calendar-number {
  color: var(--earn-text);
  font-weight: 700;
}

.earnings-calendar-events {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.earnings-calendar-event {
  display: block;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  height: 18px;
  overflow: hidden;
  border: 0;
  border-left: 2px solid var(--earn-accent);
  border-radius: 2px;
  padding: 0 3px;
  color: #dce7ee;
  background: #10242a;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.earnings-calendar-event.is-reported {
  border-left-color: var(--earn-warm);
  background: #272113;
}

.earnings-calendar-event.is-macro {
  border-left-color: #f0c768;
  color: #f5d98f;
  background: #282113;
  cursor: default;
}

.earnings-calendar-event:hover,
.earnings-calendar-event:focus-visible {
  color: #ffffff;
  background: #153139;
  outline: none;
}

.earnings-calendar-event.is-macro:hover {
  color: #f5d98f;
  background: #282113;
}

.earnings-calendar-event img {
  display: none;
}

.earnings-calendar-event span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-calendar-more {
  position: absolute;
  right: 6px;
  bottom: 5px;
  min-width: 0;
  height: 15px;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  color: #8ea2b3;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  cursor: pointer;
}

.earnings-calendar-more span {
  margin-left: 2px;
  color: var(--earn-text);
  font-variant-numeric: tabular-nums;
}

.earnings-calendar-more:hover,
.earnings-calendar-more:focus-visible {
  border-bottom-color: var(--earn-accent);
  color: var(--earn-accent);
  outline: none;
}

.earnings-day-dialog {
  width: min(590px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  margin: auto;
  overflow: hidden;
  border: 1px solid #2a3a49;
  border-radius: 8px;
  padding: 0;
  color: var(--earn-text);
  background: #080e14;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.earnings-day-dialog::backdrop {
  background: rgba(2, 5, 8, 0.78);
}

.earnings-market-dialog {
  width: min(980px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  margin: auto;
  overflow: hidden;
  border: 1px solid #2a3a49;
  border-radius: 8px;
  padding: 0;
  color: var(--earn-text);
  background: #080e14;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.earnings-market-dialog::backdrop {
  background: rgba(2, 5, 8, 0.78);
}

.earnings-market-dialog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.8fr);
  max-height: calc(100vh - 26px);
  min-width: 0;
  overflow-y: auto;
  scrollbar-color: #2b3b4b transparent;
  scrollbar-width: thin;
}

.earnings-market-dialog-head,
.earnings-market-description {
  grid-column: 1 / -1;
}

.earnings-market-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--earn-row-line);
  padding: 17px 20px 15px;
  background: #0b1219;
}

.earnings-market-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.earnings-market-identity > img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: contain;
}

.earnings-market-identity > div {
  min-width: 0;
}

.earnings-market-identity span {
  display: block;
  overflow: hidden;
  color: #8293a3;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-market-identity h2 {
  margin: 2px 0 0;
  color: #f4f8fb;
  font-size: 20px;
  font-weight: 740;
  line-height: 1.15;
}

.earnings-market-identity p {
  margin: 3px 0 0;
  color: var(--earn-muted);
  font-size: 10px;
}

.earnings-market-dialog-head > button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #2a3947;
  border-radius: 6px;
  padding: 0 0 2px;
  color: #9aabba;
  background: #111a23;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.earnings-market-dialog-head > button:hover,
.earnings-market-dialog-head > button:focus-visible {
  border-color: #526678;
  color: #fff;
  outline: none;
}

.earnings-market-description {
  margin: 0;
  border-bottom: 1px solid var(--earn-row-line);
  padding: 12px 20px;
  color: #9eafbd;
  font-size: 11px;
  line-height: 1.55;
}

.earnings-market-chart-section,
.earnings-market-day-section {
  min-width: 0;
}

.earnings-market-chart-section {
  border-right: 1px solid var(--earn-row-line);
  padding: 14px 16px 16px 20px;
}

.earnings-market-chart-section > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  margin-bottom: 8px;
}

.earnings-market-chart-section h3,
.earnings-market-day-section h3 {
  margin: 0;
  color: #dce5ec;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.earnings-market-chart-section header span {
  display: block;
  margin-top: 2px;
  color: #718394;
  font-size: 9px;
}

.earnings-market-chart-section header > strong {
  color: #eff6fa;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.earnings-market-ranges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.earnings-market-ranges button {
  min-width: 31px;
  height: 26px;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 4px;
  color: #7f90a0;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.earnings-market-ranges button:hover,
.earnings-market-ranges button:focus-visible,
.earnings-market-ranges button[aria-pressed="true"] {
  border-bottom-color: var(--earn-accent);
  color: var(--earn-text);
  outline: none;
}

.earnings-market-chart-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: #070d12;
}

.earnings-market-chart {
  display: block;
}

#earningsMarketChart {
  display: block;
  width: 100%;
  height: 100%;
}

.earnings-market-day-section {
  padding: 14px 20px 16px 16px;
}

.earnings-market-day-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 8px;
}

.earnings-market-day-section > header span {
  color: #718394;
  font-size: 9px;
}

.earnings-market-day-events {
  max-height: 270px;
  overflow-y: auto;
  scrollbar-color: #2b3b4b transparent;
  scrollbar-width: thin;
}

.earnings-market-day-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 43px;
  border: 0;
  border-bottom: 1px solid var(--earn-row-line);
  padding: 5px 2px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.earnings-market-day-row:hover,
.earnings-market-day-row:focus-visible,
.earnings-market-day-row.is-current {
  background: #0d171e;
  outline: none;
}

.earnings-market-day-row img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: contain;
}

.earnings-market-day-row > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.earnings-market-day-row strong {
  overflow: hidden;
  color: #dce5ec;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-market-day-row small {
  overflow: hidden;
  color: #748697;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-market-day-row > time {
  color: #91a2b1;
  font-size: 9px;
  white-space: nowrap;
}

.earnings-market-day-empty {
  display: grid;
  min-height: 110px;
  place-items: center;
  color: #718394;
  font-size: 10px;
  text-align: center;
}

.earnings-day-dialog-shell {
  min-width: 0;
}

.earnings-day-dialog-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--earn-line);
  padding: 18px 20px 16px;
  background: #0b1219;
}

.earnings-day-dialog-shell > header > div {
  min-width: 0;
}

.earnings-day-dialog-shell > header span {
  display: block;
  margin-bottom: 5px;
  color: #718394;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.earnings-day-dialog-shell > header h2 {
  margin: 0;
  color: #f3f7fa;
  font-size: 18px;
  font-weight: 730;
  line-height: 1.2;
}

.earnings-day-dialog-shell > header p {
  margin: 6px 0 0;
  color: var(--earn-muted);
  font-size: 11px;
}

.earnings-day-dialog-shell > header button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #2a3947;
  border-radius: 6px;
  padding: 0 0 2px;
  color: #9aabba;
  background: #111a23;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.earnings-day-dialog-shell > header button:hover,
.earnings-day-dialog-shell > header button:focus-visible {
  border-color: #526678;
  color: #ffffff;
  outline: none;
}

.earnings-day-dialog-list {
  max-height: min(610px, calc(100vh - 130px));
  overflow-y: auto;
  padding: 4px 20px 16px;
  scrollbar-color: #2b3b4b transparent;
  scrollbar-width: thin;
}

.earnings-day-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid var(--earn-line-soft);
}

.earnings-day-group > header h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #9eafbd;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.earnings-day-group > header h3 span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--earn-accent);
}

.earnings-day-group.is-macro > header h3 span {
  background: #f0c768;
}

.earnings-day-group > header strong {
  color: #718394;
  font-size: 10px;
  font-weight: 700;
}

.earnings-day-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(112px, auto);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--earn-line-soft);
  padding: 8px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

button.earnings-day-row {
  cursor: pointer;
}

button.earnings-day-row:hover,
button.earnings-day-row:focus-visible {
  background: #0d171e;
  outline: none;
}

.earnings-day-row > img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}

.earnings-day-macro-mark {
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: #f0c768;
  box-shadow: 0 0 0 4px rgba(240, 199, 104, 0.09);
}

.earnings-day-primary,
.earnings-day-secondary {
  display: block;
  min-width: 0;
}

.earnings-day-primary strong,
.earnings-day-primary small,
.earnings-day-secondary strong,
.earnings-day-secondary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-day-primary strong {
  color: #edf4f7;
  font-size: 12px;
}

.earnings-day-primary small,
.earnings-day-secondary small {
  margin-top: 3px;
  color: #718394;
  font-size: 10px;
}

.earnings-day-secondary {
  text-align: right;
}

.earnings-day-secondary strong {
  color: #b7c4ce;
  font-size: 10px;
  font-weight: 700;
}

.earnings-day-row.is-macro .earnings-day-primary strong,
.earnings-day-row.is-macro .earnings-day-secondary strong {
  color: #f0d58f;
}

.earnings-day-dialog-empty {
  padding: 38px 0;
  color: var(--earn-muted);
  font-size: 12px;
  text-align: center;
}

.earnings-empty {
  height: 110px !important;
  color: var(--earn-muted) !important;
  text-align: center !important;
}

.earnings-morebar {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--earn-line);
  padding: 10px;
}

.earnings-morebar button {
  border: 0;
  padding: 4px 8px;
  color: var(--earn-accent);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.earnings-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--earn-line);
  padding: 14px 0 18px;
  color: #647486;
  font-size: 10px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .earnings-macro-table-wrap {
    max-height: 460px;
  }
}

@media (max-width: 900px) {
  .earnings-page {
    padding-inline: 14px;
  }

  .earnings-shell {
    width: 100%;
  }

  .earnings-main {
    padding-top: 20px;
  }

  .earnings-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .earnings-intro p {
    font-size: 12px;
  }

  .earnings-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 4px;
  }

  .earnings-search {
    width: min(420px, 100%);
    min-height: 42px;
  }

  .earnings-view-tabs {
    margin-left: 0;
    min-height: 42px;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }

  .earnings-meta {
    overflow-x: auto;
  }

  .earnings-table-wrap {
    max-height: calc(100vh - 340px);
  }

  .earnings-months {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .earnings-market-dialog-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .earnings-market-dialog-head,
  .earnings-market-description {
    grid-column: 1;
  }

  .earnings-market-chart-section {
    border-right: 0;
    border-bottom: 1px solid var(--earn-row-line);
    padding-right: 20px;
  }

  .earnings-market-day-section {
    padding-left: 20px;
  }

  .earnings-market-day-events {
    max-height: 220px;
  }

  .earnings-market-day-row {
    grid-template-columns: 24px minmax(0, 1fr) 72px;
  }

  .earnings-market-day-row > time {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
  }
}

@media (max-width: 560px) {
  .earnings-page {
    padding: 0 10px 10px;
  }

  .earnings-header {
    min-height: 52px;
  }

  .earnings-brand img {
    width: 27px;
    height: 27px;
  }

  .earnings-brand-divider {
    margin: 0 9px;
  }

  .earnings-product {
    font-size: 12px;
  }

  .earnings-back {
    font-size: 11px;
  }

  .earnings-intro h1 {
    font-size: 22px;
  }

  .earnings-intro p {
    font-size: 11px;
    line-height: 1.35;
  }

  .earnings-market-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .earnings-market-dialog-shell {
    max-height: calc(100vh - 14px);
  }

  .earnings-market-dialog-head {
    padding: 13px 14px 12px;
  }

  .earnings-market-description {
    padding: 10px 14px;
    font-size: 10px;
  }

  .earnings-market-chart-section,
  .earnings-market-day-section {
    padding: 12px 14px;
  }

  .earnings-market-chart-section > header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .earnings-market-ranges {
    grid-column: 1 / -1;
  }

  .earnings-market-chart-wrap {
    height: 220px;
  }

  .earnings-view-tabs {
    gap: 17px;
  }

  .earnings-view-tabs button {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .earnings-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 10px;
    min-height: 0;
    padding: 9px 0;
    overflow: visible;
    white-space: normal;
  }

  .earnings-meta > span {
    display: block;
    overflow: hidden;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .earnings-meta > span + span::before {
    display: none;
  }

  .earnings-meta #earningsRange {
    grid-column: 1 / -1;
  }

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

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

  .earnings-table th:nth-child(1) { width: 37%; }
  .earnings-table th:nth-child(2) { width: 40%; }
  .earnings-table th:nth-child(3) { width: 23%; }

  .earnings-table th:nth-child(n + 4),
  .earnings-table td:nth-child(n + 4) {
    display: none;
  }

  .earnings-data.is-history .earnings-table th:nth-child(1) { width: 28%; }
  .earnings-data.is-history .earnings-table th:nth-child(2) { width: 34%; }
  .earnings-data.is-history .earnings-table th:nth-child(4) { width: 17%; }
  .earnings-data.is-history .earnings-table th:nth-child(5) { width: 21%; }

  .earnings-data.is-history .earnings-table th:nth-child(3),
  .earnings-data.is-history .earnings-table td:nth-child(3),
  .earnings-data.is-history .earnings-table th:nth-child(n + 6),
  .earnings-data.is-history .earnings-table td:nth-child(n + 6) {
    display: none;
  }

  .earnings-data.is-history .earnings-table th:nth-child(4),
  .earnings-data.is-history .earnings-table td:nth-child(4),
  .earnings-data.is-history .earnings-table th:nth-child(5),
  .earnings-data.is-history .earnings-table td:nth-child(5) {
    display: table-cell;
  }

  .earnings-data.is-history .earnings-value small {
    display: none;
  }

  .earnings-data.is-history .earnings-table th,
  .earnings-data.is-history .earnings-table td {
    padding-right: 6px;
    padding-left: 6px;
  }

  .earnings-data.is-history .earnings-date strong,
  .earnings-data.is-history .earnings-company strong,
  .earnings-data.is-history .earnings-value strong {
    font-size: 10px;
  }

  .earnings-hip3-table th:nth-child(1) { width: 34%; }
  .earnings-hip3-table th:nth-child(2) { width: 39%; }
  .earnings-hip3-table th:nth-child(5) { width: 27%; }

  .earnings-hip3-table th:nth-child(3),
  .earnings-hip3-table td:nth-child(3),
  .earnings-hip3-table th:nth-child(4),
  .earnings-hip3-table td:nth-child(4),
  .earnings-hip3-table th:nth-child(n + 6),
  .earnings-hip3-table td:nth-child(n + 6) {
    display: none;
  }

  .earnings-hip3-table th:nth-child(5),
  .earnings-hip3-table td:nth-child(5) {
    display: table-cell;
  }

  .earnings-month-section > .earnings-data-head {
    align-items: flex-start;
    min-height: 58px;
    padding: 8px 0;
  }

  .earnings-calendar-head-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 6px;
  }

  .earnings-month > header {
    min-height: 48px;
    padding: 0 13px;
  }

  .earnings-calendar-grid {
    grid-auto-rows: 72px;
  }

  .earnings-day-dialog-shell > header {
    padding: 16px;
  }

  .earnings-day-dialog-list {
    padding: 4px 16px 14px;
  }

  .earnings-day-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
  }

  .earnings-day-secondary {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -5px;
    text-align: left;
  }

  .earnings-day-secondary small {
    margin-top: 0;
  }

  .earnings-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .earnings-calendar-grid {
    grid-auto-rows: 58px;
  }

  .earnings-calendar-day {
    padding: 6px 5px;
  }

  .earnings-calendar-number {
    margin-bottom: 8px;
  }

  .earnings-calendar-events {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .earnings-calendar-event {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: var(--earn-accent);
  }

  .earnings-calendar-event.is-reported {
    background: var(--earn-warm);
  }

  .earnings-calendar-event.is-macro,
  .earnings-calendar-event.is-macro:hover {
    background: #f0c768;
  }

  .earnings-calendar-event span,
  .earnings-calendar-event img {
    display: none;
  }

  .earnings-calendar-more {
    right: 5px;
    bottom: 3px;
    font-size: 8px;
  }
}
