@font-face { font-family: Newsreader; src: url('/fonts/newsreader-variable-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Cormorant; src: url('/fonts/cormorant-garamond-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root { color-scheme: light; --background: #faf9f6; --foreground: #20221f; --muted: #66685f; --border: #d5d6ce; --grid: #e8e8e1; --direct: #3c678c; --queue: #9a4b24; --pr: #5b6e3a; --bypass: #006b64; --accent: #b22723; --surface: #f0f0e9; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 15px/1.6 system-ui, sans-serif; }
main { max-width: 1120px; margin: auto; padding: 36px 40px 56px; }
header { max-width: 760px; margin-bottom: 40px; }
.home { color: var(--muted); text-decoration: none; font-size: 13px; }
h1 { font: 700 clamp(36px, 5vw, 56px)/1.05 Cormorant, Georgia, serif; margin: 28px 0 16px; text-wrap: balance; }
h2 { font: 500 23px/1.3 Newsreader, Georgia, serif; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
p { margin: 0 0 16px; max-width: 75ch; text-wrap: pretty; }
.intro { font: 400 23px/1.4 Newsreader, Georgia, serif; }
section { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
button, input { font: inherit; }
button { border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--foreground); padding: 7px 12px; font-size: 13px; cursor: pointer; }
button[aria-pressed=true] { background: var(--surface); border-color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
@media (hover: hover) { button:not(:disabled):hover { background: var(--surface); border-color: var(--muted); } a:hover { text-decoration-thickness: 2px; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:active:not(:disabled) { transform: translateY(1px); }
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 12px; margin: 12px 0; align-items: end; }
.experiment .section-heading { flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 20px; }
.experiment .section-heading h2 { margin: 0; }
.experiment #reset { margin-left: auto; }
.experiment button:not(.info-button) { padding: 5px 10px; font-size: 12px; }
#primary-controls { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 0; align-items: stretch; }
.parameter-group { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; }
.parameter-group + .parameter-group { border-top: 1px solid var(--grid); }
.parameter-group h3 { margin: 0; font-size: 12px; }
.group-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.experiment .control { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.experiment .group-fields .control { min-height: 40px; }
.experiment .control-heading { align-items: center; min-width: 0; }
.experiment .parameter-value { flex: none; margin: 0; gap: 4px; }
.group-fields .parameter-value { width: 81px; }
.experiment .control input[type=number] { width: 54px; padding: 3px 5px; }
.experiment .unit { width: 23px; }
.experiment-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; padding-top: 10px; border-top: 1px solid var(--grid); }
.extra-settings { display: grid; gap: 4px; }
.extra-settings details { margin: 0; }
.extra-settings .controls { grid-template-columns: 1fr; min-width: 300px; }
.experiment .run-settings { margin: 0; gap: 8px; }
.experiment #seed { width: 60px; padding: 3px 5px; }
.control-heading { display: flex; align-items: baseline; gap: 2px; }
.control label { display: block; font-size: 13px; line-height: 1.4; }
.parameter-value { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.control input[type=number] { width: 100%; min-width: 0; margin: 0; padding: 4px 8px; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.control input:invalid { border-color: var(--accent); }
.unit { color: var(--muted); font-size: 12px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.45; display: block; }
details { margin: 18px 0; }
summary { cursor: pointer; font-size: 13px; width: fit-content; }
details[open] > summary { margin-bottom: 14px; }
.run-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
#presets { margin: 0; }
.run-settings label { font-size: 13px; }
input[type=number] { width: 125px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--background); color: var(--foreground); margin-left: 8px; text-align: right; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#run-status { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
#run-status:empty { display: none; }
.caption { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.comparison-scroll { overflow-x: auto; }
.comparison { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); min-width: 720px; gap: 8px 24px; align-items: center; margin: 24px 0 28px; font-size: 13px; font-variant-numeric: tabular-nums; }
.comparison .column-label { color: var(--muted); font-size: 12px; }
.info-button { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; color: var(--muted); vertical-align: middle; }
.info-button span { display: block; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; line-height: 12px; text-align: center; }
.help-tooltip { inset: auto; margin: 0; width: 300px; max-width: calc(100vw - 32px); padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--background); color: var(--foreground); font-size: 13px; line-height: 1.5; box-shadow: 0 4px 16px #20221f18; }
.strategy-help { width: 420px; max-height: 70vh; overflow-y: auto; padding: 16px 18px; }
.strategy-help p:last-child { margin-bottom: 0; }
.strategy-name { font-weight: 500; }
.strategy-name small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.bar-cell { padding: 7px 0; }
.bar-value { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.bar-value small { font-size: 11px; color: var(--muted); }
.bar-track { height: 5px; background: var(--grid); }
.bar { height: 5px; background: currentColor; }
.direct { color: var(--direct); }
.queue { color: var(--queue); }
.pr { color: var(--pr); }
.bypass { color: var(--bypass); }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.scroll-hint { display: none; }
table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { text-align: left; font-weight: 500; font-size: 14px; padding-bottom: 8px; }
th, td { text-align: right; border-bottom: 1px solid var(--grid); padding: 8px 12px; font-weight: 400; }
th { color: var(--muted); border-bottom-color: var(--border); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
figure { margin: 28px 0 0; min-width: 0; }
figcaption p { margin-bottom: 8px; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot text { font: 11px system-ui, sans-serif; fill: var(--muted); font-variant-numeric: tabular-nums; }
.plot .end-label { font-size: 11px; paint-order: stroke; stroke: var(--background); stroke-width: 4px; stroke-linejoin: round; }
.plot .grid { stroke: var(--grid); stroke-width: 1; }
.plot .baseline { stroke: var(--border); }
.plot .series { fill: none; stroke-width: 2; stroke-linejoin: round; }
.commit-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 14px 0; font-size: 12px; }
.commit-legend span { display: inline-flex; align-items: center; gap: 6px; }
.commit-legend svg, .commit-mark svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.commit-legend .failed, .commit-mark.failed { color: var(--accent); }
.commit-legend .pending, .commit-mark.pending { color: var(--muted); }
.repair-outline { fill: none; stroke: currentColor; stroke-width: 1; }
#commit-detail { min-height: 3.2em; margin-bottom: 8px; }
.commit-lane { padding: 10px 0; margin: 0; border-top: 1px solid var(--grid); }
.commit-lane > summary { font-weight: 500; }
.commit-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; max-height: 240px; overflow-y: auto; margin: 8px 0; padding: 5px; }
.commit-mark { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 2px; border-color: transparent; color: inherit; }
.commit-mark:hover, .commit-mark:focus-visible { background: var(--surface); border-color: var(--muted); }
.model { max-width: 100%; }
.model > h3 { margin-top: 28px; }
.model > p { font-size: 14px; }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 780px) { main { padding: 24px; } .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scroll-hint { display: block; } }
@media (max-width: 780px) { #commit-detail { min-height: 6.4em; } }
@media (max-width: 780px) { .parameter-group { grid-template-columns: 1fr; gap: 6px; } .group-fields { grid-template-columns: 1fr; gap: 4px; } .experiment .section-heading h2 { flex-basis: 100%; max-width: none; } .experiment .control { min-height: 32px; } }
@media (max-width: 440px) { main { padding: 20px 16px; } .comparison { column-gap: 16px; font-size: 12px; } .bar-value { flex-direction: column; gap: 0; } .comparison .column-label { font-size: 11px; } .controls { column-gap: 20px; } .section-heading h2 { max-width: 180px; } .intro { font-size: 21px; } }
