:root { color-scheme: light; --ink:#171717; --muted:#737373; --line:#e5e5e5; --green:#438b5c; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:#fff; font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
[hidden] { display:none !important; }
a { color:inherit; text-decoration:none; }
a:hover { text-decoration:underline; }
button,input,select { font:inherit; accent-color:var(--ink); }
button,select { cursor:pointer; }
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid #3478ca; outline-offset:3px; }
.shell { max-width:1440px; padding:0 28px; margin:auto; }
header { border-bottom:1px solid var(--line); }
.masthead { height:80px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.brand { font-size:22px; font-weight:650; letter-spacing:-.7px; }
.brand span { font-weight:400; color:var(--muted); }
nav { display:flex; gap:28px; color:var(--muted); }
p { margin:0; }
.muted,.caption { color:var(--muted); }
h2 { font-size:16px; margin:0; font-weight:600; }
.view-bar,.condition-bar,.table-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.view-bar { border-bottom:1px solid var(--line); padding:30px 0 20px; flex-wrap:wrap; }
.segments { display:inline-flex; }
.segments button { border:1px solid var(--line); padding:8px 14px; background:white; color:var(--muted); }
.segments button+button { border-left:0; }
.switch-control { display:flex; flex-direction:column; gap:7px; min-width:0; }
.switch-control>span { font-size:12px; color:var(--muted); }
.switch-control .segments button { font-size:12px; padding:8px 10px; white-space:nowrap; }
.wrap-segments { display:flex; flex-wrap:wrap; align-self:flex-start; }
.wrap-segments button, .wrap-segments button+button { border:1px solid var(--line); margin:0 -1px -1px 0; }
.wrap-segments button[aria-pressed="true"] { position:relative; z-index:1; }
.segments button[aria-pressed="true"] { background:var(--ink); color:white; border-color:var(--ink); }
label { display:flex; flex-direction:column; gap:7px; color:var(--muted); font-size:12px; }
select { border:1px solid var(--line); background:#fff; border-radius:0; color:var(--ink); padding:8px 28px 8px 10px; width:100%; min-width:0; }
.condition-bar { margin-bottom:22px; }
.condition-bar>.switch-control { flex:1; }
.condition-bar>label:first-child { flex:1; max-width:760px; }
.checkbox { display:flex; flex-direction:row; align-items:center; white-space:nowrap; padding-top:23px; }
.plot-panel { border:1px solid var(--line); padding:24px 26px 18px; }
.plot-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:20px; }
.plot-heading p { margin-top:5px; font-size:12px; }
.delta { text-align:right; flex-shrink:0; }
.delta strong { display:block; font-size:24px; letter-spacing:-.7px; font-weight:550; font-variant-numeric:tabular-nums; }
.delta span { font-size:11px; color:var(--muted); }
.improved { color:var(--green); }
.regressed { color:#b54e45; }
.chart-box { height:360px; position:relative; }
.comparison-chart { height:290px; margin:18px 0; }
.caption { font-size:11px; margin-top:18px; }
.notice { font-size:12px; color:#806226; margin-top:8px; }
.conditions { border-bottom:1px solid var(--line); padding:14px 0; font-size:12px; }
summary { cursor:pointer; color:var(--muted); }
.conditions [data-part="conditionsText"] { padding:15px 0 4px; }
.conditions [data-part="conditionsText"] p { margin:0 0 8px; overflow-wrap:anywhere; }
.conditions [data-part="conditionsText"] pre { white-space:pre-wrap; overflow-wrap:anywhere; background:#fafafa; padding:14px; font-size:11px; }
.table-heading { margin:28px 0 12px; }
.table-heading span { font-size:12px; }
.table-scroll { overflow-x:auto; border:1px solid var(--line); }
table { width:100%; border-collapse:collapse; white-space:nowrap; font-variant-numeric:tabular-nums; }
th { text-transform:uppercase; letter-spacing:.035em; color:var(--muted); font-size:10px; font-weight:500; }
th,td { text-align:right; padding:13px 16px; border-bottom:1px solid #f0f0f0; }
th:first-child,td:first-child { text-align:left; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#fafafa; }
td a { text-decoration:underline; text-decoration-color:#ccc; text-underline-offset:3px; }
td details { text-align:left; }
td details a { display:block; margin-top:5px; }
.engine-dot { display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; }
footer { display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:12px; padding-top:30px !important; padding-bottom:32px !important; margin-top:44px !important; border-top:1px solid var(--line); }
#error { margin:24px 0; color:#a53c32; }
@media(max-width:700px) {
 .shell { padding:0 16px; } .masthead { height:65px; gap:12px; } .brand { font-size:18px; } nav { gap:15px; font-size:12px; }
 .condition-bar { align-items:flex-start; flex-direction:column; gap:10px; } .condition-bar>label:first-child { width:100%; } .checkbox { padding-top:0; }
 .plot-panel { padding:17px 12px; } .plot-heading { gap:12px; flex-wrap:wrap; } .delta { text-align:left; } .chart-box { height:300px; }
 footer { flex-direction:column; gap:8px; } th,td { padding:12px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; } }

.scene-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 24px; }
.scene-panel { min-width:0; }
.scene-panel .plot-panel { padding:18px 16px; }
.scene-panel .chart-box { height:280px; }
.scene-panel .plot-heading { flex-direction:column; min-height:118px; }
.scene-panel .delta { text-align:left; }
.measurements { margin-top:14px; font-size:12px; }
@media(max-width:800px) { .scene-grid { grid-template-columns:minmax(0,1fr); } }

.scene-panel h2, .scene-panel .muted { overflow-wrap:anywhere; }

.choice-menu { position:relative; }
.choice-menu>summary { border:1px solid var(--line); padding:8px 12px; color:var(--ink); font-size:12px; }
.choice-menu>summary span { color:var(--muted); margin-left:8px; font-variant-numeric:tabular-nums; }
.scene-options { position:absolute; top:calc(100% + 6px); left:0; z-index:2; background:#fff; border:1px solid var(--line); width:max-content; max-width:calc(100vw - 32px); max-height:320px; overflow:auto; padding:6px; box-shadow:0 6px 18px #1717170d; }
.scene-options label { flex-direction:row; align-items:center; gap:10px; padding:10px 12px; color:var(--ink); cursor:pointer; overflow-wrap:anywhere; }
.scene-options label:hover { background:#f5f5f5; }
.scene-options input { flex-shrink:0; margin:0; }

.metric-more { margin:0 -1px -1px 0; }
.metric-more>summary { padding:8px 10px; white-space:nowrap; }
.metric-more>summary.selected { background:var(--ink); color:#fff; border-color:var(--ink); }
.metric-options { position:absolute; top:calc(100% + 6px); left:0; z-index:2; background:#fff; border:1px solid var(--line); width:max-content; max-width:calc(100vw - 32px); padding:6px; box-shadow:0 6px 18px #1717170d; }
.segments .metric-options button { display:block; width:100%; text-align:left; border:0; margin:0; padding:10px 12px; white-space:normal; }
.metric-options button:hover { background:#f5f5f5; }
.metric-options button[aria-pressed="true"]:hover { background:var(--ink); }

.toolbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px 16px; margin:20px 0 12px; }
.toolbar>label { min-width:0; max-width:100%; }
.toolbar select { width:auto; max-width:min(28ch,100%); height:35px; }
.toolbar>.switch-control { max-width:100%; }
.toolbar>.choice-menu { margin-bottom:-1px; }
.toolbar-meta { display:flex; justify-content:flex-end; margin-bottom:16px; font-size:12px; }
.toolbar-meta .checkbox { padding-top:0; }
@media(max-width:700px) { .toolbar { gap:12px; } .toolbar select { max-width:min(24ch,100%); } }

.choice-menu:not([open])>div { display:none; }
