.performance-page {
  min-height: 100vh;
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

.report-breadcrumb {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.report-breadcrumb a { color: var(--text-muted); }
.report-breadcrumb a:hover { color: var(--gold); }

.performance-index-hero {
  padding: 7rem 0 5.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 90% at 25% 0%, rgba(201, 168, 76, 0.09), transparent 62%),
    var(--bg);
}

.performance-index-hero h1 {
  max-width: 780px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.performance-index-hero h1 em {
  color: var(--gold);
  font-weight: 400;
}

.performance-index-hero > .container > p:last-child {
  max-width: 650px;
  margin-top: 1.8rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.performance-directory { padding: 5rem 0 6rem; }

.performance-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.performance-legend > div {
  position: relative;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}

.performance-legend > div:last-child { border-right: 0; }

.performance-legend strong {
  display: block;
  margin-left: 1.1rem;
  font-size: 0.82rem;
}

.performance-legend p {
  margin: 0.45rem 0 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.55;
}

.legend-mark {
  position: absolute;
  top: 1.72rem;
  left: 1.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-mark.historical { background: var(--gold); }
.legend-mark.live { background: var(--green); }
.legend-mark.explorer { background: #7ea7ff; }

.systems-header {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.systems-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
}

.systems-header > p {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
  text-align: right;
}

.system-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background:
    radial-gradient(ellipse 55% 150% at 100% 50%, rgba(201, 168, 76, 0.08), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
}

.system-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.system-card-meta span,
.report-types span {
  padding: 0.3rem 0.55rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-card-meta .system-status {
  color: var(--green);
  background: var(--green-dim);
  border-color: rgba(61, 214, 140, 0.2);
}

.system-card h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.system-card-copy > p {
  max-width: 680px;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.report-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
}

.report-types span { color: var(--gold); border-color: var(--border-gold); }
.report-types span.pending { color: var(--text-dim); border-color: var(--border); }

.system-card-action {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  text-align: center;
}

.system-price {
  color: var(--text);
  font-family: var(--serif);
  font-size: 2.2rem;
}

.system-price small {
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
}

.system-request {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.system-request:hover { color: var(--gold); }

.future-system {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1.5fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.future-system span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.future-system strong { color: var(--text-muted); font-size: 0.85rem; }
.future-system p { font-size: 0.75rem; }

.performance-standards {
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.standards-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
}

.standards-grid h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}

.standards-grid > div:last-child {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.standards-grid p + p { margin-top: 1rem; }

.report-hero {
  padding: 6.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 15% 0%, rgba(201, 168, 76, 0.09), transparent 62%),
    var(--bg);
}

.report-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 4rem;
  align-items: end;
}

.report-hero h1 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.report-hero h1 em {
  display: block;
  color: var(--gold);
  font-weight: 400;
}

.report-lead {
  max-width: 680px;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.report-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: right;
}

.status-label,
.control-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-status strong {
  color: var(--text);
  font-size: 0.9rem;
}

.open-note { color: var(--gold); }

.report-error {
  margin-block: 3rem;
  padding: 1.25rem 1.5rem;
  color: #f2b8bc;
  background: rgba(224, 85, 85, 0.1);
  border: 1px solid rgba(224, 85, 85, 0.3);
  border-radius: var(--radius);
}

.scenario-bar {
  position: sticky;
  top: calc(72px + env(safe-area-inset-top, 0px));
  z-index: 50;
  padding: 1.15rem 0;
  background: rgba(8, 8, 12, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.scenario-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(260px, 1.25fr) minmax(210px, 0.9fr) minmax(160px, 0.7fr);
  gap: 1.25rem;
  align-items: end;
}

.scenario-grid label {
  display: block;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-grid select,
.scenario-grid input {
  width: 100%;
  min-height: 42px;
  margin-top: 0.45rem;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  font: inherit;
  font-size: 0.85rem;
}

.scenario-grid select:focus,
.scenario-grid input:focus {
  border-color: var(--border-gold);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.preset-row button,
.exposure-row button,
.trade-filters button,
.pagination button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  transition: var(--transition);
}

.preset-row button:hover,
.preset-row button.active,
.exposure-row button:hover,
.exposure-row button.active,
.trade-filters button:hover,
.trade-filters button.active {
  color: #0a0a0f;
  background: var(--gold);
  border-color: var(--gold);
}

.exposure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.exposure-row button {
  min-height: 42px;
  font-weight: 600;
}

.scenario-summary {
  padding-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-align: right;
}

.metric-strip {
  padding: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.metrics {
  display: grid;
  grid-template-columns: 1.45fr repeat(5, minmax(120px, 1fr));
}

.metric {
  min-height: 126px;
  padding: 1.6rem 1.25rem;
  border-right: 1px solid var(--border);
}

.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }

.metric-label {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.metric.primary .metric-value {
  color: var(--green);
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.metric-detail {
  margin-top: 0.55rem;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.report-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.report-section-alt { background: var(--bg-elevated); }

.report-section-head {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.report-section-head .section-eyebrow { margin-bottom: 0.45rem; }

.report-section-head h2,
.report-disclosure h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.report-section-head > p {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  text-align: right;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chart-grid-wide { grid-template-columns: 1.65fr 0.85fr; }

.chart-panel {
  min-width: 0;
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-panel h3 {
  font-size: 0.88rem;
  font-weight: 600;
}

.chart-caption {
  min-height: 1.1rem;
  margin-top: 0.3rem;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.chart { height: 340px; }
.chart-large { height: 410px; }
.chart-price { height: 520px; }

.trade-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.trade-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trade-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.trade-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.trade-table th,
.trade-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-size: 0.76rem;
  white-space: nowrap;
}

.trade-table th {
  color: var(--text-dim);
  background: var(--bg-card);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.trade-table th:nth-child(2),
.trade-table td:nth-child(2),
.trade-table th:nth-child(3),
.trade-table td:nth-child(3),
.trade-table th:nth-child(4),
.trade-table td:nth-child(4) {
  text-align: left;
}

.trade-table tr:last-child td { border-bottom: 0; }
.positive { color: var(--green); }
.negative { color: #ef777f; }

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.pagination button:disabled {
  cursor: default;
  opacity: 0.4;
}

.report-disclosure {
  padding: 4.5rem 0;
  background: var(--bg);
}

.disclosure-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 5rem;
}

.disclosure-grid > div:last-child {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

.disclosure-grid p + p { margin-top: 0.8rem; }

@media (max-width: 1020px) {
  .report-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .report-status { align-items: flex-start; text-align: left; }
  .scenario-bar { position: static; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .scenario-summary { text-align: left; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric:first-child { padding-left: 1.25rem; }
  .metric:nth-child(3n) { border-right: 0; }
  .chart-grid,
  .chart-grid-wide { grid-template-columns: 1fr; }
  .performance-legend { grid-template-columns: 1fr; }
  .performance-legend > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .performance-legend > div:last-child { border-bottom: 0; }
  .system-card { grid-template-columns: 1fr; }
  .system-card-action { min-width: 0; max-width: 320px; align-items: stretch; }
}

@media (max-width: 768px) {
  .performance-index-hero { padding: 4.5rem 0 3.5rem; }
  .performance-index-hero h1 { font-size: clamp(3.2rem, 16vw, 4.75rem); }
  .performance-directory { padding: 3.5rem 0 4rem; }
  .performance-legend { margin-bottom: 3.5rem; }
  .systems-header { display: block; }
  .systems-header > p { margin-top: 0.8rem; text-align: left; }
  .system-card { gap: 2rem; padding: 1.4rem; }
  .system-card-action { max-width: none; }
  .future-system { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .report-hero { padding: 4.5rem 0 3.25rem; }
  .report-hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .scenario-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 108px; padding: 1.2rem 0.85rem; }
  .metric:nth-child(odd) { border-right: 1px solid var(--border); }
  .metric:nth-child(even) { border-right: 0; }
  .report-section { padding: 3.5rem 0; }
  .report-section-head { display: block; }
  .report-section-head > p { margin-top: 0.9rem; text-align: left; }
  .chart-panel { padding: 0.9rem 0.5rem; }
  .chart-large, .chart-price { height: 390px; }
  .chart { height: 330px; }
  .trade-tools { align-items: flex-start; flex-direction: column; }
  .disclosure-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
