:root {
  --bg: #0b0e14;
  --panel: #141925;
  --panel-2: #1b2230;
  --line: #263043;
  --text: #e6ebf5;
  --muted: #8a97ad;
  --accent: #49cb56;
  --accent-2: #5b8cff;
  --warn: #f0b343;
  --neg: #ff5c5c;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #16203a 0%, var(--bg) 55%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
h1 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.src { font-size: 13px; color: var(--muted); text-align: right; }
.src span { display: block; }

.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 16px;
}
.hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.hero-number { font-family: var(--mono); font-size: 40px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.hero-number .unit { font-size: 18px; color: var(--muted); }
.hero-sub { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bar { height: 10px; background: #0c1119; border-radius: 999px; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: 999px; transition: width .6s ease; }
.hero-eta { border-left: 1px solid var(--line); padding-left: 20px; display: flex; flex-direction: column; justify-content: center; }
.eta-date { font-size: 26px; font-weight: 700; margin-top: 6px; }
.eta-range { font-size: 13px; margin-top: 6px; }
.disclaimer { font-size: 11.5px; margin-top: 10px; line-height: 1.45; border-top: 1px dashed var(--line); padding-top: 8px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card .k { font-size: 12px; color: var(--muted); }
.card .v { font-family: var(--mono); font-size: 20px; font-weight: 600; margin-top: 4px; }
.card .v.small { font-size: 16px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
h2 { font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.toggle button {
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; margin-left: 6px;
}
.toggle button.on { color: var(--text); border-color: var(--accent); background: #16321b; }
.chart-wrap { position: relative; height: 340px; margin-top: 12px; }
.note { font-size: 12.5px; margin: 12px 2px 0; }

table.rates { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
table.rates th, table.rates td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.rates th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
table.rates td { font-family: var(--mono); }
table.rates td:first-child, table.rates th:first-child { font-family: inherit; }
.pos { color: var(--accent); }
.neg { color: var(--neg); }

footer { margin-top: 26px; font-size: 12.5px; text-align: center; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-eta { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-number { font-size: 32px; }
}
