@font-face {
  font-family: UCL Sans;
  src: url("UCLSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: UCL Sans;
  src: url("UCLSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: "UCL Sans", Arial, sans-serif;
  color: #27232b;
  background: #f6f4f8;
  --low: #361a54;
  --high: #d5a280;
  --high-ink: #904e2d;
  --overall-line: #676571;
  --muted: #655a70;
  --line: #e4dce9;
  --lavender: #f2ebf8;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
main, .ucl-header-inner { max-width: 1180px; margin: 0 auto; padding-inline: 30px; }
main { padding-top: 24px; padding-bottom: 24px; }
h1, h2, p { margin: 0; }
h1 { color: var(--low); font-size: 44px; line-height: 1.08; }
h2 { color: var(--low); font-size: 22px; line-height: 1.22; }

.ucl-header { background: var(--low); border-bottom: 4px solid #7651a4; }
.ucl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.ucl-header img { display: block; width: 132px; height: auto; flex-shrink: 0; filter: brightness(0) invert(1); }
.project-title { color: #fff; font-weight: 700; font-size: 20px; }
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 22px;
}
.subtitle { color: #4c4256; margin-top: 8px; font-family: Georgia, serif; font-size: clamp(18px, 2vw, 22px); line-height: 1.35; }
.subtitle em { font-weight: 700; }
.text-low { color: var(--low); }
.text-high { color: var(--high-ink); }
.refresh-area { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.update { font-size: 14px; color: var(--muted); }
.update strong { font-weight: 700; }
button {
  border: 0;
  border-radius: 5px;
  padding: 9px 16px;
  background: var(--low);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:disabled { cursor: wait; opacity: .65; }
button:hover { background: #4f2d6e; }
:focus-visible { outline: 3px solid #8f63b8; outline-offset: 3px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; min-width: 0; }
.primary-panel { margin-bottom: 16px; border-top: 3px solid var(--low); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 15px; }
.comparison-heading { align-items: center; }
.sample-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 16px; padding-block: 15px; border-left: 4px solid var(--low); background: var(--lavender); }
.sample-panel h2 { font-size: 20px; }
.sample-panel p, .sample-empty p { margin-top: 4px; color: var(--muted); }
.sample-panel select { min-width: min(100%, 200px); min-height: 42px; background-color: white; font-size: 16px; font-weight: 700; }
.sample-empty { margin-bottom: 16px; }
.meta, .caption { font-size: 14px; color: var(--muted); }
.caption { margin-top: 12px; }
.agreement-filter { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; color: var(--low); cursor: pointer; }
.agreement-filter input { accent-color: var(--low); width: 17px; height: 17px; margin: 0; }
.comparison-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 6px; }
.comparison-filters { display: flex; flex-wrap: wrap; column-gap: 20px; }
.eligibility-details { margin-top: 14px; color: var(--muted); font-size: 14px; }
.eligibility-details summary { cursor: pointer; }
.eligibility-details p { margin: 5px 0 0; }
.comparison-switch { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #f7f3fa; }
.comparison-switch button { padding: 5px 10px; min-height: 33px; font-size: 14px; font-weight: 700; }
.comparison-switch button[aria-pressed="false"] { color: var(--low); background: transparent; }
.comparison-switch button[aria-pressed="false"]:hover { background: #ece2f3; }
.comparison-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; }
.rate-row { display: grid; grid-template-columns: 152px minmax(0, 1fr) 66px; align-items: center; gap: 12px; margin: 13px 0 16px; }
.rate-label { font-weight: 700; }
.rate-label small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.rate-number { color: var(--low); font-size: 25px; text-align: right; }
.rate-plot { position: relative; height: 30px; }
.rate-track { height: 20px; background: #f1ebf5; border-radius: 3px; overflow: hidden; }
.rate-fill { display: block; height: 100%; }
.rate-fill.low { background: var(--low); }
.rate-fill.high { background: var(--high); }
.interval { position: absolute; top: 25px; height: 8px; border-inline: 1.5px solid var(--low); }
.interval::before { content: ""; display: block; margin-top: 3px; border-top: 1.5px solid var(--low); }
.interval::after { content: ""; position: absolute; inset: -6px -3px; }
.axis { display: flex; justify-content: space-between; margin: -3px 78px 0 164px; color: var(--muted); font-size: 13px; }
.chart-note { color: var(--muted); font-size: 15px; margin-top: 9px; }
.primary-stats { display: grid; align-content: center; gap: 10px; border-radius: 6px; padding: 13px 18px; background: var(--lavender); }
.primary-stats > div { display: flex; flex-direction: column; }
.stat-label { font-size: 14px; color: var(--muted); }
.primary-stats strong { color: var(--low); font-size: 34px; line-height: 1.14; }
.difference { border-top: 1px solid #d9cde5; padding-top: 9px; }
.difference strong { font-size: 25px; }

.metrics-grid, .summary-grid, .trajectory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.metrics-grid, .summary-grid { margin-bottom: 16px; }
.metric-controls { display: flex; justify-content: flex-end; padding: 0 0 7px; }
.statistics-note { margin: 0 0 10px; text-align: right; }
.statistics-note span { display: inline-block; margin-left: 12px; white-space: nowrap; }
.statistics-note details { margin-top: 3px; }
.statistics-note details p { max-width: 600px; margin-left: auto; }
.metrics-grid.show-statistics { grid-template-columns: minmax(0, 1fr); }
.table-frame { overflow: auto; }
.show-statistics .metric-table { min-width: 475px; }
.metric-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; line-height: 1.25; }
.metric-table th, .metric-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.metric-table th:first-child { padding-left: 0; text-align: left; }
.metric-table thead th { font-weight: 700; color: var(--low); vertical-align: bottom; }
.metric-table thead th:first-child { font-weight: 400; }
.metric-table thead th:nth-child(2) span { border-bottom: 2px solid var(--low); }
.metric-table thead th:nth-child(3) span { border-bottom: 2px solid var(--high); }
.metric-table tbody th { font-weight: 400; }
.metric-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric-table small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.metric-table th:nth-child(4), .metric-table td:nth-child(4) { background: #f6f0fa; }
.metric-table td:nth-child(4) { color: var(--low); font-weight: 700; }
.metric-table .metric-p { min-width: 68px; padding-left: 12px; color: var(--low); }
.metric-p sup { margin-left: 2px; font-weight: 700; }
.metric-table .confidence { white-space: nowrap; }
.quit-panel .metric-table { min-width: 540px; }
.quit-panel .metric-table th:not(:first-child), .quit-panel .metric-table td { text-align: center; }
.quit-panel .quit-detail th { padding-left: 16px; color: var(--muted); }
.rollout-panel .metric-table { min-width: 450px; margin-block: 12px 6px; }
.rollout-panel .metric-table th:not(:first-child), .rollout-panel .metric-table td { text-align: center; }
.rollout-panel .meta { margin-block: 5px; }
.rollout-panel .metric-table th:nth-child(3) span { border-bottom-color: var(--high); }
.collection-panel { margin-bottom: 16px; }
.collection-panel .section-heading { margin-bottom: 10px; align-items: center; }
.remaining-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; }
.remaining-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .94rem; }
.remaining-input input { width: 5.15rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--high-ink); font: inherit; font-weight: 700; }
.remaining-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: .94rem; line-height: 1.3; }
.remaining-table th, .remaining-table td { padding: 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.remaining-table th:first-child { padding-left: 0; }
.remaining-table thead { color: var(--low); }
.remaining-table tbody th { font-weight: 400; }
.remaining-table td { font-variant-numeric: tabular-nums; }
.remaining-table small { display: block; margin-top: 2px; color: var(--muted); font-size: .81rem; }
.remaining-method { margin-top: 8px; }
.progress-controls { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin-bottom: 12px; }
.progress-controls label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; max-width: 100%; }
.progress-controls select { max-width: 100%; min-width: 10rem; }
.progress-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 8px; }
.progress-summary > div { display: inline-flex; align-items: baseline; gap: 6px; }
.progress-summary strong { font-variant-numeric: tabular-nums; font-weight: 700; }
#progress-gap { color: #21172d; font-size: 20px; }
.progress-swatch { width: 19px; border-top: 2px dashed currentColor; align-self: center; }
.progress-swatch.gap { border-top-width: 3px; border-top-style: solid; }
.progress-plot { margin-top: 4px; }
.progress-plot svg { display: block; width: 100%; color: var(--muted); font-size: 13px; cursor: crosshair; }
.progress-plot text { fill: currentColor; }
.progress-plot .grid { stroke: var(--line); stroke-width: 1; }
.progress-plot .zero { stroke: #b5a8c0; stroke-width: 1; }
.progress-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 4; }
.progress-line.gap { stroke-width: 3; stroke-dasharray: none; }
.progress-plot circle { fill: currentColor; }
.progress-swatch.gap, .progress-plot .gap { color: #21172d; }
.progress-swatch.low, .progress-plot .low { color: #785197; }
.progress-swatch.high, .progress-plot .high { color: var(--high-ink); }
.progress-cursor { stroke: #8b8094; stroke-width: 1; stroke-dasharray: 2 3; }
#progress-axis-note { margin-top: -6px; }
.deadline-chart-wrap { position: relative; }
.deadline-key, .deadline-rates { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; font-weight: 700; }
.deadline-key span { display: inline-flex; align-items: center; gap: 6px; }
.deadline-key span::before { content: ""; width: 17px; border-bottom: 2px solid currentColor; }
.deadline-key .line-high::before { border-bottom-style: dashed; }
.deadline-key .line-low, .deadline-rates .line-low { color: #376490; }
.deadline-key .deadline-sample-key, .deadline-axis-label, .deadline-line.sample { color: #79549c; }
.deadline-key .deadline-sample-key::before { border-bottom-style: dotted; }
.deadline-axis { fill: none; stroke: #c4bbc9; stroke-width: 1; }
path.deadline-line { stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; fill: none; }
.deadline-line.low { color: #376490; }
.progress-plot text.deadline-axis-label { fill: #79549c; }
.deadline-line.high { color: var(--high-ink); }
path.deadline-line.high { stroke-dasharray: 5 4; }
path.deadline-line.sample { stroke-width: 1.55; stroke-dasharray: 2 3; opacity: .92; }
.deadline-hover { position: absolute; top: 5px; z-index: 2; max-width: 100%; width: min(17.75rem, 100%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 3px 16px #2613321c; pointer-events: none; }
.deadline-power { float: right; color: var(--muted); font-size: .78rem; }
.deadline-rates { margin-top: 6px; }
.deadline-rates small { color: var(--muted); font-weight: 400; }
.deadline-gap { margin: 3px 0 5px; font-size: .78rem; }
.deadline-hover dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; margin: 0; font-size: .81rem; }
.deadline-hover dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.server-load-panel { margin-bottom: 16px; }
.server-load-panel .section-heading { margin-bottom: 12px; }
.server-load-legend { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--low); }
.server-load-legend div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.server-swatch { display: inline-block; width: 18px; border-top: 3px solid; }
.server-swatch.cpu, .server-load-plot .cpu { color: var(--low); }
.server-swatch.memory, .server-load-plot .memory { color: #2c6b76; }
.server-swatch.memory { border-top-style: dashed; }
.server-load-plot { margin-top: 8px; min-height: 155px; }
.server-load-plot svg { display: block; width: 100%; font-size: 13px; overflow: visible; }
.server-load-plot text { fill: var(--muted); }
.server-load-plot .guide { stroke: var(--line); stroke-width: 1; }
.server-load-plot .series { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.server-load-plot .series.memory { stroke-dasharray: 6 4; }

.trajectory-panel { margin-bottom: 16px; }
.trajectory-controls { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trajectory-legend { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.trajectory-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; font-size: 14px; font-weight: 400; border: 1px solid var(--line); background: #f7f3fa; }
.trajectory-legend button:hover { background: #eee6f5; }
.trajectory-legend button[aria-pressed="false"] { background: #fff; color: var(--muted); text-decoration: line-through; }
.trajectory-legend button::before { content: ""; display: inline-block; width: 20px; border-top: 2px solid currentColor; }
.line-low { color: var(--low); }
.line-high { color: var(--high-ink); }
.line-overall { color: var(--overall-line); }
.trajectory-legend .line-overall::before { border-top-style: dashed; }
.trajectory-grid { gap: 22px; }
.trajectory-grid figure { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 14px 15px 8px; }
.trajectory-grid h3 { color: var(--low); font-size: 17px; margin: 0 0 4px; }
.trajectory-grid figure p { color: var(--muted); font-size: 14px; min-height: 3em; }
.trajectory-chart { position: relative; }
.trajectory-chart svg { width: 100%; display: block; overflow: visible; }
.trajectory-chart svg text { fill: var(--muted); font-family: "UCL Sans", Arial, sans-serif; font-size: 12px; }
.trajectory-chart .chart-guide { stroke: #eee9f1; }
.trajectory-chart .chart-axis { stroke: #cfc4d8; }
.trajectory-chart path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trajectory-chart path.line-overall { stroke-dasharray: 5 5; }
.trajectory-chart circle { fill: #fff; stroke: currentColor; stroke-width: 1.4; }
.trajectory-chart circle:hover { fill: currentColor; r: 4.4; }
.trajectory-chart .chart-empty { min-height: 155px; display: grid; place-items: center; text-align: center; }
.trajectory-note { margin-top: 10px; }
.header-links { margin-left: auto; margin-right: 12px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 14px; min-height: 39px; border: 1px solid #dfbb9f; border-radius: 5px; background: #f5e4d5; color: #361a54; text-decoration: none; font-weight: 700; font-size: 15px; text-align: center; line-height: 1.2; }
.page-link:hover { background: #fff5eb; }
.page-link span { color: var(--high-ink); }
.header-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.timeline-link { background: #e9dff3; border-color: #bcabd0; }
.timeline-link:hover { background: #f5eefb; }
.ending-grid { align-items: start; margin-bottom: 0; }
.pilot-order-bar { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.pilot-order-bar label { display: flex; align-items: center; gap: 8px; }
#pooled-filters { margin-top: 12px; }
.sample-actions, .pilot-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sample-actions { justify-content: flex-end; }
.sample-actions select { max-width: 100%; }
.pilot-card-actions a { font-weight: 700; }
.role-materials-link { color: #4d2f69; background: #fff; border: 1px solid #d7c5e4; padding: 7px 11px; }
.role-materials-link:hover { color: #3c2256; background: #f6eff9; }
#payment-coverage { margin-bottom: 12px; }
#role-materials-dialog {
  width: min(780px, calc(100% - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  box-sizing: border-box;
  padding: 0;
  color: #251a30;
  background: #fff;
  border: 1px solid #d9c9e4;
  border-radius: 12px;
  box-shadow: 0 18px 45px #1a10374d;
  overflow: hidden;
}
#role-materials-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr); }
#role-materials-dialog::backdrop { background: #24123491; }
.role-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px 10px; }
.role-dialog-head h2 { margin: 0; }
.role-dialog-close { background: #f4ecfa; color: #4c2b69; font-size: 23px; width: 36px; height: 36px; line-height: 1; padding: 0; }
.role-dialog-close:hover { background: #e9dcf2; }
.role-dialog-controls { padding: 0 24px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-bottom: 1px solid #ebe2f0; }
.role-dialog-controls label { display: flex; align-items: center; gap: 8px; }
.role-dialog-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.role-dialog-tabs button { padding: 7px 12px; background: #f8f3fb; color: #573477; border: 1px solid #e2d5ed; }
.role-dialog-tabs button[aria-selected="true"] { background: #542d74; border-color: #542d74; color: #fff; }
.role-dialog-story { padding: 20px 24px; overflow: auto; font-size: 16px; line-height: 1.55; }
.role-dialog-story p { margin: 0 0 13px; }
.role-dialog-story h3 { margin: 16px 0 7px; }
.role-dialog-story ul { padding-left: 22px; margin: 0 0 13px; }
.role-dialog-story li { margin: 4px 0; }
#role-materials-dialog.is-loading .role-dialog-controls { display: none; }
@media (max-width: 620px) {
  .sample-actions { justify-content: flex-start; }
  .role-dialog-head { padding: 13px 15px 8px; }
  .role-dialog-controls { padding: 0 15px 11px; }
  .role-dialog-story { padding: 14px 15px; }
}
.pooled-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.pooled-summary > div { padding: 13px 15px; background: #f6f1fa; border-radius: 6px; }
.pooled-summary span, .pooled-summary strong { display: block; }
.pooled-summary span { color: var(--muted); font-size: 14px; }
.pooled-summary strong { margin-top: 3px; font-size: clamp(16px,2.2vw,24px); }
.pilot-effect-table, .pilot-matrix { width: 100%; border-collapse: collapse; }
.pilot-effect-table th, .pilot-effect-table td, .pilot-matrix th, .pilot-matrix td {
  padding: 8px; text-align: center; border-bottom: 1px solid #eee7f1;
}
.pilot-effect-table th:first-child, .pilot-matrix th:first-child { text-align: left; }
.pilot-effect-table small, .pilot-matrix small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.pilot-effect-plot { position: relative; height: 32px; min-width: 94px; cursor: help; }
.pilot-effect-plot::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #a497b0; }
.pilot-whisker { position: absolute; top: 15px; left: var(--left); width: var(--length); border-top: 2px solid #73558d; }
.pilot-dot { position: absolute; top: 11px; left: var(--point); transform: translateX(-50%); width: 10px; height: 10px; border-radius: 100%; background: #542d74; }
.pooled-panel details { margin-top: 14px; }
.pilot-timeline-page { max-width: 1240px; }
.timeline-results-link { align-self: end; margin-bottom: 9px; font-weight: 700; }
.pilot-jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 3px 0 16px; }
.pilot-jump-links a { text-decoration: none; color: #512f72; background: #eee5f6; padding: 5px 11px; border-radius: 4px; }
.pilot-jump-links a:hover { background: #e4d2f0; }
.pilot-card { margin: 14px 0; scroll-margin-top: 20px; }
.pilot-card .section-heading { align-items: baseline; }
.pilot-card time { color: var(--muted); }
.pilot-changes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin: 16px 0; }
.pilot-changes div { border-left: 2px solid #d3bddf; padding-left: 12px; }
.pilot-changes dt { font-weight: 700; margin-bottom: 4px; }
.pilot-changes dd { margin: 0; color: #453852; }
.pilot-changes dd p { margin: 0; }
.pilot-changes dd p + p { margin-top: 8px; }
@media (min-width: 881px) { #alpha-1 .pilot-changes { grid-template-columns: 2fr 1fr 1fr; } }
.pilot-matrix-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 10px; }
.pilot-payoffs { margin-top: 11px; }
.pilot-payoffs .pilot-matrix th, .pilot-payoffs .pilot-matrix td { padding-inline: 5px; }
.pilot-matrix td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pilot-matrix-title { font-size: 18px; margin-bottom: 3px; }
.pilot-payoff-pair + .pilot-payoff-pair { border-top: 1px solid #ddd1e5; padding-top: 12px; margin-top: 18px; }
@media (max-width: 880px) {
  .pooled-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pilot-matrix-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pilot-changes { grid-template-columns: 1fr; gap: 12px; }
  .pilot-effect-table th, .pilot-effect-table td { padding-inline: 3px; font-size: 13px; }
  .pilot-effect-table th:nth-child(4), .pilot-effect-table td:nth-child(4) { display: none; }
  .timeline-results-link { align-self: start; }
}
.paired-comparison { border-top: 1px solid var(--line); padding-top: 10px; }
.paired-contents { padding: 12px 0 0; }
.paired-contents h3, .zone-condition h3, .zone-finish h3 { font-size: 18px; margin: 0; }
.paired-contents .section-heading { margin-bottom: 4px; }
.paired-table, .zone-table { border-collapse: collapse; text-align: right; width: 100%; margin-top: 14px; color: #352a3b; }
.paired-table th, .paired-table td, .zone-table th, .zone-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); }
.paired-table th:first-child, .zone-table th:first-child { text-align: left; padding-left: 0; }
.paired-table th, .zone-table th { font-weight: 700; }
.paired-table td, .zone-table td { font-variant-numeric: tabular-nums; }
.paired-table { min-width: 495px; }
.paired-table td:nth-child(5) { background: #f6f0fa; }
.zone-figures { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.zone-stat { display: grid; align-content: start; gap: 4px; }
.zone-stat span { font-weight: 700; }
.zone-stat strong { font-size: clamp(23px,3.1vw,34px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.zone-stat small { color: var(--muted); font-size: 14px; }
.zone-section { margin-bottom: 16px; }
.zone-conditions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.zone-condition, .zone-finish { padding: 15px; background: #faf8fb; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.zone-condition.line-high, .zone-finish.line-high { background: #fcf8f4; }
.zone-condition h3 { margin-bottom: 2px; }
.zone-table { min-width: 365px; font-size: 14px; margin-top: 9px; }
.zone-table th, .zone-table td { padding-inline: 6px; }
.zone-table th:first-child { white-space: nowrap; }
.zone-table thead th { color: var(--muted); font-size: 12px; vertical-align: bottom; }
.zone-table .zone-counts { min-width: 100px; }
.zone-table .zone-counts small { display: block; padding-top: 3px; color: var(--muted); text-align: left; white-space: nowrap; }
.zone-table tfoot th, .zone-table tfoot td { font-size: 13px; border-bottom: 0; color: var(--muted); }
.zone-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.zone-legend span::before { content: ""; width: 15px; height: 7px; display: inline-block; margin: 0 6px 1px 0; border-radius: 2px; }
.zone-found::before { background: #ccb9df; }
.zone-agreed::before { background: var(--low); }
.zone-track { height: 9px; position: relative; border-radius: 3px; overflow: hidden; background: #f1ebf5; }
.zone-track span { position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px; }
.zone-found-fill { background: #ccb9df; }
.zone-agreed-fill { background: var(--low); }
.zone-intro { margin: 7px 0 13px; }
.zone-finish strong { display: block; font-size: 28px; }
.zone-finish p { color: var(--muted); font-size: 14px; }
#zone-error { margin-bottom: 12px; color: #a93434; }
.loading-indicator { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #d7c2e7; border-radius: 7px; background: #f2e9f8; color: var(--low); }
.loading-indicator p { color: var(--muted); font-size: 14px; }
.loading-spinner { flex: 0 0 22px; height: 22px; border: 3px solid #d6c4e4; border-top-color: var(--low); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }
.is-loading main, .is-loading button:disabled { cursor: wait; }
[title], .trajectory-chart circle, .interval { cursor: pointer; }

.search-panel, .mediation-panel { margin-bottom: 16px; }
.mediation-panel { margin-top: 0; }
.panel-disclosure { font-size: 20px; line-height: 1.25; }
.panel-disclosure span { margin-left: 9px; font-weight: 400; font-size: 14px; color: var(--muted); }
.mediation-intro { margin-top: 11px; }
.mediation-table { min-width: 510px; }
.mediation-table tbody th small { display: block; color: var(--muted); font-weight: 400; }
.mediation-pick { padding: 3px 0; color: var(--low); background: none; border: 0; border-radius: 0; font-size: 14px; text-align: left; }
.mediation-pick:hover { color: var(--low); background: none; text-decoration: underline; text-underline-offset: 3px; }
.mediation-details { margin-top: 14px; padding: 12px 15px; border-radius: 6px; border: 1px solid var(--line); background: #faf7fc; }
.mediation-paths-grid { display: grid; gap: 8px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
.mediation-paths-grid > div { padding: 8px 10px; min-width: 0; border-radius: 4px; background: #fff; }
.mediation-paths-grid > div strong { display: block; color: var(--low); font-size: 17px; margin-top: 3px; }
.mediation-paths-grid > div span { color: var(--muted); font-size: 13px; }
.mediation-equation { font-weight: 700; color: var(--low); }
@media (max-width: 700px) { .mediation-paths-grid { grid-template-columns: minmax(0,1fr); } }

.metric-table th:not(:first-child), .metric-table td,
.paired-table th:not(:first-child), .paired-table td,
.zone-table th:not(:first-child), .zone-table td,
.answer-table th:nth-child(n+3), .answer-table td,
.budget-table th:not(:first-child), .budget-table td {
  text-align: center;
}
.zone-table .zone-counts small { text-align: center; }
.rate-number { text-align: center; }
.answer-condition + .answer-condition { margin-top: 24px; }
.answer-condition h3 { font-size: 18px; margin: 0; }
.answer-table { border-collapse: collapse; text-align: right; width: 100%; min-width: 580px; margin-top: 8px; color: #352a3b; font-size: 14px; }
.answer-table th, .answer-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.answer-table th:first-child, .answer-table th:nth-child(2), .answer-table tbody td:nth-child(2) { text-align: left; }
.answer-table thead th { color: var(--muted); }
.answer-table tbody th { white-space: nowrap; }
.answer-table tbody tr:nth-child(odd) { background: #faf7fc; }
.line-high .answer-table tbody tr:nth-child(odd) { background: #fcf8f4; }
.answer-table td:not(:nth-child(2)) { font-variant-numeric: tabular-nums; }
.answer-features { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.answer-features li { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
@media (max-width: 850px) {
  .zone-conditions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .header-links { margin-right: 0; }
  .page-link { font-size: 13px; }
}
@media (max-width: 470px) {
  .project-title { display: none; }
  .header-links { margin-left: 0; }
  .page-link { padding-inline: 9px; font-size: 12px; }
  .zone-figures { grid-template-columns: minmax(0, 1fr); }
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}
.payment-grid > div { display: flex; flex-direction: column; align-items: center; padding: 9px 12px 9px 0; text-align: center; }
.payment-grid > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 12px; padding-right: 0; }
.payment-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.payment-grid strong { color: var(--low); font-size: clamp(19px, 3vw, 25px); line-height: 1.15; }
.bonus-averages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; margin: 6px 0 0; }
.bonus-averages > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.bonus-averages dt { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.2; }
.bonus-averages dd { margin: 0; }
.payment-grid .bonus-averages strong { font-size: clamp(16px, 2vw, 20px); white-space: nowrap; }
#bonus-valid { color: #216a68; }
#bonus-agreement { color: var(--high-ink); }
.payment-grid span { margin-top: 3px; font-size: 14px; line-height: 1.3; }
.payment-grid small { color: var(--muted); font-size: 13px; }
details { font-size: 14px; margin-top: 12px; }
summary { cursor: pointer; color: var(--low); }
details p { margin-top: 8px; color: var(--muted); }
.reviewed-cases { width: fit-content; margin-left: auto; }
.reviewed-cases[open] { max-width: 340px; }
.reviewed-cases summary { text-align: right; }

.cause-table-head, .cause-summary, .cause-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 37px);
  gap: 7px;
  align-items: baseline;
}
.cause-table-head { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.cause-summary, .cause-detail { font-size: 15px; }
.cause-summary { min-height: 43px; padding: 10px 0; list-style: none; color: var(--low); font-weight: 700; }
.cause-summary::-webkit-details-marker { display: none; }
.cause-table-head > :not(:first-child), .cause-summary > :not(:first-child), .cause-detail > :not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.cause { margin: 0; border-bottom: 1px solid var(--line); }
.cause summary:hover .cause-name { text-decoration: underline; text-underline-offset: 3px; }
.cause-name { display: flex; align-items: baseline; gap: 8px; }
.cause .cause-name::before { content: "+"; color: #7651a4; font-weight: 700; }
.cause[open] .cause-name::before { content: "−"; }
.cause-details { padding: 0 0 8px 18px; }
.cause-detail { padding: 5px 0; font-size: 14px; }
.cause-details p { font-size: 13px; margin-top: 5px; }

.budget-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.budget-filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
select, input[type="number"] { font: inherit; border: 1px solid #d7cede; border-radius: 4px; padding: 5px 7px; background: #fff; color: #2b2332; max-width: 100%; }
.budget-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; line-height: 1.35; }
.budget-table th, .budget-table td { border-bottom: 1px solid var(--line); padding: 8px 5px; vertical-align: top; text-align: right; }
.budget-table th:first-child { text-align: left; padding-left: 0; }
.budget-table th:last-child, .budget-table td:last-child { padding-right: 0; }
.budget-table thead th { color: var(--muted); font-weight: 400; }
.budget-table tbody th { color: var(--low); }
.budget-table small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.budget-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget-table td:last-child { color: var(--low); font-weight: 700; }
.cost-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.assumption-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.assumption-grid label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.assumption-grid input { width: 100%; }
a { color: var(--low); text-underline-offset: 3px; }
footer { font-size: 14px; color: var(--muted); padding-top: 14px; }
#notice { margin-bottom: 14px; padding: 10px 13px; border-radius: 5px; background: var(--lavender); }
#notice.error { background: #fdf0ea; color: #79422c; }
[hidden] { display: none !important; }

@media (max-width: 850px) {
  main, .ucl-header-inner { padding-inline: 20px; }
  .refresh-area { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
  .metrics-grid { grid-template-columns: minmax(0, 1fr); }
  .comparison-grid { grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; }
  .rate-row { grid-template-columns: 135px minmax(0, 1fr) 63px; gap: 9px; }
  .axis { margin-left: 144px; margin-right: 72px; }
}
@media (max-width: 700px) {
  main, .ucl-header-inner { padding-inline: 15px; }
  .ucl-header-inner { min-height: 65px; }
  .ucl-header img { width: 106px; }
  h1 { font-size: 36px; }
  .refresh-area { align-items: flex-start; }
  .comparison-grid, .summary-grid, .trajectory-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 17px; }
  .primary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .difference { border-top: 0; border-left: 1px solid #d9cde5; padding: 0 0 0 12px; }
  .rate-row { grid-template-columns: 116px minmax(0, 1fr) 56px; gap: 7px; }
  .rate-label { font-size: 15px; }
  .rate-label small { font-size: 13px; }
  .rate-number { font-size: 20px; }
  .axis { margin-left: 123px; margin-right: 63px; font-size: 12px; }
}
@media (max-width: 410px) {
  .bonus-averages { grid-template-columns: 1fr; gap: 3px; }
  .bonus-averages > div { flex-direction: row; align-items: baseline; gap: 4px; justify-content: space-between; }
  .axis span:nth-child(even) { display: none; }
  .rate-row { grid-template-columns: minmax(0, 1fr) 56px; }
  .rate-plot { grid-column: 1 / -1; grid-row: 2; }
  .rate-number { grid-column: 2; grid-row: 1; }
  .axis { margin-inline: 0; }
  #p-value { font-size: 24px; white-space: nowrap; }
  .cause-table-head, .cause-summary, .cause-detail { grid-template-columns: minmax(0, 1fr) repeat(3, 29px); }
  .metric-table { font-size: 13px; }
  .metric-table th, .metric-table td { padding-inline: 4px; }
  .metric-table small { font-size: 11px; }
  .budget-table { font-size: 13px; }
}
