body {
  margin: 0;
  color: #1f2933;
  background: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}
.narrow {
  max-width: 720px;
}
.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}
.description {
  max-width: 760px;
  margin: 0 0 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}
.meta {
  margin: 0;
  color: #64748b;
}
a {
  color: #0f5e9c;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.links a,
.topbar nav a {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
}
.table-shell {
  margin-top: 22px;
  overflow: auto;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
}
.archive table {
  min-width: 560px;
  table-layout: fixed;
}
.archive {
  max-width: 900px;
}
.archive-date {
  width: 26%;
}
.archive-count {
  width: 17%;
}
.archive-ratio {
  width: 40%;
}
th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #e6edf3;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
.archive th,
.archive td {
  text-align: center;
}
.temperature-legend {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
  margin-top: 14px;
}
.temperature-title {
  padding-top: 20px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.temperature-key {
  flex: 1;
  min-width: 360px;
}
.temperature-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
  color: #52606d;
  font-size: 12px;
}
.temperature-labels span:nth-child(2) {
  text-align: center;
}
.temperature-labels span:last-child {
  text-align: right;
}
.temperature-scale {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 25%, #eab308 50%, #f97316 75%, #dc2626 100%);
  box-shadow: inset 0 0 0 1px rgb(15 23 42 / 12%);
}
.sentiment-chart {
  display: block;
  width: 100%;
  height: 82px;
  margin-top: 8px;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}
.ratio-temperature {
  display: inline-block;
  min-width: 54px;
  padding: 5px 9px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgb(15 23 42 / 10%);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.ratio-empty {
  color: #8a94a3;
}
@media (max-width: 640px) {
  .temperature-legend {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }
  .temperature-title {
    padding-top: 0;
  }
  .temperature-key {
    min-width: 0;
  }
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #334155;
  background: #eef3f8;
}
#stock-table th {
  cursor: pointer;
  user-select: none;
}
#stock-table th::after {
  content: " ↕";
  color: #8796a8;
  font-size: 11px;
}
#stock-table td:nth-child(1),
#stock-table td:nth-child(4),
#stock-table td:nth-child(5),
#stock-table td:nth-child(6),
#stock-table td:nth-child(7),
#stock-table td:nth-child(8),
#stock-table td:nth-child(9),
#stock-table td:nth-child(13) {
  text-align: right;
}
tbody tr:hover {
  background: #f8fafc;
}
@media (max-width: 720px) {
  .wrap {
    padding: 18px;
  }
  .topbar {
    align-items: start;
    flex-direction: column;
  }
}
