:root {
color-scheme: dark;
--bg: #0a0a0b;
--surface: #121214;
--raised: #17171b;
--hair: #26262b;
--text: #e6e6e9;
--muted: #8a8a93;
--faint: #55555c;
--amber: #ff7a1a;
--warning: #f5a623;
--error: #ff5c5c;
--error-bg: #ff5c5c14;
--success: #46d39a;
--success-bg: #46d39a14;
--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
--sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: light) {
:root {
color-scheme: light;
--bg: #f7f7f5;
--surface: #ffffff;
--raised: #ffffff;
--hair: #e2e2dd;
--text: #16161a;
--muted: #6b6b72;
--faint: #a3a39c;
--amber: #e0570b;
--error: #c7382f;
--error-bg: #c7382f14;
--success: #1e9e6a;
--success-bg: #1e9e6a14;
}
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family: var(--sans);
font-size: 0.875rem;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.body {
display: flex;
flex: 1;
min-height: 0;
}
.boot {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 100vh;
padding: 2rem;
text-align: center;
color: var(--muted);
}
.boot-glyph {
font-family: var(--mono);
font-size: 1.5rem;
color: var(--faint);
}
.boot p {
max-width: 34rem;
}
.boot-hint {
color: var(--muted);
font-size: 0.8125rem;
}
.boot code {
font-family: var(--mono);
color: var(--text);
}
.boot--error .boot-glyph {
color: var(--warning);
}
[hidden] {
display: none !important;
}
@media (prefers-reduced-motion: no-preference) {
.boot-glyph {
animation: boot-pulse 1.6s ease-in-out infinite;
}
}
@keyframes boot-pulse {
0%,
100% {
opacity: 0.55;
}
50% {
opacity: 1;
}
}
.hdr {
display: flex;
align-items: baseline;
gap: 1rem;
padding: 0.5rem 0.875rem;
border-bottom: 1px solid var(--hair);
background: var(--surface);
font-family: var(--mono);
font-size: 0.75rem;
}
.logo {
color: var(--text);
font-weight: 700;
letter-spacing: -0.01em;
}
.logo-glyph {
color: var(--muted);
}
.pair {
color: var(--text);
}
.pair b {
font-weight: 600;
}
.role {
color: var(--muted);
}
.vs {
color: var(--faint);
}
.verdict {
color: var(--text);
font-variant-numeric: tabular-nums;
text-decoration: none;
}
.verdict--fork:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.verdict:focus-visible {
outline: 1px solid var(--hair);
outline-offset: 2px;
border-radius: 2px;
}
.meta {
margin-left: auto;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.canvas {
flex: 1;
min-width: 0;
min-height: 12rem;
overflow: auto;
}
.track {
position: relative;
min-height: 100%;
background-image: radial-gradient(circle, var(--hair) 1px, transparent 1px);
background-size: 22px 22px;
}
.spine {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
.spine-rail {
stroke: var(--faint);
stroke-width: 1;
}
.spine-path {
stroke: var(--amber);
stroke-width: 2;
}
.fork-node {
fill: var(--amber);
}
.rows {
list-style: none;
width: fit-content;
margin-left: 28px;
padding: 18px 0;
}
.row {
display: grid;
grid-template-columns: 104px 300px 300px auto;
align-items: center;
column-gap: 18px;
height: 30px;
padding: 0 14px;
font-family: var(--mono);
font-size: 0.75rem;
color: var(--muted);
font-variant-numeric: tabular-nums;
cursor: pointer;
scroll-margin-top: 96px;
}
.row:hover:not(.row--selected) {
background: var(--surface);
}
.row:focus-visible {
outline: none;
box-shadow: inset 0 0 0 2px var(--muted);
}
.gutter {
display: flex;
align-items: baseline;
gap: 8px;
}
.cue {
width: 0.9em;
display: inline-block;
text-align: center;
color: var(--faint);
}
.idx {
color: var(--muted);
}
.cell {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 0;
}
.kind {
width: 40px;
color: var(--faint);
}
.name {
width: 104px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sum {
flex: 1;
min-width: 0;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.slot-trunc {
border: none;
background: none;
padding: 0;
margin: 0;
font: inherit;
color: var(--muted);
}
button.slot-trunc {
cursor: pointer;
transition: color 150ms ease-out;
}
button.slot-trunc:hover {
color: var(--text);
text-decoration: underline dotted;
}
button.slot-trunc:focus-visible {
color: var(--text);
text-decoration: underline dotted;
outline: 2px solid var(--muted);
outline-offset: 1px;
}
button.slot-trunc:disabled {
cursor: default;
opacity: 0.6;
text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
button.slot-trunc {
transition: none;
}
}
.row--fork {
color: var(--amber);
background: rgba(255, 122, 26, 0.05);
border-radius: 4px;
outline: 1px dashed var(--amber);
outline-offset: -1px;
}
.row--down {
color: var(--amber);
}
.row--fork .idx,
.row--fork .kind,
.row--fork .name,
.row--fork .sum,
.row--fork .cue,
.row--down .idx,
.row--down .kind,
.row--down .name,
.row--down .sum,
.row--down .cue {
color: var(--amber);
}
.tag {
justify-self: end;
white-space: nowrap;
color: var(--amber);
font-variant-numeric: tabular-nums;
}
.row--selected {
background: var(--raised);
box-shadow: inset 0 0 0 1px var(--hair);
}
@media (prefers-reduced-motion: no-preference) {
.fork-node {
transform-box: fill-box;
transform-origin: center;
animation: fork-ignite 200ms ease-out both;
}
.spine-path {
transform-box: fill-box;
transform-origin: top;
animation: path-flow 300ms ease-out 80ms both;
}
.row--fork,
.row--down {
animation: row-kindle 300ms ease-out 80ms both;
}
}
@keyframes fork-ignite {
from {
opacity: 0;
transform: scale(0.2);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes path-flow {
from {
transform: scaleY(0);
}
to {
transform: scaleY(1);
}
}
@keyframes row-kindle {
from {
opacity: 0.4;
}
to {
opacity: 1;
}
}
.attr {
flex: 0 0 320px;
border-left: 1px solid var(--hair);
background: var(--surface);
padding: 16px 18px;
font-family: var(--mono);
font-size: 0.75rem;
overflow-y: auto;
}
.attr-title {
margin-bottom: 14px;
font-size: 0.625rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
}
.attr-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.attr-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 14px;
}
.attr-row dt {
color: var(--muted);
}
.attr-row dd {
color: var(--text);
text-align: right;
font-variant-numeric: tabular-nums;
}
.attr-empty {
color: var(--muted);
line-height: 1.6;
}
.attr-section {
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid var(--hair);
}
.attr-section .attr-title {
margin-bottom: 10px;
}
.content-diff,
.content-diff-empty {
margin-top: 18px;
padding-top: 14px;
border-top: 1px solid var(--hair);
}
.content-diff {
display: flex;
flex-direction: column;
gap: 12px;
}
.content-diff-empty {
color: var(--muted);
line-height: 1.6;
}
.content-diff-field {
display: flex;
flex-direction: column;
gap: 3px;
}
.content-diff-path {
color: var(--muted);
font-size: 0.6875rem;
}
.content-diff-del,
.content-diff-add {
display: flex;
gap: 6px;
padding: 2px 6px;
border-radius: 3px;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.content-diff-del {
color: var(--error);
background: var(--error-bg);
}
.content-diff-add {
color: var(--success);
background: var(--success-bg);
}
.content-diff-sign {
flex: 0 0 auto;
font-variant-numeric: tabular-nums;
opacity: 0.85;
}
.content-diff-val {
flex: 1;
min-width: 0;
}
.content-diff-copy {
align-self: flex-end;
margin-bottom: -4px;
padding: 2px 8px;
border: 1px solid var(--hair);
border-radius: 4px;
background: var(--surface);
color: var(--muted);
font-family: var(--mono);
font-size: 0.6875rem;
cursor: pointer;
transition:
color 150ms ease-out,
background 150ms ease-out,
border-color 150ms ease-out;
}
.content-diff-copy:hover {
background: var(--raised);
color: var(--text);
border-color: var(--muted);
}
.content-diff-copy:focus-visible {
outline: 2px solid var(--muted);
outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
.content-diff-copy {
transition: none;
}
}
.banner {
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 0.5rem 0.875rem;
border-top: 1px solid var(--warning);
background: rgba(245, 166, 35, 0.08);
font-family: var(--mono);
font-size: 0.75rem;
color: var(--warning);
}
.banner code {
color: var(--text);
}