:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #16202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 246, 248, 0.94)),
    url("https://images.unsplash.com/photo-1542051841857-5f90071e7989?auto=format&fit=crop&w=2200&q=80") center/cover fixed;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.section-head,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  min-height: 92px;
}

.eyebrow,
.symbol {
  margin: 0 0 6px;
  color: #5f6f80;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 3.6rem);
  line-height: 1.08;
}

h2 {
  font-size: 1.15rem;
}

.market-clock {
  min-width: 176px;
  padding: 14px 16px;
  border: 1px solid rgba(35, 49, 64, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(30, 43, 55, 0.08);
  text-align: right;
  backdrop-filter: blur(12px);
}

.clock-label {
  display: block;
  margin-bottom: 4px;
  color: #657487;
  font-size: 0.78rem;
  font-weight: 700;
}

.market-clock strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.ticker-band,
.quote-panel,
.main-chart {
  border: 1px solid rgba(35, 49, 64, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(30, 43, 55, 0.1);
  backdrop-filter: blur(14px);
}

.ticker-band {
  min-height: 78px;
  margin: 16px 0 20px;
  overflow: hidden;
}

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

.quote-panel {
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 18px 18px 10px;
}

.panel-head span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(35, 49, 64, 0.12);
  border-radius: 999px;
  background: #eff4f3;
  color: #20453f;
  font-size: 0.78rem;
  font-weight: 800;
}

.widget-frame {
  height: 360px;
  padding: 0 8px 8px;
}

.main-chart {
  margin-top: 20px;
  padding: 18px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head span,
.footer span {
  color: #5f6f80;
  font-size: 0.88rem;
}

.chart-frame {
  height: min(620px, 68vh);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(35, 49, 64, 0.1);
  border-radius: 8px;
  background: #fff;
}

.tradingview-widget-container,
.tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.footer {
  padding: 18px 2px 0;
}

button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(18, 31, 43, 0.22);
  border-radius: 8px;
  background: #16202a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #263544;
}

@media (max-width: 1040px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .widget-frame {
    height: 330px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 16px;
  }

  .topbar,
  .section-head,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .market-clock {
    width: 100%;
    text-align: left;
  }

  .chart-frame {
    min-height: 420px;
  }

  button {
    width: 100%;
  }
}
