body { font-family: Arial, sans-serif; background: #fff; color: #222; margin: 0; padding: 0; line-height: 1.65; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
header { background: #f4f4f4; border-bottom: 1px solid #ccc; position: sticky; top: 0; z-index: 10; }
.head { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.logo { font-size: 22px; font-weight: bold; color: #222; text-decoration: none; }
nav a { color: #333; text-decoration: none; margin-left: 18px; font-size: 15px; padding: 6px 4px; }
nav a.on { font-weight: bold; border-bottom: 2px solid #333; }
main { padding-top: 20px; padding-bottom: 30px; min-height: 60vh; }
h2 { font-size: 20px; margin: 0 0 16px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
.toolbar input, .toolbar select { padding: 9px 11px; font-size: 14px; border: 1px solid #999; border-radius: 6px; }
.toolbar input { flex: 1; min-width: 180px; }
button { background: #eee; border: 1px solid #999; border-radius: 6px; padding: 9px 16px; font-size: 14px; cursor: pointer; }
button:hover { background: #e2e2e2; }
button.on { background: #ddd; font-weight: bold; }
button:disabled { opacity: .5; cursor: default; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid td.nm { white-space: normal; min-width: 170px; max-width: 260px; }
table.grid th, table.grid td { border: 1px solid #ddd; padding: 11px 13px; text-align: right; white-space: nowrap; }
table.grid th { background: #f4f4f4; cursor: pointer; user-select: none; }
table.grid th.l, table.grid td.l { text-align: left; }
table.grid th.c, table.grid td.c { text-align: center; }
table.grid tr:hover td { background: #fafafa; }
td.sym a { color: #1a0dab; text-decoration: none; font-weight: bold; }
td.sym a:hover { text-decoration: underline; }
.up { color: #0a7a3d; } .down { color: #c0392b; } .muted { color: #888; }
.star { cursor: pointer; font-size: 16px; color: #bbb; background: none; border: none; padding: 2px 6px; }
.star.on { color: #d4a017; }
.hint { color: #777; font-size: 13px; }
.err { color: #a00; }
.card { border: 1px solid #ccc; border-radius: 8px; padding: 18px 20px; margin: 16px 0; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { border: 1px solid #e0e0e0; border-radius: 6px; padding: 13px 14px; }
.stat .k { font-size: 12px; color: #777; }
.stat .v { font-size: 17px; font-weight: bold; margin-top: 2px; }
.bigprice { font-size: 30px; font-weight: bold; }
.ranges { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
canvas.chart { width: 100%; height: 320px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; }
.cmp { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
.cmp select { padding: 9px 11px; font-size: 14px; border: 1px solid #999; border-radius: 6px; max-width: 240px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin: 8px 0; }
.legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
footer { border-top: 1px solid #ddd; margin-top: 20px; padding-top: 12px; padding-bottom: 24px; }
footer p { color: #999; font-size: 12.5px; }
.skel td { color: #ccc; }
@media (max-width: 700px) {
  table.grid th, table.grid td { padding: 9px 8px; font-size: 12px; }
  .statgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
