* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ── */
nav {
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 48px;
  gap: 32px;
}

nav .brand {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

nav .links {
  display: flex;
  gap: 4px;
}

nav .links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  padding: 5px 12px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}

nav .links a:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

nav .links a.active {
  background: #1a1a1a;
  color: #fff;
}

/* ── Main content ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 32px;
}

.chart-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 120px);
}

canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* ── Index page ── */
.index-list {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.index-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  transition: color 0.15s;
}

.index-list a:first-child {
  border-top: 1px solid #eee;
}

.index-list a:hover {
  color: #555;
}

.index-list .label {
  font-size: 15px;
  font-weight: 500;
}

.index-list .desc {
  font-size: 13px;
  color: #aaa;
}

.index-list .arrow {
  font-size: 14px;
  color: #ccc;
  transition: color 0.15s;
}

.index-list a:hover .arrow {
  color: #888;
}
