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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  background: #0d1117;
  color: #c9d1d9;
  font-size: 14px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  margin-bottom: 20px;
}

h1 {
  font-size: 24px;
  color: #f0f6fc;
}

.subtitle {
  color: #8b949e;
  font-size: 14px;
  margin-top: 4px;
}

.updated {
  color: #8b949e;
  font-size: 12px;
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

thead th {
  background: #161b22;
  color: #8b949e;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #30363d;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
}

thead th.num {
  text-align: right;
}

thead th:hover {
  color: #f0f6fc;
}

thead th.sorted-asc::after { content: " \25B2"; }
thead th.sorted-desc::after { content: " \25BC"; }

tbody tr {
  border-bottom: 1px solid #21262d;
}

tbody tr:hover {
  background: #161b22;
}

td {
  padding: 8px 12px;
}

td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.ticker {
  font-weight: 700;
  color: #58a6ff;
}

/* Stress color classes */
.neg { color: #f85149; }
.pos { color: #3fb950; }
.warn { color: #d29922; }
.stress-bg { background: rgba(248, 81, 73, 0.15); }
.div-cut { color: #f85149; font-weight: 600; }
.na { color: #484f58; }

td.notes {
  font-size: 11px;
  color: #8b949e;
  white-space: normal;
  max-width: 350px;
  line-height: 1.4;
}

th.notes-col {
  min-width: 200px;
}

footer {
  margin-top: 24px;
  color: #484f58;
  font-size: 11px;
}
