*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f3;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 32px 24px 56px;
  line-height: 1.55;
}
.page { max-width: 1100px; margin: 0 auto; }

a { color: #185FA5; text-decoration: none; }
a:hover { text-decoration: underline; }

.header { margin-bottom: 24px; }
.header h1 { font-size: 24px; font-weight: 600; color: #111; margin-bottom: 4px; }
.header .sub { font-size: 13px; color: #888; }
.header .tag-row { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 4px;
  background: #eee; color: #555;
}
.tag.green { background: #e5f5ed; color: #1D9E75; }
.tag.red   { background: #fbe9e8; color: #c53532; }
.tag.blue  { background: #e5eff7; color: #185FA5; }
.tag.orange { background: #fbefe1; color: #c67814; }

nav.topnav {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px;
  background: #fff; border: 1px solid #e8e8e6; border-radius: 10px; padding: 6px;
}
nav.topnav a {
  padding: 8px 14px; border-radius: 6px; font-size: 13px; color: #555;
}
nav.topnav a:hover { background: #f0f0ee; text-decoration: none; }
nav.topnav a.active { background: #111; color: #fff; }

/* Exec summary */
.exec {
  background: #fff; border: 1px solid #e8e8e6; border-radius: 12px;
  padding: 24px 28px; margin-bottom: 20px;
}
.exec h2 {
  font-size: 13px; font-weight: 600; color: #999; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.exec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.exec-item { padding: 14px 16px; background: #fafaf8; border-radius: 8px; border-left: 3px solid #ddd; }
.exec-item.good { border-left-color: #1D9E75; }
.exec-item.warn { border-left-color: #c67814; }
.exec-item.bad  { border-left-color: #E24B4A; }
.exec-item.mix  { border-left-color: #185FA5; }
.exec-item .k { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.exec-item .v { font-size: 14px; color: #1a1a1a; font-weight: 500; line-height: 1.5; }
.exec-item .v b { color: #111; font-weight: 600; }

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px;
}
.metric {
  background: #fff; border: 1px solid #e8e8e6; border-radius: 10px; padding: 14px 16px;
}
.metric .label { font-size: 11px; color: #999; margin-bottom: 5px; }
.metric .value { font-size: 22px; font-weight: 600; }
.metric .sub-val { font-size: 11.5px; font-weight: 500; margin-top: 3px; }
.green { color: #1D9E75; }
.red   { color: #E24B4A; }
.blue  { color: #185FA5; }
.orange { color: #c67814; }
.gray  { color: #444; }

/* Cards */
.card {
  background: #fff; border: 1px solid #e8e8e6; border-radius: 12px;
  padding: 24px 28px; margin-bottom: 20px;
}
.card h3 {
  font-size: 16px; font-weight: 600; color: #111; margin-bottom: 14px;
}
.card h3 .chip {
  font-size: 10.5px; padding: 2px 7px; border-radius: 4px;
  background: #eef; color: #444; margin-left: 8px; font-weight: 500;
  vertical-align: middle;
}
.card p, .card li { font-size: 13.5px; color: #333; line-height: 1.65; }
.card ul, .card ol { padding-left: 20px; margin: 8px 0; }
.card li { margin-bottom: 4px; }

.chart-wrap { height: 320px; margin: 14px 0; }
.chart-wrap.tall { height: 400px; }

/* Tables */
table.data {
  width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 10px 0 14px;
}
table.data th, table.data td {
  border-bottom: 1px solid #ececea; padding: 8px 10px; text-align: right;
}
table.data th {
  background: #fafaf8; color: #555; font-weight: 500; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
table.data th:first-child, table.data td:first-child {
  text-align: left;
}
table.data tr.hl { background: #fafdf5; font-weight: 600; }
table.data tr.hl td { color: #1D9E75; }

/* Quote */
.quote {
  border-left: 3px solid #185FA5;
  background: #f6f9fc;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 13px; font-style: italic; color: #333;
}
.quote .src { display: block; margin-top: 4px; font-size: 11.5px; font-style: normal; color: #888; }

/* Split grid */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0;
}
.split .subcard {
  background: #fafaf8; border-radius: 8px; padding: 14px 16px; border: 1px solid #eee;
}
.split .subcard h4 { font-size: 13px; font-weight: 600; color: #111; margin-bottom: 8px; }
.split .subcard p, .split .subcard li { font-size: 12.5px; color: #444; }

/* Broker comparison */
.broker-row {
  display: grid; grid-template-columns: 110px 1fr 1fr 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #eee; align-items: start; font-size: 12.5px;
}
.broker-row .lbl { color: #888; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.broker-head {
  font-weight: 600; color: #111; font-size: 13px; background: #fafaf8;
  padding: 10px; border-radius: 6px 6px 0 0;
}
.broker-tag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-left: 4px; }

/* Data discipline note */
.note {
  font-size: 11.5px; color: #888; background: #fafaf8;
  border-left: 2px solid #ccc; padding: 8px 12px; margin: 8px 0;
  border-radius: 0 4px 4px 0;
}

footer {
  font-size: 11px; color: #999; text-align: center; padding-top: 24px;
}

@media (max-width: 860px) {
  .exec-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .broker-row { grid-template-columns: 1fr; }
}
