:root {
  --bg: #f6f7f4;
  --paper: #ffffff;
  --ink: #202528;
  --muted: #657174;
  --line: #dce3df;
  --teal: #216a72;
  --coral: #c85f47;
  --green: #4f7f54;
  --gold: #b48622;
  --soft: #edf5f6;
  --shadow: 0 8px 24px rgba(32, 37, 40, .07);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.page { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 72px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.brand strong { font-size: 1.05rem; }
.brand span, .muted { color: var(--muted); }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top-return {
  color: var(--teal);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  border: 1px solid rgba(33, 106, 114, .25);
  border-radius: 999px;
  padding: 8px 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 37, 40, .06);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.top-return:hover {
  border-color: var(--teal);
  background: var(--soft);
  transform: translateY(-1px);
}
.hero, .graph-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero { padding: clamp(24px, 5vw, 52px); margin-bottom: 16px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: .78rem; font-weight: 800; }
h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 5.4vw, 4.4rem); line-height: 1.06; letter-spacing: 0; }
h2 { margin: 0 0 12px; font-size: clamp(1.25rem, 2.5vw, 1.85rem); line-height: 1.25; }
.lead { color: var(--muted); font-size: 1.04rem; max-width: 760px; }
.graph-list { display: grid; gap: 18px; }
.graph-card { padding: clamp(18px, 3vw, 30px); overflow: hidden; }
.graph-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.graph-head-solo { grid-template-columns: 1fr; }
.takeaway { background: var(--soft); border-radius: 8px; padding: 12px; color: #174b51; font-weight: 800; }
.chart { width: 100%; overflow-x: hidden; }
.chart svg { width: 100%; min-width: 0; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.heatmap { overflow-x: hidden; }
.heat-row { display: grid; grid-template-columns: 150px repeat(10, 74px); gap: 6px; margin-bottom: 6px; width: max-content; min-width: 100%; }
.heat-label, .heat-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 54px;
  padding: 7px;
  background: #fff;
  display: grid;
  align-content: center;
  overflow: hidden;
}
.heat-label { font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.heat-cell { text-align: center; color: #102a2e; }
.heat-cell-empty { background: #f1f3f2; color: transparent; }
.heat-cell strong { font-size: .88rem; }
.heat-cell span { font-size: .72rem; opacity: .72; }
@media (max-width: 900px) {
  .graph-head { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .page { width: min(100% - 18px, 1180px); padding-top: 14px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .top-actions { justify-content: flex-start; }
  .heat-row { grid-template-columns: 76px repeat(10, minmax(0, 1fr)); gap: 2px; width: 100%; }
  .heat-label, .heat-cell { min-height: 32px; padding: 3px; border-radius: 5px; font-size: .58rem; }
  .heat-cell strong { font-size: .58rem; }
  .heat-cell span { display: none; }
  .takeaway { font-size: .84rem; padding: 9px; }
}
