.economic-calendar-section {
  min-width: 0;
  margin-top: 18px;
  padding: 18px 0 10px;
  border-top: 1px solid var(--line);
  background: rgba(3, 6, 6, 0.92);
}

.economic-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.economic-calendar-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 19.13px;
  line-height: 1.2;
}

.economic-calendar-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.38px;
}

.economic-calendar-live {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(68, 209, 143, 0.55);
  border-radius: 3px;
  color: var(--green);
  background: rgba(68, 209, 143, 0.08);
  font-size: 11.25px;
  font-weight: 800;
}

.economic-calendar-frame {
  max-height: 510px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #050808;
  scrollbar-color: var(--line-strong) #050808;
  scrollbar-width: thin;
}

.economic-calendar-day h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #081010;
  font-size: 11.25px;
  font-weight: 800;
  text-transform: uppercase;
}

.economic-event-row {
  display: grid;
  grid-template-columns: 52px 44px 58px minmax(180px, 1fr) minmax(105px, auto);
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(88, 112, 111, 0.28);
  color: var(--text);
  font-size: 11.25px;
}

.economic-event-row:hover {
  background: rgba(125, 154, 151, 0.08);
}

.economic-event-row time,
.economic-event-values {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.economic-event-currency {
  font-weight: 820;
}

.economic-event-impact {
  font-size: 10.13px;
  font-weight: 850;
}

.economic-event-impact.high { color: var(--red); }
.economic-event-impact.medium { color: var(--yellow); }

.economic-calendar-empty {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 12.38px;
  text-align: center;
}

.economic-calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.economic-calendar-expand {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--green);
  background: #050808;
  font-size: 11.25px;
  font-weight: 850;
  cursor: pointer;
}

.economic-calendar-expand:hover {
  border-color: var(--green);
}

.economic-calendar-source {
  color: var(--muted);
  font-size: 10.13px;
}

.economic-calendar-source a {
  color: var(--blue);
  text-decoration: none;
}

@media (max-width: 720px) {
  .economic-event-row {
    grid-template-columns: 46px 38px 54px minmax(120px, 1fr);
  }

  .economic-event-values {
    grid-column: 4;
  }
}
