.dashboard-page {
  color: var(--text);
}

.dashboard-live {
  padding: 18px 0 40px;
}

.dashboard-live .dashboard-shell {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(160deg, rgba(20, 42, 95, 0.94), rgba(15, 35, 79, 0.98));
  box-shadow: var(--shadow);
}

.dashboard-live .hero {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dashboard-live .eyebrow {
  margin: 0 0 10px;
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-live .hero .eyebrow {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-live h1,
.dashboard-live h2,
.dashboard-live h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
}

.dashboard-live h1 {
  max-width: 9ch;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.dashboard-live .page-title {
  max-width: 16ch;
  font-size: clamp(1.28rem, 1.98vw, 1.73rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.dashboard-live h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.02;
}

.dashboard-live h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.dashboard-live .hero-copy {
  max-width: 760px;
}

.dashboard-live .hero-copy p:not(.eyebrow),
.dashboard-live .chart-copy p:not(.eyebrow),
.dashboard-live .sector-head p:not(.eyebrow),
.dashboard-live .calendar-head p,
.dashboard-live .footer p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-live .sector-head .eyebrow {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-live .toolbar {
  min-width: min(280px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.dashboard-live .refresh {
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 12px;
  background: rgba(30, 64, 175, 0.92);
  color: #e5e7eb;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.dashboard-live .refresh:hover,
.dashboard-live .refresh:focus-visible {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.96);
  border-color: rgba(147, 197, 253, 0.4);
}

.dashboard-live .refresh:focus-visible,
.dashboard-live .chart-select:focus-visible {
  outline: 2px solid rgba(191, 219, 254, 0.72);
  outline-offset: 2px;
}

.dashboard-live .status {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: right;
  max-width: 28ch;
}

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

.dashboard-live .grid .card,
.dashboard-live .chart-panel,
.dashboard-live .sector-panel,
.dashboard-live .calendar-panel,
.dashboard-live .footer {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  backdrop-filter: none;
}

.dashboard-live .grid .card {
  position: relative;
  overflow: hidden;
  min-height: 192px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.dashboard-live .grid .card::after {
  display: none;
}

.dashboard-live .card-label,
.dashboard-live .chart-controls label,
.dashboard-live .chart-stat-label,
.dashboard-live .sector-overview-label,
.dashboard-live .calendar-month,
.dashboard-live .calendar-time,
.dashboard-live .calendar-source {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-live .card-value {
  margin: 12px 0 6px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.dashboard-live .card-value.good,
.dashboard-live .delta-value.good,
.dashboard-live .chart-stat-value.good {
  color: #34d399;
}

.dashboard-live .card-value.bad,
.dashboard-live .delta-value.bad,
.dashboard-live .chart-stat-value.bad {
  color: #f87171;
}

.dashboard-live .card-value.flat,
.dashboard-live .delta-value.flat,
.dashboard-live .chart-stat-value.flat {
  color: #e5e7eb;
}

.dashboard-live .card-meta,
.dashboard-live .delta-name,
.dashboard-live .chart-copy p:not(.eyebrow),
.dashboard-live .sector-overview-meta,
.dashboard-live .calendar-desc {
  color: var(--muted);
}

.dashboard-live .delta-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-live .delta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-live .delta-value,
.dashboard-live .sector-value {
  font-weight: 700;
}

.dashboard-live #policyRateLastDecision,
.dashboard-live #policyRateNextDecision {
  font-size: 0.84rem;
  font-weight: 400;
  white-space: nowrap;
}

.dashboard-live .chart-panel,
.dashboard-live .sector-panel,
.dashboard-live .calendar-panel,
.dashboard-live .footer {
  padding: 18px;
}

.dashboard-live .chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-live .chart-copy {
  display: grid;
  gap: 18px;
}

.dashboard-live .chart-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: min(300px, 100%);
  align-items: flex-start;
}

.dashboard-live .chart-select {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
}

.dashboard-live .chart-select option {
  background: #f8fafc;
  color: #0f172a;
}

.dashboard-live .chart-copy h2 {
  margin-top: 2px;
}

.dashboard-live #chartMeta {
  margin-top: 0;
}

.dashboard-live .chart-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.dashboard-live .chart-stat {
  min-width: 112px;
}

.dashboard-live .chart-stat-value,
.dashboard-live .sector-overview-value,
.dashboard-live .calendar-day {
  margin: 0;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.dashboard-live .chart-stat-value {
  font-size: 1.4rem;
}

.dashboard-live .chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(30, 58, 138, 0.12), rgba(10, 27, 67, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.dashboard-live .chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.dashboard-live .chart-tooltip {
  position: absolute;
  min-width: 110px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  background: rgba(6, 19, 48, 0.96);
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.28);
  opacity: 0;
  transition: opacity 120ms ease;
}

.dashboard-live .chart-tooltip.is-visible {
  opacity: 1;
}

.dashboard-live .chart-tooltip.is-below {
  transform: translate(-50%, 14px);
}

.dashboard-live .chart-tooltip-date {
  margin: 0 0 4px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.dashboard-live .chart-tooltip-value {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.dashboard-live .sector-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dashboard-live .sector-overview-card,
.dashboard-live .sector-row,
.dashboard-live .calendar-item,
.dashboard-live .calendar-empty {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-live .sector-overview-card {
  padding: 14px 16px;
}

.dashboard-live .sector-overview-value {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-live .sector-list,
.dashboard-live .calendar-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-live .sector-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr 96px;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
}

.dashboard-live .sector-name,
.dashboard-live .calendar-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.dashboard-live .sector-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(249, 115, 22, 0.12) 0 50%,
    rgba(52, 211, 153, 0.12) 50% 100%
  );
  overflow: hidden;
}

.dashboard-live .sector-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(148, 163, 184, 0.22);
}

.dashboard-live .sector-fill {
  position: absolute;
  top: 1px;
  height: 10px;
  border-radius: 999px;
}

.dashboard-live .sector-fill.positive {
  left: 50%;
  background: #34d399;
}

.dashboard-live .sector-fill.negative {
  right: 50%;
  background: #f97316;
}

.dashboard-live .calendar-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 12px;
}

.dashboard-live .calendar-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-right: 6px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-live .calendar-day {
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-live .calendar-empty {
  padding: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-live .calendar-source,
.dashboard-live .footer a {
  color: #bfdbfe;
}

.dashboard-live .footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-live .footer p {
  margin: 0;
  font-size: 0.9rem;
}

.dashboard-live .footer a {
  text-decoration: none;
  font-weight: 700;
}

.dashboard-live .footer a:hover,
.dashboard-live .footer a:focus-visible {
  color: #eff6ff;
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .dashboard-live .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-live .hero,
  .dashboard-live .footer,
  .dashboard-live .chart-head {
    flex-direction: column;
  }

  .dashboard-live .toolbar {
    align-items: flex-start;
  }

  .dashboard-live .status {
    text-align: left;
    max-width: none;
  }

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

  .dashboard-live .chart-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .dashboard-live .dashboard-shell {
    padding: 16px;
  }

  .dashboard-live .grid,
  .dashboard-live .sector-overview {
    grid-template-columns: 1fr;
  }

  .dashboard-live .grid .card {
    min-height: auto;
  }

  .dashboard-live .chart-wrap {
    height: 260px;
  }

  .dashboard-live .calendar-item,
  .dashboard-live .sector-row {
    grid-template-columns: 1fr;
  }

  .dashboard-live .calendar-date {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding-right: 0;
    padding-bottom: 10px;
  }
}
