/* Compact scientific tables; all results stay visible. */
#results { --muted: #394154; --results-method-width: 148px; color: #242b3c; }
#results .results-context {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}
#results .results-context p { margin: 0; color: #697184; font-size: 12px; line-height: 1.5; }
#results .results-context > span { color: #697184; font-size: 11px; line-height: 1.5; }
#results .results-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
#results .result-kpi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 20px;
  padding: 20px 22px;
  border: 1px solid #e3e8f1;
  border-radius: 8px;
  background: #f8faff;
}
#results .result-kpi h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0; }
#results .kpi-score {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #202b44;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#results .kpi-score > span { font-size: 15px; font-weight: 500; color: #697184; margin-left: 3px; letter-spacing: 0; }
#results .kpi-gain { grid-column: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; margin: 0; line-height: 1.4; }
#results .kpi-gain strong { color: var(--accent); font-size: 12px; font-weight: 600; }
#results .kpi-gain > span { color: #697184; font-size: 11px; }
#results .comparison-heading { font-size: 13px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; }
#results .comparison-heading > span { color: var(--muted); font-size: 11.5px; font-weight: 500; }

#results .results-table-frame { border: 1px solid #dce3f0; border-radius: 9px; background: #fff; scrollbar-color: #a9bee7 #f1f4fa; scrollbar-width: thin; }
#results .results-table-frame::-webkit-scrollbar { height: 6px; }
#results .results-table-frame::-webkit-scrollbar-track { background: #f1f4fa; }
#results .results-table-frame::-webkit-scrollbar-thumb { background: #a9bee7; border-radius: 6px; }
#results .comparison-table { margin: 0; border-collapse: separate; border-spacing: 0; color: #242b3c; font-size: 12.5px; line-height: 1.3; text-align: center; }
#results .comparison-table thead th { padding: 8px; background: #f6f8fd; color: #394154; font-size: 11.5px; font-weight: 600; line-height: 1.3; border-bottom: 1px solid #dce3f0; text-align: center; vertical-align: middle; }
#results .result-summary-table thead th:first-child,
#results .comparison-table thead .method-column { text-align: left; }
#results .comparison-table tr { --row-background: #fff; }
#results .comparison-table tbody th,
#results .comparison-table tbody td { padding: 5px 8px; background: var(--row-background); color: #242b3c; font-size: 12.5px; line-height: 1.3; font-weight: 500; border-bottom: 1px solid #e3e8f2; font-variant-numeric: tabular-nums lining-nums; vertical-align: middle; }
#results .comparison-table tbody th { text-align: left; font-weight: 600; }
#results .comparison-table tbody td { text-align: center; }
#results .comparison-table tbody:last-child tr:last-child > * { border-bottom: 0; }
#results .result-summary-table { table-layout: fixed; }
#results .result-summary-table thead th:first-child { width: 50%; }
#results .result-summary-table thead th:not(:first-child) { width: 25%; }
#results .comparison-table .control-group th { padding: 4px 8px; color: #536077; background: #fafbfe; font-size: 10.5px; font-weight: 600; text-align: left; border-bottom: 1px solid #e3e8f2; }
#results .comparison-table .method-ours { --row-background: #eff4ff; }
#results .comparison-table .method-ours > th { color: #18243e; font-size: 12.5px; font-weight: 750; }
#results .comparison-table .method-ours .result-score { font-size: 12.5px; font-weight: 700; }
#results .result-score { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 22px; padding: 0 5px; border-radius: 4px; line-height: 1; text-align: center; vertical-align: middle; letter-spacing: 0; }
#results .comparison-table .result-score.is-joint-best { color: var(--accent); font-weight: 750; }
#results .comparison-table .result-score.is-column-max { background: var(--accent); color: #fff; font-weight: 750; text-decoration: none; }
#results .results-table-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
#results .results-key { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#results .key-joint { color: var(--accent); font-weight: 750; }
#results .key-maximum { display: inline-flex; justify-content: center; color: #fff; background: var(--accent); font-weight: 650; padding: 1px 5px; border-radius: 4px; }
#results .results-error { font-size: 12px; margin: 10px 0 0; }
#results .results-error a { color: var(--accent); }

