:root {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --line: rgba(0, 0, 0, 0.09);
  --soft-line: rgba(0, 0, 0, 0.055);
  --blue: #0071e3;
  --blue-soft: #edf6ff;
  --green: #187a3d;
  --green-soft: #edf8f0;
  --red: #c9343f;
  --red-soft: #fff0f1;
  --purple: #76528f;
  --purple-soft: #f6f0fa;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: 1180px; padding: 44px 28px 72px; }
.report-header { margin-bottom: 28px; }
.report-header .brand { margin-bottom: 18px; }
.brand-logo { border-radius: 7px; }
.brand-name { color: var(--secondary); font-family: inherit; font-size: 13px; }
.overline { color: var(--tertiary); font-family: inherit; font-size: 11px; font-weight: 600; }
.report-header h1 { margin-bottom: 8px; font-size: 30px; font-weight: 650; letter-spacing: -0.035em; }
.report-header .dek { max-width: 720px; color: var(--secondary); font-size: 15px; line-height: 1.55; }

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.summary div {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}
.summary span { display: block; margin-bottom: 8px; color: var(--secondary); font-size: 12px; font-weight: 600; }
.summary strong { display: block; font-family: inherit; font-size: clamp(17px, 2.1vw, 22px); font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -0.025em; }

.sheet-section + .sheet-section { margin-top: 44px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.section-heading p { margin: 6px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.45; }
.section-heading > span { flex: 0 0 auto; color: var(--tertiary); font-family: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.key { display: inline-block; margin-right: 10px; font-weight: 550; }
.key::before { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; content: ""; vertical-align: 1px; }
.key-up::before { background: var(--green); }
.key-down::before { background: var(--red); }

.table-scroll {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.table-scroll:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.4); outline-offset: 3px; }
table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
tbody tr:last-child > * { border-bottom: 0; }
thead th {
  height: 52px;
  background: #f7f7f9;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-align: center;
}
thead .h-rank { width: 58px; }
thead .h-model { width: 170px; text-align: left; }
thead .h-date { width: 120px; }
thead .h-prior, thead .h-current, thead .h-dollar { width: 145px; text-align: right; }
thead .h-percent { width: 125px; text-align: center; }
tbody td, tbody th { height: 54px; font-family: inherit; font-size: 13px; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
tbody th { font-family: inherit; font-weight: 600; text-align: left; }
tbody td:first-child { color: var(--tertiary); text-align: center; }
tbody td:nth-child(3) { color: var(--secondary); text-align: center; }
tbody td:nth-child(4), tbody td:nth-child(5), tbody td:nth-child(6) { text-align: right; }
tbody td:nth-child(7) { text-align: center; }
tbody tr { transition: background-color 120ms ease; }
tbody tr:hover { background: #fafcff; }
.change { font-weight: 700; }
.change::before { margin-right: 4px; }
.change.up { background: var(--green-soft); color: var(--green); }
.change.up::before { content: "↑"; }
.change.down { background: var(--red-soft); color: var(--red); }
.change.down::before { content: "↓"; }
.change.new { background: var(--purple-soft); color: var(--purple); }
.up { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--secondary); }
.new { color: var(--purple); }
.footnote { margin: 10px 2px 0; color: var(--tertiary); font-size: 12px; line-height: 1.45; }

@media (max-width: 760px) {
  .wrap { padding: 26px 14px 50px; }
  .report-header { margin-bottom: 22px; }
  .report-header h1 { font-size: 26px; }
  .report-header .dek { font-size: 14px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 34px; }
  .summary div { padding: 14px; border-radius: 13px; }
  .summary span { margin-bottom: 6px; font-size: 11px; }
  .summary strong { font-size: clamp(15px, 4.5vw, 18px); }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 17px; }
  .key { display: block; margin: 3px 0 0; }
  .table-scroll { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  table { display: block; min-width: 0; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tbody tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
  }
  tbody tr:hover { background: var(--surface); }
  tbody tr > * { min-width: 0; height: auto; padding: 10px 13px; border: 0; }
  tbody tr > td:first-child {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
  }
  tbody tr > th[scope="row"] {
    grid-column: 2;
    grid-row: 1;
    padding: 13px 14px;
    background: #f7f7f9;
    font-size: 15px;
    text-align: left;
  }
  tbody tr > td:nth-child(n+3) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 9px 13px;
    border-top: 1px solid var(--soft-line);
    background: var(--surface);
    text-align: right;
  }
  tbody tr > td:nth-child(n+3)::before {
    color: var(--secondary);
    font-family: inherit;
    font-size: 11px;
    font-weight: 550;
    text-align: left;
  }
  tbody tr > td:nth-child(3)::before { content: "Signed"; }
  tbody tr > td:nth-child(4)::before { content: "Before signing"; }
  tbody tr > td:nth-child(5)::before { content: "Latest 30 days"; }
  tbody tr > td:nth-child(6)::before { content: "Gain or loss"; }
  tbody tr > td:nth-child(7)::before { content: "Change"; }
  tbody tr > td:nth-child(7).change::before { content: "Change"; margin-right: 0; }
  tbody tr > td:nth-child(7).up { background: var(--green-soft); }
  tbody tr > td:nth-child(7).down { background: var(--red-soft); }
  tbody tr > td:nth-child(7).new { background: var(--purple-soft); }
  .sheet-section + .sheet-section { margin-top: 36px; }
}

@media (max-width: 460px) {
  .section-heading { display: block; }
  .section-heading > span { display: block; margin-top: 7px; }
  .summary strong { letter-spacing: -0.045em; }
}

@media (prefers-reduced-motion: reduce) {
  tbody tr { transition: none; }
}
