
:root{
  --gold:#ffb31c;
  --ink:#232329;
  --bg:#f7f7f7;
  --line:#e9e9e9;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
}
.chart-shell{
  width:min(100%,760px);
  margin:0 auto;
  min-height:100vh;
  background:#fff;
}
.chart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 24px;
  border-bottom:1px solid var(--line);
  background:#fafafa;
  position:sticky;
  top:0;
  z-index:5;
}
.chart-logo{
  display:block;
  width:210px;
  max-width:62vw;
  height:auto;
}
.home-link{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #ddd;
  background:#fff;
  text-decoration:none;
  color:#222;
  font-size:25px;
}
.chart-main{padding:30px 24px 50px}
.chart-main h1{
  font-size:34px;
  line-height:1.2;
  margin:0 0 8px;
  text-align:center;
}
.chart-subtitle{
  margin:0 0 25px;
  text-align:center;
  color:#777;
  font-size:16px;
}
.market-select-wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  margin:0 auto 24px;
  max-width:520px;
}
.market-select-wrap label{
  font-size:14px;
  font-weight:700;
}
.market-select{
  width:100%;
  padding:13px 14px;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  font:inherit;
  font-size:16px;
  outline:none;
}
.market-select:focus{border-color:var(--gold)}
.chart-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  box-shadow:0 7px 20px rgba(0,0,0,.05);
  overflow:hidden;
}
.chart-table{
  width:100%;
  border-collapse:collapse;
}
.chart-table th{
  background:linear-gradient(180deg,#ffc82d,#ffad13);
  color:#222;
  font-size:15px;
  padding:12px 10px;
  text-align:center;
}
.chart-table td{
  padding:12px 9px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:15px;
}
.chart-table tbody tr:nth-child(even){background:#fffdf7}
.chart-empty,.chart-loading,.chart-error{
  padding:34px 20px;
  text-align:center;
  color:#777;
}
.chart-error{color:#b74a4a}
.chart-footer{
  text-align:center;
  padding:28px 20px;
  color:#777;
  font-size:13px;
}
.back-button{
  display:inline-block;
  margin-top:22px;
  padding:11px 18px;
  border-radius:999px;
  background:var(--gold);
  color:#222;
  text-decoration:none;
  font-weight:700;
}
@media(max-width:560px){
  .chart-header{padding:15px 18px}
  .chart-logo{width:185px}
  .home-link{width:44px;height:44px}
  .chart-main{padding:24px 15px 42px}
  .chart-main h1{font-size:28px}
  .chart-table th{font-size:12px;padding:10px 5px}
  .chart-table td{font-size:13px;padding:10px 5px}
}
