Files
pplus-web/styles/course/asm86.css
T
2026-10-05 03:03:38 +00:00

2774 lines
56 KiB
CSS

/* widgets/asm86.css -- styling for the x86-64 teaching widgets.
Load AFTER widgets/kit.css, which holds the color roles (amber = something
changed on this step, blue = a memory load, green = a recorded match,
purple = a memory store, red = a mismatch or a branch mispredicting often
enough to cost time), dark mode, and the rules shared with the pseudocode
lab.
The hardware views keep those meanings. A cache hit is green and a miss
is red, read the same way as a match and a mismatch; a load's path
through the memory hierarchy is blue and a store's is purple. Machine
code needs more categories than five, so the encoding view has its own
small palette (--a86-enc-*), and always writes each byte's role under it
so color is never the only signal. */
.a86 {
--a86-enc-prefix: #6b6f76;
--a86-enc-rex: #9a3f7a;
--a86-enc-opcode: #8a5c05;
--a86-enc-modrm: #17618f;
--a86-enc-sib: #266a41;
--a86-enc-disp: #6a4299;
--a86-enc-imm: #93291f;
}
body.quarto-dark .a86,
[data-bs-theme="dark"] .a86 {
--a86-enc-prefix: #a9aeb5;
--a86-enc-rex: #e39acb;
--a86-enc-opcode: #e0a93a;
--a86-enc-modrm: #6fb4e3;
--a86-enc-sib: #74c391;
--a86-enc-disp: #c0a0e0;
--a86-enc-imm: #e08a80;
/* a touch stronger than the shared 22%, so green reads against a dark page */
--w-match-bg: color-mix(in srgb, var(--w-match) 24%, var(--w-page));
}
/* Fallback for browsers without color-mix(). */
@supports not (background: color-mix(in srgb, white 50%, black)) {
.a86 {
--w-surface: #ffffff;
}
.a86-enc-part {
background: var(--w-surface-2);
}
body.quarto-dark .a86 {
--w-surface: #1a1e23;
}
}
/* --------------------------------------------------- inherited code style
Quarto styles bare <code> with its own background, padding, and color.
Inside a widget every register value, letter, and instruction is a <code>,
so that styling turns each one into a little tinted chip fighting the
panel it sits in. The :not() raises specificity above Quarto's
`code:not(.sourceCode)` regardless of which stylesheet loads first. */
/* controls -------------------------------------------------------------- */
/* Quarto adds .btn.btn-quarto to buttons in OJS output, and base/site.css
themes those from --bs-btn-*. These rules are the standalone fallback and
deliberately lose to it, so a widget inside the site matches every other
button on the site. */
/* Kept at one class so site styling still wins on padding and background,
while the primary action stays marked. */
/* layout ---------------------------------------------------------------- */
/* The program listing needs more width than any state panel, because its
longest line is fixed and cannot reflow. An even split clipped
`movzx r8d, byte ptr [rdi + rcx*1]` mid-operand. */
@media (min-width: 720px) {
.a86-two-column .a86-grid {
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.a86-two-column .a86-span-2,
.a86-two-column .a86-mem-panel,
.a86-two-column .a86-vec-panel,
.a86-two-column .a86-flow-panel,
.a86-two-column .a86-path-panel,
.a86-two-column .a86-code-panel.is-wide,
.a86-two-column .a86-bits-panel,
.a86-two-column .a86-cache-panel,
.a86-two-column .a86-pipe-panel,
.a86-two-column .a86-tl-panel,
.a86-two-column .a86-core-panel,
.a86-two-column .a86-chip-panel,
.a86-two-column .a86-uops-panel,
.a86-two-column .a86-bn-panel {
grid-column: 1 / -1;
}
}
/* ------------------------------------------------------------ fullscreen
A fixed overlay rather than the browser's own fullscreen mode: it behaves
the same in every browser, needs no permission, and leaves the page
exactly as it was on the way out. Above Bootstrap's fixed navbar at 1030.
The extra room goes to the text first: the widget's one font size grows
with the window, from the page size on a laptop to about 1.3 times it on a
large monitor. The panels then share each row with flexbox rather than a
grid. A grid with a full-width listing keeps every column it made alive,
so three panels in a row of five sat at a fifth of the width each and
left the rest blank; flex rows always fill. */
.a86.is-fullscreen .a86-grid>* {
flex: 1 1 calc(var(--w-fs) * 21);
}
/* A diagram asks for the width at which its labels match the text around
it (see the diagram sizes below), so it shares a row only when there is
room for that, and otherwise takes a row of its own. */
.a86.is-fullscreen .a86-grid>.a86-path-panel,
.a86.is-fullscreen .a86-grid>.a86-flow-panel {
flex-basis: calc(var(--w-fs) * 60);
}
.a86.is-fullscreen .a86-grid>.a86-cache-panel,
.a86.is-fullscreen .a86-grid>.a86-mem-panel,
.a86.is-fullscreen .a86-grid>.a86-stack-panel {
flex-basis: calc(var(--w-fs) * 32);
}
.a86.is-fullscreen .a86-grid>.a86-code-panel,
.a86.is-fullscreen .a86-grid>.a86-pipe-panel,
.a86.is-fullscreen .a86-grid>.a86-tl-panel,
.a86.is-fullscreen .a86-grid>.a86-chip-panel,
.a86.is-fullscreen .a86-grid>.a86-core-panel,
.a86.is-fullscreen .a86-grid>.a86-bits-panel,
.a86.is-fullscreen .a86-grid>.a86-span-2 {
flex-basis: 100%;
}
/* Never so tall that a diagram pushes the rest of the widget off screen. */
.a86.is-fullscreen .a86-path-svg,
.a86.is-fullscreen .a86-flow-svg,
.a86.is-fullscreen .a86-chip-svg,
.a86.is-fullscreen .a86-tl-svg {
max-height: 70vh;
}
/* Diagram sizes. Each diagram is drawn about 700 units wide with 12-unit
labels, so capping it near 58 times the widget's font size makes a label
come out close to the size of the text around it, at any zoom, in the
page or in fullscreen. A fixed pixel cap made the labels shrink to half
the text size in a wide panel. */
.a86 .a86-path-svg,
.a86 .a86-flow-svg,
.a86 .a86-tl-svg {
max-width: calc(var(--w-fs) * 58);
}
.a86 .a86-chip-svg {
max-width: calc(var(--w-fs) * 62);
}
.a86-panel {
background: var(--w-surface);
border: 1px solid var(--w-rule);
border-radius: 4px;
padding: 0.55rem 0.65rem;
min-width: 0;
overflow: hidden;
}
/* code listing ---------------------------------------------------------- */
.a86-code {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.93);
line-height: 1.55;
overflow-x: auto;
/* Set by codeView from the longest instruction in the program, in
characters. The instruction column is therefore exactly wide enough
and never clips, and comments line up in a column across every row. */
--a86-code-cols: 48ch;
}
.a86-code-row {
display: grid;
grid-template-columns: calc(var(--w-fs) * 2.24) calc(var(--w-fs) * 0.94) var(--a86-code-cols) minmax(0, 1fr);
align-items: baseline;
border-left: 2px solid transparent;
padding-left: 0.15rem;
background: color-mix(in srgb, var(--w-change-bg) calc(var(--heat, 0) * 70%), transparent);
}
/* A comment on a line of its own takes the width of both remaining cells. */
.a86-code-row.is-note {
grid-template-columns: calc(var(--w-fs) * 2.24) calc(var(--w-fs) * 0.94) minmax(0, 1fr);
}
.a86-code-count {
color: var(--w-dim);
font-size: calc(var(--w-fs) * 0.85);
text-align: right;
padding-right: 0.3rem;
}
.a86-code-text {
white-space: pre;
font-size: inherit;
}
/* The comment takes whatever width is left and wraps into it, so a narrow
panel costs a comment an extra line rather than costing the instruction
its tail. */
.a86-code-comment {
color: var(--w-dim);
font-weight: 400;
white-space: normal;
padding-left: 0.5rem;
text-indent: 0;
}
.a86-code-row.is-note .a86-code-comment {
padding-left: 0;
white-space: pre-wrap;
}
/* With addresses and bytes, two more columns sit before the instruction,
as in objdump's output. Label and note rows leave them empty. */
.a86-code.has-machine .a86-code-row {
grid-template-columns: calc(var(--w-fs) * 2.24) calc(var(--w-fs) * 0.94) var(--a86-addr-cols) var(--a86-bytes-cols) var(--a86-code-cols) minmax(0, 1fr);
}
.a86-code.has-machine .a86-code-row.is-note,
.a86-code.has-machine .a86-code-row.a86-code-label {
grid-template-columns: calc(var(--w-fs) * 2.24) calc(var(--w-fs) * 0.94) minmax(0, 1fr);
}
.a86-code-addr {
color: var(--w-dim);
}
.a86-code-bytes {
color: var(--w-read);
white-space: pre;
}
.a86-code-addr,
.a86-code-bytes {
font-size: inherit;
}
.a86-code-row.is-error .a86-code-marker {
color: var(--w-miss);
}
.a86-code-failed .a86-code-row {
grid-template-columns: calc(var(--w-fs) * 2.24) calc(var(--w-fs) * 0.94) minmax(0, 1fr);
}
.a86-code-blank .a86-code-text {
color: var(--w-dim);
}
.a86-code-label .a86-code-text {
color: var(--w-read);
}
.a86-code-row.is-next {
border-left-color: var(--w-change);
background: var(--w-change-bg);
font-weight: 600;
}
/* registers ------------------------------------------------------------- */
.a86-regs {
display: grid;
/* Wide enough for 0x and 16 hex digits on one line in the value's own
monospace size (about 0.6em a character), plus the card's padding. */
grid-template-columns: repeat(auto-fill, minmax(calc(var(--w-fs) * 10.2 + 1.1rem), 1fr));
gap: 0.35rem;
}
.a86-reg {
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.3rem 0.4rem;
background: var(--w-surface-2);
display: flex;
flex-direction: column;
gap: 0.05rem;
min-width: 0;
}
.a86-reg-name {
font-family: var(--w-mono);
font-weight: 700;
font-size: calc(var(--w-fs) * 0.95);
}
.a86-reg-role {
font-family: var(--w-sans);
font-size: calc(var(--w-fs) * 0.86);
color: var(--w-dim);
}
.a86-reg-value {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.9);
overflow-wrap: anywhere;
line-height: 1.3;
}
.a86-reg-prev {
font-size: calc(var(--w-fs) * 0.85);
color: var(--w-dim);
min-height: 0.8rem;
}
.a86-reg.is-changed {
border-color: var(--w-change);
background: var(--w-change-bg);
animation: a86-pulse 420ms ease-out;
}
.a86-reg.is-changed .a86-reg-value {
color: var(--w-change);
font-weight: 700;
}
.a86-reg-widths {
margin-top: 0.3rem;
border-top: 1px dashed var(--w-rule);
padding-top: 0.25rem;
}
.a86-width-row {
display: grid;
grid-template-columns: calc(var(--w-fs) * 2.83) 1fr auto;
gap: 0.3rem;
font-size: calc(var(--w-fs) * 0.87);
}
.a86-width-name {
font-family: var(--w-mono);
color: var(--w-read);
}
.a86-width-bits {
font-family: var(--w-mono);
}
.a86-width-size {
font-family: var(--w-sans);
color: var(--w-dim);
}
@keyframes a86-pulse {
from {
box-shadow: 0 0 0 3px var(--w-change-bg);
}
to {
box-shadow: 0 0 0 0 transparent;
}
}
@media (prefers-reduced-motion: reduce) {
.a86-reg.is-changed,
.a86-flag.is-changed,
.a86-cell.is-read {
animation: none;
}
}
.a86-explain-fault {
color: var(--w-miss);
background: var(--w-miss-bg);
border-left: 3px solid var(--w-miss);
padding: 0.3rem 0.5rem;
}
/* flags ----------------------------------------------------------------- */
.a86-flags {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.a86-flag {
display: flex;
align-items: center;
gap: 0.3rem;
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.25rem 0.45rem;
background: var(--w-surface-2);
cursor: help;
}
.a86-flag-name {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.91);
}
.a86-flag-dot {
width: calc(var(--w-fs) * 0.65);
height: 0.55rem;
border-radius: 50%;
border: 1px solid var(--w-rule);
background: transparent;
}
.a86-flag-value {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.88);
color: var(--w-dim);
}
.a86-flag.is-on {
border-color: var(--w-change);
}
.a86-flag.is-on .a86-flag-dot {
background: var(--w-change);
border-color: var(--w-change);
}
.a86-flag.is-changed {
background: var(--w-change-bg);
animation: a86-pulse 420ms ease-out;
}
/* A flag the last conditional instruction consulted gets a solid read-blue
ring; one the next instruction will consult, a dashed one. */
.a86-flag.is-consulted {
box-shadow: 0 0 0 2px var(--w-read);
}
.a86-flag.is-wanted {
outline: 1px dashed var(--w-read);
outline-offset: 2px;
}
.a86-flag-reading {
color: var(--w-read);
}
.a86-flag-note {
font-size: calc(var(--w-fs) * 0.9);
color: var(--w-dim);
margin: 0.4rem 0 0;
min-height: 1.1rem;
}
/* memory strip ---------------------------------------------------------- */
.a86-mem {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.a86-strip-wrap {
display: flex;
align-items: flex-start;
gap: 0.5rem;
min-width: 0;
}
.a86-strip-label {
display: flex;
flex-direction: column;
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.93);
padding-top: 0.15rem;
}
.a86-strip-addr {
font-size: calc(var(--w-fs) * 0.83);
color: var(--w-dim);
}
.a86-strip {
display: flex;
overflow-x: auto;
padding-bottom: 0.15rem;
}
.a86-cell {
display: flex;
flex-direction: column;
align-items: center;
min-width: calc(var(--w-fs) * 1.59);
border: 1px solid var(--w-rule);
border-right-width: 0;
background: var(--w-surface);
}
.a86-cell:last-child {
border-right-width: 1px;
}
.a86-cell-letter {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.98);
line-height: 1.5;
}
.a86-cell-pos {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.8);
color: var(--w-dim);
border-top: 1px solid var(--w-rule);
width: 100%;
text-align: center;
}
.a86-cell.in-window {
background: var(--w-surface-2);
}
.a86-cell.is-match {
background: var(--w-match-bg);
}
.a86-cell.is-match .a86-cell-letter {
color: var(--w-match);
font-weight: 700;
}
.a86-cell.is-read {
background: var(--w-read-bg);
border-color: var(--w-read);
border-right-width: 1px;
margin-right: -1px;
position: relative;
z-index: 1;
animation: a86-pulse 420ms ease-out;
}
.a86-cell.is-read .a86-cell-letter {
color: var(--w-read);
font-weight: 700;
}
.a86-cell.is-write {
background: var(--w-write-bg);
border-color: var(--w-write);
}
.a86-cell.is-write .a86-cell-letter {
color: var(--w-write);
font-weight: 700;
}
/* address arithmetic ---------------------------------------------------- */
.a86-addr-sum {
display: flex;
flex-wrap: wrap;
align-items: stretch;
gap: 0.3rem;
}
.a86-addr-part {
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.25rem 0.4rem;
background: var(--w-surface-2);
display: flex;
flex-direction: column;
min-width: 0;
}
.a86-addr-part.is-result {
border-color: var(--w-read);
background: var(--w-read-bg);
}
.a86-addr-role {
font-family: var(--w-sans);
font-size: calc(var(--w-fs) * 0.83);
color: var(--w-dim);
}
.a86-addr-expr {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.89);
}
.a86-addr-val {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.91);
font-weight: 600;
}
.a86-addr-op {
align-self: center;
color: var(--w-dim);
font-size: calc(var(--w-fs) * 1);
}
.a86-addr-note {
font-size: calc(var(--w-fs) * 0.91);
color: var(--w-dim);
margin: 0.45rem 0 0;
}
/* data flow ------------------------------------------------------------- */
/* Both diagrams are drawn at a fixed size in their viewBox. Stretched to a
full-width panel they scaled up by a third, which made their labels
larger than the body text around them. Capping the width keeps them in
proportion; the font sizes below are set for that capped size. */
.a86-flow-svg {
display: block;
width: 100%;
max-width: 820px;
height: auto;
margin: 0 auto;
}
.a86-flow-box rect {
fill: var(--w-surface-2);
stroke: var(--w-rule);
}
.a86-flow-box.is-source rect {
stroke: var(--w-read);
}
.a86-flow-box.is-dest rect {
fill: var(--w-change-bg);
stroke: var(--w-change);
}
.a86-flow-box.is-flags rect {
fill: var(--w-surface-2);
stroke: var(--w-change);
stroke-dasharray: 3 2;
}
.a86-flow-box.is-control rect {
fill: var(--w-match-bg);
stroke: var(--w-match);
}
.a86-flow-label {
font-family: var(--w-mono);
font-size: 12px;
fill: var(--w-dim);
}
.a86-flow-value {
font-family: var(--w-mono);
font-size: 14px;
fill: var(--w-ink);
font-weight: 600;
}
/* Only the flow arrows get the flow marker. The earlier combined rule also
matched .a86-path-edge and pointed it at a marker that exists in a
different svg, which silently removed every datapath arrowhead. */
.a86-flow-arrow {
stroke: var(--w-dim);
stroke-width: 1.2;
fill: none;
}
.a86-flow-svg path[marker-end] {
fill: none;
}
.a86-flow-svg marker path {
fill: var(--w-dim);
stroke: none;
}
.a86-flow-op rect {
fill: var(--w-surface);
stroke: var(--w-ink);
stroke-width: 1.4;
}
.a86-flow-opname {
font-family: var(--w-mono);
font-size: 16px;
font-weight: 700;
fill: var(--w-ink);
}
.a86-flow-opkind {
font-family: var(--w-sans);
font-size: 11px;
fill: var(--w-dim);
}
.a86-flow-gloss {
font-size: calc(var(--w-fs) * 0.93);
color: var(--w-dim);
margin: 0.3rem 0 0;
}
/* datapath -------------------------------------------------------------- */
.a86-path-svg {
display: block;
width: 100%;
max-width: 860px;
height: auto;
margin: 0 auto;
}
.a86-path-node rect {
fill: var(--w-surface-2);
stroke: var(--w-rule);
}
.a86-path-label {
font-family: var(--w-sans);
font-size: 12px;
fill: var(--w-dim);
}
.a86-path-node.is-active rect {
fill: var(--w-change-bg);
stroke: var(--w-change);
stroke-width: 1.6;
}
.a86-path-node.is-active .a86-path-label {
fill: var(--w-ink);
font-weight: 600;
}
.a86-path-edge {
stroke: var(--w-rule);
stroke-width: 1.2;
fill: none;
}
.a86-path-svg marker path {
fill: var(--w-rule);
stroke: none;
}
.a86-path-edge.is-active {
stroke: var(--w-change);
stroke-width: 2;
}
.a86-path-caption {
font-size: calc(var(--w-fs) * 0.93);
color: var(--w-dim);
margin: 0.35rem 0 0;
}
/* explanation ----------------------------------------------------------- */
.a86-explain p {
margin: 0 0 0.4rem;
}
.a86-explain-instr {
font-family: var(--w-mono);
background: var(--w-surface-2);
padding: 0.05rem 0.3rem;
border-radius: 2px;
white-space: pre;
}
.a86-explain-effect {
color: var(--w-change);
}
/* counters -------------------------------------------------------------- */
.a86-counters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(calc(var(--w-fs) * 7.3), 1fr));
gap: 0.4rem;
}
.a86-counter {
display: flex;
flex-direction: column;
padding: 0.3rem 0.45rem;
border: 1px solid var(--w-rule);
border-radius: 3px;
background: var(--w-surface-2);
}
.a86-counter-value {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 1.22);
font-weight: 700;
}
.a86-counter-label {
font-family: var(--w-sans);
font-size: calc(var(--w-fs) * 0.85);
color: var(--w-dim);
line-height: 1.25;
}
/* tables ---------------------------------------------------------------- */
.a86-table {
width: 100%;
border-collapse: collapse;
font-size: calc(var(--w-fs) * 0.91);
}
.a86-table th {
font-family: var(--w-sans);
text-align: left;
font-weight: 600;
color: var(--w-dim);
border-bottom: 1px solid var(--w-rule);
padding: 0.18rem 0.35rem 0.25rem;
font-size: calc(var(--w-fs) * 0.87);
}
.a86-table td {
padding: 0.14rem 0.35rem;
border-bottom: 1px solid var(--w-surface-2);
}
.a86-table tr.is-current {
background: var(--w-change-bg);
}
.a86-table tr.is-current code {
font-weight: 700;
}
.a86-table tr.is-costly td {
color: var(--w-miss);
}
.a86-trace-wrap {
max-height: 15rem;
overflow-y: auto;
}
.a86-trace-step {
color: var(--w-dim);
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.87);
}
/* vector registers ------------------------------------------------------ */
.a86-vecs {
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.a86-vec-row {
display: flex;
align-items: flex-start;
gap: 0.5rem;
min-width: 0;
}
.a86-vec-label {
display: flex;
flex-direction: column;
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.93);
min-width: calc(var(--w-fs) * 4.95);
padding-top: 0.15rem;
}
.a86-vec-role {
font-family: var(--w-sans);
font-size: calc(var(--w-fs) * 0.82);
color: var(--w-dim);
line-height: 1.2;
}
.a86-vec-strip {
display: flex;
overflow-x: auto;
}
.a86-vec-cell {
display: flex;
flex-direction: column;
align-items: center;
min-width: calc(var(--w-fs) * 1.53);
border: 1px solid var(--w-rule);
border-right-width: 0;
background: var(--w-surface);
}
.a86-vec-cell:last-child {
border-right-width: 1px;
}
.a86-vec-val {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.94);
line-height: 1.45;
}
.a86-vec-lane {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.78);
color: var(--w-dim);
border-top: 1px solid var(--w-rule);
width: 100%;
text-align: center;
}
.a86-vec-cell.is-yes {
background: var(--w-match-bg);
}
.a86-vec-cell.is-yes .a86-vec-val {
color: var(--w-match);
font-weight: 700;
}
.a86-vec-cell.is-no .a86-vec-val {
color: var(--w-dim);
}
.a86-vec-cell.is-letter .a86-vec-val {
color: var(--w-ink);
}
.a86-vec-cell.is-bit {
background: var(--w-surface-2);
}
.a86-vec-cell.is-changed {
border-color: var(--w-change);
border-right-width: 1px;
margin-right: -1px;
}
.a86-vec-note {
font-size: calc(var(--w-fs) * 0.9);
color: var(--w-dim);
margin: 0.35rem 0 0;
min-height: 1.1rem;
}
/* ================================================================ hardware
Views from hwviews.js. Same tokens, same rules: everything neutral is
mixed from the page, only the accents are stated. */
.a86-hw-machine {
font-size: calc(var(--w-fs) * 0.87);
color: var(--w-dim);
margin: 0.5rem 0 0;
}
.a86-legend {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 0.9rem;
font-size: calc(var(--w-fs) * 0.88);
color: var(--w-dim);
margin: 0.45rem 0 0;
}
.a86-legend-item {
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.a86-swatch {
display: inline-block;
width: calc(var(--w-fs) * 0.94);
height: 0.65rem;
border-radius: 2px;
border: 1px solid var(--w-rule);
background: var(--w-surface-2);
}
.a86-hier-label {
font-family: var(--w-sans);
font-size: calc(var(--w-fs) * 0.88);
font-weight: 600;
color: var(--w-dim);
margin: 0.6rem 0 0.3rem;
}
/* encoding -------------------------------------------------------------- */
.a86-enc-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.6rem;
margin: 0 0 0.5rem;
}
.a86-enc-addr {
color: var(--w-dim);
font-size: calc(var(--w-fs) * 0.93);
}
.a86-enc-text {
font-weight: 600;
}
.a86-enc-strip {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
margin-bottom: 0.6rem;
}
.a86-enc-part {
--part: var(--a86-enc-prefix);
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid var(--part);
border-radius: 3px;
background: color-mix(in srgb, var(--part) 12%, var(--w-page));
padding: 0.2rem 0.3rem 0.15rem;
}
.a86-enc-part.is-rex,
.a86-enc-detail.is-rex {
--part: var(--a86-enc-rex);
}
.a86-enc-part.is-opcode,
.a86-enc-detail.is-opcode {
--part: var(--a86-enc-opcode);
}
.a86-enc-part.is-modrm,
.a86-enc-detail.is-modrm {
--part: var(--a86-enc-modrm);
}
.a86-enc-part.is-sib,
.a86-enc-detail.is-sib {
--part: var(--a86-enc-sib);
}
.a86-enc-part.is-disp,
.a86-enc-detail.is-disp,
.a86-enc-part.is-rel,
.a86-enc-detail.is-rel {
--part: var(--a86-enc-disp);
}
.a86-enc-part.is-imm,
.a86-enc-detail.is-imm {
--part: var(--a86-enc-imm);
}
.a86-enc-bytes {
display: flex;
gap: 0.25rem;
}
.a86-enc-byte {
font-size: calc(var(--w-fs) * 1.17);
font-weight: 700;
color: var(--part);
}
.a86-enc-kind {
font-size: calc(var(--w-fs) * 0.83);
color: var(--w-dim);
font-family: var(--w-sans);
}
.a86-enc-details {
display: grid;
gap: 0.4rem;
}
.a86-enc-detail {
--part: var(--a86-enc-prefix);
border-left: 3px solid var(--part);
padding: 0.15rem 0 0.2rem 0.5rem;
}
.a86-enc-detail-head {
display: flex;
gap: 0.5rem;
align-items: baseline;
}
.a86-enc-detail-name {
font-weight: 600;
font-size: calc(var(--w-fs) * 0.93);
color: var(--part);
}
.a86-enc-detail-bytes {
font-size: calc(var(--w-fs) * 0.9);
}
.a86-enc-detail-text {
font-size: calc(var(--w-fs) * 0.91);
}
.a86-enc-bits {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.3rem;
}
.a86-enc-field {
display: flex;
flex-direction: column;
min-width: calc(var(--w-fs) * 3.53);
}
.a86-enc-field-bits {
display: flex;
}
.a86-enc-bit {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.95);
width: calc(var(--w-fs) * 1.35);
text-align: center;
border: 1px solid var(--w-rule);
border-right-width: 0;
background: var(--w-surface-2);
}
.a86-enc-bit:last-child {
border-right-width: 1px;
}
.a86-enc-field-name {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.85);
color: var(--part);
font-weight: 600;
}
.a86-enc-field-meaning {
font-size: calc(var(--w-fs) * 0.85);
color: var(--w-dim);
max-width: 16rem;
}
/* bits ------------------------------------------------------------------ */
.a86-bits-title {
margin: 0 0 0.45rem;
}
.a86-bits-grid {
overflow-x: auto;
padding-bottom: 0.2rem;
}
.a86-bits-row {
display: flex;
align-items: center;
gap: 0.5rem;
white-space: nowrap;
}
.a86-bits-label {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.89);
width: calc(var(--w-fs) * 11.19);
flex: none;
text-align: right;
color: var(--w-dim);
overflow: hidden;
text-overflow: ellipsis;
}
.a86-bits-cells {
display: inline-flex;
flex: none;
}
.a86-bits-cell {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.9);
width: calc(var(--w-fs) * 0.92);
text-align: center;
line-height: 1.45;
color: var(--w-dim);
}
.a86-bits-cell.is-nibble {
margin-left: 0.28rem;
}
.a86-bits-extra {
width: calc(var(--w-fs) * 1.3);
color: var(--w-change);
font-weight: 700;
margin-right: calc(var(--w-fs) * 0.24);
border-right: 1px dashed var(--w-rule);
}
.a86-bits-row.is-result .a86-bits-cell {
color: var(--w-ink);
border-top: 1px solid var(--w-ink);
}
.a86-bits-row.is-result .a86-bits-extra {
border-top: 0;
}
.a86-bits-cell.is-one {
color: var(--w-ink);
font-weight: 700;
}
.a86-bits-cell.is-top {
background: var(--w-surface-2);
}
.a86-bits-cell.is-carry {
color: var(--w-change);
font-weight: 700;
}
.a86-bits-row.is-carries .a86-bits-cell {
font-size: calc(var(--w-fs) * 0.84);
}
.a86-bits-row.is-muted .a86-bits-cell {
text-decoration: line-through;
opacity: 0.6;
}
.a86-bits-cell.is-out {
color: var(--w-miss);
font-weight: 700;
outline: 1px solid var(--w-miss);
outline-offset: -1px;
}
.a86-bits-value {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.89);
flex: none;
min-width: 7rem;
}
.a86-bits-note {
font-size: calc(var(--w-fs) * 0.85);
color: var(--w-dim);
white-space: normal;
}
.a86-bits-flags {
list-style: none;
padding: 0;
margin: 0.5rem 0 0;
font-size: calc(var(--w-fs) * 0.91);
display: grid;
gap: 0.15rem;
}
.a86-bits-flagname {
font-weight: 700;
color: var(--w-dim);
}
.a86-bits-flagname.is-on {
color: var(--w-change);
}
.a86-bits-wide p {
margin: 0 0 0.3rem;
}
/* stack ----------------------------------------------------------------- */
.a86-stack-list {
display: flex;
flex-direction: column;
}
.a86-stack-slot {
/* Address, value, and pointer tag stay on one line; the note takes the
rest of the line, and drops to its own line when the panel is narrow,
instead of being squeezed into a column one word wide. */
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: 0.8rem;
row-gap: 0.05rem;
border: 1px solid var(--w-rule);
border-bottom-width: 0;
padding: 0.2rem 0.45rem;
font-size: calc(var(--w-fs) * 0.9);
}
.a86-stack-addr,
.a86-stack-val {
flex: none;
}
.a86-stack-tags {
order: 2;
}
.a86-stack-note {
order: 3;
flex: 1 1 calc(var(--w-fs) * 16.49);
}
.a86-stack-tags:empty {
display: none;
}
.a86-stack-slot:last-child {
border-bottom-width: 1px;
}
.a86-stack-addr {
color: var(--w-dim);
}
.a86-stack-note {
font-size: calc(var(--w-fs) * 0.88);
color: var(--w-dim);
min-width: 0;
}
.a86-stack-slot.is-free {
opacity: 0.5;
background: repeating-linear-gradient(135deg, transparent 0 6px, var(--w-surface-2) 6px 7px);
}
.a86-stack-slot.is-write {
background: var(--w-write-bg);
border-color: var(--w-write);
opacity: 1;
}
.a86-stack-slot.is-write .a86-stack-val {
color: var(--w-write);
font-weight: 700;
}
.a86-stack-slot.is-read {
background: var(--w-read-bg);
border-color: var(--w-read);
}
.a86-stack-slot.is-read .a86-stack-val {
color: var(--w-read);
font-weight: 700;
}
.a86-stack-tags {
display: flex;
gap: 0.25rem;
}
.a86-stack-ptr {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.85);
font-weight: 700;
padding: 0 0.3rem;
border-radius: 2px;
color: var(--w-page);
background: var(--w-change);
}
.a86-stack-ptr.is-rbp {
background: var(--w-dim);
}
.a86-stack-more {
font-size: calc(var(--w-fs) * 0.87);
color: var(--w-dim);
padding: 0 0 0.2rem 0.4rem;
}
.a86-stack-foot {
font-size: calc(var(--w-fs) * 0.9);
margin: 0.45rem 0 0;
}
/* cache ----------------------------------------------------------------- */
.a86-cache-shape {
font-size: calc(var(--w-fs) * 0.93);
margin: 0 0 0.5rem;
}
.a86-cache-access {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem;
margin-bottom: 0.55rem;
}
.a86-cache-access-what {
font-size: calc(var(--w-fs) * 0.93);
}
.a86-split {
display: inline-flex;
}
.a86-split-part {
display: flex;
flex-direction: column;
align-items: center;
padding: 0.1rem 0.35rem;
border: 1px solid var(--w-rule);
border-right-width: 0;
background: var(--w-surface-2);
}
.a86-split-part:last-child {
border-right-width: 1px;
}
.a86-split-part code {
font-size: calc(var(--w-fs) * 0.93);
letter-spacing: 0.04em;
}
.a86-split-part span {
font-size: calc(var(--w-fs) * 0.83);
color: var(--w-dim);
}
.a86-split-part.is-index {
background: var(--w-read-bg);
border-color: var(--w-read);
}
.a86-split-part.is-index code {
color: var(--w-read);
font-weight: 700;
}
.a86-split-part.is-offset code {
color: var(--w-dim);
}
.a86-cache-wrap {
overflow-x: auto;
}
.a86-cache-grid {
border-collapse: collapse;
font-size: calc(var(--w-fs) * 0.89);
}
.a86-cache-grid th {
font-family: var(--w-sans);
font-weight: 600;
color: var(--w-dim);
font-size: calc(var(--w-fs) * 0.85);
padding: 0.1rem 0.35rem;
text-align: left;
}
.a86-cache-grid tbody th {
text-align: right;
font-family: var(--w-mono);
}
.a86-cache-grid tr.is-active th {
color: var(--w-read);
}
.a86-cache-grid tr.is-active td {
border-top-color: var(--w-read);
border-bottom-color: var(--w-read);
}
.a86-cache-cell {
border: 1px solid var(--w-rule);
padding: 0.15rem 0.35rem;
min-width: calc(var(--w-fs) * 11.19);
vertical-align: top;
background: var(--w-surface);
}
.a86-cache-cell>* {
display: block;
}
.a86-cache-cell.is-empty {
background: var(--w-surface-2);
}
.a86-cache-cell.is-hit {
background: var(--w-match-bg);
border-color: var(--w-match);
}
.a86-cache-cell.is-hit .a86-cache-tag {
color: var(--w-match);
font-weight: 700;
}
.a86-cache-cell.is-fill {
background: var(--w-change-bg);
border-color: var(--w-change);
}
.a86-cache-cell.is-fill .a86-cache-tag {
color: var(--w-change);
font-weight: 700;
}
.a86-cache-cell.is-prefetch {
background: var(--w-surface-2);
border-style: dashed;
border-color: var(--w-change);
}
.a86-cache-data {
font-size: calc(var(--w-fs) * 0.94);
letter-spacing: 0.06em;
}
.a86-cache-data.is-hex {
font-size: calc(var(--w-fs) * 0.87);
letter-spacing: 0;
color: var(--w-dim);
}
.a86-cache-meta {
display: flex !important;
gap: 0.4rem;
font-size: calc(var(--w-fs) * 0.83);
color: var(--w-dim);
}
.a86-cache-dirty {
color: var(--w-write);
font-weight: 700;
}
.a86-cache-pf {
color: var(--w-change);
}
.a86-cache-events {
list-style: none;
padding: 0;
margin: 0.5rem 0 0;
font-size: calc(var(--w-fs) * 0.91);
display: grid;
gap: 0.2rem;
}
.a86-cache-events li {
border-left: 3px solid var(--w-rule);
padding-left: 0.45rem;
}
.a86-cache-events li.is-hit {
border-left-color: var(--w-match);
}
.a86-cache-events li.is-miss {
border-left-color: var(--w-miss);
}
.a86-cache-events li.is-prefetch {
border-left-color: var(--w-change);
border-left-style: dashed;
}
.a86-cache-stats {
font-size: calc(var(--w-fs) * 0.9);
color: var(--w-dim);
margin: 0.4rem 0 0;
}
/* hierarchy ------------------------------------------------------------- */
.a86-hier-ladder {
display: flex;
flex-direction: column;
gap: 0.25rem;
container-type: inline-size;
}
.a86-hier-name {
grid-area: name;
}
.a86-hier-shape {
grid-area: shape;
}
.a86-hier-lat {
grid-area: lat;
}
.a86-hier-count {
grid-area: count;
}
.a86-hier-row {
display: grid;
/* level | shape (may wrap) | latency bar and label | counts. The latency
column never goes below what "200 cycles" and a short bar need, and
the counts take exactly their own width, so the two cannot overlap. */
grid-template-areas: "name shape lat count";
grid-template-columns: calc(var(--w-fs) * 5.5) minmax(0, 1fr) minmax(calc(var(--w-fs) * 9.5), 1.2fr) max-content;
gap: 0.5rem;
align-items: center;
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.2rem 0.45rem;
font-size: calc(var(--w-fs) * 0.9);
background: var(--w-surface);
}
/* In a narrow panel the shape moves under the level's name, so the latency
and the counts keep enough room to stay on one line. */
@container (max-width: 34rem) {
.a86-hier-row {
grid-template-areas: "name lat count" "shape lat count";
grid-template-columns: minmax(0, 1fr) minmax(calc(var(--w-fs) * 8), 1.2fr) max-content;
row-gap: 0;
}
}
.a86-hier-name {
display: flex;
flex-direction: column;
}
.a86-hier-name span,
.a86-hier-shape {
font-size: calc(var(--w-fs) * 0.85);
color: var(--w-dim);
}
.a86-hier-lat {
display: flex;
align-items: center;
gap: 0.35rem;
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.87);
}
.a86-hier-lat span {
white-space: nowrap;
}
.a86-hier-bar {
flex: 0 1 auto;
min-width: 0.3rem;
max-width: 65%;
}
.a86-hier-bar {
height: 0.45rem;
border-radius: 2px;
background: var(--w-rule);
}
.a86-hier-count {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.85);
color: var(--w-dim);
text-align: right;
}
.a86-hier-row.is-hit {
border-color: var(--w-match);
background: var(--w-match-bg);
}
.a86-hier-row.is-hit .a86-hier-bar {
background: var(--w-match);
}
.a86-hier-row.is-miss {
border-color: var(--w-miss);
background: var(--w-miss-bg);
}
.a86-hier-row.is-miss .a86-hier-bar {
background: var(--w-miss);
}
.a86-hier-paths {
list-style: none;
padding: 0;
margin: 0;
font-size: calc(var(--w-fs) * 0.9);
display: grid;
gap: 0.2rem;
}
.a86-hier-paths li {
border-left: 3px solid var(--w-read);
padding-left: 0.45rem;
}
.a86-hier-paths li.is-far {
border-left-color: var(--w-miss);
}
.a86-hier-paths li.is-near {
border-left-color: var(--w-match);
}
.a86-hier-cost {
font-family: var(--w-mono);
color: var(--w-dim);
}
.a86-hier-total,
.a86-hier-tlb {
font-size: calc(var(--w-fs) * 0.9);
color: var(--w-dim);
margin: 0.45rem 0 0;
}
/* paging ---------------------------------------------------------------- */
.a86-pg-head {
margin: 0 0 0.35rem;
font-size: calc(var(--w-fs) * 0.94);
}
.a86-pg-split {
display: flex;
flex-wrap: wrap;
}
.a86-pg-field {
display: flex;
flex-direction: column;
align-items: center;
padding: 0.1rem 0.4rem;
border: 1px solid var(--w-rule);
border-right-width: 0;
background: var(--w-surface-2);
}
.a86-pg-field:last-child {
border-right-width: 1px;
}
.a86-pg-field code {
font-size: calc(var(--w-fs) * 0.9);
letter-spacing: 0.03em;
}
.a86-pg-field span {
font-size: calc(var(--w-fs) * 0.84);
color: var(--w-dim);
}
.a86-pg-field.is-offset code {
color: var(--w-dim);
}
.a86-pg-tlb {
font-size: calc(var(--w-fs) * 0.91);
border-left: 3px solid var(--w-rule);
padding-left: 0.45rem;
margin: 0.5rem 0;
}
.a86-pg-tlb.is-hit {
border-left-color: var(--w-match);
}
.a86-pg-tlb.is-miss {
border-left-color: var(--w-miss);
}
.a86-pg-walk {
display: grid;
gap: 0.25rem;
}
.a86-pg-step {
display: grid;
grid-template-columns: calc(var(--w-fs) * 7.66) calc(var(--w-fs) * 8.01) minmax(0, 1fr);
gap: 0.1rem 0.5rem;
font-size: calc(var(--w-fs) * 0.89);
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.2rem 0.4rem;
}
.a86-pg-step>.a86-muted,
.a86-pg-step>strong {
grid-column: 2 / -1;
}
.a86-pg-table {
font-weight: 600;
}
.a86-pg-frame {
color: var(--w-read);
}
.a86-pg-result {
font-size: calc(var(--w-fs) * 0.93);
margin: 0.5rem 0 0;
}
.a86-pg-tlbtable {
max-width: calc(var(--w-fs) * 30.62);
}
/* pipeline -------------------------------------------------------------- */
.a86-pipe-wrap {
overflow-x: auto;
}
.a86-pipe-grid {
border-collapse: collapse;
font-size: calc(var(--w-fs) * 0.88);
}
.a86-pipe-grid th {
font-family: var(--w-mono);
font-weight: 400;
color: var(--w-dim);
font-size: calc(var(--w-fs) * 0.82);
padding: 0 0.1rem 0.15rem;
text-align: center;
}
.a86-pipe-grid th.is-now {
color: var(--w-change);
font-weight: 700;
}
.a86-pipe-instr {
text-align: left !important;
white-space: nowrap;
padding-right: 0.6rem !important;
}
/* One line per instruction, whatever the page does to inline code; a long
one ends in an ellipsis rather than making its row three lines tall. */
.a86 .a86-pipe-instr code {
display: inline-block;
max-width: calc(var(--w-fs) * 11);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
.a86-pipe-cell {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.82);
width: calc(var(--w-fs) * 1.95);
min-width: calc(var(--w-fs) * 1.95);
height: calc(var(--w-fs) * 1.35);
text-align: center;
border: 1px solid var(--w-surface-2);
color: var(--w-ink);
}
.a86-pipe-cell.is-if,
.a86-pipe-cell.is-id,
.a86-pipe-cell.is-ex,
.a86-pipe-cell.is-mem,
.a86-pipe-cell.is-wb {
background: var(--w-surface-2);
border-color: var(--w-rule);
}
.a86-pipe-cell.is-mem {
background: var(--w-read-bg);
}
.a86-pipe-cell.is-busy {
color: var(--w-dim);
}
.a86-pipe-cell.is-stall {
background: var(--w-change-bg);
border-color: var(--w-change);
color: var(--w-change);
}
.a86-pipe-cell.is-squashed {
background: var(--w-miss-bg);
border-color: var(--w-miss);
color: var(--w-miss);
text-decoration: line-through;
}
.a86-pipe-cell.is-now {
box-shadow: inset 0 0 0 1px var(--w-change);
}
.a86-pipe-grid tr.is-current .a86-pipe-instr {
font-weight: 700;
}
.a86-pipe-grid tr.is-current .a86-pipe-instr code {
color: var(--w-change);
}
.a86-pipe-grid tr.is-future {
opacity: 0.55;
}
.a86-pipe-grid tr.is-ghost .a86-pipe-instr {
color: var(--w-miss);
}
.a86-pipe-grid tr.is-mispredicted .a86-pipe-instr code {
text-decoration: underline wavy var(--w-miss);
}
.a86-swatch.is-stage {
background: var(--w-surface-2);
}
.a86-swatch.is-stall {
background: var(--w-change-bg);
border-color: var(--w-change);
}
.a86-swatch.is-squashed {
background: var(--w-miss-bg);
border-color: var(--w-miss);
}
.a86-pipe-now {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 0.3rem;
margin-top: 0.55rem;
}
.a86-pipe-stage {
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.2rem 0.35rem;
display: flex;
flex-direction: column;
min-width: 0;
font-size: calc(var(--w-fs) * 0.87);
}
.a86-pipe-stage code {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.a86-pipe-stage-name {
font-weight: 700;
font-size: calc(var(--w-fs) * 0.84);
color: var(--w-dim);
}
.a86-pipe-notes {
list-style: none;
padding: 0;
margin: 0.5rem 0 0;
font-size: calc(var(--w-fs) * 0.91);
display: grid;
gap: 0.2rem;
}
.a86-pipe-notes li {
border-left: 3px solid var(--w-change);
padding-left: 0.45rem;
}
.a86-pipe-notes li.is-control {
border-left-color: var(--w-miss);
}
.a86-pipe-notes li.is-memory {
border-left-color: var(--w-read);
}
.a86-pipe-notes li.a86-muted {
border-left-color: var(--w-rule);
}
.a86-pipe-total {
font-size: calc(var(--w-fs) * 0.9);
color: var(--w-dim);
margin: 0.45rem 0 0;
}
/* uops ------------------------------------------------------------------ */
.a86-uops-wrap {
overflow-x: auto;
}
.a86-uops-table td {
vertical-align: top;
}
.a86-uops-note {
color: var(--w-dim);
min-width: calc(var(--w-fs) * 16.49);
}
.a86-uops-table tr.is-load td:nth-child(2) {
color: var(--w-read);
font-weight: 600;
}
.a86-uops-table tr.is-store-data td:nth-child(2),
.a86-uops-table tr.is-store-addr td:nth-child(2) {
color: var(--w-write);
font-weight: 600;
}
.a86-uops-table tr.is-eliminated td:nth-child(2) {
color: var(--w-match);
font-weight: 600;
}
/* timeline -------------------------------------------------------------- */
.a86-tl-svg {
display: block;
width: 100%;
max-width: 980px;
height: auto;
}
.a86-tl-grid {
stroke: var(--w-surface-2);
stroke-width: 1;
}
.a86-tl-tick {
font-family: var(--w-mono);
font-size: 11px;
fill: var(--w-dim);
}
.a86-tl-label {
font-family: var(--w-mono);
font-size: 12px;
fill: var(--w-ink);
}
.a86-tl-row.is-future .a86-tl-label {
fill: var(--w-dim);
}
.a86-tl-row.is-future rect {
opacity: 0.45;
}
.a86-tl-row.is-current .a86-tl-label {
font-weight: 700;
}
.a86-tl-highlight {
fill: var(--w-change-bg);
}
.a86-tl-wait {
fill: var(--w-surface-2);
stroke: var(--w-rule);
stroke-width: 0.5;
}
.a86-tl-exec {
fill: var(--w-change);
}
.a86-tl-exec.is-load {
fill: var(--w-read);
}
.a86-tl-exec.is-miss {
fill: var(--w-miss);
}
.a86-tl-exec.is-elim {
fill: var(--w-match);
}
.a86-tl-exec.is-store {
fill: var(--w-write);
}
.a86-swatch.is-tl-store {
background: var(--w-write);
}
.a86-tl-done {
fill: var(--w-match-bg);
stroke: var(--w-match);
stroke-width: 0.5;
}
.a86-tl-retire {
stroke: var(--w-ink);
stroke-width: 1.5;
}
.a86-tl-now {
stroke: var(--w-change);
stroke-width: 1.5;
stroke-dasharray: 3 2;
}
.a86-tl-refill {
fill: var(--w-miss-bg);
opacity: 0.8;
}
.a86-tl-flag {
font-family: var(--w-sans);
font-size: 10px;
fill: var(--w-miss);
}
.a86-swatch.is-tl-wait {
background: var(--w-surface-2);
}
.a86-swatch.is-tl-exec {
background: var(--w-change);
}
.a86-swatch.is-tl-load {
background: var(--w-read);
}
.a86-swatch.is-tl-miss {
background: var(--w-miss);
}
.a86-swatch.is-tl-done {
background: var(--w-match-bg);
border-color: var(--w-match);
}
.a86-swatch.is-tl-refill {
background: var(--w-miss-bg);
}
.a86-tl-caption {
font-size: calc(var(--w-fs) * 0.93);
margin: 0.45rem 0 0;
}
.a86-tl-total {
font-size: calc(var(--w-fs) * 0.9);
color: var(--w-dim);
margin: 0.25rem 0 0;
}
/* bottleneck ------------------------------------------------------------ */
.a86-bn-row {
display: grid;
grid-template-columns: calc(var(--w-fs) * 10.01) minmax(0, 1fr) calc(var(--w-fs) * 5.3);
gap: 0.1rem 0.5rem;
align-items: center;
font-size: calc(var(--w-fs) * 0.9);
margin-bottom: 0.3rem;
}
.a86-bn-track {
height: 0.7rem;
background: var(--w-surface-2);
border-radius: 2px;
overflow: hidden;
}
.a86-bn-bar {
height: 100%;
}
.a86-bn-bar.is-actual {
background: var(--w-change);
}
.a86-bn-bar.is-bound {
background: color-mix(in srgb, var(--w-ink) 40%, transparent);
}
.a86-bn-value {
font-family: var(--w-mono);
text-align: right;
}
.a86-bn-note {
grid-column: 2 / -1;
font-size: calc(var(--w-fs) * 0.85);
color: var(--w-dim);
}
.a86-bn-verdict {
font-size: calc(var(--w-fs) * 0.93);
margin: 0.5rem 0 0;
}
.a86-bn-ports {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.a86-bn-port {
display: flex;
flex-direction: column;
align-items: center;
font-size: calc(var(--w-fs) * 0.85);
width: calc(var(--w-fs) * 3.06);
}
.a86-bn-port-track {
width: calc(var(--w-fs) * 1.3);
height: 3.5rem;
background: var(--w-surface-2);
border: 1px solid var(--w-rule);
display: flex;
align-items: flex-end;
}
.a86-bn-port-fill {
width: 100%;
background: var(--w-change);
}
/* core ------------------------------------------------------------------ */
.a86-core-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem;
margin-bottom: 0.45rem;
}
.a86-core-cols {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
gap: 0.8rem;
}
@media (max-width: 760px) {
.a86-core-cols {
grid-template-columns: 1fr;
}
}
.a86-core-list {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: 0.12rem;
font-size: calc(var(--w-fs) * 0.88);
}
.a86-core-list li {
display: grid;
grid-template-columns: calc(var(--w-fs) * 2.83) calc(var(--w-fs) * 4.95) minmax(0, 1fr) calc(var(--w-fs) * 4.24);
gap: 0.3rem;
align-items: baseline;
border: 1px solid var(--w-rule);
border-radius: 2px;
padding: 0.05rem 0.3rem;
}
.a86-core-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.a86-core-id {
color: var(--w-dim);
}
.a86-core-kind {
color: var(--w-dim);
}
.a86-core-state {
font-size: calc(var(--w-fs) * 0.84);
text-align: right;
}
.a86-core-list li.is-running {
border-color: var(--w-change);
background: var(--w-change-bg);
}
.a86-core-list li.is-done {
background: var(--w-match-bg);
}
.a86-core-list li.is-retiring {
background: var(--w-match-bg);
border-color: var(--w-match);
font-weight: 700;
}
.a86-core-list li.is-waiting .a86-core-state {
color: var(--w-dim);
}
.a86-core-portgrid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.25rem;
}
.a86-core-port {
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.15rem 0.3rem;
display: flex;
flex-direction: column;
font-size: calc(var(--w-fs) * 0.85);
min-width: 0;
}
.a86-core-portname {
font-weight: 700;
}
.a86-core-units {
color: var(--w-dim);
font-size: calc(var(--w-fs) * 0.82);
}
.a86-core-portuop {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--w-dim);
}
.a86-core-port.is-busy {
border-color: var(--w-change);
background: var(--w-change-bg);
}
.a86-core-port.is-busy .a86-core-portuop {
color: var(--w-ink);
}
.a86-core-port.is-start .a86-core-portname {
color: var(--w-change);
}
.a86-core-rat .a86-table td {
font-size: calc(var(--w-fs) * 0.87);
}
.a86-core-rat tr.is-pending td {
color: var(--w-change);
}
.a86-core-ready {
white-space: nowrap;
}
.a86-core-note {
font-size: calc(var(--w-fs) * 0.91);
margin: 0.5rem 0 0;
}
/* console --------------------------------------------------------------- */
.a86-console-screen {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.95);
background: #16191d;
color: #e6e9ec;
border-radius: 4px;
padding: 0.5rem 0.65rem;
min-height: 3.2rem;
margin: 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.a86-console-cursor {
display: inline-block;
width: 0.55em;
background: #e6e9ec;
animation: a86-blink 1s steps(1) infinite;
}
@keyframes a86-blink {
50% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.a86-console-cursor {
animation: none;
}
}
.a86-console-log {
font-size: calc(var(--w-fs) * 0.9);
margin: 0.45rem 0 0;
padding-left: 1.4rem;
}
.a86-console-log li.is-current code {
color: var(--w-change);
font-weight: 700;
}
.a86-console-note {
font-size: calc(var(--w-fs) * 0.9);
color: var(--w-dim);
margin: 0.4rem 0 0;
}
/* perf ------------------------------------------------------------------ */
.a86-perf-out {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.9);
line-height: 1.5;
background: var(--w-surface-2);
border-radius: 3px;
padding: 0.5rem 0.6rem;
overflow-x: auto;
margin: 0 0 0.4rem;
white-space: pre;
}
/* the whole chip -------------------------------------------------------- */
.a86-chip-svg {
display: block;
width: 100%;
max-width: 980px;
height: auto;
margin: 0 auto;
}
.a86-chip-group {
fill: none;
stroke: var(--w-rule);
stroke-dasharray: 4 3;
}
.a86-chip-grouplabel {
font-family: var(--w-sans);
font-size: 11px;
fill: var(--w-dim);
letter-spacing: 0.04em;
}
.a86-chip-node rect {
fill: var(--w-surface-2);
stroke: var(--w-rule);
}
.a86-chip-label {
font-family: var(--w-sans);
font-size: 12px;
fill: var(--w-dim);
}
.a86-chip-sub {
font-family: var(--w-sans);
font-size: 9px;
fill: var(--w-dim);
}
.a86-chip-node.is-active rect {
fill: var(--w-change-bg);
stroke: var(--w-change);
stroke-width: 1.6;
}
.a86-chip-node.is-active .a86-chip-label {
fill: var(--w-ink);
font-weight: 600;
}
.a86-chip-node.is-hit rect {
fill: var(--w-match-bg);
stroke: var(--w-match);
}
.a86-chip-node.is-miss rect,
.a86-chip-node.is-bad rect {
fill: var(--w-miss-bg);
stroke: var(--w-miss);
}
.a86-chip-node.is-far rect {
fill: var(--w-read-bg);
stroke: var(--w-read);
}
.a86-chip-node.is-store rect {
fill: var(--w-write-bg);
stroke: var(--w-write);
}
.a86-chip-edge {
stroke: var(--w-rule);
stroke-width: 1.2;
fill: none;
}
.a86-chip-svg marker path {
fill: var(--w-rule);
stroke: none;
}
.a86-chip-edge.is-active {
stroke: var(--w-change);
stroke-width: 2;
}
.a86-chip-edge.is-load {
stroke: var(--w-read);
}
.a86-chip-edge.is-store {
stroke: var(--w-write);
}
.a86-chip-caption {
font-size: calc(var(--w-fs) * 0.94);
margin: 0.4rem 0 0;
}
.a86-swatch.is-chip-active {
background: var(--w-change-bg);
border-color: var(--w-change);
}
.a86-swatch.is-chip-hit {
background: var(--w-match-bg);
border-color: var(--w-match);
}
.a86-swatch.is-chip-miss {
background: var(--w-miss-bg);
border-color: var(--w-miss);
}
.a86-swatch.is-chip-load {
background: var(--w-read);
}
.a86-swatch.is-chip-store {
background: var(--w-write);
}
/* sandbox --------------------------------------------------------------- */
.a86-sandbox {
margin: 1rem 0 2rem;
}
.a86-sb-grid {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
gap: 0.9rem;
margin-bottom: 0.8rem;
}
@media (max-width: 760px) {
.a86-sb-grid {
grid-template-columns: 1fr;
}
}
.a86-sb-label {
display: block;
font-family: var(--w-sans);
font-size: calc(var(--w-fs) * 0.88);
font-weight: 600;
color: var(--w-dim);
margin: 0.5rem 0 0.2rem;
}
.a86-sb-code,
.a86-sb-setup {
width: 100%;
box-sizing: border-box;
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.94);
line-height: 1.5;
color: var(--w-ink);
background: var(--w-surface-2);
border: 1px solid var(--w-rule);
border-radius: 4px;
padding: 0.5rem 0.6rem;
resize: vertical;
tab-size: 8;
}
.a86-sb-code:focus,
.a86-sb-setup:focus {
outline: 2px solid var(--w-change-bg);
border-color: var(--w-change);
}
.a86-sb-row {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
align-items: center;
margin-bottom: 0.35rem;
}
.a86-sb-select {
font: inherit;
font-size: calc(var(--w-fs) * 0.94);
color: var(--w-ink);
background: var(--w-surface-2);
border: 1px solid var(--w-rule);
border-radius: 3px;
padding: 0.2rem 0.35rem;
max-width: 100%;
}
.a86-sb-check {
font-size: calc(var(--w-fs) * 0.93);
display: inline-flex;
align-items: center;
gap: 0.2rem;
cursor: pointer;
}
.a86-sb-check input {
accent-color: var(--w-change);
}
.a86-sb-actions {
margin-top: 0.6rem;
}
.a86-sb-status {
display: block;
font-size: calc(var(--w-fs) * 0.91);
color: var(--w-dim);
min-height: 1.1rem;
margin-top: 0.3rem;
}
.a86-sb-status.is-error {
color: var(--w-miss);
}
.a86-sb-help {
font-size: calc(var(--w-fs) * 0.88);
color: var(--w-dim);
margin: 0.6rem 0 0;
}
.a86-sb-spec {
font-family: var(--w-mono);
font-size: calc(var(--w-fs) * 0.89);
background: var(--w-surface-2);
border: 1px solid var(--w-rule);
border-radius: 4px;
padding: 0.5rem 0.6rem;
overflow-x: auto;
white-space: pre;
margin: 0 0 0.8rem;
}
.a86-sb-out>.a86 {
margin-top: 0.4rem;
}
/* ------------------------------------------------------- outside Quarto
A page that never declares a theme may still have an OS preference worth
honoring. Gated on both Quarto classes being absent, so it can never
contradict a page that has chosen. */
@media (prefers-color-scheme: dark) {
body:not(.quarto-light):not(.quarto-dark) .a86 {
--w-page: #1a1e23;
--w-ink: #e6e9ec;
--w-change: #e0a93a;
--w-read: #6fb4e3;
--w-write: #c0a0e0;
--w-match: #74c391;
--w-miss: #e08a80;
--a86-enc-prefix: #a9aeb5;
--a86-enc-rex: #e39acb;
--a86-enc-opcode: #e0a93a;
--a86-enc-modrm: #6fb4e3;
--a86-enc-sib: #74c391;
--a86-enc-disp: #c0a0e0;
--a86-enc-imm: #e08a80;
--w-rule: color-mix(in srgb, var(--w-ink) 28%, transparent);
--w-surface-2: color-mix(in srgb, var(--w-ink) 9%, var(--w-page));
--w-change-bg: color-mix(in srgb, var(--w-change) 22%, var(--w-page));
--w-read-bg: color-mix(in srgb, var(--w-read) 22%, var(--w-page));
--w-write-bg: color-mix(in srgb, var(--w-write) 22%, var(--w-page));
--w-match-bg: color-mix(in srgb, var(--w-match) 24%, var(--w-page));
--w-miss-bg: color-mix(in srgb, var(--w-miss) 22%, var(--w-page));
}
}
/* Fullscreen pipeline: wider, taller cells, so the diagram uses the room. */
.a86.is-fullscreen .a86-pipe-cell {
width: calc(var(--w-fs) * 2.5);
min-width: calc(var(--w-fs) * 2.5);
height: calc(var(--w-fs) * 1.6);
}
.a86.is-fullscreen .a86 .a86-pipe-instr code,
.a86.is-fullscreen .a86-pipe-instr code {
max-width: calc(var(--w-fs) * 16);
}
/* An instruction quoted inside a sentence keeps the listing's column
padding under Quarto's pre-wrap ("push rbp"); in prose one space
between the mnemonic and its operands reads better. */
.a86 .a86-explain code {
white-space: nowrap;
}