#results .task-results-block { margin-top: 20px; }
#results .task-results-heading { display: flex; align-items: center; gap: 8px 14px; margin-bottom: 9px; }
#results .task-results-heading::after { content: ''; height: 1px; background: linear-gradient(90deg, #dce3f0, transparent); flex: 1; order: 1; }
#results .task-results-heading h3 { color: #182036; font-size: 17px; font-weight: 650; line-height: 1.3; }
#results .task-results-heading p { order: 2; margin: 0; color: #536077; font-size: 11px; line-height: 1.5; }
#results .task-comparison-table { table-layout: fixed; }
#results .task-comparison-table thead th { white-space: normal; overflow-wrap: normal; font-size: 11px; padding: 8px 5px; line-height: 1.3; }
#results .task-comparison-table tbody td { padding: 5px 6px; }
#results .task-comparison-table .method-column { width: var(--results-method-width); position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 #dce3f0; }
#results .task-comparison-table thead .method-column { background: #f6f8fd; z-index: 4; padding-left: 8px; }
#results .task-comparison-table .mean-column { position: sticky; right: 0; z-index: 1; box-shadow: -1px 0 0 #dce3f0; }
#results .task-comparison-table thead .mean-column { z-index: 4; background: #f6f8fd; }
#results .task-comparison-table .control-group-label { position: sticky; left: 8px; display: inline-block; }
#results .setup-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 17px; margin: 0 0 8px; color: #394154; font-size: 10.5px; line-height: 1.3; }
#results .setup-legend-item { display: inline-flex; align-items: center; gap: 5px; }
#results .setup-icon { width: 22px; height: 20px; flex: none; color: var(--accent); }
#results .embodi-comparison-table thead .task-group-heading { padding: 7px 4px 3px; border-bottom: 0; font-size: 11.5px; }
#results .embodi-comparison-table .configuration-header th { padding: 0 4px 6px; text-align: center; }
#results .configuration-header .setup-icon { display: block; width: 20px; height: 18px; margin-inline: auto; }

#results .result-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 12px; margin-top: 18px; border-top: 1px solid #e3e8f2; }
#results .result-insights p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
#results .result-insights strong { font-size: 16px; color: var(--accent); line-height: 1.3; font-weight: 600; }
#results .result-insights span { color: #394154; font-size: 11.5px; line-height: 1.5; }
#results .scope-note { padding: 12px 0 0; margin: 14px 0 0; max-width: none; border: 0; border-top: 1px solid #e3e8f2; }
#results .scope-note h3 { color: #242b3c; font-size: 11.5px; font-weight: 650; margin-bottom: 4px; }
#results .scope-note p { margin: 0; color: #394154; font-size: 11px; line-height: 1.6; }

@media (max-width: 600px) {
  #results { --results-method-width: 126px; }
  #results .results-context p { font-size: 12px; }
  #results .results-context > span { font-size: 10.5px; }
  #results .results-summary { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
  #results .result-kpi { padding: 16px 18px; }
  #results .kpi-score { font-size: 28px; }
  #results .kpi-score > span { font-size: 16px; }
  #results .kpi-gain strong { font-size: 11.5px; }
  #results .kpi-gain > span { font-size: 10.5px; }
  #results .result-summary-table thead th:first-child { width: 44%; }
  #results .result-summary-table thead th:not(:first-child) { width: 28%; }
  #results .result-summary-table thead th { font-size: 10.5px; padding: 7px 5px; white-space: normal; }
  #results .result-summary-table tbody th,
  #results .result-summary-table tbody td { font-size: 11.5px; padding: 4px 5px; }
  #results .result-summary-table tbody th { white-space: normal; }
  #results .result-summary-table .result-score { min-width: 48px; height: 21px; padding-inline: 4px; }
  #results .result-summary-table .method-ours > th,
  #results .result-summary-table .method-ours .result-score { font-size: 11.5px; }
  #results .results-table-note { font-size: 10px; }
  #results .task-results-heading { flex-wrap: wrap; }
  #results .task-results-heading h3 { font-size: 16px; }
  #results .task-results-heading p { font-size: 10.5px; }
  #results .task-results-heading::after { display: none; }
  #results .task-comparison-table .method-column { white-space: normal; line-height: 1.25; font-size: 11.5px; }
  #results .task-comparison-table .mean-column { position: static; box-shadow: none; }
  #results .setup-legend { column-gap: 12px; font-size: 10px; }
  #results .result-insights { gap: 16px; }
  #results .result-insights strong { font-size: 15px; }
  #results .result-insights span { font-size: 11px; }
}
