:root { --hover: #f1eef8; }

body {
  margin: 0;
  padding: 16px;
  background: #f7f7fb;
  color: #1e1e24;
  font: 12px/1.3 monospace;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  font-size: 1.2em;
}

h2 {
  margin: 0 0 3px;
  font-size: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  padding: 0 4px 0 0;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  font: inherit;
}

thead { color: #73737d; }
td.fmt { cursor: pointer; }
td.fmt:focus { outline: 1px solid #8abeb7; outline-offset: -1px; }
th:last-child, td:last-child { padding-right: 0; }
tr:hover td, tr.selected td { background: var(--hover); }
tr.dimmed { opacity: .45 }

.ref {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.args { white-space: normal; }
.inst { width: 8ch; }
.op { width: 5ch; }
.fmt { width: 10ch; }
.mc { width: 3ch; }
.stat { width: 5ch; }
.notes { width: 6.5ch; }
.regs { width: 6ch; }
.lat { width: 6ch; }
.lat.l2 { color: #9575cd; }
.lat.l3 { color: #8a5f7a; }
.lat.l4 { color: #cc6666; }
.lat.inf { color: #3f8f86; }

.op, .fmt, .mc, .stat, .notes, .regs { color: #73737d; }
.vf { color: #568f88; }
.vi { color: #6b5aa8; }
.bc { color: #4d6fce; }
.xyzw { color: #7c74a0; }

@media (max-width: 1200px) {
  .ref { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 620px) {
  .fmt, .mc, .stat, .notes, .regs { display: none; }
}
