:root { --line: color-mix(in srgb, var(--fg) 22%, var(--bg)); --muted: color-mix(in srgb, var(--fg) 65%, var(--bg)); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--font-ui); }
header, main { max-width: 1200px; margin: auto; padding: 24px; }
header { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
header span { margin-left: auto; font-size: 12px; letter-spacing: .08em; }
h1 { font-size: clamp(28px, 5vw, 44px); margin: 16px 0 4px; }
h2 { font-size: 21px; margin: 0; } h3 { font-size: 14px; margin: 0 0 12px; }
p { margin: 12px 0; } a { color: inherit; text-underline-offset: 4px; }
.intro { font-size: 18px; } .muted { color: var(--muted); }
.selectors, .assembly { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.selectors { margin: 32px 0 16px; }
.selectors { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); }
label { display: grid; gap: 8px; min-width: 0; }
button, select, input { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; min-height: 44px; padding: 8px 12px; max-width: 100%; }
select { width: 100%; } button { cursor: pointer; } button:disabled { opacity: .45; cursor: default; }
button:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 7%, var(--bg)); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.metrics { font-size: 18px; } .links, .controls, .section-title { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; }
.links { font-size: 13px; } .section-title { justify-content: space-between; }
details, .program { border-top: 1px solid var(--line); padding: 20px 0; margin-top: 20px; }
summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
.table-scroll { overflow: auto; } table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: right; }
th:first-child, td:first-child { text-align: left; } caption { text-align: left; white-space: normal; margin-bottom: 12px; color: var(--muted); }
.assembly { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin: 24px 0; }
pre, code, .bitstream { font-family: var(--font-mono, monospace); font-size: 12px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; padding: 16px; margin: 0; background: color-mix(in srgb, var(--fg) 4%, var(--bg)); border-left: 2px solid var(--line); }
#source { min-height: 160px; } #pieces { padding-left: 24px; margin: 0; }
#pieces { max-height: 460px; overflow: auto; overscroll-behavior: contain; padding-right: 8px; }
#pieces li { margin-bottom: 8px; } #pieces button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 12px; }
#pieces .current { border-color: var(--fg); font-weight: bold; } #pieces .upcoming { opacity: .5; }
#pieces .label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bitstream { overflow-wrap: anywhere; color: var(--muted); }
#entries details { margin: 0; padding: 4px 0; }
#entries summary { font-family: var(--font-mono, monospace); font-size: 12px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 700px) { header, main { padding: 16px; } header { gap: 12px; } header span { font-size: 10px; } .selectors, .assembly { grid-template-columns: minmax(0, 1fr); gap: 16px; } .controls button { flex: 1 1 40%; } .section-title { align-items: flex-start; } }
