:root { color-scheme: light; font: 13px/1.3 system-ui, sans-serif; color: #203d37; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
main { margin: auto; padding: 12px 16px; max-width: 1600px; }
h1 { font-size: 19px; margin: 0 0 10px; }
p { margin: 6px 0; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 4px 7px; border: 1px solid #d6e1db; vertical-align: top; }
th { background: #e6eee7; font-weight: 600; }
tr:nth-child(even) { background: #f5f8f5; }
code { display: block; font: 12px/1.4 ui-monospace, monospace; white-space: nowrap; }
.ascii-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ascii-grid td { font: 12px/1.3 ui-monospace, monospace; white-space: nowrap; }
.ascii-grid th, .ascii-grid td { padding: 3px 5px; }
.ascii-grid th:last-child, .ascii-grid td:last-child { width: 1%; white-space: nowrap; }
@media (max-width: 1050px) { .ascii-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { main { padding: 8px; } .ascii-grid { grid-template-columns: 1fr; } }

.instruction-table { font-size: 12px; }
.instruction-table td, .instruction-table th { border-left: 0; border-right: 0; padding: 3px 7px; }
.instruction-table thead th { background: white; border-top: 1px solid #52665e; border-bottom: 1px solid #52665e; }
.instruction-table tbody { border-top: 2px solid #52665e; }
.instruction-table tbody tr { background: white; }
.instruction-table td { border-bottom: 0; }
.instruction-table .operation { background: #deddf7; min-width: 85px; }
.instruction-table .flags { white-space: nowrap; }
.instruction-table code { font-size: 12px; }

.ascii-grid .ascii-digit { background: #fff0cc; color: #624500; }
.ascii-grid .ascii-letter { background: #e3edff; color: #193e70; }
.ascii-grid .ascii-digit td:last-child, .ascii-grid .ascii-letter td:last-child { font-weight: 700; }

.instruction-table .pseudo-instruction { background: #fff4da; }
.pseudo-label { font-size: 11px; color: #624500; }
